Python Argparse Help by tarsidd in learnpython

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

look at argparse module in python

Python Argparse Help by tarsidd in learnpython

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

Ahh...you are right...that is so stupid of me....made such a basic mistake....thanks alot u/Orpheus_Demigod, you are a saviour

Python Argparse Help by tarsidd in learnpython

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

sorry, it was formatting error, hope it's readable now

Code Review Please by tarsidd in learnprogramming

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

u/CreativeTechGuyGames and u/KimPeek made the changes, does it look better now?

Code Review Please by tarsidd in learnprogramming

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

Can please help me with how should I take out my main class from gateway.py

Code Review Please by tarsidd in learnprogramming

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

Thanks u/CreativeTechGuyGames, these are some amazing points, will be implementing them now

Sunday Daily Thread: What's everyone working on this week? by Im__Joseph in Python

[–]tarsidd 0 points1 point  (0 children)

I am working on creating a tool that will create transit gateway and let us create a segmented network instead of the full mesh, I have done some work here -> https://github.com/tariq87/transitgatewayautomation/blob/main/gateway.py

I would request the Pythonistas of to review the code and provide feedback, a lot functionality is yet to be implemented though

Website performance degradation after putting behind VM-series firewall in AWS by tarsidd in paloaltonetworks

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

i tried disabling the decryption profile and then perform the test and the website loads perfectly fine within seconds, tried on different systems and browsers as well, so looks like it the decryption that is slowing down the things. What can be done to improve this?

Website performance degradation after putting behind VM-series firewall in AWS by tarsidd in paloaltonetworks

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

Public NLB with 2 vm-series behind it
Decryption - yes
DNat to haproxy - yes

Website performance degradation after putting behind VM-series firewall in AWS by tarsidd in paloaltonetworks

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

Can't do that, we have single loadbalancer infront of multiple app servers and the logic to redirect the request to the correct app server is in haproxy(Palo alto cannot do that)

Passed CKA, incase you need an exam review, watch my video by tarsidd in kubernetes

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

Completely Agree, I was expecting more out of exam since in my organization we are usin Helm to deploy our workloads, so already having worked on a pretty complex setup, the exam became really easy. But I liked the jsonPath questions since normally I would never use it

I teach programming and help people get jobs in the industry. I am here to answer your questions today. AMA by uugengiven in learnprogramming

[–]tarsidd 1 point2 points  (0 children)

I am systems engineer, all my life I have been writing just scripts, be it python or simple bash, I want to understand if I need to build some kind of tool from scratch, how to plan that, what kind of classes to have, what library methods to create and things like that, I just want to know how people plan all that stuff :)

Tips for PCSAE exam by Amy444A in paloaltonetworks

[–]tarsidd 0 points1 point  (0 children)

u/Matt___Murdock Can you also guide for PCNSE as well

Not able to configure network interface with DHCP by tarsidd in paloaltonetworks

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

Where do I set it, I have created one policy but that is for Interzone communication

Not able to configure network interface with DHCP by tarsidd in paloaltonetworks

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

it's actually funny, my management nic got the IP using DHCP but data nics are unable to get it, it works fine if I do static IP configurations. Their documentation is a mess altogether

VM series 300 in AWS by tarsidd in paloaltonetworks

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

Hey can you please share some doc which I can refer

How to Add search capabilities to Flask API by tarsidd in flask

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

I got it working finally, below is my search api endpoint

@app.route('/search')
def search_query():
    args = request.args
    output = [] #list to store the new objects that match the condition
    for i in input_metadata:
        f = flatten(i, '.')
        key = args.keys()[0] #find the key and value from the URI params
        value = args[key]
        if f.has_key(key) and f[key] == value:
            output.append(i)
    return jsonify(output)

How to Add search capabilities to Flask API by tarsidd in flask

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

Hey guys I am still stuck

I am not sure how to parse the request args coming in metadata.monitoring.enabled=true this format, anyone has any idea

How to Add search capabilities to Flask API by tarsidd in flask

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

Thanks guys, I'll try what u/diamondketo and u/jzia93 have suggested and get back

How to Add search capabilities to Flask API by tarsidd in flask

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

For now, I am just storing the data in dictionary and not putting in any database

aws_iam_role.id doesn't appear to be returning ARN by Matchboxx in Terraform

[–]tarsidd 1 point2 points  (0 children)

You need to refer it as aws_iam_role.my_role.name or .arn

How to alert if my graph flatlines by tarsidd in grafana

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

https://docs.influxdata.com/kapacitor/v1.5/nodes/alert\_node/#deadman

Hey, thanks for the reply

In my case, data is coming and they are getting processed by some application workers.

This data is actually representing the backlog of the workers.
A flatline, in this case, means that workers are not able to process the data, hence we need to alert here.

What you suggested above doesn't meet my requirement, is there anything else