skysight-inc/HackerNews huggingface dataset:
> while s := network_service.read():
> process(s)

Watch out with this one though. In this case it's good, but if you receive numbers from such function, it will break loop not just on None but on 0 as well. Easy to forget.

In many cases you'll need to do:

while (s:= ....) is not None:
ساخت حرفه ای عکس با ابزار استوری
Amazing, this is exactly what I was looking for. Thanks!
I would agree to it being difficult. I have been struggling to recruit few good React/(and/Or) JavaScript Developers for my startup.

Few reasons I have come to realist are:

- React devs make more money on freelance gig than full-time jobs.

- Readily available more jobs than candidates on the market. If I offer $X00K/y, there are others who are always ready to pay more as counter offer.

- React landscape is moving faster than any other technologies out there, putting devs who are up to date on the edge.

I have also started training the new hires who were interested. But as the fate will have it, after learning ReactJS and other few things - most developers left for better salary.

The fact is, I am situated in Nepal and can only pay using Nepalese Rupees salary doesn't help much.
Fixing formatting for above:

if exp ~ ('mask_shl', int:size, int:offset, -offset, :e): ...

vs

if type(exp) == tuple and len(exp) == 5 and exp[0]=='mask_shl' and type(exp[1])==int aand type(exp[2])==int and exp[3] == -exp[1]:
size, offset, e = exp[1], exp[2], exp[4]
...
Shops being closed 14-16 used to be a thing in Israel when I was a child, now with the introduction of air conditioning and modern work ethics it's not really a thing anymore.
everybody is equal but some are more equal. try to identify people with ties to hr/ management and try not to step on their toes. no need to be overly friendly, just be careful around them

two people you need to be always friendly with are the facility manager/ janitor and the reception person. they run the place. thats how you get a better chair or get your amazon packages accepted

dont try to suppress your personality for too long, forget about stuff "yeah i would have liked to speak up about <issue> but im just here for a week, i better wait couple month then ill allow myself that" people notice changes in behaviour (mostly as negative), and in two month you will have an established position in the social hierarchy. if you are a loudmouth, be loudmouth from day one. "the new guy is a loudmouth" will get easier pass than "you noticed? bob is turning really arrogant lately/ since his promotion"

some sitting places are vacant for a reason: smelly colleague or malfunctioning ventilation unit blowing cold air at you. choose wisely before you get stuck in there

dont take shit from others, dont overwork yourself or you will be the "he works an hour more anyway" guy

take your time to learn and read and research twice. take notes of everything you are shown and taught about the thing you work on. be it stuff like "you need to kick the server here to keep UPS from failing" or "dont change spaces to tabs in this file, it will break the build" passing remarks like this are the most valuable insider knowledge there is

remember that you are a social animal and so are others. spending an extra half hour joking with colleagues after lunch is done, instead of leaving the table immediately, makes quite the difference
Over 30 degrees most of the year? No way this is true.
This seems relevant here, in his own words:

> Don't be discouraged if what you produce initially is something other people dismiss as a toy. In fact, that's a good sign. That's probably why everyone else has been overlooking the idea. The first microcomputers were dismissed as toys. And the first planes, and the first cars. At this point, when someone comes to us with something that users like but that we could envision forum trolls dismissing as a toy, it makes us especially likely to invest.

---

Related: https://blog.ycombinator.com/why-toys/
90 mins? Most of the afternoon naps I do tend to be short - like 15-25 minutes, and that generally refreshes me enough to feel "restarted" for another few hours. I can get through the rest of the day pretty good on that. "Rest of the day" being doing "thinking work" for another few hours - I'm not trying to get another full day or work (or even socializing) after that.
Only JPMorgan Can Fill WeWork's $47B Hole
I don't think they have in this case.

