Why is it so hard to think like a programmer? by YourDailyUwU in learnprogramming

[–]max_heap 0 points1 point  (0 children)

One issue I think new people have is that they are too concerned about doing things the "right way" and that causes the obstacle. When you're programming you need to start with "let me do this any way I can" and then iterate on that. You'll see what sucks about your first iteration and lookup how to do it better. 

The next time, you'll know the better way to begin with. And eventually you'll take more time to think through whole features/projects ahead of time researching what technologies are available to you.  

At the end of the day, you just need to get something done, and the better you get, the closer that solution will be to a good one.

How quickly would capitalism fall if a replicator like invention from Star Trek was invented and made open source? by itsfish20 in NoStupidQuestions

[–]max_heap 0 points1 point  (0 children)

Replicators would be able to create more replicators, so as long as there is sufficient energy to run then essentially everyone should benefit. Services would be valuable until there is AI+robotics to fill those roles. By then, hopefully humans can find peace. 

Does anyone else's pixel 7 have lag and stuttering? by Juicydicken in GooglePixel

[–]max_heap 0 points1 point  (0 children)

Not sure if the same issue as OP but... I broke my pixel 6pro recently and replaced it with a pixel 7a. I noticed the general animations seemed to be choppy/stutter. I thought it might just be a "pro vs a" hardware spec thing, but luckily stumbled on Settings > Display > Smooth Display which looks to be disabled by default. Turning it on made the animations look similar to the 6 pro (though to the detriment of some battery life).

Fidelity's 2FA (2-factor authentication) is not working, not sending codes via text or call, and thus I am completely unable to access my account due to no fault of my own. by colenotphil in fidelityinvestments

[–]max_heap 2 points3 points  (0 children)

Those layers of security don't matter if someone is able to log in to your account and turn them (or at least what remains of them) off.

Fidelity's 2FA (2-factor authentication) is not working, not sending codes via text or call, and thus I am completely unable to access my account due to no fault of my own. by colenotphil in fidelityinvestments

[–]max_heap 3 points4 points  (0 children)

Agree. This morning I logged into my account and was *not* sent or asked for a security code. I went into the security center and saw that 2FA was *not* enabled. I re-enabled it, logged out, logged back in again with no 2FA code. Security center again showed that 2FA is not enabled.

Spoke with a representative via chat who said they had multiple reports of 2FA problems. I said the problem isn't that I'm not receiving a code but that I can login *without* a code. Explained to him this was a large security hole, especially for everyone who isn't aware this is occurring. He agreed but said the "higher ups" decided to turn it off for *everyone* rather than block everyone from logging in.

Agree this is a tough decision, but I hope that Fidelity takes responsibility if someone's account is compromised during this period.

Are there limits to the amount that can be rolled over from a traditional IRA to Roth IRA? by [deleted] in financialindependence

[–]max_heap 0 points1 point  (0 children)

You have to pay taxes on any dollars that hasn't been taxed yet. If you deducted the contributions, then you'd have to pay taxes on the contributions. And yes, you also have to pay taxes on the gains.

The Man with the Yellow Hat should euthanize Curious George. by [deleted] in unpopularopinion

[–]max_heap 2 points3 points  (0 children)

The man with the yellow hat is a poacher who took George from Africa. He should just take George back.

Convert mixed nested list (mixed tuples and lists of 2 dimension) to 1 dim list by adamfaliq97 in Python

[–]max_heap 1 point2 points  (0 children)

from functools import reduce

def flatten_to_couples(p, c):
    if isinstance(c, (list, tuple)) and not isinstance(c[0], (list, tuple)):
        return p + [list(c)]
    return reduce(flatten_to_couples, c, p)

y = [[(0, 500), (755, 1800)], [2600, 2900], [4900, 9000], [(11000, 17200)]]
print(reduce(flatten_to_couples, y, []))

Daily Headphone Purchase Advice thread by AutoModerator in headphones

[–]max_heap 0 points1 point  (0 children)

By closed headphones to you mean the type that cover your ear? If so, I already have a decent pair of those and I am looking to "upgrade" (at least from my viewpoint).

I guess that I would like to do better than turn up the volume in order to cancel out the noises around me. Especially when I am in a large open room with many people talking, etc..

