date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
448
1,201
<issue_start>username_0: I've a property named as messageDict sometimes it will get nil value due to that app is crashing. can someone suggest me how to properly handle it. ``` var messageDict : [String : NSArray]? if let messageDict = messageDict { let messageArray = messageDict[outBoxId]! as! [MCOIMAPMessage] ...
2018/03/19
815
2,535
<issue_start>username_0: **First iteration:-** ``` class ConcurrentHashMapBehaviour { public static void main(String[] args) { ConcurrentHashMap map = new ConcurrentHashMap(); map.put("ONE", 1); map.put("TWO", 2); map.put("THREE", 3); map.put("FOUR", 4); Iterator it = map.keySet().iterator...
2018/03/19
333
1,223
<issue_start>username_0: I want to implement click event on click of submit button but sometimes it is firing before form submission and sometimes it does not work and form is submitted before click event. How I can trigger this click event every time. Here is code for this click event ``` jQuery(document).ready(fu...
2018/03/19
580
2,146
<issue_start>username_0: My Question is when an null ability occur in one to one relation even my child class Primary Key same like parent class Primary Key So when Insert @PrimaryKeyJoinColumn on one to one relation in Insertion I have seen below Link Issue [not-null property references a null or transient value in on...
2018/03/19
598
1,982
<issue_start>username_0: This is the text I get from database: ``` Lorem ipsum dolor sit amet ``` How can I also enclose words before and after into spans with PHP? I need to control every span differently with CSS. ``` Lorem ipsum dolor sit amet ```<issue_comment>username_1: You can achieve this without the ne...
2018/03/19
709
2,476
<issue_start>username_0: After hours of research, I could not find any example on multi-label predictions with object detection API. Basically I would like to predict more than one label per instance in an image. As the image shown below: [![enter image description here](https://i.stack.imgur.com/4wbwa.jpg)](https://i...
2018/03/19
686
2,390
<issue_start>username_0: I'm trying to make an app that plays audio with the MediaBrowserService but also use the new Architecture Components to structure the whole app. I have use MediaBrowserService before for another app(<https://github.com/willhwongwork/PodCast>) but in that app I did not use the OnGetRoot() and On...
2018/03/19
757
2,046
<issue_start>username_0: I have an array - ``` [[Rice, 125.0, 5000.0, Sat Dec 30 01:23:24 GMT-06:36 1899], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ]] ``` I am needing to remove the empty arrays from the end of the array how can I do this?<issue_comment>username_1: A slightly more elegant ...
2018/03/19
812
2,484
<issue_start>username_0: My examples are made with easy available data: ``` data(Salaries, package="car") library(tidyverse) ``` When running: ``` ggplot(Salaries, aes(x=yrs.since.phd, y=salary, color=rank))+ geom_point() + geom_smooth(method="lm", size=0.5)+ facet_grid(~sex) ``` I got this graph which creates an...
2018/03/19
548
1,293
<issue_start>username_0: I am trying to assign float value in php to variable I tried following, ``` $_web_lat=‎18.501059; $_web_long=73.862686; echo $_web_lat .'='. $_web_long; [Parse error: syntax error, unexpected '.501059' (T_DNUMBER)] ``` OR ``` $_web_lat=floatval('‎18.501059'); $_web_long=floatval('‎‎73.862...
2018/03/19
1,111
3,957
<issue_start>username_0: I want to send private messages to a User with a Discord Bot. The user is not in the same server as the bot. If I can use author.sendMessage, how can I initialize(find) author variable? Can I find the user with User id? Thank you for reading.<issue_comment>username_1: Your [Client](https://...
2018/03/19
327
916
<issue_start>username_0: I have a string 3pm and i want to convert it to HH using moment.js ? How can I possibly do that. I need it because the actual date was 10-03-2018 3pm-4pm ; I split this to only get 3pm and now I need this 3pm in 'HH' that is 15.<issue_comment>username_1: Why is using moment a requirement? If yo...
2018/03/19
492
1,802
<issue_start>username_0: I've trouble with the following code. It's showing error while implementing the following code section. It's a code on JavaFX MediaPlayer project. ``` mediaPlayer.currentTimeProperty().addListener(new ChangeListener() { @Override public void changed(ObservableValue extends Duration observabl...
2018/03/19
541
2,355
<issue_start>username_0: When i render the power bi visuals, I notice that there is a grey border on the right and left side of the image. Is there a way to get rid of that? [![enter image description here](https://i.stack.imgur.com/mwhpV.png)](https://i.stack.imgur.com/mwhpV.png) It's awkward that the grey border is ...
2018/03/19
751
2,541
<issue_start>username_0: One of the textbox contains a comma separated set of values as displayed below, ``` 1234,1234,1234,1234,1234,1234,1234,1234,1234,1234,1234,1234,1234,1234,1234 ``` Existing output: ``` 1234,1234,1234,1234,1234,1234,1234,1234,1234,1234,123 4,1234,1234,1234,1234 ``` Expected output: ``` 1...
2018/03/19
1,752
6,923
<issue_start>username_0: In my program, i have a "reset" button that i want to make appear when the user opens the app for the first time each day. So When the view loads, i create a variable to hold what day it is (i.e: 19), and then set that day as a user default. I then use an if statement to determine whether the u...
2018/03/19
1,350
4,093
<issue_start>username_0: Why does this code print 10 = -246 instead of 10 = 10? Does the pointer size matter? ``` #include int main() { int i = 10; int j = -1; char \*p, \*q; p = (char\*) &i q = (char\*) &j \*q = \*p; printf("%d = %d\n", i, j); return 0; } ```<issue_comment>username_1: First of all, th...
2018/03/19
1,512
4,983
<issue_start>username_0: When I navigate to a page using this event: ``` this.events.subscribe('liveTrackingEvent', (time, unit) => { console.log("event triggered"); this.searchForm.controls['unitID'].setValue(this.unitSelected.unit.name); this.GetLiveData(); }); ``` everything gets call...
2018/03/19
498
1,768
<issue_start>username_0: Is it possible to sum two values from subqueries? I need select three values: total\_view, total\_comments and rating. Both subqueries is very complicated, so i don't wish duplicate it. My query example: ``` SELECT p.id, ( FIRST subquery ) AS total_view, ( SECOND subquery ) AS to...
2018/03/19
5,281
22,011
<issue_start>username_0: I wants to display my location in android device in google may using marker. I have written the following code. But there has no marker in the map. I also implement the LocationListener. But no marker. I am thankful to you if you send some code or give some suggestion. I am also checking the i...
2018/03/19
3,968
16,774
<issue_start>username_0: Something a coworker of mine found: Using Java 8, the `javadoc` for this class doesn't generate correct html: ``` public class JavadocBounds { /** * A method with a parameter of type {@link Callback}. \*/ public void method(Callback callback) {} static class Callback {} static...
2018/03/19
642
2,173
<issue_start>username_0: I got this array of string ``` String s1[] = {"H","E","L","L","O"}; ``` and a method to convert it into int ``` public static int[] String2Int(String[] k){ int[] arrayBuffer = new int[k.length]; for (int i=0; i < k.length; i++) { //arrayBuffer[i] = Integer.parseInt(...
2018/03/19
622
2,251
<issue_start>username_0: I have installed and configured Team Foundation Server 2015 Update 3 in one of our server a few weeks ago. All was going well until the pc unexpectedly was shut down due to electrical problem. After turning on again we now get: > > Error 500 internal server error. > > > Tried to access ...
2018/03/19
857
3,515
<issue_start>username_0: Hello guys I just joined this forum and I must say using it has been tremendously helpful...thanks a lot. However I would like to know what's the difference between: ``` export const Hello = (props)=>{ returnHello {props.name} ================== ; } ``` AND ``` export default ({ nam...
2018/03/19
830
2,626
<issue_start>username_0: I'm trying to follow a react tutorial, My webpack.config.js file is as follows: ``` var webpack = require("webpack"); var pth = require("path"); module.exports = { entry: "./src/index.js", output: { path: __dirname + "/dist", filename: "bundle.js" }, devServer: { inline: true, ...
2018/03/19
1,701
6,401
<issue_start>username_0: I recently heard about the new C# Feature in 7.2, so that we now can return a reference of value type (for example `int`) or even a readonly reference of a value type. So as far as I know a value type is stored in the stack. And when the method is left, they are removed from stack. So what happ...
2018/03/19
1,729
6,553
<issue_start>username_0: im kinda new to the site, as a user atleast, been finding my answers in here for a long time :) My problem is this, i work at a rather big hospital, where we run a mysql db containing all our employees, and now i need to make a query that can show my all employees who's employment ended during...
2018/03/19
1,703
4,831
<issue_start>username_0: I want to get the value of the json response. I wrote an Ajax function as below: ``` $.ajax({ url: '/v1/shopify-Ajax/ajax.php', method: 'post', data: {datalog: dataLog, variant: $('#prod').val()} }) .success(function(response){ //window.location.href = "/v1/thank-you.ph...
2018/03/19
453
1,674
<issue_start>username_0: It should work but it doesn't. I have referred others but couldn't find the reason. ``` OracleCommand cmd = con.CreateCommand(); var query = $@"UPDATE Customer SET ContactName = :ct WHERE CustomerID = :id"; cmd.CommandText = query; cmd.Parameters.Clear(); cmd.Parameters.Add(ne...
2018/03/19
541
1,688
<issue_start>username_0: Heei, I have a problem when view my html result with blade laravel. Look at this pictures **Code** [![enter image description here](https://i.stack.imgur.com/atsoj.png)](https://i.stack.imgur.com/atsoj.png) **HTML** ``` @foreach($acara as $value) ![](some_photo_from_db) @endforeach ``...
2018/03/19
1,549
3,928
<issue_start>username_0: ``` #include int main() { int a, b, c, temp; scanf("%d %d %d", &a, &b, &c); if (a > b) { temp = a; a = b; b = temp; } else if (b > c) { temp = b; b = c; c = temp; } else if (c > a) { temp = c; c = a; a = temp; } printf("%d %d %d", a, b, c); return 0; } ``` If I put 8,6,...
2018/03/19
648
2,448
<issue_start>username_0: Is it possible to sync users from cloud Azure Active Directory to on premise AD? On premise is a bit wrong here because it is actually a virtual network in Azure with a Windows Server virtual machine AD. I started with Azure AD and therefore all users are there but I would like to sync them to ...
2018/03/19
2,620
8,153
<issue_start>username_0: I'm able to capture signals from a RTL-SDR by using the following: ``` from rtlsdr import * i = 0 signals = [] sdr = RtlSdr() sdr.sample_rate = 2.8e6 sdr.center_freq = 434.42e6 sdr.gain = 25 while True: samples = sdr.read_samples(1024*1024) decibel = 10*log10(var(samples)) ...
2018/03/19
453
1,755
<issue_start>username_0: Recently I'm programing an app with nativescript, and now I have a problem that I don't know how to save the user's login state. For example, if user login at the first time, he will not need to login in the future. So how could I achieve this?<issue_comment>username_1: Use **application-settin...
2018/03/19
764
2,941
<issue_start>username_0: I need guys your help. I can't understand what to use either list or set. List is more efficient. dictionary also need index. but my problem is text should be string so variable must equal to text as string. I can't D=['a','b','c']. text gives me error because it can't compare them all except ...
2018/03/19
494
1,855
<issue_start>username_0: Hi I'm a beginner in Asp.net actually I'm trying to prevent the user from inserting letter in the phone number text box, I am trying this code but it doesn't work. ``` private void TxtBox5_KeyPress(object sender, KeyPressEventArgs e) { char ch = e.KeyChar; if (!Char.IsDigit(ch) && ch !...
2018/03/19
633
2,513
<issue_start>username_0: I have been working on this issue for some time now This is the code I am testing ``` public Observable prepare() { return Observable.create(subscriber -> { // Some work is being done here but this part is never reached subscriber.onCompleted(); }).subscribeOn(scheduler); } ``` The sch...
2018/03/19
415
1,468
<issue_start>username_0: I am trying to add both an ID and class to input fields plus the addition of a number after each ID and class element so that they all have unique ID's and Class's. I need this to be added to the input fields on window load. After many attempts I am having trouble doing this with various counte...
2018/03/19
1,192
4,950
<issue_start>username_0: I want to migrate my asp.net (UI ASPX pages WebForms) application to ASP.NET Core 2. By some search I found out aspx is not supported in .net core. If this is true(anyone has exact documentation for this?) how should anyone proceed to convert from pure asp.net aspx project to asp.net core 2.0? ...
2018/03/19
528
1,937
<issue_start>username_0: I have this JSON object: ``` {"home_device_name":"light","light_status":[{"id_light":"1","status":"1"},{"id_light":"2","status":"0"}]} ``` I read it as a JSON object but I can't access "light\_status", I want to convert it to an array to be able to read it.<issue_comment>username_1: First ad...
2018/03/19
460
1,691
<issue_start>username_0: C:\apache-jmeter-4.0\bin>jmeter.bat The JMETER\_HOME environment variable is not defined correctly This environment variable is needed to run this program JMETER\_HOME is set correctly in environment variable. ApacheJMeter.jar is working fine. Similar issue found in below link but this also ...
2018/03/19
437
1,518
<issue_start>username_0: I am trying to create a flag for date from datetime column. but getting an error after applying the below function. ``` def f(r): if r['balance_dt'] <= '2016-11-30': return 0 else: return 1 df_obctohdfc['balance_dt_flag'] = df_obctohdfc.apply(f,axis=1) ```<issue_comme...
2018/03/19
1,367
4,885
<issue_start>username_0: I'm trying to create a wrapper component around the react-router-dom `NavLink` component. I would like my custom component to accept all of NavLinks props, and proxy them down to `NavLink`. However when I do this, I'm getting: > > Warning: React does not recognize the `staticContext` prop o...
2018/03/19
513
1,712
<issue_start>username_0: Is there a simple way to get the class name without the namespace **without** using Reflection? This is my class and when I call `get_class()` I get `CRMPiccoBundle\Services\RFC\Webhook\SiteCancelled` ``` namespace CRMPiccoBundle\Services\RFC\Webhook; class SiteCancelled extends Base impleme...
2018/03/19
551
1,882
<issue_start>username_0: I have a error with my login script. The connection is successful but it does not display a success message when the login is successful. Still displays my dbconn file message. **Any ideas on how to make this work?** dbconn code ``` php $user = 'root'; $password = '<PASSWORD>'; $db = 'peerw...
2018/03/19
3,046
8,797
<issue_start>username_0: Given a `data_frame` which represent some kind of hierarchy I want to transform this data into a nested JSON with a specific structure. Given this `data_frame` ``` df <- data_frame( "parent" = c("A", "A", "A", "A", "A", "B", "B", "B", "B", "C", "C", "C", "C", "C", "C"), "child1" = c("...
2018/03/19
697
2,555
<issue_start>username_0: I am new to Django and don't understand what really is causing this: I have a Model Company which has an OneToOneField, creator. ``` # models.py class Company(models.Model): class Meta: verbose_name = 'Company' verbose_name_plural = 'Companies' creator = models.OneTo...
2018/03/19
460
1,649
<issue_start>username_0: Unable to invoke the class, although i defined it. I tried with many methods. **Error:** ``` error: cannot find symbol StopWord d= new StopWord();//test for StopWord ^ symbol: class StopWord ``` **Code:** This is my main file ``` public static void main(String[]args)throws Exception {...
2018/03/19
813
2,870
<issue_start>username_0: Visual Studio Code highlights string literals with prefixes `r` and `R` differently: ``` Match = re.search(r"\d{2} \d{4} \d{2}:\d{2}:\d{2})", Output) Match = re.search(R"\d{2} \d(4} \d{2}:\d{2}:\d{2})", Output) ``` [![enter image description here](https://i.stack.imgur.com/hFPlM.png)](http...
2018/03/19
808
2,848
<issue_start>username_0: I have a Table named "LANGUAGE" - with words in SPANISH and ENGLISH. Like: ``` ID - SPA - ENG 1 - Hoy - Hello 2 - Nombre - Name 3 - Jugar - Play ``` I Got the Spanish words: ``` SQL= "SELECT SPA FROM LANGUAGES" SET LANGDB = conn.Execute(SQL) ``` And I want to identify ID 2 word (Nombre)...
2018/03/19
606
2,154
<issue_start>username_0: I've just started to learn React and I would like to create simple page with form. Form should contain inputs `keywords` and `city`, select list `date` and submit buttom. It's structure of my project [![enter image description here](https://i.stack.imgur.com/y3Q5f.png)](https://i.stack.img...
2018/03/19
1,359
4,607
<issue_start>username_0: My son is doing times tables practice on this page, a timed test in which he gets 10 seconds for each sum. <https://www.timestables.com/speed-test/> - this is not my site or code, I have no direct control over the source code. I want to give him a little more time per sum but I cannot find a ...
2018/03/19
531
1,898
<issue_start>username_0: **I want to create a list with Horizontal listview but vertical text. Just like this.** [![enter image description here](https://i.stack.imgur.com/Dq8Gr.png)](https://i.stack.imgur.com/Dq8Gr.png) **I have wrote the code,as following** ``` ListView { id: listView; orientation: ListV...
2018/03/19
1,299
5,202
<issue_start>username_0: I want generate C# classes from wsdl url in ASP.NET Core 2.1. WSDL url is:<https://airarabia.isaaviations.com/webservices/services/AAResWebServices?wsdl> I used "Microsoft WCF Web Service Reference Provider" tool to generate C# class and got following error: > > Error: No code was generated...
2018/03/19
383
1,446
<issue_start>username_0: I have come across many questions and answers related to this kind of questions, but not for exactly this question. Well, according to the official [MYSQL documentation](https://dev.mysql.com/doc/refman/5.7/en/update.html) it says > > If you set a column to the value it currently has, MySQL...
2018/03/19
1,452
4,330
<issue_start>username_0: ``` | Name | Email | | --- | --- | var Classmates = ["Chris", "Jan", "Thomas", "Julia", "Tess", "Remco", "Kris", "Mark", "Rick", "Sara"]; var Emails = ["<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>"]; for (var i = 0; i < 11; i++)...
2018/03/19
670
2,305
<issue_start>username_0: When trying to save a script as an R file, I am not able to. The save as window opens, but the 'save as type' bar below the 'file name' bar is blocked/greyed-out. I am, however, able to save the script as an unreadable file. When I open it again to continue working on it, it cannot run. I then ...
2018/03/19
480
1,710
<issue_start>username_0: I need to store only say 10 number docs under a particular index. And the 11th item should replace the old item i.e 1st item. So that i will be having only 10 doc at any time. I am using elacticsearch in golang<issue_comment>username_1: I'm assuming you will have fixed names for documents, like...
2018/03/19
400
1,556
<issue_start>username_0: as a webdeveloper I really love developing on chrome. Now I noticed a bug with position: sticky on Google Chrome Browser. Elements that a positioned sticky wont behave correctly, means: everything seems to be good, until you hover an sticky positioned element, it wont react on interactions etc....
2018/03/19
1,239
4,174
<issue_start>username_0: I want to write a class that takes a pair of iterators as parameters to the constructor, but I dont know how to raise an error at compile-time when those iterators' `value_type` doesn't match an expected type. This is what I tried using `typeid`: ``` #include struct foo { std::vector data; ...
2018/03/19
1,164
4,076
<issue_start>username_0: I am starting to use promise in NodeJS. The requirement is to use these because of async calls. Here is the first code I wrote for promise. ``` function asyncFunc(data) { return new Promise( function(resolve, reject) { try { resolve(data); }...
2018/03/19
736
2,899
<issue_start>username_0: I'm trying to send a GET request with a token authentication, but i get an unauthorized response. If i send the same request on Postman, it works. Here's my code : ``` string url = string.Format("{0}batchs", MyUrl); RestClient client = new RestClient(url); RestRequest getRequest = new RestRe...
2018/03/19
981
3,897
<issue_start>username_0: If I run the following query in sqldeveloper (or sqlplus): ``` select * from passwordlog where exists( select USERUID from otherTable where uid=2 ); ``` and the `where exists` evaluates to false, the result is just empty. ...
2018/03/19
950
3,769
<issue_start>username_0: The project spring boot 1..5.7 release. I am using Intellij IDEA 2017.2.4 and gradle for dependency management. When i build the project it builds successfully with no error. When I run the application with bootRun gradle task it shows the following error. ``` Exception in thread "main" java....
2018/03/19
443
1,478
<issue_start>username_0: It is a simple controller. Receive requests from users, do task and response to them. My goal is to make the response as soon as possible and do the task then so the user will not notice the lengthy waiting time. Here is my code: ``` router.post("/some-task", (req, res, next) => { res.sen...
2018/03/19
438
1,300
<issue_start>username_0: I have the following code snippet: ``` bevs <- data.frame(cbind(name = c("Bill", "Llib"), drink = c("coffee", "tea", "cocoa", "water"), cost = seq(1:8))) bevs$cost <- as.integer(bevs$cost) library(plyr) count(bevs, "name") ``` Output Should be: ``` name freq 1 Bill 4 2 Llib 4 ``` ...
2018/03/19
313
1,033
<issue_start>username_0: How can I override the **favicon.ico** in the Hybris using an addon? I tried to overwrite the property `img.favIcon` but it doesn't work<issue_comment>username_1: You can have a callback after `res.end` that will execute as soon as the response was sent. ``` router.get('/', function(req, res,...
2018/03/19
497
1,808
<issue_start>username_0: I'm trying to create `DatagridComboBoxColumn` from code behind. How can I link it to `ElementStyle` and `EditingElementStyle`? I'm trying to create this: ``` ``` which creates this: [![enter image description here](https://i.stack.imgur.com/U4fag.png)](https://i.stack.imgur.com/U4fag.png) ...
2018/03/19
358
1,392
<issue_start>username_0: I want to create several VM's from [this](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/microsoft-ads.windows-data-science-vm?tab=Overview) Image automatically. When I'm getting redirected to the Portals Website I can choose the option "Want to deploy programmatically? Get sta...
2018/03/19
1,771
5,585
<issue_start>username_0: Following [my other question on how to parse date-only strings as LocalDateTime](https://stackoverflow.com/questions/49323017/parse-date-only-as-localdatetime-in-java-8/), on attempt to parse string 20120301122133 using pattern yyyyMMdd[HHmmss] I get an error. Strange thing is that parsing 2012...
2018/03/19
861
2,985
<issue_start>username_0: Odoo service is started by `systemctl start odoo`. I am usin Centos. When I want to update my changed \*.py code I used to do like this: ``` 1. systemctl stop odoo Then I update my module and database by useing this: 2. ./odoo.py -c openerp-server.conf -u -d 3. stop service by ctrl + c 4. sy...
2018/03/19
658
2,082
<issue_start>username_0: What is difference in creating a string object within the while loop, assign different values in each iteration and create string object outside the loop and assign value in each iteration?<issue_comment>username_1: The difference between the two code is the scope of the name variable. name can...
2018/03/19
629
2,187
<issue_start>username_0: I am getting this error while sync gradle project. Unable to resolve dependency for `':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:design:26.1.0` can anyone help me? ``` apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { ...
2018/03/19
494
1,794
<issue_start>username_0: I have downloaded the source code of example cordapp from [here](https://github.com/corda/cordapp-example). I am getting following error when I give the command : `gradle deployNodes`. Please guide me on what can be done. Note: This is Corda V3. ``` > Task :java-source:deployNodes Bootstrapp...
2018/03/19
298
1,110
<issue_start>username_0: The Unicode is allowed in identifiers in backticks ``` val `id` = "1" ``` But slash is not allowed ``` val `application/json` = "application/json" ``` In Scala we can have such names.<issue_comment>username_1: Kotlin's identifiers are used as-is, without any mangling, in the names of JVM ...
2018/03/19
655
2,076
<issue_start>username_0: I am trying to increment a value of an element here's my array object ``` "options": [ { "key": "banana", "votes": 0 }, { "key": "apple", "votes": 0 }, { "key": "mango", "votes": 0 }, { "key": "grapes", ...
2018/03/19
562
2,137
<issue_start>username_0: Is it possible to start an `Activity` using an `Intent` from a class that extends `LinearLayout`? Here is my code: ``` @Override public void onClick(View v) { if (inputConnection == null) return; if (v.getId()==R.id.replay) { //do not work ??? Intent intent=...
2018/03/19
897
3,083
<issue_start>username_0: I'm trying to make a \*ngFor directive to put data in two columns, instead of just one column as usual. I even followed an example I saw over there, but it didn't work at all. Let's start with the graphic part: I've got this: [![enter image description here](https://i.stack.imgur.com/Bg90z.png...
2018/03/19
1,181
4,837
<issue_start>username_0: I have Listview, ArrayAdapter and Layout for ArrayAdapter as ItemView. Now, I have managed to change the background color of selected/clicked item's layout. But how can I change the background color to the original when another item is selected? Code Sample : ``` Listview listview; int PREV...
2018/03/19
800
3,264
<issue_start>username_0: Given an object definition that I'm not allowed to modify: ``` let a = {"a-b" : 5}; ``` How can I add JSDoc over it ? I tried ``` /** * @type {{"a-b": number}} */ ``` But WebStorm tells me that this is not valid JSDoc.<issue_comment>username_1: You can just keep track of your last click...
2018/03/19
1,235
5,574
<issue_start>username_0: How to open Url in Webview activity Hi, i want to open link in WebView activity right now my code is scan barcode & open link directly to browser but i want to change it and open in Webview how can i do this please help me to fix this issue thanks here is code of BarcodeScannerActivity `...
2018/03/19
914
3,542
<issue_start>username_0: I'm creating authorization app, where I'm using Retrofit 2. When I'm doing call, that goes to onFailure method and gets exception `"javax.net.ssl.SSLException: Connection closed by peer"` But the problem is, that yesterday this worked great. Today it gives exception. I find in internet some ...
2018/03/19
663
2,544
<issue_start>username_0: I have an activity that uses recyclerView and for each item's view there is an Image.[![enter image description here](https://i.stack.imgur.com/oe6cw.png)](https://i.stack.imgur.com/oe6cw.png) I have used Garbage Collector GC() on Destroy as follows ``` recyclerView= null; a...
2018/03/19
597
1,878
<issue_start>username_0: I tried using `dict.fromkeys([1,2,3],set())`. This initializes creates the dictionary but when I add a value to any one of the sets all the sets get updated! ``` >>> d=dict.fromkeys([1,2,3],set()) >>> d >>> {1: set(), 2: set(), 3: set()} >>> d[1].add('a') >>> d >>> {1: {'a'}, 2: {'a'}, 3: {'a'...
2018/03/19
280
969
<issue_start>username_0: I have a following SQL query which I want to "build" with the ORM of Yii2: ``` SELECT * FROM table WHERE [some conditions] AND (col1 <> 0 OR col2 <> 0) ``` So I want to exclude all results where col1 and col2 equals 0, but I don't want to do this with the SQL `EXCEPT` command. The SQL shoul...
2018/03/19
353
1,413
<issue_start>username_0: On a Redhat OS, I have a script that launches a Java program. This script can be started from the command line but is launched (periodically) by crontab as well. Within this program, I need to know how the program was started. This because the output is written either to STDOUT (if started f...
2018/03/19
357
1,191
<issue_start>username_0: I have a little bit more complicated row than I can handle. I am echoing and I got lost in the " ', could someone help me out and tell me how to have this line correctly? ``` echo ' |'; ```<issue_comment>username_1: Escape single quotation? ``` echo '...![](/wp-content/themes/sparkling/edi...
2018/03/19
495
1,633
<issue_start>username_0: I have been trying for sometime now. I want to read from the properties file and store as a hashmap. Here is an example. ``` sample.properties pref1.pref2.abc.suf = 1 pref1.pref2.def.suf = 2 ... ... ``` Here is the Config class. ``` @ConfiguraionProperties @PropertySource(value = "classpat...
2018/03/19
9,913
30,628
<issue_start>username_0: I get the following error when I tried building my application again: `ERROR in ../../../node_modules/@angular/cdk/a11y/typings/aria-describer/aria-describer.d.ts(8,42): error TS2307: Cannot find module '@angular/core` This error occurred while I was developing my angular application. I appar...
2018/03/19
618
1,932
<issue_start>username_0: I have 30 variables with the pattern `aod7039, aod7040, ...., aod7068`. I want to do the same operation (i.e. calculate the mean over an axis) for all these variables and overwrite the original variables. Up to now I wrote 30 times the same line, and wondered if there isn't maybe an shorter an...
2018/03/19
2,149
6,770
<issue_start>username_0: I have two branches - `master` and `some`: ``` C2---M3---C4---C5 some / / C1---C3---C6---C7 master ``` Where `C1`, `C2`... - it's commits and `M3` - merge commit `C3`. I want to do: ``` git checkout some git reset --soft C1 ``` But I want to get around the merge commit `M3`. How c...
2018/03/19
1,769
5,049
<issue_start>username_0: I am trying to develop drop down box list in HTML and CSS. I am trying to toggle drop-down box list on clicking on it. When I select some item, it is not coming in drop-down button. Below is my code. ```js function toggleItems() { $('.dropdown-menu').toggleClass('open'); } function tes...
2018/03/19
761
2,701
<issue_start>username_0: I have a highly nested class, and trying to find a single item buried deep within. The following gives me an error "Can't convert type match to bool', although I don't see why it thinks I'm trying to return a boolean. ``` var match = community.TeamLeagues .Where(x => x.Seasons .Where...
2018/03/19
306
1,095
<issue_start>username_0: Is there a timer or interval function in Crystal? I checked the docs for a timer, interval, and under the Time class, but did not see anything. Something like `setInterval()` or `setTimeout()` from JavaScript?<issue_comment>username_1: For timeout there's [delay](https://crystal-lang.org/api/...
2018/03/19
437
1,527
<issue_start>username_0: In Linux/Unix based systems, whenever we execute a command in the shell and we echo the `$?`, the return value is 0 when its a success and the return value is 1 if the command fails. So, if I am using the BULK COPY utility called BCP for SQL Server, and if the command fails when there is an er...
2018/03/19
591
1,965
<issue_start>username_0: I'm trying to make a web page, in this page I need to dysplay in column 6 images of people with their names and description. But I'm stuck trying to display their name and description. Here is my code: **component.ts** ``` export class TeamComponent implements OnInit { public team: any[][];...
2018/03/19
3,386
7,466
<issue_start>username_0: I am getting into the programming of networks with caffe and since I am used to more comfortable and "lazy" solutions I am a bit overwhelmed by the problems that can occur. Right now I am getting the error `Check failed: status == CUDNN_STATUS_SUCCESS (3 vs. 0) CUDNN_STATUS_BAD_PARAM` This o...
2018/03/19
222
772
<issue_start>username_0: I want to check whether the element i click on page is having a background property and this is the code i tried ``` var img = document.querySelectorAll('*'); img.forEach(function(image){ image.addEventListener("click",function(e){ e.preventDefault(); if(this.style.background){ ...
2018/03/19
814
2,581
<issue_start>username_0: I have an enum in one class : ``` class SettingManager : public QObject { Q_OBJECT public: enum BookDisplayKinds{ BookDisplay1=0, BookDisplay2=1, }; Q_ENUMS(BookDisplayKinds) }; ``` I want to declare an property in another class ``` #include class BookManage...
2018/03/19
665
2,152
<issue_start>username_0: I am trying to load csv files in pandas dataframe. However, Python is taking very large amount of memory while loading the files. For example, the size of csv file is 289 MB but the memory usage goes to around 1700 MB while I am trying to load the file. And at that point, the system shows memor...