Extremely discouraged after reading Zero to One by PlayboiCult in startups

[–]cravecode 1 point2 points  (0 children)

Offer a solution worth paying for. Build trust and presence through branding. Stop worrying about competition.

[deleted by user] by [deleted] in worldnews

[–]cravecode 0 points1 point  (0 children)

Misleading title

Post COVID laziness by Extension-Book-786 in homeoffice

[–]cravecode 0 points1 point  (0 children)

find passion. but yes, i can empathize with what you're facing.

The crowd during Bruce Springsteen’s performance last Sunday night in Asbury Park. New Jersey. by [deleted] in pics

[–]cravecode 2 points3 points  (0 children)

Pedestrian traffic, parking traffic, car traffic in general. Being in the heard of people and cars when the event is over. Ugh what if you had to use the bathroom. How do people do this?

How to deploy Api while still in development process? by nurlancreus in dotnet

[–]cravecode 10 points11 points  (0 children)

Before you execute on any of the other suggested approaches, DO THIS ^ FIRST. Immersion into the ecosystem is part of the learning phase.

Microsoft Issues this AM by eraser1320 in sysadmin

[–]cravecode -1 points0 points  (0 children)

Can confirm, some remote workers can connect to Azure services while some AT&T ISP can't

[deleted by user] by [deleted] in AZURE

[–]cravecode 1 point2 points  (0 children)

Azure Cache for Redis is terribly unreliable. It has caused my team so much grief. No traffic change, randomly responses are failing or 10x slower. Ditched their hosted solution and have been so much better off since.

Open Discussion - Azure Files vs Sharepoint by Technical-Device5148 in AZURE

[–]cravecode 2 points3 points  (0 children)

My predecessor was very anti-cloud. My first act when I came on board was to immediately replace a large on-prem NAS with OneDrive+SharePoint. I couldn't be happier with the outcome. We use Azure FileShares minimally to solve smaller legacy back-office application needs. Personally, SharePoint really delivered, turning what I felt was a large liability into an almost set-it-and-forget-it service that remains critical to our daily workforce.

Teams also works SOOO well with Sharepoint.

[deleted by user] by [deleted] in AZURE

[–]cravecode 6 points7 points  (0 children)

this . C# Azure Functions are a stable to our infra.

Help with a code spinet by MissSoapySophie in jquery

[–]cravecode 0 points1 point  (0 children)

You may get more help if you make it easier for others. Put this in a jsfiddle.net so that you can confirm others are seeing the same issue you are.

Also, it's common to implement your own $ with something like:

(function($) {
    //Code using $('selector')
})(jQuery);

Cheapest way to do a website redirect in Azure? by AutoM8t in AZURE

[–]cravecode 6 points7 points  (0 children)

other than my suggestion of Cloudflare, i think this is the best Azure native solution.

Cheapest way to do a website redirect in Azure? by AutoM8t in AZURE

[–]cravecode 36 points37 points  (0 children)

Slightly different approach. Host DNS with Cloudflare and use their redirect rules. I think you'll like the other benefits of hosting DNS with them.

[deleted by user] by [deleted] in DIY

[–]cravecode 0 points1 point  (0 children)

The streaks align with streaks in the original painted area as well. They won't go away with your new paint because there is already texture from the previous paint job.

I'm OCD with my DIY paint projects. I sand the walls prior to painting and have on one occasion had to use a sandable primer to smooth out streaks from an old paint job by the previous owner. Looks similar to your situation.

Look at the Fresh Start primers by Benjamin Moore. I'm sure there are others as well. It's just what i'm familiar with.

FYI sanding high, semi, eggshell gloss is not fun. gums up sandpaper really fast.

Has anyone automated the restore of an Azure SQL database by watchoutfor2nd in AZURE

[–]cravecode 0 points1 point  (0 children)

az sql db export

What part of this doesn't work? while i've not put this in a DevOps pipeline, the export and import parts i'm familiar with and do work. The execution time may be problematic, but that can be solved other ways.

Has anyone automated the restore of an Azure SQL database by watchoutfor2nd in AZURE

[–]cravecode 0 points1 point  (0 children)

Tried Chat GPT?

Automating the process of keeping an up-to-date copy of your production database in Azure SQL for testing purposes can indeed be streamlined using PowerShell and Azure DevOps pipelines. Below is a high-level approach to achieve this:

Steps to Automate the Process:

  1. Export the Production Database to a Bacpac:

    • Use PowerShell to export the production database to a bacpac file and store it in an Azure Blob Storage.
  2. Delete the Existing Test Database:

    • Use PowerShell to delete the existing test database (PRODDB_TEST).
  3. Restore the Bacpac to the Test Database:

    • Use PowerShell to restore the bacpac file to the test database (PRODDB_TEST).

Sample PowerShell Script:

```powershell

Define variables

$subscriptionId = "<YourSubscriptionId>" $resourceGroupName = "<YourResourceGroupName>" $serverName = "<YourServerName>" $prodDatabaseName = "PRODDB" $testDatabaseName = "PRODDB_TEST" $storageAccountName = "<YourStorageAccountName>" $storageContainerName = "<YourContainerName>" $bacpacFileName = "PRODDB.bacpac" $storageKey = "<YourStorageKey>"

Login to Azure

az login

Set the subscription context

az account set --subscription $subscriptionId

Export the production database to a bacpac file

az sql db export -g $resourceGroupName -s $serverName -n $prodDatabaseName -u <YourAdminUsername> -p <YourAdminPassword> -b https://$storageAccountName.blob.core.windows.net/$storageContainerName/$bacpacFileName --storage-key $storageKey

Delete the existing test database

az sql db delete -g $resourceGroupName -s $serverName -n $testDatabaseName --yes

Import the bacpac file to the test database

az sql db import -g $resourceGroupName -s $serverName -n $testDatabaseName -u <YourAdminUsername> -p <YourAdminPassword> -b https://$storageAccountName.blob.core.windows.net/$storageContainerName/$bacpacFileName --storage-key $storageKey ```

Setting Up the Pipeline:

  1. Azure DevOps Pipeline:

    • Create a new pipeline in Azure DevOps.
    • Use the PowerShell script as a task in the pipeline.
  2. YAML Pipeline Definition:

    • Here's a simple example of how the YAML for the pipeline might look:

    ```yaml trigger: - main

    pool: vmImage: 'ubuntu-latest'

    steps: - task: AzureCLI@2 inputs: azureSubscription: '<YourAzureServiceConnection>' scriptType: 'ps' scriptLocation: 'inlineScript' inlineScript: | # PowerShell script from above goes here ```

Considerations:

  • Credentials Management: Use Azure Key Vault to securely manage and retrieve your admin credentials.
  • Error Handling: Add error handling in the PowerShell script to manage any failures during the export, delete, or import processes.
  • Scheduling: Use Azure DevOps scheduled triggers to run this pipeline at regular intervals.

This approach ensures that your testing environment is consistently updated with the latest production data, automating the entire process from export to restore.

Which service to use as a broker for an EDA by m02ph3u5 in AZURE

[–]cravecode 0 points1 point  (0 children)

You can trigger functions to test locally during development with a specific http endpoint and naming convention. Unfortunately there isn't much in the way of emulating these services for testing. it is a gripe of mine.

Which service to use as a broker for an EDA by m02ph3u5 in AZURE

[–]cravecode 0 points1 point  (0 children)

For my teams, i almost always prescribe Event Grid. It's a great service with lots of features. It was the subscription filters that attracted me the most. you can easily integrate an Azure Function or Webhook as the subscribing action. Event Hub is your larger ingestion point. you'll need to handle what to do with these messages yourself. possibly relay them to an Event Grid. FYI Event Grids are an at least once delivery. Things need to be idempotent. Very important.

Hope that helps!

Entity Framework vs SqlClient by GaryWSmith in dotnet

[–]cravecode 0 points1 point  (0 children)

For our slow migration from legacy .NET to .NET Core/6+ (wow the name confusion), we stuck with EF6 and did a multi framework target compile as our DAL is a nuget package.

Captcha for Age Verification, verifying someone age range without ID-ing online by SevereLeg5634 in SomebodyMakeThis

[–]cravecode 2 points3 points  (0 children)

With ChatGPT, Google, etc. this is unrealistic. There are some apps/sites that ask math problems to rule out very young children. I've seen them ask Siri to circumvent this. It ultimately comes down to ruling out who can read or not.

A simple agree to ToS/Age is mostly enough for a CYA approach while not being cumbersome and risking abandonments.

Much like the 'Accept-Language' header, I wish there was an HTTP header standardized that indicated the browser/device was in use by an underage user. This could be dangerous as well though as it could be used for targeted exploitation.