date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
312
1,053
<issue_start>username_0: I try to add multiple static headers with retrofit 2 (2.3.0) like this : ``` interface WeatherAPI { @Headers({ "Accept: application/json", "Content-type:application/json" }) @GET("/data/2.5/weather") fun getWeatherForCityName(@Query("q") city: String, @Query("a...
2018/02/28
247
896
<issue_start>username_0: I want to generate a string based on a regular expression. I have a regular expression and a set of values for subpatterns as below. Expression: `your-report-([a-z]+)-not-available` Set: `array("monthly")` I need to replace the subpattern with value monthly. How do I do it?<issue_comment>user...
2018/02/28
1,504
5,474
<issue_start>username_0: Some sample data: ``` Fruit Type | Price | Weight Apple | $1 | 0.5 Pear | $2 | 0.3 Apple | $1.2 | 0.4 Banana | $1.1 | 0.2 ``` I need a macro that does this: Sort the data by Fruit Type (a categorical variable). Then, for all the Apples, copy and paste them somewhere. For all the Bananas, co...
2018/02/28
677
2,157
<issue_start>username_0: When I send a POST request I always get the error: "JSON.parse: unexpected end of data at line 1 column 1 of the JSON data", but the data will be created in the database The network tab will show a Status code 201; when I press modify & resend, the request content is a valid JSON > > {"firs...
2018/02/28
517
1,487
<issue_start>username_0: As part of preprocessing my data. I want to be able to replace space followed by a number, keeping the space followed by a character. For example: ``` Input String: '8.1.7 Sep 2000 Dec 2004 Dec 2006 Indefinite' Expected output: '8.1.7,Sep 2000,Dec 2004,Dec 2006,Indefinite' ``` I am using th...
2018/02/28
377
1,031
<issue_start>username_0: My list is `L = [[1,1], [2,2], [1,1], 1]` I want to count distinct elements in L in numpy. How??? Answer should be 3 after counting.<issue_comment>username_1: You may use a `(?<=\d)` to require a digit before the whitespace: ``` release = re.sub(r"(?<=\d)\s+", ",", release) ``` See the [re...
2018/02/28
422
1,305
<issue_start>username_0: HTML: ``` ![](/sites/all/themes/smart_sinepulse/img/smart_home_products/tele-health.png) ### Tele Health ``` I want to target all img inside .embeded-product6, .embeded-product7 and so on. I am trying as follows: ``` div[class^="embeded-product"] img{ background:red; } ``` But it...
2018/02/28
447
1,633
<issue_start>username_0: I have created a js file where an array contains multiple objects. Every object has an image path given. Using for loop, I am importing every object to my component. Everything works fine except the image. It's broken. It's not taking the relative path. I have stored all the images in a folder....
2018/02/28
657
2,402
<issue_start>username_0: I have deployed a hello world application in Azure using DCOS and Marathon Framework.I am trying to access that using fqn: portnumber at which the application is hosted. I am unable to open the application Following is the json I have used ```html { "id": "/dockercloud-hello-world", "c...
2018/02/28
1,954
6,340
<issue_start>username_0: I have a value in column C which in some cases are duplicated, where there are duplicates I want it to look in column Z for the corresponding ID if none exist I want it to check where whether any other values in column C have a value in Column Z and then add the missing values into column Z acc...
2018/02/28
301
1,194
<issue_start>username_0: I have a `ViewPager` that horizontally scrolls through multiple fragments, however, I've added a toolbar but it overlaps the `ViewPager` content. I know there are other similar questions asked here, nothing worked for me, unfortunately. this is the `main_view.xml` ``` ``` Probably I should...
2018/02/28
300
1,175
<issue_start>username_0: I would like to save the results of a Bayesian estimation function (e.g. `brm`) to file (e.g. in Latex format), for sharing results and preparing publications. It appears that existing packages (e.g. `xtable`, `stargazer`) are designed with non-Bayesian statistics in mind and cannot handle thes...
2018/02/28
1,110
3,630
<issue_start>username_0: i have json file which looks like this: ``` {{"name":"jonh", "food":"tomato", "weight": 1}, {"name":"jonh", "food":"carrot", "weight": 4}, {"name":"bill", "food":"apple", "weight": 1}, {"name":"john", "food":"tomato", "weight": 2}, {"name":"bill", "food":"taco", "weight": 2}}, {"name":"bi...
2018/02/28
867
2,958
<issue_start>username_0: If I add an integer to a Python set object twice, Python will only add it once. ``` a = set() a.add(5) a.add(5) print(a) >> {5} ``` However, in my app I am am trying to add coroutines to a set, because I can't find a better way to keep track of which coroutines are already in the event\_loo...
2018/02/28
701
2,588
<issue_start>username_0: I want the procedure below embedded in a macro-enabled Excel (xlsm) file. ``` Sub SaveWorksheetsAsCSV() Dim WS As Excel.Worksheet Dim CurrentWorkbook As String Dim CurrentFormat As Long CurrentWorkbook = ThisWorkbook.FullName CurrentFormat = ThisWorkbook.FileFormat Application.DisplayAlerts = ...
2018/02/28
422
1,273
<issue_start>username_0: I started out with a simple example to compare Python code to c#, my more usual language: ``` s='' for x in range(20,1,-3): print(x) s+="%d%s" % (x,":") print(s[:-1]) ``` to simply output: 20:17:14:11:8:5:2 then I thought about the shortest, not necessarily the most efficient way of...
2018/02/28
568
1,871
<issue_start>username_0: I'm trying to use scrapy-spider on oneblockdown.it to get all the products from the latest products and to store them into a DB. Some sites into my monitor are working, but someone such as OBD is not working and not uploading nothing to the db. This is my function: ``` class OneBlockDownSpide...
2018/02/28
727
2,613
<issue_start>username_0: Consider the following code snippet: ``` const char * filePath = "C:/blah.mtt"; fstream fs(filePath, ios::in | ios::out | ios::binary); if (fs.fail()) std::cout << "Failed to open the file!\n"; ``` the fs.fail() check succeeds always. Does it mean that I can't open a file in both read wri...
2018/02/28
723
2,524
<issue_start>username_0: my borders are not showing seems like they do not exist and after running through the code for a hour i still couldn't find the problem. and my footer doesn't show it's div background-color hope someone can help me, thanks :) this is the website you can see the code in the top right button "...
2018/02/28
1,220
4,569
<issue_start>username_0: I have a class in a server1. FILE1 in server1 ``` php class myObject { public function __construct() { echo 'Hello, World'; } } ? ``` FILE 2 in server2 ``` $section = require('http://xx.xxx.xxx.x/plugins/myObject.php'); $intance = new myObject(); ``` When file2 is ...
2018/02/28
1,095
4,147
<issue_start>username_0: As far as I know BasicHttpBinding doesn't support ReliableSession feature. So, this means that when request is received by server (wcf host) then it will be executed wether the client is disconnected afterwards or not. I hope I'm right on this? The problem is: I have a WCF service with BasicHt...
2018/02/28
526
2,021
<issue_start>username_0: I know there has been a dozen times a similar question, but I could not find an answer that worked for me. I have a Debian 9 machine, fresh from install on which I have installed a Postgresql 9.6 server. I am trying to create a new tablespace but it fails. The command : ``` CREATE TABLESPACE...
2018/02/28
453
1,771
<issue_start>username_0: In my webpage there's a dropdown with 4 links to about us, platform, contact us and information. While opening either of them a scrollbar (vertical) appears. I have tried following codes for different web browser support: ``` .container { -ms-overflow-style: none; // IE 10+ overflow:...
2018/02/28
404
1,538
<issue_start>username_0: I have a string `Organization, INC..Truck/Equipment Failure |C`. I want to fetch the sub-string after organization name (after two '..' characters) and before pipe character. So the output string should be - `Truck/Equipment Failure`. Can you please help. I have been trying forming regexp like...
2018/02/28
401
1,511
<issue_start>username_0: I am writing a script for gmail login and logout. I have done login successfully. Now to do Logout, I have to first click on User icon which has Logout button inside it. I am writing it as below code, but it's not working: ``` driver.findElement(By.cssSelector("a[title=Google Account: FirstNam...
2018/02/28
686
1,818
<issue_start>username_0: ``` select * from tab1; +------+ | id | +------+ | 1 | | 2 | | 3 | | 4 | +------+ select * from empt; +------+------+------+ | id | l1 | l2 | +------+------+------+ | 10 | 1 | 100 | | 11 | 1 | 101 | | 12 | 1 | 102 | | 13 | 2 | 100 | | 14 | 4 | ...
2018/02/28
1,024
3,730
<issue_start>username_0: I am trying to connect to my azure vault from a console application with using MSI For this vault i have added my user as the Selected Principle the code i am using to connect is ``` var azureServiceTokenProvider = new AzureServiceTokenProvider(); var keyVaultClient = new KeyVaultClient(...
2018/02/28
1,141
3,883
<issue_start>username_0: I have an error in MVC, when I pass as parameter '&' fails to come the following. How will I show in this example? ``` public IActionResult Create(int? idTrabalhador, [FromQuery]string GridState{} ``` view ``` var lnk = "@Url.Action("Create" , new { idTrabalhador = "{#KeyTrabalhador}", Grid...
2018/02/28
3,627
14,290
<issue_start>username_0: I have a `UITableView` with data, that parsed from url. `UITableView` will load more data, when scrolled right to the bottom (or got some more space to scroll, but close to the end - did both, same results) When more data is loaded - i simple append it to array of my class, that contains data...
2018/02/28
573
2,084
<issue_start>username_0: I have question. Is it possible to delete all colors from image, but save the black color? I have a picture with several unknown colors. (Therefore I can't just replace e.g red color with white color). I have an image like this: [![](https://i.stack.imgur.com/EWwSX.jpg)](https://i.stack.imgur....
2018/02/28
531
1,924
<issue_start>username_0: I compare 2 tables with numbers and need to highlight number red in TABLE A if it's less than number on TABLE B. Could you please help with this? Thanks. [![enter image description here](https://i.stack.imgur.com/iSbkf.jpg)](https://i.stack.imgur.com/iSbkf.jpg)<issue_comment>username_1: Reload...
2018/02/28
1,874
6,741
<issue_start>username_0: I have a bounded DataGridView. How can I add a button in one field with data? I will attach a screenshot of how I see it. Do you have any recommendations on this? [![Example](https://i.stack.imgur.com/0MILk.jpg)](https://i.stack.imgur.com/0MILk.jpg) it's WinForms and I think that I need to wri...
2018/02/28
287
1,090
<issue_start>username_0: Here is project that uses `Web Service` for get or set data on database. For login method i send username and password, if it is correct `web service` returns role and id. How can i set this role for this user? I must check this role for each action.<issue_comment>username_1: Use Role based...
2018/02/28
978
3,345
<issue_start>username_0: Questions what I tried: [Gradle Build Failed For Task app:processReleaseResources](https://stackoverflow.com/questions/35407479/gradle-build-failed-for-task-appprocessreleaseresources) [Failed to execute aapt](https://stackoverflow.com/questions/46993773/failed-to-execute-aapt) --- What I...
2018/02/28
443
1,423
<issue_start>username_0: how can I select multiple value in this country dropdown this is my code: ``` function print_country(country_id) { // given the id of the tag as function argument, it inserts tags var option\_str = document.getElementById(country\_id); option\_str.length = 0; option\_str.options[0] = n...
2018/02/28
536
1,438
<issue_start>username_0: I'm trying to implement this simple tree structure as a list in R: ``` 1 / \ 2 3 / \ 4 5 ``` What I tried is this: ``` tree <- list(1, list(2, 3, list(4, 5))) > tree [[1]] [1] 1 [[2]] [[2]][[1]] [1] 2 [[2]][[2]] [1] 3 [[2]][[3]] [[2]][[3]][[1]] [1] 4 [[2]][[3]][[2]] [1] 5 ``` ...
2018/02/28
4,355
16,176
<issue_start>username_0: I have very complex JSON response coming from server. I need to insert in local database. Below is my json response ``` { "currentdate": "2018-02-27", "data": [ { "date": "2017-11-05", "data": [ { "id": 268, "schedulId": 268, "userId...
2018/02/28
6,085
21,743
<issue_start>username_0: I'm trying to build multidex project and get some error: ``` :app:compileDebugNdk NO-SOURCE :app:compileDebugSources :app:transformClassesWithRetrolambdaForDebug :app:transformClassesWithDexBuilderForDebug :app:transformDexArchiveWithDexMergerForDebug AGPBI: {"kind":"error","text":"Error conve...
2018/02/28
918
3,026
<issue_start>username_0: I am trying to store image in S3 bucket and i am using laravel 5.5 i am new and i am stuck here: What i am trying is: My Controller: ``` public function imageUploadPost(Request $request) { $this->validate($request, [ 'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',...
2018/02/28
491
1,764
<issue_start>username_0: I have the following `MailService`: ``` public class MailService : IMailService { private readonly ILogger \_logger; private readonly SmtpClient \_client; public MailService(ILogger logger, SmtpClient client) { \_logger = logger; \_client = client; } public async Task Send(string ...
2018/02/28
940
2,987
<issue_start>username_0: I have two lists of unequal size and want to compare an element in new\_list with an element in old\_list. ``` new_list = [['','','',''], ...] old\_list = [['',''], ...] ``` I have a database where I want to track ip\_address changes, so I get a old\_list and if the ip\_address is different ...
2018/02/28
978
3,316
<issue_start>username_0: This is a stripped down version of what happens through 4 layers of indirection. The overlaod resolution breaks down in the vicinity of a local lambda with the same name. Which is some kind of mainetenance issue, especially if the code still builds (here it doesn't) and the error is only caught...
2018/02/28
1,095
3,977
<issue_start>username_0: I've html and external css file in which footer should remain always down weather content is more or less!! Here is a running snippet: ```css .Footer-create { position: relative; background-color: red; } ``` ```html Ten weeks before he died, Mr. <NAME>, a journalist...
2018/02/28
1,539
5,527
<issue_start>username_0: I am attempting to send a Json request to a model on google cloud's ml-engine. This requires a json in the form For which I need to **convert a float array to a single base64 encoded string**. I thought perhaps the [google protobuf ByteString](https://developers.google.com/protocol-buffers/d...
2018/02/28
1,343
4,590
<issue_start>username_0: I have a native library i want to use, it offers the following binaries: * arm64-v8a * armeabi * armeabi-v7a * mips * mips64 * x86 * x86\_64 Our minSDK is 18 if this is relevant. According to <https://developer.android.com/ndk/guides/abis.html> armeabi, mips and mips64 are deprecated/removed....
2018/02/28
1,043
3,136
<issue_start>username_0: I am creating a ngx-datatable but getting extra space at header of table.Also the data-rows are not aligned to header due to this header only.This extra space is coming at the both end of table. I need to remove the marked space in the image below: [![Data-Table](https://i.stack.imgur.com/Pb3V...
2018/02/28
544
1,923
<issue_start>username_0: this trivial class is just an example ... ``` class SomeClass{ getTemplateName() { throw new Error('foo'); } } ``` ... to try to test that some code throw an exception ``` describe('dome class', () => { test('contains a method that will throw an exception', () => { ...
2018/02/28
663
2,310
<issue_start>username_0: I am trying to apply a ::post function to a route with the where filter. It works without the where filter. What's missing? This works: ``` Route::post('/actors/Chelsea_Handler', [ 'uses' => 'StarsController@infoupdate', 'as' => 'infoupdate', ]); ``` This does NOT work but why? ```...
2018/02/28
641
2,288
<issue_start>username_0: In one of my WebAPI 2 applications, I'm having trouble deserializing a `List` property of a `FromBody` object. (The list stays empty, while the other properties are deserialized correctly.) Whatever I do, the property only seems to deserialize correctly if I change the property to a `string[]`...
2018/02/28
894
3,234
<issue_start>username_0: I'm trying to add a custom link button that leads to Contact page - within first **if** condition that displays "Contact us" text with custom URL on the button instead of "Add to Basket" button. How to do that? This is my code so far. It shows custom button text for each product which is part ...
2018/02/28
707
2,651
<issue_start>username_0: My AUT has a jQuery "noty" that appears after clicking on a button. ("Noty" is a jQuery plugin for message/notification creation.) The message stays on screen for a couple of seconds and then goes away. I'm afraid that's to fast for methods such as Katalon's `'WebUI.verifyElementPresent()'`. I...
2018/02/28
750
2,757
<issue_start>username_0: Inside my **Razor** file I am using: ``` @Umbraco.Field("myText") ``` as to get and display the content of `myText` property. The actual content of myText which is a `Textstring`, is: ``` [Hello](/main/somefile) ``` What I want to do is to change on the fly, the path inside href when ...
2018/02/28
1,038
4,003
<issue_start>username_0: I'm trying to parse large XML file (size near about 600MB) and using It's taking longer time and finally, the entire process is aborted. The process is ending with an exception. Message: **"Thread is aborted"** Method: ``` private string ReadXml(XmlTextReader reader, string fileName) { ...
2018/02/28
1,143
4,908
<issue_start>username_0: I'm building a chunked file uploader. I understood that promises are the best way to handle the results but still, can't wrap my mind of how I should capture the promises from the outside. **caller.js** ``` let fileUploader = new ChunkedUpload() fileUploader.setFile(file) fileUploader...
2018/02/28
1,416
5,979
<issue_start>username_0: My problem is: I close Activity using `finish()`, it goes to **onPause -> onStop -> onDestroy**. Next I open app, `onCreate()` gets old references to all views and `context`. When I try show simple dialog it throws: > > "Unable to add window -- token android.os.BinderProxy@69a156a is not...
2018/02/28
469
2,030
<issue_start>username_0: I'm new with android apps developing. For now, I'm only capable to link the activities through buttons. For my app, I will need to know how to store user information so the same user can view his information even with a login from another device. I saw in the official Android documentation the...
2018/02/28
251
943
<issue_start>username_0: I have tried a lot to display date in corrected format on front end from database. In mysql database the column has it's datatype as date only then what should i do to display it correctly. Here is the code i tried ``` * ![]({{underReviewLoanDetails.UserImage}}) {{underReviewLoanDetails.U...
2018/02/28
381
1,403
<issue_start>username_0: I am trying to push `SWRevealViewController` from `appdelegate` at first, the status bar is shown only temporary and after loading the viewController its not appearing. Here is my code and I am using swift: ``` let storyboard = UIStoryboard(name: "Main", bundle: nil) let sw = storyboard.insta...
2018/02/28
699
2,189
<issue_start>username_0: I am trying to display all the entries entered within a specific time, from 27-02-2018 22:00:00 to 28-02-2018 05:59:59, here is what I got so far, but i am not getting any results back from the webpage ``` $NightStart='22:00:00'; $NightEnd='05:59:59'; $dcmlogs = log::with('users')->whereBetwee...
2018/02/28
487
1,578
<issue_start>username_0: I've been trying to solve my problem for a while, I got a name stored as a string which looks like this. ``` FirstName LastName d111 ``` I'd like to store FirstName LastName as a variable I tried using the code `$Name.Split("d11")[0]` which worked for a while until I realised if the name c...
2018/02/28
846
2,489
<issue_start>username_0: Why does the following code work? ``` use std::rc::Rc; fn main () { let c = vec![1, 2, 3, 4, 5]; let r = Rc::new(c); println!("{:?}", (**r)[0]); } ``` I can understand it working with single deference (`println!("{:?}", (*r)[0]);`). But not able to understand it working with doub...
2018/02/28
1,047
3,845
<issue_start>username_0: I'm working on an algorithm and I need to initialize the vector of ints: `std::vector subs(10)` of fixed length with values: ``` {-inf, +inf, +inf …. } ``` [This](https://stackoverflow.com/questions/8690567/setting-an-int-to-infinity-in-c) is where I read that it is possible to use `MAX_IN...
2018/02/28
880
3,327
<issue_start>username_0: I am a beginner in Hyperledger, so need your help here; as I want to create a blockchain with Hyperledger Fabric using java. And is their any working use case related to it.<issue_comment>username_1: AS already said in the comments, you can't have an infinity value stored in `int`: all values o...
2018/02/28
1,109
4,232
<issue_start>username_0: So I have a routes file that calls a controller with several optional inputs. as per below ``` GET /1.0/*path/documents controllers.DocumentController.list(path, format: Option[String], ref: Option[String], build: Option[String], files: Option[String], token: Option[String]) ...
2018/02/28
294
1,144
<issue_start>username_0: I try create Payment by strategy pattern. But All articles each I read look like this: ``` public interface PayStrategy { void pay(BigDecimal paymentAmount); } ``` But if I need return `Single>`?Is this the right approach? ``` public interface PayStrategy { Single> pay(BigDecimal pa...
2018/02/28
1,034
3,724
<issue_start>username_0: So i have been struggeling with this for a couple of days, acctually. I am consuming records from 4 topics. I need to aggregate the records over a TimedWindow. When the time is up, i want to send either an approved message or a not approved message to a sink topic. Is this possible to do with k...
2018/02/28
865
3,099
<issue_start>username_0: We are just starting out with Rhapsody 8.2.1 and we are trying to link it to VisualStudio 2012 and windows 7. On my PC I have MSVS 2012 and 2013. I have checked various answers out there which got me to fix / check: * I have setup MSVS 2012 with the Rhapsody add-in and I can see it in the ad...
2018/02/28
1,445
5,815
<issue_start>username_0: Working on this 'twitter' application where a user can have posts `@OneToMany` and can have followers `@ManyToMany`. While retrieving a user all it's posts and followers get retrieved as well. This is all correct but it's also retrieving every 'poster' for each post (which is the user itself)...
2018/02/28
3,113
10,248
<issue_start>username_0: I have a stream of objects like this: ``` "0", "1", "2", "3", "4", "5", ``` How can I transform it to stream of pairs : ``` { new Pair("0", "1"), new Pair("2", "3"), new Pair("4", "5")}. ``` The stream size is unknown. I am reading data from a file that might be big. I have only iterato...
2018/02/28
1,941
6,425
<issue_start>username_0: I’m currently working on an access Vba program in order to automatically write mails to people. However we chose to still press ‘Send’ in Outlook manually (in case there are possible issues, so we can control the mail beforehand). Is there a way to have a link in the other direction, as in, wh...
2018/02/28
322
1,097
<issue_start>username_0: I have a situation where i want to remove a field inside a array of dictionary. I know how to remove a normal field: { $unset: { : ""} } But please help me for below example where i want to remove **status** field inside second dict ``` { "recs":[ { "required_1"...
2018/02/28
1,310
4,716
<issue_start>username_0: I have create this "simple pattern" that works for combine `Promise` and `EventEmitter` (with nodejs). But: I'm wondering if there is a better way score a goal? ``` const { EventEmitter } = require('events'); const fs = require('fs'); function doSomething(parameters) { const emitter = new ...
2018/02/28
1,029
3,335
<issue_start>username_0: In my app I am getting time from server in API in IST timezone, I want to show time in device's local time zone. Below is my code for this but it seems its not working. ``` SimpleDateFormat serverSDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat utcSDF = new SimpleDateFormat...
2018/02/28
1,607
6,315
<issue_start>username_0: I have a batch script called SET\_ENV.bat which contains environment variables that are used by other batch scripts. Currently this SET\_ENV.bat is lauched by existing batch scripts. Now I have a need to use Powershell script and I would like to launch the same SET\_ENV.bat. I managed to do th...
2018/02/28
356
1,264
<issue_start>username_0: I am having a angular component here is my component ``` @Component({ selector: 'labelnumeric', template: 'hello' }) ``` here in template i am using hello as label text and here component is defining in HTML control here is my HTML ``` ``` so on the basis of HTML control i want ...
2018/02/28
482
1,534
<issue_start>username_0: In a 2D matrix, how do I find the number of neighbours that have the value I'm searching for? Neighbours are defined as 8-connected (vertically, horizontally and diagonally) For instance, in the example below, for every element, X[i][j], in the matrix, I want to calculate how many of of it's ...
2018/02/28
522
1,589
<issue_start>username_0: I have 3 tables which are, `room (room_no`) `room_no_access (room_no, user_id`) `user (user_id`) If a user is recorded in `room_no_access` table with a `room_no` and `user_id` then that user cannot access the mentioned room. Let's assume that I am a user in `user` table. Now what I need i...
2018/02/28
1,437
3,462
<issue_start>username_0: I have a dictionary which is converted from a dataframe as below : ``` a = d.to_json(orient='index') ``` Dictionary : ``` {"0":{"yr":2017,"PKID":"58306, 57011","Subject":"ABC","ID":"T001"},"1":{"yr":2018,"PKID":"1234,54321","Subject":"XYZ","ID":"T002"}} ``` What I need is it be in a list,...
2018/02/28
218
720
<issue_start>username_0: For example: Array like ["A12", 1, 2, "Test"]. My expected result should be able to bind in the textfield or else to get as string with component seperator (,)<issue_comment>username_1: You can get it done with this, ``` let array: [Any] = ["A12", 1, 2, "Test"] let tmpArray = array.map...
2018/02/28
1,116
2,490
<issue_start>username_0: I have a pandas DataFrame: ``` import pandas as pd import numpy as np from random import sample, randrange from functools import reduce N = 200 df = pd.DataFrame({'Rating': np.random.choice(range(100), N), 'Treatment': np.random.choice(range(1, 10), N), ...
2018/02/28
586
2,377
<issue_start>username_0: Good morning all, Today is my first time trying to make a recursion method. Just when I thought it would work I got the error; missing return statement. This confuses me because it literally has a return value ( the total string from the Stringbuilder ) after n < 1 This is what I got: ``` ...
2018/02/28
522
2,003
<issue_start>username_0: ``` public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) this.mContext.getSystemService("layout_inflater"); if (convertView != null) { return convertView; } list = new View(this.mContext); list = inflate...
2018/02/28
1,022
3,756
<issue_start>username_0: I have installed the `asterisk server` and compiled the latest `linphone` iOS source code. Now all works great without being background and lock phone screen, calling. When app is closed or iPhone screen lock, I can not receive call from other `linphone` (download from playstore). I have regi...
2018/02/28
868
3,163
<issue_start>username_0: In my db users i have 2 users namely u1 & u2. when i login with u1 and open a new tab and login with u2. the u1 is automatically converted into u2. which makes me to have two tabs displaying the same content. can someone please provide me some help.<issue_comment>username_1: You can use flexisi...
2018/02/28
928
3,309
<issue_start>username_0: Can anyone help how can increase and decrease the tap value for individual item? Here is my code: ``` ![]({{ item.product_image }}) {{ item.product\_name}} ----------------------- {{ item.product\_desc}} - {{tap}} + Add ``` .ts file code is ``` tapEventadd(index:number) { ...
2018/02/28
532
2,330
<issue_start>username_0: I have a json request witch brings me 20 objects with offset and limit <http://website.com/myRestApi/getObjects.php?offset=20>. I want to call it every time user scrolling on Gridview and loads the 20, so to create an infinite simple paging style within my Android App until objects finish!<issu...
2018/02/28
471
1,717
<issue_start>username_0: I'm using LiveCharts to draw a row diagram. Xaml-Code: ``` <Setter Property="Stroke" Value="CadetBlue" /> <Setter Property="StrokeThickness" Value="0.4" /> ``` The resulting graph is on the left in the image below. ![resulting-graph](https://i.stack.imgur.com/FA3EE.png) What I'd like t...
2018/02/28
287
1,081
<issue_start>username_0: I've an error in Postgres that I don't understand. The SQL state is 42P17 (it means "invalid object definition"). The error is > > SELECT rule's target list has too many entries > > > Can anybody explain to me more precisely how to get this error in order to resolve it?<issue_comment...
2018/02/28
561
2,086
<issue_start>username_0: I have an issue with wait statement that is not working in bash. I have a set of benchmarks in 100 folders. Each folder has the executable and a script file called *runBenchmark.sh* which launches each executable with a set of arguments like this ``` ./benchmark_00 -v arg1 arg2 & ``` Now, ...
2018/02/28
838
2,307
<issue_start>username_0: I have two sequences, first sequence larger or have same size as the second. For example for `val first = 1 to 7` and `val second = Seq(3, 5)`. I want to generate a sequence that looks like this: ``` first |second| result 1 | | 3 2 | | 3 3 | 3 | 3 4 | ...
2018/02/28
1,177
4,477
<issue_start>username_0: I am trying to reshape a pandas dataframe, by turning one of the columns in the data, into rows (by pivoting or unstacking). I am new to this, so likely that I'm missing something obvious. I've searched extensively, but have not been able to successfully apply any solutions that I've come acro...
2018/02/28
1,220
4,009
<issue_start>username_0: I followed the following tutorial to set https for my website on DigitalOcean: <https://www.digitalocean.com/community/tutorials/how-to-deploy-a-laravel-application-with-nginx-on-ubuntu-16-04> But, I got stuck at this place - Step 6 — Securing your Application with TLS ``` include snippets/ss...
2018/02/28
1,210
4,020
<issue_start>username_0: I'm using `django` with `mysql`. In `serializers.py` I have: ``` class UserWorseQuestListSerializer(serializers.Serializer): user_id = serializers.CharField(max_length=255, validators=[user_exists]) section_id = serializers.IntegerField(validators=[section_exists_in_completed_quest]) ...
2018/02/28
1,047
3,336
<issue_start>username_0: IN orient DB when I enter server.bat from the command prompt, I get the message > > Error: This Java instance does not support a 64-bit JVM. Please > install the desired version. > > > How to resolve it. My Java version ``` C:\Orientdb\bin>java -version java version "1.8.0_92" Java(TM...
2018/02/28
1,043
3,383
<issue_start>username_0: I have created a custom repository\_rule to fetch a file from a samba share. I have a WORKSPACE file which uses this rule: ``` load('//build_tools/rules:download.bzl', 'smbget') smbget( name="boost_test", path="/tools/boost/v1.61/lnx_x64/lib/libboost_atomic.so" ) ``` Now, I just want ...
2018/02/28
1,239
3,773
<issue_start>username_0: I'm getting Multiple dex files define error in my project. I'm using these two tags in **build.gradle** as well ``` dexOptions { preDexLibraries = false } defaultConfig { multiDexEnabled true } ``` but still getting this error. ``` Information:Gradle tasks [:app:assembleDebug] ...
2018/02/28
308
1,181
<issue_start>username_0: I have a peculiar error when i try speech recognition framework in objective c Undefined symbols for architecture `arm64`: ``` "_OBJC_CLASS_$_SFSpeechAudioBufferRecognitionRequest", referenced from: objc-class-ref in test.o "_OBJC_CLASS_$_SFSpeechRecognizer", referenced from: ob...
2018/02/28
1,166
4,127
<issue_start>username_0: With my below Javascript I'm defining a JSON array as a variable: ``` var json = [ { "pk": 981, "name": "Uruguay", "distributor": { "id": 28, "name": "Store 1", "email": "<EMAIL>", "phone": "", "site": ""...
2018/02/28
923
3,013
<issue_start>username_0: Its a very simple small project located here <https://github.com/cbaldwin20/project_8/tree/master/project_eight> I tried for like two hours to get the 'django debug toolbar' to appear in the browser with no success. I'm not sure if its my code or my computer. Thanks for any help.<issue_comment...
2018/02/28
195
796
<issue_start>username_0: I created a simple Node.js script to connect to a RDS instance but sadly it always returns with timeout error. It is strange because it works perfectly from my machine. The instance is public accessible and context.callbackWaitsForEmptyEventLoop = false; have you got any idea?<issue_comment>...