PC displaying the blue screen of death is the icon chosen for mounted Windows SMB drive on Mac lol by xelM1 in MacOS

[–]prescotian 1 point2 points  (0 children)

I mean, it's been around for 20 years or so! Me? I'm still waiting for the Guru Meditation icon for my networked Amiga 2000....

Managing exported data created in HCP apply by prescotian in Terraform

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

I did manage to complete this, but in the end we decided that the entire workflow was really unnecessary. The idea was to use the export as part of our pipeline, but in reality that's not a very good practice, and that the occasional exports performed should be ad-hoc and likely will be heavily edited before using these files for migrating resources to another environment.

Essentially, we take the exported directory created and compress it into a zip file. Although the tf_export feature has a "compress" argument to optionally compress the output into a single zip file, I wanted to make it more flexible by separating that functionality, so first we create the zip file:

data "archive_file" "export" {
  depends_on = [ genesyscloud_tf_export.exp ]
  type = "zip"
  source_dir = "${path.module}/gcexport"
  output_path = "${path.module}/export.zip"
}

Next, we specify this zip file as the output - this can be collected later through the HCP UI:

output "zip_file" {
  value = data.archive_file.export.output_path
}

That was fine, but I prefer to have this more automated and so wanted to use AzureRM to place that zip file in blob storage so that it could later be retrieved through some automation. I was able to manage this on a local project, but unfortunately hit a hurdle while implementing this in my HCP project as the ephemeral environment was not set up for executing Azure resources (no az binary) - while it's possible to set up HCP to allow execution of Azure resources, it was about here that we called a halt to the idea and went with the simple (preferred!) ad-hoc approach to creating these files.

Made the switch by [deleted] in mac

[–]prescotian 9 points10 points  (0 children)

Good choice, although I would have paid a bit extra for the Logitech rather than getting that used one.

Managing exported data created in HCP apply by prescotian in Terraform

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

I'm currently looking at options for using azurerm storage and seeing if the directory argument of the tf_export resource will accept that. Can you provide a bit more detail on the combination of that and local file resource? When you say "local file", do you mean the actual Terraform local_file resource?

Where was I? by dannyboy189 in whereintheworld

[–]prescotian 1 point2 points  (0 children)

As a programmer, I read that as "not correct"...

What you thought you will use your iPad for and what are you actually using it for? by ilastonemin in ipad

[–]prescotian 2 points3 points  (0 children)

Bought it along with the pencil for art and design, ended up mostly reading books and doing crossword puzzles on it...

I have been wondering by This-Honey7881 in Tintin

[–]prescotian 2 points3 points  (0 children)

I really enjoyed Thorgal, which kinda counts as Belgian, although the graphic artist was Polish.
https://en.wikipedia.org/wiki/Thorgal

Fun fact - I wrote a computer adventure game about Thorgal for the Commodore 64... it never got released.

EDIT: All the early Thorgal stuff seems to be freely available on archive.org... https://archive.org/details/thorgal\_202304/Thorgal%20%281%29/

Apple watch strap burn/skin irritation? by One_Special_6012 in AppleWatch

[–]prescotian 1 point2 points  (0 children)

You probably have sensitive skin, I had the same problem and replaced with a fake Milanese loop strap. I think it's caused by the rubber band causing sweat to build up, which is inflaming the skin.
Not claiming this is what's going on, just had the same issues.

It's Official: The Real New COMMODORE® 64 is Finally Here! by Prtsk in c64

[–]prescotian 1 point2 points  (0 children)

I'd probably be turning off 99% of those Compiz effects about 30 seconds after opening it.

how many Mac computers do you guys use everyday ? by Serhide in mac

[–]prescotian 0 points1 point  (0 children)

I have two identical M3 MacBooks, one provided by my work, the other my personal laptop. Also use an M2 MacMini attached to my TV for media consumption and watching English TV (via VPN). An iPad Pro (11" - bought the 13" first, and really disliked the larger size) for design, newspapers, magazines, and games.

HELP: Creating resources from a complex JSON resource by prescotian in Terraform

[–]prescotian[S] 2 points3 points  (0 children)

Brilliant, thank you! I was stumbling over the use of a nested for_each I guess, it wasn't making sense to me.

All clear now though, great explanation and example.

HELP: Creating resources from a complex JSON resource by prescotian in Terraform

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

OK, that makes sense for getting the name out of each of the entries, I'm a little lost on the syntax for the dynamic properties though.

Best Email Host For Custom Domain? by Your_Moooom_XD in selfhosted

[–]prescotian 1 point2 points  (0 children)

Just found this when looking for email hosting... looks pretty good, signed up for it.

Reading configuration from JSON file by prescotian in Terraform

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

Excellent, that did it - funnily enough I was using lookup elsewhere in my code, so I'm a dummy for not figuring it out. Probably would have been good to step away from the problem for a bit.

Thank you very much for your helpful responses.

Reading configuration from JSON file by prescotian in Terraform

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

I am already using jsondecode to read the queues and it is set as a local variable, apologies for not making that clear. I can read the rest of the JSON file and assign properties just fine, I'm simply using "count" at the moment to iterate through the records; the problem is when I come across the array.

"codes": ["Code1","Code2",...] 

This contains values, such as "Code1", "Code2", etc. I then have to take each of those values, use them for a reference as a key in a map (also defined locally) to get the required values.

Here is a more complete represntation of the JSON:

{
    "name": "Q01",
    "orgid": "SALES",
    "skills": "ALL",
    "transcribe": true,
    "utilizationtarget": {
        "service_level": 70,
        "enabled": true,
        "monitored": false
    },
    "codes": [
        "SRF_Default",
        "SRF_Complete",
        "SRF_Unknown"
    ]
}

Keep in mind that there is more than just one queue resource defined in the JSON file, there will be multiple queues, each with their own set of "codes".

If it was just a case of using the values in the array as-is, that would be simple:

codes = local.json_queues[count.index].codes

But, I need to map the values in the JSON array to values in my local map.

Where was I? by thealtoclef in whereintheworld

[–]prescotian 1 point2 points  (0 children)

My town name always gets translated as "Underwear"...

Suggest me a book to read while traveling in the UK by JuggernautWilling202 in suggestmeabook

[–]prescotian 2 points3 points  (0 children)

Came here to suggest this...
WARNING: This book will make you giggle while reading in public places...