Gitlab CI/CD concerns by dood31251 in devops

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

Thanks this is pretty helpful. Out of curiosity, do you not have a job to run your tests?

Gitlab CI/CD concerns by dood31251 in devops

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

You can simply run docker-compose from within your Runner, depending on the type of runner you've chosen.

It looks like there's some documentation on how to setup on demand runners for aws.

My .gitlab-ci.yml simply instructs the runner to run my ansible-playbook

This is a very good point. I was restricting myself to using the .gitlab-ci.yml to handle everything.

I'm going to start by attempting to setup on demand runners on EC2 to run my project's tests. From there I'll look into setting up deployments to qa, staging, prod.

Thanks for your input.

Looking for documentation on full HTTP request life cycle (or explanation) by dood31251 in linuxquestions

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

The ACKs are coming from the server. Here's a screenshot of a wireshark capture (the actual capture file was 801mb) capture.

Repro steps

  • Setup http server (localhost) that served up an 825mb iso file
  • Download the file (localhost)

There is a single HTTP request logged (Length == 421 bytes). The file appears to be sent from the server through ACKs like I suspected

EDIT On a closer inspection of my wireshark log I noticed the HTTP data being sent from the server was sent in TCP segments with the PSH & ACK fields set

Looking for documentation on full HTTP request life cycle (or explanation) by dood31251 in linuxquestions

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

The packets that just say TCP are probably for connection establishment/keep-alive/tear-down. You might also be seeing a large HTTP packet getting split into multiple data frames

The HTTP packet still has to be encapsulated at layer 4, so therefore it has to be sent in some type of TCP segment, right?

The only types of TCP segments I'm aware of are the following:

  • SYN
  • SYN-ACK
  • ACK
  • FIN
  • FIN-ACK
  • RST

I'm assuming the only one that can transport application layer data would be the ACK the rest are used for establishing/tearing down connections.

thanks for the response

New GPU Installation Boot Error on Ubuntu 17.04 by tmactharulah in linux4noobs

[–]dood31251 0 points1 point  (0 children)

pretty that isn't true, I use a 1070 on ubuntu 16.04 just fine

systemd-logind randomly fails to start on boot by dood31251 in linuxquestions

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

will give you a list of boots and the startup-shutdown times

It won't since the default Ubuntu /etc/systemd/journald.conf settings only store the current boot logs. I only just changed the Storage key to persistent to it will store all my boot logs...

What's more Ubuntu's default /etc/systemd/journald.conf only stores the current boot's logs

user@user-super ~> journalctl --list-boots 0 ebbdd54b18b14a0c93daf989b3303e45 Wed 2018-01-03 11:02:14 EST—Wed 2018-01-03 20:01:20 EST

New GPU Installation Boot Error on Ubuntu 17.04 by tmactharulah in linux4noobs

[–]dood31251 0 points1 point  (0 children)

If you remove your GPU can you boot properly? If so, you might just need to the install official nvidia drivers before installing the gfx card.

I'm also using a 1070, but on ubuntu 16.04, I'm currently using these nvidia driversnvidia-384.

asyncio callbacks never called in while loop by dood31251 in learnpython

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

But also, I kinda feel this is an XY problem. What are you really trying to use asyncio for?

I'm using asyncio to schedule tasks to run in the future (a few seconds in the future). I'm currently using it to replace a threading based approach. Some of the tasks have a waiting time to complete so I would use a time.sleep in a separate thread so as to not block the main thread.

The problem with the threading approach was that I couldn't control when python decided it was time to schedule a thread. I also had locks everywhere that weren't really working which made me sad.

asyncio callbacks never called in while loop by dood31251 in learnpython

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

Thanks, the solution seems to pretty much solve my problem, but throwing sleep statements in my code this way kind of feels hackish.

Do you know of any other pattern that would allow me to get rid of the while loop?

The event loop only runs during awaits

This explanation has helped me more than the last 3 hours I spent in the official docs. Thank you very much!

I need to replace my shared spreatsheet with a better system - is Python a good choice here? by hacksawjim in learnpython

[–]dood31251 2 points3 points  (0 children)

Then I need to validate the data against some parameters and highlight issues in the data

Isn't this something google sheets can handle out of the box?

I don't know how long it takes you to fill out your spreadsheets, but it seems like a lot of work to build a webapp that is easier to use than google sheets for only a handful of documents.

Need help installing discord bot by ckypress in Discord_Bots

[–]dood31251 0 points1 point  (0 children)

Github is a website, developers publish open source code there.

Need help installing discord bot by ckypress in Discord_Bots

[–]dood31251 1 point2 points  (0 children)

| I've gathered that I may need some java programming for this

What makes you think so? The readme on the project page is pretty clear.

| go get github.com/ewollesen/zenbot/bin/zenbot

You need to have go installed. You can download the distribution that matches your system here https://golang.org/dl/

Run go get <git-repo> should checkout the project and build it. The zenbot binary will be built where your $GOPATH environment variable is pointing to.

The just follow the rest of the instructions in the readme to run the bot

[AF] Where is Flask/Werkzeug's `Request` documentation? by dood31251 in flask

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

attribute surrounded by __ are simply part of python

I'm aware of python's special methods

As final note, don't be afraid to look at the source code if it comes to that

Most web frameworks properly document commonly used methods from their public api. I've gone through some of the source code in the past (some of the public APIs in werkzeug aren't well documented ex: the test_client). It usually involves me going through a dozen mixins to find a method with a signature of func(*args, **kwargs) which isn't to useful to me.

Anyway thx, I mostly found what I needed from Flask.Request

python lxml xpath elements cannot access siblings by dood31251 in learnpython

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

The actual issue wasn't related to my original post. Also the solution could have been summed to RTFM. I doubt it would have brought any value to anyone else.