how to have 2 data binding fields in one Xamarin forms label?
I'm working on an app in xamarin froms that gets data from a service. What I'm trying to do is make the first name and last name fields display in the same label however it currently displays first n...
- Modified
- 5 Oct at 01:47
HTML to PDF - page break with HtmlRenderer
I try to convert HTML to PDF using HtmlRenderer. This is part of code: ``` private byte[] CreateHtmlContent() { string htmlContent = File.ReadAllText(@"htmlExample.txt"); using (MemoryStream ...
- Modified
- 5 Sep at 15:8
Define global variable with webpack
Is it possible to define a global variable with webpack to result something like this: ``` var myvar = {}; ``` All of the examples I saw were using external file `require("imports?$=jquery!./file....
- Modified
- 14 Sep at 16:40
How to send some additional data while sending push notifications using OneSignal?
I am developing an Android application as well as writing writing a C# Web Api for it. Now i can send push notifications using the code below. But i have to send a json object which will contain a url...
How can I parse through local JSON file in React js?
How can I parse through a JSON file retrieving all its data and using it in my code? I've tried importing the file and just tried console logging it, but all it does is print Object {}: ``` import j...
- Modified
- 6 Jun at 04:46
How to add bootstrap to an angular-cli project
We want to use bootstrap 4 (4.0.0-alpha.2) in our app generated with angular-cli 1.0.0-beta.5 (w/ node v6.1.0). After getting bootstrap and its dependencies with npm, our first approach consisted in ...
- Modified
- 20 Jan at 15:42
Static image src in Vue.js template
My Vue component contains some images. I want to do lazy-loading later, so I need to set the src of the images to a small image, first. ``` <template> <div v-for="item in portfolioItems"> ...
- Modified
- 21 Feb at 14:41
Correct path for img on React.js
I have some problem with my images on my react project. Indeed I always thought that relative path into src attribute was built on the files architecture Here my files architecture: ``` components ...
- Modified
- 23 Jul at 11:46
Is DateTime.Now an I/O bound operation?
What happens when you call `DateTime.Now`? I followed the property code in Reflector and it appears to add the time zone offset of the current locale to `UtcNow`. Following `UTCNow` led me, turn by ...
Adb install failure: INSTALL_CANCELED_BY_USER
I try to install app via adb and get a error: ``` $ ./adb -d install /Users/dimon/Projects/one-place/myprogram/platforms/android/build/outputs/apk/android-debug.apk -r -g 3704 KB/s (4595985 bytes in ...
Validating numeric input while formatting numeric input
In an asp.net-mvc project using C#. I use a function to format larger numbers with commas such as `1,000,000`, thanks to [this post](https://stackoverflow.com/a/27761572/3956566): ``` function numbe...
- Modified
- 23 May at 12:16
Using event.target with React components
I am having some trouble with my project. Can anyone explain to me why I can't use the `e.target` to access anything other than `className`? Below is the code from my entry point: ``` import React f...
- Modified
- 28 Jul at 04:22
Is there any way to make base view component ASP.NET Core?
In rc1 you can make BaseViewComponent and then inherit it and use it without any problems like baseController, but after migrating my project to rc2 I recieve that error Could: not find an 'Invoke' or...
- Modified
- 21 Jun at 19:12
What is the question mark for in a Typescript parameter name
``` export class Thread { id: string; lastMessage: Message; name: string; avatarSrc: string; constructor(id?: string, name?: string, avatarSrc?: string) { th...
- Modified
- 25 Mar at 14:0
Removing column from database in Laravel 5+
I've a blog for which the `articles` table `Schema` is defined like this: ``` public function up() { Schema::create('articles', function (Blueprint $table) { $table->increments('id'); ...
- Modified
- 11 May at 11:26
Run-time type vs compile-time type in C#
What is the difference between a run-time type and a compile-time type in C# and what implications exist regarding virtual method invocation?
- Modified
- 4 Jun at 13:47
AngularJS With Asp.net Web API: $http post returning XMLHttpRequest cannot load: Response for preflight has invalid HTTP status code 405
When trying to POST json to Asp.net web API server using `$http` it's returning the following error ``` XMLHttpRequest cannot load http://localhost:62158/api/video/add. Response for preflight has inv...
- Modified
- 23 May at 11:0
Instantiating an IFormFile from a physical file
I have a physical file and I want to pass it to my controller method that requires an `IFormFile` type (for unit testing). I can't find any classes that instantiate the `IFormFile` interface which me...
- Modified
- 23 May at 10:56
How to get feature importance in xgboost?
I'm using xgboost to build a model, and try to find the importance of each feature using `get_fscore()`, but it returns `{}` and my train code is: ``` dtrain = xgb.DMatrix(X, label=Y) watchlist = [(...
C# .net MVC, set path to Google Application Credentials JSON file
I've just got this Google Sample Project to work on my VS2015, However, after I published to "IIS" and host it, when I opened the link, the web page kept showing this message as the picture showed !...
- Modified
- 4 Jun at 06:17
Android Studio Error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running
Installed Android Studio 2.2 Preview 2 and getting this error: > Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's ...
- Modified
- 5 Jun at 17:24
"Uncaught (in promise) undefined" error when using with=location in Facebook Graph API query
I am currently developing a web application with the Facebook Graph API. My current goal is to retrieve only posts which have a location attached. While retrieving posts with and without location is...
- Modified
- 23 May at 12:26
ASP.net Identity Framework - Resend Confirmation Email
I'm setting Identity Framework (2?) for my ASP.net site. I have the confirmation email working, but I can't figure out where or how to allow the user to request a resend of the confirmation email. I...
- Modified
- 3 Jun at 22:9
“No 'Access-Control-Allow-Origin' header is present” for redirected request to https://login.microsoftonline.com/
I'm trying to get response with an access code and getting: > XMLHttpRequest cannot load "h...://login.microsoftonline.com/d331431b-899c-4666-8094-e82e6bfc3964/oaut…auth%2faad&scope=user_impersonatio...
- Modified
- 18 Jun at 05:47
How to bound a circle inside an ellipse?
The title for this post was quite hard to think of, so if you can think of a more descriptive title please tell me. Anyway, my problem is quite specific and requires some simple maths knowledge. I am ...