skysight-inc/HackerNews huggingface dataset:
One method I came up with, which a friend tried successfully (she doesn't smoke anymore) is to distinguish and separate the trigger from the habitual reaction.

So for example, if you always have a cigarette the moment you get off the bus, force yourself to wait 10 minutes before sparking up. Do that for ALL your triggers. And always go outside to smoke, regardless of the weather - no comfy couch or office desk. You want to separate that bit of comfort, too. As a side-effect, your home will smell less like a disgusting ashtray even before you finally do quit.

Sometimes 10 minutes after the trigger and initial urge passes, you might not feel like smoking at that moment, or you are onto something else that needs to be done. Too bad - spark up. This is to make the physical act of smoking a bit of a nuisance instead of an instant reward. If it gets in the way of something, great. If you REALLY don't feel like smoking at that moment, definitely force yourself to finish it. The more unpleasant or unwanted that smoke is for you, the better.

After you get used to the 10 minute delays, make it 15 minutes. Then 20. Once you can last 20 minutes from the urge or trigger moment, you can decide to skip the cigarette. You probably don't really want it anyway, and if you can last 20 minutes from the onset of an urge, you're well on your way to quitting, and can now start to focus on having fewer cigs per day.

Anyway, it took her a couple of months, but now it's been a couple of years since she's smoked. She only had excessive urges for the first few weeks, and didn't experience actual withdrawal. She just got to the point where she didn't care about it anymore, and then stopped.

The hardest part for her was breaks at work, but she compensated by only having a single cigarette timed to coincide with the end of her break.
> 2. Pay smokers to stop - with regular drug testing.

Or charge them more for health insurance. It's effectively the same thing, but more politically palatable.
Get them an nvidia shield to attach to the dumb tv. Best of both worlds.
> The centrality of scripture and its study in the Islamic tradition helped to make education a central pillar of the religion in virtually all times and places in the history of Islam.[50] The importance of learning in the Islamic tradition is reflected in a number of hadiths attributed to Muhammad, including one that instructs the faithful to "seek knowledge, even in China".[50] This injunction was seen to apply particularly to scholars, but also to some extent to the wider Muslim public, as exemplified by the dictum of al-Zarnuji, "learning is prescribed for us all".[50] While it is impossible to calculate literacy rates in pre-modern Islamic societies, it is almost certain that they were relatively high, at least in comparison to their European counterparts.[50]

https://en.wikipedia.org/wiki/Islamic_Golden_Age#Education
Nah, it's not nicer. dplyr is way better than pandas. But there is no end to the supply of Python fanbois who only know Python and assume that whatever's in Python just has to be better
i found the Kaitai toolset (IDE, compiler) to be useful in parsing or "deserialization" for proprietary financial protocols. if you are just reading data (especially in an environment with clients in different languages) it's a strong recommend, however lack of support for "serialization" means that you will still need to roll your own encoders. ultimately we created our own tooling/DSL for encoding as well as generating KSY files to generate clients as part of our builds

edit: i forgot to add - there is an issue for serialization on kaitai github repo for some time [1], with some interesting discussion around the implementation challenges

1. https://github.com/kaitai-io/kaitai_struct/issues/27
it doesn't seem clear from the recent political situation in the US that owning up to your lies does anything but give them more strength.
Ok, but I feeling that you're on a knife edge is not the same as actually being on a knife edge, which is what GC claimed.
Yeah it's annoying. But at least they still have a normal HDMI input, so I could still buy a smart TV stick to plug into that (or use a laptop). That seems more and more attractive as well since after a recent software update my TV now takes around a minute to boot to its smart OS, I suspect because the old hardware can't keep up with the new software.
> Apple does many things, but certainly not bleeding-edge innovation.

What? Having been in the inner sanctum of engineering within Apple for years, that's exactly the engineering priority for groups I saw and worked within. I'm genuinely curious why you assert otherwise, find it surprising.
> ISP provided DNS is almost universally terrible

Yet that is what internet actually is for a lot of people...
Awesome! I've seen videos of people running Android Studio on a recent Samsung model and I was impressed by the fact you can now build Android apps on Android. As far as I know there is currently no way of building iOS apps on an iOS/iPadOS device.
I don’t like “flower” because it depends on his arbitrary ordering of suits.
Amen! I never had a problem that wasn't bad hardware or my fault. All MS-DOS did was manage the disk, and keep track of time. There wasn't much to go wrong.
>The two functions become obsolete at different rates

The implication here is that the connectivity tech goes obsolete quicker than screen tech. That has traditionally been true, but has it been over the last 5 years or so? We don't even have to get into the specific display technology. Just from a feature perspective, there has been a lot of innovation in screens including 4k, HDR, and high refresh rates.
> just not connect it to the internet

Wait until they have TVs that connect to cellular which doesn't need your consent
If I understand it correctly, katai generates for you the reader as well, while protobuf generates only the data container. Katai is more a sort of protobuf + grpc for reading data.
My smart TV's built in apps (Netflix, mainly) are incredibly unstable. About 5 years back I started to use a Firestick instead. The TV is best as just a TV.
Yes, and wouldn't really surprise me if freezers with the same design can still be found in stores today.
Which makes them all Covid-related deaths.
Is the kcap file format documented anywhere?
Yeah, I've seen the Sceptre line, and it's nice to have it, but amazon reviews say they're slow to respond to the remote and change channels etc.

And, of course, none or the fancy things like OLED or even local dimming/HDR.

Seems like an OK bet if you're looking for a basic TV though.
Main reason is - you're already proficient with Rust and enjoy using it.

I don't think there's much borrow checker issues in data analysis code. You `.clone()` everywhere, and it's still going to fly fast.

Some benefits:

* static typing niceness: language server, typo catching, some types preventing human error here and there etc.
* expressing some ideas in a much more robust way
* best in class tooling like package manager, rustdoc
* hitting some unexpected not strictly data-analysis requirement is never a blocker
* you can reuse your code, compile to WASM and embed in a page
* performance of auxiliary code is never an issue
* unlike Python, you can send it to another person and expect it to work just like it did for you
* if it turns out that the "one-off" has to become more complex and serious, you don't have to throw away everything and start rewriting it "in more serious way"
FTA

> The operating system is complicit in this trickery, so the Digital Color Meter eyedropper shows “white” as 255, as do screenshots.
This looked pretty nice. I was going to set up my own instance but it runs javascript on the back side.
How would you define "good C interoperability"?
I do love kaitai and recently contributed a grammar, but both the title and the copy talk about writing.

> Reading and writing binary formats is hard... Kaitai Struct tries to make this job easier...

Kaitai cannot write data back out. [1] This is a major limitation for me. It would be nice to use it as a mutation engine for fuzzing, but without being able to write it back out, it is mostly just beneficial for analysis.

1. https://doc.kaitai.io/faq.html#writing
Admittedly, the `|>` javascript syntax is complicated by unclear async behavior.

I'm excited for it, though, and if the partial application syntax `func(a, ?)` gets ratified then we'll have a nice concise way of describing operations.
There is one additional detail that is relevant I'm aware of; Timnit also sent an internal email to staff as reported here:

https://www.platformer.news/p/the-withering-email-that-got-a...

One can judge the content for themselves, but it was clearly intended to ratchet up pressure on management.
Very much interested, what is your privacy policy against customers or clients data stored in your cloud?
My company makes IoT systems to support low power devices that use mobile (NB-IoT and LTE-M) connectivity and we have some similar problems having to do with mobile networks and APNs.

The way we solve this is that we assume any knowledge the device has about the outside world can become obsolete, so we do we have a two layer approach.

The bottom layer is that we have a set of semi hard-coded fallback values that are likely to work in the forseeable future. Updating these fallbacks requires an over the air firmware upgrade which isn't a terribly big deal since we regularly upgrade firmware over the air. The goal of these values is to make sure we can get the device online and direct it to somewhere where we can trigger firmware updates.

The second layer is that one or more times per day we ping a config server that sends a packet with configuration data to the unit. This is typically API endpoints etc. The configuration data is essentially a prioritized list of resources, so if one won't respond it will go to the next on the list (while still trying to determine if a higher priority resource becomes available).

Last week we got a chance to see how this failed over beautifully as multiple resources were removed and a fleet of devices just adapted as they should. (The shutdown of these resources were planned, but presented a good opportunity to do a fire drill).
Yeah, but it’s always via AMP and the double dance to get the share action to be available and then open in Apollo is too much friction.
I assume that this was a tongue in cheek comment, but in case it wasn’t...

The site code and content itself is worth very little. The history, traffic, and back links are the value.

Even if the site was copied or even improved on, it would take somewhere between 6 to 24 months to reach a comparable level of traffic assuming no black hat strategies are used.
I've been writing code with f# and dotnet core 5.0 on MacOS. Works great!
Slightly more seriously, it's interesting to note that, according to Wikipedia[0]:

> When studying the great conjunction of 1603, Johannes Kepler thought that the Star of Bethlehem might have been the occurrence of a great conjunction. ... A triple conjunction is a conjunction of Jupiter and Saturn at or near their opposition to the Sun. In this scenario, Jupiter and Saturn will occupy the same position in right ascension (or ecliptic longitude) on three occasions (due to apparent retrograde motion) over a period of a few months.

Presumably the significance of a triple conjunction is that it explains the story of the Magi seeing a "star in the East", which then "troubled" Jerusalem when they arrived there, until it "went before them", and then finally "stood over where the young Child was".[1]

[0] https://en.wikipedia.org/wiki/Great_conjunction#%E2%88%926

[1] https://www.biblegateway.com/passage/?search=Matthew+2%3A1-1...
Genuinely curious why not combine syntax? Do we need 2 different pipes in R? When to use which? Thanks for your thoughts!
IR watches were always hilarious at school. I suspect in pubs too.
This sounds promising, but how do we type that pipe easily if we're going to be using it all the time? I actually like %>% because it's easy to reach the keys and hammer it out. Agreed on the ugly stack traces.
> while those of us who worked on crypto without any specific feelings are early retirees.

Proudly grouping yourself with Peter Popoff and his "debt cancelling miracle spring water", with the justification "I made money so it's not a scam". With your friends Uri Geller, Charles Ponzi, Elizabeth Holmes, Kenneth Copeland, and crew.

> Me too, but I try to leave aside opinions

Sorry, was your first paragraph not gloating about your superiority, and looking down on and mocking people who still have to work for a living for not having your dispassionate visionary insight? Because it sure felt like a big dollop of opinion.
From a privacy point of view,

Not embedding all of them would allow tracking. Caching all web fonts would allow tracking.

The solution is embedding all the popular ones so everyone has them and it can't be used as a signal.
Sky Map shows the planets much larger than they really appear in the sky.
You have to install package management tools and point to repos for most languages - Erlang, Java, PHP, Lua, etc.

Very few languages include a package manager as part of the LANGUAGE.
Bartle Taxonomy of Player Types
One affects society of successful. The other only affects a small amount of people.
Ask HN: Is there a best practices document or website for app development?
I'm building an app right now but often have trouble with tradeoffs (separate out API calls vs. combine them into one, etc.) I was wondering if anyone had any resources for best practices for performance and development when building a mobile app
This looks like a paradox but it's easily resolved when you realize that trust isn't binary.

The "wisdom of crowds" depends on the question asked, the algorithm used, and the countermeasures that keep people from gaming it.

A simple example: if you want to have good restaurant reviews, it's a good idea to exclude people who never ate at the restaurant in question. That alone isn't necessarily going to get good results, but it will help.

Just letting strangers do whatever they want in group activities online typically has bad results. This has been tried many times. If you want to get good results you need some kind of structure.

Who imposes this structure? The people building the system.
Stress eating? I bet fewer people are dieting right now than last year.
I don't mind pandas so much, although dplyr is quite nice IMO (feels like natural language and declarative/SQL like, whereas pandas ends up with lots of procedural idioms).

ggplot is something that I don't think matplotlib is comparable to at all, though. I am so much faster at iterating on a visualization with R/ggplot than Python/matplotlib. Maybe it is my tooling, though. How about others who have used both? What are your experiences?
'They're ripping us apart': Bay Area small business owners talk new lockdown
When the lockdowns started happening in March, I began trading the stock market. My YTD realized gains is equal to my base salary. About 140k. I am proud of all the trading I did. Living on the west coast it also turned me into a morning person, where market opens at 6:30am. Good side effect :)
Some professional classes in Eastern European countries used to have mandatory time they had to spend working in factories, probably for this reason.
Hold on.

