Categories
Development

Custom FileHandler not working in case of sharing links [on hold]

I have written a custom file handlers 2.0 for SharePoint Online and OneDrive for Business. File Handler 2.0 When sharing a link to a onedrive/sharepoint online file the filehandler for the file is not found I am seeing this behavior when clicking on the sharing link. Here are some details: UserA shares a file to […]

Categories
Development

How to check if a String contains 3 digits or more

I’m currently trying to check if a string contains 3 digits or more. If it does, then it is valid. How can I fix it? System.out.print(“Enter a string: “); //111Hello <– valid String word = input.nextLine(); boolean numbers = word.matches(“.*\\d{3,}”); System.out.println(numbers); Output: Invalid Here are some examples: Input: Hello244 Output: Valid Input: 3Hello Output: Invalid […]

Categories
Development JSON

Json with Nested Objects and each are differently named

I have a json object that is coming from an endpoint. { “user_info”: { “myapp1”: { “roles”: [ “requestor” ] }, “myapp2”: { “roles”: [ “requests-edit”, “requests-view” ] }, “account”: { “roles”: [ “manage-account”, “manage-account-links”, “view-profile” ] } } } Based on this structure its pretty clear that there are two strongly typed objects. user_info […]

Categories
Development PHP Plugins

statement inside php eval()

In a PHP framework which provides hookpoints that are implemented using eval() I am trying to interrupt or continue a loop from within an eval() call. This is what I am trying The framework loops like … for( $i = 0; $i < 10; $i++ ) { // framweork code here … eval( $plugin_code ); […]

Categories
Development

‘Float’ object has no attribute ‘sin’

When I go to print my matrix, it prints an error that says ‘Float’ object has no attribute ‘sin’. While coding in Python, I am attempting to print a matrix in symbolic form using sym.matrix but I am defining my matrix numerically. When I go to print my matrix, it prints an error that says […]

Categories
Development

Extract Text from Flattenned PDF created with ItextSharp Or PDFSharp

I want to retrieve some data from many PDFs that were created from a certain template, that i have, with ItextSharp. Those PDFs were Flattened FormFlattening = true; I have tried many different aproaches that i have found on the internet and none has worked. I get an error message: System.InvalidOperationException: ‘Stack empty.’ Always when […]

Categories
Development

How to write robust code that will work on slower machines for resizing large numbers of shapes in Excel VBA

I am working on an Excel application that creates reports from a inventory of data. This application is intended to be distributed to a large number of staff with potentially older/slower computers. As part of generating reports, a large number of shapes (80ish) are to be resized and re-positioned. I am running into problems with […]

Categories
Development MVC

how Iis USES saml2.0 to access adfs

How does IIS use saml2.0 to access adfs? In my opinion, IIS needs to deploy a web application to access adfs by sending the request with saml 2.0. But until now, I haven’t found the way to deploy a web application that can send saml2.0. Does it have to use isapi or Shibboleth ? Resolution: […]

Categories
Development

I would like to make a correlation matrix but my function “cor” doesn’t work, can you help me?

Here is my code : library(corrplot) M <- cor(test.active) corrplot(M, method = “circle”) Here is the error message : “Error in cor(test.active) : could not find function “cor”” Do you know how I can address this issue ?

Categories
Development

why are my xamarin labels displayed with opacity

i was playing with opacity on different elements earlier, now i’m just trying to display a basic solid label but for some reason its sill opaque, . opacity is not set and doesn’t seem to be inherited from anything, so why are they still opaque? <?xml version=”1.0″ encoding=”utf-8″ ?> <ContentPage xmlns=”http://xamarin.com/schemas/2014/forms” xmlns:x=”http://schemas.microsoft.com/winfx/2009/xaml” xmlns:d=”http://xamarin.com/schemas/2014/forms/design” xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″ mc:Ignorable=”d” […]