skysight-inc/HackerNews huggingface dataset:
I have the below for cases when I have to make a quick screencast. It needs ffmpeg and I am not sure how well the yt flag works as I don't really use Youtube any longer. Anyway.. first I do 'ffsc sc' and if I want that video to be smaller I do 'ffsc yt <path_to_file>'.

## Make screencast or convert to yt

ffsc () {

vid_name="$HOME/Videos/Screencasts/screencast_$(date +'%y%m%d-%H%M%S')"

case $1 in
sc) ffmpeg -f x11grab -s 1920x1080 -i $DISPLAY -r 30 -f alsa -i default -preset ultrafast \
-c:v ffvhuff -c:a flac ${vid_name}.mkv
printf "${vid_name}.mkv" | xsel -i

echo
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo "Output file name: ${vid_name}.mkv"
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo

[ -e /tmp/ffsc.tmp ] && { rm /tmp/ffsc.tmp }
printf "${vid_name}.mkv" > /tmp/ffsc.tmp
;;
yt) ffmpeg -i $2 -c:v libx264 -crf 18 -preset slow -pix_fmt rgb24 -c:a copy ${2/scr/yt_scr}
yt_name=$(cat /tmp/ffsc.tmp)
printf "${yt_name/scr/yt_scr}" | xsel -i

echo
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo "Output file name: ${yt_name/scr/yt_scr}"
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo
;;

mini) ffmpeg -i $2 -strict -2 -s 1680x1050 -r 60 -c:v libx264 -b:v 164 -crf 22 -preset slow \
-pix_fmt yuv420p -c:a copy -an ${2/scr/mini_scr}
mini_name=${2/scr/mini_scr}
ffmpeg -i ${mini_name} -filter:v "setpts=0.5*PTS" -an ${mini_name/.mkv/.mp4}
rm ${mini_name}
printf "${mini_name/.mkv/.mp4}" | xsel -i

echo
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo "Output file name: ${mini_name/.mkv/.mp4}"
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo
;;
esac

}

And another nice one I didn't see here..

# Python as a calculator

pc() { python -c "print($*)"; }
Can Notion do infinitely zoomable lists, a la workflowy? As far as I can tell, it cannot.
Izzle (2004)
This was a good read. It resonated with me because I've been noticing this happening with my mother and father as they get older. I hate to say it like this, but I used to think that my mother was sort of a "simple person" (I can't think of a better word) because she used to tell my brother and I to try to be happy with what we have, to try to enjoy the small things in life, and to try to be appreciative of the things around us. My father, on the other hand, had high ambitions and that mentality always resonated with me more. I used to think that my mother was complacent.

Now that my parents have gotten older, I've noticed that my father is becoming more and more bitter and resentful over how his life turned out, while my mother is becoming more and more at peace with how things have turned out. My father never quite hit his high ambitions, and I can tell that it eats away at him constantly throughout the day. My mother, on the other hand, seems very content with the life she is living.

The study in contrasts is interesting to me, and I think there is something to be learned from both schools of thought. As with most things in life, the optimal path seems to be the middle way. My mother has a very good job and part of that is due to my father encouraging her and pushing her to step outside of her comfort zone and go back to school in her late age. Similarly, my father seems to be (very slowly) mellowing out a little in his late age due to my mother helping him come to terms with how things turned out. Still, there is a lot of bitterness and envy and resentment within him, and it's hard to watch. My mother seems far more well-adjusted now, in comparison.

At the end of the day I think that is what matters most--your relationship to your life. When you strip away all the external things, everything eventually comes down to your thoughts and your mindset and how you think about things. That was the vibe I got from reading this essay, that ultimately things come down to how we reframe things, and that might be the most important "skill" / practice to cultivate.
Nah, we just string the cables haphazardly wherever, through trees is just fine, because of course it's always sunny and nice in California. It seriously looks like third world infrastructure to someone from another part of the country, where weather events happen often enough that the utility has to give a shit.
Yet another lesson of why natural monopolies should be under government control.
In this respect they're not really any different from an officer administering a field sobriety test or a breathalyzer to someone they've stopped for a suspected DUI: these prime the suspect to give more information than legally required.

And worse, these will provide opportunities for the state to build probable cause for a stop that otherwise might not exist.
We don't, in the same way that we don't know there aren't vulnerabilities in the quantum protocol they're using, or in its practical implementation. And if the NSA can only break DHE for parameters less than N bits, why not just use a ridiculously high number like 10000 bits, since it's only a linear cost when you know the key.
While it might work with distribution networks, it would be much harder for transmission networks. It would be essentially building a pipeline to transport electricity.
Personally I like to use OpenBSD for IPSec VPN, but I like to see guides like this that present a solution for a wider set of problems.
Yes, presumably this is only a result of conditions that cause reproductive competitiveness. So a better phrasing could be “Impatience and a craving for intensity leads to a higher rate of reproduction”. Presumably, because that impatience is impatience for sex. If it was impatience for say, graduation, or craving for the intensity of a cocaine high or physical violence, that would not lead to reproduction.

So it’s basically saying that having a high sex drive leads young people to reproduce. Okay.
> Why can't MongoDB can't compete with AWS?

IMHO, it's the need for single pane of glass management, coupled with single throat to choke accountability. Buyers are often willing to give up on best-of-breed features/performance/cost in exchange for simplification of process and workflow.
Funny you should mention those two. There's a (false) urban legend about Fred Rogers fighting the Viet Cong, but what is true is that Bob Ross was in the military -- and hated it. His experience being "the guy who makes you scrub the latrine" is what led him to grow out his afro and cultivate his nice-guy persona.
Android would actually leave you in a much better position than Windows or macOS here, since the app has to at least go to the trouble of enumerating and requesting the permissions it wants. PC operating systems don't typically sandbox desktop apps by default, so the Windows/macOS versions of this would have free reign over anything accessible by your user.
It has no relevance to the Border Patrol within 100 miles of a US border or coastline, which is even more ridiculous.
C++ has deterministic garbage collection.
DigitalOcean is able to hire in the Netherlands and Germany.
The Nokia one is egregious, but their second worst vendor (OnePlus) allows users to whitelist individual apps, though there's a bug right now where that setting gets reset randomly.
The selfish gene argument is nice, but this implementation is far the only option. Or maybe it was tailored for harsh wild life and not comfy "school until 23" modern times.
This is wrong: (from the article)

function f(leaves: Array<Leaf>, aggregators: Array<Aggregator>): Array<MemsqlNode> {
// The next line errors because you cannot concat aggregators to leaves.
return leaves.concat(aggregators);
}

That's just wrong, of course you can't concat aggregators and leaves! and Typescript is OK to not accept it. If you want that to be ok, you could do something like

[].concat(leaves, aggregators)
In iOS 11 and higher, you can disable Touch ID by pressing the power button 5 times in quick succession:

https://www.macrumors.com/2017/08/17/ios-11-emergency-sos-di...

> In iOS 11, Apple has added an "Emergency SOS" feature that's designed to give users a quick and easy way to summon emergency services should the need arise. As it turns out, there's a secondary benefit to Emergency SOS - it's also a way to quickly and discreetly disable Touch ID. ... This is a handy hidden feature because it allows Touch ID to be disabled discreetly in situations where someone might be able to force a phone to be unlocked with a fingerprint, such as a robbery or an arrest. With Touch ID disabled in this way, there is no way to physically unlock an iPhone with a finger without the device's passcode.
Fo Shizzle, That Big Bad Chrysler Really Does Sizzle (2004)
https://www.nytimes.com/2004/06/26/business/fo-shizzle-that-...
> a rogue solution because they don't understand how the current Wiki works.

That's usually a sign of an IT department not listening to the needs of their end users.
iPhone too. Press the power button five times and it goes into password only mode.
As a wannabe-black hole scientist I love pages like this!
Yeah, both of them come off as creeps.

