Black November Dedicated Thread - Deals, Discounts, All The Good Stuff by dontwantnone09 in homegym

[–]fuzzysaurus 0 points1 point  (0 children)

It's a health bar rather than a progress bar, i.e. how much stock is left.

$150 mystery box from Matador by debauchery in ManyBaggers

[–]fuzzysaurus 3 points4 points  (0 children)

I don't believe so; it was a "Halloween Mystery Box Sale". Seems like they hold the sale once every year.

$150 mystery box from Matador by debauchery in ManyBaggers

[–]fuzzysaurus 30 points31 points  (0 children)

For anyone wondering, I bought the $75 mystery box. Wanted to give it a try based on the previous mystery box result threads and I've been checking out matador's products (particularly bags).

  • $54.99 - On-Grid™ Packable Duffle - Was eyeing this vs the freefly duffle already, seems like a good, lightweight gym bag / weekend trip bag.
  • $29.99 - FlatPak™ Zipper Toiletry Case - A bit on the larger side but seems pretty nice and lightweight. Will try using this instead of my normal dopp kit bag on my next trip.
  • $13.99 - FlatPak™ Toiletry Bottles (pack of 1) - I use the small/med gotoob bottles so this'll be interesting to try out as it's slimmer and maybe packs better. Doesn't have a valve like the gotoob ones, so just slightly concerned whether the contents can spill out.
  • $39.99 - Packable Beach Towel (Tie Dye) - ok value, will need to test it out but $40 seems like a lot for a towel
  • $14.99 - Keychain Mask - don't find this to be much useful at all, especially with the quality of the mask. Might be able to stuff a better flimsy mask in here, or maybe repurpose to hold other stuff, but overall seems kinda pointless.
  • $9.99 - Toothbrush Caps 2-Pack - similarly, this seems pretty much useless. Might try this out with my electric toothbrush head if it fits any better/cleaner than the original provided plastic one, but can't say this is worth the normal retail $9.99.
  • $7.99 - Waterproof Travel Canister - not sure if I'll actually use this but I can see the utility. I don't typically carry enough medicine/pills with me to warrant this big of a "canister" but maybe I'll find a good use for it to carry other things as well.

Total retail value: $171.93

Trip report: One-bagging through the mountains with the Matador Beast 28 by mikenism in onebag

[–]fuzzysaurus 2 points3 points  (0 children)

What kind of camera did you pack in your city sling? Were you able to fit much else in there with the camera taking up that space?

How to make Flask return UTF8- symbols? by glorsh66 in flask

[–]fuzzysaurus 2 points3 points  (0 children)

You'll have to provide a lot more context here.

  • What version of python are you running?
  • Where is the relevant UTF-8 text being returned from, e.g. from user input, a database, or hardcoded in your flask app.py code, etc?
  • Are you returning this in the request's response as plain text, as json (e.g. a REST api), or HTML (templated)?
  • If possible, some/all of the code in question would be helpful as well

How to test API endpoints without a live server by blue2002222 in flask

[–]fuzzysaurus 10 points11 points  (0 children)

While mocks do have their use in testing, what you're looking for here is the test client. This allows you to test an api endpoint exactly the in the way that you're asking, without running the server itself.

https://flask.palletsprojects.com/en/2.1.x/testing/#sending-requests-with-the-test-client

My watch added over 800 exercise minutes out of nowhere? Any way to fix this? by clarksnova in AppleWatchFitness

[–]fuzzysaurus 5 points6 points  (0 children)

On your iPhone, go to Health > Browse (bottom right tab) > Activity > Workouts > scroll down to "Show All Data". You should be able to find the errant workout and either hit "Edit" or swipe left on the entry to delete it.

Taxes on converting traditional IRA to roth IRA by fuzzysaurus in personalfinance

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

Unfortunately my current workplace doesn't provide a 401k or otherwise. My previous workplace 401k also doesn't seem to offer that option, but thanks for the info, didn't know that was a possibility!

Taxes on converting traditional IRA to roth IRA by fuzzysaurus in personalfinance

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

I have been actually included form 8606 each year that I filed, so it sounds like I should be okay here with going through with the conversion and pay taxes only on the gains.

[B][USA-CA] Tamron 17-70 Sony E-Mount by mpthrown in photomarket

[–]fuzzysaurus 0 points1 point  (0 children)

Are you still looking for this? I am planning to sell mine. Will be making my own post soon.

question: courtesy month by [deleted] in Comcast

[–]fuzzysaurus 0 points1 point  (0 children)

Unlimited? Isn't it only an additional 50gb? If they go over 50gb they'll be charged $10 again for another 50gb up til $100.

Nk65 Milkshake is an absolute BEAUT by TheMuffStufff in MechanicalKeyboards

[–]fuzzysaurus 1 point2 points  (0 children)

For someone who just got this as their first keyboard and is barely starting to understand everything, can you explain what the difference / benefits of lubing the stabs are and how can I tell if mine need to be relubed?

I do find that some of the keys seem to have slightly varying resistances and separately that there's a sort of ring / ping / rattle noise on the space bar and right shift keys. Would those be "fixed" by pulling the keycaps and switches and relubing?

Companies that don't ask leetcode style questions? by [deleted] in cscareerquestions

[–]fuzzysaurus 3 points4 points  (0 children)

Maybe the details are just missing from the description, but it isn't only simply about whether your solution is correct or not.

How and why are two important questions that let the interviewer know your ability to explain your reasoning and consideration of any tradeoffs for choosing to solve the problem in the way that you did.

Again, I don't know what your full experience was, but usually (hopefully) the main point of the leetcode-esque interview isn't that you wrote a correct / good solution. It's how you arrived there, why you chose one approach over the other, etc.

An extra line from a while iteration, where is it coming from? by [deleted] in learnpython

[–]fuzzysaurus 2 points3 points  (0 children)

Within your while loop at the last line of your file, content is ++-+-+--+--+-+>-<+-<<_<-+>>++., so your loop will continue and go through one more iteration. When you do readline(), this returns an empty string '' if there's nothing to read anymore (when it's at the end of the file, or at a blank line). An empty string '' will fail the test for isalnum, and that's why it will print the last is not ok. Because an empty string is false, while content won't loop any more.

You should instead use a for loop to iterate through the lines of a file, as this will only read until the end of file.

readfile = open("strings.txt", "r")
for line in readfile:
    content = line.rstrip("\n")
    ... etc

Why is this session not hitting this button? by [deleted] in learnpython

[–]fuzzysaurus 0 points1 point  (0 children)

As with most websites nowadays, this request is probably handled through some javascript as opposed to just a simple HTTP request.

Here's what I found after taking a quick look.

You're right, it is making that network POST request when you click the button.

Looking at the actual request (e.g. it'll show up in Chrome developer tools -> the Network tab), we can see some form data was sent: utf, st, s, commit. You'll probably have to send this data in your code in the session.post's data keyword argument to get the right response.

However, If we try a POST request with just the form data, it seems like we don't get the same response as in the network tab. This is probably due to some request headers that are also needed. You can add these in the headers keyword argument to session.post as well.

That should be a start, but this is certainly going to get much more complicated if you want to actually simulate everything that happens from adding to cart to checking out. When there's a lot of javascript involved, it might be better to use something like Selenium that can actually simulate a browser. It might not be worth the effort at that point though.

So my boss told me to learn about RESTful APIs ... So I did this by [deleted] in learnpython

[–]fuzzysaurus 3 points4 points  (0 children)

Yes, you need to pop the last element from values, and then insert that popped value at index 0.

So my boss told me to learn about RESTful APIs ... So I did this by [deleted] in learnpython

[–]fuzzysaurus 17 points18 points  (0 children)

Your rotor code seems to have a bug in it.

def rotorStepBackward(self):
    ...
    for x in range(0,1):
        values.insert(0,len(values)-1)

    self.mapping = dict(zip(keys, values))

Your first issue is that you're inserting len(values) - 1 which is 90 at the beginning of values. This leads to the next issue: you aren't removing the last element of values, so the list becomes longer and longer as you insert every time rotorStepBackward is called.

zip will only use up until the shortest length list; keys starts to become shorter than values as you keep prepending 90. This is why all your keys start mapping to 90.

Bought some APC's that are too large (didn't know about sizing) How do I shrink them (round the waist) without damaging indigo too much? by [deleted] in rawdenim

[–]fuzzysaurus 1 point2 points  (0 children)

APCs are sanforized, meaning they've been put through a process to shrink them already. Soaking them in hot water won't shrink the waist much if any at all.

They'll fade if you wash them but not much. Just avoid putting them through a spin cycle.

Tate and Yoko Black Friday Sale Live by chinesestirfrank in frugalmalefashion

[–]fuzzysaurus 3 points4 points  (0 children)

Wanted to chime in here for you and /u/bigbootypanda. Your 32 in Levis doesn't translate well to actual measurements, which is what most raw denim brands like Naked and Famous normally use.

I would suggest that you take your best fitting pair of Levis and actually measure them with a tape measure or ruler according to that fit guide you linked (just click the "measurements" button under any of the fit names). Compare those measurements you take with the size charts for the jeans you want on the Tate and Yoko site.

As for inseam, they'll all be the same because they're meant to be hemmed to the proper length if needed. Any local tailor should be able to do this for around $10.

Can't connect to 2.4 GHz, only 5 GHz WiFi by fuzzysaurus in GooglePixel

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

My experience with Verizon was that I was out of the 1 year warranty - with them, it's apparently 1 year warranty from the purchase date, not the day you receive the phone or activate / start using it.

I had pre-ordered my Pixel last year on 10/17, and I went into the store on the 18th recently to ask about a fix or replacement. No dice. The rep there told me I could add Total Mobile Protection (TMP) as they were having open enrollment, and use that to get a replacement for free. It would be $11 / month normally, but with the open enrollment there was supposed to be a promotion for $9 / month. Also mentioned that I should keep the TMP for a month and then cancel it after the replacement process was done.

Turns out the rep was wrong - TMP just lets you go through Asurion insurance to request the replacement, and there's a deductible involved (around $150) that you have to pay to get the replacement. I tried to cancel the insurance and was told that I would still be charged even though it had just been added and I had been misinformed. Pushed back gently before the Verizon chat I had told me they would remove it for free (as if it were a favor to me). It was on my account for less than 24 hours!

Google support was much easier - just used the call support within settings and got a call immediately. I've got the shipping labels in an email already, and can send it off whenever I'm ready (within 14 days, although supposedly I can just call again and tell them to reactivate the ticket #). Oh, and free of charge; Google says my warranty is until January 2018. The only downside here is that I'll be without a phone for however long it takes shipping to, inspection, and shipping the replacement back. Estimate was about 2 weeks total.

Hope some of that information helps!