Hacker Newsnew | past | comments | ask | show | jobs | submit | newaccoutnas's commentslogin

There's also json_build_object for building a JSON object and then you can use json_agg inside that.


Especially if you're paying for one of the better services, like Andrews and Arnold etc. They have caps listed on their broadband pages. There have been regular stories where customers have been sent letters about their bandwidth usage even though they're on 'unlimited' plans. The ISPs generally refer to clauses in ToS, which (imho) doesn't mean anything can be 'unlimited'.


A couple of petabytes in a month? A 1Gbit connection does about 75 Terabytes a week so unless you have a truly exceptional connection, that seems excessive


Sorry, updated. 1Gbit connection, about 100TB/mo.


This is great. I notice it's Python 2, could this be ported to Python 3 easily or some inherent issue in upstream deps?


I did a similar exercise late last year, using opencv v4 beta and python. I defaulted to py3. And immediately had problems, even with example-ish code. Camera misconfiguration and intermittent latency excursions, IIRC. So I backtracked to the "road well traveled" of py2. Which just worked.


While I understand the desire for a unified Python ecosystem as much as anyone - this kind of pettifogging is not going to convince anyone to switch to Py3.

Consider if the authors of the article had used (for example) Ruby - you probably wouldn't ask why they didn't do it in Python3, so why do you do it if they write it in Python2?


I think they asked in a respectful manner, so I don’t see anything wrong with their comment really.

Python 2 will be EOLed soon.

https://pythonclock.org/

4 months 25 days 5 hours left until Python 2 is retired. After that point it will no longer be maintained by the Python project.

Of course Linux distros and companies will keep Python 2 running for years to come because of all of the tools that are Python 2 only.

New projects ought to be written in Python 3. However, in this case my guess would be that OP probably used Python 2.7 because macOS ships with Python 2.7 preinstalled.

So if we could, Apple are the ones that we ought to speak to. Convince Apple to ship macOS with Python 3 pre-installed.


The switch from Python 2 to 3 was slowed down tremendously because major libraries did not fully support Python 3 immediately. The question regarding the dependencies was legitimate.


I agree with your general point, but your example if Ruby is very different. Python 2 is expected to be EOL Jan 1, as far as I know, Ruby is not.


With respect, if nobody finds the issues in the upstream dependencies and works to make them compatible with Python 3, they won't be supported. That would be a shame for this project and others that use the same upstreams.

I'd have hard time finding support for some Ruby 1.8 upstream dependencies for recent projects, so I don't agree with you.


Put Python 2 on the dunzo list!!! https://www.youtube.com/watch?v=acLp0S3K6mk


I worked (briefly) at a place that requested updates in 15 min intervals... on a spreadsheet. No thanks!


"What have you been doing in the last 15 minutes?" - "I've been trying to get back into the task I was working on after my concentration was broken because I needed to update this time tracker"


Nail on the head


I briefly worked for a law firm and had to track my time in 6 minute increments.


Could you work on one thing for an hour then back-fill the timesheet to reflect that?


Yes, of course, but it became quite difficult to track when there was fire fighting across several fires


Agreed, it's morphed into something a lot more evil than stopping bots. The amount of heuristics it now collects in v3 is quite something. Check for your score yourself https://recaptcha-demo.appspot.com/recaptcha-v3-request-scor...


> This is a sample implementation, the score returned here is not a reflection on your Google account or type of traffic.

I got 0.9 and then 0.3 after refreshing.


That's by design. Hitting the same endpoints multiple times is botty behaviour. I got 0.9 three times, then 0.7 on the fourth.


PINS for the ATM are but my online banking has a number more


We don't need ID in the UK, just turn up.


While this is true, it's a little disingenuous with regards to safe elections.

In the UK you must pre-register for a single voting location, and then when you turn up to vote they cross your name off so you can't come in again.


Sure but getting on the electoral register (to my knowledge) requires no ID either. I think this is a big part as to why postal voting fraud happens.


It doesn't require ID but is verified against other records and against the electoral register in other regions, i.e. you can't register in two different places. When housemates have moved out I have received letters asking me to re-confirm who is living in the house for the electoral register.

> I think this is a big part as to why postal voting fraud happens.

It might happen, but it is exceptionally rare. The impact of introducing voter ID laws would cause a far larger decrease in election validity due to voter suppression than postal voting fraud causes.


I take your point but you can't also discount the air quality in cities being quite a big factor as to becoming less dependent on cars. LEV's (Low Emission Vehicles) are taxed less, for example (although the infrastructure is still lacking, perhaps CAV's (Connected Autonomous Vehicles) may one day solve that as parking could be placed further away and there may be more of a 'sharing' system in place, such that you don't really own a car, just dial one up like an Uber)


Don't know where you grew up but for some this will have definitely increased the temperature over the years - https://en.wikipedia.org/wiki/Urban_heat_island


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: