skysight-inc/HackerNews huggingface dataset:
Ask HN: How to deal with seasonal affective disorder?
Every winter for probably the last 10 years or so I've run into a difficult pattern of mood, fatigue and concentration, depression I suppose, around this time of year.

I think this is not so uncommon, so I'd love to hear from anyone on HN who's found particularly effective ways of dealing with this and keeping life on track over the winter. My goal is not to be happy but simply to be stable enough that I can maintain regular productivity.

Here's what I've tried:

1. Light therapy - easy and somewhat effective, but not super effective

2. Vitamin D supplements - no real difference noticed

3. Vigorous aerobic exercise 3-4 times a week - moderately effective, not super effective

4. Meditation every morning - recent habit, seems to be helping but it's too early to say

5. Cutting down sugar - somewhat effective when I stick to it, often undisciplined

6. Cutting down carbs - same as above

7. SSRIs - haven't used for 5 years, don't think they were really working when I did

8. Skipping breakfast - recent habit, seems to help, too early to tell

9. Psychodynamic therapy - for 2 years, never seemed to help in the moment, but maybe did over the time period

10. Microdosing psilocybin - reasonably helpful but can't do it every day

11. Modafinil - reasonably effective while on it, but it fucks with sleep; ceased use

Here's what I haven't tried that could be helpful:

1. CBT

2. Mediterranean diet

3. Moving to a warm country (not possible right now)

4. Sleeping for longer (> 9 hours)

5. Other antidepressants

6. Keto diet

7. Weightlifting / anaerobic exercise

8. Other supplements

9. Other types of therapy

10. Longer term meditation habit

11. Philosophy / self-reflection

Has anyone tried something from the second list that was particularly helpful? Anyone figured out a way to overcome this (or just depression/cognitive decline in general)?
My daughter just started getting into Winnie the Pooh shorts and movies, which we're happy to let her watch and rewatch and rewatch, mostly because they don't annoy us. I have no doubt we'll be buying in to disney+ for her to have access to higher quality cartoons.
In the majority of present society, a car is literally time.

Yes you can have modern integrated cities with jobs and housing within walking distance, but how many people can take advantage of them?

Maybe the rise of telecommuting / telepresence will increase the number of people.
Linq pipelines are lazily evaluated, so you can get linear performance instead of polynomial.
Inflammation is the body's way to protect the affected part. Giving it some "extra cover".
Mashed potatoes have a ridiculously high glycemic index, so yes. I don’t know about raw.
Tina is not a CMS
What drove that large exponent?
So, first, you are not unemployed. You are working.

Second, think of yourself as working for equity (This is why you should guard your equity from dilution as much as possible, it is real money). I.e. a regular employees usually work for 100% salary and 0 % equity. As a founder you switched this formula, you work for 0 salary and 100% equity.

Third, at least until you have customers, you might want to "hack" your brain (which wants you to be an employee) and join a co-working space with regular employees. This might bring more "regular job" feeling.
They used a purée, but yeah, on my long runs I carry a couple of gels, I’m not going to start putting a Yukon Gold in the blender.
Even if you don't have a particular interest in retro computer games, his 9-part series on the history of Microsoft Windows in the 16-bit era (covering the period from the early pre-Windows GUI systems for IBM PCs (and why they all failed) to Windows 3.1 (which finally brought the GUI to the masses)) is an absolute must-read for anyone who has a interest in computing or business history in the mid-late 80s: https://www.filfre.net/2018/06/doing-windows-part-1-ms-dos-a...
You can say this now but not long ago map/filter/reduce were almost esoteric.
It depends on what you do, and the underlying code can be pretty smart. But it can also be pretty dumb.

The main difference is that if you use .Where(P).Take(X), you're actually generating a new enumerator, a new coroutine, and that code doesn't get called until you actually enumerate it.

