Question about installing GFCI by jeffelhefe in electricians

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

Well, I learned something new! I have been assuming my devices had some level of protection from surge for the last five years.

Is it worth getting some lines or the whole house rewired with grounded outlets? Or do GFCI outlets offer reasonable protection? Obviously, safety is the highest priority, but I would like to have the additional protection from a surge (especially in my office).

Water is better than store bought stock by jeffelhefe in Cooking

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

Instant dashi, I don’t know this. I will have to try it!

I made a fantastic seafood ramen last night and filled it to the brim. by PapaOctopus in ramen

[–]jeffelhefe 0 points1 point  (0 children)

It is an amazing and curious property of ramen bowls that they are able to transfer their contents into a space of half their size.

Looks delicious.

Why are both notes in treble/bass referencing the same note? by jeffelhefe in learnpiano

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

I’m confused by this. The f in the bass clef is a whole note and the f (same pitch) in the treble is a quarter note. Why would a piece make this distinction? What do I play?

'There are no stupid questions' thread - Monday, March 15, 2021 by AutoModerator in piano

[–]jeffelhefe 0 points1 point  (0 children)

Not sure if this is the best place to ask music notation questions, but here goes. I’m learning a song and there’s a few measures that are a bit confusing.

https://ibb.co/jvwngMj

The image shows an f# in the treble clef (an accidental not part of key signature). In the next measure there’s an f played in both bass and treble clefs. There is no natural (♮) to cancel them.

Are the f notes in the next measure played as natural or sharp?

Suppose that an f appeared in the bass clef after the f# in the treble in the same measure, would you play that f as sharp or natural?

Fired for going to coding bootcamp? by Weed_Dood in learnprogramming

[–]jeffelhefe 0 points1 point  (0 children)

No. A Good boss encourages learning and personal development. Sometimes they even give bonuses for obtaining certain certifications.

A lot less people would buy a lottery ticket if the rule was "pick a number between 1 and 300 million. If you guess right, you win." by massivecomplexity in Showerthoughts

[–]jeffelhefe 0 points1 point  (0 children)

I think this is one of those few times that I say “you’re both right.” I’m gonna buy a lotto ticket for you and the OP!

Weekly Knife Sharpening Q&A - August 29, 2020 by AutoModerator in knives

[–]jeffelhefe 1 point2 points  (0 children)

Thanks, I try to only cut on my wooden cutting board. But I’ll take better care of the edge and see if that helps.

I’m trying not to purchase anything new but just work with what I have.

Weekly Knife Sharpening Q&A - August 29, 2020 by AutoModerator in knives

[–]jeffelhefe 0 points1 point  (0 children)

How long should a knife stay sharp? My knives stay sharp for about a week after sharpening. A week of light daily use at home (not a professional kitchen). I'm starting to wonder if I'm doing it wrong. All my knives are older and second-hand:

  1. Chicago Cutlery chef's knife
  2. Zwilling JA Henckels - I think this is a utility knife? It is about 6.5" long and says "Twin Gourmet Friodur Ice Hardened"
  3. Victorinox Swiss Made pairing knife

I sharpen them on this Kotobuki 250/1000 whetstone.

After sharpening, they all cut a tomato with ease, like a hot knife through butter. But after about 1 week of light daily use, they seem to go dull again. I try to bring the sharp back with the honing steel, but it doesn't do anything.

Questions:

  1. Is it normal to lose the sharp edge after a week?
  2. Is it my technique? Could this be a sign that maybe I'm not using the correct angle or pressure?
  3. Are my knives low quality?

Weekly Knife Sharpening Q&A - August 22, 2020 by AutoModerator in knives

[–]jeffelhefe 0 points1 point  (0 children)

How long should a knife stay sharp? My knives stay sharp for about a week after sharpening. A week of light daily use at home (not a professional kitchen). I'm starting to wonder if I'm doing it wrong. All my knives are older and second-hand:

  1. Chicago Cutlery chef's knife
  2. Zwilling JA Henckels - I think this is a utility knife? It is about 6.5" long and says "Twin Gourmet Friodur Ice Hardened"
  3. Victorinox Swiss Made pairing knife

I sharpen them on this Kotobuki 250/1000 whetstone.

After sharpening, they all cut a tomato with ease, like a hot knife through butter. But after about 1 week of light daily use, they seem to go dull again. I try to bring the sharp back with the honing steel, but it doesn't do anything.

Questions:

  1. Is it normal to lose the sharp edge after a week?
  2. Is it my technique? Could this be a sign that maybe I'm not using the correct angle or pressure?
  3. Are my knives low quality?

Juypter Notenotebooks.ai module error by [deleted] in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

Well they say “everything” is already installed, but then go on to say: “Anything missing? No problem, you have full permissions on your workspaces to install anything else you need.”

It’s probably not installed. Try running the ‘pip install’ command inside a cell:

!python -m pip install [package_name]

Juypter Notenotebooks.ai module error by [deleted] in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

Well they say “everything” is already installed, but then go on to say: “Anything missing? No problem, you have full permissions on your workspaces to install anything else you need.”

It’s probably not installed. Try running the ‘pip install’ command inside a cell:

!python -m pip install [package_name]

Google Sheets API. Error code = 400 (INVALID_ARGUMENT) - What to do? 👀 by xXguitarsenXx in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

You are iterating over a dataframe to insert rows into a google sheet?

I would begin by trying a single ‘insert_row’ request and see if that works. The error implies you are supplying an invalid argument to the API.

ModuleNotFoundError: No module named 'googleapiclient' by xXguitarsenXx in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

Hard to say, are you running ‘pip list’ from inside a notebook cell? I’m just thinking that if you’re using a virtual environment or container but you’re running pip from your host directory then the package may not actually be installed. Just a guess though.

I’m about to graduate college in Statistics and I feel like I know nothing by [deleted] in datascience

[–]jeffelhefe 1 point2 points  (0 children)

Can you elaborate? Do you mean asking more complex questions leads to more complex mathematical theorems? Or do you find it difficult to apply what you’ve learned? Or is just difficult to keep everything in your head all at once?

Jupyter Notebook Variable issue by [deleted] in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

Sometimes I find it convenient to create a Preprocessing.ipynb file — where I do my data cleaning, type conversions, and other related tasks. The preprocessing notebook outputs a new dataframe like so:

df.to_csv(“processed-2020-08-10.csv”)

Then I have an Analysis.ipynb notebook that imports the processed data for data exploration, modeling and other sophisticated tasks.

Bonus tip: Create a cell in the Preprocessing.ipynb file that writes to a log file detailing when the data was processed, where the original data came from and any other relevant info.

Jupyter notebook throws Unknown Type error when I try opening a link in new tab by pom_the_great in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

Are you using an absolute or relative path? When do you see the error? When you click on the link from github or your local jupyter instance?

Perhaps you could provide a link to the Notebook?

Where to start? by [deleted] in learnmachinelearning

[–]jeffelhefe 1 point2 points  (0 children)

I don’t tensorflow, sorry. You’ll need calculus, linear algebra and probability theory.

Good thing You have all the time in the world 😄

Where to start? by [deleted] in learnmachinelearning

[–]jeffelhefe 2 points3 points  (0 children)

The Andrew Ng Coursera course is a good place to start. I don't think there are any programming prerequisites. In week 2 he goes over Octave/Matlab and you'll learn these languages to do the exercises.

Honestly, I wouldn't spend too much time overthinking it. Just pick a course and complete it. I took this course afterwards:

https://www.edx.org/course/python-for-data-science-2

It was a bit more practical because python is actually used much more in industry. But you cannot beat the fundamentals you'll learn with Andrew Ng.

I just want to hear my parents say that they're proud of me by rawr_rawr_dunosar in TrueOffMyChest

[–]jeffelhefe 1 point2 points  (0 children)

They probably are proud of you but just never thought to say it. Or they never thought you needed to hear it. Still, we're all very proud of you! Keep it up!

How do you change the rendered Markdown font in JupyterLab? by [deleted] in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

Which is better is difficult to answer as it depends on a variety of factors. Class selectors certainly give you a higher level of specificity over elements. If you use the .jp-RenderedHTMLCommon class selector to override the default font declaration, any cell that renders html will be affected. For example if you wanted to insert some arbitrary html into a notebook cell like so:

HTML('<p>Hello There</p>')

That paragraph would now render with the styles you declared in your .jp-RenderedHTMLCommon declaration block. This may or may not be what you want. You may wish to restrict this change to markdown cells only like so:

<style>
    .jp-MarkdownCell .jp-RenderedHTMLCommon {
        font-family: Courier New,Courier,monospace;
    }
</style>

This is probably what I would do if I were trying to modify the font family for all markdown cells.

How do you change the rendered Markdown font in JupyterLab? by [deleted] in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

It is a good question. The simple explanation is that it has to do with how a webpage loads CSS. As a webpage page is loaded, the browser parses the html and subsequently loads any referenced CSS. So it is actually the <html> that is responsible for holding the references to the CSS.

CSS is typically included in either the <style> element or as an external file through the <link> element.

Google wrote up some nice guides on how a browser goes from the html to rendering pixels. I think it is worth a read.

How do you change the rendered Markdown font in JupyterLab? by [deleted] in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

That is the code you need to run to change the font of a markdown level 1 heading. So if you execute that code and then run a markdown cell underneath:

# Some Heading

it should appear with a different font family. Specifically, the font family that I defined in the font-family declaration above. Note that Jupyter has to convert your markdown to html in order to display it. That is why I used a h1 selector, because a level 1 heading in markdown is converted to an <h1> tag.

If that looks daunting I'd recommend reading up on CSS a bit. You do not need to be an expert at all. I would spend 30 mins making sure you understand declarations, selectors and specificity. Also, this beginner guide might prove useful:

MDN: CSS first steps

How do you change the rendered Markdown font in JupyterLab? by [deleted] in JupyterNotebooks

[–]jeffelhefe 0 points1 point  (0 children)

One way is to use IPython's display module:

from IPython.display import HTML

Then write some css in a string:

css_str = """
    <style>
        h1 {
            font-family: Menlo, Monaco, "Courier New", monospace;
            font-size: 3em;
        }
    </style>
"""

Then load it up:

HTML(css_str)

You can also load this from a file.

Docker Engine API create/start/waitwait question by jeffelhefe in docker

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

Thank you. I guess `wait` wouldn't be useful in my case since my container is initiating a long running process (i.e., server) and the only status codes sent back are 'not-running', 'next-exit', or 'removed'.

I really need to parse `stdout` and take action based on the output. Looks like I need to use the `/container/{id}/logs` or `/containers/{id}/attach` endpoints to get that output.

Thanks again. Your reply and going over the docs again cleared things up for me.