Sabby62

1

votes
1

answer
980

views

HTML5 check Image Dimensions

I am trying to show the image dimensions with other properties using the HTML5 file API For some reason I am getting height of my image as 0. http://jsfiddle.net/NfDMh/3/ ​ function handleFileSelect(evt) { var files = evt.target.files; var output = []; var height; var width; for (var i = 0, f; f...
Sabby62
1

votes
1

answer
409

views

Web PDF annotation tool [closed]

Is there any good tool available for PDF annotations in the browser ? Scenario - User sees the PDF in browser, marks annotations, annotations then save in database. When user opens the PDF again, the annotations are applied to PDF after rendering. I have tested Flexpaper but isn't satisfied with t...
Sabby62
1

votes
2

answer
56

views

XPath search in SQL Server

I have the following XML stored in a SQL Server XML column. I want to select the rows using SQL SERVER xpath. SQL query: SELECT * FROM TABLE WHERE XMLCol.exist('//Players/Player/FirstName/text()[contains(lower-case(.),'luis')]') = 1 Rather than using contains can I use something that compares ex...
Sabby62
1

votes
1

answer
28

views

git push --mirror automatically adding links to incorrect work items

I have cloned a repo from a TFS instance using git clone --bare [url]. After cloning the repo to local machine, I am pushing it to Azure DevOps using git push --mirror [url]. After the repository was successfully cloned in Azure DevOps, some commit links were added to some of the totally unrelated w...
Sabby62
1

votes
1

answer
3.6k

views

Disabling checkbox using KnockoutJS

I am unable to disable the checkbox when the length of observable array reaches a specific limit. Here is the link to code : http://jsfiddle.net/pLNdc/59/ var viewModel = {}; viewModel.choices = ['one', 'two', 'three', 'four', 'five']; viewModel.selectedChoices = ko.observableArray(['two', 'four']);...
Sabby62
1

votes
1

answer
243

views

Debugging out of memory exception

I am investigating into a memory leak issue I am encountering in my application. There is large amount of System.String on GC heap (close to 3GB). On some investigation, i got to the following root references. Is it the problem with Windsor that is not releasing the components and keeping track of t...
Sabby62
3

votes
2

answer
3.1k

views

JSON to dynamic - 'Newtonsoft.Json.Linq.JObject' does not contain a definition

I am using MVC WebAPI and passing in JSON object to a method that has parameter defined as dynamic. When using the method I am accessing the property of the dynamic object. It throws me this error - 'Newtonsoft.Json.Linq.JObject' does not contain a definition' private dynamic Method1([FromBody]dyna...
Sabby62
2

votes
2

answer
2.2k

views

Salesforce integration with Team Foundation Server 2013 [closed]

I have been looking into Salesforce and Team Foundation 2013 integration lately. Is there any addins or solution to do so?
Sabby62
2

votes
1

answer
514

views

Implementing Exponential Retry policy for ServiceBusTransientErrorDetectionStrategy

I am trying to implement Retry Policy for Service Bus transient error. I want my system to try exponentially like 1s, 2s, 4s, 8s, 16s, 32s, 64s, 128s. private int minBackoffDelayInMilliseconds = 2000; private int maxBackoffDelayInMilliseconds = 10000; private int deltaBackoffInMilliseconds = 2000; v...
Sabby62
1

votes
2

answer
1.2k

views

Get licenses for the Nuget Packages in VS2015

Is there a way I can download Nuget Packages license ? I know this has been questioned/answered but I want something to work with VS2015 Update 2. Having a powershell script that checks my projects and then creates the .txt file either having package name with the license url.
Sabby62
2

votes
1

answer
56

views

Breaking change in LibGitSharp v0.17

I am new to libgit sharp library. I have a line of code that works with v0.15 of libgit sharp. I have updated the package to the latest version 0.22. Repository.Network.FetchHeads.FirstOrDefault() FetchHeads is deprecated in v0.17 (https://github.com/libgit2/libgit2sharp/blob/master/CHANGES.md). He...
Sabby62
41

votes
4

answer
56.9k

views

Is it possible to check dimensions of image before uploading?

I have an upload control for uploading the images to the server, but before uploading I just want to make sure if the images are of correct dimensions. Is there anything on client side that can be done with javascript?
Sabby62
6

votes
3

answer
16k

views

Single sign on for .NET application integrated with Active Directory

We have several customer using our web application (not intranet), some customers want their login should be integrated with their organizations Active Directory. They just want that user should login to their windows account and can access the web application without entering any user credentials...
Sabby62
1

votes
1

answer
73

views

Image name with '%' in it not rendering in browser

I am referencing image with the name - 'a%1.jpg'. It is not rendering in the browser. My image tag looks like Is there anything I can do to use escape sequence - to render the image properly.
Sabby62
2

votes
1

answer
645

views

Alternative for Azure Blob Storage

We are currently using Azure Blob Storage for storing documents like .json, .html and .pdf. Is there any replacement that we can use to move the documents from storage to on-premises ? Is MongoDB valid alternative?
Sabby62
5

votes
2

answer
460

views

Send multiple response back for a POST API request

Is there a way to send back a file (.pdf) and JSON data in the body for a POST WebAPI request in .NET ?
Sabby62
2

votes
1

answer
123

views

Nhibernate Concurrency between multiple session

I have a table that consists of a column of pre-populated numbers. My API using Nhibernate grabs the first 10 rows where 'Used' flag is set as false. What would be the best possible way to avoid concurrency issue when multiple session try to grab row from the table? After selecting the row, I can...
Sabby62
1

votes
2

answer
427

views

Knockout databind on two variable

Is it possible to databind the enable property to two variables in KO?
Sabby62
1

votes
1

answer
582

views

Cannot reset changes in Git Extensions

I am using Git Extensions for connecting to GitHub. Recently I have faced there are files that are flagged in unstaged changes. I cannot reset/delete files. The only way to get rid of them is check-in the files.
Sabby62
4

votes
3

answer
3.2k

views

PDF compressing library/tool

I am working on a project to reduce the size of the PDF's, compress them. I am wondering are there any good tools/library (.NET) in market that are really good. I did try few tools like Onstream Compression, but the results were not satisfactory.
Sabby62
2

votes
1

answer
93

views

Kendo Binary Reference could not be found in App_code view

I am new to KendoUI. I have included the binary reference in my project for KendoUI. I am trying '@using Kendo.Mvc.UI' in a View inside app_code. Visual Studio can't find reference. It works fine outside app_code.
Sabby62
3

votes
3

answer
1k

views

Azure AD PostAuthentication add claims

I am using Azure AD to authenticate the users. I want to add few user claims specific to my application. Should I do it in Application_PostAuthenticateRequest` in global.asax ?. Is there a way I can cache my claims too ?
Sabby62
5

votes
2

answer
7k

views

Change attribute of CSS Pseudo classes (:hover) with jQuery

Is it even possible to change the pseudo classes with jQuery ? Is there any workaround for achieving this?
Sabby62
4

votes
7

answer
4.6k

views

Example for Responsive Kendo UI grid

I have implemented KendoUI in my WebApp, is there any way of making the grid responsive? Like, showing fewer columns on smaller resolutions!
Sabby62
2

votes
1

answer
796

views

Invalid_Grant error when using Refresh Token

I am using IdentityServer3's Hybrid Flow. I have enabled the offline_access scope inorder to get refresh token. When my access token expires, I am calling core/connect/token endpoin. I am passing client_id, client_secret, refresh_token and grant_type (= refresh_token) as part of body. I am getting i...
Sabby62