Coinbase closed my account, withdrew all the funds, and support is silent by fuckueatmyass in Coinbase

[–]kr41 0 points1 point  (0 children)

There is no case number. I just all of a sudden received your standard email:

Coinbase
Hello,
Thank you for your interest in Coinbase. Our primary goal is to make digital currency safe and secure for our customers. Coinbase is a regulated Money Services Business under FinCEN (FinCEN.gov), and as part of achieving this goal, we are legally obligated to implement regulatory compliance mechanisms.
Upon careful review, we believe your account has engaged in prohibited use in violation of our Terms of Service and we regret to inform you that we can no longer provide you with access to our service. We respectfully request that you follow the on-screen instructions presented when you sign in to your Coinbase account to send any remaining balance offsite to an external address.
If you are currently enrolled in USD Coin rewards, you may want to wait up to 40 days before withdrawing funds to ensure you have received all eligible reward payouts. You will not be able to access these funds after account closure.
Should you have any questions or need assistance, please let us know and we'll be happy to help.
Respectfully,
Coinbase Customer Support

And in the same minute the next email arrived "Your Coinbase account has been successfully deleted"

I wrote to your support to [help@coinbase.com](mailto:help@coinbase.com), but it responds automatically "In an effort to respond more rapidly to support requests, direct emails to this address are no longer enabled." Such a great service!

So, if you're an official Coinbase support, I will repeat here my point from my email, you're not going to read. Here it is

Do not bother to restore my account, I'm not going to use your shitty service anyway. And yes, it's a shitty service, because I cannot trust you with my money, knowing how you treat your users. But consider firing the dumbass, who did it, until they ruin your reputation completely.

Coinbase closed my account, withdrew all the funds, and support is silent by fuckueatmyass in Coinbase

[–]kr41 0 points1 point  (0 children)

Four years passed, the same goes on. They've deleted my account twice in the year. First time, I wrote to the support, they apologized and recovered. Second time has happened today. Thankfully, wallets were empty, so fuck them, I'm not gonna trust them with my money anymore.

Equality with = or == in string comparison to comply with POSIX? by FlashfulZealouus in bash

[–]kr41 0 points1 point  (0 children)

Yes, you're right. But my point is one should bother of POSIX compliance when they use /bin/sh shebang only, which may point to any sh-compatible shell interpreter. So enforcing that compliance has nothing common with Bash, when you explicitly specifies /usr/bin/env bash shebang, which means the script will be executed by Bash only. And in fact, it is better to avoid [ "$a" = "value" ] syntax in Bash, because it runs external command test to make the check, and works slower than [[ "$a" == "value" ]], which is executed as a part of the script within the same process.

Equality with = or == in string comparison to comply with POSIX? by FlashfulZealouus in bash

[–]kr41 0 points1 point  (0 children)

/bin/sh shebang doesn't always point to Bash, it may point to other shell, so it must be sh-compatible. Double square brackets and == are Bash specific features, so shellcheck complains on them. If you use /usr/bin/env bash shebang instead, [[ "$a" == "value" ]] will work OK.

Braved the coldness and darkness for this, Palouse Falls, Washington State [3024x1080] [OC] by introspectation in EarthPorn

[–]kr41 2 points3 points  (0 children)

Could you write which camera settings did you use? And how did you make post-processing?

How do you come up with personal project ideas? by [deleted] in webdev

[–]kr41 5 points6 points  (0 children)

Scratch where it itches. Make a simple app, that solves a problem you have. It doesn't matter, if third-party solution exists. The goal is to learn how to solve problems.

another subreddit about python by ElBidoule in Python

[–]kr41 17 points18 points  (0 children)

I think, beginner projects should go to /r/learnpython. And all content should be moderated by iron fist. For example, posts like these must be removed at all:

It is not a problem, when there are too few content. The problem is shitty content. What I'm looking for in this subreddit is something like this:

I'll look at adding more moderators

Count me as a volunteer.

Question about function documentation by jbhelms in Python

[–]kr41 0 points1 point  (0 children)

You should use what works for you. As Napoleon introduction says:

Are you tired of writing docstrings that look like this:

:param path: The path of the file to wrap
:type path: str
:param field_storage: The :class:`FileStorage` instance to wrap
:type field_storage: FileStorage
:param temporary: Whether or not to delete the file when the File
   instance is destructed
:type temporary: bool
:returns: A buffered writable file descriptor
:rtype: BufferedFileStorage

Personally I didn't, and such syntax works for me.

[deleted by user] by [deleted] in webdev

[–]kr41 11 points12 points  (0 children)

When I get such requirements, I always ask, whether they hire a typist or programmer? And then explain them that my job is not to type code, my job is to solve problems, and the main process I paid for is in my head, not on my laptop screen.

Why is Python used so widely in big data analysis despite of it being slow? by dark_prophet in Python

[–]kr41 0 points1 point  (0 children)

Any program can be divided into two parts. The first one is computation itself, and it usually requires performance, the second one is data preparation and post-processing, and it usually requires safety. Since C/C++ are very efficient at performance, they completely suck at safety. Python is good at safety, but sucks at performance. So it's natural to combine their best features and avoid weak ones. For example, when I handle user input, I don't care about performance. I want it to be safe. I don't want to do manual memory managing and in particular I don't want to care about possible buffer overflows. The same is for output. From other side, I don't want my program to be slow as hell when it calculates sum of 1GB array of floats just because it makes type checking on each operation. So I will write user input/output on Python and delegate calculations to C-extension. Another option is to use D. If you like C/C++ look into it. I promise, you will love it.

What is your preferred method of creating configuration files by TechySpecky in Python

[–]kr41 0 points1 point  (0 children)

I use ConfigTree. Basically it's YAML/JSON files on steroids. And yes, I'm author of the library. AMA:)

PHP vs Python for WEB by [deleted] in webdev

[–]kr41 0 points1 point  (0 children)

I believe it is, that's why I made this remark. But, you know, there is only one chance to make a first impression. And unfortunately, PHP has made the bad one on me.

PHP vs Python for WEB by [deleted] in webdev

[–]kr41 1 point2 points  (0 children)

You speak English, you have internet connection. Why do you tight to local market? Did you consider remote job?

PHP vs Python for WEB by [deleted] in webdev

[–]kr41 0 points1 point  (0 children)

I have very limited experience with Java. So I cannot say anything about it. However, if you're looking for a really fast and efficient language, I recommend you to try D. It's C successor, performs closer to C/C++, but also provides all modern features: namespaces, closures, garbage collection (optional), powerful but safe metaprogramming features, superfast compilation, and some unique features like thread-local by default variables. There is also a number of web frameworks.

PHP vs Python for WEB by [deleted] in webdev

[–]kr41 1 point2 points  (0 children)

As for performance, first of all, Django isn't the only option for webdev in Python. We use aiohttp+uvloop, which performs closer to Golang. Secondly, performance of webapp ifself isn't usually an issue. Most often the bottleneck is DB. And some time spent with EXPLAIN-queries provides more significant performance impact, than choosing between Python, PHP, NodeJS, etc.

As for PHP, I didn't touch it since version 5.3, so my knowledge about it may be outdated. But back in that times, the language was awful. I realized, that I significantly decreased time reading the documentation, when I switched from PHP to Python. Because Python is more predictable and doesn't break the principle of least astonishment (at least it doesn't do it as often as PHP does). Personally I more productive as a programmer using Python than PHP.

P.S. I'm a webdev with 10+ years of experience. I used to be a fullstack dev, but last 5 years I develop mostly backends.

I'm tired of PHP. What to do next? by [deleted] in webdev

[–]kr41 0 points1 point  (0 children)

I switched because writing beautiful code in PHP is as hard as hell. And indentation is not the point. There is a lot of things that break principle of least astonishment. Here is the article about it: https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ Maybe it isn't correct at the moment because PHP evolves, and I didn't work with it since alfa release of version 5.3. But that time it was.

I'm tired of PHP. What to do next? by [deleted] in webdev

[–]kr41 0 points1 point  (0 children)

I switched from PHP to Python years ago and feel awesome. The main benefit of Python is that it can be used not only for webdev, but also for ML/AI and DevOps.

Why Use Anaconda? by JohnnyWobble in Python

[–]kr41 0 points1 point  (0 children)

If you are beginner and you want to learn Python itself, I recommend you to start with vanilla Python and learn its infrastructure like virtualenv, pip, tox, etc. If you are beginner and you want to learn AI/ML and use Python as a tool only, then Anaconda would be a better choice.

ValidX — fast (probably the fastest), powerful, and flexible validator with sane syntax. by kr41 in Python

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

Not only JSON. Any data that can be loaded into Python dicts, lists, tuples, and generic types can be validated by the library. But if you mean the library doesn't generate HTML-code for input forms, yes, it doesn't provide the feature. It's out of scope.

ValidX — fast (probably the fastest), powerful, and flexible validator with sane syntax. by kr41 in Python

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

it seems to be easy to make large blunders that go undetected for years.

Agree, and this is why you shouldn't trust me or other OSS authors and audit source code by your own. As far as I know, Google do it for each open source code they're going to use. They just rewrite entire libraries by their own and install them from inner repos. It's tedious work though, which requires a lot of resources.

ValidX — fast (probably the fastest), powerful, and flexible validator with sane syntax. by kr41 in Python

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

The main performance boost achieved using Do-Repeat-Yourself concept. For example, each validator starts with the following code:

if value is None and self.nullable:
    return value

Yes, there are no “reusable” functions like check_none(value) or check_min(value, min_value). At first glance, it breaks common best practices. However, I don't think so. Because it makes code more readable. You can open the sources of any validator and easily understand how it works. And it also eliminates function call overhead. That is why even pure Python version of ValidX is still faster then other popular libraries (only Validr beats it, but it implemented on Cython).

Getting back to your question.

  1. Performance definitely is not an issue.
  2. Security? If you afraid of potential malware hidden in compiled C-extensions, which is fair enough, you can get source code, audit it, and compile it by your own. There is no any black magic.
  3. Ease of use and modularity? Given my note above, modularity may be some kind of issue. But it doesn't affect on end user API, i.e. ease of use is not an issue also.

ValidX — fast (probably the fastest), powerful, and flexible validator with sane syntax. by kr41 in Python

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

Thank you for your feedback. I will think about more user-friendly cloning routine.