But if you write your for/if loop, you run the code immediately, you go through the source array, run the predicate on each item, until you have your X items, and then you return a new array with those elements.
I think you got confused a bit, likely because my writing still needs improvement. The recording/uploading is what got me thinking about all this, the rest of the article is an expansion on that.

So yes, even if the recording never leaves the building guests should be informed that they are being recorded. But those are recordings that the user is presumably at least aware of.

Hence the 'device contains a microphone or camera' category.
I bet this is just people making their own video and being happy paying a few cents for folks to watch them. After a few hundred bucks they can say they have thousands of views.

It seems irrational to me to want bragging rights about people watching your video. But people are weird.
> George H.W. Bush (the father) even made a statement that the American family should be "more like The Waltons and less like The Simpsons."

Yeah... I get that the plot is that the family in the show are chaotic.

But that doesn't mean that the show itself is controversial, does it? It's not advocating for being like the Simpsons are.
I agree SICP is better than HtDP, but CTM?

CTM is in many ways a SICP sequel, and equally ambitious.
You can reason about your code more effectively when you can see more precisely what function calls are made on an object or class of objects, and from where. Making a method private limits that surface area.
There were reports that Stuxnet spuriously affected Siemens controllers in countries all around the world. That smacks of over-simplicity, not sophistication.
I live in Kansas. We currently have a Democratic governor who is quite progressive by this state's standards. She's in her job because the voters rejected another 4 years of Brownback-style austerity. Brownback ended his term with ~21 percent approval. Currently, the state still doesn't have the ACA Medicaid expansion, but we're very close to having enough votes in the legislature. I'm cautiously optimistic about next year's legislative session.

The voters do respond, eventually. But the ship is slow to turn. With the wave of rural Kansas hospital closures, farmers going out of business due to the tariffs, and stories like the one linked, Medicaid expansion is very popular with the voters. The pressure is only going to grow.
Mashed potatoes are so tasty, though. Why not try it?
You described the GPs point perfectly. This is also covered in the article; it exhaustively covers the use cases for loops and provides higher level functions and operators instead.
Yes, both novels derive from "We". In some sense "Brave New World" more so because despite being oppressive, the society of "We" isn't impoverished; everyone is materially well off and fed. But it does have the "love is inherently revolutionary" angle that "1984" uses.
The abstract speaks of "race fuel", so it sounds like this study is focussing not merely on "does it belong in that category" but more on "is it an effective alternative to professional race fuels"?

And from the looks of it, yes.
That's what it does. It's not that new, it's been live since Sept 27 (https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues...).
Women naturally bear higher risk from a one night stand. Pregnancy isn’t easy on the body at all. And that’s just the physical aspect of it. It’s not surprising that there’s a little aversion to one night stands.
"Man can do what he wills but he cannot will what he wills."

--Arthur Schopenhauer
I see why one would run Trident over plain FreeBSD on a workstation. But what is Trident offering on top of Void?
> By valuing our offsprings' safety so highly we're effectively raising hatchlings in tubs, as opposed to wild fish gifted with a hardy stream upbringing.

How do you show this? The number of parameters leading to success is ludicrously high. Is there even a frailty in need of explaining? How about all the other environmental factors, like lack of the opportunity to invest in careers and cheap subsidized housing like our grandparents got? This sounds suspiciously like pop psych crap.
Boris Johnson Forced to Seek Brexit Extension After Rebuke from Lawmakers
It's not now but is was 1990. The Simpsons and Married With Children were pretty much unlike anything else on TV at the time. The Cosby Show was pretty popular if that gives you a contrast.
At the bottom, they're simulating quantum physics on a classical computer. The complexity should be exponential (in time, mainly), yet they've gotten it down to "linear".

No surprise there's a large trade-off.
> “The solution is obvious, and not vague at all: stop over-relying on metrics, and stop pretending that what matters can in most cases be measured.”

