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

Yes, the datetime api once timezone is involved is quite bad in python.

This is why for anything that uses timezone, I use pendulum: https://pendulum.eustace.io/

It's compatible with the datetime api, but it has sane default, nice tools to convert between timezone, some cool date adjustment stuff, and can humanize time in several languages.

Basically, datetime has the same problem as text vs raw bytes in python 2.7, except it has never been fixed.


Django solves this by having the default timezone in the framework settings. Any datetime without a timezone is assumed to be using the default one. If you don't set a default timezone, the server timezone is used, and you are responsible for making sure your data is congruent.


Yes I know, but that doesn’t help pretty much any of our Python users that are all heavily reliant on Pandas and/or definitely not writing web services.

As of now, we just reject any timestamp without an explicit timezone and try to explain to our users why utcnow() is bad. People are generally very surprised that this issue exists at all.


Yeah naive datetime should not even exist in high level API IMO. They're like bytes string with no encoding or geospatial data without a projection name field.

It's going to bite you at some point.


It's 2022, if you haven't realized by now that google is not your friend and based all your revenue on the company, what do you expect people to say?


I consider it reasonable to say that something is wrong as long as it remains wrong.

You might say it does no good to complain but I say it does no good to stop complaining.


I think it's good to keep increasing awareness, but it must be followed by actions. Which it is not. People have been complaining gafams were abusive for a decade now, and kept giving them more power over them.

You don't see much youtube publishing elsewhere to build an alternative, people keep sending all their data to facebook, few people migrate from gmail and firefox usage is not growing.


The more people complain about how bad it is to be a youtube creator, the more likely google will be to get in trouble when they hide those complaints from people searching for information about youtube monetization.


One of the best things of the past couple years; we have never had a clearer view of where everyone’s motives are.

The real question; what are we doing now that we know these things?


Nothing. The old school "information wants to be free" nerds and the tech companies they founded have irreversibly conditioned the public not to pay for anything on the Internet so now everybody and everything dances to the tune of ad brokers/advertisers to make their living. Until a new revenue model comes along to replace ad dollars, nothing is going to change no matter how many people grumble abut it.


And that's why netlix and itunes were never popular since you could download that all for free.

Oh, wait.


While I'm sure there's some overlap, the information wants to be free crowd isn't necessarily the same as the crowd that mostly cares about convenience.

The other factor here is that selling creative content/getting people to pay to see you has pretty much always been a long odds crapshoot as far as earning a living wage is concerned and there have likewise pretty much always been random gatekeepers standing in your way for all sorts of arbitrary reasons.


Rather ironic you should mention Netflix since they're just about to implement a new partially-ad supported tier to their plans.


Liu cixin would be proud. And horrified.


And those buckets can very much already be found IRL.


The fact apps can prevent you from taking screenshots on mobile is one of biggest symptoms of everything that is wrong with this closed ecosystem.

Second position being that you have the concept of 'rooting' a phone to get it in the state you have your regular computer in.

Of course, with MS pushing more and more restrictive booting conditions for windows and DRM getting in everything, even FOSS, this is only going to get worse.


In my experience on iOS actually preventing taking the screenshot doesn’t happen though. The app just gets to know it happened and can notify the user of options. Many apps do this, including jodel. Sure, it’s annoying, especially if you want to take multiple screenshots in a row.

Recording video of apps sometimes is blocked though.

It would be lovely to get vector screenshots someday. That contain the static UI state of a given moment with as much semantics as possible.


In France, if you have an inaccessible land, either:

- it's surrounded by private property, and the neighbor must offer some sort of passage through their land to yours. If it's a field, it does mean to destroy permanently part of it so you can go through.

- it has at least one border with public property, and the state must provide a real asphalt road to access it.

However, you are left to organize traversal of your own land, so if your house is deep inside it, you get to pay. And of course, getting power lines and water pipes connected to it is still 100% at your charge.


There are a lot og libs that do that, but few people use them because it's not native to the language.

This is an important point for scripting as nobody wants to setup a venv to run a simple script.

Zippapp are a solutions to that but most people don't know abot them. Also, it's not convenient enough to make at the moment.


A game in which a small startup can only choose among different bad endings


Would debian had done that 15 years ago, Ubuntu would probably not have existed.


No. The main motivation behind Ubuntu (and its predecessors Knoppix, Mepis, UserLinux) was realizing that a knowledgeable person could get a nice, easy to use Debian desktop in a couple of hours and then let it in the hands of less knowledgeable persons. It was hard to install.

On the other hand, you could boot a perfectly workable system from a live CD (Knoppix) but it was hard to install.

So the motivation was: could we get the best of both worlds? Easy to launch/install and easy to use maintain once installed? This was also more or less coordinated with a huge shift in GNOME development where UX became the main goal and development switched to a 6 months based schedule.

Detecting hardware was part of what was hard with Debian but was not seen the most important part. Having a nice coherent desktop at first boot was the goal.

source : I was part of it.


Hey, ploum, merci pour ces annees de plume et code francophone.

On my side, I definitly kept ubuntu because that was the only distro that ran on my hardware on first try.

I should not have implied that ubuntu would not have been launched, but rather that the story would have went very differently IMO.


To be fair, Ubuntu had a hard time with lot of hardware too at the time ;-)

source : I ran Ubuntu Install Party at my local university and, for some laptops, I had to spend hours figuring out what to do. Situation is way better now for hardware (but Ubuntu became too full of bloat for my taste)


Ubuntu's killer feature early on, for me, was picking the obviously correct defaults. No, I don't want Gnome or KDE's stupid browser, I want(ed) Firefox. A whole bunch of little choices like that, that meant I could just hit "install" without modifying anything or choosing any packages and get a desktop set up about the same way I'd have set up Debian, after a bunch of faffing about.


Debian left a huge opening, and Ubuntu went right through it. Good for them — and us.


It's even embedded in the original tagline: "Linux for human beings"


Or maybe it would not be as popular as is today

And what about the other 400 distributions based on Debian? There are many differences between them not just firmware

https://distrowatch.com/search-mobile.php?ostype=Linux&categ...


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

Search: