skysight-inc/HackerNews huggingface dataset:
Plus `ask_yes` if you want to ask if user is sure.

ask_yes () {
read -r -p "$1 = Are you sure? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
return 0 # true = 0
else
return 1 # false = 1
fi
}

Plus `countdown timer` to make user think about what he has done, before he does it. (Code is a mess cause i used some snippet then created another from it)

countdown_str () {
# countdown "00:01:00" # = hh:mm:ss
IFS=:
set -- $*
secs=$(( ${1#0} * 3600 + ${2#0} * 60 + ${3#0} ))
while [ $secs -gt 0 ]
do
sleep 1 &
printf "\r%02d:%02d:%02d" $((secs/3600)) $(( (secs/60)%60)) $((secs%60))
secs=$(( $secs - 1 ))
wait
done
echo
}

countdown_5 () {
countdown 5 2>/dev/null
}

countdown () {
secs=${1:-"00"}
mins=${2:-"00"}
hours=${3:-"00"}
chars=$(printf "%02d:%02d:%02d" $hours $mins $secs)
echo "Countdown from $chars"
countdown_str $chars 2>/dev/null
}
I disabled the "Trackers blocked" which fixed the css. Reenabling left the css working fine with only 1 blocked item (probably Google Analytics).

Is there anyway to debug what got blocked? seems other sites have reported this false positive too https://github.com/mozilla-mobile/focus-android/issues/2772
Cricket South Africa Official Twitter Hacked to Promote Bitcoin Lottery
I don't think the cliche Hollywood ending that presents the feel good about yourself, happy resolution, complete with positive family messages at the end of absolutely sodding everything is anything to do with good story telling. It's just the very tired Hollywood cliche that's proven time and again can draw an American family audience.

It's not an either/or. Books are often much, much darker than Hollywood adaptations.

Why is a US programme such as Breaking Bad considered ground breaking and hugely refreshing? For the first time in decades the USA has produced something where the hero is also the bad guy. You end up with some sympathy, and conflicted, for a complex main character, with many shades of grey and black. None of the usual black/white, so obvious it's painful.

Something like Stross's Merchant Princes can finish with a horrible ending and still be a fabulous series and story telling without many reasons to feel good to be found. Then derail after those 6 brilliant books with a clumsy reboot/relaunch.
> Younger millenials and Gen Z as a whole have completely changed their consumption habits to prefer niche content.

I'd say it's always been this way, for every generation, but now there are finally options that cater to these niches since it's no longer necessary to consider mainstream appeal and resort to the lowest common denominator - a limitation of the linear broadcast format.
I'm confident Youtube would have been just as valuable for earlier generations.
I think small side projects that will need to store personal information about users will be ended.
Be careful where you point to: the dangers of stale DNS records
If they'd just abandon the quest for thinness and put decently-large removable batteries in their phones, it would make crap like this unnessary.
Depending on the criticity of your protected service, you could probably just be your own Certificate Authority, and publish the root certificate internally. How many machines are we talking about?

A local PKI is probably overkill. Do you intend to give every single coworker a certificate on their own smartcard? If not, PKI is most probably not needed.

https://github.com/OpenVPN/easy-rsa + two USB thumb drives in a safe (primary + backup) + one off-site in another safe.

Client certificates are kind of hard to ask a global PKI for, because you usually use some internal names, not public FQDNs...
+1. Very useful extension
Dedicated profiles per installation coming with Firefox 67
Nobody’s getting “the last .1% that can ever be gotten”, so it’s a moot point. Google and Facebook are still growing. There’s always room for more improvements.
Exactly. Many "good" companies do that as well, Mozilla for instance. It's fine if they don't pay top Bay Area rates (e.g. 500K-700K+ total comp), but playing the "we pay a competitive rate in your region " game doesn't cut it - I work remotely to escape my region rates - fortunately, there are companies who pay solely based on contribution rather than coordinates on the map.
what the jobscheduler api is supposed to be used for isn't clear in the docs so people tend to default to creating services(the old way of doing background activities) instead.
What is GEO? X earth orbit? I imagine outside of the magnetosphere given that you mention radiation?
alias grr="grep -r --exclude-dir=.git"
And they are both aggressively using horizontal scalability. What’s your point?
PWRDWNSYS *IMMED
Two things for me.

One, as mentioned numerous times here, is the camera. I'm honestly still wanting someone to just release any old smartphone internals that comes with a leading-edge camera receptor and the ability to snap my 35mm lenses to. I'm certain it's not that hard a task.

Two, however, is application development. I generally roll with the latest and greatest smartphone, as well as a handful of various vendors cheap burners, so I can have a clear impression of how my apps work across these devices.

Of course, if I wasn't a dev, I'd still fall back to point one, and still sit here bitching that every new phone release doesn't match my annoyingly specific want/need.
Very nice! Thanks you for sharing this!

It really seems very useful to have timestamps for every line of output.

I have tried to approximate this in the past, by setting my bash prompt to be:

export PS1='\[\e[00;37m\]$?\[\e[0m\]\[\033[1;32m\]\[\033[1;32m\][\t]\[\033[1;41m\]\u\[\033[1;41m\]@\[\033[1;41m\]\h:\[\033[0m\] \[\033[1;32m\]\w\[\033[0m\] \$ '

... which shows the previous command exit code, the current time (with second resolution) and the ordinary stuff like username host and working dir, so it looks somewhat like:

0[21:20:18]delian66@mypc: ~/Work $ slow_command
....
0[21:22:19]delian66@mypc: ~/Work $
> It's just the very tired Hollywood cliche that's proven time and again can draw an American family audience.

Global family audience. They're doing something right.

As big as China is getting and will get in the future, I wonder if their movie industry will ever become a global draw. They seem to be awfully local right now. Same goes for Japan or even India.
For pretty-printing tabular data (tab- and comma-separated):

alias seetsv="column -s $'\t' -t"

alias seecsv="column -s ',' -t"
I use fzf [0] with zsh. I frequently use the Ctrl-T and Ctrl-R commands for finding files and searching history, respectively. Ctrl-R without fzf is great too, but with fzf you can see more of the history than just the currently selected entry. I hardly do `history | grep` anymore.

I've also been using trash-cli [1] for years with `rm` aliased to `trash-put`. It's saved me a handful of times when I've carelessly `rm`d something I shouldn't have.

[0] https://github.com/junegunn/fzf

[1] https://github.com/andreafrancia/trash-cli - Command Line Interface to FreeDesktop.org Trash.
Maybe a tad harsh. Then again, that lack of memorability means my main memory of the series is the first had rough edges but enough potential to want to start the second, but I retain barely anything of the story.

Mind, I'm getting rather jaded with many series and trilogies, though I also want to see how the Expanse finishes up. A trilogy seems to have become the current expectation (from publishers perhaps?) where too often just a book or two would fit the story much better.
Same experience here. Came from a C64 (6202) to a CPC (Z80) in the 80s and the Z80 felt much more powerful and expressive with its instruction set and registers - also the instruction set of the Z80 felt more logical and planned.
help my wifi driver isn't working on latest build of cyanogenmod /s

you may get linux on your hardware but goodluck getting hardware vendors to support linux even on a supposedly "linux compatible" device in any way
As an Engineer that don't know nothing about having a farm.

If we want to keep animals alive, now we don't have other choice that taking care of them (and kill them btw). Animals can't live happy, they will die, no matter what. The sentient logic is stupid. All they wanted is to live, yeah and all I wanted is to live in a good world, without doing stupid works because Engineer take all the good one.
> Why do I still have to grant an application all the permissions it requests when I install it instead of being able to turn them on or off individually?

I don't think this is true in the later releases is it?
I get a lot more ad-hoc permission requests these days, and there's much more control in the application settings (the android app settings, not the settings the app presents).
I can't believe I didn't know about this! Thanks so much :)
Ah, didn't notice it was Mac only, which is a deal-breaker for me. Also kind of odd for an Electron app.
> but its open nature would allow users to remove unwanted stuff

They would find a way, because money.
This isn't about protecting the user from badly written and battery draining apps. Almost all of the mentioned manufacturers ship their devices with a long list of pre-installed and whitelisted services, including Facebook and other spyware.

As a developer myself, it is just annoying do deal with and just not scalable if you have to explain each user individually how to turn of these "optimizations" (if that's even possible).
Which version of vim added support for this?
Yeah, I wonder if that's just something lost in translation - perhaps he just means: a mini "large powerful computer".
I have had SO many problems with my Android version of a background-running app I made. I've even made a PDF guide just like this page for my customers. Glad to see it's "not just me" - hopefully the vendors will start waking up.
Important to the company? A system which could automatically perform partial-stroke testing on pneumatic emergency-shutoff valve/actuator blocks. The end goal was to allow big chemical plants to run for longer between maintenance cycles. The idea is you part-close the shutdown valve enough to prove it can move but not enough to interrupt process.

We were one of the first to prototype, and the only one to do it without needing a bulky valve positioner. The prototype worked on nearly every setup we could build in the lab. Then we added an automatic setup mode which nobody else had.

Alas, marketing got involved. "We want the manual setup removing, permanently. Not just disabled."

And of course the first sale, the customer was doing something which screwed up automatic setup and couldn't be worked around. Manual setup would have worked, but both marketing and management fought engineering tooth and claw to prevent us re-adding it.

The customer sent every single unit back. The stress burned me out (and more besides)... Not long after that, I was "managed out" of the business (read into that what you will).

On a happier note, most important to me? I help out a small-medium size volunteer-run fandom convention (think Comic Con on a smaller scale). I rebuilt their radio communications infrastructure, added call recording (for training/liability reasons) and staff-call pagers. At the staff debrief, the chairman called it "a game changer" and asked if I'd come back as their Head of Operations.

I said yes.
Yes, you'd use something like the OECD's price level index: https://data.oecd.org/price/price-level-indices.htm

None of these are perfect, you're never going to get two truly comparable locations when accounting for mortage/rent, groceries, cost of transport, cost of consumer products etc., but it's a whole lot better than mainly looking at one variable (rent).
Same here, wrote 6502 (C64) and Z80 (CPC) code and preferred the (double-)registers of the Z80 to work with compared to the limited registers of the 6502.
> I get less work done, but I don't feel like a miserable piece of a machine now.

Why don't you just do that work faster without being on twitch, and then use the extra hours to go outside and participate in an actual community or engage in some more gratifying activity?
Previous discussion: https://news.ycombinator.com/item?id=18689544
For an internship it's even more unacceptable. An internship is supposed to make you more employable, not less so.
The solution to this should be user experience billing.

If your app wants to run a background service which degrades the users battery, you are degrading the user experience for that user, and all the other apps they use.

Another app on the same phone which is very power efficient will still not get used if the battery is dead!

App developers who use up the phone battery should be required to compensate those who use it sparingly.

Google could set up a market for 'milliamp-hours', where each mAh used up by an app is worth $0.00001c. Apps will put money in the pot (subtracted from ad revenue) proportional to how much power they use, and be handed out to all apps based on app usage (how many hours in the foreground for example).
Your post is a bit dismissive given your familiarity with western sci-fi seems to extend only to incredibly popular film series.
1 MHz clock on the 6800 family of processors, including the 6502, is equivalent to 2 MHz clock on the Z80.
The 6800 architecture used a so called two-phase clock. Each phase, positive and negative, of the clock cycle was used to do work.
Planck star
Doing your work over VNC on a VPS will result in latency. Furthermore, all your machines degrade to thin clients and all work is done on the VPS. So better get a strong VPS and don't invest into something like a MacBook Pro.

Doing your work on a VM which you sync between the machines is an interesting attempt -- most people I know instead sync the data (with cloud services or git) and especially program settings (like dotfiles, mostly with git). The slowdown of working in a VM instead of natively will be dominated by the performance of the GUI virtualization. VMware is especially known for good GPU support. Obviously, the advantage of a VM is that you can make use of your local ressources. However, VMs most likely won't allow to change the number of CPU cores or memory during runtime, which means you have to work on the smallest possible denominator of the ressources available (i.e. you are most likely limited by the RAM of your smallest machine). Depending on the work you intend to do, this might not be a problem.

I'm not aware of good programs to sync VMs between machines, but I'm sure there are.
I don't want to sound hyperbolic but its kind of a game changer for text editing.

I understand why developers don't have it on by default in other text editors (space) but seeing as I don't fill my HDD with movies or games or any other large media like that, i've got all the space in the world.
> only a closed system with a single gatekeeper that can avoid this problem at scale

I guess you are hinting at Apple phones but this works only because the gatekeeper is acting in good faith. Then again why do you need a single gatekeeper?
>> As a former academic (I left to go back to my startup) the STEM academics need
to step in and do something about the whole grievance study area and the
related fields it has infected.

Traditionally, if you think a scientific field is a bunch of nonsense, you
have two options: a) ignore it, and, b) change it from within, by publishing
better work yourself, etc.

But, to mobilise some kind of research police to tell other academics what to
research and how to research it? I don't think so. Academics should be free to
study whatever they like. If this ends up producing a load of garbage like
gender studies, then so be it. They can study their irrelevant and useless
subjects, so that I can study my all-important subject (AI; and I'm being
sarcastic- of course my own field looks more important to me).

In any case, it's really not the job of STEM researchers, or any researchers,
to police other fields. I don't see any sort of justification in what you describe.
android needs to stop being treated as garbage by google. take the reins, full control - monetarily fine OEMs who make their own garbage modifications to the underlying OS and actively harm the user experience. no timely updates? fine. garbage ux reported by vast majority of users? fine. basically re-implement nintendo's seal of approval for games but with the help of crowd-sourced reviews. we have the technology.

but no instead we'll probably get fuschia and android will be deprecated lmao
To be honest, as a user I really like the implementation of battery saving features of my Sony phone:

1. They are not enabled by default

2. Their settings screen explicitly states what the modes do

3. They can extend battery life significantly

The most aggressive mode is called Ultra Stamina, and it works by basically turning the phone into dumbphone mode -- complete without any internet connectivity, calls, SMS and alarm clock only -- and the phone has no problem lasting a week.

I use these modes extensively when going backpacking for several days, as I do not have to carry any power banks, which saves precious gramms :)

