It's 2015. Why do we still write insecure software?
jerf.org6 pointsby reacocard1 comments
"For instance, compared to the fastest mode of zlib, Snappy
is an order of magnitude faster for most inputs, but the
resulting compressed files are anywhere from 20% to 100%
bigger."
https://code.google.com/p/snappy/ def example(input_data):
l = list(input_data)
# code that uses list-specific stuff and returns a result
The function 'example' doesn't want to touch the original input data, so it needs to make a copy of it. It also contains code that assumes operation on a list, so the copied value needs to support list-like operators. If you assume input_data is a list, you can use [:] or copy() to copy just fine, but if input_data is NOT a list then you cannot feed example a generator or some other list-like object or iterable and know for sure that it is going to work. By explicitly converting to list, you can take anything that implements __iter__, and then safely assume that the rest of your code will be working with lists. This adds a pretty bit of extra flexibility to the function and can make it much easier and/or cleaner to use. I have DSL at home. Will it work on that or will I have to upgrade to
something faster?
You need about 80kbps both ways to hold a call. The more bandwidth the better
for improved call quality. Don’t forget that streaming video or downloading
large files all use bandwidth, so your mileage may vary if you are trying to
make or receive calls and watch Netflix at the same time.
Sounds like it's more likely that your gaming or Netflix would adversely affect the phone than the other way around, though a router with QoS should fix that easily enough.