skysight-inc/HackerNews huggingface dataset:
> The argument here is that it's far better to have player and monster be simple data structures, and a single function hit(player, monster, weapon).

Naturally it's better to be simple if the logic involved actually is simple, but surely the point of the example is that game logic typically isn't. Hits in games don't just change a hit-point value, they tend to play animations, trigger events, work differently depending on this or that piece of global state, etc.
Right. Because Objective C and Smalltalk are such resounding successes, uh?
Norway Axes Energy Subsidies to Crypto Miners
"My simple advice is: do not try to run Raspberry Pi from SD cards in "production" under any circumstances on a large scale, as you will run into filesystem corruption and create a lot of work for yourself."

Is that true even if you mount the filesystem(s) read-only after boot time ?

As an aside, I have to say that it is very surprising and annoying how fragile "modern" drive parts are compared to decades ago when we were using either disk-on-chip or just plain old CF cards pin-compatible with the IDE connector.

I had 16MB CF cards on the IDE bus that lasted 15+ years[1] in production without a hiccup, but in 2018 SATA SSDs die randomly from time to time ...

[1] Yes, they were all mounted read-only ...
> We build quantum computers where? On a planet? That has? Gravity.

Yep. Earth.

But they are small for now. From https://en.wikipedia.org/wiki/Quantum_computing#Physical_rea...

> In late 2017 and early 2018 IBM, Intel, and Google each reported testing quantum processors containing 50, 49, and 72 qubits, respectively, all realized using superconducting circuits. By number of qubits, these circuits are approaching the range in which simulating their quantum dynamics is expected to become prohibitive on classical computers, although it has been argued that further improvements in error rates are needed to put classical simulation out of reach.
Between 1 and 84% isn't a very useful range

"The wide range of estimates can be attributed in part to differences in definitions, survey instructions, and other methodological variations."

Kind of burying the lead.

"Taking into consideration" Making shit up

I'm more interested in how many people actually hear voices, not memory, interior monologue, or day dreaming. Unbidden commentary by a voice of another that is distinguishable from reality only by deduction.
Thanks for all the upvotes! I quickly created a tutorial on how to host your own writable ipfs gateway and support the distributed web: https://blog.florence.chat/tutorial-host-your-own-ipfs-node-... If you find any errors or have any questions just let me know.
The description seems to exclude students with disabilities not matching the filter though.
// player.hits(monster).with(weapon)

add to class Player {
// XXX: Bad coupling Player -> Monster
// XXX: Bad coupling Player -> PlayerMonsterHit
method hits(Monster monster) {
return PlayerMonsterHit(player, monster)
}
}

class PlayerMonsterHit {
member Player player;
member Monster monster;

construct PlayerMonsterHit(Player player, Monster monster) {
this.player = player;
this.monster = monster;
}

method with(Weapon weapon) {
doTheActualFrigginHit(this.player, this.monster, weapon); // this line is all we REALLY need
}
}

I guess 15 lines (that do NOTHING) was not an overestimation.
OOP is often excruciatingly verbose and boilerplate which an IDE can help with.

You can do LISP in vi or emacs just fine, but for java some kind of IDE to handle the sheer data processing load of source editing is necessary.
After visiting friends and family this Thanksgiving,I’m not so sure people are smarter or more moral than we acknowledge. I was shocked several times by what I considered horribly immoral positions held up as just and correct policy implementations.
Scammers are changing the contact details for banks on Google Maps
Eric Lippert discusses this here (2015):

https://ericlippert.com/2015/04/27/wizards-and-warriors-part...
Xnest, Xephyr, ChromeOS, synergy, and syncing some clipboards
Ask HN: Do Windows and OS X each have their own React like rendering engines?
Do Windows, MacOS and Linux each have their own React like rendering engines to render the GUI apps?

It seems each OS would need to have a rendering engine to render the GUI apps? Are these engines dataflow rendering engines like React?
> pattern recognition become more difficult for all but the most experienced programmers.

