devblogs | 2600 developer-related blogs and publications | Dataset library
kandi X-RAY | devblogs Summary
kandi X-RAY | devblogs Summary
+2600 developer-related blogs and publications.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- returns status code for given url
- Handle data .
- Fetches the urls from GitHub .
devblogs Key Features
devblogs Examples and Code Snippets
Community Discussions
Trending Discussions on devblogs
QUESTION
I'm trying to get pull a value from an array based on the index and I can't get it to work for some reason. Keeps returning -1
...ANSWER
Answered 2021-Jun-06 at 18:57Hope this helps you identify the problem:
QUESTION
type 'Microsoft-Hosted Private'
Getting this error running a pipeline on a new account so there're enough credits/limits It has been stuck for close 20+ hours now, have tried to recreate projects/subscriptions/pipelines and what not but no dice
There are similar questions on vscommunity but no answers so hoping someone has insights here
Turns out this is a "feature" implemented recently, closing this question will leave it here till it's deleted or whatever in case someone stumbles upon this same error
https://devblogs.microsoft.com/devops/change-in-azure-pipelines-grant-for-private-projects/
...ANSWER
Answered 2021-Mar-19 at 01:51The root cause of the stuck issue is that the pipeline microsoft-hosted agent for public and private projects in the new organization has been restricted in the latest update.
For more detailed info, you could refer to these two docs: Private Project Pipelines, Public Project Pipelines.
In Release 183, the reasons for adding restrictions are as follows:
Over the past few months, the situation has gotten substantially worse, with a high percentage of new public projects in Azure DevOps being used for crypto mining and other activities we classify as abusive. In addition to taking an increasing amount of energy from the team, this puts our hosted agent pools under stress and degrades the experience of all our users – both open-source and paid.
Private Project:
You could send email to azpipelines-freetier@microsoft.com
in order to get your free tier.
- Your name
- Name of the Azure DevOps organization
Public Project:
You could send email to azpipelines-ossgrant@microsoft.com
in order to get your free tier.
- Your name
- Azure DevOps organization for which you are requesting the free grant
- Links to the repositories that you plan to build
- Brief description of your project
QUESTION
I'm trying to implement a smooth authentication flow for an hololens 2 app in a no-internet environment. Following setup is running currently
- I'm hosting an identity server (Ory Kratos) with OAuth2 possibilities that holds user information.
- I'm hosting a resource API that only logged in users should be able to access.
The user should be able to access their resources within the HL app. Possibilities to solve this are
- Redirecting the user to a 2D page like in this article. But typing a long password in an Augmented Reality app is hard.
- Using a second device (smartphone/laptop) like in this blog. But requiring another device is suboptimal.
Both approaches are fine, but they both lack a smooth user experience. My idea was to utilize the Windows Accounts that are already on the HL device. Microsoft Docs has a small section on how to take advantage of linked identities on HoloLens, see here. But it doesn't really explain how to "link" them to a custom identity server.
So I was wondering, is it possible to use these Windows Accounts that are already on the HL device and somehow link them to my identity server?
Or does anybody have a better idea to provide a smooth authentication flow in Augmented Reality? I'm open for ideas.
...ANSWER
Answered 2021-May-26 at 05:55Windows Hello may meet your requirement. It works with the Azure Active Directory account or Microsoft Account connected in Windows settings, and it replaces passwords with strong 2FA by verifying your biometric. Besides, in Windows Hello architecture you no longer need to host your Ory Kratos OAuth2 server.
QUESTION
After updating to Microsoft.AspNetCore.OData
from 7.5.8
to 8.0.0-rc2
the ~/odata/$metadata
url is not working anymore, it just returns 404 - Not found.
Before I file a bug, am I doing the configuration wrong?
I followed this blog and the somewhat updated documentation in the Git repo.
Here is my original Startup.cs
for 7.5.8
:
ANSWER
Answered 2021-May-11 at 22:31I found the solution:
I had to change the sdk in the csproj file from Microsoft.NET.Sdk.Worker
to Microsoft.NET.Sdk.Web
.
(Basically the project is a .NET 5 SDK-style Windows Service / BackgroundWorker with an Asp.Net Core API included.)
It seems this was not an issue with earlier versions before 8.*
QUESTION
Considering the following SO Question: Is it dangerous to use synchronize in a non-VCL application?
I was wondering how TThread's Synchronize
, CheckSynchronize
and WaitFor
is affected when using them inside an Apache Web Application DLL.
I started investigating this when I realized WaitFor
was locking/hanging. Inside WaitFor
it checks if CurrentThread.ThreadID = MainThreadID
and then repeats checking the result of MsgWaitForMultipleObjects
and based on the result it will do CheckSynchronize
or PeekMessage
and when it received a WAIT_OBJECT_0
it will finally exit the loop. If the MainThreadID
is not the same as the CurrentThreadID
, then WaitFor
will do a single WaitForSingleObject
.
So I created the following test Apache Web Module DLL to see what the MainThreadID
is during the lifetime of a web request.
ANSWER
Answered 2021-May-11 at 11:02To recap:
A DLL's DLLMain/DLLProc
is called whenever a process is "attached/detached" and a thread is "attached/detached"
There is also a blog post by Raymond Chen that discusses thread deadlocks in DLLMain
.
Because DLLMain
is called when the the DLL is unloaded and also when a thread exits I cannot do a thread WaitFor
in the DLL Unloading code (OnWebModuleDestroy
) as that will obviously cause a deadlock as the one will be waiting for the other.
After R.Hoek's comment I started looking to see if Apache calls some sort of cleanup procedure before it actually unloads the module DLL and came upon its apr_pool_cleanup
and the companion apr_pool_cleanup_register
procedure which registers a hook into the the cleanup. Fortunately this has already been handled inside the Web.ApacheApp
unit and its TApacheApplication
class that has an OnTerminate
"event" which is called by the apr_pool_cleanup
.
Assigning cleanup code to the OnTerminate
"event" allows you to properly get rid of your threads without fear of deadlocks in DLLMain
:
QUESTION
Using Powershell, how can I get the list of Folders in D: drive with Everyone access explicitly defined?
I've installed the module below, but not sure how to arrange the command and export it to .CSV file.
https://ntfssecurity.readthedocs.io/en/latest/ https://devblogs.microsoft.com/scripting/weekend-scripter-use-powershell-to-get-add-and-remove-ntfs-permissions/
...ANSWER
Answered 2021-May-05 at 15:21It somewhat depends on what you want the export to look like. However, the below example is a starting point:
QUESTION
I have the following:
...ANSWER
Answered 2021-May-01 at 13:15Does the fact that I omitted await and did not declare SaveImage as async make it actually [synchronous]?
No. async void
methods are dangerous for several reasons. They're asynchronous, but there's no way for your code to detect when the asynchronous operation completes. Also, since there's no way for your code to detect errors from the asynchronous operation, any exceptions are raised directly on the current context, which usually results in an application shutdown. This behavior seems very odd an undesirable, until you realize that async void
methods were specifically designed to be used as event handlers, and should be avoided in other scenarios.
What I would expect to happen is that the loop would instantly complete because even though WritePngAsync takes a long time SaveImage is not awaited and would return instantly.
Yes, the loop completes quickly, and all of the PNG.WriteAsync
operations may be incomplete when the loop completes.
I think this is causing issues with the file contents being overwritten when called like this
That sounds reasonable. Your code cannot know when the WritePngAsync
methods are complete.
QUESTION
For the vscode-python plugin, I am using the 'data viewer' to explore a large array of data from a CSV
file.
The data viewer has a 'filters' tool (see picture), which can be used to (1) find matches in a column for specific values (e.g. 1996
) and (2) find values 'greater than' or 'less than' a particular value (e.g. >2006
or <2014
). However, for my case, I would like the filters tool to filter for values 'greater-than' and 'less-than' at once (e.g. >2006 AND <2014
).
Is this possible?
I found this announcement of the introduction of the data viewer, but was unable to find any detail explaining options for the data viewer's filters.
Also, if there is documentation explaining possible input for the data viewer's filters, please let me know.
...ANSWER
Answered 2021-Apr-20 at 06:27Currently in VS Code, it supports single condition filtering, but it does not support ">2006 AND <2014
".
So I have submitted this problem and you could follow it: Can the "data viewer" in VS Code filter data with multiple conditions?
QUESTION
Creating a new Blazor WebAssembly App
with Microsoft Visual Studio 2019 Version 16.9.4
with these specifications: Target Framework .NET 5.0
, Authentication Type Individual Accounts
and ASP.NET Core Hosted
:
Gives a Server project with these NuGet
s at version 5.0.5
:
- Microsoft.AspNetCore.ApiAuthorization.IdentityServer
- Microsoft.AspNetCore.Identity.EntityFrameworkCore
- Microsoft.AspNetCore.Identity.UI
Startup.cs contains this code:
...ANSWER
Answered 2021-Apr-29 at 19:54TLDR:
Remove this from appsettings.json
:
QUESTION
I am trying to debug a Blazor WebAssembly app but get the following message when trying to set breakpoints:
If I do the action that would hit the breakpoint, visual studio instead opens a new tab that says Unable to retrieve source content (Unable to retrieve source content)
. I have the same issue in a separate blazor server app, as well as the sample template that is provided when first creating a blazor project (counter.razor and fetchdata.razor).
Here is the info on the app: Target Framework: .NET 5.0 (Current) Authentication Type: None Configure for HTTPS: True ASP.NET Core hosted: False Progressive Web Application: True
I am using Visual Studio 2019 version 16.9.4.
My .csproj file is:
...ANSWER
Answered 2021-Apr-23 at 11:43The reason for the error was that my solution path had a "#' in a folder name. This error was discussed https://github.com/dotnet/aspnetcore/issues/22036 which apparently was never resolved if you follow the thread.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install devblogs
You can use devblogs like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page