skysight-inc/HackerNews huggingface dataset:
For any 2xAA or 2xAAA device without a center tap, you can use a 3.2 volt LiFePO₄ cell with a "0 volt" spacer.

I use LiFePO₄ to run my rear bike light and a wireless thermometer, both 2xAAA devices. The total capacity is reduced because half the space is wasted, but that's not a big deal if you're only recharging a few times a year.

I haven't tried this with remote controls, since the batteries last basically forever in those.

Another option is to use 3.7 volt lithium ion with an LDO regulator, but I haven't tried that yet.
What comes next? Tipping the garbage collector or the postman for doing their basic work, so the company can save a few bucks on his wage?
> I'd like to see that presentation. Got a link to the slides?

If you're willing to wait a week, I could share. I'm really not ready to share it as is (still working on the code).

> Could you leave a comment at https://github.com/reduxjs/redux/issues/3313 with some notes on how the current docs examples are too verbose?

Yes, I could do that, but again I'll need at least a couple of days. It's a crazy week for me.

If you want a _quick_ example, here's one from the 'actions' section of the basic tutorial:

------

function addTodo(text) {
return {
type: ADD_TODO,
text
}
}

------

I would advocate writing this as:

const addTodo = (payload) => ({
type: ADD_TODO,
payload,
});

-------

4 lines instead of 6, just as readable to me. And frankly, I'd consider doing that as a 1-liner since there's only two attributes in the action anyway. Where I work, we have a semi-official rule of 'newlines for attributes if there are more than 3, or if the line length > 80', so our policy would write this action creator as a single line.

export const addTodo = payload => ({ type: ADD_TODO, payload });
It depends if it was Thiel’s argument or not. I’m not quite sure because of the thread history, there was something about his book and another about people who have multiple passports.
I first saw this as potentially a great possibility. Like, awesome, someone is actually sitting down and researching how to undivided the red/blue divided America?

But then...

> The fledgling academy now occupies a position within America’s tumultuous culture wars as advocates for free speech and the values of the “open society” and against political correctness and the millennial fervor of social justice activism.

"Political correctness" is so thoroughly abused as an alt-right general accusation as to be meaningless. All it does here is make me question the institution as just another alt-right organization hiding their beliefs behind the shield of "rationality" and "free speech."

> Of course, the researchers will be labeled white supremacists by those who fear that more knowledge might interfere with their ideologically pure claim that American racism is the root cause of every social problem.

Sure, it's annoying to be called a white supremacist by verified Twitter trolls, but we've got equally, if not more so, absurd accusations of anti-Semitism flying all over the fucking place right now, and the correct solution is to leave Twitter to the Twitter trolls.
This all sounds eerily close to data, which is what I'm looking for :) What is the source for your figures?
I've seen plenty of mid-life career changers.. some to doctors even and they all have been successful. I agree ageist and short sighted.
I don't see any text at that link.
Things I Wish I Knew When I Started Programming
Their handling of OpenAIFive rubbed me the wrong way as well. The whole operation smelled very PR-ish to me personally -- unnecessarily/unjustifiably HYPE representatives, complaining that the Dota community wanted to see OpenAIFive play a normal Dota match against pros rather a heavily constrained environment to benefit the bots, among other things.
Yes, though a lot of the Apollo infrastructure was in retrospect massively over-engineered, based on a very high estimate of required numbers of launches. This was partly because they needed to start the infrastructure before settling the mission mode but still, the plans were ambitions beyond what was strictly required to get to the moon by the end of the decade.
Does that mean OpenAI will (co-)develop the Azure AI platform, and then pay Microsoft for using it?
It's not about salary, its about fairness. This is the kind of thinking that leads to the pay gap between genders -- because women are willing to accept less pay for the same work because "it's good enough and I don't want to cause trouble". It might very well be good enough, but it certainly isn't fair. Trouble needs to be caused when unfairness is involved.
But that's not what Joel was arguing against when he first wrote the article against rewrites.
The data is not anonymous. Anonymity is actually very hard to claim (read k-anonymity, differential privacy, etc).

