skysight-inc/HackerNews huggingface dataset:
I think one issue with SQLAlchemy is that, somehow, they are the worst of all worlds. They have multiple ways to run queries (iirc, the "model" way, the non-model way, and the raw way) but it is all the "model" way underneath so you end up with all kind of weird hacks if you don't want to use Python as the source of truth (i.e. if you run a query, have no data model in Python but want to turn the data into a dictionary). It seemed like a very flabby codebase (i.e. they started out doing X, and tried to add stuff on top...lots of classes that appear to do the same thing).

The only ORM that I have used that handled more complex stuff well was Jooq (Java). Having your database as the source of truth (and running a script to update Java Objects) works far better than the SQLAlchemy approach. I use Django now for a simple app but I used both Jooq and SQLAlchemy on something more complex (the issue was references to parts of the data models across components), and the former was brilliant (although learning curve) and the latter was just awful. I don't think SQLAlchemy docs are good either (again, started out as X and they just kept adding and adding).

That is just my experience. I used Django right now, there are no crazy cross-cutting concerns between components, and it works fine.
If we decimate the insect population there won't be any nans or corner stores. If a street light is the only thing keeping your nan safe then maybe your area has bigger safety issues to address.

Regardless, for any issue there is usually middle ground to be found and snark comments like yours do nothing to help find or support it.
Wouldn't financial gain limit it to essentially their competitors? Which renders that part irrelevant and is kind of a "no shit" to anyone actually working in processors not to include their stuff in there.
A Better Approach to Dark Mode on Your Website
I coined a phrase about it:

"Anything that can be leaked, it eventually will."
It does, actually. FCC reigns supreme in telecom regulations when they regulate something. However, they claimed that federal net neutrality was out of scope of the FCC's regulatory power. Because of that, by their own words they lack standing to prevent the states from doing their own thing.

For instance, the FCC can't sue California over smog controls because clean air isn't under the FCC's jurisdiction. Well, the FCC has claimed, in court, that net neutrality is also not under their jurisdiction. Their claims under oath are contradictory: either they have the power to enforce net neutrality (in which case it should still be federal law) or they don't (in which case they don't have grounds to tell California that CA can't enforce it).
Pick your battles. This isn’t a hill worth dying on (or even a hill worth getting slightly bruised on).
> if only the government/bank could've put moratoriums top down, freezing all rent commercial and residential. We'd be in a much better place.

This is exactly what I was saying in March, but everyone was too busy clutching their pearls, concerned about what will happen when pension funds lose a few percentage points of their value.

Well, now they are going to lose a few percentage points of their value, in addition to society dealing with a tsunami of bankruptcies, on top of trillions of bailouts. And we're still early on in this epidemic.
well yeah, if you don't use your phone it can get you even through two days, turned off even longer
This active approach to engaging people nicely compliments advice you hear about on setting up passive channels like landing pages w/ Google Ad Words campaigns.
Paper is open-access

https://www.nature.com/articles/s41598-020-69927-7
We've moved the comments thither, except ones that only make sense here.
Once I got a complaint from a security auditor that some code was using MD5. It wasn’t being used for any security purpose, just to check whether an autogenerated file had been manually edited. We decided it was easier to do what they wanted than argue with them, so we replaced it with CRC32C. That would have been faster than MD5, but nobody cares about saving a few milliseconds off reading a configuration file at startup. It would have made the manual edit check somewhat less reliable, but probably not by much in practice. But the security auditor was happy we’d stopped using MD5
And multiple people can share their screen at the same time. And nothing is interfering with note taking by making the window full screen whenever a presentation starts.

I am using zoom rarely and every time I am baffled by it's horrible UX. Why do people use it?
But now you've got the issue that the code needs to match the DB. Django takes care of this for you. It's really quite nice.
Excellent example. Honestly, I have no idea why the concept hasn't caught on yet.

(I'd love to discuss this further... I'll be back on HN later tonight, sometime around 16834005.)
Show HN: GuruHotel – The Ecommerce Platform for Hotels
Hello Hacker Community!

I hope you and your families are healthy and safe in these hard times. ️

Today I want you to remember that last time you found an excellent hotel for a fantastic weekend with your family or friends, and you discovered that its website was a nightmare. The booking process, an endless list of steps. The checkout, a bit risky. So you better move to an online travel agency to complete your reservation more safely.

As thousands of independent hotels struggle to survive, titans like Booking.com and Expedia are bleeding out their profits with 20-40% in commissions . To stay alive, hotels have few options. They can offer their rooms on Online Travel Agencies, giving away their independence and losing contact with their customers.

Or they can create their websites and start a painful way, looking for agencies, designers, developers, marketers, and launching their marketing campaigns using Google or Facebook Ads.

We are launching rockets to space thanks to Elon , but we cannot help SMBs compete with ecommerce titans. Is this fair for independent hotels?

We believe it’s not. And fortunately, things have changed. Today we launch GuruHotel, the ultimate ecommerce platform for hotels.

https://guruhotel.com/

We developed a user-based platform that hoteliers can launch in a couple of minutes, following a seamless onboarding process. Once the ecommerce is complete, users can activate their favorite payment methods, connect their real-time inventory, and receive bookings from +130 countries. ️

With this all-in-one platform, we want to empower independent hotels and increase their direct bookings.

We’re so excited about our mission, and we believe you could feel the same and help us reach more independent hotels around the world, spreading the voice about our product.

The next time you book a room, remember that booking directly saves jobs and Mom-and-pop business. ️

Thank you so much for reading this!
I remember when I was in middle school reading a YA novel about VR (I think one of the Net Force books), the main character discovered a hacker and expressed disbelief that he was "entering commands with a keyboard!". I was like, "Wow, like on DOS? Why not use a mouse? What is this, the 80s?"

Ironic now, that probably 50% of my interactions with computers are via command line.
The most WTF part for me is the summons and the court case identifies the police officer and he would likely to get more visibility and negative coverage than the original tweet which was retweeted by grand total of 4 people. Streisand effect anyone?
I was an admin for a medium sized company and handled their websites. Almost all of them (about a dozen or so) were hosted on Go Daddy. Plus they had about two dozen reserved domains they were sitting on like www.yourcompanysucks.com and others.

I left the company 5 years ago. Just checked the login to see if it still worked.

Yeap.

Any disgruntled employee could change the password, lock them out of all of their sites (including several e-commerce sites that amount for a large chunk of revenue) and then if they really wanted to, delete all of them.

I remember talking the main network guy about any backups when a lot of the ransomware stuff was making the rounds. The big, really big stuff on their network (mostly ERP stuff) was backed up in two or three places. Their web stuff? Yeah. . . NOPE.

Pretty scary how lazy people are about stuff like that.
I think you vastly underestimate how over-leveraged everyone is.

The real estate owners are no more resilient than a sheet of paper when it comes to the guillotine that could be coming for the economy. And, while I'm sure a lot of people aren't feeling any particular love for real-estate folks in general due to the current administration - letting them get liquidated and then trying to build up a replacement is harder and more damaging than just propping them up.

But I, personally, am seriously done with this slap-on-this-wrist for endangering the economy during clear weather BS. Engaging in unsafe business practices can cause massive loss of life - whether you're Wells Fargo inflating fake accounts and leveraging them as assets, the wolf of wall street or just committing some plain old accounting fraud we need to come down hard as a society and stop glorifying it as if these clowns are sticking it to the man.
I don't understand this attitude that someone who decides to invest their money into real estate instead of the stock market should be derided as a plague on society, as if it's not much more work to be a landlord than a stock market investor. When you are a landlord, you have to worry about tenants that don't pay (and threaten you with physical violence when you try to collect), tenants that damage your property, having to fix the property (some even do their own work to save money). You might not even be able to evict a problem tenant easily without some long dragged out court case, during which time you are collecting no rent. When tenants move out, you worry about how long it will take to find another tenant, as mortgage payments and taxes and repairs don't stop when there is no tenant. You have to worry about the local market situation changing, perhaps some new construction like a factory might make your property less desirable, perhaps young people just think that the area is played out, and so you will have to try to sell your property ahead of the change while looking for a new one. You have to constantly track possible changes in other neighborhoods as potential places to buy if needed. This information is not available online, you have to beat feet and constantly talk to other people and track down rumors, trying to get the big picture over all the little neighborhoods in your city. And if you are actually forced to sell and buy somewhere else, you have to spend months or years going all over the city to find another property (good real estate are just not on the market that often). Mistakes have a huge cost, and a poor choice could wipe you out as you are locked in to a property that doesn't bring income and have no buyers. You have to worry about tax laws and real estate laws changing, maybe forcing you to sell at a loss just to avoid a bigger loss later. Landlords are not people sitting on the porch, drinking iced tea and twirling their mustache while the money gets delivered in big bags. There's a lot of work and stress that goes into it, just like most other jobs.
To try to recapture the sense of fluidity in the development cycle that I've not encountered since.

Er. no. My comment on HN when this came up 6 years ago: [1]

There were some good ideas in Interlisp, ones that could be revived for other languages. One was the ability to select a block of code and have it pulled out and made a separate function. This was a safe transformation. All necessary variables were made parameters. Not hard to do in LISP. More useful for C++ refactoring.

[1] https://news.ycombinator.com/item?id=8751081
Website looks great. Will try shortly and I'm more than willing to give you my money if it delivers. We need a product like this.

Edit: great call out to 7 days of non consecutive use
Google Docs can be a little sluggish for me in Firefox, but it doesn't hang for 5-10 seconds every few keystrokes like you describe. It sounds like something unusual is happening.
I made a custom Django system for my personal website in 2013. It became to old to work with my web host. So, now I just run the django locally long enough to run a wget mirror. Voilà, static content.
Yes, that’s exactly what I do. I have a couple acres of pumpkins. A free pumpkin launch (by trebuchet) is included with each purchase.
> "the borrowers are not individuals with mortgages but companies with diverse capital structures and interests"

I'd be skeptical how different this is in practice. In 2008 there was an incentive to give loans to people without caring if they could pay because you could immediately sell them to larger banks that never checked the underlying status of the borrower.

With CLOs the borrowers are already selected to be companies in trouble - is the underlying resell incentive fixed if they're still being bundled together? In some ways the selection is worse because while most people need a mortgage no matter how good their credit is, I think business loans are needed more by desperate businesses. At least if the banks don't own as much (like you said) that's probably good.

From that Atlantic article:

> "A CLO walks and talks like a CDO, but in place of loans made to home buyers are loans made to businesses—specifically, troubled businesses. CLOs bundle together so-called leveraged loans, the subprime mortgages of the corporate world."

I think the structure of the CLO tranches rely on not all small loans collapsing at once and I'd bet the banks risk models (which already are incentivized towards taking on too much risk) didn't account for a global pandemic forcing everyone to stay at home.

I know Dodd-Frank requires them to have lots of capital on hand to protect against this kind of problem, but is it enough?

Also for us regular people, what should we be doing? Sell index funds and just buy Amazon?

Again, from that Atlantic article:

> "For the moment, the financial system seems relatively stable. Banks can still pay their debts and pass their regulatory capital tests. But recall that the previous crash took more than a year to unfold. The present is analogous not to the fall of 2008, when the U.S. was in full-blown crisis, but to the summer of 2007, when some securities were going underwater but no one yet knew what the upshot would be."

I don’t work in finance and these topics always bring out over confident know-nothings on HN going on about policies they don't understand (and I don't want to be that), but there are parallels here that seem pretty disturbing.

I don't want to be in the Summer of 2007, our institutions are less stable than they were back then and the politics have gotten scarier.
readers may tangentially enjoy yosefk's "cardinal programming jokes" -- the first one featuring a manhole: https://yosefk.com/blog/the-cardinal-programming-jokes.html

> I must warn you about those jokes. Firstly, they are translated from Russian and Hebrew by yours truly, which may cause them to lose some of their charm. Secondly, I'm not sure they came with that much charm to begin with, because my taste in jokes (or otherwise) can be politely characterized as "lowbrow". In particular, all 3 jokes are based on the sewer/plumber metaphor. I didn't consciously collect them based on this criterion, it just turns out that I can't think of a better metaphor for programming.
Personally it seems more like complacency and cultural rot has caught up to them than any bad actor - excluding their own management chasing ego gratification or short term profits. Falling behind AMD in so many metrics when they were previously often a second-best rival screams that they need to get their shit together.
Because until this thing gets diffused and dissected by everyone and their mothers, the law is likely to view it as publication of confidential trade secrets, and people who can be confirmed to be spreading such things can get federal time, e.g. [1] for example. Using a VPN is the barest of mechanisms to try to obscure your identity to avoid this sort of punishment.

[1] https://www.wsj.com/articles/SB10001424052970204409004577158...
BB is the "beginning" and expands
black hole singularity is a collapse.

i personally cant stomach the big bang singularity model, i prefer the idea of many small condensations of matter. a single big bang simplifies things. The problem is the origin of nonuniformity, the thing that makes a complex universe rather than a crystalline array that looks identical everywhere in every direction.
yas random thermal flutuation leading to variences in fundamental geometry but this serious circular pondering.
The redirect happens at the HTTP level - if you don't see it you may already be cookied.
This reads like the people who want to use "womxn" because the normal version is a superstring of "men".
That is a pretty accusatory tone...

There are probably over 10 million species of plants and animals in the world. Of course some of these are going to be better at coping with humans and their cities than others. As you correctly observe, foxes happen to be some of the best at adapting to city life. If you want more examples, just take a look here: https://en.wikipedia.org/wiki/Urban_wildlife

However, these exceptions change nothing whatsoever about the fact that in general, species very much are in decline and many are about to, or have already disappeared. Indeed, when we look at cities around the world, only 20% of bird species and 5% of plant species actually live in such an environment (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4027400/). Outside cities, the picture is not much better. Some species, like the crested lark in Europe, have suffered over 95% population drops. Others, like the passenger pigeon, have gone entirely extinct. I‘m citing bird examples here because we tend to have the best data for them (we have numerous birdwatching records reaching back 300 years), but I could cite others. In the last decades, an increasing number of observations suggest that by now, even insects are beginning to decline. And if you want to know what it‘s like when they‘re dead, just ask the Chinese labourers who are already having to pollinate apple blossoms by hand, because all the bees are gone...
Son of the possibly great and certainly controversial (I think great) Rupert Sheldrake.
It's really sad the situation we have come to.

I think that only two things can defeat this madness

1. Legislation

2. Breaking captcha to the point it's not effective anymore
> Think on it

We did. And with smart people who knew SQL inside and out. It just made sense to not hand roll SQL anymore, because Django caught most of the errors we had.
What prevented you from succeeding?
Social Media Valuable for the Success of Lawyers in Caboolture
You are right, sadly Schadenfreude (gloat?) would mean a non-trivial relief to the pain of many people
In my 8 years of working on large Python codebases, I think the Django ORM is one of the best pieces of software I've had the joy of using. I often recommend it independent of the rest of Django (e.g. to people building Flask apps that need an ORM+migrations).

Especially when working on a team with many junior developers who don't know SQL (myself included in the early days), the Django ORM has been a shining beacon of reliability and consistency allowing us to do complex database schema changes without ever having to worry about messing them up or not being able to revert our changes.

I don't think I can say the same for any other ORM I've worked with, in particular I have really bad memories of trying to match Django's migration reliability and flexibility using SQLAlchemy + Alembic.

Also in regards to switching databases, the ability to swap out PostgreSQL for SQLite on smaller projects without having anything break is a feature I've relied on several times, and I'm extremely grateful maintaining that clean break in the layers of abstraction was prioritized by the Django team.

Obviously the author of this article has had different experiences (and has considerable authority in this field), but I caution that their experiences are not universal among Python devs.
I don't really understand why the author chose hex for the file size to begin with.

The first table is all "3b", which I initially interpreted as "3 bytes". Spent a good ten seconds wondering how any executable could be only three bytes.
Much appreciate your response
The answer is to start using open ROMs before you get sucked into attractive nuisances like Netflix. However if you're stuck now, get a second device and work on weaning yourself off.
"Frances Allen has died" is currently #10 on the front page.
It's not an easy thing to find out who did what - trying to figure out which managers and owners were purposefully over-inflating equity to secure larger loans (or whatever) from those who were duped by the other managers and were just trying to keep the ship afloat is a really hard problem.

And, in this fun world, you might find a terribly over-leveraged business where no one ever tried to act fraudulently but some vulture capitalist consultant helped "ensure access to liquid assets" and is now in Kiribati watching the world burn.
Look at what will happen to channels on the next releases when Django will be async...

To have a websocked popping info from a redis pubsub doesn't make any sense all of this crazy abstractions.. it's just an async view reading from aioredis..

If you need an orm (a real one) use sqlalchemy.. the Django orm has it's own design flaws that a lot of of dbas will complain about it..

Anyway, latest thoughts I have it's that it's better to keep you model logic as near as sql as you can.. you will swap before python or Django than postgresql :)
PEBKAC. Google Calendar integrates with multiple meeting systems. The organizer should have used Zoom's integration to put the Zoom link in the meeting field instead of putting the Zoom link in the location field and adding a Meet link in the meeting field. https://support.zoom.us/hc/en-us/articles/360020187492-Googl...
yeah, turning the black bar to a link to the person's wiki would be really, really nice
Now that would be interesting: have your RAM strapped to your wrist and connected to your Mobo by a breakaway cable.

Bonus points if they cut it when the tackle you because they thought it was a deadman switch, like mentioned in the link.
It's been refuted. https://www.quantamagazine.org/famous-experiment-dooms-pilot...
> You do not want to update willy-nilly and you definitely want to wait a day or few for the more brave to guinea pig any issues.

To a lesser extent good advice for non-hackintoshes
The Developer's Guide to Directory Sync/SCIM
It's also worth noting that Zuck has the sort of holding FB that to actually liquidate it would involve either an institutional investor, or a massive drop in the stock price. He owns 30% of FB (and has more voting rights), any significant liquidation would involve a drop in value. People VWAP far less.
My freshly-reinstalled Pixel 2 XL with a minimal app load has four goddamn gigabytes of RAM and can't even manage to run my podcast player in the background without killing it after 5-30 minutes to economize on resources, despite my having turned off every optimization function on the device. That's why. The software is garbage, and it necessitates an upgrade treadmill to keep pace. It's PCs in the 90s all over again!
I gathered the issue is when the rich lose everything that snowballs into failing business and low to middle class unemployment surge.
That's the trade-off if you decouple the dB from the web framework you have to take care of both.. :) anyway, I prefer to trust the dB (real data on it) that a bunch of complicated things on the Django side.. (I suspect that happened something similar to me when I started reviewing crazy (shoot your food) class based elaborations..
Clojure Neanderthal MKL acceleration out of the box