skysight-inc/HackerNews huggingface dataset:
In most procedures I've observed (or experienced first-hand), a combo of Versed (a benzo) and a small amount of Propofol for the "milk of amnesia" effect is lumped under the term "conscious sedation".

The patient is aware, can breathe on their own, and can respond to basic commands, but is relaxed, with a much higher pain threshold, and has no memory of the event.

That sync with your experience, doc?
There was a rise in this in the mid 10's but the last few years, I'm finding more people who support things like right to repair for example.
1) I love coding in PHP (I am a cs major)

2) I love riding scooters (I am a cs major)

FTFY
> I legit font get where most of the purported US wealth is concentrated, most US cities are dilapidated

Isn't this because US cities (esp. the dilapidated ones) are in big part storage for the poor, and the middle class lives in suburbs?
How is taking rides on the way home bad service? Why should I get the same wage as a sub par driver?
I have worked with PHP for years, and I agree completely. I think the people who defend PHP either have too much invested in it, or they have never gotten productive in a saner language. Or both.
Those are features of Apple Monopoly rather than Apple Music.
The CD-ROM is available in two libraries https://www.worldcat.org/title/hugo-and-nebula-anthology-199... but cannot be checked out.
These are part of the stdlib’s elementtree so also present there.

And somewhat inconveniently you can’t hand a null builder to iterparse so for large documents you must remember to clear the elements it builds lest you explode your memory.
Ask HN: Has shifting to remote made life worse for anyone else?
A few days ago I was hanging out with a friend, and was surprised to see them receive a work call at 7PM, when officially their work day ends at 5:30PM. When I asked them about it, I was told that every since they were shifted to WFH, they've been expected to work for a lot more hours, but for no increased pay. They feel frustrated because their work-life balance has been thrown out of the window.

I asked around in a few groups that I am part of, and this seems to not be an uncommon occurance, and is happening to people from all fields, not just tech.

Have you experienced this? Do you have any solutions in mind?
Yes the copper story instead of fiber optic is really important to understand. I did some digging after suffering through poor internet in a major German city for some years now.
Nokia blocks Lenovo from selling any laptops, PCs or tablets in Germany
While potentially true, I don't see how posting on HN is protecting much. What's more likely are ofc people who work in relevant spaces who are paid to maintain the walled gardens who therefore are incentivized to not accept criticism of said systems.
Interesting, I hadn't seen falcor before. It's a graphql alternative?

Ed: was open sourced back in 2015 - discussion at the time: https://news.ycombinator.com/item?id=10075092
Every time these things are mentioned, I always wonder about that. Now that someone is building a modern equivalent (https://www.wigetworks.com), I wonder what they are doing about avoiding collisions.

Normal aircraft typically spend long periods in autopilot, whereas these things would presumably require a constantly vigilant pilot. And not just to avoid big ships, there are plenty of things floating in the ocean that could destroy one of these things: small boats, buoys, debris. The mast of a small sailing dinghy would be enough to cause a catastrophic crash.

I like the idea of this kind of craft, but I can't see it working at scale.
With SAX (Simple API for XML) api, both UTF16 to UTF8 conversion and unlimited XML size can be parsed even under 1mb of RAM. It's harder than DOM processing, but SAX was created for dealing with huge amounts of data inside XML.
Not the person you are replying to, but I think the point they are trying to make is that the less experience a politician has, the more likely they are to believe what they are told by someone with an agenda who is trying to influence them, e.g. special interests. So the lack of experience doesn't cancel out for yea and nay when it comes to any given vote, because special interests will be lobbying mostly for one of the two, and thus the lack of experience (i.e. resistance to influence by having your own knowledge of the area) can tip the balance.
For some people (me included) the office is a very productive environment. Some things I am really interested in can be smashed out at home with no problems. But boring work is a chore unless I'm at the office where I can get my mind to say "you're at work, you're getting paid for this". I can do boring work well at work, whereas at home I wanna do anything just to get it out of my face.

Not only that, for some people the commute is 1h each way and for others it's 10 minutes. So some people don't see the issue with going into the office every day.

And unless everyone is going to work from home, if you're someone working from home but most other people are in the office then that can stifle your career development for internal promotions. Like it or not, the managers and higher ups will be in the office, it's easier to get to know someone in the office, it's easier to get inside knowledge on what's going on, what projects are happening, etc. I work for a company who has remote developers and none of them are leading anything or have any sort of significant power to influence decisions. They are just man power to get work done, even if that is wrong, that's how it is and I don't see it changing.

For as long as this is the case I don't see fully remote working as a viable career choice. I would only do it for a company which is all remote or all software dev is remote.
The tuition prices are because of market forces. Ivy league schools created brands and market themselves across the world causing huge (not very justifiable) demand, together with their lobbying for the structure of tuition loans this situation was created.

Universities shouldn't be judged as businesses, it's the exact opposite of their reason for existing. You need freedom and leisure not tied to economic pressure to do research and create a reflective infrastructure for humanity.

It was always subsidized by the ruling class, be it a king, or the society via taxes in democratic times.

The thought that everything is a business and should be analyzed as such is just shortsighted and lazy thinking.
This is such a shallow elitist comment. A lot of the common criticisms levied at PHP have been corrected years ago, and PHP is responsible for hundreds of billions of dollars of turnover globally.

Of the top 10 websites in the world, PHP is partially or wholly powering more than half of them. Wikipedia, Wordpress, online retail.

I have personally created 6 figures of value because I could quickly dump some PHP scripts on a VPS server and start doing business.

My employer makes billions with PHP. It's not perfect, but it's rock solid for gigantic businesses.

Sure you can build yourself perfect shiny web services using modern bleeding edge languages, meanwhile businesses using PHP for decades are innovating and printing money daily.
AB5 was a law passed in the legislature, not a public referendum
I assume it depends on what knowledge you have.

If you know your DB tooling and have basic XML and ETL experience, StillBored is probably right. If you have to look it all up but write software every day, a custom program is probably faster to get right.

You might still want to invest in DB/XML/ETL knowledge if more of this kind of questions come up.
However, it shouldn’t be 1.5MB. As a web developer, here are some tips on how this could be improved.

It’s being served as an 1832×1465 PNG, but on screen it’s capped to 400×320, so the substantial majority of the pixels are wasted. Reducing it to a 2× image, 800×640, still PNG, drops the size by about 1.1MB. If you wanted to get fancier you could go lossy WebP and easily bring it below 50KB, but you’d probably still want the PNG as a fallback for older browsers (and even recent-but-not-quite-current Safari). At these sizes it’s probably not even worth splitting 1× and 2× into different files with srcset, though you could if you wanted to. The full markup with both of these techniques and four image files would be this:

<picture>
<source srcset="resf.webp, resf-2x.webp 2x" type="image/webp">
<img src="resf.png" srcset="resf-2x.png 2x" width="400" height="320" alt="“Rust Evangelism Strike Force” logo, in vaporwave aesthetics">
</picture>

But the first step is the most important, just shrinking the PNG from its original size to the size that you actually want to use it at. The rest is just sugar coating to make things even better, at a certain cost to you the developer if you haven’t got tooling to automate it.
> Its intended mission was to conduct lightning sea-borne attacks with the six anti-ship missiles it carried in launch tubes placed at the top of its hull.

Being a hazard to shipping appears to be the purpose of it.
All animals are equal , but some are more equal than others.
Oh, no.

I assure you your understanding of the academic environment is flawed.

The politics is only intensified at the top. You need to have some skills, but much of it is politics and it is as intense as in industry if not more.

You will be surprise if I tell you stories about major awards and recognitions. These are becoming norms than exceptions.

I have worked partly in industry.
Exactly, here I'm - nasty eastern european that's about to take your jobs /s
Bad arithmetic is sad, too.
That's right. I did not realize it before: if you do not mind the size, just "dumping" the stream will work quite fast, obviously.
Bongo Cat
Show HN: Greg – a simple “cal” clone written in C
Show HN: Easiest way to create GitHub social images
Hello HN

Socialify is super simple tool to create social images for Github project. It has tons of customization options from backgrounds to fonts, and badges!

Socialify works best as an image as a service, where it automatically renders an svg image for you. This image will keep updating it badges and description with any changes to the repository

The project is also open source and still early in terms of development:

https://github.com/wei/socialify

Let me know what you think!
Hello, everyone! Having known about this website for a while, this is my first time deciding to create an account and making a post.

I have (somewhat) recently decided to start working on a simple C project. It is a “replacement” for the Unix utility ‘cal’.

Of course, it is far from actually hoping to replace anything, it is more of a clone with some different functionalities than anything else.

One of my friends mentioned that in his classes for his degree in computer science, he was assigned to fix a ‘cal’ clone the teacher had written in Java.

Since I was always kinda interested by calendars and timekeeping, that sparked some interest in me. I decided to start the project because I felt like it would be fun to try to come up with something simple to display the calendar.

I chose C because it is a (relatively) straightfoward language, and it is very popular, so basically anyone can understand it.

Initially, the program was really short, but lacked a lot of functionalities. As the time went on, and I felt periodically bored enough to work on it, I decided to sacrifice some simplicity for more useful features.

I feel like now it has gotten to the point in which it is “mature enough”, and could potentially be used by people who regularly use ‘cal’.

Don’t mind the bugs too much. (But of course, feel free to bring them up!) One that I know exists and just haven’t gotten around fixing yet is the overflow handling for my function for parsing integers.

I’m looking forward to know what people might think about it! Any kind of feedback is really appreciated, be it regarding functionality, code style, or anything else!

P.S., You can try it through a Web interface through the first link on the website. Try e.g. ‘greg -yh’ for output very similar to ‘cal’.
I write in a journal most days. It helps me clarify my thoughts and feelings. It is rarely read even by me and, I hope, never by anyone else.
ffmpeg -i video.mp4 -vf subtitles=subtitle.srt -t 300 out.mp4

The above line will hardcode the subtitles onto the video and stop after five minutes. This should give you an idea of how slow re-encoding is going to be on your machine, and what the quality of the result is going to look like.

What you ideally want is that your rendered video has approximately the same bitrate as the original, and the same visual quality. You can play with the -crf parameter to get the quality the same, and the -preset parameter to get the bitrate the same.

For reference, when I'm rendering 720p video I'm getting about 4x speed on my 10th gen Core i5. 1080p should take about twice the time.

I've played around a bit with using the gpu-accelerated encoders in ffmpeg, but I could never get the same quality or bitrate as the cpu encoder, it seems to me that they're tuned for quickly turning raw capture into something that can realistically be streamed and handled.
Huh, but MKV is Matroska, and it's a free-to-use open standard...
Well it's still broken because the broken stuff was never removed, PHP just added new some stuff on top of it. Typing is neat though, but no generics, no private classes/packages so you get the worst of Java "enterprise" OO on top of some dubious language foundations.
I don't quite understand what you're saying. If I'm understanding you right then you don't quite understand what I'm saying.

My claim is that it's disingenuous to say that Uber is exploiting their workers. If you think these are terrible conditions that nobody would ever work under unless they were being coerced you have to grapple with the fact that nobody is coercing anybody to become Uber drivers.

If you think that these are immoral working conditions then what you really believe is that a large chunk of our society is immorally made to live in poverty, and you're blaming Uber but how could this be Uber's fault?

If someone has genuinely decided to accept work for $4/hr and this shocks you so much that you're demanding Uber give them more, you should also be shocked that so many people are currently earning $0/hr if you have any hope of having a consistent worldview.

When seen from this lens the whole argument over SB 5 and Prop 22 makes no sense at all. Stop focusing on Uber, ask your legislators to stop focusing on Uber, and to start attempting to solve the real problem.
I love your real world usage and dare I say "tricks" ?

If I want to learn more about "applied statistics" best source you would recommend that is not dry as bone ?
Cryo-electron microscopy reaches atomic resolution
Link: https://ooni.org/
Stronger Together Workout Review – Does It Work? Find Out Here
You’ve just the Civil Service.
Build websites from Google sheets – Supports scripts, CSS, SEO tags too
The people who invested "too much" in it don't have to defend it. They'll simply continue using it. They'll enjoy the new functionality. If I make millions upon millions of revenue with a PHP application, I don't care if tech nerds dislike the syntax used to build it.
In general, it's a problem to send batteries over (air)mail, but some carriers would accept them.
Most of the bugs or spaghetti code I have to fix this days are not caused by the language, the issue is most of the time the requirements that changed or the developer was not experienced with that certain problem so he created a monster.
Disclaimer: I work for Transloadit

At my job we have an API that lets you do this to "burn in" subtitles onto a video.

A demo for this: https://transloadit.com/demos/video-encoding/add-subtitle-to...
I wish author posted backup of the settings, so I can import them directly into my FF.
Yes, I started with a massive Windows 8 Media center PC in 2003 which evolved to an Xbox1 with XBMC, followed by a couple of all in one PCs which could load standalone XBMC Linux based kernels by 2010.

Around 2015, I switched to having a Synology NAS hold the content with small streaming devices around the house with Plex running on both ends.

But these days 99% of the content we want is on Netflix, HBO Max, or Disney+. We occasionally rent movies via AppleTV. I can get all the content I want more conveniently through these services. And I am rarely debugging the setup during a family movie night while my wife and daughters groan about how my stuff never works.
> This is such a shallow elitist comment. A lot of the common criticisms levied at PHP have been corrected years ago, and PHP is responsible for hundreds of billions of dollars of turnover globally.

So does Java, Python, C and C++. This is also a shallow argument. No language is perfect but PHP still suffer from the same design issues a 10/15 years ago, none of them have been correct and it's perfectly valid to point that out.

> My employer makes billions with PHP. It's not perfect, but it's rock solid for gigantic businesses.

And with C, since PHP is written in C and probably whatever fronts your PHP applications, and with Javascript because you sure ain't running PHP on the client and so on and so forth...
Yep.

https://therideshareguy.com/uber-driver-survey/

Why is it so hard to believe drivers enjoy their freedom? They get to control their schedule. Turn the app on and off. Quit after two rides or drive for ten hours because the hits keep coming.

This is not exploitation. There’s a small number of drivers taking advantage of free lawyers backed by the taxi industry.

But more than anything. If you don’t like ride share don’t drive for ride share. Find a different job. Who said anyone has a right to demand a job to be created their way? Ride share works as it is. If you want a full-time with benefits go get a trucking job. There are a ton of those.
I find it in myself to blame them. They introduced a whole new completely incompatible encoding (or two, because of endianness—and that led eventually to the BOM), rather than going with a scheme that would maintain backwards compatibility with ASCII. Even if it was not yet apparent that UCS-2 would be insufficient (not sure about that one way or the other), UCS-2 should have compared unfavourably to UTF-8, with fixed encoding length being its only benefit—and that, of course, was quickly stripped away with the disaster that is UTF-16 that ruined Unicode for everyone with surrogates, and it took about another 15 years before the UCS-2/UTF-16 mess was resolved nearly everywhere.
As employees, drivers would still get their $15/hour even if they're idle.

Right now,uber doesn't really care about minimizing a drivers idle time,but they'd need to otherwise. Prop 22 would still pay drivers a floor of 120% * minimum wage while they're actually driving in exchange for unpaid idle time,that 20% is a lower bound for how much they'll need to reduce the pool of drivers.

As a response, Uber/Lyft will need to either start assigning shifts or add a limit to the # of drivers that can be clocked in. I know they punish drivers that skip a ton of consecutive passengers, but they'll need to take into account the fact that a driver at 3am probably only needs to skip one or two passengers to get paid for the full hour.
Cold water swimming may protect the brain from diseases like dementia
Syntax is very far down the list of problems with PHP
Would be interesting to see a more detailed breakdown, as in STEM vs "underwater basketweaving" faculty. Could be that schools are trying to shed some dead weight and using COVID as an excuse to do so.
The work office is not the only way to have an office.

In these times, I'm renting a small one person private office a few minutes away (by bike) from home. It's the best of all worlds. Quiet space to work, it is outside of the house for separation, but very close so the commute is minimal on a bike and don't need to drive.

I don't love having to pay for the space but objectively it is less than the cost of fuel I was spending every month on the commute so I'm still saving money. And my commute is ~7 minutes on a bike instead of 60 minutes driving. And I'm so close to home I can come back mid-day to see my son. Win-win-win.

So yes, I'm planning for permanent remote, life is so much better.
Particle Physicists Continue to Make Empty Promises
In other words, forcing universities to operate as businesses thus puting most of their effort in marketing and shiny crap.

Competition is not always good.
> But why? Two people come to an agreement. Who are you to say that you know what they want better than they do?

That's an idea that is centered around individual freedoms rather than maximizing the utility for the most people. This is simply a political/ethical conflict.

My reasoning works like this: I want a functioning labor market, where "functioning" means that the worst jobs are good jobs. So I want my lawmakers to ensure it. I'm happy for them to severely reduce my freedom to make agreements as an employer or employee in that process.

> The cost of labor in SF is so high that it's not reasonable to pay someone to bus the tables. While there I would frequently see a man outside who was clearly homeless.

This problem has 2 solutions 1) let people take worse jobs 2) make social security nets better. Both are required. I can't stress this enough: any change to the labor market laws must come with corresponding changes to welfare.

My view that even the worst jobs should be good jobs is of course coupled with an understanding that this potentially raises the equilibrium unemployment by a lot, so it it obviously follows that I also believe society (i.e. my tax money) should take care of everyone in society who is unemployed. There is an inconsistent viewpoint here: and that would be the one where you think there shouldn't be a massive social safety net but also people shouldn't be allowed to take low-paying jobs. To be clear, that's not what I think. I think the idea of "the worst jobs being good jobs" is a good goal, and that it also must be coupled with a large social safety net.

I realize that social safety net isn't in place in California - so arguing for the change to labor laws is, at least, arguing the for the inconsistent state - but it's hopefully something that can be addressed next. One thing would have to come first.
Yeah, as another user has said, PHP is getting "cooler" (do you get it?). However not only because it is turning into a sort of "Java-like" is will be get heater again.
PHP is fine for its stuff on FastCGI but more further than that, I don't think so, sorry.
There are many of programming language alternatives out there.
What are you talking about? Shooting syrings instead of bullets to incapacitate is one low cost that can easily be deployed. Not to mention a plethora of all other non-lethal weaponry that exists. Another is this, though less economical viable: https://en.wikipedia.org/wiki/Active_Denial_System.

Where there is a will...
> You can’t build websites with Java

The (popular) horrors that are Symfony, Laravel, Doctrine and co were all inspired by Java Web frameworks and ORM.
Sure, you can build a website with anything really.

I just bored of the hating on PHP when it continues to fit the web so well and some enormous percentage of sites are built in PHP.
This is scary. I had an upper and lower endoscopy several years ago, doctor cut out a sizable but not yet cancerous polyp. He told me to get another colonoscopy after three years (or was it one?) but I haven't done it yet. The last time I went to a doctor to do it was maybe two years ago. She said, "You're too young, how could you have had a polyp?" and sent me home with a take-home DIY stool sample kit instead.

I didn't have insurance, so I just ignored it. Now I live in Taiwan where everyone has insurance but I STILL haven't done it. I'll make an appointment today.
I'm smart enough to think up those ideas on my own. Unfortunately I can't get my brain to do them. WFH is a real net loss for me. I can't enforce boundaries on my own, so the natural ones are incredibly important to me.