Nevertheless, the chances of identifying someone are probably pretty low, and it´s a good effort to make analytics more privacy friendly.
You're gonna have to explain that one more
> Do you think we will ever see: "Math - The Trillion Dollar Disaster"?

Close! We have "Lies, Damn Lies, and Statistics".

Tongue-in-cheek aside, it's one of those things where the more good you do the more bad you do. If X has a trillion dollars of good impact, it'll more trivially have a few million of bad impact at least. It's like a weird inverse Amdahl's law.

OOP definitely solved a huge class of issues for a lot of people better than the "average state-of-the-art" at the time, and introduced a lot of people to even reasoning around concepts like encapsulation and abstraction.

Was it the best thing ever for all time forever and ever? Did it have contemporary ideas that could have been perfect forever?

Sure. Does that mean it did more harm than good. Questionable.
That jobs where most of the pay is in tips cut both ways: sometimes you don't get paid minimum wage, but it's cash so you declare your own taxable income.
I just don't get why their support always leaves our company hanging, is this a strategy to success?

We want to renew our license for a lower amount of people as last year and that seems to be a major issue, as we won't get responses from renewals@gitlab.com and our Technical Account Manager, after giving us directions that simply did not work stopped responding last week.

Friday our license will expire if we don't pony up for nearly twice the amount of seats than we actually need.

The last time I complained here someone bumped up our tickets but we still had to resolve the technical issue ourselves as the only option was to setup the instance differently, which an easy response from a support agent could have told us without a multi week delay.

I love the product, but have stopped recommending GitLab to anyone above a 10 people org for those reasons.
This rewrite is the first step of that, going from jQuery to React.

React Native for Windows is ready for production, it powers their new Skype. It's being rewritten right now from C# to C++ for better performance in their vnext branch.

You have the option to use react-native-web (Twitter's way) to run your React Native app on the web, or use ReactXP (Microsoft's way).

React Native Web forks React Native. ReactXP wraps React and React Native. Two different approaches. Personally I prefer ReactXP because React Native Web will always be too far behind React Native. It's easier for ReactXP to update. Both projects have major backers and power major products.
Sure, no worries. Ping me on Twitter (@acemarke) when you've got it posted, or just leave a comment in that issue and I'll see it.

For that example, it's a combination of:

- ES6 was barely finalized when the docs first came out

- Questions of clarity and familiarity with arrow functions.

Fortunately, with Redux Starter Kit, you don't even have to write action creators or action types by hand any more :)
Posting a negative review online can get you sued
Literally referenced in the article
I didn't choose the framing, they did.

Here are the first sentences of the first two paragraphs:

> Conventional wisdom holds that you should never rewrite your code from scratch, and that’s good advice.

> Still, software codebases have life spans.
Genetic mutation made humans susceptible to heart attacks – study
At a glance this looks like just lengthy prose trying to position conservative ideas as the intellectual middle ground.
You might be more familiar with the field than me, but my understanding is that’s Dennett position is not well-thought-of in the fields of philosophy of mind and metaphysics. At the very least there are very good cases made that unpick his position very carefully. They’re not all Cartesian views - I grasp the Aristotelian views best myself.
> can you give a list?

It’s not totally clear to me what you’re referring to, but East and West Germany and North and South Korea were (are in the Korean case) separate countries by any sane meaning.
Fair point, but I think admin needs have gotten lighter. It took 400k people to get us to the moon. I want to see the results of 400k engineers working independently or in small teams on AGI.
Also known as khat, the etymological source of English "cot":

https://www.etymonline.com/word/cot
Yes! This 1000x this!
I cut my teeth on mIRC scripting. Frustrating and enjoyable at the same time.

I've since moved to IRSSI and others, but you are correct about memory/CPU usage and functionality.

