skysight-inc/HackerNews huggingface dataset:
The version available on apt is older. The performance numbers are from master. I am on a device with SSD now and `nnn` master consistently gives a better performance in 3 runs.

Here are the numbers I see with $LS_COLORS set to:

ex=00:su=00:sg=00:ca=00:

nnn (still shows dir colors as it's designed to):
0.00user 0.00system 0:00.01elapsed 33%CPU (0avgtext+0avgdata 3420maxresident)k
0inputs+0outputs (0major+319minor)pagefaults 0swaps

ls (no colors):
0.00user 0.01system 0:00.02elapsed 60%CPU (0avgtext+0avgdata 3724maxresident)k
0inputs+0outputs (0major+297minor)pagefaults 0swaps

And going deeper, with the same $LS_COLORS, see the difference in the number of calls (no wonder `nnn` outperforms `ls`):

$ time strace -c /usr/local/bin/nnn /usr/bin | wc -l
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
82.55 0.004592 2 1988 newfstatat
8.47 0.000471 118 4 getdents
2.82 0.000157 3 58 1 stat
1.89 0.000105 105 1 inotify_add_watch
1.64 0.000091 9 10 brk
1.33 0.000074 5 15 close
0.23 0.000013 1 14 openat
0.18 0.000010 3 4 write
0.18 0.000010 0 22 2 ioctl
0.13 0.000007 0 15 fstat
0.13 0.000007 1 14 mmap
0.13 0.000007 7 1 inotify_rm_watch
0.11 0.000006 1 8 read
0.11 0.000006 6 1 1 unlink
0.07 0.000004 4 1 sysinfo
0.05 0.000003 3 1 lseek
0.00 0.000000 0 2 lstat
0.00 0.000000 0 10 mprotect
0.00 0.000000 0 1 munmap
0.00 0.000000 0 9 rt_sigaction
0.00 0.000000 0 9 7 access
0.00 0.000000 0 1 execve
0.00 0.000000 0 1 arch_prctl
0.00 0.000000 0 1 inotify_init1
------ ----------- ----------- --------- --------- ----------------
100.00 0.005563 2191 11 total
0.03user 0.01system 0:00.06elapsed 74%CPU (0avgtext+0avgdata 3424maxresident)k
2968inputs+0outputs (7major+541minor)pagefaults 0swaps
0

$ time strace -c ls -l /usr/bin | wc -l
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
32.03 0.004882 2 1989 lstat
30.42 0.004636 2 1989 1989 lgetxattr
22.45 0.003421 2 1548 1548 getxattr
6.57 0.001002 2 442 readlink
6.15 0.000938 235 4 getdents
0.45 0.000068 2 33 5 openat
0.43 0.000066 6 11 munmap
0.31 0.000047 1 34 close
0.30 0.000045 1 40 mmap
0.26 0.000040 2 17 lseek
0.20 0.000031 1 30 fstat
0.10 0.000015 4 4 4 connect
0.09 0.000014 3 5 brk
0.07 0.000011 3 4 socket
0.07 0.000010 0 31 write
0.06 0.000009 9 1 mremap
0.03 0.000005 0 17 read
0.00 0.000000 0 20 mprotect
0.00 0.000000 0 2 rt_sigaction
0.00 0.000000 0 1 rt_sigprocmask
0.00 0.000000 0 2 2 ioctl
0.00 0.000000 0 12 12 access
0.00 0.000000 0 1 execve
0.00 0.000000 0 2 2 statfs
0.00 0.000000 0 1 arch_prctl
0.00 0.000000 0 1 futex
0.00 0.000000 0 1 set_tid_address
0.00 0.000000 0 1 set_robust_list
0.00 0.000000 0 1 prlimit64
------ ----------- ----------- --------- --------- ----------------
100.00 0.015240 6244 3562 total
0.04user 0.06system 0:00.09elapsed 114%CPU (0avgtext+0avgdata 3676maxresident)k
0inputs+0outputs (0major+521minor)pagefaults 0swaps
1989
According to a military study referenced by William Dement https://www.youtube.com/watch?v=8hAw1z8GdE8?t=29m it is 8h:15m +- 50min
Really? That really surprises me given the free market arguments that he and others bring. Do you happen to have a specific example of him arguing this?
At Metabase I think we've found a nice middle ground with our "Toucan" library for Clojure: https://github.com/metabase/toucan
You should also get credit for the number of lines of code you read every day!

Some days you read pages and pages of code, but don't write a single line.

However, that makes it possible to figure out just the right 14 lines of code to write the next day, by reusing instead of duplicating code that's already there.
> I am European with direct experience with around 20 governments of the union; I've never visited the USA

You've got me there. You just didn't correct my earlier assumption, so I carried on.

> One involves politics, lawmaking, ministers, directors, budgets, projects and governments and... And one does not. Pretty huge difference.

Every human organization involves politics. And every non-profit organization requires a budget. The rest of that jargon is only semantics unless you're actually opposed to structure.

> I already suggested IPFS, and there are more solutions to distributed data than you'd like. Choosing government for your purposes is about the worst thing you could do, even the government rather uses Amazon. My current government exists mere 30 years and each switch was accompanied by literal record burning. The previous communist phase lasted 40 years, and the one before that 20 years.

IPFS isn't an organization that can manage itself as a proxy for humanity's interests. (Also not sure why you're dictating what I'd "like" here)

Edited to add: Yes the government might employ external services for run-time business. [For the most part] governments don't often rely on one source for services like that because of the need for persistence. Governments are often rigorous and slow because of the need for surety. It sucks and I'd never want to work inside of it, but it works [and some people thrive in that environment].

Also added: Your government doesn't change that quickly. Your current administration does. That's the part that illustrates what I'm saying—the people can change dramatically while the system may not. It's a bug in some contexts, but a feature in others.

> Why not Wikipedia or similar? That's what I am suggesting, basically

Sure. That would be a good start. Wikipedia is young, however. There is merit in something lasting long enough to be considered old.
What's your experience with running your server non-locally? Not judging, just curious as usually those that DIY their home automations are also into homelab stuff and setup a spare laptop or something for the server.

Derp - You're a cloud consultant, oh okay haha. I'm guessing your home ISP network is pretty reliable then? I'm stuck on con-cast so unfortunetly I have to be prepared for occasional high-packet loss/no internet situations. They're fairly rare, but I want to make sure my lights can be controlled 24/7
This is such a great setup.

Maybe if we just put 10 of these mini-controllers in each home, we can cover the majority of electricity consumption, and get demand flexibility the cheap way (instead of fitting each home with an expensive smart meter).

(Obviously the cloud/app parts will have to be centralized with consumer opt-in and preferences etc..)

Have u thought about this ?

Has this approach been explored ?

great project..
We're missing a lot of context about this situation to tell if anyone was being unreasonable. A reminder for everyone: unless you're all in on waterfall with complete specs, user stories are placeholders for a conversation. Talk to each other and assume good intent on all sides until proven otherwise. You'll have a much more enjoyable work experience than if you dig in and make things adversarial.
> That really surprises me given the free market arguments that he and others bring.

Tucker Carlson holding inconsistent positions shouldn't be the slightest bit surprising.

https://dailycaller.com/2018/09/11/not-the-capitalism-i-sign...

> “So that’s the crux of it right there,” said Tucker. “You are hearing Google, or you have for the past ten years, Google, Facebook and a number of other companies defended on pro-market grounds,” Tucker said before making the point that a “monopoly changes the calculation completely.”
I never implied that it wasn’t an interesting idea, and your weird defensiveness suggests to me that there might be a common thread to your getting repeatedly dismissed/downvoted other than misunderstood genius.
Expensive laptops have the same exact known issues.

My last windows laptop, the HP Spectre x360, was about as much as a MBP had a track record of failing motherboards.

My old Zenbook, also in MBP pricing range was known to have the hinge fail.

You're making the same mistake that my mother makes, assuming a "dollar's worth" of laptop is fungible.

If you spend 400$ on a laptop, it's not enough that it only be at least 1/3rd as reliable as a 1200$ Macbook Pro. Every time a laptop fails there's a cost outside of just getting a new laptop, like transferring all your stuff, not having a laptop, etc.
See the Best Cheap VPS Servers Windows and Linux in 2019
If you depend on an open source project, and can articulate a problem with it that can be fixed, then I do feel you should file an issue to contribute your insight.
Btrfs has such a bad rep right now, but because such comments like yours lack any specifics I don't know if I should worry if all my systems with a simple btrfs root partition are going to spontaneously corrupt one day. Can anyone give concrete examples of what's wrong with btrfs?
Thanks for the response & clarification, I'll give the blog post a read.
My experience with Zabbix has been positive. I deployed it 3 years ago and it's been solid since then. It monitors a few dozen CentOS VMs and a bunch of JBoss/JMS instances.

One feature I particularly like is the zabbix_send command, which I use to push the status of shell-scripted Borg backup jobs into Zabbix.
No mouse discussion would be complete without mention of the greatest mouse ever made, the Logitech MX Revolution. Logitech would truly outshine themselves if they merged the MX Revolution and the G602.
> At the end of the day, the only person who is responsible for it is you.

There are rules about fraud and fiduciary duty and disclosure which make blanket statements like this incorrect.
Limited Work in Progress tries to address this. The longer a task takes the more scrutiny it gets from hopefully sympathetic individuals. If you are chasing your tail, after a week or two someone who understands what's going on will unwind you and set you up to complete the task.
> no floating point arithmetic

Does it really makes things faster? I cannot find enough motivation to test it myself, but after I've read Abrash's Black Book, I got impression that floating point operations are at least as fast as operations on integers and in some cases they are faster.

While I see reasons to not use FPU, I believe that speed is not among of them. At least on x86 where a fast hardware implementation of floating point numbers exists.
This is exactly what I started writing before I saw your post. :)

(Does that make this a discouraged “me too” post…?)

TFA correlates _more_ sleep with increased mortality, but barely speculates on cause, and lumps too much, and not enough sleep together in discussion. With respect to the question of how more sleep might be bad, the article states: "[...]one can speculate that these folk, who have lower moods and more worry, might struggle to get to sleep or to get up promptly in the morning. Lower scores on extraversion were indirectly linked with increased risk of death, thanks to an association with greater daytime feelings of fatigue (perhaps extraverts’ greater daytime activity levels makes it easier for them to get a satisfying night’s sleep, but this is speculation)."

Anecdotally, I think sleep deprivation increases my neuroticsism and decreases my extroversion, so I feel like positive feedback could exist. This makes it harder to do the things that seem to me to improve sleep and mood, like aerobic exercise, exposing oneself to natural light cycles, and other people, and keeping a consistent personal routine. I feel like I have spent periods in a meta-stable state of insomnia after pushing myself too hard because of crunch time, international travel, etc.

I suspect that "excess" sleep may be correlated with chronic health problems like mood disorders (like depression), or auto-immune disorder. These problems are known to be suggestively correlated with each other, and also with sleep problems.

This stuff seems complicated enough to be pretty hard to figure out, and I think you are right to be skeptical about the direction of causality. Pretty sure not sleeping enough is still bad though.

(edit: flow/clarity)
One step before that is Hanabi: https://arxiv.org/abs/1902.00506
Testing Building Blocks – Threat Modeling
Maybe email the author of this blog post and ask for her advice.
Three months ago I found myself in yet another discussion with a PM about time estimation. I gave him an analogy I use for non-developers, where you try to estimate how long it will take to pack a kitchen into boxes for moving, the catch, I said, is that there's a significant chance each time you open one of the cupboards or drawers there might be a whole other kitchen or even house behind it.

He responded with, "well, we just have to figure out which doors have kitchens behind them, that's all!"

But during this discussion, I could feel the weight of the countless times I had already had a similar discussion in the past and it was heavy on my soul. Seriously, it feels like we've made no progress at times.

Even here, at HN, I've several times brought up the paper "Large limits in software estimation" and been downvoted as not getting it.
no idea. my experience was this one only in 10+ years of freelancing
Control flow feels like one of the more trivial parts of automated refactoring, because that's straightforward AST modifications?

No. The AST part is wrong. Compilers do decompose code into basic blocks. Even the most spaghettified code decomposes into basic blocks. Any language with tail call optimization can handle the basic blocks rewritten as functions.

That won't get you to "clean" however.
How do you like the nRFs? I've been all over the ESP8266/ESP32 since it came out, they're crazily versatile chips!

I've been interested in Lora/nRF/LoraWAN for some of my low-power further range projects. I'm just curious as to how they compare to the ESP's.

