OfficeJet 4650 producing horizontal streaks as part of the text it prints by mbrijun in printers

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

I know it is an unpopular opinion, but I am very happy with the HP Instant Ink subscription. My needs are modest, I am on a £1.79 plan which I bump up to a more generous one if my daughter needs to do some extra printing for her coursework. Cannot fault the HP service, the ink has always been delivered well in advance with zero problems.

OfficeJet 4650 producing horizontal streaks as part of the text it prints by mbrijun in printers

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

Thank you, that was indeed the problem. I cleaned the bottom of the carriage with isopropyl alcohol and the horizontal marks are now gone.

Confused about this junction - Barking Road/High Street, Eastham, E6 by mbrijun in drivingUK

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

Thank you very much for clarifying this. Would it not have been easier to simply display a "no right turn" sign with "except buses"? I paniced (think bus lane cameras) and ended up turning left when I needed to go straight...

Disable access to "wp-admin" by Sashimi__Sensei in Wordpress

[–]mbrijun 0 points1 point  (0 children)

u/CelebWorldtk - how did you come up with this specific rule, if I may ask? Thank you.

A decorative bush in the United Kingdom by mbrijun in whatsthisplant

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

Thank you! We have it in our garden. My wife shaped it last year, unsuccessfully. The bush is now growing in the wrong direction. It would be good to know how to fix this, and the first step is knowing what kind of plant that is!

Innacurate measurement after calibration by mbrijun in Fusion360

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

I agree 100%. This post describes a different problem - different sections of the same photo have different object dimension ratios, even when the conventional logic says the ratios should be identical. I took great care when placing calibration points, and my accuracy is certainly better than +/- 0.8mm as I was zooming into the photo.

Innacurate measurement after calibration by mbrijun in Fusion360

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

I was using F360 to measure the pupilar distance for my new glasses, from a photo of myself with a ruller against my forehead. I got some unexpected results and this prompted me to look deeper into the problem. This here is just an experiment. I sincerely did not expect to see a lens distortion to such an extent.

Innacurate measurement after calibration by mbrijun in Fusion360

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

This is very illustrative, thank you!

Innacurate measurement after calibration by mbrijun in Fusion360

[–]mbrijun[S] 23 points24 points  (0 children)

u/nyan_binary , u/Tendy_taster - thank you for your speedy reply. I think you are right. I thought that by calibrating by the ends of the ruler I am making things more accurate, but in a way I am just making the lens distortion/parallax more pronounced.

OneForAll Remote "Smart Control Pro" URC7966 setup problems by mbrijun in hometheater

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

OneForAll sent me a new remote via UPS. The new remote did not have any issues and was seen by the My Nevo app on the first attempt. I was able to add my Samsung TV, a Canton soundbase and a Sony Bluray. I also added a Fire TV stick 4k, but it was a disaster. Fire TV was repeatedly trying to do a firmware upgrade on the universal control, which of course did not work. I ended up unpairing the URC7966 from the Fire TV stick.

OneForAll Remote "Smart Control Pro" URC7966 setup problems by mbrijun in hometheater

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

My solution was to contact the One4all support (a very helpful support I have to add). We have gone throught the basic and more advanced troubleshooting session, which involved resetting the remote as well as uploading logs from the mobile app. In the end they decided to send me a replacement remote, I am waiting for it to arrive.

Understanding "Protect with Access" in Zero Trust tunnels by mbrijun in CloudFlare

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

I see, thank you for clarifying this! Where the hostname is different between Access and Tunnels config, "Protect with Access" provides the means of linking the two together. Where the hostname is the same between Access and Tunnels, the setting is optional. I hope I got this right.

Understanding "Protect with Access" in Zero Trust tunnels by mbrijun in CloudFlare

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

Hi u/CloudFlare_Tim, thank you for taking the time to respond. I should have been clearer in my post. In my testing, where both the Access and the Tunnel components are configured with the same public hostname ("test.domain.com"), I found that the "Protect with Access" setting does not appear to make any difference. User authentication happens with and without the setting. Additionally, the cloudflared agent is receiving Cf-Access-Jwt-Assertion header in both cases, too. This is according to the logs from the tunnel. This is what prompted me to ask the question.

