date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/02
3,073
11,312
<issue_start>username_0: I made a simple form in Flask using Flask-WTForms where a parent can register itself and his children. The parent can register as many children as he wants, by clicking on the button 'Add child'. WTForms makes this pretty easy to implement by using the FieldList feature. However, after clickin...
2018/03/02
2,943
10,976
<issue_start>username_0: I am trying to input time using HTML, ``` ``` And ``` @RequestMapping(value = "/createData") String createData(@("startDate") Date startDate, Model model) { String url = "http://localhost:9090/server/create"; JSONObject json = new JSONObject(); json.put("s...
2018/03/02
388
1,205
<issue_start>username_0: I have the following existing integer number: 128 = 1000.0000 And I want to shift the following integer number by 2 positions to the left ... 15 = 0000.1111 ... into the existing number to bitindex 6: `MyResult` should be = 1011.1100 = 188 I've tried this, but the result is wrong. Also i...
2018/03/02
1,158
3,803
<issue_start>username_0: A problem occured while building a chart. Studio doesn't accept data in this form. Actually problem is only with month's names. Without them code works fine. MPAndroidChart version 3. In official examples i understood nothing). Studio says:Error:(46, 24) error: constructor BarData in class BarD...
2018/03/02
1,355
4,375
<issue_start>username_0: I create a marco array using: ``` proc sql; select distinct variable into:numVarList separated by ' ' from Map_num; ``` I used: ``` %put &numVarList{1}; ``` and it gave me all variables:`var1 var2 var3{1}` how to use index to pick out macro array variable? --- update 20180305 it is str...
2018/03/02
245
802
<issue_start>username_0: Im trying to access some data I have binded to a component with no luck. How should I do that? My component: ``` export default { name: 'component-vallingby', data() { return { } }, created() {}, methods: {} ``` } Here's where im rendering it. Offer is an object: ``` ```<issu...
2018/03/02
463
1,906
<issue_start>username_0: So this is the query: ``` from c in Contents join cs in DepartmentSharings on c.ContentId equals cs.ContentId select c.PrivateCategoryId.Value ``` When I run this I get: > > A database operation failed while processing the request. > InvalidOperationException: An exception occurred while...
2018/03/02
1,210
5,281
<issue_start>username_0: Let's say I have a function ``` private RuntimeException foo() { return new RuntimeException(); } ``` and exception there is not thrown and it can be processed like ``` throw foo(); ``` or return value can be assigned to a variable ``` RuntimeException e = foo(); ``` But the functi...
2018/03/02
5,451
13,937
<issue_start>username_0: I am trying to include an editor in an Active Admin setting. I am able to `bundle install` every version of it up to 1.1.0, but when I run `rails s` and try to access the admin page I get the following error: ``` Sass::SyntaxError in Admin/keywords#index Showing /Users/xxxxx/.rvm/gems/xxxxx/g...
2018/03/02
1,290
4,084
<issue_start>username_0: I cant see my xampp settings: using this URL `http://localhost/xampp/` This is the **result** im looking for: [![This is what im trying to see](https://i.stack.imgur.com/26cc3.png)](https://i.stack.imgur.com/26cc3.png) I dont know why but if i look at examples, everyone's URL looks like `ht...
2018/03/02
1,203
4,309
<issue_start>username_0: ``` # Given three ints, a b c, print True if b is greater than a, # and c is greater than b. However, with the exception that if # "bOk" is True, b does not need to be greater than a. a = int(input()) b = int(input()) c = int(input()) bOk = bool(input()) print(((bOk and c > b) or (b > a a...
2018/03/02
321
1,180
<issue_start>username_0: Lets say I have a button and an edit text in a layout. How do i send an email that says some messages to that address which is the edit text in android studio ?<issue_comment>username_1: First Get text from your email edittext. Then use this email to whom you are sending email. ``` String emai...
2018/03/02
724
3,029
<issue_start>username_0: I have the following code that copies a Master worksheet and renames it using Application.Inputbox. ``` 'Generates input box to name the new Sheet and checks duplicate names Set wks = ActiveSheet Do While sName <> wks.Name sName = Application.InputBox _ (Prompt:="Enter N...
2018/03/02
242
690
<issue_start>username_0: lets say I have the following string : ``` var text = "A_B_C_190" ``` I want to be able to extract the number at the end (the last 3 chars after the last \_ ) I tired : ``` text.substr(text.indexOf('_'), -1) ``` but that gave me null<issue_comment>username_1: You can use `string.prototy...
2018/03/02
582
2,320
<issue_start>username_0: I want to change the tab from Person\_Info to Morphology on the click of NEXT button. I am handling the button click in the respective fragment class i.e. in PersonInfo class something like in the code [![enter image description here](https://i.stack.imgur.com/Nzhlv.png)](https://i.stack.imgu...
2018/03/02
750
2,363
<issue_start>username_0: I need to write a simple code, but I'm having an issue with the syntax. I need to fill up an array with moment.js objects. This array contains all the days that are between 2 dates. This is my logic to achieve this. * Get monday of the first week of a month (in this case that would be 26/02)....
2018/03/02
855
3,151
<issue_start>username_0: I'm subscribe firebase list in ionic2 project. This is my function inside the service: ``` getLastOrderBeta() { return this.db.list(`Ring/${localStorage.getItem('localstorage')}`, { query: { equalTo: false, orderByChild: 'status', limitToLast: 2, ...
2018/03/02
1,027
3,612
<issue_start>username_0: I have a simple form and I input the data into a database, that works fine. Now i would like to load one option from a different table, that also works fine. What doesnt work fine is when I put those 2 things in one. Somehow I am able only to do one of those things, the loading options dont wor...
2018/03/02
1,016
3,301
<issue_start>username_0: Why does the following code: ``` import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class TestProject { public static void main(String[] args) { String dateString = "2018-03-01T14:52:48Z"; DateTimeFormatter dtf = DateTimeFormatter.ISO_INSTAN...
2018/03/02
2,740
7,452
<issue_start>username_0: I have a structure like this ``` +-----+-----+------------+----------+------+----------------------+---+ | Row | id | date | time | hour | description | | +-----+-----+------------+----------+------+----------------------+---+ | 1 | foo | 2018-03-02 | 19:00:00 | 8 | ...
2018/03/02
1,516
4,288
<issue_start>username_0: I need to catch the event RunflowJob in my Cloudwatch EventRule in order to tag AWS EMR starting clusters. I'm looking for this event, because i need the username and account informations Any idea? Thanks<issue_comment>username_1: Interesting problem ... I tried the following: * Create a ...
2018/03/02
411
1,288
<issue_start>username_0: How to check string on date in laravel? I want to handle the situation if string doesn't date for example like "it's some not date string". I try it code, but it doesn't work I have next error: ``` InvalidArgumentException : A two digit month could not be found Data missing ``` My code: ...
2018/03/02
460
1,735
<issue_start>username_0: How to get an activity by its `id` *(unique uuid)* or by `foreign_id + time`? I could not find it in documentation. All information there represents how to get feed in pages. Not a single activity.<issue_comment>username_1: The general goal should be to use Stream as a secondary data store. Yo...
2018/03/02
407
1,177
<issue_start>username_0: How to concat all this array into a single array: ``` [Array(10), Array(10), Array(10), Array(10), Array(10), Array(10), Array(10), Array(2)] ```<issue_comment>username_1: Use `reduce` and `concat` ``` var output = arr.reduce( (a, c) => a.concat(c), []); //assuming arr is the input array ``...
2018/03/02
612
2,573
<issue_start>username_0: When I go to `/add` endpoint my Controller creates a `Contact` object and generates an ID for it. This ID is then properly passed to a Thymeleaf view and showed on the webpage. When the form from the view is submitted (with POST) to another endpoint in my Controller all of the properties are pa...
2018/03/02
1,917
6,407
<issue_start>username_0: When opening the `pom.xml` in Eclipse using the "Maven Pom Editor" and switching to the tab `pom.xml` I cannot format the file. Hitting `Ctrl+Shift+F` in an totally non-formatted file does not do anyting. When going via the context menu `Source -> Format` The `Format` option is disabled. When...
2018/03/02
164
588
<issue_start>username_0: I wanted to combine the same values in CATEGORY in this table, but as you can see the dates in the DATE column do not match up. Is there a way I can ignore this and just take the latest date in SQL?<issue_comment>username_1: Right-click on the pom.xml file > go-to source > click Format. Upvotes...
2018/03/02
600
1,826
<issue_start>username_0: I wrote this ```js myObj = { x: 1, y: 2, z: 3, }; myObj[Symbol.iterator] = function* () { for (let val of Object.values(this)) yield val; }; for(let x of myObj) console.log(x); // 1,2,3 ``` This works, but looks unnecessary verbose to me. Is there a wa...
2018/03/02
819
2,659
<issue_start>username_0: How can I use sortable and inline froalaEditor on a html? The ui sortable <https://jqueryui.com/sortable/> The editor: <https://www.froala.com/wysiwyg-editor/examples/inline> My JS code: ``` $('.row').sortable(); $('div.container').froalaEditor({ toolbarInline: true, toolbarButtons: ...
2018/03/02
577
1,845
<issue_start>username_0: //This is my HTML code wherein am returning a list from backend. `* {{ opt }}` //This is my controller.js program ``` $scope.getDetails =function(data){ var id=data.id; $('#addNode3').modal('show'); UpgradeService.getDataById(id).then(function(data){ if(da...
2018/03/02
365
1,398
<issue_start>username_0: could somebody explain how the Expo client decides whether to refresh my app or use the current version cached (~already downloaded) in the client? When I'm pushing out a new version with `exp push`, the Expo app (on Android) doesn't seem to pick it up, unless I clear all data of the app. I t...
2018/03/02
1,420
5,502
<issue_start>username_0: Firstly a Disclaimer: I have read dozens of posts with hundreds of answers and yet I have not found a solution. I have attempted to resolve this every which way I can find and yet the UI does not update. I am writing a UWP app as a personal project. In this particular scenario I have a Grid wi...
2018/03/02
911
3,282
<issue_start>username_0: I need to acquire access token for accessing resources in Azure (<https://management.azure.com> endpoint) using REST API. Every article a have read, was counting with Appliction Id. In my case, the Azure tenant was just created (programatically) and I have to create some resources in it. Only ...
2018/03/02
355
1,427
<issue_start>username_0: Is there any way to use the trigger downstream pipeline function when a dependency is built from the Pipeline Maven Integration [plugin](https://plugins.jenkins.io/pipeline-maven) in a declarative Jenkisfile? There is a promising TODO on the Jenkis plugin site. > > Using "withMaven" with "...
2018/03/02
312
1,201
<issue_start>username_0: *This questions targets material-ui 1.0.* When I create a theme with `createMuiTheme`, how can I set, for example for `typography.title`, different styles for different breakpoints? On a component level I can achieve this with something like this: ``` const styles = theme => ({ title: { ...
2018/03/02
531
1,789
<issue_start>username_0: I want to populate *select tag* with data from api get request. Here is my html code ``` Country Please select one @foreach($countries as $country) {{ $country->name }} @endforeach City @{{ city.name }} ``` And now my JavaScript code: ``` new Vue({ el: '#app', data: { select...
2018/03/02
1,340
4,401
<issue_start>username_0: I have two tables user and technician with one to one connection, technician inherits from user. After editing technician information through edit form and saving no update happens on tables user and technician. and no errors as well. Here is my code: Controllers ``` public function edit($id...
2018/03/02
393
1,458
<issue_start>username_0: I copy some code from Online which has the below format code. ``` ( function() { function finder(){ var findval = { find : function(){ console.log("call this Function"); } }; } }); ``` I want to Print `call this Function` I try lik...
2018/03/02
1,219
3,472
<issue_start>username_0: I have two tables Threads: ``` i_id thread_note seq_id 1 ABC 2 2 CDE 2 3 FGH 1 4 IJK 2 ``` Notes: ``` i_id note_text entered_date 1 stack 09/08/2017 5 queue 07/07/2014 3 push 09/07/1996 ``` I want the...
2018/03/02
958
2,689
<issue_start>username_0: Using kendo-saveas i am not able to download more than 1MB files. So need to convert that file as ZIP file. I need some examples to do that. Thank you.<issue_comment>username_1: First, you need to get all `i_id` from all tables in a subquery. Once you have the rows, join this to the two tables...
2018/03/02
1,081
3,292
<issue_start>username_0: *A quick disclaimer: I am not having issues, I am simply asking for guidance. I don't feel like the other topics provide a guiding point towards a particular style of testing or library rather than just helping other with their actual choice of library and style.* Hey guys! I was thinking, is ...
2018/03/02
293
1,095
<issue_start>username_0: I am doing a simple mapping and the compiler doesn't recognize the record's members. The image shows the type `OpeningHours` itself is clearly ok, with all 3 properties showing: [![Recognized record type with all members](https://i.stack.imgur.com/UF7Gm.png)](https://i.stack.imgur.com/UF7Gm.pn...
2018/03/02
2,384
8,034
<issue_start>username_0: how i can multiple my tables information in one view, i want show my player club not his club\_id : [![enter image description here](https://i.stack.imgur.com/BfcmI.png)](https://i.stack.imgur.com/BfcmI.png) Im sitting and dont understand how to do this last days, i want see result like this :...
2018/03/02
784
2,830
<issue_start>username_0: I'm trying to create an image slider inside my Angular 5 component. The slider has Previous and Next controls which both work fine but I can't get it to slide automatically. ``` import { Component, OnInit, ElementRef, Renderer2 } from '@angular/core'; @Component({...}) export class HomeCompon...
2018/03/02
808
2,622
<issue_start>username_0: To authorize users in phpMyAdmin (when specific condition meets in our application), we create a hidden form (with pre-filled username and password) and automatically (using JavaScript) submit that form so, we are doing this "trick": ``` if($condition) } ``` However, I was unable to find a ...
2018/03/02
835
2,622
<issue_start>username_0: I'm running the following command to launch a `InfluxDB` container. This should create a new databse with the name `defaultdb`. ``` docker run -p 8086:8086 \ -e INFLUXDB_DB=defaultdb -e INFLUXDB_ADMIN_ENABLED=true \ -e INFLUXDB_ADMIN_USER=admin -e INFLUXDB_ADMIN_PASSWORD=<PASSWORD>...
2018/03/02
1,084
3,759
<issue_start>username_0: I'm working on an C++ image viewer for Linux which is created using GTK+3 (gtkmm) for the GUI and Magick++ for image handling. My goal is to support as many image file formats as possible, including animated GIFs. What is the best approach to take a Magick++ Image and draw it in a GTK+3 widget...
2018/03/02
1,321
3,881
<issue_start>username_0: > > SCRIPT1002: Syntax error > index.php, line 4 character 37 > > > I got this error in IE11 and my `.click()` handlers are not working on the page where the error occurs (only in IE11). On lines 1 to 10 I got some standart meta tags so that shouldn't be the problem (I removed them and s...
2018/03/02
365
1,356
<issue_start>username_0: I have table students containing data like given below : ``` id name activity 1 susan 1,2 2 denny 1,2,3 3 ken 3 ``` I want to choose all the data like name and id from this table having activity equal to 2. I have done a sql query using like ...
2018/03/02
3,259
14,104
<issue_start>username_0: I am trying to send the location update to the server in the background App **sometimes** crashes in the background Here is my `locationmanager delegate` ``` func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { if let lat = manager.lo...
2018/03/02
1,357
4,964
<issue_start>username_0: I have an Angular app which is store in a AWS S3 bucket and distributed by Cloudfront. Now I want to distribute my app in multiple languages. I've already translated my angular app and for each language I have on build. So my S3 bucket looks like this: ``` de /index.html /script.js en ...
2018/03/02
1,471
5,481
<issue_start>username_0: I am converting an SVG into a PNG image using Batik, but text that goes on mutiple lines is not rendered correctly. It can occur, in a non-deterministic way, that the text itself is not centered anymore on the final image. As an example, consider this part of the starting SVG: [![enter image ...
2018/03/02
722
2,245
<issue_start>username_0: Can I exclude some urls while using sw precache for generating service worker.Below is my swprecache.config.json ``` module.exports = { navigateFallback: '/index.html', stripPrefix: 'dist', root: 'dist/', staticFileGlobs: [ 'dist/index.html', 'dist/**.js', 'dist/**.css', 'dist/**.ico',...
2018/03/02
1,343
4,252
<issue_start>username_0: I am trying to generate a custom non-geographical map with Leaflet using my own tiles. For the moment I created 10x10 dummy tiles of size 256x256px each with a random solid color using *imagemagick*. They are placed in public/map-tiles/1/map\_x\_y.png where x takes values from 0 to 9 (resp. y)...
2018/03/02
1,001
2,545
<issue_start>username_0: For the array below, I am interested to sort the X-axis according to the y-axis and record the lowest tuple of the lowest X-value. The array is: ``` A = [(537, 14), (537, 12), (538, 13), (538, 14), # (538, 14) should be removed and (537, 14) should be kept (539, 12), ...
2018/03/02
929
3,659
<issue_start>username_0: I use `compile 'org.springframework.retry:spring-retry:1.2.2.RELEASE'`with `Spring Boot 1.5.9.RELEASE`. Configured to retry my method and it works well: ``` @Retryable(value = { IOException.class }, maxAttempts = 5, backoff = @Backoff(delay = 500)) public void someMethod(){...} ``` How to o...
2018/03/02
928
3,664
<issue_start>username_0: I am trying to install oracle bi on Windows 10. I ran the install file and set weblogic and repository, but when I go to this directory:
 > > C:\Oracle\Middleware\Oracle\_Home\bi\bin > > > 
and try to run the config.cmd, the command prompt opens and immediately closes. It doesn’t show m...
2018/03/02
499
1,888
<issue_start>username_0: I'm passing a Laravel Model's dataset to a vuejs2 component via ajax/ axiom and rendering it fine. However, there is a JSON column in the model which stores a valid json object, the data could look like so: `{'key':'value'}` and it's worth noting that I'm working with it without issue in Lara...
2018/03/02
1,284
5,244
<issue_start>username_0: **EDIT:** So I was having some troubles with stack overflow and had to retype some things.... including Weather weatherData={this.state.weatherData} which I accidentally typed incorrectly on here as Weather weatherData={weatherData}. But I did also make a typing mistake on my code and that was ...
2018/03/02
694
2,660
<issue_start>username_0: ``` Ipoint declared as New Point showing the error . ``` "'Point' is ambiguous,imported from the namespace or types 'ESRI.ArcGIS.Geometry,System.Drawing'"<issue_comment>username_1: Change to Regarding why `console.log(this.state.weatherData)` does not show the value that you have set, i...
2018/03/02
689
2,542
<issue_start>username_0: I need to add some style properties to my component selector in my global style sheet, but the added style doesn't affect the selector element in the browser. how to accomplish this to affect the style on the component selector element. my component file ``` @Component({ selector: 'admin-da...
2018/03/02
912
3,164
<issue_start>username_0: I want to do this exercise which I have done well with the following code but I want to do it with the second code but I don't know how to introduce two lists in a Terminal: **Exercise: Create a function that receives two input parameters of type list and that returns a list where the two list...
2018/03/02
692
1,787
<issue_start>username_0: How to select XML list values as comma separated and decorated with custom format(eg:x) Input sample, it will have multiple rows ``` 1 | 2 | ``` Output Required ``` 1 | xAAAx,xBBBx 2 | xCCCx,xDDDx ``` My Progress ``` DECLARE @xml XML SELECT @xml = N' ' Declare @TempT T...
2018/03/02
1,229
4,398
<issue_start>username_0: Problem: When you search in the main input the API returns all cities (also the bigger ones that doesn't have postal\_codes). I want to make a search field that gives predictions mainly by returning postal\_codes. Furthermore is google places API even the right api for the job? Here is the demo...
2018/03/02
2,144
7,511
<issue_start>username_0: I have a list of strings in read from MongoDB (~200k lines) Then I want to write it to an excel file with Java code: ``` public class OutputToExcelUtils { private static XSSFWorkbook workbook; private static final String DATA_SEPARATOR = "!"; public static void clusterOutToExcel(...
2018/03/02
1,111
3,470
<issue_start>username_0: Hi there I am trying to select a range `"A2:H2"` down to the last filled cell based on `column A` (so in this case it should select `"A2:H59"`). The range is not fixed so it cannot be defined with exact numbers. I have the following code, but it selects everything down to the 402nd row even tho...
2018/03/02
837
2,949
<issue_start>username_0: So I'm already logging (log4net) on my own machine using the following configuration ``` ``` Just to test log4net and make sure everything is working, now I want to log on my Azure blob storage, I'm using [log4net.Appender.Azure](https://github.com/stemarie/log4net.Azure) nuget package and ...
2018/03/02
1,338
4,704
<issue_start>username_0: 1) I have Industry dropdown with code(textbox) .Based on Industry drop down value code will change. 2) I have dynamic add/delete for Movie Name and Name of Director here we have 3 columns in table Movie Name ,Director ,Industry Code we can add Movie Name and Name of Director dynamically but ...
2018/03/02
1,236
3,259
<issue_start>username_0: I have two collections Books and Authors. When I do a lookup between these collections I am getting the desired result but I need to rename "\_id" to "id". When I rename those fields, authors "\_id" is being replaced with books "\_id" instead of authors "\_id". Please see below ``` Book.coll...
2018/03/02
943
3,307
<issue_start>username_0: Problem ======= I recently encountered the following message when I pushed to a GitHub repo: `"fatal: HttpRequestException encountered. "` followed by being prompted for my username and password again. From previous searches, [Visual Studio](https://stackoverflow.com/questions/48956927/cant...
2018/03/02
1,464
5,019
<issue_start>username_0: I would like to implement validation for Python 3.6 type annotation within my project. I have a method that uses `__annotations__` dict to check if all attributes of the class have the correct value. It works perfectly for basic types like `int`, `str` or `bool`, but fails for more sophistica...
2018/03/02
429
1,470
<issue_start>username_0: Can anyone give me advice on writing in files. This is in python 3.3. This error message just keeps on popping up. Traceback (most recent call last):Line 28, in file.write(name\_1,"and",name\_2,"have a",loveness\_2,"percent chance of falling in love") TypeError: write() takes exactly 1 argume...
2018/03/02
415
1,417
<issue_start>username_0: I'm struggling with svg icons. I'm creating menu and to do this I have to use several of svg icons. I already know, that if I want to manipulate colour with help CSS (for example when icon is active/hover) I have to use in HTML tag not `![](path-to-icon.svg)`. How can I solve this problem in ...
2018/03/02
250
918
<issue_start>username_0: I have 200 mb exported database file and now I can't import it to hosting database with phpmyadmin because my internet connection is slow. Database from wordpress site. How I can divide it and import to database?<issue_comment>username_1: You can try to zip the mysql database since it is mostly...
2018/03/02
420
1,320
<issue_start>username_0: How to write the output of a subroutine to file? ``` my $logfile="C:/Test/report_p3.txt"; open(my $tt, ">",$logfile) or die "Can not open file"; foreach (@files) { if (($_ ne ".") && ($_ ne "..")) { &getinfo($logdir."/".$_); print $tt &getinfo #Here, I wanna pass the output to the han...
2018/03/02
609
2,056
<issue_start>username_0: Here's what I've got. When I hover the mouse cursor over the polyline, it changes color. ``` onEachFeature: function (feature, layer) { var popupContent = "Sample text in popup."; layer.bindPopup(popupContent); layer.on('mouseover', function(){ layer.setStyle({ color: "...
2018/03/02
700
2,017
<issue_start>username_0: i am this array: ``` var notifiche_eq= ["10/avdvidv","15/jcbscisb","7/ciudsu"]; ``` and i would this output: ``` ["15/jcbscisb","10/avdvidv","7/ciudsu"] ``` so based on numeric characters of each element. I tried this code but doesn't work: ``` var notifiche_eq= ["10/avdvidv","15/jcbsc...
2018/03/02
329
1,193
<issue_start>username_0: I've just started working with Adobe Illustrator and I stuck with a problem of exporting. The names of my layers are renamed after exporting: In Illustrator I have: [![enter image description here](https://i.stack.imgur.com/CEenx.png)](https://i.stack.imgur.com/CEenx.png) Export: [![enter im...
2018/03/02
976
3,250
<issue_start>username_0: I want to select multiple lines and put a cursor at the beginning of each line. Sublime Text can do this with `Ctrl`-`Shift`-`L` select multiple lines: [![enter image description here](https://i.stack.imgur.com/VqeVh.png)](https://i.stack.imgur.com/VqeVh.png) `Ctrl` + `Shift` + `L` and then p...
2018/03/02
483
1,435
<issue_start>username_0: I am wondering how to apply a specific format to the newly available `string array`? ``` mat = [0, 0.4, 0.2 ; 0, 0.6, 0.8] str = string(mat) ``` I would like the resulting `string array` to show always two decimals, followed by the percent sign (such as `sprintf('%.2f%%', str)`). How am I s...
2018/03/02
603
1,871
<issue_start>username_0: Hi, I want to be able to store user input text as a variable to use outside of the definition in Python. But it seems I can only access that variable in the definition itself. Any ideas on how I can make it accessible outside? ``` import tkinter #Quit Window when ESC Pressed def quit(event=No...
2018/03/02
418
1,215
<issue_start>username_0: I'm really sorry I'm a total noob in shell scripting, I looked on the Internet and I didn't find the answer > > => /home/bee/Scripts/chkbsh: 11: /home/bee/Scripts/chkbsh: Syntax error: Missing '))' > > > ``` #!/bin/sh for file in $((gawk '/^#!.*( |[/])sh/{printf "%s\0", FILENAME} {nextfil...
2018/03/02
1,365
5,502
<issue_start>username_0: `UIViewController` needs to hide keyboard inside `viewWillDisappear` or `viewDidDisappear` methods. `UIViewController` stays in memory after disappearing and can be presented again. On first appearance `UISearchBar` is not `firstResponder` and keyboard is hidden. But if I pop `UIViewController`...
2018/03/02
624
2,469
<issue_start>username_0: I'm writing a C++ application on top of a C HAL for an embedded systems. I need to call an object method from a peripheral C handler but I'm having the following issue: The peripheral ISR handler I pass to the HAL has a fixed signature. Because of that I can't pass a public method of a C++ obj...
2018/03/02
955
3,187
<issue_start>username_0: I am trying to set up some legacy project with docker. To do so I have created a main repository with `docker` files and added actual project as a `submodule`. As a result I have: ``` root |- data |- etc | |-php | |-etc |- project | |- .git | |- (actual project files) |- docker-compose.yml...
2018/03/02
1,818
6,592
<issue_start>username_0: I am pretty new in VBA and I have not yet got used to the syntax completely, so I'm sorry if my question sounds stupid. I am working with RequisitePro40 and VBA 7.0 in Word 2010. In one of my modules I have the following loop and If conditions: ``` Dim rqRequirements As ReqPro40.Requirements ...
2018/03/02
822
3,222
<issue_start>username_0: I want run it using http get, but it not show nothing, Where is the error?. Angular http.get easier to get JSON and doing ngFor and show, but on React is little special. So, in conclusion I don't like do a simple "import data from './data.json'", I need load json from the cloud. ``` import Rea...
2018/03/02
1,265
4,545
<issue_start>username_0: On this [site](http://en.cppreference.com/w/cpp/algorithm/search) it states that one of the constraints for a binary predicate passed into `std::search` is that: > > The types Type1 and Type2 must be such that objects of types ForwardIt1 and ForwardIt2 can be dereferenced and then implicitly ...
2018/03/02
932
3,190
<issue_start>username_0: I have the task to run a daemon in the background on a production server. However, I do want to be sure that this daemon always runs. The daemon is PHP process. I tried to approach this by checking if the daemon is running, and if not: start it. So I have a command like: ``` if [ $(ps ax | gr...
2018/03/02
767
2,549
<issue_start>username_0: I am using listboxes to display data in userforms in word. However I am not able to set header captions or figure out how to make it possible to click on the header to sort by that column. ``` GUI.Search_ListBox.Clear GUI.Search_ListBox.ColumnCount = 5 ' Columns GUI.Search_ListBox.ColumnWidths...
2018/03/02
1,312
4,766
<issue_start>username_0: Fellow python developers. I have a task which I can't seem to crack and my tutor is MIA. I need to write a program which only makes use of `while` loops, `if`, `elif` and `else` statements to: * Constantly ask the user to enter any random positive integer using `int(raw_input())` * Once the us...
2018/03/02
1,924
6,542
<issue_start>username_0: If I do postman I'm getting this response ``` Array ( [0] => stdClass Object ( [product_id] => 5 [sku_id] => XYZ3 [name] => <NAME> [price] => 3500 [category_id] => 2 [description] => Etiam faucibus viverra libe...
2018/03/02
1,356
5,145
<issue_start>username_0: Forgive me if this is a stupid question but I am not sure where to look. I have this code that compiles fine: ``` static int Main(string[] args) { var parserResult = CommandLine.Parser.Default.ParseArguments(args); parserResult.WithParsed(options => OnSuccessfulParse(options)); parserRe...
2018/03/02
1,296
4,338
<issue_start>username_0: NaN propagates through "most" operations as described in [NaN - Wikipedia](https://en.wikipedia.org/wiki/NaN). I would like to know the operations which NaN does NOT propagate. For example, I'm coding in C++ and found that following code prints `1`, which is not NaN. ``` const double result =...
2018/03/02
1,258
4,246
<issue_start>username_0: Google has made IAB testing much simpler and when I'm testing a monthly subscription runs for 5 minutes and then I got the mail from Play Store: > > Your ... subscription from ... on Google Play has been cancelled. > > > But when query inventory / purchase over Play Store API, I still get...
2018/03/02
692
2,327
<issue_start>username_0: I'm trying to trace this program. I see that it outputs 4 times when I run it, but I don't understand why. ``` #include #include #include int main() { if (fork() == 0) fork(); else { fork(); fork(); printf("%d\n", getpid()); } } ``` To my knowledge, the if/else forks my program...
2018/03/02
721
2,389
<issue_start>username_0: I tried making mean deviation calculator using javascript but when I try to output the summation of `|x-x̅|`, It always returns 0; ```js var frequencies = [] var output = document.getElementById("text") function add() { var score = document.getElementById("lol").value frequencies.push...
2018/03/02
830
2,990
<issue_start>username_0: I have made a controller that sends a message to a list specified in an incoming message. When I'm finished sending out all the messages, I want to return a TwiML response. However, if the list is too big it looks like Twilio is timing out. If the list contains 10 numbers a response is return...
2018/03/02
652
2,213
<issue_start>username_0: [![This is a image of Android home screen.](https://i.stack.imgur.com/Y9rDh.png)](https://i.stack.imgur.com/Y9rDh.png) Can I change status bar colour like this in my app?<issue_comment>username_1: <https://www.twilio.com/docs/api/errors/11200> Looks like it's taking Twilio longer to perform t...
2018/03/02
920
2,723
<issue_start>username_0: This is a short sample of short example that doesn't compile. The error is in the `add1` function. It works if I do as in `add2`, but this isn't very DRY. Can someone with more experience enlighten me of how to overcome the mutable borrow more than once error in a better way than in `add2`. ``...