Also, how do you power your projects? I'm considering buying 6+ usb bricks, but I'm skeptical of non-brand name ones, and brand name bricks are expensive. After watching BigClive though I'm sure I trust any non-brand name ones....
Interring story. 7 warning dialogs were funny. I guess they were under so much stress to delete the nuke pictures that their mind automatically filtered out any obstacle.
Sophisticated attackers target everything. Desktop Safari is a much softer target than Mobile Safari, and, while flagship Android devices can be made asymptotically as secure as iPhones, the median Android phone held by a campaign staffer is much less secure than the median iPhone, which is something you quickly discover when you see the menagerie of devices campaign staffers use.

The two biggest threats campaigns face are phishing and attachments. There are two good ways we know of to break attachment attacks: view attachments in cloud viewers, like Google's PDF viewer, or view them on mobile devices, where they can't trivially be clicked into monstrously insecure desktop productivity applications. Of the two approaches, the latter --- sticking to mobile devices --- is the one that can be deployed with the least amount of end-user training.
Could you elaborate a bit on what was awful about it?
Apple TV and airdrop.
Late 2017ish, I bought a new MBP from Best Buy. As I was completing the purchase, the store manager came out to thank me personally for my business. I've seen zero evidence that anyone working in an Apple store cares that much about the customers.
True that, but that can be completely true, and yet it can be also true that having it imposed by the courts leads to a backlash, and an increase in anti-gay bias.

It is sort of like how people never like it when their candidate in an election loses, but if the courts intervene and disqualify their candidate, their resentment of the winner is greater. Regardless of whether the courts were right or not, the fact that a non-electorate authority made the decision, increases the dissatisfaction with the outcome.
Ask HN: Anyone Fasting Ramadan?
I'm lucky I work from home, so its been easy and I don't feel tired or hungry.

How does it feel for you? What's the hardest part for you?
Sometimes it's completely obvious that a design decision is flawed.
Taleb is unreadable. I have to wipe my forehead of the vituperative spittle after every paragraph.

Cosma Shalizi has a much better critique, although it too has some flaws: http://bactra.org/weblog/523.html
I actually had the full number typed out (and you can see it when you link to the article), but either someone edited it or it's a feature of the site to format numbers automatically.
I wonder how people of Vietnamese heritage would feel that you are characterizing their country as synonymous with war and disaster? IIUC Vietnam had been a relatively peaceful country for almost 50 years.

Not coincidentally ORMs have been doing great since that silly article was written so many years ago.
Then the game will be that Goldman offers you more cash if you go to them first, sign the NDA, and never talk about the loophole again.
My choices are as follows.

* Linux:

# Tilix - probably the best option in terms of performance, customization, looks and features.

https://gnunn1.github.io/tilix-web/

# Extraterm - in my experience the best electron-based terminal emulator in terms of performance. It has some neat features too. I catch myself using it more often than Tilix.

https://github.com/sedwards2009/extraterm

* Windows:

# CMDer - pretty much the only option. Has everything one needs, even built in bash on Windows. Useful on Windows 7 PCs at work that don't have WSL or admin rights to install more stuff.

https://github.com/cmderdev/cmder

* MacOS

# Plain old built in terminal is actually nice ;)

# Extraterm is alright too, but it's electron based and the old mac-mini does not really like it.

# iTerm 2 - never got around to fully configuring it, but everyone swears by it.

https://github.com/gnachman/iTerm2
Based on my experience, I can say that after very difficult strength workout like rings, 1 arm pullups, iron cross, etc., there is a huge difference in recovery on the days that I sleep 11 hours vs. the days that I sleep 8 hours only.

On the other hand, sleeping less than 8 hours a day is devastating (check the book 'Why We Sleep' for details)

Moreover, I've read that this was known among 19th century strongmen (Eugene Sandow slept 11+ hours a day).

So whatever happens during sleep, we need more of it (if we stress our body more).

I highly doubt that in itself (sleeping more) is detrimental in any way.
HTML Colors
That mouse, like almost every other mouse made by Apple, is junk.

Now the Magic Trackpad, and the trackpad on the laptops...
Isn't swap basically expanded memory while using DRAM as cache? It seems like this could be just a different way of operating that cache.

I wonder if this new feature would be used with swapon/swapoff or if it would need a different interface.
For my money your type provider was the single coolest one I've seen before. The ahead of time query execution and planning is a killer feature, and for us the only gaps were either process related, meaning we did not have a good out-of-band migration pipeline, or some constructs that were not understood by your type provider.
In Europe theres regulations over labelling etc.

