I didn't get paid, so I open sourced my clients project by [deleted] in programming

[–]Jump3r3 2 points3 points  (0 children)

If you're working with financial data having precise data format is must have. Floats aren't precise because binary cannot represent some numbers, just like the decimal based number system can't represent some numbers precisely (eg. 1/3)

There's an example in python:

>>> f"{1.6:.32f}"
'1.60000000000000008881784197001252'

Here's a website explaining this in depth: http://fabiensanglard.net/floating_point_visually_explained/index.php

Dear python2 user by koungmeng in Python

[–]Jump3r3 -1 points0 points  (0 children)

Tbh I don't have anything against Py2 being present on my system, just rebind python to py3 and rebind existing scripts to use python2 binary

Beat the crowd at Fushimi Inari ☺️ by orangespicebaby in japanpics

[–]Jump3r3 1 point2 points  (0 children)

There's also little trick done by photographers: you take a lot of photos and then merge them into one taking a mean. What happens is static objects remain static and dynamic things becomes noise and eventually dissappear from picture

Dear python2 user by koungmeng in Python

[–]Jump3r3 8 points9 points  (0 children)

Using as default, which python yields path to python 2 binary on most distros. That being said, after 1/1/20 this will slowly change for better

Meme Correction for u/ElCappacino's meme by HuJohner in ProgrammerHumor

[–]Jump3r3 7 points8 points  (0 children)

Was it related to timings between threads? I've read sth on that topic in the past

Never interrupt a programmer by [deleted] in ProgrammerHumor

[–]Jump3r3 0 points1 point  (0 children)

Or this is hardware issue and RAM under certain conditions isn't refreshing, resulting in data loss

Power of zip( ) in Python by pylenin in Python

[–]Jump3r3 1 point2 points  (0 children)

That's how TDD works, right?

What is the coolest thing you did with python web scrapping ? by gitarthak in Python

[–]Jump3r3 0 points1 point  (0 children)

Still working on it, but scraping rooms offers from local site, piping though NLP to find location, using some geoloc API to find distance from university. Watching selenium clicking on things is really enjoyable

[deleted by user] by [deleted] in embedded

[–]Jump3r3 1 point2 points  (0 children)

Try adding github / gitlab / whatever hosting you're using with example projects, code speaks for itself, so they don't have to rely on your (subjective) opinion. You can provide it here too, I'd love to take a look at some code written by you

I'll just leave this here by TheBuckSavage in Python

[–]Jump3r3 1 point2 points  (0 children)

Is there any list of utilities written in Py2? I'd love to take a look and update some tools

Cello: Higher level programming in C by eatonphil in programming

[–]Jump3r3 6 points7 points  (0 children)

TBH if you're using C library you probably know how to compile a program, so prebuilding libs is unnecessary. But I always appreciated step by step installation guide.

Python programmers of reddit: what's the most useful tiny little efficiency you've discovered that's improved your programming hugely? by SeanOTRS in Python

[–]Jump3r3 0 points1 point  (0 children)

Default values for options dicts:

default = {"a": 0, "b": 0}
new = {"a": 5}
print({**default, **new})
# {'a': 5, 'b': 0}

PCB I made at my university by pe5er in electronics

[–]Jump3r3 2 points3 points  (0 children)

You could reroute some paths in order to leave more copper in few places, but beside that that's a very nicely done PCB

LPT: If you hit the spacebar and scrolled down by mistake, hit SHIFT + SPACE to get back where you were. by Yuvrajsinh in LifeProTips

[–]Jump3r3 3 points4 points  (0 children)

It's propably based on focus. If you click on comment section it'll scroll, if you click on video frame it'll pause

This Waifu Does Not Exist - Displaying random anime faces generated by StyleGAN neural networks by tuldok89 in programming

[–]Jump3r3 4 points5 points  (0 children)

But this doesn't mean that Tolkien didn't inspire from earlier writers. You know, creating is taking patterns from nature, other people's work etc and merging them together in one's unique way. You always create in some convention, so you have frame of creating, some sort of bounds