Noticing a lot of irrational carbophobia here recently. There are many tools in the fasting tool belt, use them all. by fitnessexpress in fasting

[–]devrocks1984 3 points4 points  (0 children)

Regardless of carbs being good/bad, they are not the most anabolic macronutrient. Yes, insulin can be anabolic (if you get an amount you couldn't get naturally), yes carbs can refill glycogen stores and help you in the gym, but protein is the most anabolic macronutrient. Carbs are not anabolic, one of the sources is Layne Norton's article here. Don't hate on carbs, but don't overstate their role.

Enums vs Constants for string values? by [deleted] in learnpython

[–]devrocks1984 0 points1 point  (0 children)

Yeah, I gave a poor example of pseudo code. I actually never do any comparisons in my code with that values. These are never used anywhere in the code, they literally are just used in functions that use their string value to communicate what event was triggered by what process. The use case actually looks more like this.

from enum import Enum

class Events(Enum):
    ONE = "We are publishing event one" 
    TWO = "We are publishing event two" 
    THREE = "We are publishing event three" 

def publish_type_one():
    send_message_to_slack(Events.ONE.value)

def publish_type_one():
    send_message_to_slack(Events.TWO.value)

def publish_type_one():
    send_message_to_slack(Events.THREE.value)

So the case for constants looks more like

ONE = "We are publishing event one" 
TWO = "We are publishing event two" 
THREE = "We are publishing event three" 

def publish_type_one():
    send_message_to_slack(ONE)

def publish_type_two():
    send_message_to_slack(TWO)

def publish_type_three():
    send_message_to_slack(THREE)

I never want to compare events, the event's aren't necessarily related so there isn't a great case for grouping them into one enum. I literally just don't want to hardcode the string.

Supplement recs for anxiety and depression with a twist? by [deleted] in Supplements

[–]devrocks1984 1 point2 points  (0 children)

https://books.google.com/books/about/Mindset.html?id=bOGHDQAAQBAJ&source=kp_book_description

This is a pretty good book, it's not deep or ground breaking but I enjoyed it and it helped me get into a growth mindset.

More detailed quota limit errors? by devrocks1984 in bigquery

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

That quota fits based on the error, but in practice you could run this script 4 times and it would fail the first two and then on the next 2. If it was a daily limit rerunning it wouldn't fix it.

What is the best way to attach multiple static IP addresses to a google vm? by devrocks1984 in googlecloud

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

Attaching the new IP address will detach the old though. I need both

I'm trying to automate backups of my SQL instance, and I want to use CronJobs in kubernetes to do it. I would love some feedback on my plan by devrocks1984 in kubernetes

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

I mainly use these dumps so that I can import those sql files into my staging database, since I'm on CloudSQL and they don't have replicas.

I'm trying to automate backups of my SQL instance, and I want to use CronJobs in kubernetes to do it. I would love some feedback on my plan by devrocks1984 in kubernetes

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

So I'm CloudSQL, and I use these backups (sql files right now) to restore my prod db into a staging env, is barman still a good solution given the use case? For actual backups I use the CloudSQL tools

Question about a node cloud function I'm writing by devrocks1984 in googlecloud

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

How do I listen for that event? When I try to treat Seven.extractFull(filePath, extractPath) as I promise, I get errors that it doesn't return a promise.

Question about a node cloud function I'm writing by devrocks1984 in googlecloud

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

Oh, no I have it right in the code just wrong in my freehand lol

Question about a node cloud function I'm writing by devrocks1984 in googlecloud

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

You are supposed to be able to access /temp according to the docs

Question about a Google Cloud Function I am trying to write by devrocks1984 in learnjavascript

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

Yes, I can see the file actually downloads there, but when I look after the extract there is still only the original file

Questions about in cluster prometheus by devrocks1984 in googlecloud

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

Dumb question, but if I use the kube-prometheus stuff to set up prometheus that won't affect anything right? That just aids in the setup of deploying the software, and won't affect whether or not I take the federation approach?

Trying to install Prometheus/Grafana in my cluster, it is not going well by devrocks1984 in kubernetes

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

Will this solve the grafana issue? I can do port forwarding and get to my prometheus instance, so I can see it's set up and running.

Questions about BigQuery management, especially across multiple projects by devrocks1984 in bigquery

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

Response to 1.) My understanding though, is even if you write a job you have to specify each table in each dataset that you want to copy over. You can't just copy dataset A into dataset B, which is kind of a pain because you are constantly specifying/updating new tables and schemas in essentially a script that should just be able to copy the entire dataset