In the UK if you buy a 'pint' of milk it will still be labelled 0.568 litres.

Presumably there are some rules in the US also, or labels could just use some obscure measures that hide what a product contains.
You don't need ORM for simple CRUD operations. All you need is a function you can pass a table name and a map of column names/values you want to insert/update.
I developed wrist pain from using that mouse. I wish Apple would care more about ergonomics.

Microsoft and Logitech have a couple of really great devices for people who have joint issues. And with programmable buttons, most of the gestures aren't really necessary (the only thing I miss is the nice horizontal scrolling)
Filled with people waiting on support issues for devices that "just work". That should tell you all you need to know about the current Apple Store.
I'd love to read a "cryptographic doom principle"-esque latacora blog post on all the failures over the years of not using your OS provided CSRNG.
If I recall correctly, the odds of you having that gene variant are somewhere in the realm of getting struck by lightning.

Also, Margaret Thatcher went on to develop Alzheimers.

https://www.nih.gov/news-events/nih-research-matters/sleep-d...
Css-only-chat: A truly monstrous async web chat using no JS on the front end
That knife cuts both ways. I am fundamentally a clever lazy person. I'm always looking for ways to reduce the amount of accidental complexity I have to do, and reduce the number of trivial interruptions I get by documenting the situation a little better every time someone asks me about it, until the rate drops below my pain threshold.

If it weren't for schedules I'd have no defense at all for 'wasting time' on something that saves each of my teammates an hour of pain per week. (I've had a lot of shitty managers. Stuff like this shouldn't need a defense).
I'm curious, is this a common problem? At least here in Michigan, our electric company essentially replaced all meters with smart meters for free, unless you choose to opt-out.

Power-measuring outlets do exist, Belkin has one under the WEMO brand for example. It's just that it generally makes far more sense (for the electric company) to put the meter in one spot, instead of every outlet.

You still have to have the mini-controllers communicate with the power company though, so I'm not sure what problem you'd be solving?
Czech Republic proposes the highest digital tax rate in Europe
Little Caesar's Pizza Portals are exactly this, there's probably 5 of them within 15 miles of your location.
I wonder whether the link between sleeping less and eating more (or for longer hours) has been studied.

What if you sleep only five hours but restrict eating to the same hours as someone sleeping seven hours?

If sleeping is about giving the body a break, it seems pretty obvious that not eating would be a major part of that.
I pulled them into a Golomb Compressed Set: https://github.com/Freaky/gcstool
> we always include time for writing automated tests in our estimates. It can slow down initial development, but it greatly improves the efficiency of operating and maintaining a software system. It isn’t until a system grows that you truly start to feel the pain of not having tests, and by that point it can be a monumental task to work tests back into the system

Not only this, but also: I've recently come to understand the idea that allocating enough time for writing unit tests and integration tests, tends to uncover design issues. If a test is taking longer to write than it seems like it should, or if a particular method or bit of functionality seems harder to test than it was to write, that is a signal that you may have a design issue!

Writing the automated tests will help you find out when you have written some code that stinks, if you know what to look for and have the time to step back and think about it. It's called "Red/Green/Refactor" for a reason, it's not "Red/Green/Red/Green/Red/Green" – if your estimates only allocate enough time to write the feature and nominally prove that it works, you're missing a critical part of the TDD pattern and you're not getting nearly as much long-term value out of your tests as you could.

If you don't write automated tests at all, it's even worse, because those design issues will only show themselves when it's time to make a change, and your bad design is now standing in the way, preventing you from iterating quickly when you really need it.
I really hope for Detroit's benefit that the warranty was provided by some underwriter, and not from Leotek itself.
Pretty much seems so, doesn't it?
At least two!
Get your Html Color codes with our color picker, HEX code, RGB, RGBA, HSL and HSLA values, including HSV, HWB and CMYK. Go pick!
How do people use Alacritty as a daily driver when it can't open more than one window?
Seriously why did they not up it to 4.19? Do they hate bicycles? Do they make money based on the fact that upstream LTS kernels have short shelf lives compared to RHEL's own LTS kernels?
FCC Battles 'New York Times' over Net Neutrality Comments