edit: punctuation, grammar
7.3 I think - https://lwn.net/Articles/401002/
> I do think F2F (and not just videoconference) time is valuable

Can you say why?
For those miss Arnt's point, see how the real life Z80 code looked like here:

https://www.tablix.org/~avian/spectrum/rom/zx82.txt

That's the disassembly of the whole ZX Spectrum ROM which has the built in BASIC interpreter with the floating point support.
still have bunch of those at work(large bank)
Yes this is very true. Some apps like Truecaller just destroy the battery like there is no tommorow. Most other app including some games keep running just to tell me when it's time to collect my mystery box.

Point being the majority of the apps are badly coded to poll or drain battery, send unnecessary notifications.

This reminds me of the popup blocker thing in web browsers. While there were some legitimate uses most of the time it's abused so every browser blocked it.
I use bash, but really like the RPROMPT idea from zsh, so mimick that as best as I can.

It turns out that bash has a PROMPT_COMMAND variable which gets called before writing out PS1, so I use this to write my own rprompt. The main idea is just to use tput to draw a thing on the right and restore the cursor position afterward.

As is, I have something like below right-justified at each prompt:

user@host:pwd (git-branch)

It even degrades nicely if horizontal space starts getting cramped. Actually, the code is (I believe) just posix shell, so I define relevant functions in .profile and have .bashrc and .mkshrc use them as appropriate. Since it's a bit long, here are some pastebins that should be drop-in workable:

