Ami2
I'm currently grappling with an issue while merging two Excel workbooks (`array1` and `array2`)
I'm currently grappling with an issue while merging two Excel workbooks (
array1
and array2
). The challenge arises when I add sheets from array2
to array1
using the following code:
- I'm trying to merge two Excel workbooks (array1
and array2
), and while the sheets from array1
are created successfully, they seem to be empty when additional sheets from array2
are added. The perplexing part is that the sheets from array2
are being integrated correctly, but the corresponding sheets from array1
appear to lose their data.11 replies
❔ Adding Google External Login to ABP Framework 6
Hello, I am new to security and currently working on an app built on ABP Framework 6 (React Native, .NET 6 Web API). The app already has a default setup for JWT token authentication provided by ABP Framework 6. Now, I want to add Google external login functionality to the app. After some research, I have come up with the following solution:
I have a couple of problems with this approach and would appreciate your help in addressing them:
1. JWT Generation: In the given code snippet, I need assistance in understanding whether I should generate a JWT token in this method or if there is a different approach I should follow.
2. Usage of ABP Framework 6 Tables: While exploring the database schema used by ABP Framework 6, I noticed the existence of tables like AbpUserLogins with a column named LoginProvider. I'm unsure whether I need to utilize any of these tables for the external login functionality.
3. Authentication Flow: I'm not sure if the reactive should initiate the authentication flow, get the access token, and send it to the backend, or if it should be the other way around.
Could you please clarify the recommended approach for handling the authentication flow in this scenario?
2 replies
❔ Calculating reading duration percentages for different time periods
I'm working on a project where I need to calculate the reading duration percentages for different time periods based on user reading data. The time periods include dawn, night, evening, morning, and afternoon. I have the start and end times for each reading session, and I want to determine the percentage of reading time spent in each period.
I've already defined the time ranges for each period (e.g., dawn from 4:30am to 5:30am, night from 9pm onwards), and I need help with the logic to calculate the percentages. Additionally, there are cases where a reading session may span multiple periods (e.g., morning and afternoon).
I'm using .NET 6 linq, and any guidance or code snippets on how to approach this calculation would be greatly appreciated.
3 replies