I once was sent to a standards committee meeting to support a bad proposal from an important customer (actually what they wanted to accomplish was a good idea, but how they wanted to go about it, based on the work they had already done, was most definitely a bad idea). We (the company) only did this because we knew the proposal would only get two or three votes, i.e. there was no risk of a bad proposal being adopted but we could show the customer we cared about them.

We later felt so bad about this that we determined never to do anything like that again. It was probably wrong even though no global harm was done.
Have they added tags support? Last time I checked there were no tags in Notion.
Less frequent fires doesn't necessarily mean less overall fire damage. And no-fires is not only impossible, but not desirable - see https://en.wikipedia.org/wiki/History_of_wildfire_suppressio...
Fundamentals of Proof of Work
This is amazing! This free "cardboard" digital camera from IKEA is particularly cool: http://old-digitalcameras.com/MorePicts/MP656.htm
Can you explain why what Roku TV does with the HDMI data stream is evil to those of us not in the know?
Personal users want E2E encyrption, so it doesn't matter who is running the server. And most users do not have the skill to run their own server. The technically advanced can just use the enterprise version if they really care about personal on prem.
Let’s hope the Supreme Court hears it and it stands.
I'm not sure how the courts will differentiate between biometric data related to authentication and biometric data from blood tests, breathalyzers or DNA tests. The latter are, in a sense, examples of forcing you to divulge something stored in your body.
For those who prefer not to learn another configuration management system just for dotfiles but already know salt, here is a masterless salt template for dotfiles: https://github.com/stiletto/salt-dotfiles-template
Non-Californian; from here, it looks like it would have burned sooner or later, thanks to changing climate & history of forest management practices. Whether lightning strike, hobo camp, stupid teenager, OHV, train, it was a tinderbox waiting to go. Is that an inaccurate perception?
I'm arguing that the idea that anyone is allowed to connect anything to me while they ask me questions is perverse, reprehensible, and absurd.
I am 20 and moving to SF in a month . To help people be more productive I am building a self management software tool for startup employees, something you can use alone or in group with goals, feedback, and psychometric stuff.

I am 4 month into code and still need 2-3 more months to make something I can sell (at like 5$/user/month) or get free users.

Originally I am from France so I only have a 3 months window once in the US to take of and raise seeds to get my visa (otherwise I can maybe get married or I am screwed and come back crying at my mother's).

Do you have any advice ? Things I should do ? People I should talk to ? Startegies I should use ?
I absolutely agree with your general principle, as I read it: price is not necessarily determined by your cost (which goes up only incrementally with added users), but by the value (what the customer is willing to pay, which may go up more significantly).

Specifically, however, I am indicating by my post that I'm not willing to pay 4x the price, for privilege of sharing - it does not have that value to me and it's not where my expectations were level-set :).
[I currently use ToDoist which makes it easier to start (no privileges/contact sharing required) and add guest-editors/share]

My post is meant to provide feedback: I'm currently not trying their product (and I've explicitly provided why - the seemingly minor request to share my contacts), and I may not become paying customer once I figure out a way to try it (because the jump to my desired level of service is too high). It is up to the developers, if they read it, to gauge how representative I am of the target audience and therefore how relevant my concerns are; I'm assuming somebody like Pateo11 would quickly setup A/B switch - signup with and without asking for contact permissions, and see the impact :)
No being wants to die. That said, much of the animal kingdom (of which we are a part) lives by doing just that. Animals can be raised in kind and happy places and can be killed painlessly.

While I agree with the goal of changing factory farming, I don't think we can fight biology. It's ok if people eat animals. We evolved to do exactly that.
I have a right to earn a living. I have worked many years preparing to do so in a particular area of trade. There is a market price for my skills. Taking 25% of that away is unfair, is my point. Justifying it by saying "Oh, but you could travel!" is the same level of empathy as saying "Let them eat cake".
I got used to this in Haskell, but I have to say that Elm's solution is pretty elegant:

Elm: Haskell:

f <| g <| x == f $ g $ x -- application

f << g == f . g -- composition

x |> g |> f == x & g & f -- reverse application

g >> f == g >>> f -- reverse composition