> Burns has worked on his design in private, without any sponsorship from NASA
Good call. AppCleaner is better than AppZapper in almost every way. I used AppCleaner to delete AppZapper. :D
I still pay the annual dues, but I never attend the meetings (too busy. And also, I don't want to). Well, sometimes there's an interesting article in the monthly newsletter... but not often.

They do, however, give you a handsome plastic membership card you can "accidentally" fling onto the table at restaurants when reaching for your Amex, so, that's nice.
See their official facebook page

https://www.facebook.com/pg/secretsoftheice/posts/
I found the history of front-end vs back-end video processing especially interesting. We've become so used to doing everything on the front end and buffering it. New use cases in AR and VR are pushing engineers to change their approach.
I've extensively used itext with no issues on core
Related: International Maritime Organization (IMO) rules for garbage discharge overboard from ships...

http://www.imo.org/en/OurWork/Environment/PollutionPreventio...
I see in this scenario Google as more of a natural monopoly. They really only got into censoring recently. The more people they alienate the bigger the opportunities for competition. A natural monopoly has the ability to fail itself out of the market.
That's the other kind of nap, where you don't actually sleep. That's fine too. The point is that a lot of people will sleep, but set their alarm to wake them up in the middle of their deep sleep and then be surprised that they are so groggy.
Why not just ask the user for permission for all APIs that interact with hardware?

Not all apps need it, and the ones who do, should be able to explain why.

The Battery API was removed due to fingerprinting concerns, but a permission-asking battery API would still be helpful to bring web apps closer to native apps.
It's java. Dynamic code generated by a jit.
SharePoint/Office 365 Solutions
I've used MacOS for almost 10 years, and I wasn't aware of cmd+`. My pain point with cmd+tab has always been that it's just switching between applications, not windows.
I won't read any article with a subject line containing "may" because it may not (or MAY) be accurate.
> Every ordered finite set has a maximum;

Only if the order relation is total, which I'm pretty sure is not the case for romantic compatibility.
Synology NAS:

Unifi controller
Miniflux
CouchPotato
DSMR Reader (software that logs smart electricity meter data)
Gitea
Deluge
MySQL
PostgreSQL
Cloud Storage mirror (for Google Drive backup)

Intel NUC:

Full Bitcoin node
Bitcoin lightning node

Remote (Digital Ocean):

Trading Software
Various PHP websites
You can also use something like Peertube or another implementation of WebTorrent.
There is less mismatch between ZFS and WinNT IO model than between ZFS and Linux VFS.

Sincerely, someone who had to port kernel level code from Linux to NT.
Reddit and Gab's most toxic communities help train AI to combat hate speech
It almost seems that theres a business opportunity to start a site where independent creators can publish content deemed not mainstream enough for the major networks.
Oh wait..
Interesting, thanks for the lesson.

Keybinds like these are amazing with spatial design such as Finder, Nautilus, or the way Gimp worked before it went with the Photoshop redesign.
Braille Music
Building an AI platform to deploy intelligent chatbots
Thanks for correcting.

True that 5 mins per ticket is too less. But I don't think any paid tech service has 1B customers. (users yes, customers, I don't think so).
And then import from past to remove warnings if you really want to use those constructs without warnings. Next time, feature would be removed or a depreciation warning when used with from past.
It surely will and it should.

Here is link my friend texted me about a news:
`https://www.google.co.uk/amp/s/www.nytimes.com/2019/10/12/sp...

Notice, she was sending me a link of NYTimes.com not Google.com. AMP has highjacked the content. I did fair bit of research and learning on AMP before deciding not to offer it to my consulting clients and also made company wide policy to refuse the service.

Not just web, AMP, and Google for that matter is also trying hard to push into Email domain. Aside from monopoly - this technology brings intrusive mechanism for many unintended parties.
Learning Wi-Fi Connection Loss Predictions for Seamless Handovers
There are multiple models by sony, onyx and others that are exactly that:

https://goodereader.com/blog/reviews/onyx-boox-max3-review

Quite pricey though.
5G Mobile Networks: A Systems Approach
It doesn't differ from that, but in languages that assume the presence of a tracing GC, that pattern is only used for resources other than memory.

And therefore you can't (as far as I know anyway) compile arbitrary C#/Java/JavaScript libraries down to reference counted COM in order to make those libraries available to C++ or Rust code.
You've not used e.g. Google Maps and have it switch to dark mode when you're driving at night or through a tunnel?

But regardless of whether this can be useful or not, why not just let the OS/browser on behalf of the user enable or disable dark mode, by choosing the appropriate CSS? Because as someone else has already pointed out, having the app "guess" whether I want to enable automatic dark mode or not, rather than just obeying my settings (perhaps I always want it on, regardless of ambient light?) is just stupid.
I use one of these [1] for work. The software which comes with it asks you to specify an fps when setting up an exposure. Typing in 66 Mfps always feels a bit dumb!

[1] - invisiblevision.com/products/ultra-high-speed-framing/
Every european society had this kind of change though. Norway isn't unique.

Here's an Italian movie from the 1970s, showing a family in a large slum around Italy.

https://m.imdb.com/title/tt0074252/
If you gain dominance in a city, you've got a real advantage. The reason is because you can aggregate demand and supply. Once you have enough scale the problem turns from "Get one person to deliver one meal to one location" to "Get this person to deliver these 5 meals from this restaurant to these 5 apartments". Suddenly, you're doing 5x the deliveries for only 2x the cost of transportation.

The game becomes a matter of how efficiently you can map multiple orders to a single delivery driver and the more demand you have the more likely you are to be able to allocate multiple delivers to a specific driver. The more orders you can allocate to a single driver the more margin you have.
You comparing marriage to a job is insanity.
I find structural typing is mostly necessary when someone messed up and used a class where an interface should have been used.

I'm now currently in the position of having to decide whether it's better to accept defeat or use T4 or similar to write the 1000+ line wrapper class to undo the mistake... You'd think Microsoft would at least remember to do dependency inversion through interfaces in their own C# code.
Billions to Disappear as Britain Goes Electric and Loses Fuel Taxes
Thanks, that is a great explanation! I will give it a try and see if it improves my life at work.
Agree. It snows in Santorini winter...
Show HN: Auto Subtitle Videos
"let the people migrate"

You'll notice that many Syrian refugees trying to reach Europe were not allowed to migrate there, nor the asylum seekers currently trying to reach the US through Mexico.

This is not new. Jews trying to flee Europe before WWII were also prevented from migrating. Chinese people were prohibited from migrating to the US. Many people resist economic migrants, to the point of wanting them killed. "Build a wall", etc.

So the question isn't "why stop now?" Why have we stopped over a century ago, and what must be done to allow migration?

But that's still not enough. I pointed out the Dust Bowl for a reason. The Okies who needed to migrate were discriminated against, even though there were no legal reasons to prevent their migration. Quoting http://americanexperience.si.edu/wp-content/uploads/2015/02/... :

> The mass of migrants that arrived in California did not receive a warm welcome from the state of California, which was already overwhelmed by the amount on people on the state’s relief roll. They were met at the state border by patrolmen who told them to turn back – that there was not enough work for them in California. Additionally, the established population of California was hostile towards the migrants due to differences in regional culture. They viewed the Okies as culturally and socially inferior, backward and uneducated – a view echoed in Steinbeck’s Grapes of Wrath. The term “Okie” originally had the derogatory connotation of "They were hungry, and they were fierce. And they had hoped to find a home, and they found only hatred."—The Grapes of Wrath
“poor, white trash.” As the character of Tom Joad stated in The Grapes of Wrath, “Okie means you’re scum.”

So when ThomPete writes "Migration have always been a fact of life and we have always managed to deal with it", that seems to include the Okie experience as one of the ways we deal with it.

Is that experience what the Miamians of the 2060s might have to look forward to?
I'm surprised this isn't closed as "not constructive".
Debian to Further Deprecate IPTables in Debian 11 'Bullseye'
It's not really a dilemma.

Do you know what will happen with such an optimization? The pattern will be reinforced and you will end up with something like a civil war. At some point, your company will suffer because people will be busy shooting each other.

The movement towards fixing discrimination did not emerge because old folks were bad and the new folks are better people, it emerged because people recognized the issues it creates. It adresses the same issues that anti-competitive practices of the monopolies create: destruction of the market for short term gains of a single company.
I loved that era of VW Scirocco but they were awful apparently. The Renault 5 GT was THE car to have around my parts.
Where can I observe these magical laws you speak of?
This comment just seems pedantic, like when people complain that a 'free [thing]' is never actually free because taxes or some other product paid for it. Everyone knows that free in that context actually means 'no charge for the user at the time of transaction' but some people feign being obtuse so that they can nitpick.

Obviously it means that it violates the laws as we currently understand them. I know it means that, you know it means that, so what's the actual problem?
It makes no sense to me either. When you reply to a person, you never use a pronoun apart from 'you' when you refer to them.
Try criticising corporations, especially the one you work for or the one the company you work for works with.
The range of a car can't change by several orders of magnitude in normal use, unlike sizes of files.
> If suddenly everyone else's IQ jumped 50 points, the society would then change to reflect this new increase in intelligence...

Nah, pretty sure you'd see a complete collapse of civilization if that were to happen.
It is hard to imagine why anyone would want to generate blog pages on the fly, but somehow it is what everyone does.
Yes, this would certainly be allowed in China. /s
The prefix is just a shorter hash. It specifies a set of urls. The urls that have a hash which begins with that prefix.
Your second use case is actually already covered in Python, assuming you have some kind of sentinel value you can break on:

for s in iter(network_service.read, ''):
process(s)
Option C: remember that it's 21 century and turn the AC on. Lived in Israel for a few years with the same temperatures, never seen anything close to a siesta (except the shabbat, of course, but that's a completely different thing).
re.search is different. re.match matches from the beginning of the string, while re.search matches from anywhere in the string.
A swing would need gravity or some other driving forces for momentum.
I'm clearly retarded since I'm happy all the time and I have no physical disorder!
Women who don’t leave tech are selectively blind
Few years ago I wrote this thing: https://github.com/adh/py-clos