Every single '$new-thing' like Slack makes the interaction WORSE, instead of improving it. I wish more SV superstars were greybeard hackers.
> Amazon makes this easy to do by commingling inventory and not matching/tracking sellers to inventory items.

That is not correct. Amazon's seller help pages and Amazon spokesperson comment on e.g. this FT Alphaville article https://outline.com/4R7fp6 say that Amazon tracks the original supplier:

> The system is purposefully designed so that similar products are not placed next to or near each other, and Amazon can also track the original seller of each unit.

I.e. commingling only means that any sellers' inventory can be used for fulfillment, not that the inventory is physically commingled.
Ask HN: Any advice for new YC Startup School students?
Today is the first day of SS2019.
> "Political correctness" is so thoroughly abused as an alt-right general accusation as to be meaningless. All it does here is make me question the institution as just another alt-right organization hiding their beliefs behind the shield of "rationality" and "free speech."

"Racism", "bigotry", etc. are so thoroughly abused as left-wing general accusation as to be meaningless. All it does is make me question the institution as just another Marxist organization hiding their beliefs behind the shield of "compassion" and "fairness".

Btw, what makes someone alt-right? Just curious.
"Only 7 of them could be reproduced with reasonable effort. For these methods, it however turned out that 6 of them can often be outperformed with comparably simple heuristic methods, e.g., based on nearest-neighbor or graph-based techniques. "

Ha. I get a feeling there's alotta overpaid data scientists out there.
Let's say Gitlab hired you in rural Montana with a salary appropriate for that location. If you then decide to move to NYC, would it be fair for you to retain the same pay ?
Anecdotal: was recently trying to apply to one of Google’s engineering positions in Zürich (I already tried to do that 7 years ago, did not pass the interview, now I think I am better equipped) Got a referral from one of my Googler friends.

In 2 days, I’ve got a very dismissive letter from Google, which amounted to “we decided that your profile and experience is no match for this position — and by the way, don’t bother applying to other similar positions at other Google offices. Case closed”.

My CV only got better since my last interview at Google, and while I didn’t pass it with flying colors, it wasn’t completely bad, too. I wonder if my current age played the part. Meanwhile, at Google jobs site, there were many positions marked as “fresh alumni of 2019 only” — perhaps that’s their perfect target.
> Incremental rewrites are best

That's perfectly compatible with the conventional wisdom you claims wrong, which, again, was “you should never rewrite your code from scratch” [emphasis added]
Enjoying that 25Mbps internet speed, America?
There are some great quotes in this piece. In particular, discussion on the tradeoff between feeling safe and intellectual honesty (which requires some discomfort).

> Haidt and Lukianoff quote Jeannie Suk Gersen, a Harvard law professor who says that discussing rape law in the classroom “has become so difficult that teachers are starting to give up on the subject.” She adds that if law professors stop mentioning sexual assault, that “would be a tremendous loss—above all to victims of sexual assault.”

Reminds me of this clip from Van Jones re: safe spaces on college campuses: https://www.youtube.com/watch?v=Zms3EqGbFOk
Thanks. I'm still learning about Vespa, and it's still not clear how map fields work.

Edit: Documentation says: "Accessing attributes in maps and arrays of struct in ranking is not possible". So maps aren't really usable.

