instruction
stringlengths
0
30k
I managed to create a Python + O365 app that logs into my email and prints the emails in the console. Here's the code: ``` import O365 from O365 import Connection, FileSystemTokenBackend from O365.account import Account tokenstorage = FileSystemTokenBackend(token_path='XXX', token_filename='XXX') scopes...
XPath for an element with only child elements named X?
Browse tho the eclipse workspace: <workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.ws.axis.consumption.ui.prefs Sometime, if you do not have this file created, then create this file Add the following entry and save the file: eclipse.preferences.version=1 disableAxisJarCopy=true...
I'm currently trying to deploy a nextJS app on GitHub pages using GitHub actions, but I get a page 404 error even after it successfully deploys. I've looked around a bunch of similarly named questions and am having trouble figuring this out. I'll add that this is my first nextjs project. Here is my github repo: htt...
404 error on deploying Nextjs app with GitHub actions
|reactjs|next.js|build|github-pages|
I am trying to implement the login with google functionality in asp.net core web api using identity external provider. All things are going well but when my url is redirecting to this external-auth-callback function I am getting info null. This is the external-auth-callback function. public async Task<MessageVie...
I suggest you start to improve your skills by developing on your local system. Depending on what skills you want to improve you could either: 1. Setup a virtual Server with Virtualbox and install a LAMP Server. There a lots of tutorials about how to do that in the Web. or 2. Install some preconfigured deve...
null
A `LogoutView` mainly has a `template_name` because it subclasses from the `TemplateView` yes, but that is only used if somehow the redirect points back to the `LogoutView` itself, but that is probably a bad idea anyway. You thus *don't* use the `LogoutView` to show a form to logout, you put the logout button on som...
FirebaseError: [code=permission-denied]: Missing or insufficient permissions. even if firestore rules read and write are permitted - Angular-Fire
I have following code block to create a gauge. I will use this for a custom widget in SAP Analytics Cloud. I want to use two pointers in this gauge. How can I do this within my code? Thanks in advance `option = { series: [ { type: 'gauge', startAngle: 180, endAngle: 0, min: 0, ...
How can I show two pointers in a gauge code?
|javascript|gauge|sap|sap-analytics-cloud|
I have a problem with adding the `geolocator (v 11.0.0)` Flutter package to my existing project. As soon as I add it to the pubspec.yaml file I get an error `FAILURE: Build failed with an exception. Execution failed for task ':app:checkDebugDuplicateClasses'.` To try and test if the problem is in my project specific...
How to Implement Continuous Email Monitoring in a Python + O365
|python|azure-active-directory|microsoft-graph-api|office365|python-o365|
null
I am working on a React application using Redux for state management. In my layout component, I am trying to display the header and the footer only if there is a user, but I am facing an issue where the they both are not displayed. I understand that it's because the user is still null, but I can find a way to solve it...
Flutter geolocator checkDebugDuplicateClasses issue
|flutter|dart|geolocator|
hope the title wasn't too confusing. this is my project: [teams](https://i.stack.imgur.com/rBQ8L.png) I'm trying to figure out how to get the names on the right (NICK-GL) to stack on top of each other at the bottom, when one of the mon-fri boxes has one of the correlating names in it, i.e., when Nick is is dis...
Trying to get names from a box on the right to automatically appear in another box when a different box has a value in it
|excel|excel-formula|formula|let|
null
I have a C# game emulator which uses TcpListener and originally had a TCP based client. A new client was introduced which is HTML5 (web socket) based. I wanted to support this without modifying too much of the existing server code, still allowing `TcpListener` and `TcpClient` to work with web socket clients connect...
The purpose of the below code is to retrieves data from firebase and post duplicate check & split it would append the items to buffer. Once the buffer limit has reached 4 its would insert the items in the DDB table using batchWriter. To confirm the above code runs fine if I use a new/empty Dynamodb table but after t...
hope the title wasn't too confusing. this is my project: ![teams](https://i.stack.imgur.com/rBQ8L.png) I'm trying to figure out how to get the names on the right (NICK-GL) to stack on top of each other at the bottom, when one of the mon-fri boxes has one of the correlating names in it, i.e., when Nick is is di...
You can try achieve lower latency by using the SoundPlayer class from the System.Media namespace, which is part of the .NET Framework. https://learn.microsoft.com/en-us/dotnet/api/system.media.soundplayer
Can any body please assist me. I am trying to upgrade PHP on my Uwamp to php 7.4.33 and or php 8.3.3 But somehow if I want to run the upgrade php.7.3.3 and or php 8.3.3 Apache stops running. php 7.2.7 works fine on my uwamp. I need to upgrade to a higher versions due to a theme I want to use that do not run on php 7.2....
I am currently making a wysiwyg editor, and need to support rotation by pressing "r" key while dragging some element with mouse I noticed that onkeydown event is not being called when I try to press a key while dragging something with a mouse. <!-- begin snippet: js hide: false console: true babel: false --> <...
I'm looking for a way to declare an empty dictionary that will only allow specific data types to be used as keys and values. This may seem similar to [this other question][1], but the nuances are such that it doesn't answer my question. (Now that that's out of the way...) What I'd like to do is this: my_var: ...
How can I initialize an empty Python dictionary and set types for the keys and values?
|python|python-3.x|dictionary|
createtoken(""); is not working in my laravel project... where i have deleted vendor file and done `composer install`: i am getting : Problem 1 - lcobucci/jwt is locked to version 4.3.0 and an update of this package was not requested. - lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from...
|javascript|html|drag|webapi|
I have a .NET 6 application that my client has asked me to deploy on AWS Fargate and expose via API Gateway. I need to change the application context root to be /<stage name> instead of / I have the following Dockerfile so far ``` FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /WebAdmin EXPOSE 80 EXP...
Change Context path of .NET 6 application
|.net|aws-api-gateway|.net-6.0|aws-fargate|
null
I'm new to using IBM's Carbon Design System. We have some legacy applications - which don't use frameworks like React - so we've opted to use the `@carbon/styles` [package][1]. When reading the [docs][2] it says > You can bring in all the styles for the Carbon Design System by including `@carbon/styles` in your ...
I wrote below bash Shell script to check whether the input value is a character string or a number (using Mathematical function): #!/bin/bash uniq_value=$1 if `$(echo "$uniq_value / $uniq_value" | bc)` ; then echo "Given value is number" else echo "Given value is string" fi The execution result is as follows:...
How to check whether the input is a character string or a number using mathematical function in UNIX Shell Script?
|linux|bash|shell|unix|sh|
null
How to resolve the rsAccessDenied from SQL Server Reporting Service
I'm working on a Asp.Net project where I'm trying to add "Hangfire" library for background jobs. I've installed all required packages according [doccumentation][1] and also created the test database. I've also added the required startup methods in Global.asax.vb (had to convert from C#, given in the example, to VB.n...
Using FastAPI I have set up a POST endpoint that takes a command, I want this command to be case insensitive, while still having suggested values (i.e. within the SwaggerUI docs) For this, I have set up an endpoint with a `Command` class as a schema for the POST body parameters: ```python @router.post("/comman...
Pydantic / FastAPI, how to set up a case-insensitive model with suggested values
|python|fastapi|pydantic|
My input string: AWS-HMAC-SHA256 Credential=eyJhbGciOiJIUzI1NiIsIngtc3MiOjEy/20160911/cn/user-service/request,SignedHeaders=host;x-aws-date, Signature=d9ee2d43f2067e4b8857f15fa8fff27820051d95a4ec31e93be866f201e0797a How can I get the values for `Credential`, `SignedHeaders`, and `Signature`?
Extract significant parts of an AWS authorization header string
|php|preg-match-all|text-extraction|authorization-header|
null
You can try using TypeScript's type assertion ``` <app-validation [inputValidation]="(item as ICertificate).url"></app- ```
What you need is to accumulate values for each individual stream and keep the last successful one as well as the current value. Then you can decide what to do downstream, if you want to use the current one based on the type (pending, success, error) or use the last valid one. Here's how that can be achieved. Firs...
I am working on a virtualised data grid for my application. I use transform: translateY for the table offset on scroll to make table virtualised. I developed all the functionality in React 17 project, but when migrated to React 18 I found that the data grid behaviour changed for the worse - the data grid started to b...
HTML Table bounces onScroll in React 18, whereas React 17 renders the table correct
|javascript|css|reactjs|
null
Hello I was facing the same issue I created a template mustache named model.mustache to overwrite the original one. The main problem is that the `#isEnum` condition always return false but `^isEnum` is working correctly; so I found a way to check for `enum` differently with `#allowableValues`. The solution consist to ...
|python|signal-processing|spectrum|
I am using following code to generate chart in Microsoft Access Form using web browser control and on most of the computers it is working completely fine including on Windows 7 SP1 and Windows 10 but on two PCs with windows 10, it is not showing up correctly. Urdu text is showing up incorrectly (characters mixed with e...
Urdu Text is Not Showing Up Correctly in Internet Explorer On Some Computers
|html|internet-explorer-11|urdu|
Identify lines in spectrogram using python
I am trying to implement the login with google functionality in asp.net core web api using identity external provider. All things are going well but when my url is redirecting to this external-auth-callback function I am getting info null. This is the external-auth-callback function. program.cs file authentication c...
My job is to automatically display, one by one, the pages of a pdf file with tkinter. To do this, I create an image for each page and store all the images in a list. I can display all the pages from my list with manual scrolling. But I want it to be automatic (autoscroll). How can I proceed?<br/> Here is my code: ...
How to automatically scroll (autoscroll) a list of images contained in a list with tkinter
|python|tkinter|autoscroll|
I recently encountered an issue with SwiftData where I unintentionally created multiple `ModelContainer` instances, leading to unexpected behavior. Specifically, after creating redundant `ModelContainer` instances, the constraints on Model data seemed to be lost, allowing the insertion of duplicate Item instances. H...
I am trying to upgrade PHP on Uwamp. But somehow if I want to run the upgrade php.7.3.3 and or php 8.3.3 Apache stops. php 7.2.7 works fine
null
I have a C# game emulator which uses TcpListener and originally had a TCP based client. A new client was introduced which is HTML5 (web socket) based. I wanted to support this without modifying too much of the existing server code, still allowing `TcpListener` and `TcpClient` to work with web socket clients connect...
if you use `bootstrapApplication()` to bootstap your app (Angular version >14), add `provideAnimations()` to `providers[]` in app.config.ts otherwise, add `BrowserAnimationsModule` to `imports[]` of the standalone component (or module, in case you don't use standalone components) that uses `matToolTip`
I have following code block to create a gauge. I will use this for a custom widget in SAP Analytics Cloud. I want to use two pointers in this gauge. How can I do this within my code? Thanks in advance ```js option = { series: [ { type: 'gauge', startAngle: 180, endAngle: 0, min:...
OAS 3: https://swagger.io/docs/specification/authentication/ > ### Using Multiple Authentication Types > > Some REST APIs support several authentication types. The `security` section lets you combine the security requirements using logical OR and AND to achieve the desired result. `security` uses the following log...
I have wsl2 Debian setup with yubikey and running ssh-agent: ``` export | grep SSH_AUTH_SOCK declare -x SSH_AUTH_SOCK="/run/user/1000//yubikey-agent/yubikey-agent.sock" ``` In VS code I try to make an SSH Remote connection to a different remote linux machine, VS code of course using either local Windows OpenSSH.ex...
VS Code and Remote SSH with WSL2 debian ssh-agent
|visual-studio-code|vscode-remote|vscode-remote-ssh|
This is answer is more along the lines of a trick, or even a hack. As the comment above by @ThomA states, all branches of a `CASE` expression need to have the same type. You can achieve this by casting the `UserId` to text and then left padding with some number (say 10) of zeroes. This means that, when used for sort...
I am currently making a wysiwyg editor, and need to support rotation by pressing "r" key while dragging some element with mouse I noticed that onkeydown event is not being called when I try to press a key while dragging something with a mouse. <!-- begin snippet: js hide: false console: true babel: false --> <...
What is the purpose of entrypoint files in Sass?
|css|sass|
You can customize your WebClient WebClient.builder() .clientConnector(new ReactorClientHttpConnector(httpClient.create() .secure(contextSpec -> contextSpec.sslContext(sslContext) .handlerConfigurator(handler -> { SSLEngine engine = handl...
I'm trying to create a reusable table, came about NgTemplateOutlet and it's a nice option, the problem we are facing is that to make the wrapper for the table look clean, we are separating the template into a different "component" and then getting the TemplateRef using ViewContainerRef.createcomponent().instance.Templa...
|matlab|http-live-streaming|hdl-coder|
GoogleCloud: Caller does not have required permission to use project foo
I have made a Random Forest Classifier model in Python, and now want to make partial dependence plot (PDP). I used scaled data for training and testing the model, and make the PDP like this: `PartialDependenceDisplay.from_estimator(best_clf, X_test_final, best_features)`. However, the x-axis values are scaled which li...
|python|machine-learning|scikit-learn|random-forest|
```r header <- c("A", "B", "C", "D") subset <- c("D", "B") readr::read_csv("sample_data.csv", col_names = header, col_select = any_of(subset)) # A tibble: 3 × 2 D B <dbl> <dbl> 1 4 2 2 8 6 3 12 10 ```
I am trying to make a WiFi boardcast application in Python. The idea is to place two network interface cards (NICs) in monitor mode, and inject packets such that two devices can communicate. This has been done before, especially in the context of drone RC/telemetry/video links, some examples include [OpenHD][1], [ez-Wi...
Hi Stackoverflow community, I'm trying to learn Flask-Admin. The documentation is a very good start, however I've found a very specific use-case that I'm not able to resolve. I have a table in PostgreSQL for variables. I've chosen for this approach since I've got quite a lot of variables but they don't share the sam...
Yes. (see https://registry.khronos.org/OpenGL/specs/gl/glspec46.core.pdf#page=166&zoom=100,168,308) from rule 9 and 10 for `std430`: If the member is an array of S structures, the base alignment of the structure is N, where N is the largest base alignment value of any of its members. In the case of `std140`, this w...
Suppose we have a gRPC DB-backed application with some resource `X` like this, for example in Go: ``` type X struct { id string name string version string } ``` And for some reason the application does not permit updates unless `version = "2"`. If a client tries to make a request to update the n...
I am currently working on a short URL service project that involves using AWS CloudFront to route requests to both S3 and API Gateway as origins. S3 is set up for static hosting, and there are two endpoints configured in API Gateway: /shorten_url and `/{key}`. The `/shorten_url` endpoint is designed to shorten long URL...
Troubleshooting CloudFront Routing for API Gateway and S3 in a Short URL Service
|amazon-web-services|aws-api-gateway|amazon-cloudfront|
null