- profile: http://ix.io/1yiC/sh

- bashrc: http://ix.io/1yiA/bash

- mkshrc: http://ix.io/1yiB/ksh

There are a couple caveats. Bash clears the whole line when deleting characters, which causes the rprompt to be cleared as well. On the other hand, mksh works as expected. Also, if you enter really long commands into the prompt, they will eventually bump into and overwrite the rprompt, instead of clearing it wholesale. I've not found this too much of a problem though.

In the code above, the rprompt() function defines the actual contents of the prompt and performs the graceful degredation. The rprompt_draw() function does the actual drawing and prompt_draw() links these two together to be used by bash, mksh, etc.

Feel free to ask my any questions or hate on my code.
Nah, closures are up and openings are down all across the city due to higher costs.[1] You may have lived here 25 years but that’s no substitute for hard data.

[1] https://www.sfchronicle.com/food/article/2017-wasn-t-the-gre...
So we built a paltry 4,400 in the past, let's shoot for 44,000 units next year. At the already-negotiated 18% BMR, that's 7,920 price-controlled units, a massive increase in affordable housing capacity.
Like any 8-bit CPU, the Z80 had plenty of coding optimisations you soon learned. First one that came to mind reading this: instead of ld bc,4; ldir, it’s faster just to do ldi; ldi; ldi; ldi.

