date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/07
654
2,559
<issue_start>username_0: How can I save additional user data in Cloud Firestore database? I mean, which one is the proper way? I want to create a user collection, where I can store their username and other data. I already found answers about this problem, but all of them are using the "old" Firebase Realtime Database s...
2018/03/07
442
1,724
<issue_start>username_0: I have downloaded mongodb php driver from <https://pecl.php.net/package/mongo>. When I extracted the files I couldn't find the php\_mongodb.dll file. In every tutorial it is said to copy that file. And download the from where I have downloaded. Still I don't know what have I done wrong?<issue...
2018/03/07
357
1,068
<issue_start>username_0: How can I access value at a certain index of a column in PySpark dataframe for example I want to access value at index 5 of a column named "Category". How can I do that in PySpark syntax?<issue_comment>username_1: Something like this, ``` value = df.where(df.index == 5).select('Category').coll...
2018/03/07
673
2,157
<issue_start>username_0: I have the below json: ``` { "repo_url":"git@github.plugin.git", "latest_commit":"bfe7bxxxx", "old_commit":"a4ccbyyy", "region": { "A":["us-south","us-east"], "B":["au-syd","germany"] } } ``` I need to get the key value `A`...
2018/03/07
242
861
<issue_start>username_0: nlp.('zz').vector.sum is -10. nlp('asc').vector.sum is -9.677 Shouldn't these words be out of vocabulary and have zero vectors ?<issue_comment>username_1: Depending on the model you're using, the training corpus may contain a lot of abbreviations, informal words (such as the ones in your exa...
2018/03/07
336
1,158
<issue_start>username_0: I have the below tabs in my page (a.html) ``` - [Home](#home) - [Details](#Details) - [Help](#help) ``` I have another page b.html, where I have a button that links to a.html. When I click on that button I want the "help" tag in a.html to get active. I tried something like ``` ``` Edi...
2018/03/07
644
2,366
<issue_start>username_0: I want to publish my app on Microsoft store. Found that we should generate ".appxupload" package for achieving it. I have followed this official [link](https://learn.microsoft.com/en-us/windows/uwp/packaging/packaging-uwp-apps) to generate .appxupload file. But it always generating appxbundle. ...
2018/03/07
1,075
4,307
<issue_start>username_0: I have this object what is just a wrapper around an external dll, in Windows. On creation of the object, the constructor queries the registry for the key, then queries this key's value for the folder with the dll, then loads the dll, gets the ProcAddress of this dll's initializator, and initial...
2018/03/07
2,388
10,725
<issue_start>username_0: Im trying to write a basic calculator with a main menu and sub menu. The code is working fine when a valid entry is inputted, but I want an error message to be displayed and then return the user to the main menu when invalid data is entered. This is what I have done so far. Can someone tell m...
2018/03/07
670
2,346
<issue_start>username_0: I have a very strange problem, i have a div with an anchor tag with an id in it, when i click on the anchor tag, it doesnt open the link in it, but if i right click it and open it in a new tab, it works perfectly, do you guys know why is that ? here is my exemple : ``` [my cocorico](https:/...
2018/03/07
3,844
11,413
<issue_start>username_0: I am having issues installing **Cordova** and **Ionic**. At first I couldn't because of what seems to be a corrupted installation, that led me to uninstall NodeJS - Cordova - Ionic. Now, I've reinstalled NodeJS, without issues but when it comes to the famous line : `npm install -g cordo...
2018/03/07
1,863
6,272
<issue_start>username_0: I have my docker installed in Windows. I am trying to install [this](https://github.com/Attendize/Attendize) application. It has given me the following docker-compose.yml file: ``` version: '2' services: web: build: context: . dockerfile: Dockerfile-nginx ports: - "8...
2018/03/07
821
2,824
<issue_start>username_0: I started to learn programming for **iOS** and I want to find out how to implement next **Java** functions with **threads** in **Swift**, and also in **Objective-C** (in my app I have some code using this language too) **Java threads (use it for Android apps)** 1) Wait for two or more threa...
2018/03/07
1,882
7,289
<issue_start>username_0: I am building a custom error handler in angular 4 to handle different kind of application error with error interceptor create a base class( *app-error.ts* ) and other classes ( for eg. to handle 403 errors create class *access-denied.ts* ) which extend this base class. in the base class have...
2018/03/07
679
2,885
<issue_start>username_0: I am trying to create a custom setter method for my property using the code below: ``` var myProperty: String { get { if CONDITION1 { return CONDITION1_STRING } else if CONDITION2 { return CONDITION2_STRING } else{ return myProper...
2018/03/07
609
2,029
<issue_start>username_0: I'm trying to test my classes and I need to mock a `static` class. My code is the following: ``` PowerMockito.mockStatic(ToolTipUtil::class.java) PowerMockito.`when`(ToolTipUtil.wasToolTipShown(any(Context::class.java), "")).thenReturn(true) val context = mock(Context::class.java) presenter.on...
2018/03/07
494
1,607
<issue_start>username_0: How do I show div or button on image hover? Only for image that hovered. ``` ![](http://via.placeholder.com/350x150) ![](http://via.placeholder.com/350x150) ![](http://via.placeholder.com/350x150) Test ``` Show button on image: top-right The image name can be a random. Need for IPB...
2018/03/07
566
1,533
<issue_start>username_0: I have one problem with my Amino\_acid mutation data. for example, ``` p.K303R p.? p.R1450* ``` and I want like this outopt ``` AA_mutation wt_residue position mt_residue p.K303R K 303 R p.? p.R1450* R 1450 * ``` I want to re...
2018/03/07
1,713
5,398
<issue_start>username_0: **Dual debugging (C/C++ and Java) works normally in Android Studio 2.3.3** with *minSdkVersion: 22*, *targetSdkVersion/compileSdkVersion: 26*. When I update to **Android Studio 3.0.1**, then **Java debugger is normal** but **C/C++ debugger does not work**. I test it separately between *Java an...
2018/03/07
2,423
5,458
<issue_start>username_0: I have a dataframe that looks like the below with a user id, timestamp and a song name. The timestamp is when the user has started playing the song. A session is defined where each song is started within 20 minutes of the previous song’s start time. I need to create a list of the top 10 longest...
2018/03/07
675
2,289
<issue_start>username_0: i am trying to find which files contains "RunInstances" from aws cloudtrail logs, with grep i could easily run this command to find out: grep -r "RunInstances" \* but i want to try to use python, i tried os.walk, and something is wrong: ``` john@john-HP-ProBook-4411s:~/Downloads$ python Pytho...
2018/03/07
423
1,597
<issue_start>username_0: I have taken the build of angular project and got dist folder.when i am trying to open the index.html in browser.I am getting the following error like failed to load resources and file not found for inline.bundle.js ,polyfil.bundle.js and many files. [![enter image description here](https://i.s...
2018/03/07
501
1,856
<issue_start>username_0: I'm using the Adafruit DHT11 Library for my temperature sensor. Sometimes the value that I get form that reading can't be converted to a float (I really don't know what kind of var type that is it only comes out every like 50 readings). Whenever this happens my script stops working with the err...
2018/03/07
505
1,642
<issue_start>username_0: I'm searching a way not to execute a function(e) if any input of the page is on focus. I tryed several ways unsuccesfully ;( Here is my code : ``` document.onkeyup=function(e){ var e = e || window.event;//Pour IE // Action sur la barre d'espace (32) if(e.which == 32) { $("#play...
2018/03/07
242
836
<issue_start>username_0: I'm trying to test the basic petstore example with a nodejs server and a cpp client. When trying to build the project with `cmake`, I have the following error: ``` Failed to find cpprest SDK (or missing components). Double check that "CPPREST_ROOT" is properly set ``` At line 39 of `CMake...
2018/03/07
1,036
4,330
<issue_start>username_0: I have a requirement to search something on list from current selected item in multilevel treeview. I have 4 Levels in my tree view and searching nodes on 4th level which match some condition.Look at below image: [![enter image description here](https://i.stack.imgur.com/M5ZCJ.png)](https://i.s...
2018/03/07
1,077
1,865
<issue_start>username_0: I've got 2 list/matrices ``` a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] b = [[10, 11, 12], [13, 14, 15], [16, 17, 18]] ``` and I want to get result like ``` result = [[(1, 10), (1, 11), (1, 12), (2, 10), (2, 11), (2, 12), (3, 10), (3, 11), (3, 12)], [(...
2018/03/07
572
2,112
<issue_start>username_0: I am a newbie to docker. I am running Postgresql running on my local machine (i.e. On Mac OS). My application is running in docker. What I want is my application should be able to access PostgreSQL (has got a lot of production data, which can't be run on docker) service from docker. How to do i...
2018/03/07
609
2,267
<issue_start>username_0: I'm implementing the smart message box from SmartAdmin in my Angular 5 project. I'm getting the error that SmartMessageBox is not a function in jquery. I didn't find a solution on stack overflow, the rest of the internet nor in the SmartAdmin documentation. My colleague said it could be a jque...
2018/03/07
461
1,937
<issue_start>username_0: I have this vertx code : ``` DeploymentOptions deploymentOptions=new DeploymentOptions(); deploymentOptions.setInstances(2); ``` I want to know how to stop or kill one instance of the set instances. Thanks.<issue_comment>username_1: If you want to downscale vertices, you'll need to deploy a...
2018/03/07
825
2,862
<issue_start>username_0: I am a data-analyst, just diving into the SQL-depths. Forgive me if my problem stated here is not formulated clear, I am open for suggestions to improve my problem formulating skills! So I have this table, but there is some double information in it (see --DATASET & --VALUES, PersonID = 2, RowN...
2018/03/07
330
1,089
<issue_start>username_0: In this little piece of code in don't get what the useof getchar is. They ask the user to enter an int value and I have to check if it´s valid or not. I understand status, it should check if there's only 1 value entered. thank you in advance. ``` #include int main(void) { int x; int sta...
2018/03/07
1,601
3,966
<issue_start>username_0: An electron app packaged using electron-packager is crashing and generating dump files. I was able to use breakpad, minidump\_stackwalk to view a part of the dump file. Here's a snapshot of the output, ``` 7 0x7fff6026ec5d rbp = 0x0000700005badf78 rsp = 0x0000700005badf60 rip = 0x00007fff6...
2018/03/07
454
1,820
<issue_start>username_0: I created a chef server and upload a cookbook into the server.i already testing the recipe in my work station.it is working.How do i test my recipe through virtualbox((bootstrap by external node)?can anyone tell me the steps to testing the recipe from server through virtual box?<issue_comment>u...
2018/03/07
965
3,590
<issue_start>username_0: I want sub command to print out the Help menu if no argument or flags is passed (The main command does this by default). For example, the main command without any arguments or flags: ``` chris@pop-os:~$ ./tk Command line application to deploy Usage: tk [command] Available Commands: addo...
2018/03/07
1,404
6,062
<issue_start>username_0: Can Any one optimize this Code Can Anyone optimize the code reduce the if else condition using for loop I am trying to submit form data through ajax in laravel. While validation failed, i am trying to print the error in front of input field. The code is working fine but too many if else cond...
2018/03/07
464
1,507
<issue_start>username_0: I have a project created using Create-React-App. I am looking to add in a `precommit` hook to run our linter and tests with the `pre-commit` package. ``` "pre-commit": [ "precommit-msg", "lint", "test" ], ``` However, since the test script runs by default in watch mode, this prevents t...
2018/03/07
3,337
9,456
<issue_start>username_0: Hi I'm really new to C. I am doing an exercise where I have to make a program that takes in two input integers (integers between -10 and 10 inclusive) and outputs the sum. However, all the numbers from -10 to 10 inclusive that are displayed will be displayed as their respective words and ...
2018/03/07
674
2,094
<issue_start>username_0: How can I add an array into an existing array using MongoDB/Meteor ? Here is the structure of the database. [![enter image description here](https://i.stack.imgur.com/RZzC6.png)](https://i.stack.imgur.com/RZzC6.png) I want to add a new array inside [depute] and not a new array outside, like i...
2018/03/07
849
2,842
<issue_start>username_0: I have simple xml file, that I need to parse in pipeline. ``` xml version="1.0" encoding="UTF-8" standalone="true"? ``` I need to extract values of all servers' names into variable. So I used code below but get only "unclassified field java.lang.string Config" exception ``` deleteDir() sta...
2018/03/07
674
2,146
<issue_start>username_0: I have a column in MySQL database which is defined as > > `IsDeleted` tinyint(1) NOT NULL DEFAULT '0' > > > in a table called `MyTable`. According to the MySQL document [here](https://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html): > > M indicates the maximum display wid...
2018/03/07
534
1,871
<issue_start>username_0: I'm trying to calculate the total sum of all inputs. Before the calculation all the inputs are hidden. Let's suppose, there 30 inputs, and they are randomly revealed by the visitors. The only thing I've managed to do is to identify revealed inputs, without class".hidden". But when "count tot...
2018/03/07
385
1,348
<issue_start>username_0: Why is flexDirection not working when view is placed in a ScrollView for react native? [![enter image description here](https://i.stack.imgur.com/REdxB.png)](https://i.stack.imgur.com/REdxB.png) When my view is not placed in a scrollview, the parameter flexDirection: 'row' works fine. ``` ex...
2018/03/07
298
1,064
<issue_start>username_0: I have a shortcode in a style attribute: ``` ``` The Problem is that the shortcode will be not rendered. I found out that in the function `safecss_filter_attr()` (in w-includes/kses.php on Line: 1688) the regex filters the `(` and returns an empty string. This particular case isn't working...
2018/03/07
464
1,627
<issue_start>username_0: I'm having an issue with dragging cell formulas across and having them update the column reference. I have multiple formula referencing a single cell (cell A2) to get a numeric value to incorporate into a cell reference - so I can update this single cell and have all the formula calculate over...
2018/03/07
522
1,855
<issue_start>username_0: I don't understand why this `if` statement is giving an error saying: > > Using too many arguments > > > ``` if [ $file == 'Metro[0-9]*' ] -o [ $file == 'Store[0-9]*' ] echo "$file" ``` I literally used every combination of parentheses thinking that there might be a mistake but no...
2018/03/07
1,419
6,519
<issue_start>username_0: In my `Startup` class I use the `ConfigureServices(IServiceCollection services)` method to set up my service container, using the built-in DI container from `Microsoft.Extensions.DependencyInjection`. I want to validate the dependency graph in an unit test to check that all of the services can...
2018/03/07
385
1,305
<issue_start>username_0: I need a method which will receive tuple of unknown length (Tuple2, Tuple3 or TupleX) and return list of tuple elements. I wrote the following method, but I get an error that it cannot cast type `Any` to `String` in the List: ``` def toList(tuple: Product): List[String] = tuple match { case ...
2018/03/07
488
1,764
<issue_start>username_0: On the admin dashboard, I display admin notice to display the result of changes. I have production site and staging site. On the staging site, it works well. If I made changes, it's displaying the notice of appropriate message. But on production, it's same code as staging site. When I made chan...
2018/03/07
217
719
<issue_start>username_0: ![enter image description here](https://i.stack.imgur.com/wudwp.png) Actually, I don't understand what's the problem going on ![enter image description here](https://i.stack.imgur.com/RrLP4.png)<issue_comment>username_1: As mentioned, it requires the `zip extension`. You can install it by ru...
2018/03/07
2,842
10,018
<issue_start>username_0: using springboot to do a demo, encounter exception: searched two causes: manually initialize class; not set annotation on class. Checked not these two issue ``` package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBoot...
2018/03/07
468
1,912
<issue_start>username_0: **Context** I have a and I am changing its content using `$('#parent').html('my new html text')` repeatedly. Within the div I have child nodes and I attach jQuery event handlers to their click event. However after changing the children the handlers are on the old elements, so I have to attach...
2018/03/07
847
2,855
<issue_start>username_0: I have set of code which fills my `dropdownlist`. So when I select some value from the list it works fine, But when I go to the default selection which is `--Select--` I get error as > > the source contains no datarows > > > and it goes to the `catch` part Below is my code. I Know I am ...
2018/03/07
2,596
8,308
<issue_start>username_0: I run some tests to validate my preconceived idea about constructors speed but the results were very different from what I expected. Am I doing something wrong? What is that I'm missing? I'm using MVS 2015 with no optimizations (but it doesn't matter the results are always equivalent). ``` cl...
2018/03/07
1,464
4,967
<issue_start>username_0: Two days ago, I started seeing this error on the production server of my app (on staging everything works fine). I found a lot of topics here on SO, but none of them solved this issue for me. Here's the piece of code that's causing this error message: ``` @client = Savon.client(wsdl: wsdl_u...
2018/03/07
725
2,434
<issue_start>username_0: I have an object literal of following syntax: ``` const loader = { "0": "b", "1": "a", "2": "r", // arbitrary extra fields: "foo": 123, "quux": 456, } ``` I want to convert it into array `["b", "a", "r"]` and then into string `"bar"`, which is my final goal. I don't n...
2018/03/07
2,137
6,132
<issue_start>username_0: I try to run Worker and dashbord in same machine. the first tools is running coorectly, but when i start the second the error has been raised : > > [2018-03-07 09:59:43,546] INFO > {org.wso2.msf4j.internal.websocket.EndpointsRegistryImpl} - Endpoint > Registered : /server-stats/{type} > [2...
2018/03/07
546
1,455
<issue_start>username_0: I am trying to save the output of the code below. I know "print" is the problem, but I do not know what works instead. I generally wonder if there is not another way instead of the for-loop: For each value in the vector (x), I want to draw a new random number (here with runif) and match it to ...
2018/03/07
545
1,455
<issue_start>username_0: How can i attach a div container which containing custom title and other information to top of map marker in google map JavaScript API **Look like this:** [![div container to top of map marker](https://i.stack.imgur.com/d88YI.jpg)](https://i.stack.imgur.com/d88YI.jpg) **Note:** * Container s...
2018/03/07
333
1,237
<issue_start>username_0: We are using PostgreSQL. Is there any command to know, what is the maximum number of connections possible? And how many are currently used? And how many additional connections can be made? Is there any command or SQL query to run and check all this?<issue_comment>username_1: smth like should w...
2018/03/07
1,157
3,357
<issue_start>username_0: i have a tuple which looks like this `b (u'3.7', 9023)`. i want to use it in the following statement : ``` if list(self.ballot_number) == msg.ballot_number and b in waitfor: print "hello" ``` i have checked and the ballotnumber section of the if condition is worrking fine. it's ...
2018/03/07
697
2,216
<issue_start>username_0: Input can be given both way in my software, when I give 2.5 , it return 2.5. but whem I given 2,5 it give me, 2.0 . This is my code ; ``` public PrescriptionNotationParser() { final NumberFormat numberFormat = NumberFormat.getInstance(); if (numberFormat instanceof DecimalFormat) ...
2018/03/07
658
1,837
<issue_start>username_0: I have some code that checks for a valid date, simple example: ``` [datetime]::ParseExact( '201809222130', 'yyyyMMddHHmm', [System.Globalization.CultureInfo]::InvariantCulture ) ``` This outputs: ``` Saturday, September 22, 2018, 9:30:00 PM ``` I'm trying to display the hour i...
2018/03/07
639
2,290
<issue_start>username_0: I have 2 iframe on my webpage. **iframe S** has the same origin as the web page, **iframe D** has a different one: ``` Your browser does not support iframes. ``` I need to addEventListener only onto the iframes that have the same origin. This is what I do: ``` for (let i = 0; i < frames.l...
2018/03/07
1,273
4,725
<issue_start>username_0: I have defined a method **removeItem** in my Adapter class and i am trying to call that method from my activity but it doesn't recognize my method when i use the dot operator with my adapter class reference. Please help me out here. ``` public class RecyclerViewCalendarAdapter extends Recycler...
2018/03/07
805
2,688
<issue_start>username_0: Say we have this simple dataframe: ``` dd = pd.DataFrame({'ID':np.random.randint(100000, size=50000000)}) ``` Why is ``` %%time res1 = dd.groupby('ID').cumcount() ``` so much faster than: ``` %%time res2 = dd.groupby('ID')['ID'].apply(lambda x: pd.Series(np.arange(len(x)), x.index)) ``...
2018/03/07
779
2,960
<issue_start>username_0: I am trying to ignore case of string while compare string using `contains` but somehow I am getting syntax error. ``` List name1 = new List(); public void ClickOnSeeAllConnection() { for (int i =0; i <=10; i++) { name1.Add(driver.FindElement( By.XPath("(//span[@class='name actor-name'])["...
2018/03/07
478
1,735
<issue_start>username_0: The blue square, shown in the picture, is `buttonShowHidePicture` (a button) and the red square is `currentPictures` (a `div`). [![enter image description here](https://i.stack.imgur.com/itUVz.png)](https://i.stack.imgur.com/itUVz.png) **Desired functionality**: when I move the mouse over th...
2018/03/07
373
1,292
<issue_start>username_0: I have a question about Prestashop 1.7.3.0 smarty. I would like to display a product features in product description but I dont know which smarty should I use in new prestashop. In version 1.6 it was this code: ``` {foreach from=$features item=feature} {if $feature.id_feature = 1} ...
2018/03/07
962
3,230
<issue_start>username_0: I'm running this following API call and getting list to vhosts and passing to another API and getting some values, those works fine. ``` response = conn.get("/api/vhosts") statistics = JSON.parse(response.body) statistics.each do |vhosts| response1 = conn.get("/api/exchanges/#{vhosts["name...
2018/03/07
1,975
6,398
<issue_start>username_0: I would like to put my title in the top middle part of the `div` on the border. The following code does the job. However, I have many panels with different titles. They do not have the same width. I look for a way to keep the borders tight to the title. Is it possible to achieve? ```css .box...
2018/03/07
3,108
8,699
<issue_start>username_0: In my repo, `git diff` and `git stash` both run quickly, in less than a second. However `git stash -p` takes a good 20 seconds before showing the first hunk. Why could this be?<issue_comment>username_1: I notice the same problem. This started at least over a year ago and has not improved since ...
2018/03/07
4,067
11,412
<issue_start>username_0: ``` #ifndef __NSFOCUS_URL_RULE_H__ #define __NSFOCUS_URL_RULE_H__ #include "engine/packet.h" #include "engine/firewall/FireWall.h" #include "include/DomParser.h" #include #include #include namespace nsfocus { class UrlRule : public FireWallRuleBase { private: std::set m\_cats; unsigned ...
2018/03/07
1,607
5,408
<issue_start>username_0: Currently, i have a property file like this: ``` [default] aa=aa bb=bb [dev] aa=aa dd=dd ``` If I want to get a certain value in a section, I can use following code: ``` awk -F '=' '/\['$section'\]/{a=1}a==1&&$1~/'$key'/{print $2;exit}' $configfile ``` But How can I get the whole section...
2018/03/07
1,516
5,325
<issue_start>username_0: What would be the most platform-independent way of checking whether Python is installed, from R? This question is actually the inverse of [Check if R is installed from python](https://stackoverflow.com/questions/25329955/check-if-r-is-installed-from-python). EDIT: Sys.which() does not, as fa...
2018/03/07
1,239
4,542
<issue_start>username_0: In MockMvc there is an ability to assert that jsonPath contains substing ``` .andExpect(jsonPath("$.error.message") .value(containsString("message"))) ``` I wonder if there a nice way to do the same for WebTestClient, the syntax is a bit different ``` webClient.post().uri("/test") ...
2018/03/07
729
2,526
<issue_start>username_0: I have an event handler function that takes some event data and a callback function as input. This event handler is using a promise to do its job: ``` function myHandler(event, callback) { somePromise(event).then((result) => { if (result.Error) { callback(error); } else { ...
2018/03/07
330
1,128
<issue_start>username_0: Suppose i have a set of classes ```php class A { use Dummy; function getB() : B { ... } } class B { function foo() { ... } } trait Dummy { function works() { if ($this instanceof A) $this -> getB() -> foo(); // Typehinting works } function...
2018/03/07
2,616
7,869
<issue_start>username_0: I have created an accordion using Reusable Content in SharePoint 2010 and all is working well except the accordion-toggles which are not behaving. I think I know why however I don't know enough coding to be able to fix it. I need to (I think) put a new function maybe for all panels that are not...
2018/03/07
540
1,692
<issue_start>username_0: I am trying to change the color of the table row if the cell contained certain text inside that row. For example, if the cell has value Failed, row will turn red. But only one row is acting the way it should. Here is my code. CSS: ``` .failed { background: red !important; color: white !i...
2018/03/07
303
1,025
<issue_start>username_0: I made a color resource in Xamarin Forms App like this: ``` #cccccc ``` I want to use it in MainPage.xaml like this: ``` ``` Original WPF handle this issue something like this: ``` ``` However it seems not working in Xamarin Forms Page. It showing this error: > > No property, binda...
2018/03/07
358
1,157
<issue_start>username_0: I was given a application source code which has the following in .htaccess file. I was told to use PHP to get the Query strings. ``` E.g. www.example.com/test-1 www.example.com/test-1/test-2 www.example.com/test-1/test-2/test-3 ``` Without modifying the .htaccess code How can I get `test-1` ...
2018/03/07
936
3,471
<issue_start>username_0: I am investigating the use of `javax.enterprise.concurrent.ManagedScheduledExecutorService` on `WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final)`. My Startup EJB resembles ``` import java.time.LocalTime; import java.util.concurrent.TimeUnit; import javax.annotation.PostConstruct; import ...
2018/03/07
764
2,662
<issue_start>username_0: This is my code for drawing bus seat. Each `Button` represents a seat drawn in the `GridPane`. I want to change the seat color from green to yellow when someone clicks on the seat. So far I have done this. If I click on the button it prints "hellow world" in output window. But button color does...
2018/03/07
912
3,285
<issue_start>username_0: According to the MS documentation Sync Framework Toolkit (<https://code.msdn.microsoft.com/Sync-Framework-Toolkit-4dc10f0e>) is a legacy open source product which MS no longer support: <https://msdn.microsoft.com/en-us/library/jj839436(v=sql.110).aspx> That's fine, but how about Microsoft Syn...
2018/03/07
1,381
5,584
<issue_start>username_0: I'm developing an app with the following node.js stack: Express/Socket.IO + React. In React I have DataTables, wherein you can search and with every keystroke the data gets dynamically updated! :) I use Socket.IO for data-fetching, so on every keystroke the client socket emits some parameters ...
2018/03/07
337
1,404
<issue_start>username_0: I am working on a Visual Studio MVC project. (Version = 2013 ) When I try to write any javascript code in .js file or .cshtml file Visual Studio crashing and restarting. When I open **Menu > Tools > Options > Text Editor > Javascript** menu and disable "Auto list members" and "Parameter infor...
2018/03/07
1,541
4,678
<issue_start>username_0: I am testing how to get multiple data returned from a function. I was trying to use a List of `int[]`. To do this I have a function that returns a `List`, which is shown below: ``` private List Test() { List testlist = new List(); int[] record = new int[3]; record[0] = 1; record[1] = 2; r...
2018/03/07
1,936
6,051
<issue_start>username_0: C# 7.2 introduces the `in` modifier for parameters which makes perfect sense for structs and in particular for readonly structs. It is also allowed to use it for a reference type ``` void Method(in StringBuilder value) { } ``` As reference types are passed by reference by default, is the `i...
2018/03/07
258
955
<issue_start>username_0: I am writing an application, which needs to save some settings to be persistent between runs (last opened file, user preferences, etc...). Where is a good place to save it on Linux?<issue_comment>username_1: Depends how you define good, but how about: ``` ${HOME}/.your-app-name ``` Checking ...
2018/03/07
1,711
6,231
<issue_start>username_0: How can I do to send an email with Vuejs2. I manage to get the input data and turned them into json but I can not send them to a mailbox. I look for the side of PHPMailer but facing PHP and Vue do not mix. How can I send the form content? **Template :** ``` Envoyer ``` **Script :** ```...
2018/03/07
559
1,885
<issue_start>username_0: I want to add colors to the text in Log files. **For e.g. I would want lines that contain text 'ERROR', to be red colored**. So that when I view that file, these I should be able to easily find those lines with 'ERROR'. I tried looking for the answer to question but couldn't find anything helpf...
2018/03/07
755
2,569
<issue_start>username_0: The [Firebase documentation on deleting data](https://firebase.google.com/docs/database/web/read-and-write#delete_data) says: > > Delete data > > > The simplest way to delete data is to call remove() on a reference to the location of that data. > > > You can also delete by specifying null...
2018/03/07
1,035
3,464
<issue_start>username_0: I am not sure what i am doing wrong but my objects doesn't want to display in my partial view with angular's ng-repeat **SCRIPT** ``` $scope.ExecutivePayList = []; $scope.LoadExecutivesPay = function () { $.get(loadExecutivesPayUrl, function (data) { if (data.IsSuccess) { ...
2018/03/07
711
2,536
<issue_start>username_0: I have a Blade component called persons, that has different slots I'd like to fill. ```html ![{{ $image_alt }}]({{ $image_url }}) {{ $name }} {{ $information }} [Homepage]({{ $link }}) ``` And I have various template files, where I'm doing a foreach and I'd like to use the persons c...
2018/03/07
506
1,791
<issue_start>username_0: I reset the database on Heroku in the database setting and ran `heroku run rake db:migrate`. Although it created all the data tables with correct columns per local database, it does not migrate any existing local data. Heroku database is just empty. In the past I ran the above code and worked f...
2018/03/07
505
2,019
<issue_start>username_0: I want to query a collection and update each document using some value that i will get from another query which is gonna be built with some info from the returned document. ``` const mongoose = require('mongoose'); const userModel = { country: { type: String } newField: { type: Str...
2018/03/07
397
1,349
<issue_start>username_0: My code looks to somethis like ``` ..... ..... ..... ``` Want to use the `iOSOnlyComponent` only on iOS. I tried this ``` {isIOS && } ..... ..... ..... {isIOS && } ``` But I got a syntax error<issue_comment>username_1: You should do something like (untested code) ``` render() { co...
2018/03/07
885
3,424
<issue_start>username_0: I've got class with simple Json Object Request, this is method where whole request is called, and in LogCat I get only: ``` Volley: [2] 2.onErrorResponse: Error: ``` so I don't know where to look for a fix ``` private void getBeerDetails() { JsonObjectRequest jsonObjectRequest = new Jso...
2018/03/07
611
2,483
<issue_start>username_0: I have two database environments, one for development and one for testing. Both databases having same table structures. I want to show data from specific environment. Environment name will be passed at runtime. How can I use spring boot same jpa repositories with diff environment?<issue_comme...