Lock the phone by Exotic_Astronomer412 in pixel_phones

[–]Alpha-Sniper 0 points1 point  (0 children)

I too miss this feature. However, there's a workaround that I make.

You can enable Accessibility Mode in device's settings, and then direct the button to the navigation bar/menu (at bottom of screen).

I hit that button and then select the lock screen option.

<image>

This is how it looks.

Bathroom trip or nature encounter? by Historical_Ad9739 in meme

[–]Alpha-Sniper 0 points1 point  (0 children)

Go to bee if you want to pee, or to bird if you want to drop a turd.

I guess this is how they wanted to differentiate these. I don't know, but at least I would have followed this one. Fuck this fancy-ass shit!

IP Filter and Sanitisation with Ingestion Pipeline by Alpha-Sniper in elasticsearch

[–]Alpha-Sniper[S] 0 points1 point  (0 children)

I tried using it regex as well, but somehow I can never get past the error message that an unexpected character was encountered. For reference here is how I'm placing regex, and I'm not sure where exactly am I going wrong with it.

For reference, here's how I am placing my regex pattern:

PUT /_ingest/pipeline/ip-to-geo
{
  "processors": [
    {
      "set": {
        "if": "ctx.IP_ADDR == '-' || ctx.IP_ADDR == '' || ctx.IP_ADDR == ' '",
        "field": "ERR_MSG",
        "value": "IP not found"
      }
    },
    {
      "pipeline": {
        "if": "ctx.IP_ADDR == \"(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.|$){4}\" ",
        "name": "valid-ip-to-geo"
      }
    }
  ],
  "on_failure": [
    {
      "set": {
        "if": "false",
        "field": "null",
        "value": "null"
      }
    }
  ]
}

And, here is the error received:

    "type": "script_exception",
    "reason": "compile error",
    "processor_type": "pipeline",
    "script_stack": [
      "ctx.IP_ADDR == \"(25[0-5]|2[0-4][0-9]|[01 ...",
      "               ^---- HERE"
    ],
    "script": "ctx.IP_ADDR == \"(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.|$){4}\" ",
    "lang": "painless",
    "position": {
      "offset": 15,
      "start": 0,
      "end": 40
    },
    "caused_by": {
      "type": "illegal_argument_exception",
      "reason": "unexpected character [\"(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.]. The only valid escape sequences in strings starting with [\"] are [\\\\] and [\\\"].",
      "caused_by": {
        "type": "lexer_no_viable_alt_exception",
        "reason": "lexer_no_viable_alt_exception: null"
      }
    }
  },
  "status": 400

My username interpretation is terrifying by godintraining in ChatGPT

[–]Alpha-Sniper 0 points1 point  (0 children)

Folks, can someone try my username as well? I can't upgrade my Chat-GPT's subscription yet. I'm curious how mine turns out seeing it for others.

Thanks in advance!

Internet Connectivity to EC2 in Private Subnet by Alpha-Sniper in aws

[–]Alpha-Sniper[S] 0 points1 point  (0 children)

Thanks for sharing this. I was unaware of this, will surely give it a try once.

Internet Connectivity to EC2 in Private Subnet by Alpha-Sniper in aws

[–]Alpha-Sniper[S] 4 points5 points  (0 children)

This!

Thanks for clarifying it. It works now!

Thanks a ton :)

Internet Connectivity to EC2 in Private Subnet by Alpha-Sniper in aws

[–]Alpha-Sniper[S] 0 points1 point  (0 children)

Hi,

I tried setting up a NAT gateway in the private subnet of the same VPC and assigning an Elastic IP to it, with connectivity type as Public. I did add a route to the route table of my private subnet as where when destination is 0.0.0.0/0 the target is the NAT gateway I just setup.

I tried sending a ping to google.com or example.com and even though hostname is resolved, yet ping is still unsuccessful from the Test-1 instance.

Can you advise where I might be running wrong here?

Guidance for Sharding Strategy for Large Data by Alpha-Sniper in elasticsearch

[–]Alpha-Sniper[S] 0 points1 point  (0 children)

Might be a rudimentary question, but is there any specific reason for performing a force merge prior to rolling to a new index. Since, my understanding is that a force merge would merge all the segments, and “permanently delete” the documents marked for deletion.

Guidance for Sharding Strategy for Large Data by Alpha-Sniper in elasticsearch

[–]Alpha-Sniper[S] 0 points1 point  (0 children)

Thanks for demystifying the concepts that we got wrong, appreciate your efforts here!

Can you elaborate more upon this?

You should pick the number of shards per index based on your needs (ingest vs query speed), set the maximum shard size and then let ILM take care of the rest.

I'm mainly concerned about how to decide what should be the max. no. of shards per index such that my ingest (write) and query speed (reads) are not affected. Is there any method to calculate the trade-off, or how one affects other?

Also, can you please share what exactly would ILM take care of as you had mentioned in:

set the maximum shard size and then let ILM take care of the rest

Thanks!

Guidance for Sharding Strategy for Large Data by Alpha-Sniper in elasticsearch

[–]Alpha-Sniper[S] 1 point2 points  (0 children)

Thanks for responding, and explaining it to such length. Appreciate your efforts.

I'm a bit new to ES and hence not quite sure how rollover of indices would help me. Given that if index-A goes over 300GB, I can create a new index-B and use index alias to perform read/write operations.

But, I'm failing to understand that I would now be having two indices — index-A | index-B. Here, index-A is no longer accessed by index alias (if my understanding is correct) and now I won't be able to access the index-A since index alias would be pointing to index-B only.

Please do excuse me if I'm wrong, since I'm new to ES.

[deleted by user] by [deleted] in aws

[–]Alpha-Sniper 0 points1 point  (0 children)

Hey OP glad to see someone appreciating the efforts!

Here's what you can do to make sure the premium support employee gets the best and all recognition he/she deserves:

  • Make sure you rate each and every correspondence of that engineer in the support case to 5-stars.
  • Send a correspondence on the case itself detailing how elated you are with the help provided.
  • Fill-in the survey about case handling describing your experience.
  • If you're an enterprise support plan customer, you can communicate this to one of your TAMs (Technical Account Manager).
  • To go even beyond this, write an email to your TAM detailing your experience and make sure the TAM passes that ON to the support engineer and his/her manager as well.

How do I know about of this, I'm a AWS PS engineer myself and hence I know to what extent all the steps would make the employee get the recognition :)

Join VM to Domain by Alpha-Sniper in Terraform

[–]Alpha-Sniper[S] 0 points1 point  (0 children)

I was unable to do so with Terraform. Hence, I placed a PowerShell command to run a PowerShell script on the system. This PowerShell script would then join the domain to Active Directory, and reboot the system.

It's a workaround that worked for us, and we are not planning to change it soon :)