That is vague. You, like the article, are not being specific or explaining how this can be systematically applied.
No, it's not okay for businesses to decide who to serve. That's totally different than deciding what to serve.
The impressive part is how you can write a game for one of these systems, and easily port it across a variety of 8-bit platforms. That's hardly true for C code and definitely not true for assembly!
This is all about the Unix philosophy of ‘do one thing, and do it well’. I used to be a python programmer before I moved to java and a significantly larger stack. The public interfaces of different classes made writing new code so so much easier. In fact, I think python should use this paradigm if only for the purpose of productivity.
"If SoftBank puts in a new $5 billion at a sub-$8 billion valuation, that will bring its total investment to about $15.8 billion, or about twice WeWork’s current value. If it doesn’t get a majority of the stock for that, it should just hand WeWork founder Adam Neumann the keys to its next $100 billion Vision Fund with a note saying “you are better at this than we are, here’s a present.” "

(Matt Levine on Friday)
I guess what people like Bush didn't like about it was that Homer was seen as stupid (and traditionally the father figure on shows was wise and could give good advice to his children) and that Bart was a troublemaker.
This is a bit of a stretch. The way cooperative systems worked is that blocking or long-running calls tended to yield. Most of the time the explicit yields therefore weren't needed, you could just wait until the next blocking call.

You could replace the cooperative system with preemption and most people wouldn't notice the difference. That's exactly what Win32 did, the programming model and APIs were largely philosophically the same.

Today's preemptive multitasking systems also sometimes call the scheduler on syscalls, effectively doing the same as those cooperative systems did. And eg. Linux has sched_yield. It's pretty common even today to see that wherever you have something close to a busy loop.
I'll chime in here to show my support for Pop!_OS. Simply put, I like it so much, that it's been the host OS on my 2013 Mac Pro tube since early this year: https://triosdevelopers.com/jason.eckert/blog/Entries/2019/3...
These companies will treat streaming like they treat all other markets dominated by networking effects and mindshare - dig into their vast scrooge mcduck money pits they have been accumulating (mostly internationally) for the last 10 years to sell the services below cost to try to attrition out the competition so they can reign alone as the last corporation standing.
>>> As a concrete example: a single Salesforce server supports thousands or millions of users, since each user generates a handful of requests per second. A single Segment container, on the other hand, has to process thousands of messages per second–all of which may come from a single customer.

This sounds like the basic problem with Big Data and selling advertising as a business model ... that eventually even bits aren't free.

I can see how it happens - but I think any business that has as its core ship everything to our servers in San Francisco is just badly architected - and if that's your business model you have a bad business model.

no particular comment on segment but a general thought - perhaps most of the business models today are not very good ones

(I seems to remember a rap lyric start up that spun up a new single threaded Ruby on Raiks instance for the most trivial request increases)
Around 10.5 I used to hold Apple's docs in very high regard. All the basics well documented, with examples.

But they've redesigned the dev site a few times, and each time they've changed the URL scheme (breaking all of external links), added more finicky JavaScript, and seem to be losing actual docs.

Nowadays I just can't find anything. If I search the docs, I'll end up finding scraps like some variant of an enum "kEnableFoo" at most documented as "Enables foo.", and that's it. No links to what the other options are, the functions which take it, no examples.
Presumably https://www.info.ucl.ac.be/~pvr/book.html - and one of the ugliest web sites I've seen in recent years.
The paper describes a potato puree, so presumably they're expected to cook+mash+season the potatoes the day prior and put them in a reusable food pouch. Definitely cheaper and probably more pleasant tasting.
... or you could just microwave a small potato and leave it in its natural, extremely handy, form! Get prewashed yukons and you don’t need to peel them.
More people buy Alexa devices
When I was a kid I wasn't allowed to watch it :S
Dear Disney. Instead of streaming, why not build a nationwide Disney network? 3-6 Subchannels of Disney 24/7. I'll watch that with my kids, ads and all. But were not paying for your streaming stuff.
I am an Asian who was definitely discriminated against during the college admission cycle. It really really sucked. Luckily out here in the "real world", a lot of that discrimination flips and I benefit from being an Asian in tech in many ways. I don't feel the least bit guilty about it either.
What's worse is that SV has been buying popularity, influence and political points with that money. Does the money run out though? There must be huge fat to burn before SV runs out of it.
You could try: https://github.com/bulletmark/libinput-gestures
You example is code smell.