It can also do dispatch on multiple arguments and on equality and has dispatch cache implemented as C extension (from my rudimentary measurements it seems that dispatch with cache hit is actually slightly faster than normal CPython method call).
“BriansClub” Hack Rescues 26M Stolen Cards
Introducing split diffs (2014)
I really never digged into this, but isn't they already provide an option to do this? [0] And there is even an option to setup verification server [1]. I get it's not perfect, but they have limited resources and someone have to work on such feature full time.

[0] https://f-droid.org/docs/Reproducible_Builds

[1] https://f-droid.org/docs/Verification_Server/
I'm highly sceptical of this meme online that office workers in Scandinavia, Germany etc quickly get their work done and focus on productivity and leave as early as they can each day instead of waiting till 1730 or whatever. I know better now that this doesn't actually exist anymore these days.
https://www.vox.com/policy-and-politics/2018/3/21/17144748/c...
I remap that to Option+Tab and never looked back. It's trivial to change between apps using Cmd+Tab and between individual windows "inside" the app with Option+Tab... Can't really see much point in over-engineering the solution.
Issue 127340: FileSystem data is not cleared on exiting the browser (2012)
This article should be more accurately titled "Mensa membership associated with mental and physical disorders, research suggests"
According to https://www.python.org/dev/peps/pep-0554/#provisional-status they should already be present in 3.8 for evaluation.
I think it is a self-correcting mechanism: adopting a new language comes with the substantial overhead of learning it, possibly rewriting existing code in it, etc. So if the benefits of a language outweigh all the mentioned burdens, then the users are willing to switch. Therefore, today the new language with mass adoption ambitions must be significantly better (Julia comes to mind as an example) compared to existing alternatives
Clearly the facts are not the problem. My guess would be that Rust fans are unusually thin-skinned. Let us see...

