date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
424
1,143
<issue_start>username_0: I'm having problem when getting the exact number of days. Given I have date/time which consider hours in counting number of days below the code give me zero days ``` $fisrstDate = new DateTime("2018-03-07 04:46:00"); $secondDate = new DateTime("2018-03-07 11:10:00"); $days=$fisrstDate->diff($s...
2018/03/15
439
1,514
<issue_start>username_0: Consider I have a string like this, and I want to append html tags before and after a specific keyword in the string. ``` let name = "<NAME>"; let keyword = "geo"; ``` After appending the html tags, i want to get result like this, ``` **Geo**rge William ``` I tried something like this, ...
2018/03/15
754
2,394
<issue_start>username_0: I want to check each values from my array if it matches the string, however it doesn't work when i'm using `console.log(/^reg_arr[i]/.test(str1));` but when I use `console.log(/^table/.test(str1));` it works ```js var str1 = 'table football'; var reg_arr = ["table","football"]; for(var i = ...
2018/03/15
825
2,975
<issue_start>username_0: I am working on my small project in which I have a situation in which, we need to show report like below: ``` gender gender_count rejected selected Male 230 50 180 Female 150 20 130 ``` All values in above report(excluding ...
2018/03/15
5,241
12,598
<issue_start>username_0: I have homework where I have to create a C program which sorts 5 numbers from smallest to largest. I know how to easily program this using functions and `if` statements (using `>=` and `<=`). However, the catch is I am only allowed to use `printf` and `scanf`, so I have to calculate all the `>...
2018/03/15
768
2,412
<issue_start>username_0: I almost have this answer. I want to match everything following a colon and a space. So if I have these lines ```none What is your name: Alain What is your major: Computer Science ``` I would like to capture `"Alain"` and `"Computer Science"`. I have this regex ``` (?<=:)\s*\w* ``` Tha...
2018/03/15
909
2,242
<issue_start>username_0: I have two dicts , and I want compare the key first and value second with input 2 : exampal like key ope1 compare with second input and output a tuple ('x','1) as key in the out put we come to the value 'y' and 'z' compare them to second list which shown y --> 2 and z--> 4 and produce a list ...
2018/03/15
607
2,334
<issue_start>username_0: As we know C/C++ has macro function to do text replacement, here is an example: ``` #include #include using namespace std; #define FIRST\_NAME Print("Moon") #define FAMILY\_NAME Print("Sun") string Print(string name) { cout << name << endl; return name; } int main() { string name = FIR...
2018/03/15
360
1,067
<issue_start>username_0: I am attempting to iterate over a string to check for punctuation. I've tried to use ispunct() but am receiving an error that there is no matching fucntion for call to ispunct. Is there a better way to implement this? ``` for(std::string::iterator it = oneWord.begin(); it != oneWord.end(); it+...
2018/03/15
1,928
6,158
<issue_start>username_0: It seems like in **Swift 4.1** `flatMap` is deprecated. However there is a new method in **Swift 4.1** `compactMap` which is doing the same thing? With `flatMap` you can transform each object in a collection, then remove any items that were nil. **Like flatMap** ``` let array = ["1", "2", n...
2018/03/15
776
2,745
<issue_start>username_0: I am currently trying to publish a gem to rubygems.org and having some difficulty. I have built the gem on my system, but when I go to push it to rubygems, I am receiving this error: ``` // ♥ gem push upcoming-0.2.0.gem Pushing gem to https://rubygems.org... Repushing of gem versions is not a...
2018/03/15
734
2,229
<issue_start>username_0: I have a text file containing: ``` 1:PAPER TOWNS,TOMORROWLAND 2:ENTOURAGE,JUPITER ASCENDING ``` and I'm planning to read them into a list which outputs: ``` [[1,'PAPERTOWNS','TOMORROWLAND'],[2,'ENTOURAGE','JUPITERASCENDING']] ``` I have written: ``` def read_file(): fileName = "testi...
2018/03/15
671
1,777
<issue_start>username_0: so far I cannot find any one who has had the same problem as mine: * input: "['atom\_with\_special\_CHARACTERS\_like@123']" * output: ['atom\_with\_special\_CHARACTERS\_like@123'] just that, but after spending all this morning till noon, trying mixing something like: string:tokens, list\_to\_...
2018/03/15
1,260
3,483
<issue_start>username_0: I'm trying to make an html page that that has a map for the main page, and a sidenav for a menu. The problem is that I can't get the sidenav open button to show in front or above the map. It seem that its always behind it, or if I mess with stuff I can make the map disappear and then the sidena...
2018/03/15
1,056
3,712
<issue_start>username_0: I'm trying to retrieve all items from a DynamoDB table that match a `FilterExpression`, and although all of the items are scanned and half do match, the expected items aren't returned. I have the following in an AWS Lambda function running on Node.js 6.10: ``` var AWS = require("aws-sdk"), ...
2018/03/15
1,015
3,014
<issue_start>username_0: Similar to this Fiddle I found, <http://jsfiddle.net/JBjXN/> I'm attempting to have it so when I select an option from **HTML** ``` Select a Show ============= Show 1 - May 9th 2017 Show 2 - May 10th 2017 Show 3 - May 11th 2017 ``` It will then change the value of my tag from *"Select...
2018/03/15
1,113
3,498
<issue_start>username_0: I have a few components that need to use same reference data, but I don't quite know how to do it. I want to write just one http service which collects the data and one function which returns the data. And I want to use that function everywhere in my components by importing the service. Here ...
2018/03/15
972
2,972
<issue_start>username_0: I have the name of a test class (as a string), eg.`"Reports::SalesReportTest"`. Without loading all the test files into memory, how can I find out which file Ruby *would have* loaded for this test-class to work? To rephrase, is there a function which takes a class/module name (as a string), an...
2018/03/15
1,218
3,520
<issue_start>username_0: I have a php array like below. ``` $array1 =Array ( [date_stamp] => 31/01/2018 [over_time_policy_id] => 3 [over_time] => 04:00 [over_time_policy-2] => 02:00 //this [schedule_working] => 00:00 ...
2018/03/15
968
3,021
<issue_start>username_0: The reason I want todo this is so I can open up a Embeded youtube video in Full screen. At the moment, if I click on the Webview it opens up the youtube video into the native IOS video player. This is what I want. However, I need to be able todo this programatically without the client clickin...
2018/03/15
1,174
4,013
<issue_start>username_0: I was reading Programming: Principles and Practice Using C++ (2nd Edition) I found this question: * Write a program that consists of a while-loop that (each time around the loop) reads in two ints and then prints them. Exit the program when a terminating '|' is entered. Here is what I'...
2018/03/15
595
2,432
<issue_start>username_0: Below I am describing the sequence of events triggered by clicking on the `NavItem` of my app: I have a `ControlledTabs` `React` component that has a child `MarkerGenesChart` which has a child `ScatterChart`. Inside the topmost `ControlledTabs` component upon switching from one `NavItem` to an...
2018/03/15
808
2,313
<issue_start>username_0: I am new in angular js i want to put filter in `ng-repeat` i have json like this ``` var data = [ {name:test1,b1:{lastValue:0},b2:{lastValue:6},b3:{lastValue:6},b4:{lastValue:0}} {name:test2,b1:{lastValue:6},b2:{lastValue:0},b3:{lastValue:6},b4:{lastValue:0}} {name:test3,b1:{lastVa...
2018/03/15
608
1,772
<issue_start>username_0: Ive looked other questions similiar to my issue but ive been unable understand and resolve issue. ``` ```<issue_comment>username_1: ``` ``` your filterStatus should hold model value ``` ng-repeat = "d in data | filter:filterStatus" ``` Upvotes: 1 <issue_comment>username_2: ```js var app =...
2018/03/15
434
1,748
<issue_start>username_0: I am trying get innerHeight, scrollHeight and scrollTop of a new page after user click the url, ``` driver.switch_to_window(driver.window_handles[-1]) # switch to newest window after user click some link WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.TAG_NAME, 'body'))) d...
2018/03/15
588
2,056
<issue_start>username_0: I'm trying to set a session in codeigniter 3.1.7 but its not properly working. When I do this ``` function test(){ $params = array( 'test' =>'worked', 'base_url'=> base_url(), 'temperture' => 23, 'cart_length'=>'7 items' ); $this->session->set_userdata($...
2018/03/15
820
2,521
<issue_start>username_0: I have `FloatingActionButton` in my app. It is working fine in Android N and O . but it is crashing in Marshmallow. Can any one help me to solve this issue. **Error** ``` Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class androi...
2018/03/15
1,372
4,433
<issue_start>username_0: I am working on a Vue Js 2 application and I'm currently building the store and the different modules to separate out the code. Is there a way to write a common function and share it across all modules? For example, I have a function truncate() that I need to be use in customer.js, cart.js, ad...
2018/03/15
944
3,528
<issue_start>username_0: I have a table View in a View Controller, and within the cells, my text gets cut off when it's too long. How do I get the cell to automatically change based on the content in the cell or get the text to wrap so the text doesn't get cut off? Here's an [image](https://i.stack.imgur.com/hN7kB.png)...
2018/03/15
1,400
4,609
<issue_start>username_0: This is my **api**: ``` exports.getService = function(req, res) { var limit = 10; // number of records per page var offset = 0; Service.findAndCountAll({ raw: true, where: { shop: req.user.shop } }).then((data) => { var page = req.pa...
2018/03/15
1,578
4,342
<issue_start>username_0: I'm trying this mapgroups function on the below dataset and not sure why I'm getting 0 for the "Total Value" column. Am I missing something here??? Please advice Spark Version - 2.0 Scala Version - 2.11 ``` case class Record(Hour: Int, Category: String,TotalComm: Double, TotalValue: Int) val ...
2018/03/15
779
2,893
<issue_start>username_0: In [React v16.2.0](https://reactjs.org/docs/react-api.html#reactchildren), there is a new API call `React.Children`. I am curious what's the different between `React.Children` and use `children` directly. For example, if I want to manipulate the children content, I can do the trick in both me...
2018/03/15
746
2,894
<issue_start>username_0: I want to interact with a smart contract using web3js. Every example will start with following ```js var Web3 = require('web3'); var web3 = new Web3('http://localhost:8545'); // or var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545')); ``` I don't understand the use o...
2018/03/15
1,043
3,794
<issue_start>username_0: I am learning to code C++ right now and I've been struggling to finish this task for a few days as I couldn't find good examples online: basically, I have to create an entity called Students and all its attributes such as name, code and cardnumber must be created, accessed and removed dinamical...
2018/03/15
642
2,212
<issue_start>username_0: here is my code below ``` folder_results = Dir.foreach(Dir.pwd) {|x| File.extname(x) } ``` ive also tryed: ``` folder_results = Dir.foreach("nice/") {|x| File.extname(x) } ``` Here is my Ruby cmd errors, Ive attempt this many times , in many different ways you can see the ruby path used ...
2018/03/15
1,880
5,772
<issue_start>username_0: Anyone having this problem on native partitioned tables? Partitioned table has 7202 partitions. No partition contains more than 50 records. Partitioning is done on a foreign key. Any delete operation i.e. ``` delete from contacts where id = ? delete from contacts where id = ? and account_i...
2018/03/15
502
1,989
<issue_start>username_0: I am using ember simple auth and when I log out and the session invalidates I am redirected back to the root of the site. How do I redirect it to the login route on invalidate session?<issue_comment>username_1: You can use this for read session ``` this.get('session.data.currentUser') ``` h...
2018/03/15
1,431
6,192
<issue_start>username_0: I am trying out dagger2 and want to inject a presenter into the activity, i searched the internet as to why the presenter is null but then i get different implementations of injecting an activity with several modules. Can someone please help me understand where i am going wrong when trying to c...
2018/03/15
922
2,512
<issue_start>username_0: ``` #!bin/bash file=txt.cfg v4=45frsgf n=24 ng=23jhjghg for i in {1..3} do if ( $i == 3 );then sed -i 's/host=.*/host = (\n(0x'$v4',0,'$n',0x'$ng',1,))/' $file else sed -i 's/host=.*/host = (\n(0x'$v4',0,'$n',0x'$ng',1,)),/' $file done ``` On appending i get something like this in my fil...
2018/03/15
499
2,035
<issue_start>username_0: Is it necessary to compulsory use autolayout to just use of stackview suppose i have made whole project without autolayout, now for particular screen i have to use the Stackview to equally divide the number of label inside the view. is there is any solution for that.. **PROBLEM** actually i h...
2018/03/15
443
1,330
<issue_start>username_0: Consider following code: ``` #include #include #include class Foo; class Foo { public: Foo(int i): id(i) {} typename std::list>::iterator i2; int id; }; int main() { std::list> l; auto f1 = std::make\_shared(1); f1->i2 = l.end(); l.insert(f1->i2, f1); std::cout << f1->id << std:...
2018/03/15
1,920
6,452
<issue_start>username_0: I have a tableView and a UITextView inside it. I am trying to add data from JSON to the table view but it is not shrinking/expanding according to size. I have tried a lot of forums and methods. The main problem is - if it starts expanding/shrinking with height, it stops shrinking/expanding an...
2018/03/15
227
856
<issue_start>username_0: Can I prevent the colour of the status bar becoming `colorPrimary`? I mean, I do not want to change the status bar colour, and leave it as it is (system default). I have searched Google for this, and the answer was hiding the status bar. But I do not want to hide it. I also do not want to cha...
2018/03/15
420
1,491
<issue_start>username_0: I am trying to hide and remove the space of the `MainUIView`.I tried to make the `MainUIView` `heightConstarint` to `0` . But it is not hiding the views inside them. I want to hide all the view and labels inside the `MainUIView`. hope you understand my problem.Thank you in advance Here is my ...
2018/03/15
5,285
15,164
<issue_start>username_0: I generate following structure for menu dynamically using recursive function. ``` * [Home](/en/) * [Menu 1](/en/) * [Menu 2](/en/menu2/) + Menu 2.1 + Menu 2.2 * [Menu 3](/en/menu3/) * [Menu 4](/en/menu4/) * [Menu 5](/en/menu5) + Menu 5.1 + Menu 5.2 * [Menu 6](/en/menu6/) ``` I want to ge...
2018/03/15
247
919
<issue_start>username_0: Following is the code which I'm using to upload file: ``` java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:1012) ```<issue_comment>username_1: You need to set correct permission for file creat...
2018/03/15
1,329
4,423
<issue_start>username_0: I have an untidy DataFrame of Tweet objects. There are two columns that contain lists: `hashtags` and `expanded_urls`. I'm trying to follow tidy data principles by keeping only 1 value at a row/column index. EDIT: This question was marked as a duplicate of [this answer](https://stackoverflow.c...
2018/03/15
830
2,470
<issue_start>username_0: hi i have this test data i want to get result something like this ``` na ===> not available error ===> error ok ===> ok arr1 = ['na','na','ok','ok','na'] => na arr2 = ['ok','ok','ok','ok','error'] => error arr2 = ['ok','ok','ok','ok','ok'] => ok ```<issue_comment>username_1: I reassig...
2018/03/15
795
3,225
<issue_start>username_0: I'm trying to pass a formatted string into my function, but when the email is sent the text does not appear line by line, which is what I want. ``` var bodySummary = nominatorName + "\n" + nominatorRegion // Run email Cloud code Parse.Cloud.run("sendEmail", { ...
2018/03/15
1,034
2,988
<issue_start>username_0: I have sql query like this where the input is `@year = 2017` while the column format is `'2017-01-01 05:02:45.000'`. And I would like to tune this query because It has very long execution time. ``` DECLARE @Device_List VARCHAR(500) = 'MKV005, MKV007, NWTN01, NWTN03, QUEEN02, MKV009'; DECLARE ...
2018/03/15
1,133
4,339
<issue_start>username_0: When attempting to run a script, I am getting an error message. Here is my script: ``` $saveto = "C:\scripts\Distribution Groups.txt" filter get_member_recurse { if($_.RecipientType -eq "MailUniversalDistributionGroup") { Get-DistributionGroupMember -ResultSize "Unlimited" $_.Name...
2018/03/15
514
1,698
<issue_start>username_0: How can I loop values in controller send it to view in CodeIgniter I have tried with below code **Controller** ``` public function getdata() { $data = $this->Mdi_download_invoices->download_pdf_files(12); foreach ($data as $d) { $mpdf = new \Mpdf\Mp...
2018/03/15
421
1,819
<issue_start>username_0: I was wondering if there's a difference between, for example, using: LENGTH var\_1 $12.; INPUT var\_1 $; vs INPUT var\_1 : $12.; when reading in standard input from datalines or an external file;<issue_comment>username_1: Both do the same job. @tom has detailed and nice answer Upvotes: 0 <...
2018/03/15
627
2,410
<issue_start>username_0: I have two sheets . **sheet-1** contains names in column A like 1) Max 2) Sam 3) Ram **sheet-2** also contains the name in column A but with some specific indicators in column B LIKE COL"A" - 1) Max , 2) Sam, 3) Ram COL"B" - 1 , 2, 1 so as you can see in **sheet-2** i have " 1" in COL...
2018/03/15
287
917
<issue_start>username_0: **Ionic gallery album** I can able to view all the images in grid format,if i select one among them,i need to start the ionic slide image from that.. **SAMPLE CODE** ``` ![]() ``` **NOTE:** images.imageUrl - array which contain all images<issue_comment>username_1: I would say that there...
2018/03/15
363
1,141
<issue_start>username_0: I want to format RIGHT cells based on specific cells' value in a row For example, in the picture, in row 1 I set: A1 = A, D1 = B and G1 = C then right cells of them will be formatted in different format. In this same row, when we change position of A, B, C to another cell the format will be ...
2018/03/15
524
1,661
<issue_start>username_0: I have a issue. I have a string that contains a pattern and if string contains that pattern then it should be stored inside an variable. ``` var pattern = new RegExp(/@([0-9]+)/i); if(pattern.test('@2 ajshfd @32 asd') // here i need to store the matched string inside a variable and replace it ...
2018/03/15
896
3,112
<issue_start>username_0: I have the following DF, ``` +-----+--------------+----------+ |level|var1 |var2 | +-----+--------------+----------+ |1 |[id, id1] |[name] | |2 |[add1] |[city1] | |3 |[add2] |[city2] | +-----+--------------+----------+ ``` and I would like to s...
2018/03/15
338
1,062
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/51zQ4.png)](https://i.stack.imgur.com/51zQ4.png) I'm new to python pandas. Need some help with deleting a few rows where there are null values. In the screenshot, I need to delete rows where `charge_per_line == "-"` using python pandas...
2018/03/15
793
2,255
<issue_start>username_0: I'm trying to fetch below string from a content, which is part of a table row extracted from pdf. ``` $import re $re.findall(r'\s\d+\s[Trillion$]+', '2 4334 Rigid Tall 54 Trillion somr text') $[' 54 Trillion'] ``` This is valid, but if string contains some invalid characters it returns empt...
2018/03/15
727
2,212
<issue_start>username_0: I have an IOT project and want to use Druid as Time Series DBMS. Sometimes the IOT device may lose the network and will re-transfer the historical data and real-time data when reconnecting to the server. I know the Druid can ingest real-time data over http push/pull and historical data over htt...
2018/03/15
2,136
5,729
<issue_start>username_0: I am trying to query two different tables (`CALL_HISTORY` and `HUB_DIRECTORY`) to find all the call records that are made between a 'hub store' and a 'spoke store'. Each call has a `CallID` field and an entry is made with the id of the store that initiated the call and then a separate entry is ...
2018/03/15
595
1,988
<issue_start>username_0: I wanna append string to a text file at beginning and end of proc sql statment, I tried like below ``` libname DXZ 'libpath'; %macro processlogger(msg); filename logfile '../Processlog/processlog.txt'; data _null_; file logfile; put "%superq(message)"; run; %mend; %processlogger ('Begin'); p...
2018/03/15
2,688
7,461
<issue_start>username_0: I am trying to make a switch button by using HTML elements. But I can't do animation for this. Here I have tried to use `transition` CSS3 property. The transition will work for some elements only and its doesn't work as expected for `switch-group:before` element. Is there any way to improve mor...
2018/03/15
697
2,445
<issue_start>username_0: When I try to retrieve time from MySQL and set it to a `JLabel`, it gives me an error. > > java.sql.SQLException: Illegal hour value '50' for java.sql.Time type > in value '50:51:05. > > > Can anyone suggest me how to fix this? Code is as follows. ``` String sql = "SELECT SEC_...
2018/03/15
741
2,878
<issue_start>username_0: I have returned some raw JSON from an angular HTTPClient GET request and I am unsure how to now bind the properties of my JSON object to my html dynamically. I would usually think to just store the returned JSON object into a variable and then reference it where I need it using dot notation, ...
2018/03/15
592
1,974
<issue_start>username_0: I am new to `Angular JS`, when I tried to get and print out some `JSON` data using `$scope` variable, but double curly braces just don't work as i thought it would do. HTML: ``` YYQAngularJS haha {{ p.name }} ``` JS: ``` $(window).on("load",function () { var $myApp = angular.modu...
2018/03/15
567
1,543
<issue_start>username_0: I have a fol df: ``` Zip | Name | id | abc | xyz | 1 | def | wxz | 2 | abc | wex | 3 | bcl | rea | 4 | abc | txc | 5 | def | rfx | 6 | abc | abc | 7 | ``` I need to group all the names that contain 'x' based on same Zip using scala Desire...
2018/03/15
259
755
<issue_start>username_0: ``` $a=ls | grep test | wc -l ``` I want to store wc -l count in a variable, I don't shell scripting<issue_comment>username_1: Just use backtick (`) ``` $ a=`ls | grep test | wc -l` $ echo $a 1 ``` Upvotes: 1 <issue_comment>username_2: On bash like shells (zsh etc.), you can do ``` a=$(l...
2018/03/15
323
1,242
<issue_start>username_0: I currently have 3 fields in a table: id, client\_id, username The client\_id and username combination should never be duplicates. The original thought was to use a composite primary key for client\_id and username. This however did not allow my "ID" field to auto increment as it was not prim...
2018/03/15
531
1,855
<issue_start>username_0: As the title says I am trying to create a function that achieves it. Here is my JavaScript: ``` var clickCount = 0; var colors = ["red", "blue", "green"]; function changBgColor(color) { var bodyTag = document.getElementsByTagName("body"); bodyTag[0].style.backgroundColor = color; } ...
2018/03/15
898
3,477
<issue_start>username_0: I am taking a business applications course in Swift and am having trouble running my code. I think I have all the correct code in place to run this. I have a JSON file that I have to import into the app and push the data from the json file into the tableView. Something is breaking in the "func ...
2018/03/15
523
1,910
<issue_start>username_0: Facing error of undefined offset. If I remove `$ship = $ship->toArray();` then the data of a particular table becomes N/A. I Need to show the name under that particular table. Controller ``` ->addColumn('captain', function ($ship) { $ship = $ship->toArray(); $...
2018/03/15
2,157
8,397
<issue_start>username_0: In my project I wanted to read data from a file and update the DataGridView to a simple List. I wanted this so that the list can be updated at run time and then upon save wanted the final content of the list to be updated to a file. In most of the solutions seen on google search I came up with...
2018/03/15
418
1,546
<issue_start>username_0: Does the Azure CLI SDK use the Azure Rest API internally? And if so any further details on how these relate to each other internally would be great.<issue_comment>username_1: Yes, you are right. Azure CLI uses Azure Rest APi. If you use `--debug`, you will find the API the command use. For exa...
2018/03/15
450
1,629
<issue_start>username_0: I was wondering if there was a way to select all text on a web page, and copy it to clipboard on button click. I have a PHP script that `echo`s the output of `dmesg` on my server, and I want a way to copy all text on button click.<issue_comment>username_1: Yes, you are right. Azure CLI uses Az...
2018/03/15
2,762
9,332
<issue_start>username_0: I want to make a realistic typing effect with sound. I'm using Typed.js, I have already create a simple example. Here is my code : ```js var keystrokeSound = new Audio('http://www.freesfx.co.uk/rx2/mp3s/6/18660_1464810669.mp3'); function playSound () { keystrokeSound.pause(); key...
2018/03/15
2,432
8,359
<issue_start>username_0: When I declare the class in python as below **slots** work ``` class CSStudent(object): stream = 'cse' __slots__ = ['name', 'roll'] def __init__(self, name, roll): self.name = name self.roll = roll ``` When I declare the class in python as below **slots** doesn't work ``` class ...
2018/03/15
2,910
9,462
<issue_start>username_0: I've been trying to apply this preloading screen in angular 4. Here is the code of my index.html [Here](https://codepen.io/cjnucette/pen/ZaWjLR) is the link to the code pen of this css effect . I don't want any other preloading screens . Please be specific why this is not working not even in...
2018/03/15
387
1,344
<issue_start>username_0: I have created a ListView with a scrollBar. Like this [![enter image description here](https://i.stack.imgur.com/ngICQ.png)](https://i.stack.imgur.com/ngICQ.png) Here is my code, ``` ListView { id: listView; ScrollBar.vertical: ScrollBar { id: bar //x :100 doesn't wor...
2018/03/15
695
2,492
<issue_start>username_0: Given I have the following information: ``` string Sentence = "The dog jumped over the cat and the cat jumped above the mouse." string startword = "jumped" string endword = "the" ``` My requirement is how to program in C# to count the number of occurrences that the Sentence contains the star...
2018/03/15
595
2,307
<issue_start>username_0: As an effort to automate the (Android) build and test process, I configured an *AWS code pipeline* that will 1st get the code from *GitHub* and trigger a build (via *aws codebuild*) Build is shown as completed successfully but the artifacts (apk file) generated as a result of the build process ...
2018/03/15
558
2,460
<issue_start>username_0: [This question](https://stackoverflow.com/questions/14820450/best-splittable-compression-for-hadoop-input-bz2) tells that lz4 compression format is splittable and suitable for using in hdfs. Ok I have compressed 1.5 Gb data into 300 Mb lz4 file. If I try to read this file via spark - what the m...
2018/03/15
1,262
4,804
<issue_start>username_0: I started working on Google Script. I wonder if there is some way to print in google script( be it text or google sheet data ) when a cell event is generated on the Google sheet. Any suggestion would be helpful. Thanks.<issue_comment>username_1: A Google Script cannot use system functions suc...
2018/03/15
680
2,524
<issue_start>username_0: I have this data access interface: ``` public interface UserDao { void loadUsers(Handler>> handler); } ``` And it's used in a service like this: ``` public class UserService { private UserDao userDao; public UserService(UserDao UserDao) { this.userDao = userDao; } public...
2018/03/15
296
1,020
<issue_start>username_0: I have table called total\_table in which i have 3 columns requested\_amount,total and difference. [![total_table](https://i.stack.imgur.com/p1ur4.png)](https://i.stack.imgur.com/p1ur4.png) I want the query to calculate the difference value of requested\_amount and total columns (requested\_a...
2018/03/15
1,098
4,612
<issue_start>username_0: I am new to android studio. I want to learn how to convert webview to app. I have written the code for the same : `activity_main.xml` is as follow : ``` xml version="1.0" encoding="utf-8"? ``` `AndroidMenifest.xml` is as follow: ``` xml version="1.0" encoding="utf-8"? ``` `Main Activity....
2018/03/15
803
3,248
<issue_start>username_0: I am trying to add a new column in old sqlite database tables. The tables are dynamic. I mean they are created when app users add a specific data in the app. The tables names have a similar suffix. Prefix depends upon user input. Now, in android, how can I add a new column in those tables wit...
2018/03/15
268
1,020
<issue_start>username_0: Originally, when I tried to do this: ``` ans = Book.new Book.last.attributes ``` It used to throw me a warning: ``` WARNING: Can't mass-assign protected attributes for Book: id ``` And the new object created without id being copied. But now when I upgraded from rails 4.2.8 to 4.2.10, and...
2018/03/15
308
1,024
<issue_start>username_0: I am trying to compile this code and it is returning a syntax error in the last line:(, have any one idea why ``` let nth_index str c n = let i = 0 in let rec loop n i= let j = String.index_from str i c in if n>1 then loop (n-1) j else j ```<issue_c...
2018/03/15
288
1,112
<issue_start>username_0: ``` xml version="1.0" encoding="utf-8"? ``` After generating app from source code two error message displayed although it does not affect the app by any mean, but it really looks odds when someone open my app and those ugly errors shown before start the apps. **Error :-** > > 1. missing p...
2018/03/15
223
928
<issue_start>username_0: Is there anyway to detect if the Android operating system (not the app) crashed and rebooted the phone? It would need to be for an app to detect when that has occurred within the app itself--so looking at logs as the developer isn't a suitable option. Edit: I'm already using the receiver to m...
2018/03/15
1,339
2,590
<issue_start>username_0: In R, what would be the best way to separate the following data into a table with 2 columns? March 09, 2018 0.084752 March 10, 2018 0.084622 March 11, 2018 0.084622 March 12, 2018 0.084437 March 13, 2018 0.084785 March 14, 2018 0.084901 I considered using a fo...
2018/03/15
710
2,974
<issue_start>username_0: I am using SQLServer with C#. ``` foreach(var item in list) { TransactionOptions transOption = new TransactionOptions(); transOption.IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted; using (TransactionScope scope = new TransactionScope(TransactionScopeOption.R...
2018/03/15
581
2,418
<issue_start>username_0: I have an angularjs application, and I am using [this directive](https://github.com/kuhnza/angular-google-places-autocomplete) to get the google-maps-api places autocomplete in the following input field . ```html ``` The issue is that the input field's style is getting set as `display: none;...
2018/03/15
1,509
4,652
<issue_start>username_0: For example) ``` var str = "ABCDEF" let result = str.someMethod("B") result[0] // "A" result[1] // "B" result[2] // "CDEF" let result2 = str.someMethod("A") result2[0] // "A" result2[1] // "BCDEF" var str2 = "BBBAAA" let result3 = str2.someMethod("B") result3[0] // "B" result3[1] // "B" res...
2018/03/15
610
2,019
<issue_start>username_0: I read the documentation on Procs in the Crystal Language book on the organizations’s site. What exactly is a proc? I get that you define argument and return types and use a call method to call the proc which makes me think it’s a function. But why use a proc? What is it for?<issue_comment>user...
2018/03/15
629
1,993
<issue_start>username_0: Looked at *all* the articles on search for this and no answers that work -- on Ubuntu 16.04 I'm getting: ``` PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/msqli.so' - /usr/lib/php/20151012/msqli.so: cannot open shared object file: No such file or directory in...
2018/03/15
438
1,323
<issue_start>username_0: I'm trying to import modified `WITs` to a existing project. But, It was showing the below error: > > Microsoft.TeamFoundation.WorkItemTracking.Server.ProvisioningImportEventsCallback > > > Earlier it was working fine. But, now the issue started. What could be the possible solution for t...
2018/03/15
570
2,081
<issue_start>username_0: I have a textbox where i can type double quoted words like: hello i am "steve" and i can successfully insert the string into my database after mysqli\_real\_escape\_string ``` ``` php below: ``` $text_data = $_POST['description']; // hello my name is "steve" $final_text = mysqli_real_escap...