It's nice to be able to change between composition and application by changing between | and < in the operator. I've actually done this quite a lot when refactoring code in Elm lately, there's something visual and intutive about it that I like. It makes it easier to mix left-to-right and right-to-left in the same code, while keeping it obvious what's going on.

I've found that certain parts, that scan/read better as imperative steps (think chains of List.map, Maybe.map, <MonadlikeModule>.andThen etc.) often benefit from a reverse application and/or composition. Sort of to simulate the look of do notation since Elm doesn't have that. Smaller functional parts are better with regular application/composition.
With the directional operators, this becomes quite ergonomical.

Probaly helps that I use (and enjoy, ymmv) a font with ligatures for these symbols.
I agree that they should be held responsible for negligence or poor faith actions. But I'm not sure they should be responsible if their equipment caused a fire because it was shot full of bullet holes by some idiot with a gun[1]. My understanding is the law currently holds them responsible if their equipment was involved, regardless of whether or not they were negligent.

[1] https://www.sacbee.com/news/state/california/fires/article22...
There is a 1.1.1.1 "VPN" app you know. And with that you don't have to maintain a backend.
Intetesting they didn’t look at sex-based discrimination.
Kotlin is as much a reaction to Apache Groovy as it is to java. E.g. whereas Groovy did builders, Kotlin did them with static typing.