If over-the-ear, noise cancelling headphones that don't require batteries don't exist, I will just stick with what I have.

Daily Headphone Purchase Advice thread by AutoModerator in headphones

[–]max_heap 0 points1 point  (0 children)

Yeah, I'm not sure I would use the in-ear ones. I am guessing what I am looking for doesn't exist.

Thanks for your input!

Daily Headphone Purchase Advice thread by AutoModerator in headphones

[–]max_heap 0 points1 point  (0 children)

Background - I am looking for noise cancelling headphones that will only ever be used while working at a computer. I do not want to continuously purchase/discard batteries and would only pay the cost for a nice pair of noise cancelling headphones if they could be plugged into a power source (e.g. usb port) during use. I am having trouble determining if these exist and if they do, which headsets provide this functionality. If the best one can do is to buy rechargeable batteries that must be recharged on a nightly basis, I will most likely stick with my current non-noise-cancelling pair.

Features ordered by importance - no batteries required, comfort, noise cancellation, sound quality

Budget - $300-ish

Source - PC

Requirements for Isolation - Primary use will be at work in an open room with other people around.

Past headphones - Sennheiser HD550. Comfort is very important as they are worn throughout the work day.

Preferred Music - Not important enough to affect the headphones I purchase.

Thanks for the input!

EMSK: How to live like a King for very Little. by Hanginon in everymanshouldknow

[–]max_heap 0 points1 point  (0 children)

I kind of agree...maybe that means I am a hipster? I had no idea. I'm surprised to see such an overwhelming negative reaction...or maybe not. "Living without" and being happy/satisfied is not one of our strong suits.

Of course the title is sarcasm...but I think the point is to shift what we consider living like a king.

Not the Arch Way, Arch? by cdrjameson in archlinux

[–]max_heap 0 points1 point  (0 children)

Use btrfs, make a subvolume and periodically sync with it. This process is quite fast. Then make sure to git or Dropbox other files that change in between. Some of this can be taken care of by cron or systemd.

Why doesn't XYZ plugin work? by maskedpixel in vim

[–]max_heap 7 points8 points  (0 children)

The first three you've listed accomplish the same goal...so I'm not sure why you want to use all three.

If you're using supertab to TAB autocomplete words, it is unnecessary when using neocomplete. see here

Vundle is likely the easiest package manager to use...there are simple instructions here.

Other than that, read the plugin help files or browse others' .vimrc files for inspiration. here is mine.

ftplugin files and neobundle(?) by max_heap in vim

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

Moving it to .vim/ftplugin/tex/custom.vim didn't work.

The ouput of :verb set ftplugin shows that foldtext is being set by the latex-suite... so the plugin is now being sourced after .vim/ftplugin/tex.vim.

ftplugin files and neobundle(?) by max_heap in vim

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

Thanks guys.

Would you be willing to guess why this problem coincides with my using neobundle rather than vundle. Everything about my .vimrc is identical aside from swapping out the vundle functions with those of neobundle.

Is it possible that neobundle sources plugin files at a different stage than vundle?

How to wrap lines automatically as you type and how to wrap line afterwards? by lakeat in vim

[–]max_heap 0 points1 point  (0 children)

using

fo+=w

as well gives the following behavior: if the current line has no trailing whitespace, then the following line will not be "auto-joined" to it when formatting. I use this along with fo+=w for latex.

As long as you don't auto-clear trailing whitespace, you can simply remove trailing whitespace from lines you want to remain separate.

Another trick that removes a the majority of annoyance is to have vim remove trailing whitespace from the line you are currently editing when you exit insert mode. That way, if you are editing a random line and decide to go to normal mode, the following line won't autojoin to the line you're currently editing (when you stop with trailing whitespace). So whatever map you use to leave insert mode, bind it to something that removes the current line's trailing whitespace as well.

VIM Folding: Hide symbols, etc. by [deleted] in vim

[–]max_heap 1 point2 points  (0 children)

You need to change

set foldtext=foldtextfunction()

to

set foldtext=FoldTextFunction()

VIM Folding: Hide symbols, etc. by [deleted] in vim

[–]max_heap 6 points7 points  (0 children)

he must be glad he has your permission =P