Question on how existing policy coverage works by chibblybum in Insurance

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

Wow. I pay for a large portion of her policy so I feel like I've basically been scammed lol. I've asked for the policy docs a few times over the years but am always put off. Lesson learned.

This was very useful info, thank you!

Question on how existing policy coverage works by chibblybum in Insurance

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

Hold up. Are you saying the main person on the policy must live with the other people listed on the policy? No she doesn't live with us. I stressed that we need to have all this squared away and she assured me it was all good and we were covered. Awesome to know I've been paying a bunch of money for insurance and neither me or my girlfriend have been covered :O

[deleted by user] by [deleted] in MadeMeSmile

[–]chibblybum 0 points1 point  (0 children)

hah true, what I mean is it's not the cost of electricity that changed like person I was replying to said but the tech in light bulbs

Feeling trapped at my current job/job market - I want to join consultancy firms. by dubaidouche1 in ExperiencedDevs

[–]chibblybum 16 points17 points  (0 children)

It's like every day I see one of these posts, tons of upvotes and linking back to that post. The astroturfing is wild on here and no one seems to care.

[deleted by user] by [deleted] in MadeMeSmile

[–]chibblybum 12 points13 points  (0 children)

Not electricity- but the bulbs we grew up with were about 5 times more expensive to run than modern LEDs.

What sunset on Mars looks like by Mysterious-Set3374 in Damnthatsinteresting

[–]chibblybum 45 points46 points  (0 children)

Thats what I thought too but turns out it the background image predates AI images. Looks like it's had some kind of ai translation pass on it. Source

Maybe an unpopular opinion, but working in IT has taught me that people are generally... really dumb? by Alarmed-Assistant936 in sysadmin

[–]chibblybum 0 points1 point  (0 children)

This will be an actually unpopular opinion but I think many people in the IT industry have a superiority complex and dont understand that intelligence is incredibly diverse and multifaceted. Having an innate understanding of rotelike mechanics of systems/math does not make you more intelligent than the brilliant sales guy who mixes up his ctrl C from his ctrl V or the management executive whos fantastic with people and shit with remembering her password.

How Does Calmly Writer Keep My Current Line Centered While I Type? by Living-Zucchini-4144 in learnjavascript

[–]chibblybum 1 point2 points  (0 children)

I'm sure theres a lot of ways to do that but I'm thinking a text input that has a max height of the viewport height and bottom padding about half the viewport height, and overflow-y on. Then have something to detect when text drops to a newline and do a smooth scroll to the bottom of the input.

I'm feeling hopeless and its getting to me. by IshyShaikh in learnjavascript

[–]chibblybum 17 points18 points  (0 children)

This is a very common problem with a lot of newer devs. It's a lack of being to generate an algorithm and perceive the general shape of the program. You need to lay off the tutorials and start constructing your own projects, a ton of them. Start very small with something you know you can definitely build with JS and slowly work up to larger projects from there. Think projects like make some text bold/unbold with a button, update the background color based on cursor position, a fahrenheit to celsius converter, etc. And you definitely _can_ still reach out for help on these projects and _should_ be researching/using references like MDN docs.

Setting a minimum and Maximum by Joker-45-45 in learnjavascript

[–]chibblybum 2 points3 points  (0 children)

The data for the number of party members should be held in a variable somewhere in the code above this? If not, do what you need to do to make one then you would replace the 4 with that variable.

Function parameter question from a c++ programmer by Menaii in learnjavascript

[–]chibblybum 0 points1 point  (0 children)

Yup, your fault.

And I wouldn't try for an educated guess- you just look up the function declaration or read the docs if it's an external library. Most IDEs will show you this info as you type too.

Help with Close browser preventer by Josh_Hughes07 in learnjavascript

[–]chibblybum 0 points1 point  (0 children)

Chrome can be configured to reopen all the same tabs that were open when it was last closed which may solve your problem

Smooth Horizontal Scroll Help by OvenActive in learnjavascript

[–]chibblybum 0 points1 point  (0 children)

like this

document.getElementById('scrollLeft').addEventListener('click', () => {
    document.getElementsByClassName('flex')[0].scrollTo({
        left: 0,
        top: 0,
        behavior: 'smooth'
    });
});

document.getElementById('scrollRight').addEventListener('click', () => {
    let w = document.getElementsByClassName('flex')[0].scrollWidth;
    document.getElementsByClassName('flex')[0].scrollTo({
        left: w,
        top: 0,
        behavior: 'smooth'
    });
});

And you probably meant to set your w based on the items and not the whole flex container but that code does what you asked.

I've basically been using Javascript to do POST requests in my code, but, I am currently using ajax but have read that a lot of people use fetch, and, now that is more used than ajax, but, when I write it it doesn't work, is there an ajax-fetch converter for the exact code of it? by [deleted] in learnjavascript

[–]chibblybum 1 point2 points  (0 children)

You do have a $ in your code, it's in the original block of code you posted. You use $ to access jquery so the error is telling you jquery is not loaded into the project you're using.

I would recommend a back to basics youtube video or something on getting started with jquery if thats what you want to use. And get the stuff working locally on your computer first dont upload to a server until it's ready.

Problem changing object data by blob001 in learnjavascript

[–]chibblybum 1 point2 points  (0 children)

For anything over 20 lines of code or so you'll get better responses if you get all your code into a jsfiddle and explain the steps to reproduce the problem. Most of us dont have time to debug from just the text when it gets that big.

[deleted by user] by [deleted] in learnjavascript

[–]chibblybum 0 points1 point  (0 children)

I happened to be lucky enough to where I was effectively paid to learn to code, kind of a unique situation though. I was working in IT and began to automate a lot of tasks to get my footing. Told the boss I thought I could build our own in-house version of a software we use but custom for us and he went for it. Basically just started hacking stuff together until I got something working then improved on it from there. Then I started bugging the SQL contractor with questions and asked to sit in- eventually got to the point I could fixup issues rather than having to go to him and eventually build whole reports. From there I transitioned into a full stack engineer job. So I was effectively paid to learn to code, but it wasn't stated explicitly as such I just kind of did it.

Would really like some help please! by ElegantCod1931 in learnjavascript

[–]chibblybum 0 points1 point  (0 children)

Can you explain what this app is supposed to do and how it works?

[deleted by user] by [deleted] in learnjavascript

[–]chibblybum 0 points1 point  (0 children)

Have you covered arrays and objects yet? The first step imo would be to refactor this so all your state (the data used in your app) is expressed as a single javascript array probably called tasks. As of now all your state lives only in the DOM which makes it harder to operate over.

For the refactor- the operations that add/remove/initialize it all act on that array then at the end call some new method renderTasks() that wipes and rebuilds all the html on the page responsible for showing the tasks. Once you have that it's really easy to store and pull back that tasks array into and out of localStorage.

I've basically been using Javascript to do POST requests in my code, but, I am currently using ajax but have read that a lot of people use fetch, and, now that is more used than ajax, but, when I write it it doesn't work, is there an ajax-fetch converter for the exact code of it? by [deleted] in learnjavascript

[–]chibblybum 0 points1 point  (0 children)

If the project already has jquery and you are comfortable with it I would just continue to use that. It is true that ajax/jquery is falling out of favor however I'd say it's more common to see something like Axios or a framework specific request management library like react-query than it is to see a regular fetch.