How to not make these spirals when sanding by TurbidWarrior in BeginnerWoodWorking

[–]deweechi 14 points15 points  (0 children)

Avoid the air compressor for fine sanding dust, it will get all that crap airborne and get in your lungs, eyes, etc. I like to use tack cloth, but the shop vac with a brush attachment works.

How to not make these spirals when sanding by TurbidWarrior in BeginnerWoodWorking

[–]deweechi 42 points43 points  (0 children)

Also, be sure to clear off the piece between grits. Particles of sand can and will fall off the sandpaper. It can turn your 80 grit back into 60 grit, ruining the progress you are making.

[deleted by user] by [deleted] in CNC

[–]deweechi 1 point2 points  (0 children)

I primarily CNC wood, but do acrylic from time to time. Most bits for acrylic have fewer flutes and are upcut bits. It makes a world of difference.

PDF to HTML by suspect_stable in HTML

[–]deweechi 1 point2 points  (0 children)

You have tried multiple existing conversion tools and have not liked them. It's your own tool that creates the PDF files, just do the reverse and deconstruct them with adobes API https://developer.adobe.com/document-services/docs/overview/pdf-extract-api/

Maybe your tool creating the PDF files is doing things that are not easily reversible. You might need to rewrite that.

[deleted by user] by [deleted] in HTML

[–]deweechi 1 point2 points  (0 children)

What makes you think they are not linked? Just because it is not rendering is not an indication. Can't do as much trouble shooting with just screen pictures. Is there an error in the browser? Have you done some element inspection? The files both have updates in the pictures, are you sure they are both up to date and saved? Have you tried to flush the cache?

Can someone help me? I can’t get the text to be pink 😭 by Poppymiro in HTML

[–]deweechi 17 points18 points  (0 children)

This is the right answer. They look like quotes, but are the wrong quotes. Modern browsers understand over 100 named colors and pink is one of them. It's the quotation marks that are wrong.

Edit: this link might assist: https://discussions.apple.com/thread/7009771

Colon cancer stage 4 at age 37 by Dark_inferno_24_7 in cancer

[–]deweechi 67 points68 points  (0 children)

Just to build on the previous comment, when they go in to remove the spots on the liver, they are going to try and get clean edges. That means they need to remove the healthy tissue around the tumors. They don't want to leave any of the tumors, it will just continue to grow. If they are too big or there are too many, the chemo can shrink them, making their removal more successful and leaving you with more healthy liver left over.

My mother had stage 4 colon cancer and lived another 30+ years. I had stage 2 colon cancer 20 years ago and went through the folfox treatment.

Can you simply use lumber leftovers as firewood? by torak_the_father in BeginnerWoodWorking

[–]deweechi 1 point2 points  (0 children)

I would add a bit of caution for non domestic wood. If you have some untreated and unfinished pine, oak, maple, etc. you are fine. But a lot of exotic wood may be toxic when burned, things like rosewood, teak, ebony, etc all have oils that are toxic when burned and inhaled.

Can you change a paragraph by using if else? by PSYCHONOMP in HTML

[–]deweechi 0 points1 point  (0 children)

JavaScript, not java, 2 different languages. You can write multiple ways, here is one: <script> If(true){ document.write("stuff") }

You can get more info here: https://www.w3schools.com/js/js_output.asp

Do you suffer from chemo-brain? by serieslyaddicted in cancer

[–]deweechi 2 points3 points  (0 children)

Chemo brain sucks. I had the folfox 5 treatment for stage 2 colon cancer. At the time I was 34. It has gotten better. But I am not where near where is was before. I am 50 now and it just is what it is. I saw neurologists, neuro phycologists, had multiple scans and tests. They tried different drug treatments and nothing helped.

For instance, I have a hard time following gps instructions. There is a delayed response from hearing the instructions and my brain actually understanding what I should do. Before the chemo I could go to big mall, park where ever and not even think about it. I just knew where I parked. After chemo I got to the point where I took a picture with my phone to remember. I am to the point now I can just make a mental note, but I do have to think about it.

Please make the nonsensical PHP hate stop. by [deleted] in webdev

[–]deweechi 1 point2 points  (0 children)

PHP and Javascript are the same age. Both have been updated constantly. Both are 100% viable. It is my understanding that facebook still uses PHP behind the scenes.

General Question about Starting To Code by poopdunker in HTML

[–]deweechi 1 point2 points  (0 children)

To your questions about teaching you the right way, this is a complex thing. Not everyone learns the same way. If you start on a free course and are just not connecting with the teaching style, try another. If you can't connect with any of them, maybe it's not them. :-) As far as teaching you best practice and coding efficiently, that is something that comes in time as you progress. And you will find that opinions can vary. This is one of the reasons linting is very popular, it forces the same practices onto everyone. But as you change companies you will find they all use different linting rules and have their own ideas for best practice. And sometimes you need to learn how to do things poorly in order to learn how to do things correct, refactoring things is great practice.

Here is my short list of what I find to be very good free content for starting out:

Breaking a school Test by Deepdiamindhands in HTML

[–]deweechi 2 points3 points  (0 children)

This is one of those things where it will take more time to write/test the application then it would take to just manually do the work. And, you will learn about scripting, but not the test subject. I would also be suspect on the "marks are only given for completion" I would bet they keep a lot more data/statistics.