When dealing with error handling in Go (and many other languages), you should do one _and only one_ of the following:

- if you have enough context to handle the error (eg. retry, or degrade gracefully, or perform whatever other application logic to recover, possibly returning a more friendly error to your caller), do that, possibly logging the source error and do not return it further up the stack directly - you have now healed the error condition, and the application code can continue.

- otherwise, return the error, decorating it with extra context if possible.

Doing both, ie. logging (which is a case of handling the error) and returning it up the stack leads to extremely chatty and difficult to debug code. Errors are a fact of life, and your path of handling them should be as well engineered as the happy life. That's one of the most important things in writing reliable software.

That's also one of the reasons there's no generic stack unwinding/exceptions on Go: it forces you to _think_ about error cases and at least reminds you to handle them gracefully. You might not like this approach of treating programmers this way, but that's one of the cornerstones of Go.
> In a Jan. 17, 2017 email, Forkner reminded an FAA official to delete information about MCAS from materials written for pilots transitioning to the 737 Max from an older model of the jet. In the email, Forkner said “recall we decided we weren’t going to cover” MCAS in the 737 Max’s flight crew manuals because the system only operated “way outside the normal operating envelope.”
"Blow my mind" might be a bit of an exaggeration, but whatever magic was once in the book is now gone for me. Experience with other books and other languages has shifted my perspective such that K&R no longer feels special to me.
Just wait, one of the sports supplement companies is going to bring a potatoes-in-a-tube product to market.
The multiple-DPI monitor support has been holding me back from Linux for a long time. Is it possible to install this on other distributions?
Cause most folks at Google are just moving protobufs, myself included. /s
Prototype large-scale quantum processor made entirely of light
>Who are you arguing with?

Who's arguing? It's top level comment on a hn submission. Occasionally people post their opinions. Who am I arguing with? I didn't realize us vs them mindset is compulsory here.
> That's bad Go design. An API where the particular nature of the error matters, should declare error constants and use the "Is" mechanism. You shouldn't be unpicking the internals with an IDE, you should be getting something you can work with, right there.

AKA roll your own stack trace library. That's what "errors" package and co are. That's not "bad God design". It's just not Go's problem, as deemed by Go designers.

Thus criticizing that trade-off is fair, like any trade-offs.
If you're interested in learning or practicing piano with something like this and have a MIDI keyboard check out Piano Marvel [0]. My son has been using it for the last year to learn to play. It monitors both notes and timing and has a large library of exercises, original pieces, and popular music.

[0] https://pianomarvel.com/
Segment sounds like the kinda business that should presumably just serve up 403 errors for all EU traffic. Data laundering analytics to 300 external tools is shitting on the GDPR.

(Remember this when reading the article: all the traffic, all the VMs, all the megadollars spent on AWS here are doing nothing but tunnel (replicate) analytics data to third-parties, all of whom would be perfectly happy to receive it directly. It is the definition of waste.)
However long it takes to click the button to make it go away is the amount of time wasted. The EU felt it was their right to pass a regulation that achieves nothing other than annoying millions of people several times a day.
Linkt to repo https://github.com/tinacms/tinacms
"When they IPO'd they were valued at $290 million (about $294 million in inflation adjusted numbers"

That doesn't sound like the right amount of inflation. Maybe you mean $190M then or ~$435M now?
You can find detailed python solutions for the Coursera course homework online, for example: https://github.com/suraggupta/coursera-machine-learning-solu...
Virginia town becomes home to nation’s first drone package delivery service
Would be awesome if you could turn on basic strategy suggestions for each hand to help teach it. How many decks
is this based off, or is it random from a single deck each deal?
Is Whilst the Handlebar Mustache of Modern English? – JP Fosterson
Sure will do that now.
I know of ikoula, which has gtx 1070 servers available under your budget. Looks like they are even running a promo right now so it's even cheaper. Just remember to read small print etc

Just do your own research tho. I don't remember hearing anything bad about them but at the same time I'm not endorsing either.

https://www.ikoula.com/en/dedicated-server/xeon-gpu
"Uber wants to be the Uber for 'Uber for x' startups"

https://mashable.com/2016/06/09/uber-rush-api/
You're only the crazy outlier because our entire infrastructure has been re-designed around having a car first and foremost. Except The Netherlands. That affects everything else - how things are built, spaced, run down of public transport, footpaths get the long way round, road gets the direct route to shop door, housing areas no longer have many (or any) local shops, services or expectation to add a rail station or bus route to the new houses.

Look back to history and most shops and milk used to deliver, or have a round that brought the green grocery, or whatever to you in a suitably kitted out van. Losing those means yet another push to individualise delivery to you in the car.

I can only hope we find a middle ground that's people first, but I suspect vested interests and big business will win, as always. FWIW We mostly do live without the car, but once every week or two there's a trip that's unavoidable. My ideal commute is 30 mins or so each way, on foot or bicycle.
Is this really going to be true? Aside from the 6502, the overlap between the supported systems is approximately 0! I'd expect creating a cross-platform product to be no easier than it would be when working in assembly language.
Shopify API Release: October 2019
> Stack traces are desperately needed to give errors context, and I was very disappointed to see that proposal dropped from Go 1.13. At the same time, I'm hesitant to use xerrors in production code because it's likely to change rapidly in the future.

By the way what's left of all the "Go 2" proposals? "generics" look like they are in limbo and so is the "try/catch" proposal. Has anything been implemented yet?
Main use case I have is food delivery which I use quite often and i obviously want while it is still warm. A quick Google search suggests that alone is a 83 billion dollar market [0]. Granted, they'll probably need to scale this up to handle larger food orders as the Australia demo only delivered 1 burrito at a time as far as I know of.

[0]: https://www.google.com/url?sa=t&source=web&rct=j&url=https:/...
It's true, good mechanics are hard to find.
Look up Peter Sripol on youtube. He homebuilt an electric airplane or three.
What? You'd show ads to your kids? And would watch on Disney's schedule, not on demand? You can do your thing, but that sounds like exactly the opposite of what I want.
Or the Apple II
Ask HN: Is there some way to recommend books in HN?
I am reading "Between the world and me" from Ta-Neshi Coates and I thought that I would like to recommend it to HN community and would love to see a discussion about it.

I feel this community is perfect to recommend and discuss books (technical and non technical) and all of us could take advantage of it so I was wondering if there is or (could be created) a specific tag with this purpose.
"Potaterade"
Father figures have been buffoons and families have been chaotic on TV for decades - the Flintstones back in the 60s for example.
Ah, okay, that makes sense, thanks! I can't tell you how much trouble I've had deploying docs with authentication to an org that uses GitHub, I basically spent a whole day figuring something out and gave up. GitLab was literally one setting.
Very little error logic in the context of a sessionless server requires handling close to the point of error - requests should either succeed or fail en mass for easier reasoning and retry from the client end, which means no recovery.

Which means you need to abort when you find an error condition, and roll back everything, all the way up the stack.

The more stateful your problem domain, the more likely you need recovery logic, and error codes start becoming more useful. Add in nondeterminism and error conditions are non-exceptional and exceptions are often not the best model for them.
Ironically, North Korea has a national health service and free universal health care for all its citizens. [0]

[0]: https://en.wikipedia.org/wiki/Healthcare_in_North_Korea#Heal...