And "knee-jerk" is inaccurate. Kotlin's business case was considered carefully by Jetbrains, just as Swift's was by Apple.
(I love this video, it's very funny)

I think it's important to be clear that a song is so much more than just the chords. Axis uses a few "tricks" to get things to sound the same:

- strip away everything except the chords & play them all on the same instrument
- shift all the songs into the same key
- play all the songs at the same tempo

It's a funny exercise that, but it's a bit like saying all cars are the same because they have the same basic structure. Obviously there's a difference between a Camry and a Bugatti.
Not sure how this works exactly. The FAQ page mentions a proxy server. Do I have to route all API responses through the proxy server?
I've been using Notion on and off for the past year, and have to say it's exceptionally well made and thought-out. If you haven't yet, give it a try.
The judicial branch and the legislature have also been quite hostile to the 4th during that period. Its absolutely not a problem isolated to the executive.
"It's OK to hate them because they deserve to be hated," is your argument. Look, you aren't always wrong, but there tend to be a few factors at work here. The thing about people is that we aren't just who we are in the moment, we're the sum of our experiences to date.

If you want people to change, you have to show people not only that there are alternatives, and how to obtain the alternatives, but lastly -- and most importantly -- why they should strive for those alternatives. If you're just a dick to them, it doesn't help anyone.

Judging someone for being fat is about like judging someone for not being born rich. Eating and exercise habits are taught very young, and are very hard to change. It's very rare you see someone who is obese who wasn't put on that path by their parents.

Rather than make disparaging comments, I'm sure you have a friend who you could invite out for a jog? Or over to your place for dinners once or twice a week? Not everyone has rewards wired in the same as you do, certainly if they are obese they know it and can do without your reminder, and likely they've struggled to lose the weight and just need a bit more support.

You can either judge, and feel smug, or choose to help a friend.
I'm not unaware that iPhones are physically constructed in China. If we had tariffs on Chinese phones only a small portion of the tariff would fall on the overall cost of an iPhone.
Once you hit up the utility for all the money you can get, either you ditch the grid altogether, or everyone using the grid is going to end up paying for most of it in one way or another.

That's ridiculous. Broadly, there's nothing preventing California from seizing PG&E's assets as partial compensation for the company's past behavior. Thus the state of California could run PG&E as public utility pretty quickly if it wished and then charge whatever rates it felt appropriate, making up costs with taxes or not.

The main thing that would happen is PG&E shareholders and possibly bondholders lose their investment, high paid private executives and consultants are fired and the savings to the state.
The idea here is very cool, but was disappointed by the execution. A lot of the advice given is really simplistic. I'd like to see (1) more deep, meaningful advice (2) from smart, successful people (ex: Warren Buffet).
Citizens can’t be denied entry. Worst case if you refuse to turn over your phone password is a short (hours, maybe days) detention, and confiscation of your phone.

Non-citizen admittance is at the discretion of the immigration officer and they can turn you away for just about any reason.

Either way, yes, this ruling wouldn’t change anything there.
Agtech startup Farmee to support farmers remotely
Hey thanks for the advice. I'm trying to be 'good enough', pivoting a little to focus more on JavaScript back and front ends, always learning and what not. I think if I take a chance and land a few North of $80/hr clients I'll get the confidence. I'm just not sure where those type of clients exist...

Part of my issues also were ADHD made it really hard to stay on task and focus but now I'm on meds for that and I'm super focused when I'm in my office, I'm also really neat and orderly around the house lol.
Author here, I actually addressed this in a footnote linked directly to that sentence you quoted.

EDIT: This is incorrect ^, I misread your comment at first.

Thank you for bringing this up, this makes me feel even better about using Babel to emit code.
Hi Weizilla; that's interesting!

At approximately 14:00EST, clicking on "Get Started", then inputting a gmail address, offered ability to login via Google; then, request for contact permission. There was no way to avoid it.

As of right now, 16:22EST, that behaviour is different and I'm no longer seeing the prompt. I've tried different computers & laptops/browsers, to ensure it's not some cached/cookied experience, but it _appears_ the actual request is no longer being sent. Not sure!
Most of the stuff that you need Redux for you should be able to handle with @client [1], and the local "resolvers" approach isn't too different from Redux reducers, to the point that wrapping Redux-style reducers as Apollo resolvers seems like it should be boring/trivial to implement. It would probably be cool to have something of a "standard library" for that which let you easily convert Redux-style reducers directly (ie, a sort of combineReducers that spits out local resolvers). I don't think it should be hard to do, just doesn't look like anyone has done it yet.

Of course the bigger issue, though, is the Redux Dev Tools/Thunks/Sagas/Observables ecosystem where you want a richer experience and/or already have existing code investments. Apollo has some equivalents to those (Apollo Dev Tools; resolvers can return promises, taking care of a lot of basic thunks/sagas), but it probably needs richer options for others. I know redux-observable is currently a big need for several of my applications and I don't currently know any way to approach that in Apollo other than maybe trying my luck with a custom "Link" and that API looks more intimidating than it probably is, enough so that I haven't had the investment need to approach it. (Then again, most of my applications need to be offline-first so GraphQL in general isn't a great fit for them, though Apollo looks like options might be possible eventually, if someone built a little more infrastructure [Links] for them.)

[1] https://www.apollographql.com/docs/tutorial/local-state.html
Which are no where near as profitable and a lot easier to prosecute. You cant run a cartel on theft and computer crime.
There are some interesting arbitrage opportunities in that data[0]. Even if the average for a province is $X, there will be plenty of cheaper towns in it.

[0] https://gitlab.com/gitlab-com/www-gitlab-com/blob/master/dat...
also what the hell. how are you supposed to write all your songs without using the dominant chord of your key?
And do so within 48 hours, and with enough fidelity not to trigger a lockout with failed attempts.
$10,000 bet not a single Exec will go to jail.
C++11, random distributions, and Swift
Large swaths of Orange County are like this (think Irvine).
To what extent could PG&E mitigate these problems with improved safely devices? There are various devices that can try to minimize arcing when there is a fault, for example Petersen coils. [0]

California already has a distinct advantage here compared to the rest of the country. In the other 49 states (to the best of my knowledge), it's legal for the utilities to use a conductor that is grounded at multiple locations as a neutral. This type of arrangement induces nasty currents through the ground (which is, I think, why it's illegal in CA -- those currents can apparently be quite harmful to livestock that are being milked with metallic equipment, not to mention hazardous to people in swimming pools and such). But it also means that, if another phase shorts to ground, then there is necessarily a large amount of fault current available.

In CA, the distribution wires can't legally have any intentional current flowing between themselves and ground, which means circuits that detect residual current will work.

[0] https://www.modernpowersystems.com/features/featurenew-roles...