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

And nuitka.


Most newsletter servives provide rss.

E.g: you can read https://bitecode.dev from email or rss because substack supports both.


It's absolutely ok to have alpine handle a big form, you don't have to never use js with htmx.


Also the filtering, grouping, caching, pre-fetching and ordering contraints are unlikely to be the same.

Even worse if the json api is public, as it may need to restrict capabilities.


Most of us pay for a lot of services like netflix, spotify, etc.

We are ok with paying, but not:

- giving money to a user hostile company with a terrible moral track record

- giving money to keep being tracked anyway

- having to log in with a google account that can be locked down any time with no given reason, and will take over your entire android phone even from a single app

- being served ads from other unrelated services using data collected from google service we paid for


The snippets the article give are good to get an UTC datetime or timestamp now.

I'd like to add that if you have any fancy datetime manipulation to do in Python, pendulum (https://pendulum.eustace.io/) is probably your best bet.


>pendulum is probably your best bet

It is best until you work with Pandas DataFrame (https://stackoverflow.com/questions/47849342/making-pandas-w...)


Numpy and pandas are their own little island. It's not just dates and time, it's everything.

If you use numpy and pandas, you should also not use Python datetime, generators, most stdlib mathematical functions, the itertools module, random, etc.

It's the first thing you learn if you read any good pandas book, and the first thing I teach in my numpy/pandas trainings.

It has pretty much nothing to do with pendulum.

Basically, half the Python ecosystem is "well, except with numpy/pandas of course".


    from zoneinfo import ZoneInfo
    import pendulum
    import datetime

    def pendulum_to_datetime(pendulum_dt: pendulum.DateTime) -> datetime.datetime:
        return datetime.datetime.fromtimestamp(pendulum_dt.timestamp(), 
    ZoneInfo(pendulum_dt.timezone_name))
    
    # test 
    
    df = pd.DataFrame([[1, 2], [1, 2]], columns=['a', 'b'])
    df["time_column"] = pendulum_to_datetime(pendulum.now())
    
    print(df)
output

       a  b                      time_column
    0  1  2 2023-11-19 18:14:16.027777-05:00
    1  1  2 2023-11-19 18:14:16.027777-05:00


    >> df.dtypes

    a                                         int64
    b                                         int64
    time_column    datetime64[ns, America/New_York]
    dtype: object


BS, you can still make a deal with microsoft as a non profit, where the deal gives them an exclusive licence to use the result in exchange for financing.

MS doesn't care about how money it cost, they care about the fact it's their ticket back into the fight with google and apple.


Honestly, I'm pretty picky about the food at buy at the store, and even I can't tell anymore if something is safe appart from raw fruits and vegetables I buy from a local old man I've known for years. And I live in France, with very protective laws, and parents that educated me to choose wisely.

How the average American, with the worst consumer protection laws and a terrible food culture, is supposed to find a way?


> How the average American, with the worst consumer protection laws ...

Surely there's some hyperbole there. For example, the US doesn't have a problem with lead chromate in their turmeric.


> For example, the US doesn't have a problem with lead chromate in their turmeric.

https://www.foodsafetynews.com/2016/08/six-brands-of-turmeri...

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5415259/

What changed?


Exceptions don't disprove rules.

Exceptions don't disprove rules.

Exceptions don't disprove rules.


The GP stated that the US has the worst protections.

So a single counterexample suffices.


No it doesn't. Statistics is robust to outliers compared to logic, and GP was making a statistical claim.


It’s not intended to be an exception disproving the rules. It’s a trigger to induce the rational reader to recognize the obviously fallacious hyperbole of accusing the US of having the worst consumer protection law.


> Honestly, I'm pretty picky about the food at buy at the store

Forever chemicals, like PFAs can end up in food, but it is not made to be in food. The nature of this pollution means that trying to prevent environmental pollution to end up in your food is a fool's errand. The solution is to avoid releasing more of the substance in the environment.

For instance, PFAs see a lot of use in water-repellent clothing and material. As these products take rain, some of the repellent is shed in the environment, and contaminate stuff we consume. Awareness about it in the population and people looking to buy something else can lead manufacturers to look for alternatives and develop new lines of clothing.


I think it speak mlre aboub Gabe's ethics than whatever model of technical causality we want to impose on this.


Not insulting people that disagree with you and need the work is a good reason.

Even as a frenchmen, I don't think strikes are sacred.


Medically speaking, scabs are good, right? If your blood didn't clot, and didn't form scabs, you'd bleed out from a small cut.


[flagged]


That's the same thing as scab, reframing an attidude that is a sane disagreement and need as a crime.

You don't have to agree with any political movement out there.

And the strike is a right. A job is not. You already can't be fired for striking which is huge.

Wanting other people that have no dog in this fight to accomodate you doesn't seem reasonable.

And framing that the way you do is more virtue signaling and pandering than debating.


Businesses and individuals should not be able to sell their products and services at different prices than competing businesses and individuals.


hardly call it stealing. they decided to no longer work for the previously agreed upon compensation package. the employer found new employees that would do the work they need done.

no one stole anything. I agree and encourage unions and collective bargaining, but a strike breaker is hardly a thief, they are just a worker who needs money like the guy striking


> they are just a worker who needs money like the guy striking

I need a house and you do too. Let me live in your house since we both need it.


The job doesn't belong to you


I think I’m very pro-worker/pro-littleguy/pro-union but I don’t think this makes sense at all.


> They steal their livelyhood, it's not a misunderstanding. Should not be legal anywhere.

If you're no longer working your job, it's no longer your livelihood. That's your right of course, but you don't own a job anymore than the company owns you.


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

Search: