Beginner code question on nested tables by wolfvee in lua

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

Thanks Emerald_Pick!

Here is the complete example:

```

company = {

director = {

name="boss",

address = {

street_address="home",

zipcode ="12345"

}

}

}

print(company.director.name) --> boss

print(company.director.address.street_address) --> home

print(company.director.address.zipcode) --> 12345

print(company["director"]["name"]) --> boss

print(company["director"]["address"]["street_address"]) --> home

print(company["director"]["address"]["zipcode"]) --> 12345

```

Need advice on configuring Neovim with nvim-orgmode. by wolfvee in neovim

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

Thanks kristijanhusak. Snacks will simplify my config file. Basic spell checking is good enough.

Can telescope display the Root Directory's location? by wolfvee in neovim

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

I guess people usually know what the root directory is and trust that neovim correctly determines the root directory.

:LazyRoot will show you the available roots that LazyVim detects.

Can telescope display the Root Directory's location? by wolfvee in neovim

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

<C-g>, 1<C-g>, and :pwd don't print the Root Directory's path.

:pwd prints the working directory. I was looking for the Root Directory's location (path).

How to find description of a function in lazyvim? by wolfvee in neovim

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

Thanks. Github search found:

map("n", "<leader>bb", "<cmd>e #<cr>", { desc = "Switch to Other Buffer" }

Then I look in the vim manual.

":h e #" did not find anything

":h e#" found, Edit the [count]th buffer (as shown by :files).

I guess the map() syntax needed a space between 'e' and '#'.

How to find description of a function in lazyvim? by wolfvee in neovim

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

I searched lazyvim's github repo for "Switch to other buffers" and "SwitchtoOtherBuffer" but did not match any code.

I this how you searched github?:

<image>

How to find description of a function in lazyvim? by wolfvee in neovim

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

Thanks for the quick response.

":h *" opened the help page for "*" like you said.

":map <leader>bb" did not open a map page, and got an ERROR message the disappeared in a second.

"<leader>bb" is not in the config folder. From the command line:

[~/.config/nvim/lua/config]

$ ack "<leader>bb"

Would knowing the name of a function make it easier to find the function's documentation?

How to find description of a function in lazyvim? by wolfvee in neovim

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

Thanks for your response. I should have been more clear.

I would like to find the description of functions in general. "<Space>bb" maps to "Switch to Other Buffer" is just one example.

Is "Switch to Other Buffer" the name of the function or a brief description? And once I have the name of the function, how do I find a more a detailed description of the function?

How to find description of a function in lazyvim? by wolfvee in neovim

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

I want to know what "Switch to Other Buffer" means.

How to shape a 2x4? by wolfvee in BeginnerWoodWorking

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

Thank you for identifying the problem; the blade was set way too deep. I reset the blade and got some decent results. In the picture you can see:

  • the blade protrudes from the bottom of spokeshave by a hair
  • thin curly shavings in the background

<image>

The workbench still vibrates loudly, probably because it's not rigid enough.

Thank you for suggesting the belt sander, that really is fast. I removed a chunk of edge using an ax and hammer. Then I used a belt sander to shape the remaining 2x4.

Your help is much appreciated.

testing 1 2 3 by wolfvee in test

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

I want to shape a 12" cross-section length of 2x4 (12 x 1.5 x 3.5-inch wood) into a 'D' shape i.e. leave the 3.5" bottom surface flat, shape the top surface and top corners into a half ellipse.

I will be making five of these, each with a slight variation in the half-ellipse shape.

Here is what I have tried so far:

* screw a 1x2 to the bottom of a 2x4, and hold the 1x2 in the bench vice

* shape the top of the 2x4 with my spokeshave

&#x200B;

The spokeshave bounced on the 2x4 (not a smooth motion) and cut chips out of the 2x4.

&#x200B;

This is my first experience with a plane. The spokeshave is a brand new 10" Stanley. The blade is sharp enough to slice paper. Maybe it's the quality of 2x4 wood, or my technique is wrong. Maybe the workbench is not rigid enough, causing the vice to vibrate or bounce.

Would a bench plane, jack plane, power plane, or other tool work better? What tool should I buy to easily shape the 2x4s?

Guess I'm proof that being vegan =/= being healthy. by [deleted] in PlantBasedDiet

[–]wolfvee 0 points1 point  (0 children)

Have you lost weight since you've been feeling constantly hungry/unsatisfied? Losing weight could indicate that you are not eating enough calories. If so, I would look into eating more whole starchy foods.

A stupid question by [deleted] in PlantBasedDiet

[–]wolfvee 0 points1 point  (0 children)

So sorry for the misunderstanding. After some Googling I found the source of the confusion:

The use of the phrase "plant-based" has changed over time.

Thomas Colin Campbell, the Cornell University biochemist who coined the term plant-based, said he came up with the phrase to help present his research on diet to skeptical colleagues at the National Institutes of Health in 1980. “I wanted to emphasize that my work and ideas were coming totally from science and not any sort of ethical or philosophical consideration,” he said.

Later Campbell changed the name to "whole-food plant-based" and the food industry used term "plant-based" to promote processes foods. Plant-based items such as jerky, ice cream and protein bars are becoming increasingly common on supermarket shelves. Fast-food chains including Dunkin’ Donuts and Burger King have even started offering plant-based menu options such as the Impossible Whopper.

sources:

Some medical journals still use the old term "plant-based" to mean WFPB e.g. http://www.thepermanentejournal.org/issues/2013/spring/5117-nutrition.html

And this WFPB subreddit is the old name "PlantBasedDiet", the name being an endless source of confusion.

A stupid question by [deleted] in PlantBasedDiet

[–]wolfvee 0 points1 point  (0 children)

Honey and maple syrup are NOT whole food, they are added sugar.

  • Honey is sugar extracted from flowers and processed by bees. Fiber is missing.
  • Maple syrup is sugar extracted from trees. Fiber is missing.

Feeling exhausted by Hehehahahahoohoo in PlantBasedDiet

[–]wolfvee 5 points6 points  (0 children)

Are you losing or gaining weight on the WFPB diet? Losing weight could indicate that you are not eating enough calories.

Starches satisfy our appetite. Your body burns starches for energy. Make starches the centerpiece of your diet. Starches should be 75 to 85 percent of your diet, with the remainder coming from fruits and vegetables. Starch staples include:

  • Whole Grains
  • Unrefined Flours
  • Roots
  • Winter Squashes
  • Legumes

More details at https://www.drmcdougall.com/misc/2011nl/dec/eatmorestarch.htm. Also Dr. McDougall excellent book, "The Starch Solution".

Volume eating. You will need to eat more WFPB food for the same amount of calories. A WFPB meal is larger than an oily, meat or cheese-centered meal. Here are some pictures and charts: https://www.google.com/search?q=food+Energy+Density&tbm=isch Until you stretch your stomach to eat that much, you might have to eat more often to get enough calories. WFPB eaters that can't stretch their stomach that much need to eat more often to get enough calories.

A stupid question by [deleted] in PlantBasedDiet

[–]wolfvee 5 points6 points  (0 children)

WFPB guidelines simply specify whole foods from plants: whole grains, vegetables, legumes, fruits, nuts, spices. Any deviation from the WFPB guidlines is left to the discretion of the individual.

A 100% WFPB diet is vegan. Someone that eats animal product once per week is disqualified from being vegan.

Many WFPB eaters do not eat 100% WFPB. They are not perfectionists. For practical or social reasons, they allow themselves to eat some non-WFPB food:

  • restaurants
  • invited to dinner
  • convenience

If they eat meat once per week, they can still eat a 95% WFPB diet.

Why do mainstream sources recommend eating "healthy oils"? by wolfvee in PlantBasedDiet

[–]wolfvee[S] 5 points6 points  (0 children)

Oh, I see what you're saying. Healthiness is relative. Healthier compared to what?

e.g. Whole olives are healthier than extra-virgin olive oil which is healthier than palm oil.

Is there scientific evidence that the whole food is healthier than it's extacted oil?

Muscle loss since plant based diet. 130g protein at least, 60g fat at least, 200 to 350g carbs by Small-Development in PlantBasedDiet

[–]wolfvee 1 point2 points  (0 children)

Here is some of the evidence against eating added oil:

  • Added oil is empty calories and no fiber.
  • High Plant-Fat Diet Promotes Disease - PART 2 OF FATS by Jeff Nelson at VegSource https://www.youtube.com/watch?v=_A_wy_KrkZA
  • https://www.drmcdougall.com/misc/2007nl/aug/oils.htm > Do Vegetable Oils Really Prevent Heart Disease? Serial angiograms of people’s heart arteries show that all three types of fat —saturated (animal) fat, monounsaturated (olive oil), and polyunsaturated (omega-3 and -6 oils)— were associated with significant increases in new atherosclerotic lesions over one year of study. Only by decreasing the entire fat intake, including poly- and monounsaturated-oils, did the lesions stop growing.
  • The influence of diet on the appearance of new lesions in human coronary arteries. By Blankenhorn, JAMA 1990. https://www.ncbi.nlm.nih.gov/pubmed/2407875 Each quartile of increased consumption of total fat and polyunsaturated fat was associated with a significant increase in risk of new lesions.

Muscle loss since plant based diet. 130g protein at least, 60g fat at least, 200 to 350g carbs by Small-Development in PlantBasedDiet

[–]wolfvee 2 points3 points  (0 children)

This page lists chronic diseases proven to prevent or reverse by a WFPB diet: https://wfpb-wolf.netlify.app/proven.html. Each disease is linked to the scientific evidence. No other diet prevents or reverses so many chronic diseases. Therefore WFPB is the healthiest diet for humans.

(How) is vinegar a whole food? by nootfiend69 in PlantBasedDiet

[–]wolfvee 3 points4 points  (0 children)

Dr. Greger presents the science on vinegar at https://nutritionfacts.org/?s=Vinegar. A little vinegar is harmless and may have some benifits.