In fact the opposite is the case. The boilerplate obscures underlying patterns because it forces you to read twice as much to infer the same amount of information. Roughly the same design patterns are used in more expressive languages, just without all the boilerplate. This makes the pattern being employed completely obvious since it's only a few lines of code.
For those unfamiliar with the concept, courtesy Wikipedia

https://en.m.wikipedia.org/wiki/Gradient_descent

The basic intuition behind gradient descent can be illustrated by a hypothetical scenario. A person is stuck in the mountains and is trying to get down (i.e. trying to find the minima). There is heavy fog such that visibility is extremely low. Therefore, the path down the mountain is not visible, so he must use local information to find the minima. He can use the method of gradient descent, which involves looking at the steepness of the hill at his current position, then proceeding in the direction with the steepest descent (i.e. downhill). If he was trying to find the top of the mountain (i.e. the maxima), then he would proceed in the direction steepest ascent (i.e. uphill). Using this method, he would eventually find his way down the mountain. However, assume also that the steepness of the hill is not immediately obvious with simple observation, but rather it requires a sophisticated instrument to measure, which the person happens to have at the moment. It takes quite some time to measure the steepness of the hill with the instrument, thus he should minimize his use of the instrument if he wanted to get down the mountain before sunset. The difficulty then is choosing the frequency at which he should measure the steepness of the hill so not to go off track.
> You don't trust yourself writing critical code?

Absolutely this. There have been many occasions where a piece of code was business critical, I made every effort to get it right, tested exhaustively, and it still failed. Once only dumb luck saved my employer from financial disaster. I am not competent to write code that is critical for life, and doubt I ever will be. Still I think I'm a good coder, which means I think that most coders are in the same boat.

NASA has coders that are far better than I ever was or will be. Still, it's an act of great bravery or foolishness for anyone to blast off in an experimental spacecraft that depends on software for survival.
I'm curious if the Estonian e-residency can help workaround the need for an European permanent address?

(wrote this prior to trying to google around for the info)
I can see specific usage of these but probably not large scale usage. Industrial things need to work 100% of the time and has to easily talk to other devices reliably usually in the form of some redudant network. It'll be pretty hard to convince engineers to use these on industrial equipment. The early 2010s were extremely lack luster for industrial electronics technological advancement. Everything you used were ancient (development of them started probably before I was born). But the mass adoption of Ethernet/ethercat have been speeding things up.
Zero indication as to what this is on that site. It asks for your phone number.

Madness.
well, Amazon gets to charge for hosted database, cache, queues etc. So I cans see why Microsoft will decide to claim hosted software as well. The real reason tho is more that Wall Street has no idea and it looks like they have grown really fast, caught up and passed AWS.
Driver Talent Pro 7.1.12.38 Crack and Activation Key Latest Version Download
Skunk Radio Live Auditions – Gospel – Lagos, Nigeria
Important paper from Google on large batch optimization
Hadn't seen that. Predictably, also being sued by multiple entities: http://blog.vidangel.com/category/legal/
True dat. Alright, well, I'll help him out with his obligatory link:

http://www.chinedufn.com/dual-quaternion-shader-explained/
That's all not in small part because the best and brightest people of the generation killed each other in a civil war.

With all Jiang Zemin's flaws, his best move was to "politically castrate" the party, and distance intra-party affairs from state governance. This is what made the two decades of progress possible: civil servants without little red books instead of brains.

In the current CCPs internal lingo, there is a term "Marxist ghosts" that was around since Jiang first took reign. The party has been long purging Marxist hardliners, but so far, have not came to full realisation why they have to do so other than "because they screwed up"
oh wow, probe intensity can vary based on will
>When something should change, you edit the freakin' code. If you have different kinds of hits then you make different procedures. e.g. magicPixieDustHit(monster, pixieDust, weapon, damage).

I dunno, maybe aim for something a little better than writing an exponential amount of functions for all of your interactions.

>FP apologetists want to make you believe that, but side effects are the actual point of the program.