There’s also a set of “alternate registers” you could swap in with exx, which sometimes enabled faster arithmetic without hitting memory.
There are multiple counterpoints but most can be summed up that there is no strong argument in favor or either so that one has to fall back on a personal default.

Bandwidth consumption in Tor is not that big at 300Gbit/s. While its not perfectly comparable, a 1gbit/s connection residential connection cost about $100 a month. Imagining 300 users, or rather 7000 servers, is really not that big for a community project by volunteers. Naturally this finding is a double edge sword, as it also mean it is not costly for a nation to become the majority owner of all servers if they wanted to. Bandwidth is cheap. It is so cheap that one ISP has started to roll out 10Gbit/s for residential use.

7000 nodes are nothing for high bandwidth nations, and its not without reason that some over represented nations in the Tor network match those that subsidized broadband infrastructure. Sweden is about as big as UK but with 1/6 of the population. Germany is twice the size of US (https://metrics.torproject.org/bubbles.html#country).

I do not think cost is relevant to the question. Any agencies of any nation could afford it. The question really is if they would bother, and if they could continuously do it stealthy enough to not rouse suspicion. Its rather know that the hardest security to do is to run operation security continuously without mistakes. In additional we have leaks from inside (Snowden, Manning), internal politics, and I personally do not think it is likely that they would have managed to run perfectly stealthy for 16 years. I would give them the benefit of the doubt that any given year they could take over it, but once they do it won't take too long until it is detected.
Thanks for the feedback. Cool to find a user on Hacker News! That's something I hadn't considered. I personally felt it more satisfying to mark as read when the post flies out. But I agree that it can be inconvenient. Do you think an Undo button would help (not sure if you've tried the Outlook iOS app, but it does it really well)?

We have better sorting options in the web and browser extensions, adding them to our iOS and Android apps is prio though. I like the idea with unread at the top!
Most brands of phone do this all the time, and do it even more aggressively in battery saver mode.
Sorry for the lack of clarity, I have since edited my post. They asked me for 1/3rd of my price - Not going down by 1/3rd, but rather 1/3rd of my quoted salary. So, if it was 100k, he was asking me for 33k.
Sad that HTC, perhaps the vendor that's worst off on the list, seems to be the least bad actor besides stock Android.
By the way, Singapore is one of the most expensive cities to live in Asia, probably behind Tokyo.
I'm literally staring into the "black hole" of an AS/400 right now on my second screen.
I've been using z and it's great: https://github.com/rupa/z
Thanks for pushing back on this.

> We (and everyone else I know that uses Keybase) use it for passing around sensitive information, either through chat, their encrypted Git repos, encrypted messages plopped into emails, etc.

That is interesting. I'm gonna put my hand up and admit I haven't done my homework here. It's been a while since I used it properly and I've relied too heavily on their website:

> Keybase is for anyone. Imagine a Slack for the whole world, except end-to-end encrypted across all your devices. Or a Team Dropbox where the server can't leak your files or be hacked.

> I think Fluidkeys is cool and all, but I definitely wouldn't switch off of Keybase for it,

Thanks, and I wouldn't expect you to have to switch. We're gonna think properly about where we're competing. I appreciate your input.
Enhance Your Organic Traffic and Revenue with SEO Agency Singapore
Nb. "Written" as in screenwriting, not "written" as in implementing the game engine itself.
What Does a Wage Gap Look Like? (2017)