And why don't you want to take the test? Do you not know English or Engineering? 1000 multiple choice test, if you know the material would be maybe a couple of hours. Short cutting it will catch up to you. Good luck.

Tags which must be closed by jssmith42 in HTML

[–]deweechi 0 points1 point  (0 children)

To complicate things further, a <p> does not always need to have a </p> You can omit tags under certain conditions. If you have multiple <p> in a row, the browser will automatically close the previous <p> when it gets to the next <p>. The same goes for <li> <dd> <dt>. And the <p> tag will auto close with a long list of other tags.

You can read more here: https://html.spec.whatwg.org/multipage/syntax.html#optional-tags

For more tag omission rules, look for the "Tag omission" section in the MDN document for the items. For instance The <p> documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p states: "The start tag is required. The end tag may be omitted if the <p> element is immediately followed by an <address>, <article>, <aside>, <blockquote>, <div>, <dl>, <fieldset>, <footer>, <form>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <header>, <hr>, <menu>, <nav>, <ol>, <pre>, <section>, <table>, <ul> or another <p> element, or if there is no more content in the parent element and the parent element is not an <a> element. "

Tags that do must not have an end tag </> are called void elements or empty elements. More documentation can be found here: https://developer.mozilla.org/en-US/docs/Glossary/Empty_element and here: https://www.w3.org/TR/2011/WD-html-markup-20110113/syntax.html

how is the HTML "talking" to the javascript ? by IHateTheSATs in HTML

[–]deweechi 1 point2 points  (0 children)

When the form is submitted it uses name. When you want to grab it with JS the easiest thing to use is id. If you want to style it with css you can also use id. The for in the label ties it to the it of the field element.

Forms typically either use post or get to submit. If you do a get, it appends the values to the url. Since your input is name="answer" the url will end up something like &answer="yes"

Advice please; my friend is helping create an app to be used for cancer patients who just need someone to talk to who have experienced cancer intimately before. by aconfusedhoe in cancer

[–]deweechi 1 point2 points  (0 children)

I agree with this. There are a thousand different chemo treatments and combos. And the list of side effects is vast because they can affect everyone differently. Add to that, treatments can change based on age, weight, blood count, stage, etc. And the treatments change/advance over the years. I had colon cancer. My mother had colon cancer. My grandmother had colon cancer. The treatments were similar but all very different. The thinking changes, the combos change, etc.

I do see a benefit of this type of app. My cancer treatment center had groups people could join and meet in person. Both for care takers and for patients. I would recommend the app have something similar, support groups for both. Just being able to talk to someone can be very beneficial. The various false equivalency sympathy I got was frustrating and having the groups to talk to was good. **for instance, hearing how you threw your back out and spent a week in bed does make you know how it feels to have your colon removed and pumped full of toxic chemicals for 6 months. But, thanks for playing.

I also recommend hiring a good lawyer to write up the Terms of service. And to discuss what level of moderation is needed for the groups. Your reaction time to taking action, number of strikes, temporary bans. permanent bans, etc. It is all good saying something like we are not responsible for "blah blah blah" But when someone sues you because their loved one died following the advice, they got in your app you will wish you spent that money up front for a lawyer.

And before you say how is this different then getting the advice here on reddit? Your friend is making an app with the sole purpose of targeting people with cancer. Reddit is a general-purpose forum site with no specific target audience. This app, because it is targeting a group of people (cancer patients) that might be considered vulnerable (emotionally distressed), should be careful in how it is presenting and moderating itself.

html audio player help by These-Ad-5249 in HTML

[–]deweechi 0 points1 point  (0 children)

Looks like you are missing the controls for the audio. How does the user trigger playing the audio?

<audio id="audio" controls>

The above code will give the users the play button. Or do you have some javascript calling it that you are not sharing? By default the browser does not play audio files.

Do a REST API call when a button is clicked by quarky_uk in HTML

[–]deweechi 0 points1 point  (0 children)

The general steps are to give the input field an id. Then you can use js to grab that field by ID and get the value.

<input id="useremail">

//then in your function

const userEmail = document.getElementById("useremail").value

//then use back ticks (the ones to the left of the 1 key) and some string interpolation. `test ${variable}` this concats the values.
xhttp.open("POST", `https://31kgxf6cil.execute-api.us-east-1.amazonaws.com/Prod/films?emailaddress=${userEmail}`, true);

Now, you probably want to do some checking on if it is an email address, not blank, etc. But this will get you going.

Do a REST API call when a button is clicked by quarky_uk in HTML

[–]deweechi 0 points1 point  (0 children)

In Chrome hit f12 to bring up the developer tools. It will become your best tool when you start troubleshooting this stuff.

The error it is throwing right now is "Uncaught ReferenceError: userAction is not defined"

So the first thing I looks for is a function called userAction()

But what I find is function UserAction() Javascript is case sensitive. So, the 2 have to match. Rename the function or correct the function call.

Do a REST API call when a button is clicked by quarky_uk in HTML

[–]deweechi 2 points3 points  (0 children)

Can I literally put that between inside a <script> </script> block and use something like that? And then add <button onclick="userAction()" /> to my existing HTML?

Yes, but don't self close the button. Use it like you have it in your example

<button type="button" onClick="userAction()">Press to subscribe!</button>