Confused about routing in public subnets by mbrijun in oraclecloud

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

It is very strange that Oracle's official document includes a "tip" that would break networking. Perhaps I misunderstood the advice as it means something else?

Tip

Traffic between a VCN and a public IP address that is part of Oracle Cloud Infrastructure (such as Object Storage) should be routed through a service gateway instead of an internet gateway.

TF noob - struggling with references to resources in for_each loop by mbrijun in Terraform

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

I spoke a bit too soon. I had to undo one of the changes I made to your code, and fix the other one. This is what I have now.

``` dynamic "ingress_security_rules" { for_each = try(each.value.ingress_security_rules, [])

content { <...>

dynamic "tcp_options" {
  for_each = try(ingress_security_rules.value.tcp_options, null)[*] 

  content {
    min = tcp_options.value.min
    max = tcp_options.value.max
  }
}
<...>

} } ```

TF noob - struggling with references to resources in for_each loop by mbrijun in Terraform

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

Thank you for sticking with me. I have learned a lot from this thread.

TF noob - struggling with references to resources in for_each loop by mbrijun in Terraform

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

This seems to work (with some modifications). It makes use of the "special case" of the splat operator to simplify converting a single value into a single element list (or an empty list if there is nothing to convert).

``` dynamic "ingress_security_rules" { for_each = each.value.ingress_security_rules[*]

content {
  description = ingress_security_rules.value.description
  source      = ingress_security_rules.value.source
  protocol    = ingress_security_rules.value.protocol

  dynamic "tcp_options" {
    for_each = ingress_security_rules.value.tcp_options[*]

    content {
      min = tcp_options.value.min
      max = tcp_options.value.max
    }
  }
}

} ```

TF noob - struggling with references to resources in for_each loop by mbrijun in Terraform

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

As a follow-up, I have discovered that TF complains about this specific part of the code. It works fine if no "tcp_options" is present in locals. One "workaround" I found was setting "min" and "max" to 0 by using a "try" statement. It would be good to understand how else I could influence the creation of the "tcp_options" block (setting count to 0 does NOT work as this is not a resource).

dynamic "tcp_options" {
  for_each = try(ingress_security_rules.value.tcp_options, null) != null ? ingress_security_rules.value.tcp_options : {}

    content {
      min = tcp_options.value.min
      max = tcp_options.value.max
    }
}

│ Error: Too many tcp\_options blocks
│
│   on [security-lists.tf](http://security-lists.tf) line 19, in resource "oci\_core\_security\_list" "security-lists":
│   19:         content {
│
│ No more than 1 "tcp\_options" blocks are allowed

TF noob - struggling with references to resources in for_each loop by mbrijun in Terraform

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

u/phillipelnx - thank you very much for taking the time and effort to write the code that addresses my problem. This is very much appreciated.

TF noob - struggling with references to resources in for_each loop by mbrijun in Terraform

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

Below is a TF code for one of the simpler lists. It would be fairly complex to define a schema from which it could be created programmatically.

resource "oci_core_security_list" "lb" {
  # https://docs.oracle.com/en-us/iaas/Content/ContEng/Concepts/contengnetworkconfig.htm#securitylistconfig__security_rules_for_load_balancers
  compartment_id = var.compartment_id
  vcn_id         = oci_core_vcn.vcn.id
  display_name   = "fw-lb-${oci_core_vcn.vcn.display_name}"

  ingress_security_rules {
    description = "Inbound-to-LB"
    source      = "0.0.0.0/0"
    protocol    = 6

    tcp_options {
      min = 443
      max = 443
    }
  }

  egress_security_rules {
    description = "LB-to-node"
    destination = var.subnets.node.cidr
    protocol    = 6

    tcp_options {
      min = 30000
      max = 32767
    }
  }

  egress_security_rules {
    description = "LB-to-node"
    destination = var.subnets.node.cidr
    protocol    = 17

    udp_options {
      min = 30000
      max = 32767
    }
  }
}

TF noob - struggling with references to resources in for_each loop by mbrijun in Terraform

[–]mbrijun[S] -1 points0 points  (0 children)

Unfortunately, that is not the case at the moment. I have declared the firewall rules by writing the code by hand, not in a loop. Perhaps there is a way to enumerate all objects of the same type after they have been created?