If you want to make all of your co-workers hate you because randomProcedure changes shared state when it shouldn't, go right ahead. If you want to stop that, you're like two steps away from OOP's dependency injection when you write validator functions on the shared state object.

>I mean at least acknowledge that that's a highly subjective statement...

Games are about the worst choice for criticizing OOP because OOP is so useful for describing games. Procedural style is fine for Pong or Sudoku or really simple games, I guess. It's highly subjective in-so-far as the entire industry has mostly adopted it and released great games with it.
> we can't allow any foreign information to hurt the fragile minds of our brittle citizens.

Information like this?

https://en.wikipedia.org/wiki/Operation_Infektion

https://www.nytimes.com/2018/11/12/opinion/russia-meddling-d...
LiFePO4 is also much more fire resistant due to punctures, shocks and overcharging, which is also good for an industrial setting.
Where is the value of such distinction? What is consciousness without self awareness—memory?
Actually, I think this book[1] you might find useful to get started. It's really concise, has a digital version, and totally tailors to the notion of starting slowly.

The breathing exercises, in particular, are divided into weekly segments, sometimes more. You start with 2-3 breath counts on week 1 and then continue to build.

[1]: https://www.yogaindailylife.org/system/en/
But the whole point of entry-level positions is you get someone inexperienced at below market rates. What they are really aiming at is getting someone experienced but desperate enough to take an underpaid position. Then hope they don't leave for a better paying job elsewhere.
> Unsigned int should be used instead of int for "num", but many programmers use int as a generic type for everything.

Yes, this is very common. For example, Google requires that C++ code always uses int instead of unsigned.
Show HN: Essential – A weekly planner for work, personal and social life
I wonder what you really benefitted in Asia in that regard. Having more roomy space doesn't sound bad and I'm sure clothing won't have shortage of varying sizes.
Its exactly this.
All the "ownership" information is behind a secret number.
If you know/guess/steal the number you have ownership.
If you have the entire blockchain you can bruteforce checking millions of hash inputs for any matching addresses in the blockchain and empty them all of coins.
There is nothing stopping this and it will become viable as devices will be built to bruteforce random wallets or use a variant of rainbow tables to speed it up.
> Also, objects are best when used to represent actual objects (i.e. collections of data rather than collections of functions).

Except these aren't objects, they're just records. I don't think it's a good idea to pollute the word "object" or OOP. You use objects specifically when you need procedural abstraction, otherwise you use other types of values, like products/records, sums/variants, etc.

At high system levels, where you have client/server or other types of protocols, objects fit. At lower levels other paradigms tend to be better.
Optical switches are not a contender for general computing. Scaling beyond the diffraction limit (approximately half the wavelength) requires plasmonics, which is arguably more lossy than traditional transistors. If anything ever subplants CMOS, it will still likely be based on electron transport.

Electrons have a lot of great properties for switching. They are massive enough to be localizable into small spaces, but light enough to be cheap (energy-wise) to accelerate up to high speeds. They are ubiquitous, and they interact strongly with matter, electric fields, and magnetic fields.

Light is great for signal transport over long distances in a large part because it interacts so weakly with matter. But that same property makes it difficult to switch.
> first 3-7 years of intensive physical practices then only begin to investigate pranyama.

I would say this is slightly far stretched and discouraging for newcomers along with being misleading.

Being regular with yoga for a few months (if not weeks), one can start doing pranayama. Having a person to guide you along is highly recommended but saying that investing multiple years and then exploring as a suggestion makes it sound like some mumbo-jumbo which it's not.
I've been using the PLCs from UniPi [0] for a few months. They started with Raspberry-Pi-based systems but now have a Allwinner-H5-based system with built in memory. They have a significant number of digital and analog ports, depending on the model, and work with a number of different programming solutions.