Maybe I’m splitting hairs here, but surely there’s a difference between “not knowable in advance” and “doesn’t exist”?
"The data obtained by Second Street discovered 242 people in Saskatchewan died while on a surgery waitlist between April 2018 and April 2019."
Interesting to compare with a very similar business and a different outcome: https://techcrunch.com/2018/07/23/cookie-startup-fails-to-ri...
The stock market has had a ridiculous year.

I'm mostly dull indicies, with a middling adventurous fund that has more than doubled in the last year; my investments increased by about 30% overall. My investments brought home more money than I did (I've been in full-time employment throughout) and I'm starting to wonder if Piketty wasn't on to something.

Utterly passive and zero effort on my side; I just do what they say and stick my pennies into indicies (and a small amount into more adventurous funds).
Print statements can generally be thought of as unit tests that require 1 line of boostrapping code.
Mind sharing your strategy? Very OTM calls? What type of stocks?
Concur. That’s the kind of writing that makes me want to sit down and write myself.
Apollo already has a share target that opens Reddit links in Apollo (and can also detect copied Reddit links when you launch Apollo). I just purchased Opener because I want it to automatically launch Apollo when I click a Reddit (AMP) link in Google, but it can’t do that.
How long do you estimate it takes to design a reddit-like website for someone with beginner experience in webdev?
Is the point that I sometimes use these networks? Then I somewhat agree - I would set up a separate guest network without shenanigans for guests to use. This avoids both the ethical sketchiness and having to explain why their web browser is shouting at them
Be yourself is a good advice even if you are a dick. Maybe not good for you persobally but for everyone else so they know early they should steer clear of you and never get attached to you.
Rising rents are not evidence that rising rents are a major cause of homelessness.

"what happens when you lose your job, and then lose your apartment as a result?"

Then losing your job is the cause, not the rising rents.

"So your theory is that rich people hire homeless people off the street to cater to them?"

I could imagine many people migrate to those places to try to make their luck, because there are many opportunities. Many people trying their luck means also many people failing.

Pretty sure that a couple of dozen Billionaires do NOT cause homelessness.

"Trickle down doesn't work."

People living in New York are probably quite well off in general. A bunch of homeless people don't contradict the trickle down effect. You yourself mentioned mental illness, addiction, and unforeseen events as major causes of homelessness. Notice how rising rents and high paying jobs are not on the list.

"> but also the jobs that make the rich people rich.

This is along the lines of saying "stop being poor, just get one of those jobs that the rich people have"."

Not at all, and this is becoming silly. All I said is that there are presumably the jobs that made the rich people rich, which will usually be a lot of jobs, because rich people will usually have sold a lot of things. Building lots of things requires many workers.

"I would encourage you just read up on the subject instead of inventing theories that sound good to you."

If you are so well read, then provide some convincing evidence for your claims. None of the three links you provided tell us anything about the cause of homelessness. I noticed in the last one that California has very low youth homelessness, though.

Frankly, your "well researched" theories about homeless sound mostly like leftist anti capitalist propaganda to me.
- Don't emit colour unless asked.

- Don't assume the user's terminal's background colour. Pragmatically, you can use red; the rest are too light or too dark.
DISCOUNT REAL 𝐑 𝐎 𝐋 𝐀 𝐗 AT THE ONLINEE PHARMACY

CLICK AND WIN --- YOU HAVE (3) NOTIFICAIFIOTIONS

http://www.5z8.info/fakelogin_q3h7ka_nic_cage_naked
Buying stocks in the dips this year. Passive income hope-to-be in the following years.
JSX abstraction exists not because JS is so flexible but because it has a separate compiler for the code.

Otherwise if you don’t use JSX then you get something akin to programming with Ruby on Rails or Django - still quite integrated, but the syntax is familiar.
I sell two products on Gumroad. One is an ebook about AWS, and the other is a 1.5hr video about building on audience.

Sales past 12 months: $290K

- Dec: $25K

- Jan: $26K

- Feb: $8K

- Mar: $9K

- Apr: $43K

- May: $59K

- Jun: $25K

- Jul: $14K

- Aug: $21K

- Sep: $12K

- Oct: $17K

- Nov: $29K

Profit: $256K

https://twitter.com/dvassallo/status/1333888186762678274?s=2...
This is my first project with it so I'm probably not in a position to provide much insight. So far development with it has been almost identical to coding a website, but maybe because I am yet to start on any OS dependant features.

What makes you say that it isn't getting traction? AFAIK, some huge companies are using it to create their apps.

I think it gets a lot of underserved hate, just because it's JS and because it isn't "truly native". People also love to chime in about its performance but 9/10 times that's down to a bad implementation, in my humble opinion.
I read(/listen to) 3-4 books/week. For fiction, 2020 has been a blur of Murakami.
Thou art in a simulation and it is written in JavaScript
Yup.

My goal is to break feedback loops. Authenticated speech empowers us (the receiver). Like spam filters for news (outrage).

I don't care if other people are gas huffing QAnon, just so long as I don't have to ever hear about it.
>Is it possible to block any DNS query on my network that doesn’t ask my pihole?

...until they force all dns requests through DoH.
Are you worried about missing out on a big upswing?
How does a "straight up fraud scheme" work? Can I tell people on Bitcoin forums that I'm pretending to be a Nigerian prince and they'll give me money? If so, where can I find these forums?
Those two statements are not in conflict. Yes, we have done very well for ourselves, but that doesn't mean we aren't irrational and flawed. Just because we have done well doesn't mean we should ignore areas of improvement.
Asking a candidate to describe 2 different ways to do modulo is an excellent interview question, imo.
I would agree, but I've also been a passenger with drivers who insist on using their phone (and won't let me text for them) and watched the car veer back and forth, where they'd correct just after the car had crossed the lane line. I don't ride with those people more than once, but these were people who are otherwise intelligent, educated, kind humans.

The problem with trusting humans to use their own judgement is that it is very self-focused: "Am I going to die in an accident?", not, "Could I hurt or kill someone else"? Given how many people (at least in the US) refuse to wear masks for the health of those around them right now, I don't think those people would also be concerned about hitting others.

FWIW, I think it's possible to safely use your phone at a stoplight (I frequently do), but I saw my friend release the brake and start rolling and then look up from his phone, because he had seen it was green in his peripheral vision. That is not safe, and I think scenarios like this happen more than we realize.
I used DDG for years but switched to Google and StartPage because DDG just doesn’t work well for the types of searches I tend to perform. I found myself using !g for everything.
I thought %% was some sort of macro expansions and that is how magrittr creates pipes. But browsing through the magrittr github repo, it looks like they just define %>% and the other pipes as functions [1].

I don't actually know the relation between magrittr and the RStudio shortcut, but I've always assumed a shortcut for typing the pipe characters exist because RStudio employs Hadley Wichkham, who in turn is really big on tidyverse and pipes.

Would %>% mean anything in R if you didn't import magrittr?

[1] https://github.com/tidyverse/magrittr/blob/8b3d510f2a333b224...
The Dedemocratization of AI: Deep Learning and the Compute Divide in AI Research
Except you can't shut the thing off, which means I can't have the remote anywhere near me or I'll bump it and make the pointer pop up.
Thanks, I’m going to give this a try.