Regarding how long it takes to update a field, the application I described would have to do this programmatically. It would have to keep track of all known fields in some kind of registry, and then if a new unknown field came in, it would have to perform an "application package" deploy just for that field, using the REST API. (Unless there's a less cumbersome way to do it?)

Reference docs: That's nice, but that's just a bunch of links. Good reference documentation has tables of contents. Bonus points for runnable examples in multiple languages. For an example of good reference API documentation, look at Stripe's [1].

[1] https://stripe.com/docs/api
So it's practically anonymous. Nobody has enough computing power to brute it & the data is deleted, typically, in 30 minutes.
Personal attacks are not ok here, regardless of whom you're attacking. Can you please not post like this to HN?

https://news.ycombinator.com/newsguidelines.html
Same. I moved when they wanted me to unencrypt my home directory on linux.

I've had good luck with pCloud. In particular, I can exclude file patterns, which has done wonders for my typical workflow (storing lots of code).
A more charitable way I prefer to phrase it: ostensibly you invested time and effort and then shared it with the goal of other people using it, so investing further efforts into the readme helps you achieve this goal even though it might not be as fun as writing code.

It's like when someone shares their hobby programming language after investing 100s of hours of work yet didn't even invest 10 minutes writing a "quick start" heading of their readme. I would like to gently encourage them to reach for that low-hanging fruit that's so easy to overlook yet directly serves their goals.
>Local warned, they dont want protesters in their area, if they come back ,YL locals will teach them a lesson about not to invade into others' community. but protesters took it as a challenge to their righteousness and claim they will 'liberal' Yuen Long.

That is not what happened. They took it as a challenge after they were beaten up. No one did anything to Yuen Long, and they decide to beat any everyone, from Child to Pregnant Woman on the Western MTR Train.
Ask HN: Can you build an MVP in one week?
I was just watching YC's orientation for Startup School and they kinda say we should be able to build an MVP in one week. That's not the first time I hear they saying something like that.

Now I'm wondering: am I such a bad engineer for not being able to build an MVP that fast?

I had a few experiences building MVPs but it always took between 45 and 90 days to build it.

I also tried to do the "one week" MVP a couple of times but I always got the same response from customers: we can't actually use your product without features "x" and "y", which would, then, take, at least, 3-4 weeks to develop.

I feel really depressed when I read an YC post or watch their videos because I feel like being a founder isn't for me; that I'm both a terrible founder and a terrible engineer because I'm not able to move as fast as they say we should be moving.

Am I the only one going through this?
Summarizing, they tried replicating the results of 18 recent papers, and determined that because of lack of available code or data, they were only able to attempt replications of 7 of them. Of these, they found that the "improvements" in 6 of them could also be achieved with a simpler non-machine learning approach (such as nearest neighbor). For the 7th (Mult-VAE), they were able to almost match the improvement with better tuning of one of the baselines used in that paper.

Does this mean that the published results are garbage? No! But what does it mean?

First, don't miss the main claim: less than half the published papers have sufficient code and data available for replication. While one might argue exactly what the standards for availability should be, if journals and reviewers were to demand it, this number can definitely be improved. Greater availability of data and code makes for better science.

Second, my guess is that it means that paper authors are using excess "puffery" in an attempt to improve the chances that their papers are accepted for publication. They've decided that using a weak baseline and claiming a 50% improvement is more likely to result in publication than using a realistic baseline and claiming a 0-5% improvement. Unfortunately, they are probably right.

The useful change (in my opinion) would be to change the standards by which papers are judged to be publishable. Reviewers should push back against weak baselines, but be more accepting of results that make modest claims. You can still have a useful paper even if the degree of improvement is small --- or even nonexistent. Maybe it will inspire someone else, maybe it's useful in an ensemble, or maybe it applies to a case where the baseline wouldn't. It's the puffery that's the problem, not the publication. Creating a system that rewards authors who more honestly evaluate their work would be an overall win.
It's shorter in Regent :-)

https://github.com/StanfordLegion/jupyter-regent/blob/master...

But anyway, the reason we don't really push fibonacci is because it (a) doesn't really expose the unique features of Legion/Regent and (b) if you write it naively, probably performs even worse than naive fibonnacci implementations on other parallel frameworks.

The real secret sauce in Legion is being able to load a mesh or whatever, partition it a couple different ways (e.g. for ghost cells vs the main computation) and then launch tasks without needing to think about what needs to be updated where to get the data to the right place or copying data down to the GPU and back.

We will add AMD GPU support eventually, since Frontier is going to be a GPU machine, but probably not on a time scale that makes any difference to you.
They should price their service the same. Charge less in ares in the US with a lower cost of living as the wages/revenue will be less for developers/businesses in those areas.
why would that make anything better? sounds like you would just add an additional rung of people who don't actually drive anywhere but still need to be paid.
Armchair CEO here but charge a fair rate and if that means double do it. People will respect it and pay it if the product or service is helping them make money and I’d rather pay a higher amount and know I’m helping fund a tool that I use to help me be productive than get something cheap.
Factor works like that. It's dynamically typed and meta-programmable like Lisp and uses a global stack like Forth to pass data. By writing everything "backwards" (x) you get a syntax that is much more regular than what is possible in languages with Algol-like or even Lisp-like syntax. The language website is here https://factorcode.org/ It has a lot more code samples.

x - Of course, what is "backwards" and what is "forwards" is up to the reader. I'd argue that foo(arg) is backwards because we think of the expression as "arg processed by foo" Since arg comes before foo, it should be placed to the left of foo in the syntax.
[2] With the exception of languages that have more then two expressed genders
Well, if the other candidates had 6 positive reviews, it makes sense.
One part of calming down the political situation is probably going to be becoming less sensitive to the possibility that evil alt-right/antifa sleeper agents are lurking everywhere.

There's a certain fear that behind every Twitter account or public persona is a revolutionary waiting to exterminate somebody or eat the rich, but in reality they are so rare that it's worth waiting for them to express their crazy views directly. Nobody will listen to them when they do, and there is nothing to gain by identifying a Twitter account as belonging to the evil side a month or two earlier than otherwise.
Here is an excellent resource:

https://ccrma.stanford.edu/~jos/

The first online book linked from the author's homepage is:

MATHEMATICS OF THE DISCRETE FOURIER TRANSFORM (DFT) WITH AUDIO APPLICATIONS SECOND EDITION

IMHO the author does a brilliant job of presenting the mathematics with rigor, but with accessible "on-ramps" via examples.
Assuming Trump does leave office after two terms.
> Voice chat is the only one that should use significantly more resources than mIRC.

And you, without knowing all the product requirements and technical constraints, know this exactly how?
Bringing ideological battle into completely unrelated threads is definitely not ok. Please don't do this again. We want less ideological battle on HN, not more.

https://news.ycombinator.com/newsguidelines.html
Interesting perspective. I'm not a professional coder but I do use emacs for writing code and when I'm using a language like C# or Fortran that has a make-run-debug cycle, I just run

$ M-x compile

which you can bind to any convenient hotkey combo and which you can customize to invoke any build system you like. Results of the compilation go into emacs as a separate buffer.

Is that insufficient for your workflow? Not sure what else would be needed except perhaps stepping through code with a debugger and on this point I'll agree that Linux and emacs suck at debugger support compared to, say, the Visual Studio debugger or perhaps Olly which I've never used.

As for org, I agree that it isn't good for collaboration except with other emacs users as far as Todo lists and such, however if you generate PDF reports via latex I find org is a better more sane way for that.
I don't blame gitlab for playing the game. It does sort of matter if you care about the central organizing principle of our society (capitalism). Companies are meant to do more than simply reinforce the market dominance of a single market winner.
I've noticed that the browser version of slack has been crashing increasingly frequently in recent weeks, I wonder if this is because of their "Run the entire old + new systems in parallel" approach? Got the "modern-only" update today and it seems much more stable!
Slightly related, and maybe you could provide more knowledge here: common knowledge for safety critical devices, such as avalanche beacons, is to only use disposable alkaline batteries. The reasoning I've heard is that due to the flat power curve of non-alkaline batteries, if you put a nearly-dead one in the beacon and check the battery level, it will read as fuller than it really is, and you run the risk of having it die on you during a normal usage period (maybe 12 hours). With an alkaline battery, when it's close to done, it will more accurately register as such on the device.
Maybe we should keep comparisons to language constructs?
>I strongly believe in freedom of movement [...]

Why?
The US SEC has accredited investor requirements specifically to keep people from being fooled into making "dumb" investments.