HNHacker News
TopNewBestAskShowJobs

user5994461

11,314 karma · joined July 24, 2016

submissionscomments
user5994461··on A Gov.uk site dedicated to porn?
For reference, it's 5 hours later now and it's still online.
user5994461··on Tasking developers with creating detailed estimates is a waste of time (2020)
Personally I view it as a successful project for the client.

The client wanted something done but they only had some time/budget to work on it. The developer looked into it and was able to get the project done. It's great.

user5994461··on How not to sort by average rating (2009)
Sounds like people who don't read their emails would get the best score because they don't get phished.
user5994461··on Why embedded software development is harder
A pretty good summary.

If it were me, I would insist some more on the hardware and the delay of hardware.

Have a "bug" in your circuit board? The most mundane thing, you planned room for a 5mm component but it's slightly larger and it can't fit.

It takes 5 minutes to adjust the schematics. It will take minimum 2 weeks to manufacture a new board and until it's delivered to your lab.

The project is now 2 weeks late.

user5994461··on Pip vs. Conda: an in-depth comparison of Python’s two packaging systems
An horrifying article. It's completely missing out that conda/anaconda prohibits commercial usage.

If you want to use conda/anaconda in a company, you have to go out of your way to prevent it to use commercial packages.

Also, the pip example doesn't show how to create a venv, which is the very first thing to do.

user5994461··on Pizzatime: Throw a pizza party for your remote team
Downside, when the company gives you a voucher for £20 to order food (that ought to be enough for anyone!).

Turns out the delivery app automatically adds £10 in delivery/service fee, and there's hardly any food you can pick for the remaining £10. Had to buy out of my own pocket.

user5994461··on Gitlab from YC to IPO
The large majority of the 30x return was over the past 2 years with the pandemic, which is not going to happen for Gitlab.

God forbids if you bought square long ago and didn't hold long enough, they had multiple years of ups and downs.

https://www.google.com/search?q=square+share

user5994461··on Gitlab from YC to IPO
How much of that revenue growth was driven by Gitlab more than quadrupling their price in the last two years? ($4 to $19 a month).

They can't pull that trick again.

user5994461··on Reproducible builds for Debian: a big step forward
> Also needs to be replicated for npm, cargo, maven, docker, ...

All these frameworks come with a tool to run an internal repo/mirror.

There are also commercial offerings (like artifactory) that cover all these languages in a single tool.

For python, just set PIP_INDEX in the CI environment to point to the internal mirror and it will be used automatically. It's very easy.

By default the downloaded wheels are cached in ~/cache/somewhere. Isolated builds don't benefit from it if they start with a fresh filesystem on every run, consider mounting a writable directory to use as cache, the speedup is more than worth it.

user5994461··on Eight million Britons unable to buy essential food items in last fortnight
When the newspaper says "unable to buy essential food items", they just mean that there was some items out of stock, not that there was no food in the shop.

If there's no beef today, you can still buy something else.

user5994461··on EU court rules no EULA can forbid decompilation, if you want to fix a bug
Fact is, they are invalid in many countries.

One major rationale is that the EULA/ToS is only visible after purchasing the product, which makes it void automatically. How could the customer agree to something they are not aware of and cannot read?

user5994461··on Why I Use Nim instead of Python for Data Processing
map is a generator
user5994461··on R, OpenMP, MKL, Disaster
Have you set the environment variable OPENBLAS_CORETYPE to specify the CPU?
user5994461··on Why I Use Nim instead of Python for Data Processing
And reading the file as binary. There's a lesson about the overhead of unicode strings here ;)

Your first example takes 3.1 seconds, my previous comment takes 2.3 seconds, this one takes 1.4 seconds.

    start = time.perf_counter()

    with open("orthocoronavirinae.fasta", "rb") as f:
    total = sum(map(lambda s: 0 if s[0]==65 else s.count(b"G") + s.count(b"C"), f.readlines()))
    
    end = time.perf_counter()
    
    print(total, " total")
    print(end-start, " seconds")
user5994461··on Why I Use Nim instead of Python for Data Processing
One liner to count gc, without buffering.

    import io
    f = io.StringIO(
    """
    AB
    CD
    EF
    GH
    """
    )

    total = sum(map(lambda s: 0 if s[0]==">" else s.count('G') + s.count('C'), f.readlines()))

    print(total)
user5994461··on Amazon Europe will require a return address in the country of purchase
TL;DR Amazon Europe will require sellers to provide a return address in the country of purchase, or provide automatic refund without return for purchases under £20.

Amazon updated their terms and conditions. I received a similar email from each of Amazon UK, DE, FR, IT, in their respective language. This is the English email from Amazon UK.

Don't know about the US.

