skysight-inc/HackerNews huggingface dataset:
Why would you chose this over a Van Emde Boas tree where indexing, insert, delete are O(log log) and prev/next are constant?

https://en.wikipedia.org/wiki/Van_Emde_Boas_tree

(it basically trades a little more work on indexing for a little loser structure)

I like the use of the DE queue, but having to keep all the sub vectors packed to ensure constant time lookup might not be completely needed if you are willing to keep a little more information around or have two candidate buckets. Not sure if would be a win or not though, since they your probably just better using a VeB tree.

e.g., I don't think you always need to compress everything back to the front if you can make sure all the buckets are within 1 or each other, but you can hit cases where you have to look in two buckets which isn't that difficult since you how the high and low of each bucket at the head and tail of each DEQ.

But then you would need to keep some local coloring info keep the buckets perfectly balanced, as everything should be.
I find these ORM opinions generally coming from someone who is used to, and is proficient in SQL, and only when they have a complex use-case/operation at hand.

If you consider a web project, with many developers of different levels of experience, having an ORM is a life saver. Because not everyone is constantly mindful of SQL injections. Because not everyone is constantly mindful of transaction management in requests. Those take experience.

In my experience ORMs are great 95% of the time. Those 5% can be extremely painful (I've gotten bitten by ORM Rails transaction nesting problems, and sometimes it frustrates me when I need to make something more complex). But let's not throw away the baby with the bath water.

I have had great experiences with Django ORM and SQL Alchemy. Rails ORM goes a long way, but it feels eons behind Django's.
I am the other person with an excellent opinion of Django's ORM. I vastly prefer it to writing SQL queries manually, and the only thing I miss is making it ever more functional-like.
Apologies. Could you please try again. I just checked and it's working fine here.
Improving the Lambda Developer Experience
Mozilla can go a full year without revenue currently (their financials are public). I wish more of their meeting minutes were public though.

https://assets.mozilla.net/annualreport/2017/mozilla-fdn-201...
Portability between deep learning frameworks – with ONNX
I assume the upvoters managed to overcome the massive obstacle of clicking once to hide the advert, went on to read the article anyway, and decided it was worth even the major inconvenience of that extra click to other readers.
I've made an open-source clone of this as an android app. It needs some onboarding and maybe a guide.

Perhaps I have some time in 2-3 weeks to develop it further, does anybody have advice on what to include?

https://play.google.com/store/apps/details?id=de.chagemann.r...
I never got this argument. What the point of "clean history"? History is for log of work, not for being nice read.
An ORM does not usually limit how much you can model your data and create fast queries. The modeling you talk about can be done just as well in e.g. the Django ORM.
Imho the "smell test" for good-enough ORM should be: can I, at the same time, (1) just switch the DB from underneath, replacing a relational MySQL with a document-oriented DB like Mongo or a hybrid one like Arango and have it work the same, 99% same business logic, (2) replace the underlying DB with a REST API of another app and use that as the DB, and (3) have the ability to drown down to "raw db" language, whether that is SQL, Mongo JSON's based queries, or a GraphQL API I use to "prasitise" another app and use it a the DB for mine?

None of the ORM/ODMs out there come even close to satisfying half of these requirements... so I'd rather implement an app-specific one that does 50% of this for the 1% restricted subset of functionality of the app I have...
API management with Kong – an update and more
StackExchange moves 29 sites out of beta
Yep. Most have a micro-USB connector which supplies power, and handles uploading/logging. So when you're done debugging, you just need a phone charger with a long enough cable.
> we're doing jack shit with technology in homes

I think the problem there is the churn. If you built a 'smart home' ten years ago, it would be worse than useless now. I do think we're due a shift away from 110v outlets everywhere, but I think a house that's in keeping with the technical possibilities will have to wait until those possibilities have stabilized.
Previous:

- https://news.ycombinator.com/item?id=20857892

- https://news.ycombinator.com/item?id=20864255
2 other numbers I read today on HN that made me look at things differently, although I knew them in other units but those didn't 'click' as much: air (including the water in it) weighs about 4 kg/m3 (much more than I would have intuited), and the whole US uses 'only' 1.3 km3 of water per day.
probably I'm paranoid but I worry this could be one of those kinds of inventions humans are good at that in small amounts are really beneficial but when scaled up start to have unintended harmful side effects only by then it's too late or too big to stop.
Thanks a lot for the feedback. Your point about icons expiring is well taken and that is one reason we want to create a system that generates icons from scratch. We'll also add more monogram variations.
That works actually.

The weirdness is that ":=" allows redeclaration (within a scope) but only partial, whereas `var` completely forbids redeclaration.

That is:

var a, b = f()
var a, b = f() // NO

var a, b = f()
a, b := f() // NO

// note that the second declaration only partially overlaps with the first
var a, b = f()
var a, c = f() // NO

var a, b = f()
a, c := f() // yes
How many DisplayPort channels do each ports support?

How many PCI-E lanes does each port get?

Do the ports share the channels/lanes?

Do they both support Power Delivery? How many Watts does the thinkpad need to charge?

Even with 'clear' labelling, it can still be a crapshot as to the full capabilities of the device.
I'de recommend this free tutorial first and the advanced stuff later: https://mdbootstrap.com/education/javascript/
> ...you're the ONLY person I saw with a good opinion of Django's ORM. I'm willing to accept you could be right in preferring it,

No, he's not. Almost the entire Django community has a good opinion of it.

The main criticisms I see of Django's ORM seems to be from people that prefer SQLAlchemy. They have different design philosophys and the distinction seems largely a matter of taste and differing use-cases.
To me it'd have been immensely helpful. If there had been 2 manufacturers with a logo (or a clear spec), I'd certainly have bought from them.
The point is that they say they will use it for purpose X, but instead they use it for Y.

A lie is a lie whether it is related to a donation or a purchase.
What pages are people running into that are broken in FF? I _never_ encounter this.
Not sure how profitable it would be, but if Mozilla created a privacy-focused email client, I would consider leaving the Google ecosystem.
Tor browsing speed is a catch 22. Not enough users for ample bandwidth - > users think it's too slow and don't use it - > not enough users

I've set up a relay myself, so I guess I did my part... But I wish more people would see tor as a private browser, not a gateway to "drugs, CP, and extremism'"
Tenzir | Backend, Frontend | ONSITE, REMOTE | FULL-TIME | Hamburg, Germany | https://tenzir.com

Tenzir is a big-data analytics platform for network security analysis. Our product empowers security professionals to quickly isolate security incidents and find the relevant subset in data lakes of telemetry. We aim to solve the tough cyber security challenges of tomorrow.

We are a UNIX shop at heart; we love building sound and composable abstractions - from backend to frontend. Our current UI is a CLI, which works well for threat hunters and incident responders. We are looking for a skilled frontend dev to build is a slick UI. Our backend is written in cutting-edge C++17, inspired by functional paradigms, and builds on top of a high-performance message passing architecture. We are looking for expert C++ engineers who enjoy systems building, with all hard problems from I/O scheduling to cache-optimized data structures. Our team has an academic mindset and over ten years of in-depth experience with C++. We are also looking for devops engineer to hold it all together in cloud-native stack. We foster an open, direct, and scientific culture. We have a passion for software engineering. Do you? Then join us!

=== Open positions ===

Backend Engineer (C++17/20): http://tenzir.com/careers/backend-engineer

FrontEnd Engineer: http://tenzir.com/careers/frontend-engineer

=== Interview Process ===

1. Application Form (Website)

2. Phone Call (1-2h)

2. Onsite Interview (1-2h)

=== Details & Application ===

https://tenzir.com/careers/
My work flow consists in working in some topic locally and committing in the smallest topic units possible. Then as I make some fixes due to typos or plain wrong logic I just amend or fix up. The longer I keep branched out then bigger the likelihood of having a lot of fixup commits. Then I use this awesome magic git rebase somehash^ -i --autoquash.
It re orders all my fixups automatically so it is very painless to consolidate everything before pushing. Maybe it is very known but this fixup/autosquash thing changed my productivity a lot.
Why are you in love with tennis?
Code reviews are for that, I've taught countless junior developers on how to write better SQL through code reviews. I've introduced them on how to mitigate the common exploits and how powerful SQL can be when needed and I believe they are better engineers because of it.

I really don't like using a tool as a crutch to a systemic deficiency of a team, in the long run you are only compounding the problem, the more complex the system gets the more workarounds and gotchas you have with ORMs so it's better to educate developers on how to not depend on them from the get go.

Yup, ORMs have their place in some projects but in the majority of what I've worked they brought more pain and confusion than just properly effing learning SQL.
But how do these things see it succeeding against Chrome, or even regaining significant market share?

I can't see how it could ever happen. No matter what they do they can't beat the developer and monetary resources of Google.
20 years ago we had to do the same for FF, but that time against IE6. Everything goes in cycles.
I don't know if there is already some plugin to make mypy aware of Django models, but that should be possible and would avoid bugs where you misspelled a property and it slipped through your quality control and unit-test.

I suspect "raw sql" to be a bigger headache and source of bugs in any moderately complex project.

Most of the use-cases of queries are actually very simple, and there the ORM allows you to simplify the code a lot.

My hints how to enjoy the ORM more: Write custom managers and QuerySets (for example for commonly used filters), write generic views that take QuerySets, take advantage of Models and QuerySet in Form Validation and REST APIs.

If you use the Django ORM like you would concatenate raw SQL, then it ain't gonna be pretty...
To avoid/recover from burnout and to get the work/life balance correct after spending many years slavishly giving all my expendable energy and thinking ability to my work and employers (who did not concern themself with my state) at the expense of my happiness and to the detriment of my general positive outlook on life. My mind is less burdened which leaves me opportunity to actually enjoy life instead of it passing by whilst I was consumed with thoughts of difficulties at work.
Sometimes yes, other times it might be possible in another way, but a lot of drivers are generic and don't have an exhaustive list of all devices in existence. Devices only need to be identified as a certain (generic) type.
Did your system design your logo?
Can't say I am particular fond of Google either. Brave uses chromium sources but they do not send any data to Google without washing it through their servers first with a default installation. So even if they actually use tech from Google, as a company they are a much better alternative and is much more in line with something I want to support.

Probably I will just save the money for now, but perhaps in the near future I will increase donations to some open source contributors via Open Collective (where I know it will fund the developers directly).
Bio fuels for cars are unsustainable because you will need even more bio fuels to produce fertilizer and to power the farming equipment but if you merely use bio fuels for energy storage in aviation then most problems disappear.
> There is no way to ensure this, so I will not give any money at all.

Please keep in mind that this is not a personal attack as I don't know you and I don't find it particularly constructive to engage in this kind of attacks, so please only focus on my argument:

I cannot understand this way of thinking.

On one hand we have the option to give Mozilla some money to use them however they see fit.

This means that from the sum of the donations they can use whatever percentage they see fit to fund different products/aspects, e.g. the engineering department so that they can keep working on Firefox, the marketing department to increase the awareness and drive adoption, the user researchers to better understand their user needs etc.

On the other hand we have the "default" stance where we don't support what Mozilla is doing.

This means that the development of Firefox, the marketing to raise awareness etc, are depended on Google and on Pocket which is something that we want to get away from.

I think it mostly boils down to some simple questions and how we feel about the answers:

- Do I prefer to know that all my money go to hire more engineers and improve Firefox? Probably (tbh personally I would focus a bit more on user research, it's the everyday people that they should be after, not us)

- Do I prefer to allow Mozilla to be depended on Google? Definitely not.

- Can my donations be used to make the current situation worse (i.e. tie them tighter on Google's business)? No.

So for me, although I don't control where my money goes, I think that they can only be used to improve things.
I've never seen anyone who needs an ORM handle transactions correctly in the ORM.
would it work in 2019 though?
Like Mozilla Thunderbird? Like most email clients it blocks loading external resources by default. Or am I missing something?
What's interesting is that most people that buy the 140 dollar phones tend to keep them for 3 or 4 years, and people who buy the flagship 1000+ dollar phones, tend to keep them for 1 or 2 max.
> main criticisms I see of Django's ORM seems to be from people that prefer SQLAlchemy

...then I'm in the minority of hating them both, and in the process of looking for an alternative since I'd be using a lot of python too for the foreseable future :|

I liked web.py's database abstraction layer a long time ago - know of anything similar in philosophy but more powerful?
What’s bothering you, really? So you have evidence Mozilla is splurging their money into political campaigns ?
Chupacabra and the death of live chat software
Binary.com | Security Researcher | Full time | Malaysia

We are seeking a driven and analytical Security Researcher to perform penetration testing on our web applications, identify potential security issues, and assist our developers in patching security bugs. You will also manage our bug bounty programme which includes analysing and validating external security reports.

To excel in this role, you must have:

● Experience with web application security and testing, security monitoring, and intrusion detection.

● Experience with fuzzing and finding edge cases invalidation.

● Understanding of encryption fundamentals and the OWASP Top 10.

● A good understanding of attacks and mitigations such as timing, injection (e.g. form parameter/SQL), side-channel, DoS, buffer overflows and DNS cache poisoning.

● Able to assess the security impact of bugs and API inconsistencies.

● Familiarity with industry-standard tools such as Burp Suite and Metasploit.

● Experience in writing custom code and scripts to investigate security threats.

● A clear understanding of the OSI model, TCP/IP, and other industry-standard network defence concepts.

● Knowledge of the latest industry trends and best practices in information security.

● Extensive experience in bug bounty programmes such as HackerOne, Bugcrowd, and Cobalt.

● OSCP, CEH, Security+, CISSP, or any GIAC certification is an advantage.

Reach out to us directly at hr@binary.com We would love to hear from you!

To learn more about us: https://www.binary.com/en/careers.html
Partially! We got the idea of brain and text from the system but added the pencil icon manually.
perhaps a more optimistic take on "no immediate plans": there could eventually be an alternate standard for webrequest that addresses Chrome Devs' (perhaps legitimate) privacy concerns around most extensions being able to sniff, modify, and log all of your traffic on the entire web with a single, unobtrusive modal click. There is room to make the web platform more secure without stripping power from the user-agent, surely, or giving bad actors a trivial foothold. Frankly, my concerns around the webrequest API are numerous, the only reason IMO that Chrome isn't deprecating webrequest in Enterprise builds is for corporate spyware.

At the very least a new webrequest spec that is more ergonomic and
more safe than the webrequest API (without neuturing adblock) could show whether the emperor has no clothes, vis a vis "Google Adtech is directly influencing Chrome and web platform development" plots
A Java parser combinator library written with an unmatched feature set
Assuming the same support as it got from OS vendors and third party C compiler vendors in the early 90's, surely.
I'd say the sqlite backend and using it in testing is mostly useful for reusable django apps that are supposed to be used in a wide variety of projects.

Most of the code I write in Django would never need to be SQLite-compatible, even if a lot of it would be. The SQLite compatibility is almost like a relict from a time when setting up RDBMSs was difficult and slow.
Brendan Eich worked against equal rights.

Don’t you know Karl Popper’s formulation - a tolerant world cannot tolerate intolerance.
In my opinion the force push option availability decreases proportionally with the number of users of a repo. In a repo where about 400 people work to make a force push we needed to get authorization from management and do it in a weekend.
In my own projects I amend quite often and force push about 1/10 times.
I worked on one system that did intentionally put business logic almost entirely in the DB. The VP was a former database guy and the primary justification was auditing. It worked well enough in practice.

There’s a quote from Gavin King somewhere exhorting developers that ORMs and raw sql are meant to be used concurrently, ORM for CRUD ops,sql for most everything else.

The problem I have with ORMs is lack of paging on collections; there’s always that one user that pulls in half the database.
Sadly this will be too little too late. If this was done in May/June, it would've ended the protests/unrest. It has turned into so much more than just the extradition bill, extreme police violence being one of the big things.

While I don't agree with the 5 main demands of the protestors, setting up an independent inquiry to investigate police violence will be required if the government is serious about giving the people what they want.
Ah, yes that is indeed a bit too much.

I also agree an yearly baseline would be much better.
Humid air is actually less dense than dry air, as any aircraft pilot should be able to tell you. That's because the water molecule H2O has a molecular weight of 18, while O2 has a molecular weight of 32 and N2 has a molecular weight of 28.
30 * 3 is 90...

30 / 3 is 10.
Hmm... can one test use in-mem db mocking with django.contrib.postgres fields?

I'll definitely look into this, not a solution for existing projects bc of legacy baggage, but probably the right way to do it. Problem in practice is that you yes what you really want is to mock the db completely, but practically speaking existing code is to entangled with the db adapter specifics, so you end up with running with a "fake real db" :|
Javascript is not the kind of diversity I want!

But on a more serious note, from the little I know he got fired because he supported banning same-sex marriage. Which is not just about 'opinion'. That's about discrimination and he should be called out for it.
This thread is littered with people singing praise of Django's ORM. He is not the only one. I'm a huge proponent of it as well.

> Could you share some resources of using it properly for advanced use cases? Good cookbooks etc.

The official documentation covers advanced use cases. Stackoverflow will help you shape up more complicated queries.

> Mistype a property on a model instance - no problem, no error, it will just not get saved to the db and data will be lost.

That's a drawback of most dynamic languages, not a flaw of Django's ORM.

> Need to write complex hand-coded-sql queries that return complicated data, but you's still want to be able to serialize them into a graph of objects that can then be modified by regular ORM code - good luck with that, nobody cared about this scenario.

Maybe that's the threshold Django ORM devs thought sensible to stop supporting? At some point, mixing hand-coded-SQL and ORM code introduce a whole set of hard questions and decisions. Very few people expect ORM code to properly play with hand-coded-SQL. If you need to switch back to SQL, you are generally on your own.

> They've somehow managed to make it too simple and too complex at the same time! Oh, and don't expect to just click a few jump to definitions an make sense of the ORM's inner code easily, god forbid :|...

It's simple to use, yet have complex internals. That's about what I would expect from a tool abstracting something complicated.
If that would be the case, the companies that sell commercial JDKs would be out of business, and yet here they are, selling Java tooling since around 2000.

Maybe you are referring to the "real world" where developers don't pay for their tools.

As for embedding 150MB of JRE / JDK, it is hardly any different than embedding the Go's runtime into every static compiled executable.
I'm assuming solo play:

Playing infinitely in Tetris means repeating a pattern over and over again. I would suspect that transforming Tetris so that it is universally infinitely playable (probably by somehow erasing the fact that an infinite SZSZ is a death sequence) would lead to a game where the optimal play is also to repeat a pattern over and over game.

It would be indeed a game of skill but would rob the player out of all creativity and agency. Not a very fun game at the end.

But I think that proving that such game is infinitely playable is a hard (np hard ?) problem.
Tesla is absolutely not a software company, it's a tech company. Software is a very concrete term which doesn't describe the category of companies we reasonably want to talk about.
Hong Kong leader to announce formal withdrawal of extradition bill
Many people don’t want to actually do something hard and unpleasant but get value from feeling like they’re getting organized and making plans to do that unpleasant thing later.
I also like lasers, umbrellas and face masks against face recognition. Someone should collect these ideas to some web page as "Little Brother's Handbook".

https://mobile.twitter.com/alessabocchi/status/1156513770254...
ICEs are affordable. Engineer wages don't seem to be the limiting factor. The problem is that the car companies don't want to invest into battery factories because they hope someone else pays the bill first.