In the meantime, it would not hurt even Rust fans to learn more about how Grand Central Dispatch works.
Cold?
Does cannabis use increase anxiety disorders? A literature review
This is very, very neat and not requiring excessive setup, which would be needed with practically any kind of ML procedure (manual annotation - probably defeating the purpose, handling structure). Fitting around 1000 booleans is indeed not much of a problem.

Would you mind sharing how many rows was it? I know it's probably possible to reverse-engineer it from other information, but I think it would be illustrative.

Also, this fragment is interesting:

>Whilst integer programming is NP-hard to solve in general, these problem instances are not pathological instances

Could this kind of tabular data have turned out to be pathological? Would it mean that constraints cannot be met and we had to search the whole space to ascertain that? I imagine these general solvers don't do specific heuristics when searching.
Exactly what I was thinking, kinda baffled that this guy is an engineer at NASA.
This is a quote from the article.
SyncThing is pretty useful for copying files automatically between devices. It can be configured to say have every photo you upload automatically copied to another computer. It was a little tricky to try to make sure that when photos were deleted from the phone they weren't deleted from their backup/photo archive. I think I got that working. Just make sure you document your setup so that you can easily provision new devices when your setup changes. Might I also recommend getting some photos printed individually or in a book. The longevity of physical objects and accessibility of them is pretty hard to discount. It will also help your kid to be able to look at them as they grow older.
I was skimming for a response like this... in my head it was more like

"People who join Mensa are more likely to be part of socio-economic groups that self select to have doctors diagnose physical and mental issues no matter how minor"
it appears to me their current leadership also would have said <<they‘re one of our biggest platform drivers. let‘s just put flash on idevices. screw „the right thing“. also, money money money!>> when adobe was bitching and mourning.

sure, there have been issues under jobs. but those were of different quality. cook counts beens and has no balls. schiller goes on stage and says „courage“. ive has nobody measuring his and his teams ridiculous design decissions — flat it must be!

i would bet money steve would have put the iphone 6 down, notice it wobbles, pull up his eye brows and sent the team back down the design bunker telling them not to emerge until that bullcrap is fixed.
You can also use that pattern for memory management in .NET.

For example stack allocations and unmanaged memory handles.

.NET COM interop take care of exposing .NET classes to other COM aware languages.

https://docs.microsoft.com/en-us/dotnet/standard/native-inte...
My goodness.

Recently I went to play a game on my laptop, something i don't normally do. I'm not even normally a windows user.

It has this 'feature' where if a key is pressed then it disables all mouse clicks for X number of seconds. This is to prevent a forearm from tap to clicking on the touchpad while typing. Absolutely makes sense.

Only... I had a mouse plugged in. It disabled a physical USB mouse from clicking after a keypress. Even after disabling the touchpad entirely it continued this behaviour.

After some Googling there should have been a switch in the modern Windows 10 style mouse config. But it wasn't there.

More Googling, "go edit this registry key" but i didn't have that registry key.

More Googling, the registry key depends on your touchpad driver.

More Googling finally found a way to disable it globally with regedit.

#1 Why was the switch not available in the mouse settings
#2 Why was it applied to a usb mouse
#3 Why did the registry key differ depending on mousepad driver.

Just a nightmare.
Did you take a snapshot before performing the upgrade, and did you try to restore the previous snapshot before the reinstall?

Curious if snapshots can protect you even as far as OS upgrades gone wrong. I'd assume they can, if all filesystems are ZFS + snapshotted.
I think "predicate" is the original meaning of that postfix.

Emacs Lisp, at least, can use question marks in names without batting an eyelash.

I see no reason that would not have been true for Lisps generally since their birth.
> the mass of relativistic particles does not increase as velocity increases

What are you talking about? This stuff was taught in high school to me:

m = m0/√(1 − v²/c²)
There aren't scholarly sources on this stuff. Just stop by sometime and read the drivel.
Smmry, the Algorithm Behind Reddit’s TLDR Bot
Five Famous Musicians from Maine
I'm currently building an open source (not copyleft) PDF library for.NET standard [0] and I'd be interested to hear more what you need on the document generation side.

The current generation API for my library is extremely limited because I've never needed one but you are the perfect market research participant. It's an API I'm actively looking to improve.

PDF/A compliance is probably quite a way off though.

[0]: https://github.com/UglyToad/PdfPig
[1]: https://github.com/UglyToad/PdfPig#document-creation