user5994461··on Amazon says it’s permanently banned 600 Chinese brands for review fraud
One thing to be aware of. To verify if flash drives work, you have to fill them fully with data and then verify the integrity of all the data.

The scam for many flash drives is to provide a working one that's only a fraction of the size (but it reports the full size).

It works fine as long as you don't use more than the real capacity, that may be a just few percents or as much as half.

user5994461··on Alpine Linux: Proposal to move Rust to main
It's unfortunate that the example given is about supporting the Ansible package.

Ansible is a python software and Python doesn't support Alpine.

user5994461··on Alpine Linux: Proposal to move Rust to main
You're aware that Python doesn't support Alpine?

The reason is that python is meant to run on Linux systems with glib, but Alphine has musl instead. It's a common source of compatibility issues not limited to python.

Note that pip wheels are only specified and only built for glibc compatibility, so the limitations extends to all python packages.

user5994461··on Atlassian fired me while I was taking care of my wife who is fighting cancer
>>> I would have asked for unpaid time off and for Atlassian to continue to pay my medical insurance. That would be a deal which I think could have been reached.

The author was fired if you believe the title of the post, so it's way past asking for time off or insurance coverage.

user5994461··on Atlassian fired me while I was taking care of my wife who is fighting cancer
Aren't these up to the manager to approve?

A different manager can make a completely different experience in a single company. A rule of thumb when things blow out of proportion is that the manager is quite likely to have been a catalyst.

user5994461··on Atlassian fired me while I was taking care of my wife who is fighting cancer
The PTO is unclear in my opinion. There may be something depending on what's written in the contract and what jurisdiction he is in. There's way too little information to judge.
user5994461··on The Pleasure of Writing Go
Nice voting ring :D

- 3 upvotes after 0 minutes

- 5 upvotes after 2 minutes.

- 8 upvotes after 4 minutes.

If you want to push your company/product on HN, you should probably do that during week days in the morning. Sunday at 7AM NYC / 12 London is not exactly peak hours for visitors.

user5994461··on Google illegally underpaid thousands of workers
I can only comment in the general case, I don't know your personal situation obviously.

Contractors cannot be at arms length. There has to be an arrangement with the employer (Google here) and the contracting firms to pay. That means there has to be a timesheet for each employee. Could be filled by either party.

You said your cousin wasn't paid because somebody (implying from Google Search) said she took too long and refused to pay her. To me that sounds like a normal story where Google had to approve the hours/pay and they didn't. The excuse from Google employees that they are detached is fishy at best, they wouldn't be able to prevent payment if they were.

user5994461··on Google illegally underpaid thousands of workers
The employer pays the contracting firm based on the timesheet, then the contracting firm pays the employee based on the timesheet/pay they were forwarded.

When there's a problem with the employee not being paid, the root cause often goes back to the employer blocking the pay in the first place.

user5994461··on Index bloat reduced in PostgreSQL v14
Modern web frameworks generate a lot of connections.

Let's say, a typical application may run on 4 instances each one with 16 cores. That means a total of 64 processes because one process per core.

Each process opens 16 connections to the database because bad configuration or default to the number of cores. We're now facing a total of 1024 SQL connections out-of-the-box for nothing.

That's the reason databases are commonly subjected to insane amounts of connections.

user5994461··on The UK Government published their plans to water down GDPR. It is bad, bad
The IR35 change was needed to stop companies skipping taxes, benefits, pensions and holidays by hiring contractors.

It's not a failure and it was beneficial to low-pay workers.

As bad the UK government may be, it's not their fault if private companies decided to stop using high-pay tech contractors. There is nothing that prevent them to.

user5994461··on Google illegally underpaid thousands of workers
There is no maths to do. The company has to pay for hours worked.
user5994461··on Google illegally underpaid thousands of workers
HR is always involved with external contractors.

The way contracting usually work is that the contractor must submit timesheets daily or weekly to a supervisor at the parent company. The supervisor must approve the timesheet. The contractor will be paid the hours in the timesheet.

The story is a classic example where the manager (google employees) refused to acknowledge the hours for no valid reasons, preventing contractors from being paid.

Gotta escalate to HR to get paid and fill formal complaints against the bad manager.

user5994461··on Why that Thunderbolt add-in card doesn't work properly in your unsupported PC
My advice is to get a Anker USB-C to HDMI cable. One cable per display.

It works well for 4k@60Hz and it's one of the cheaper solution at ~ 20$ per cable.

Cherry on top, it's sold by AnkerDirect on Amazon, which is the genuine manufacturer.

UK https://www.amazon.co.uk/Anker-Adapter-MacBook-Thunderbolt-C...

US https://www.amazon.com/Anker-Adapter-MacBook-Thunderbolt-Com...

← PreviousPage 2 of 34Next →