date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/27
399
1,152
<issue_start>username_0: I have just approached SQL and have not had the solution to do this. I have 2 tables A and B: ``` A B ID (char) Year (char) Zone (char) Code (char) ZCode (char) ``` At first, table B will be completely empty. Ex data of table A: ``` A 01 A ...
2018/02/27
1,446
4,802
<issue_start>username_0: I am using below script to validate header of file. For which i have created one file which is having only header and comparing it with another file which is having data for column along with the header. ``` awk -F"|" 'FNR==NR{hn=split($0,header); next} FNR==1 {n=split($0,fh) ...
2018/02/27
1,539
4,096
<issue_start>username_0: HI i have a list of multiple array like this ``` jquery([ { id:2, count:23, numberOfType:34 }, { id:2, count2:53, numberOfType2:34 }, { id:2, count3:53, numberOfType3:34 }, { id:2, count:23, numberOfType:34 }, { id:21, count2:53, numberOfType2:34 }, { id:21, ...
2018/02/27
523
1,791
<issue_start>username_0: I´m using Mac OS el capitán and I am trying to follow the [quick start tutorial for OpenNMT pytorch](http://opennmt.net/OpenNMT-py/quickstart) version. In the training step I get the following warning message: ``` OpenNMT-py/onmt/modules/GlobalAttention.py:177: UserWarning: Implicit dimension ...
2018/02/27
1,303
4,635
<issue_start>username_0: this question is about developing SAPUI5 with the SAP Web IDE. I want to combine a OData-Service with a web-service that I just call via POST Method. So basically it's like that: I retrieve a list from the OData Service (which is from a backend-SAP system) and show this in a table element. So f...
2018/02/27
1,408
4,462
<issue_start>username_0: I have the following data: ``` Date,Rain 1979_8_9_0,8.775 1979_8_9_6,8.775 1979_8_9_12,8.775 1979_8_9_18,8.775 1979_8_10_0,0 1979_8_10_6,0 1979_8_10_12,0 1979_8_10_18,0 1979_8_11_0,8.025 1979_8_12_12,0 1979_8_12_18,0 1979_8_13_0,8.025 ``` [1] The data is six hourly but some ...
2018/02/27
3,595
11,133
<issue_start>username_0: I have an employer list indicating the reinforcement shifts per dd/mm/yyyy in an Excel 2003 workbook. [![Document](https://i.stack.imgur.com/RvMzn.png)](https://i.stack.imgur.com/RvMzn.png) With the next macro I get in the same document, all the GP per person multiplied by 4.83 indicating the...
2018/02/27
267
898
<issue_start>username_0: Does anyone know the scheme of facebook for swift4? I have tried many ways and also these: ``` fb://profile/\(Username)! , fb://profile?id=[username|user_id] , ``` but redirects me to the wall of my facebook page<issue_comment>username_1: First you should create app in facebook develo...
2018/02/27
415
1,412
<issue_start>username_0: I have access public API data by given below link. ``` import json,urllib import csv data = urllib.urlopen("https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2016-10-01&endtime=2016-10-02").read() output = json.loads(data) print (output) ``` need help to put the obtai...
2018/02/27
500
1,946
<issue_start>username_0: I have been following a tutorial on how to deploy docker containers to AWS, which I have managed to do successfully. However now that I have modified a flask web app with my own code/logic, it never completes building the first service. My last command: ``` docker-compose -f docker-compose-p...
2018/02/27
636
2,329
<issue_start>username_0: I have a following valid json string: ``` var result = "[{\"total\":" + wpTotal + ",\"totalpages\":" + wpTotalPages + "},{\"tags\":[{\"id\":384},{\"id\":385}]}]"; ``` I am trying to use this method to deserialize it to object of type T: ``` public static T FromJSON(string json) { using (M...
2018/02/27
376
1,303
<issue_start>username_0: I have a bit of a code rendering a tab control which is looking at the react children being passed in but I don't know if its a single item or an array. Is there a cleaner way of doing this without using an any? I tried to get type narrowing working but wasn't successful. ``` EnsureArray(input...
2018/02/27
557
1,867
<issue_start>username_0: I have an issue that all beginners in CSS seems to have, my background-image doesn't show. When I try to put background-color it works, and with image nothing shows-up. I have put my image in the same folder than my files css and html. I want to set the image as the background of my . I u...
2018/02/27
785
2,878
<issue_start>username_0: I am using spring boot rest controller with POST request method, having url (/add) to persist a JSON object, **BUT** inside the RequestBody it accepts **interface** except a **class**. **Method in Controller:** (IVehicle is an **interface**) ``` @CrossOrigin @RequestMapping(value = "/add", m...
2018/02/27
513
1,869
<issue_start>username_0: Running Nodemailer results in the following error, then what should I do to fix it? > > Error: Missing credentials for "PLAIN" > at SMTPConnection.\_formatError > > > ```js var nodemailer=require('nodemailer'); var transporter = nodemailer.createTransport({ service:'Gmail', au...
2018/02/27
756
3,037
<issue_start>username_0: I have a class that might need a service or not, previously registered through dependency injection, depending on the user needs. He instanciate my class via the static method `GetInstance(bool)`, and if `bool` is set to true then I need to call a constructor based on dependency injection. Ho...
2018/02/27
1,611
6,638
<issue_start>username_0: is it possible to **check**, in an ARM Template, **if the name for my Virtual Machine already exists**? I am developing a Solution Template for the Azure Marketplace. Maybe it is possible to set a paramter in the **UiDefinition** uniqe? The goal is to reproduce this green Hook [![enter image...
2018/02/27
936
3,274
<issue_start>username_0: I would like to compile and run my program in two different environments. The libraries in both environments are installed on slightly different places, resulting in different makefile-lines: In makefile A: ``` CXXFLAGS=-I$(DIR) -flto -fopenmp -O3 -g -march=native -std=gnu++17 -c -I/opt/int...
2018/02/27
835
2,988
<issue_start>username_0: i have problems with my http-headers. I need to send a post-request with an empty body and the header "Content-Length:0". But this seems impossible, becauce i get this exception: --org.apache.http.ProtocolException: Content-Length header already present-- But when i do not include the header,...
2018/02/27
217
857
<issue_start>username_0: Given I want to initialize a class. I can do ``` $testClass = App::make('TestClass') //of course given its already binded on container ``` and ``` $testClass = new TestClass; ``` What is the difference, does `App::make()` when its called resolves the container all the time or ?<issu...
2018/02/27
228
811
<issue_start>username_0: I receive value from a DB `$row['jackpot']` it is equal to 5000.00 how to write the correct condition? ``` if ($row['jackpot'] < '2000.00') { $asd = "2000.00" - $row['jackpot']; echo "To participate you are missing".$asd; } ```<issue_comment>username_1: `App:make()` resolves al...
2018/02/27
342
1,235
<issue_start>username_0: Right now, to integrate a function `fx` with SymPy I would do the following: ``` from sympy.abc import alpha as _alpha_, beta as _beta_, x as _x_ sym_args = _alpha_, _beta_ fx_definite_integral = sympy.integrate(fx(_x_, *sym_args), (_x_, xmin, xmax)) ``` But this requires me to know before...
2018/02/27
834
3,247
<issue_start>username_0: i tried the below code which i got after searching,app is working but it shows an error `Unexpected end of JSON input` , i am not getting the value of image upload [![enter image description here](https://i.stack.imgur.com/znALY.png)](https://i.stack.imgur.com/znALY.png) the code which i hav...
2018/02/27
243
776
<issue_start>username_0: Hey every one I want to generate surrogate key by getting Max() from one table in sql I did some thing like that ``` coalesce(max(INDVL_ID), 0) + ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) ``` now I have to do same thing in mysql so issue is that I am unable to get alternate of **ROW\_NUMBER...
2018/02/27
424
1,345
<issue_start>username_0: I have an SQL table named "accounts" with the following columns: registration\_date account\_id and have another SQL table named "revenue" with the following columns: account\_id revenue\_month sales\_revenue What I am trying to achieve is to get the following: Get a count of customers tha...
2018/02/27
516
1,620
<issue_start>username_0: Quick question. Lets say I have: ``` var specialthings = ['special1','special2','special3']; var alotoftext = ['randomTextButHereIHavespecial1orspecial2orspecial3'] ``` My goal is to seperate `specialthings` from `alotoftext`. So the outcome would be `new var` or `alot of text` (same to me)...
2018/02/27
1,268
3,805
<issue_start>username_0: I am looking to check whether the substring `PROD` is present in the string`Today's proDuction` and return values as True or False. Here the expected answer is true. How can I do this in VBA<issue_comment>username_1: Use `Like`. ``` Sub testString() Dim myStr As String myStr = "Tod...
2018/02/27
942
3,272
<issue_start>username_0: I'm using a third-party package which manipulates images. For basic conversions it accepts a single value: ``` $image = $this->addMediaConversion('thumb'); $image->width(100); $image->height(100); ``` The system I am building has a level of abstraction where I need to define these values fro...
2018/02/27
367
1,237
<issue_start>username_0: I have this bit of the code: ``` $url = "https://outlook.office365.com/api/v1.0/me/messages" $date = Get-Date -Format "yyyy-MM-dd" $messageQuery = "" + $url + "?`$select=Id&`$filter=HasAttachments eq true and DateTimeReceived ge " + $date $messages = Invoke-RestMethod $messageQuery -Credenti...
2018/02/27
399
1,689
<issue_start>username_0: I am working on a Rails project! Excuse for not adding `.gitignore` I have accidentally committed and pushed '`database.yml`' in to my feature branch. A pull request was created from the `feature` branch to `master` branch a few days ago and is not yet merged. There are **multiple commits** d...
2018/02/27
330
1,133
<issue_start>username_0: I've installed vue-tour component. ``` https://www.npmjs.com/package/vue-tour ``` In vue component in mounted method I have (code in typescript): ``` mounted() { this.$tours['tourTabsNames'].start(); ``` And when I compile above code I get error: Error TS2339 (TS) Property '$tours...
2018/02/27
545
1,944
<issue_start>username_0: I am just getting started with react native and have some problems understanding what `this` in what context refers to. I saw this simple example in some tutorial: ``` class LoginScreen extends React.Component { render() { return ( )} buttonAction() { this.setState(...); } } ...
2018/02/27
710
2,201
<issue_start>username_0: In `JsPath.scala` the description of `lazyRead` method is as follows : ``` /*case class User(id: Long, name: String, friend: User) implicit lazy val UserReads: Reads[User] = ( (__ \ 'id).read[Long] and (__ \ 'name).read[String] and (__ \ 'friend).lazyRead(UserReads) )(User.apply _) */ ...
2018/02/27
381
1,215
<issue_start>username_0: I have this specific string: ``` {"latitude":46.57637,"longitude":26.91551} ``` I want to extract both coordinates, each coordinate to assign and display separately, like: ``` php echo $lat; echo $long; ? ``` Anyone have any idea? Many thanks!<issue_comment>username_1: > > **now `thi...
2018/02/27
333
1,132
<issue_start>username_0: I tried this command > > $ git Commit -m "With ViewPager" > > > and getting this error > > fatal: cannot handle Commit as a builtin > > ><issue_comment>username_1: Use `commit` instead of `Commit` :) Upvotes: 5 [selected_answer]<issue_comment>username_2: This error will also occur f...
2018/02/27
404
1,288
<issue_start>username_0: I'm saving imaging from the website. I see it appears and is 1.2Mb But I fail to open it ``` download.file( 'http://www.sothebys.com/content/dam/stb/lots/N09/N09781/101N09781_994Y9.jpg', method='wb', destfile='~/i.jpg') ``` when I try readJPEG, I get "JPEG decompression error: Bogus mark...
2018/02/27
1,125
3,941
<issue_start>username_0: I installed tensorflow with pip3, then validated it with ``` # Python import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello)) ``` And all works fine in terminal. However, when i try to import tensorflow in Anaconda it throws up an error: ...
2018/02/27
744
2,762
<issue_start>username_0: I am trying to track my expenses manually. I looked for already built options and I did not find anyone I knew how to use or that it covered what I want to do. What I am doing is basically manually write down what appears in my bank, with the intention of categorizing the expenses myself, sinc...
2018/02/27
2,009
6,372
<issue_start>username_0: I know that "readonly" feature does not exist for select2. Please check [here](https://github.com/select2/select2/issues/3387). How do I achieve that? Any help would be appreciated. Thanks. Note: I cant use disabled. If I use disabled, I will not get the list of selected value.<issue_comment>u...
2018/02/27
396
1,378
<issue_start>username_0: I'm having a two-dimensional array like this ``` $data = Array ( [1] => Array ( [type] => Combine [aggregator] => all [value] => 1 [new_child] => ) [1--1] => Array ( [type] => Product [attribute] => seller_id [oper...
2018/02/27
299
1,121
<issue_start>username_0: How would I access the actual element a plugin is called on from within the plugin call itself? `$(this)` seems to refer to the plugin context not the actual element. For example I am calling the pluginName plugin on an input field and I want a callback to change that input's value. This is a ...
2018/02/27
433
1,513
<issue_start>username_0: I am using SciPy's `linalg.qz` function to generate eigenvalues for an ill-conditioned generalised eigenvalue problem using two input matrices A, B. The [SciPy documentation](https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.qz.html "SciPy documentation") for the function gives...
2018/02/27
425
1,352
<issue_start>username_0: I need your help with my code below: I have a series list value and I wanted to search a word and it will return a number as shown below; ``` search_word = 'cp' keyword_list = [[1, 'ap'], [2, 'cp'], [3, 'mc']] for each_word in keyword_list: if search_word...
2018/02/27
864
2,313
<issue_start>username_0: I want get the occurrence of characters in a string, I got this code: ``` string = "Foo Fighters" def conteo(string): copia = '' for i in string: if i not in copia: copia = copia + i conteo = [0]*len(copia) for i in string: if i in copia: ...
2018/02/27
818
2,452
<issue_start>username_0: I have two arrays, ``` let student = [{ id: "weqwe", name: "john" }, { id: "wqeqweq", name: "doe" }] let details = [ { id: "2qweqweq", name: "larry", oName: "john" }, { id: "231234qa", name: "jacob", oName: "john" }, { id: "wetyrqwte", name: "jane", oName: "doe" } ] ``` I need t...
2018/02/27
534
1,632
<issue_start>username_0: I've got a javascript object, say oBj, with a number of attributes, `oBj.att1, oBj.att2 ... oBj.attn`. I can pass this object into jQuery's param function to quickly create URIs. Is it possible to select `oBj.att1` and `oBj.att2` and pass that to the param function? Please excuse me, I'm ver...
2018/02/27
436
1,458
<issue_start>username_0: I am working in `PHP` back-end. I have doubt on array. How to get values from array using index values. **Example :** ``` $array = [ "FirstName"=>"Ram", "LastName"=>"R", 0 => "Developer", 1 => array() ] ``` I have records similar to above example.my array containing some ke...
2018/02/27
506
2,117
<issue_start>username_0: Is it Ok to provide image resources for all densities in Android (LDPI, MDPI, HDPI...) and that the system can choose the appropriate one for each device, or it is more efficient to provide only high resolution ones and downscale them to devices with lower resolution? In the last case, can the ...
2018/02/27
583
1,647
<issue_start>username_0: ``` $menus = implode(',', $menu_id); $this->db->where_in('rgroup_id',$menus); $query = $this->db->get('rights_group'); ``` please give me suggestion<issue_comment>username_1: Please check this code. ``` $menu_id = "1,2,3"; $menus = explode(',', $menu_id); $this->db->where_in('rgroup_id', $m...
2018/02/27
372
1,206
<issue_start>username_0: I configured remote Python interpreter 3 months ago with Vagrant, when I was using it, everything was fine, for the last two days I am receiving `Couldn't refresh skeletons for remote interpreter` error very frequently, as on the video: <http://take.ms/0Mr8b> I am not sure what might be error ...
2018/02/27
1,191
3,982
<issue_start>username_0: I'm trying to (let's say) gather a report on customers. In that report I want to include sum of orders and ticket number for each client. Tables: ``` Customer(id, name) Order(id, customer_id, amount) support_ticket(id, customer_id) ``` query: ``` select c.id as 'Customer', count(dist...
2018/02/27
1,065
3,757
<issue_start>username_0: I am learning python right now and I want to level up my knowledge on it particularly scraping. I am now on using Scrapy and getting in to use it along with Splash. I wanted to scrape a more challenging website - an airline website "<https://www.airasia.com/en/home.page?cid=1>" - one of my web ...
2018/02/27
1,072
3,635
<issue_start>username_0: I have a **WordPress development environment with Docker**. Is so simple, only a docker compose with Wordpress and MySQL. This is my docker-compose file. All works perfect, and at first I can see my WordPress in **localhost:8080** ``` version: '3.1' services: wordpress: image: wordpr...
2018/02/27
1,049
4,271
<issue_start>username_0: **My Singleton Class:** Here's the Singleton class I found on Official Documentations. ``` public class Singleton { private static Singleton uniqInstance; private Singleton() { } public static Singleton getInstance() { if (uniqInstance == null) { { ...
2018/02/27
1,068
3,823
<issue_start>username_0: There are 22100 combinations of 3 cards from the 52 cards deck `(52 * 51 * 50 / 3! = 22100)`. Here is an enumeration of all these combinations: ``` static const ins cards_count = 52; int boardId = 0; for (int b1 = 0; b1 < card_count; b1++) { for (int b2 = b1 + 1; b2 ...
2018/02/27
461
2,158
<issue_start>username_0: I'm currently looking at some old code and I've come across a class that is using a private static property which is created with a default value and never modified; something like this - ```cs public class Foo { private static readonly string ConnectionString = ConfigurationManager.Connec...
2018/02/27
1,498
5,162
<issue_start>username_0: Im using [Material UI Next](https://material-ui-next.com/demos/cards/) in a React project. I have the Card component which has an image(Card Media) and text(Card Text) inside it. I also have a button underneath the text. My question is..how to make the whole card clickable? ie. Whether a user p...
2018/02/27
267
865
<issue_start>username_0: So. my ajax does not send info to php. Whats wrong over here? ``` $(document).on('change', '#kasutaja', function(){ $(this).attr('data-id'); $.ajax({ type: "POST" url: "data/action.php", data: "change" : "kasutaja", success: function(data){ alert(data); ...
2018/02/27
1,063
3,014
<issue_start>username_0: I have a problem calculating the time with moment. js. The problem is that when I add or subtract time in "hh: mm: ss" format and it is more than 1 hour it does well, but when I add or subtract time for example 00:33:33 or less than one hour makes the calculations wrong. EXAMPLE THAT MAKES THE...
2018/02/27
573
1,736
<issue_start>username_0: I have following controller , I would like to call it from ajax request. ``` @RequestMapping(value = "/downloadpdf/{fileName:.+}", method = RequestMethod.GET, produces = "application/pdf") public ResponseEntity download(@PathVariable("fileName") String fileName) throws IOException { Syst...
2018/02/27
868
3,100
<issue_start>username_0: I'm gonna cut to the chase. I'm creating a Survey platform, it has 3 models. Model Survey, it has Many SurveyQuestion which has many SurveyAnswer. (I can insert all of the values of these models but I dont think it is needed) ``` public class SurveyAnswer { [Key] public int Id { get; ...
2018/02/27
301
973
<issue_start>username_0: I want to move the arrow a little to the right. [![FAB](https://i.stack.imgur.com/77U2J.png)](https://i.stack.imgur.com/77U2J.png)<issue_comment>username_1: You can edit your icon to move it a little to the right. * If you use **Raster** image, just use image editor, which you like and move i...
2018/02/27
522
1,796
<issue_start>username_0: I couldn't find a solution to this problem. I have multiple dynamically generated forms on the same page, with different ids and data-form-id attributes (#form-1, #form-2 etc.) but only one submit button on top of the page. On input i assign the respective data-form-id value to the submit butt...
2018/02/27
766
3,035
<issue_start>username_0: I have a UI layout with perfect-scrollbar to render a list of items. There are 1600 items which I need to display (without limiting the number of items displayed with any pagination) within the scrollable section so that user can scroll all the items at once (this is a requirement for me and I ...
2018/02/27
856
2,887
<issue_start>username_0: Suppose I am retrieving the data(in json form) from the **first.php** and **second.php**(coding in php). I want to assign this json data in the array of the jQuery array. let the array is `var total = [index1,index2]` the first json data coming from the **first.php** will assign to the first **...
2018/02/27
432
1,328
<issue_start>username_0: ``` let person = { _name: '<NAME>', _age: 137, set age(ageIn) { if (typeof ageIn === 'number') { this._age = ageIn; } else { console.log('Invalid input'); return 'Invalid input'; } } }; console.log(person.set age('bdhh')); ``` // While executing the...
2018/02/27
889
3,584
<issue_start>username_0: Chart disappear when switching to another segment in ionic, how to solve this issue? I am new in ionic When I open this page it showing normal chart but when I change segment and return back, chart become invisible, please solve this issue **This is my HTML code** ``` Lead Report Gra...
2018/02/27
495
1,749
<issue_start>username_0: I have a RelativeLayout as parent layout.In it i've got two buttons and a FrameLayout. ``` ``` [![screenshot](https://i.stack.imgur.com/9PYHS.png)](https://i.stack.imgur.com/9PYHS.png) The FrameLayout has both width and height as match\_parent but I don't understand why it doesn't cover the...
2018/02/27
677
2,396
<issue_start>username_0: I have a script that creates an Excel file and exports it. This was running fine in PHP5.6 but since upgrading to PHP7.0 this is not working anymore. I've found a couple related issues where people suggested installing `php7.0-zip`, but this did not solve the issue. Also getting the same erro...
2018/02/27
239
900
<issue_start>username_0: For example I meet this url type: `http://username:token@example.com/protected/files` . I searched on the web for this but I don't find what I expected.<issue_comment>username_1: Wikipedia explains [the syntax of a URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax) quite we...
2018/02/27
3,524
13,941
<issue_start>username_0: I have a prototype-scope bean, which I want to be injected by @Autowired annotation. In this bean, there is also @PostConstruct method which is not called by Spring and I don't understand why. My bean definition: ``` package somepackage; import org.springframework.context.annotation.Scope; i...
2018/02/27
3,294
12,934
<issue_start>username_0: I want to create a simple data storage using map, ``` map people; ``` where Person is ``` class Person { string name; int age; public: Person() : name("noname"), age(0) {} Person(string name, int age) : name(name), age(age) {} void print() { cout << "| " <<...
2018/02/27
301
1,200
<issue_start>username_0: According to producer configs, there are: **retries** and **max.in.flight.requests.per.connection**. Suppose that **retries** > 0 and **max.in.flight.requests.per.connection** > 1. Can messages arrive out of order within **ONE** partition of topic (e.g. if first message has retries, but second...
2018/02/27
1,758
5,536
<issue_start>username_0: I found a similar [question](https://stackoverflow.com/questions/37377529/angular2-tutorial-tour-of-heroes-cannot-find-module-angular2-in-memory-web-a) but it was for angular2 & the commands in the answers seems angular2 specific or telling to run the same cmd I am running, so I am asking this ...
2018/02/27
536
1,736
<issue_start>username_0: We are trying to establish connection between Tosca and ctree faircom database but it fails to establish the connection. Getting the following error message: > > 'Could not establish a connection using "connection string: > DRIVER=CTREE ODBC Driver; > UID=admin;PWD=<PASSWORD>;Database=ctre...
2018/02/27
774
2,347
<issue_start>username_0: I'm a newbie when it comes to Haskell and I'm confused with a few things. I'm trying to remove duplicated elements in this functions list: ``` qsort :: [Int] -> [Int] qsort [] = [] qsort (x:xs) = qsort smaller ++ [x] ++ qsort larger where smaller = [a | a <- xs, a <= x] ...
2018/02/27
441
1,636
<issue_start>username_0: I have a SQL database server in Microsoft Azure. I want to use Azure Rest-API to select some records from a table. When I refer to [Azure SQL Database REST API](https://learn.microsoft.com/en-us/rest/api/sql/) I can't find any section for this purpose, just I can get a DB information, server in...
2018/02/27
789
2,423
<issue_start>username_0: In my app I am using the DataBinding util ``` dataBinding { enabled = true } ``` Everything works fine until I rebuild my project, then I get following error meassages: several of these: > > error:(12, 40) error: cannot find symbol class MyClassNameBinding > > > and a big one: >...
2018/02/27
279
1,086
<issue_start>username_0: I have a scenario in which I start a ringtone using the Ringtone Player in one activity ``` Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification); r.play(); ``` But when I move to another activity it stops playing. My try : I have use onResume and onPause method fo...
2018/02/27
418
1,247
<issue_start>username_0: I have following MySQL db table filled with data: ``` |id|parentId|position |20|NULL |1 |21|NULL |2 |22|NULL |3 |23|21 |1 |24|21 |2 ``` Is it possible to sort it to get final result as: ``` |id|parentId|position |20|NULL |1 |21|NULL |2 |23|21 |1 |24|21 |2 ...
2018/02/27
600
2,459
<issue_start>username_0: I'm planning to deploy airflow dags on cloud storage and provide connection to GCS and access those dags from Airflow running on Google Compute Engine instance. From the documentation it is very clear that remote logging is possible. I wanted to keep storage (Logs and Dags) part of the Airfl...
2018/02/27
788
1,985
<issue_start>username_0: maybe someone could show me what i am doing wrong? ``` import pandas as pd import operator def calculate(A, B): if (A > 2 and B == True): Z = A * 10 else: Z = A * 10000 return Z df = pd.DataFrame() df['A'] = 1,2,3,4,5 df['B'] = True,True,False,False,True df['C'] = calc...
2018/02/27
665
1,628
<issue_start>username_0: What is the simplest way to add a computed property to the target entity only if the computed property matches some condition? Given the following input entity: ``` { "_id": "foo", "bar": 5 "baz": 10 } ``` And I want to add `foobar` if `["+", "_S.bar", "_S.baz"]` is greater than 15.<i...
2018/02/27
352
1,079
<issue_start>username_0: I want to customize chart js doughnut chart as the image below. Using The default border option I can not be able to get my expected result. Is there any way that could help me. ![Chart js concept image](https://i.stack.imgur.com/bj6XL.png). here is my code: ``` var doughnut = document.get...
2018/02/27
619
2,069
<issue_start>username_0: If user type wrong data the error is: [![If user type wrong data the error is: ](https://i.stack.imgur.com/8yqez.png)](https://i.stack.imgur.com/8yqez.png) I want to show blue marked "errors" in alert. I tried with this code: ``` create(doctor: Doctor): Promise { return this.http .post...
2018/02/27
683
2,672
<issue_start>username_0: What are the steps to **run a react native project in android studio** after eject from create react native. I didn't find a helpful **step by step description** online for this. I am pretty new to android development, facing different problems related to gradle versions and other stuffs in and...
2018/02/27
1,196
4,376
<issue_start>username_0: I'm trying to exchange messages using multiple covert channels. So, basically, first i need to select the channel that i want to use for communication and then select the "destination\_ip" of the user that i want to chat with and after that the > > processMessage() > > > is called. Now, ...
2018/02/27
437
1,409
<issue_start>username_0: How to tilt the text in the x-axis as shown in the image. I tried with transform but I'm unable to tilt it. I've the text inside the span like this: `{value.Date}`[![enter image description here](https://i.stack.imgur.com/AHyKC.png)](https://i.stack.imgur.com/AHyKC.png)<issue_comment>username...
2018/02/27
1,531
4,939
<issue_start>username_0: I am overlaying some title text on an image, currently using relative/absolute position for one of the elements (doesn't matter which). What I am struggling with is getting the parent div to fully display the content of both, irrespective of which is taller. Example markup: ```css .parent { ...
2018/02/27
1,430
4,585
<issue_start>username_0: I am pretty new to PHP and have looked for a solution for what I'd have thought would be a common question but I can't find the answer. Any help would be greatly appreciated. So I have a form with a selector and various options: ``` Select location: I Don't Mind... Africa Asia Australi...
2018/02/27
1,348
4,243
<issue_start>username_0: I'm using React Tippy - a React component based on Tippy.js. I want to use the [documented setIsOpen method](https://github.com/tvkhoa/react-tippy#showhide-your-tooltip-manually) - but it's not working. ``` TypeError: setIsOpen is not a function. ``` Can't seem to find any documentation or i...
2018/02/27
137
526
<issue_start>username_0: In scenario when I have parent component: ``` Click ``` child: ``` which has the reference and includes Content ``` How can I access #panel reference from parent component? PrimeNG overlay panel<issue_comment>username_1: ``` @ViewChild(‘panel’) panel: ParentComponent ```...
2018/02/27
671
2,534
<issue_start>username_0: We have our own gitlab repo. We have our own runners. Hows does one set up the runners and gitlab up to be able to cache docker layers. An example below of a .gitlab-ci.yml file: ``` before_script: - docker version test: stage: test script: - docker-compose -f docker-compose.yml b...
2018/02/27
971
2,924
<issue_start>username_0: I have used Rails 5,Capistrano Gem and Whenever Gem. I have a server which have multiple environments. When i update cronjob on server by capistrano, it override it inplace of running cronjob in multiple environment. Example: When I checked by **crontab -l** command on server I see either ...
2018/02/27
386
1,306
<issue_start>username_0: Is there any other way to set specific values in Joi validation schema for key except regex pattern? My example schema: ``` const schema = joi.object().keys({ query: joi.object().keys({ // allow only apple and banana id: joi.string().regex(/^(apple|banana)$/).required(), ...
2018/02/27
2,764
9,211
<issue_start>username_0: Given a number `current`, find the number of values in an array which are larger and smaller than that value. ``` //sort array for binary search int[] digits = Arrays.stream(sc.nextLine() .split(" ")) .mapToInt(Integer::parseInt) .sorted() .toAr...
2018/02/27
1,434
5,449
<issue_start>username_0: It seems that I am still missing some basics of python. I was trying to understand [submodules importing](https://docs.python.org/3/reference/import.html#submodules), which I feel I have not understood yet. But I have also stumbled upon something new. I am having following two packages in two ...
2018/02/27
696
2,842
<issue_start>username_0: I have a layout where i have 4 circular `edittext` to enter PIN. ``` ``` I want like after entering number for first `edittext`, it should automatically move to next `edittext`. Now after tapping on next `edittext` or after tapping on next button from soft keyboard only i am able to enter nu...
2018/02/27
794
3,244
<issue_start>username_0: I am Calling a function(present in fragment) from activity when back button is pressed ``` public void onBackPressed() { new Home().show(Home.home_list,app.this); } ``` Home is fragment of app activity In show function I am calling an intent ``` public void show(fina...
2018/02/27
722
2,996
<issue_start>username_0: How static method invoke without mentioning the class name?.ex-below ``` class Test { public static void staticMethodOne() { System.out.println("Static method one"); } public void instanceMethodOne() { staticMethodOne();//Call static method without mentioning the class ...