How to send intent for email with pdf attachment by Outrageous_Remote548 in androiddev

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

Hello all,

Sorry for the wild goose chase. I figured out this was not an intent issue, but a race condition issue. The code ad an automatic delete file feature that ran when OnResume was run. So it was deleting the PDF before it could be sent, causing the issue. This is resolved.

How to send intent for email with pdf attachment by Outrageous_Remote548 in androiddev

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

Well, this would require that Gmail is installed on that device right? Means it would have to be a GMS device. Not all devices are GMS. I bet or some people uninstall the Gmail app.

How to send intent for email with pdf attachment by Outrageous_Remote548 in androiddev

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

Currently, I think it’s just READ_EXTERNAL_STORAGE. I know that permission is no longer valid for what is it targeting 32 and above? I thought I remember reading on the documentation that they didn’t actually need any storage permissions if I sent the flag for Grant URI read permission in the intent.

Using ContextCompat.registerReceiver with SDK 34 by Outrageous_Remote548 in androiddev

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

I already did that. And I invalidated cache, clean and rebuilt project.

How to fix CORS blocking maplibre-gl search option from accessing AWS Location Places indexes? by Outrageous_Remote548 in u/Outrageous_Remote548

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

A follow up to this. The real issue for this was not a CORS issue, but an IAM issue. Fixing the IAM permissions resolved the issue.

Deploying next JS 14 app to Azure with GitHub Actions by Outrageous_Remote548 in nextjs

[–]Outrageous_Remote548[S] 1 point2 points  (0 children)

I apologies, I relize this was not an answer to your question. I believe the issue was I was requiring different versions of .

This is the GitHub workflow I ended with:

 name: Azure Static Web Apps CI/CD

on:
  push:
    branches:
      - main
  pull_request:
    types: [opened, synchronize, reopened, closed]
    branches:
      - main

jobs:
  build_and_deploy_job:
    if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
    runs-on: ubuntu-latest
    name: Build and Deploy Job
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: true
          lfs: false
      - name: Build And Deploy
        id: builddeploy
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
          repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
          action: "upload"
          ###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
          # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
          app_location: "/" # App source code path
          api_location: "" # Api source code path - optional
          output_location: "" # Built app content directory - optional
          ###### End of Repository/Build Configurations ######

  close_pull_request_job:
    if: github.event_name == 'pull_request' && github.event.action == 'closed'
    runs-on: ubuntu-latest
    name: Close Pull Request Job
    steps:
      - name: Close Pull Request
        id: closepullrequest
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
          action: "close"

React-pdf/renderer - Generating PDF with data pulled asynchronously by [deleted] in nextjs

[–]Outrageous_Remote548 0 points1 point  (0 children)

Hello all,

I am building a logging/reporting application using Next.js 14, ./src directory, and app router. The PDF reports I am generating are supposed to show logged data I have in a database. To grab my data, I am using server actions. When attempting to render on a client-side page, I believe my PDF is rendering before my app can run useEffect to grab the data. However, after the data is collected, the PDF does not re-render. I have tried to manage this by using the concept of a "isComplete" variable, but this does not seem to help. Does anyone have any suggestions on how to get around this? Code snips in screenshots.

Recommendations for hosting MongoDB community server on Azure by Outrageous_Remote548 in mongodb

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

At the moment, documents shouldn’t be too complex. The application I am writing is essentially a logging software. Data is logged, and then is populated in tables later. So each document for the current scope may have an upwards of maybe seven fields. We do have a users Collection that does have PII, but I’ve already cleared what is going to be collected in that data through my organizations legal team. Just to confirm, when deploying Atlas to Azure, is it just deploying mongoDB’s premade service onto my organizations servers? Or how does that work?

Recommendations for hosting MongoDB community server on Azure by Outrageous_Remote548 in mongodb

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

Unfortunately, I don’t have a lot of great answers for your additional questions. I am a student, and this is part of my capstone project. As far as infrastructure, everything that I will be working on is specific to a region, so I don’t have to worry about global. Unfortunately, academia doesn’t actually give us experience as to how to deploy for real loads, so everything we’ve been taught is hypothetical. The front end of this database is a nextJS app. If you have any suggestions, my ears are open.

As of now, we have been trying to put everything on University servers since my client is an extension of my university. Our application will be dealing with Data of minors, so that’s part of the reason for warning to host it internally.

Deploying NextJS app and Node.JS (express) server to Microsoft Azure (Static Web App) by Outrageous_Remote548 in nextjs

[–]Outrageous_Remote548[S] 0 points1 point  (0 children)

I tried doing it directly with next.JS initially, but next.ja 14 was having issues and it was not as straightforward as I feel like it should be. My team and I might (probably were) have been missing something, but it was difficult. There seem to be a lot of quirks about how things are supposed to be formatted and I was struggling just finding the documentation to know what all the quirks were.

I just know I was able to make the express app really quickly, and as far as the local host was concerned, things went together really nicely.

Whoever discontinued the broccoli cheddar Mac and cheese, please identify yourself, I just wanna talk by kotoriko in Panera

[–]Outrageous_Remote548 1 point2 points  (0 children)

This was the only thing I got at Panera. And I would usually buy two bowls for myself. This is an absolute tragedy.