[0] https://www.unipi.technology/
Plant UML is good. If you find it a bit constricting at times, I believe you can drop DOT graphs into the PlantUML diagrams, too. DOT is the language used by graphviz. You can of course use graphviz directly, too!
The Trouble with Trusting AI to Interpret Police Body-Cam Video
Agree! teachers in the system of BKS Iyengar are skilled as well.. For the skeptical or drive-by practitioners.. think for a moment on all the states of activity the human body is capable of .. from the deepest rest, to the most active fight or flight and multitudes of others.. breathing has to connect to each, both following (support that metabolic state) or leading (change state quickly) .. next, think for a moment on the greater numbers of illness in the mind and body.. following, or leading.. short answer, you can invoke the breath of the athletes, or of the dying, in the extremes.. heart-attack in the infirm, panic and confusion in the unstable, etc.. Please be careful with pranayama or breathing practices !
The best part is trains every 10 minutes or so. And so comfortable. I actually looked forward to the train journey.
Social Media, Online Accountability, and the Meaning of an Apology
Politics needs more skin in the game overall.
Stardew Valley on FreeBSD
Are there any great books or videos that teacH Pranayama effectively?
There actually is no proof that finger prints are unique. Last time I looked into it. The same goes for DNA.
Hey HN,

Creators here. We've been using this planning method for a while and decided to turn it into a product to see if it's helpful for others. I struggle with focus a lot, while Joris (other creator) struggled to prioritise the right things.
We both use this method by planning our week ahead on Sunday or Monday, where we set 3 priorities per part of the day (morning, afternoon, evening). Often we keep a few "dayparts" open as a buffer if something comes up.

We built the planner using Meteor, React, Styled Components, Reach UI, react-beautiful-dnd and react-tiny-virtual-list.

I explained a bit more about how we turned this method into an app on Medium: https://medium.com/swlh/finding-clarity-and-focus-as-a-maker...

While we feel like the product is pretty much finished (we've been using it for months already), the hardest part is to explain the method to people. So we're specifically interested in feedback on that part.
I still remember how mailing lists were spammed by same invite messages. :)
If you want privacy, why not use a real VPN like IPSec or OpenVPN? Both work on every operating system and both are fairly easy, from the client perspective, to set up. If you want a VPN and are willing to pay a service provider for it, why would you not go this route?

On the client side, configuring an IKEv1 VPN (IKEv2 doesn't support Split DNS yet) in MacOS, iOS, and Android is a piece of cake. You specify the server, username, password, and pre-shared key. Done. If you want to use a certificate instead of a pre-shared key it's a bit more work, but still do-able.

With iOS devices you can provide a profile file that has all of the settings already baked in so it's even easier. OpenVPN is similar, though you need to install an OpenVPN client first.
Having more room doesn't look good (most cases). A closer fit will always look better.
It's great to see that a focus on correct breathing is getting more acceptance. It seems the yogis were really onto something. Same with gut health. Ayurveda states there is a connection between gut health and general health and slowly mainstream medicine also seems to acknowledge that connection. There is also a lot of nonsense in Ayurveda and Yoga but I am happy that a lot of their good parts are getting more respect.
> The idea is that low-dimensional string-theory stuff happens in the interior (bulk) of the Ads space, and the boundary is the spacetime we know and love. The correspondence is that a complete theory of the boundary (QFT describing spacetime) can also completely describe the action in the bulk, and vice-versa. The mind bending thing about an Ads is that it's boundary is actually higher dimensional than the space as a whole. Analogous to how in linear algebra, you can project a space into a higher dimensional space without losing information.

this was useful. thanks.
> I dunno, maybe aim for something a little better than writing an exponential amount of functions for all of your interactions.

You mean "polynomial". And you are still not acknowledging that OOP doesn't help there either. There is only one way out: You as the programmer must do the sensible thing. If you really need runtime polymorphism (which you rarely need, if you structure things correctly and keep separate things separate), then for god's sake go ahead and do it. But in my opinion it's much cleaner to do it with explicit function pointers.

> Games...
> the entire industry has mostly adopted it and released great games with it.

I think you are at least 10 to 20 years late. The games industry, especially in the AAA sector where performance is critical, seems to long have acknowledged that OOP doesn't work out.
Indeed. WTF?
> “let the breath happen.”

This is the one part I specifically struggle with one I am meditating and focusing on my breaths. They are never happening on their own but run in manual mode.
Sometimes the best way to decide what to do, is a OOP-like 100,000 line long legal code. Sometimes the best way to decide what to do, is something short and sweet yet possibly not entirely clear, like the Ten Commandments. When what the original designers chose was correct, everything will work quickly and reliably. When they don't, you'll suffer for a long time. Given that, you'll spend almost all of your wall clock time suffering and complaining about the designers selection being wrong. With a side effect of most of your suffering will be due to poorly implemented examples of the dominant paradigm. "AKA OOP SUX"

In summary, given all of the above, there are two true statements that OOP works AND simultaneously you'll spend almost all of your mental effort on OOP not working. Generally, OOP being inappropriately hyper dominant at this time, means that non-OOP solutions will utterly master some very low hanging fruit for first movers who abandon OOP.

I've seen some truly horrific object relational mappers trying to connect OOP to inherently functional software APIs, hardware device interfaces, "chronological engineering" in general, and persistent data stores. Not surprising if you're working in those areas, abandoning OOP will lead to massive success.
Using GANs to generate MasterPrints that can unlock smartphones
.. accurate folk advice, if a bit on the conservative side, but not wrong.. Cardiac health is a long time to develop, and a long time to recover.. mental health stability is indicated by long, stable practice.. both mental health and cardiac health are directly relevant !
The OOP that the author "never understood" is what we see ALL the time in enterprise and startup code.

Well, is there a paradigm where you tend to see mostly good code? If so I’ve never come across it. Besides plenty of bad OO, I’ve seen bad functional programming, bad reactive programming, very bad state machines. Bad code is bad code.

(And what other categories of code are you thinking of, besides “enterprise and startup”? Those two would seem to cover a pretty wide range.)
Firefox doesn't work for me either. Chrome is OK. I am using Windows 7.
By that measure, FB is one of the biggest cloud provider in the world.
That would be incredibly misleading. Do you have a source?
... just wait for the first dude sniffing in active mode by forgetting to set the passive flag. The can controller will then not actively compose messages but will set the ACK bit... God knows what might happen by a third party ACK'ing on the bus ;)
Did you check through the referred papers at the end? It doesn't seem, via reading them, that they are just making shit up. You seem to be taking issue with a turn of phrase in the article, rather than the papers the article refers to. Are you making shit up and didn't actually check if they were making shit up?
How could DNA be non-unique, except for identical twins or clones?
Can anyone explain unlike other countries how has the Shinkansen not crumbled like the trains in California or New York. Did they bet on the right technology early on and/or are they just better at upgrades ?
Are any of the options listed in this comment thread available to US citizens ?

My understanding has been that US "Know Your Customer" laws make it very difficult for these banks to work with US customers and so they just choose not to. For instance, unless you have $10M or more, you cannot walk into Zurich Kantonalbank (for instance) and open up a bank account. They don't want your money.

Is that not also true of Revolut and N26 and the other options in this thread - or are those all paypal clones that work differently than actual banks ?
That's a good one. When I did this first time, just trying to be aware of and to control my breath caused some anxiety but with some practice it got easier and now my breath is much more even. I am also able to bring my heart rate after exercise down quicker just by conscious breathing.
YouTube Account with 620K Subs Accidentally Deleted, Can't Be Recovered
> subject to raids by the British police force

This is kind of tautologous; if you're in the UK, suspected of having committed a crime, or certain other infractions (health and safety etc), you can be raided. It's more surprising when the FBI managed to do a raid in New Zealand.
The Art of Visualising Software Architecture by Simon Brown is an interesting presentation on this topic:

https://www.youtube.com/watch?v=zcmU-OE452k

He references this other talk by Adam Tornhill on a similar topic:

https://www.youtube.com/watch?v=XzsXvsHcjc0
Generation Z