date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
737
2,312
<issue_start>username_0: I'm trying to read one column out of my Excel-file until it hits an empty cell, then it needs to stop reading. My code so far: ``` import openpyxl import os def main(): filepath = os.getcwd() + "\test.xlsx" wb = openpyxl.load_workbook(filename=filepath, read_only=True) ws = wb['T...
2018/03/19
366
1,147
<issue_start>username_0: I need to drop the below lines containing text "-- MARK --" from the logs. I am using syslog-ng for shipping logs to centralized location. However, my config works fine but i need to apply a filter in order to drop below line to be shipped. ``` Mar 19 15:34:36 10.232.194.98 [Mar 19 15:34:37] [...
2018/03/19
527
1,833
<issue_start>username_0: I have fixed some syntactical errors in my code and now the program compiles fine. But when I execute the program the outputFile is empty. outputFile should have contents of inputFile in reverse order. I am trying to debug code in `CodeLite` IDE. I need to debug the code with two arguments pas...
2018/03/19
606
2,143
<issue_start>username_0: I am attempting to use the Azure Cloud Shell (browser based) to manage a classic VM. When I run this command: ``` Stop-AzureVM -ResourceGroupName -Name ``` I get this error: ``` Stop-AzureVM : The term 'Stop-AzureVM' is not recognized as the name of a cmdlet, function, script file, or ope...
2018/03/19
2,091
7,264
<issue_start>username_0: I am new to swift and I am trying my hands with multithreading, a concept which doesn't seem to be famous in swift. Based on [this](https://stackoverflow.com/a/23679563/1941002) example of java's `synchronized`implementation I tried to do the same for swift based on examples given for swift on ...
2018/03/19
766
3,011
<issue_start>username_0: Is there a way to catch any type of error the Ruby/Rails encounters? I am making a network request. What I have seen so far is, it can return 404, timeout or even any empty response object? I have handled them individually, it is not DRY, but is there a way to handle all these and those which...
2018/03/19
1,007
3,901
<issue_start>username_0: I have a simple subclass of `NSManagedObject` in a simple app supposed to collect data from an iPhone and send the data to a server. This is what this class looks like: ``` import Foundation import CoreData extension TestSession { @NSManaged var bootTime: NSNumber? @NSManaged var ac...
2018/03/19
1,029
4,102
<issue_start>username_0: I am trying to update the document in elasticsearch which matches the id field. If the `formData.id` matches any of the documents in elasticsearch, I want it's `mobile_number` and `primary_email_id` to be updated. I also want to insert a new field `website` to the matching result. For this, I t...
2018/03/19
970
3,288
<issue_start>username_0: I am writing a query where it pulls the previous months total # of renewals from table 1 and then divides it by the national average of working business days for that specific month from table 2 (both tables are in the same sever & database). I have the queries for the above statement, I just ...
2018/03/19
513
1,957
<issue_start>username_0: I was wondering whether you can use docker when creating a function for serverless computing ? --- If so, how would it look like? --- How a function handler would be specified? --- Any articles or tutorials on this topic? --- How could you apply these questions in AWS-Lambda context...
2018/03/19
794
2,617
<issue_start>username_0: The assignment I have is this: > > Write a function that counts the number of times the values contained in a first vector are divisible by the values contained in a second vector. > > > The function accepts as input: > > > a (first) vector of numbers, say `vector_dividend`; > > > a (se...
2018/03/19
617
2,320
<issue_start>username_0: I'm building a windows application, and I have this combobox refusing to get clean. I want the combo box items to be deleted between one button click to another. I tried : ``` SendDlgItemMessage(hWnd, IDC_LIST_COMMANDS, CB_RESETCONTENT, 0, 0); ``` and also: ``` SendMessage(CommandsListBox,...
2018/03/19
1,052
2,820
<issue_start>username_0: [This](https://stackoverflow.com/questions/13959510/python-list-initialization-using-multiple-range-statements) tells us the way to prepare a list of numbers, including a range of continues numbers or discontinues numbers. For example, `list(range(1,10)) + [20,30,40] + list(range(400,410))` w...
2018/03/19
809
2,604
<issue_start>username_0: thanks that i can ask questions here. I'm using rails 5.1.4 with ruby 2.5.0. I have two models the model A and Model B. ``` Model A has_many bs Model B belongs_to a ``` The admin-user can generate new a-entries and he can generate new b-entries. The no-admin-user can show, index or r...
2018/03/19
789
2,728
<issue_start>username_0: I'm programming some exercises about exceptions in C++ with NetBeans 8.1 Patch 1 on Windows 10 using MinGW 64 bits, but the expected result is not the same when I execute the code in IDE. Here's the code: ``` #include #include using namespace std; void f() { throw 'A'; } int main() { ...
2018/03/19
686
1,619
<issue_start>username_0: The issue seems simple but I'm stack in it since hours, here is what looks like my data: ``` \N PARIS PREMIERE,1375,7 RTL9,1376,7 TV BREIZH,1162,7 C+ CINEMA,1594,7 \N C+ SPORT,1595,7 OCS MAX,799,7 ``` The output I want to have is: ``` 1375 1376 1162 1594 1595 799 ``` For this I run this c...
2018/03/19
452
1,562
<issue_start>username_0: I want to test out hikaricp in TomEE. I have added the jar-file into my lib folder, and have tried defining the resources like this: ``` .... ``` When I do this I get the following error upon startup: ``` org.apache.xbean.recipe.MissingFactoryMethodException: Instance factory method has s...
2018/03/19
556
1,889
<issue_start>username_0: I'd like to select a record in sql and then update it, all in one statement or stored procedre. So, I have this statement: ``` select top 1 ID, TimeStamp, Locked, Deleted from TableName where Locked='False' and Deleted='False' order by TimeStamp asc ``` How can I select that statement a...
2018/03/19
466
1,637
<issue_start>username_0: How can i find a single object which is nested deeply in an array? This is the code which works. But [0] isnt really save when it returns null or an empty array. ``` this.subscription = state.subscriptionsState.subscriptions .map(subs => subs.subscriptions.find(sub => sub.id === subscripti...
2018/03/19
429
1,497
<issue_start>username_0: For some reason I'm having trouble selecting an existing blank value in a dropdown with jQuery. The blank option exists, but setting it via `$('#studyList option[value=""]').prop('selected', 'selected');` does not work (nor does `.prop('selected', true)`). Am I doing something wrong? ```js $('...
2018/03/19
1,368
4,747
<issue_start>username_0: I am working on a Google Sheets document(Link is at the end of this paragraph) which is meant to track accessories that people borrow. I have written a formula which updates the status of the entry as the following options: Good, Overdue, Returned, Returned Late, and Missing Info. My goal is to...
2018/03/19
1,147
3,345
<issue_start>username_0: I don't know if this is possible, but it's an interesting situation I came across in my project today. A table of checkboxes. One type of checkboxes are hierarchical, which means that if one is checked, all checkboxes of the same type to the left of it are magically checked as well. We need t...
2018/03/19
520
1,839
<issue_start>username_0: I would like to use closure way to make following json: ``` { "root": [ { "key": "testkey", "value": "testvalue" } ] } ``` I'm using following syntax: ``` new JsonBuilder().root { 'key'(testKey) 'value'(testValue) } ``` But i...
2018/03/19
622
2,247
<issue_start>username_0: For example I have an entity field which starts null and will show the radio buttons, within the Admin pages once a radio button has been selected and saved into the entity then those radio buttons need to be 'disabled', still visible but not intractable. ``` protected function configureFormFi...
2018/03/19
663
2,335
<issue_start>username_0: here is my **AdsController.php** ``` public function save(Request $request) { $this ->validate($request,[ 'object'=>'required', 'description'=>'string', ]); $ads = new Ad; $current_user=Auth::user(); $ads->object = $request->input('object'); $ads->d...
2018/03/19
411
1,507
<issue_start>username_0: I have a JEE Service (JaxRx) secured with Keycloak, the authentication works, but when I want to apply security with `@RolesAllowed` I got `EJBAccessException`. The service is deployed in Wildfly 11 and regarding the documentation, I propagated the security context to the EJB tier with `@Secur...
2018/03/19
970
2,927
<issue_start>username_0: I have a Enum with Flags like this: ``` [Flags] public enum ItemType { Shop, Farm, Weapon, Process, Sale } ``` Then I have several objects in a list with some flags set and some flags not set. It looks like this: ``` public static List AllItems = new List { new ItemInfo...
2018/03/19
577
2,344
<issue_start>username_0: In CKEditor 5 I don't see field for target attribute in link dialog. [![enter image description here](https://i.stack.imgur.com/cLnsP.png)](https://i.stack.imgur.com/cLnsP.png) How to add such field? Or set target=\_blank as default. Thanks<issue_comment>username_1: Since version `11.1.0` of ...
2018/03/19
545
2,047
<issue_start>username_0: Create a default ASP.NET Core 2 MVC project normally, then modify the action a little: ``` public IActionResult About() { ViewData["Message"] = "This is Chinese[中文]"; return View(); } ``` And this is the view (About.cshtml): ``` ### @ViewData["Message"] ### 这也是中文 ``` This is the ...
2018/03/19
913
3,315
<issue_start>username_0: We have a need to walk over all of the documents in our AWS ElasticSearch cluster, version 6.0, and gather a count of all the duplicate user ids. I have tried using a Data Visualization to aggregate counts on the user ids and export them, but the numbers don't match another source of our data t...
2018/03/19
940
3,341
<issue_start>username_0: I am trying to display a key value from my JSON response in react. so something like this fieldData {**DMR\_5\_why\_who\_test**: "test", **why**: test}. I want to just be able to show the bolded values or key values. currently my code looks as follows. but it spits back [Object, Object] instead...
2018/03/19
1,030
3,432
<issue_start>username_0: I am trying to print StudentList from the class Student using the University class Code for UniversityClass: ``` public class University { Unit[] units = new Unit[3]; Student student1; Student student2; Student student3; public void printStatus() { System.out.println("Wel...
2018/03/19
734
2,327
<issue_start>username_0: My program is not returning the expected output, I tried very hard but I don't know how to do for this code. What can I do ? **Expected output** ``` 1 2 3 4 5 6 7 8 ......2000 ``` **Actual output** ``` 1 2 3 4 5 6 1 2 3 4 5 6 ..1000 ``` **Main** ``` public class Race_ConditonTest { ...
2018/03/19
655
2,196
<issue_start>username_0: I am learning javascript. In one of the document, I read we can modify the length of array. I tried as below and it worked. ``` var array = new Array(1, 2, 3, 4 ,5); array.length = 4; ``` Now array becomes [1, 2, 3, 4]. But the same is not working on Strings. ``` var str = new String("abcd...
2018/03/19
726
2,433
<issue_start>username_0: I'm very much a beginner. This generates the "right" data off the URL, but when I try to generate a CSV file, the resultant Excel file is empty. This is the code ... ``` import csv import urllib.request from bs4 import BeautifulSoup f = open('dataoutput.csv', 'w', newline = "") writer = csv.w...
2018/03/19
630
2,252
<issue_start>username_0: I have one table (Table A) with a description field (varchar(max)). I have another table (Table B) with a field With keywords. For all rows in table B I want to return all the rows from Table A that contain at least one occurence of the keyword specified in table A. I have googled and searche...
2018/03/19
1,077
3,158
<issue_start>username_0: For example, the following (**invalid**) AU mobile phone number is considered valid by libphonenumber `++++++614- -12a345678(())&`: [Tested in their demo site](https://libphonenumber.appspot.com/): [![https://libphonenumber.appspot.com](https://i.stack.imgur.com/Zn3eI.png)](https://i.stack.i...
2018/03/19
750
2,187
<issue_start>username_0: I'm considering using Dialogflow in my company but I am not fully convinced about security issues. Does anyone of you know if Google stores any input data that comes from users? In particular, any sensitive personal data? Thank you in advance! Best, Marcin<issue_comment>username_1: For one, w...
2018/03/19
1,886
3,398
<issue_start>username_0: I've been struggling with the following problem: I have a file with the following content ``` 1521471079313,219,HTTP Request 14,200,OK,PROD 50 rpm 1-10,text,true,,17665,204,1,1,177,0,35 1521471080337,263,HTTP Request 11,200,OK,PROD 50 rpm 1-10,text,true,,30268,202,1,1,169,0,0 1521471081404,24...
2018/03/19
2,230
7,476
<issue_start>username_0: For `git cherry-pick` resulting in a conflict, why does Git suggest more changes than just from the given commit? Example: ``` -bash-4.2$ git init Initialized empty Git repository in /home/pfusik/cp-so/.git/ -bash-4.2$ echo one >f -bash-4.2$ git add f -bash-4.2$ git commit -m "one" [master (r...
2018/03/19
256
958
<issue_start>username_0: i followed this [article](https://collectiveidea.com/blog/archives/2016/05/31/beyond-yml-files-dynamic-translations) to implement translations through a admin page This works great in my localhost, but when i push to heroku this message appears: "/app/app/models/translation.rb:1:in `': superc...
2018/03/19
361
1,337
<issue_start>username_0: I have a through table, `doctor_specialties` that has a column ordinal that I would like to use in order to create a column named `primary_specialty` and also `secondary_specialty`. The logic for `primary_specialty` is `WHERE ordinal == 1`. How can I add the `primary_specialty` and `secondary...
2018/03/19
441
1,622
<issue_start>username_0: I am trying to get the last modified directory of a folder in the project directory. With the code below, I can get the last modified directory only for the scripts saved in the directory, but I want to get the last modified `subdir` of a folder, which is in project directory. And I only want...
2018/03/19
1,026
3,789
<issue_start>username_0: I have an Angular component that uses [PrismJS](http://prismjs.com/) for syntax highlighting code blocks. The component is as follows: ``` import { Component, AfterViewInit, Input, ElementRef, ViewChild, ChangeDetectorRef } from '@angular/core'; declare var Prism: any; @Component({ s...
2018/03/19
2,118
4,430
<issue_start>username_0: I have following array of objects: ``` [{ id: 1, amount: 2000, date: "2018-01-31T00:00:00.000Z" },{ id: 2, amount: 3000, date: "2017-07-31T00:00:00.000Z" },{ id: 3, amount: 6000, date: "2018-01-31T00:00:00.000Z" },{ id: 4, amount: 7000, date: "2017-01-31T00:...
2018/03/19
1,677
3,673
<issue_start>username_0: to find and plot a minium in an X,Y-plot I made below, working code. However I find it ugly and would expect something more elegant. The tibble, cf, contains in reality more then two variable. I reduced it to two only. Who can provide me with more elegant code? thx!! ========= ``` cf <- tib...
2018/03/19
780
2,481
<issue_start>username_0: I have a WP site which uses a calendaring plugin - currently the url the calendar system creates to change the month view of the calendar is hitting a url which fails to advance the month view of the calendar... I have worked out what the correct url should be - but need a way of redirecting fr...
2018/03/19
1,606
5,759
<issue_start>username_0: I have users take a quiz. After each question, I want to show them whether their answer was correct or incorrect. The correct answer should be highlighted in green, and their answer (if incorrect) should be highlighted in red (using Twitter Bootstrap styles). I am currently rendering the quiz ...
2018/03/19
262
933
<issue_start>username_0: For example I have a module like ``` defmodule Foo do @type bar :: string end ``` But I don't want to generate doc for `bar` because it's meant to use internal implementation.<issue_comment>username_1: I believe that you can use the flag ``` @doc false ``` on top of the code you dont w...
2018/03/19
565
2,363
<issue_start>username_0: I stumbled upon the following piece of code: ``` public static final Map> fooCacheMap = new ConcurrentHashMap<>(); ``` this cache is accessed from rest controller method: ``` public void fooMethod(String fooId) { Set fooSet = cacheMap.computeIfAbsent(fooId, k -> new ConcurrentSet<>()); ...
2018/03/19
1,134
2,912
<issue_start>username_0: I have a file with the following format: ``` Barcelona 2015,2016,2017 Real Madrid 2010 Napoli 2007,2009 Bayern Munich 2008,2009,2010,2011,2012,2013 ``` I want to save this to a dictionary having the team and next a list with the numbers. How can I make this? I have some difficulties ...
2018/03/19
618
2,350
<issue_start>username_0: I have a scenario where there will be two fields of each item. One field is a checkbox and another is dropdown but the point is to get a pair of data from this and I am mapping this based on the item(they have category too). And the dropdown depends on checkbox(when unchecked the dropdown is di...
2018/03/19
707
1,983
<issue_start>username_0: Why I'm getting the following error when I try to use an const int std::array? I had to replace "<" for "<\" in the error message to show it correctly: ``` #include #include using namespace std; int main() { array vals; return 0; } ``` > > test.cpp: In function ‘int main()’: > > > ...
2018/03/19
499
1,486
<issue_start>username_0: I need to have a working remote IMG display using PHP, let's say like this: ``` ![]($src) ``` And I need to fetch the remote URL based on $id, where ``` php $id = "brown_fox"; $url = "http://exampl.com/$id"; get_remote_img($url) { // some code to get image which SRC is dyn...
2018/03/19
5,608
12,075
<issue_start>username_0: I have a json as follows: ``` [{ "Domain": "google.com", "A": ["172.16.17.32"], "AAAA": ["fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b"], "CAA": ["0 issue \"pki.goog\""], "MX": ["20 alt1.aspmx.l.google.com.", "30 alt2.aspmx.l.google.com.", "10 aspmx.l.google....
2018/03/19
3,056
6,812
<issue_start>username_0: I'm working in a wordpress template, and I want to set my dropdown menu value to usa as default value when the index page is completely loaded using jQuery to activate an other dropdown menu; this my function code: ``` jQuery(document).ready(function() { if (jQuery('.car_form_search').length...
2018/03/19
2,957
6,628
<issue_start>username_0: I am having trouble in using git on android studio. I know there may be many related questions asked on this topic But I could not find any relevant answer. I can use git normally but with android studio i am facing many problems. I am working on a project with my friend. The main project is o...
2018/03/19
521
1,816
<issue_start>username_0: I am trying to create a game like rock, paper, scissors except with four different moves instead of three. The moves are all represented by K, G, B, V. For the computer to make a move, I need to generate a random letter to play against the human. I also need it to be a string so that I can comp...
2018/03/19
865
2,823
<issue_start>username_0: I created a PHP function that will convert an array: ``` [ 'one/two' => 3, 'one/four/0' => 5, 'one/four/1' => 6, 'one/four/2' => 7, 'eight/nine/ten' => 11, ] ``` Into the following JSON string: ``` { "one": { "two": 3, "four": [ 5,6,7] }, ...
2018/03/19
710
1,854
<issue_start>username_0: I have a dataframe: ``` d = {'col1':['2q','48', '48-49']} test = pd.DataFrame(d) col1 0 2q 1 48 2 48-49 ``` And a dictionary for mapping: ``` mupcs_to_pc_mapping = {'24': ['48-49', '48', '49'], #M2 '23': ['50-51', '50', '51'], #M3 '22': ['52-53', '5...
2018/03/19
517
1,862
<issue_start>username_0: Please help me, I really dont get it when the value of this.state.isX printed console is always true. Why setState not work in this case. Here is my source code?` ``` class Square extends React.Component { constructor(props) { super(props); this.state = { value: null, isX...
2018/03/19
221
926
<issue_start>username_0: ``` public async Task Method(string value, [FromBody] Person person) ``` Can `person` ever be null here? UPDATE: Forgot to mention that the person object has alteast one property marked with `[Required]` attribute, and that i'm receiving `A non-empty request body is required`<issue_comment>u...
2018/03/19
989
3,560
<issue_start>username_0: I have a code in Lua. In the first function, I get a JSON data and put it in a variable (item1), and am able to print it. In the second function, I would like to use this variable to show the image (because item1 is an image URL). I tried a forward declaration like this and put it in the second...
2018/03/19
461
1,601
<issue_start>username_0: I am a newbie. I need to create wordlist with specified pattern. The pattern will look like *XXXXX00000* where X are 5 english characters (different, but can be same, small from alphabet) and 00000 are 5 numbers (0-9). (There will not be some special characters like &, $, \_, -...) Can someone...
2018/03/19
502
1,636
<issue_start>username_0: I use Create-React-App to build a small React application. The full code is stored in [github](https://github.com/juan-coding/score-board-app) My file structure: ``` src components Players.js Player.js App.css App.js index.css index.js ... ``` *App.js:* ``` import React from 're...
2018/03/19
148
536
<issue_start>username_0: got something like: ``` var asd = $(''); ``` I want to get the div with id = 1. .find is not working. How do I get the element to change some values or to append stuff to it? Thanks<issue_comment>username_1: Your file path is wrong. `Player` is in the same folder as `Players`, so you need t...
2018/03/19
702
1,973
<issue_start>username_0: I'm trying to install Xamarin.Android.Support.v7.CardView package via NuGet, but it fails with this error in Error list window: ``` При попытке установить необходимые компоненты Android для проекта "App1" произошла ошибка. Для проекта "App1" на вашем компьютере должны быть установлены следующи...
2018/03/19
288
1,186
<issue_start>username_0: I have a front end application communicating with a database. Via front end you can modify the database, so I need to authorize users. I setup authentication via google to enter the application, however I also want to check if user is logged in and authorised BEFORE every action that would inv...
2018/03/19
414
1,596
<issue_start>username_0: I have a **users** table and **user\_followings** table. The tables have the basic structure: ``` users: id, name, email users_followings: following_user_id, follower_user_id ``` * follower\_user\_id is someone who is following some other person. * following\_user\_id is someone who is being...
2018/03/19
1,366
5,397
<issue_start>username_0: Testing my web API (nuget package Microsoft.AspNetCoreAll 2.0.5) I run into strange issues with the model validation using annotations. I have (for example) this controller: ``` [HttpPost] public IActionResult Create([FromBody] RequestModel request) { if (!ModelState.IsValid) { retu...
2018/03/19
445
1,164
<issue_start>username_0: I have a file having many lines of data separated by comma like ``` Mary,F,6919 Anna,F,2698 Emma,F,2034 Elizabeth,F,1852 Margaret,F,1658 Minnie,F,1653 ``` I am reading the text file and trying to split the words ``` filename = 1880.txt with open(filename) as f: content = f.readlines() ...
2018/03/19
383
1,545
<issue_start>username_0: I want to configure packages.config to download the available highest version of a package. How can I do that? Something like: ``` ``` I saw attr "allowedVersions", but it always download the version configured in "version" attr.<issue_comment>username_1: Unfortunately, this isn't possible ...
2018/03/19
440
1,409
<issue_start>username_0: How to make individual cells in a table a hyperlink in html? This is how I tried to make it and it did not work: ```html | | | | | | | --- | --- | --- | --- | --- | | Home | Locations | Accomodation | Transport | Contact Us | ```<issue_comment>username_1: The problem is ...
2018/03/19
920
2,981
<issue_start>username_0: my project is in Laravel 5.5 i have the table **wposts** for a multilevel menu in laravel and posts in the same time. The fields of the table are: ``` - id - parentpost (id of parent post) - title - porder (order of posts in the same menu) ``` In the Controller i have the function **getwpost...
2018/03/19
908
3,035
<issue_start>username_0: I'm switching my old datalayer (using Queues) to the "new" and recommended Dataset API. I'm using it for the first time, so I'm providing code examples in case I got something fundamentally wrong. I create my Dataset from a generator (that will read a file, and provide n samples). It's a small...
2018/03/19
1,262
4,648
<issue_start>username_0: I have a List of objects each of which has a method getNumOrder that returns a string. The objects in the list are sorted in lexicographical order. Most of the times all the objects in the list have getNumOrder that return an integer (but not always). If all the elements in the lists have NumO...
2018/03/19
1,996
6,264
<issue_start>username_0: I have this database: ``` [{"cliente": {"nombre": "<NAME>"}, "mercancia": {"envio": "Normal", "tipo": "Gaseoso", "fecha": "24/12/2003", "peso": 21, "volumen": 43, "origen": "Cadiz", "destino": "Castellon"}, "vagon": {"id": 1330, "volumen": 202, "peso": 433 }},{"cliente": {"nombre": "<NAME>"...
2018/03/19
459
1,572
<issue_start>username_0: I would like to query all columns and their description in a table/dataset. I'm looking similar metadata tables like `__TABLES_SUMMARY__` and `__TABLES__`. The goal is to build a data dictionary report in Data Studio for the BigQuery tables.<issue_comment>username_1: You can use [`bq show`](ht...
2018/03/19
494
1,819
<issue_start>username_0: I'm looking to copy my SQL Developer preferences across to multiple devices and I'm wondering where I'd find the file/files to copy across. When referring to preferences in particular, I'm talking about the preferences accessed through Tools -> Preferences. I would like an exact copy of all pr...
2018/03/19
657
2,310
<issue_start>username_0: For some reason, the `onReceive()` method of my `BroadcastReceiver` class is not always called. It is usually called, but sometimes it is not. More specifically, I am receiving `android.intent.action.PHONE_STATE`. Most of the time, when a call comes in, the `onRecieve()` method is called as it...
2018/03/19
468
1,582
<issue_start>username_0: I am using google finance api for conversion of currency based on real rate conversion, The API what I am using is given below: **<https://finance.google.com/finance/converter?a=1&from=USD&to=INR>** It was working till yesterday but from today it's throwing 403 response code. Can anyone hel...
2018/03/19
1,718
6,403
<issue_start>username_0: I'm trying to write a script to connect to TFS using powershell, however I'm stuck on the part of actually connecting ``` $credentialProvider = new-object Microsoft.TeamFoundation.Client.UICredentialsProvider $collection = [Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory]::...
2018/03/19
745
2,815
<issue_start>username_0: I have done some research and got a specific problem with facebook login SDK. I use the PHP SDK. So, as from march 2018 all facebook developers will be seing "Use Strict Mode for Redirect URIs" turned on (and cannot turn it off). My website was working fine before the latesr API update. The bas...
2018/03/19
442
1,532
<issue_start>username_0: I am struggling in obtaining both of the behaviors requested in the title. 1) I have a property file like this: ``` my.list=a,b,c ``` 2) If that property is not present I want an empty list Why the following is throwing me syntax error? ``` @Value("#{'${my.list}'.split(',') : T(java.util.C...
2018/03/19
526
2,005
<issue_start>username_0: I'm having a lot of difficulty installing matplotlib in my pipenv, I believe due to the non-python dependencies. The error I am getting is `Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Py...
2018/03/19
573
2,228
<issue_start>username_0: I was editing an HTML page and had some issue in replacing image. It didn't displayed anything. Then I tried making a simple HTML program just to test ``` ![HTML5 Icon](/images/Kanhaji.jpg) ``` but it still doesnot work. I tried Everything Including but not limited to 1. Giving loca...
2018/03/19
653
2,540
<issue_start>username_0: I need to map all urls in the / which otherwise would give 404 so they get served by a specific servlet. How do I do that? so /unknownUrl1 and /unknownUrl2 should be shown using my UnhandledUrlsServlet while /unknown/somethingElse should just give the normal 404 error page. In case this is no...
2018/03/19
468
1,793
<issue_start>username_0: So basically I want to check that a setting is not set in my C# application. The code here ``` if (Default["StudentAccountTypeDefault"] is null) // Crashes after this { // } else { // } ``` seems to be crashing on the null-check. I've put a breakpoint there, and it shows `Default["De...
2018/03/19
285
1,167
<issue_start>username_0: I have a console application written in C# that runs as a service each hour. The application has a Data Access Layer (DAL) to connect to the database with a Db Context. This context is a property of the DAL and is created each time the DAL is created. I believe this has lead to errors when upda...
2018/03/19
1,287
4,704
<issue_start>username_0: I am trying to validate integer input from a string, I just need a boolean result if the input string correctly changes types to an integer. I tried this method from another question: <https://stackoverflow.com/a/30030649/3339668> This is the relevant code along with my imports: ``` import D...
2018/03/19
712
2,186
<issue_start>username_0: I'm using Ionic 3 with Angular 5 and I want to handle the click event of an element returned by Pipes. I've the following code: `linkify.ts`: ``` import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'linkify', }) export class LinkifyPipe implements PipeTransform { transfo...
2018/03/19
539
1,848
<issue_start>username_0: I write slides in RMarkdown and compile them into Beamer presentations. I want to incrementally reveal bullets and subbullets on slides. Below is a `.Rmd` file showing some of my failed attempts. In these attempts, I insert 4 spaces before the subbullet lines. I want to control the incrementing...
2018/03/19
716
2,810
<issue_start>username_0: When I pass self as an argument to a function, does it make any difference if I weakify it first? For example: ``` __weak __typeof(self) weakSelf = self; [self.someObject doWorkWithDelegate: weakSelf]; ``` In the body of the doWork function it assigns it to a strong property ``` @property ...
2018/03/19
1,680
6,080
<issue_start>username_0: I'm trying the **Wikipedia** client login flow depicted in the [API:Login](https://www.mediawiki.org/wiki/API:Login) docs, but something wrong happens: 1) I correctly get a token raised with the HTTP GET `https://en.wikipedia.org/w/api.php?action=query&meta=tokens&type=login&format=json` and ...
2018/03/19
795
2,662
<issue_start>username_0: I wrote this code for like and dislike for my posts in my blog: ``` $(".p_like").each(function() { $(this).click(function() { ids = $(this).find(".pl_id").val(); t = $(this); if ($(this).find(".bi").hasClass("bi-heart-o")) { gfd = 'p'; $(this).find(".bi").addClass("...
2018/03/19
1,185
4,017
<issue_start>username_0: I have an object that contains multiple datasets objects that can contain an array of items or multiple arrays within this object. Without knowing whether it is a multiple object array, how can I pass it to function, that is expecting to 'forEach' depending on the amount of the arrays? To make...
2018/03/19
288
1,026
<issue_start>username_0: Is there any reason that this attribute tag a[h2]{color:orange;} wont work in css? I Cant seem to get the attribute tag to work for any elements.<issue_comment>username_1: Did you make a reference in the html page to your stylesheet? If this is done, check whether the element has an h2 attrib...
2018/03/19
524
1,630
<issue_start>username_0: I have a dictionary: ``` {'dict': [['IE', '5', '-5'], ['UK', '3', '-9']]} ``` I wish to pop the list values that are outside of the UK, therefore taking the first value within the lists and comparing to see if it is equal to 'UK'. I currently have: ``` for k,v in insideUK.items(): for...
2018/03/19
786
2,618
<issue_start>username_0: I'm trying to start writing my Qt project inside JetBrains' Clion but I need to link some libraries in my Cmake file first. There's no problem when trying to find packages like Qt5Core, Qt5Widgets, Qt5Gui but when it come to finding Qt5Charts an error is thrown: > > > > > > By not providin...
2018/03/19
960
4,056
<issue_start>username_0: So far I've seen how to set expiration for the client webapp's cookie (thank you v0id): [IdentityServer4 cookie expiration](https://stackoverflow.com/questions/49325793/identityserver4-cookie-expiration) There are actually two cookies used by IdentityServer4 - the client cookie and server cook...