jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
I don't think they've ever claimed to be the inventors of copy and paste on a mobile device. In fact, I remember them admitting being late to the party with that particular feature.
Prove it? My trades are often purchased and sold in 30 seconds.
If the Norwegians feel guilty about having too much money, they are welcome to buy a round for their friends in Denmark.
Please understand, I wasn't asking for folks to host me here. I was merely asking if anyone had similar experiences and if they had any advice. I'm doing fine, I'm simply trying to plan out where I'm staying.

Thanks for your feedback, though, I guess.
Lived in the international house in NY many years back. I would add bedbugs to the list!
We have to do what we can, and dollars may help us in the short term. But “destroying everything on purpose” is exactly what I’m afraid of. Shutting down the economy for 18 months while we hope for a vaccine is not feasible, and printing money won’t make up for actual shortages.
So what changed in the last few days? What is playing out is EXACTLY what epidimiologists, scientists, mathemeticians, the US intelligence agencies, and the WHO have been saying for over a month at this point. This has ALL been predicted and no one fucking cared or listened until it is BY DEFINITION TOO LATE.

I've even been saying this for weeks now, and I get challenged on it. Even though every single day we continue to just follow or beat the worst trend lines from the worst affected countries BECAUSE WE'RE NOT DOING ANY OF THE THINGS WE KNOW WORK.

What's going to be different next time? Are we going to have a global conversation about our inability to plan more than 2 days out? Our inability to grasp truly horrific facts and accept them, instead of letting fearful human brains go "That could never happen in America" (lol) even in the fact of raw statistics? Or is this just another thing I'm going to be eye-rolled at and told "it's just how it is". A global pandemic and economic slump (I'm metering my predictions here because this site doesn't seem to be able to handle realistically gloomy predictions for the future) still isn't enough to get us to ask how we got here?
I love these projects and have donated time in the past to different projects. I'll be promoting this to all my friends -- there are so many ways to help and this feels like one of the easier ones.
Now is the time to be on our guard, much more than in times of peace and quiet.
Wonder how I’d use something like this to nail down and block the advertising in stuff like embedded apps.
Thanks! all great, practical tips.
edit: BTW I do contribute to kernel (occasionally) and have written games and done moderately sized projects in python (out of interest). But I think main thing is probably to contribute often so that I switch back and forth often too.
Several "wat!"s on that line... I didn't know "10" was a number in base 0.
I think the primes kata has a hidden lesson about where TDD doesn't work.

TDD, in its modern incarnation of "red-green-refactor", leaves out essential step, which I call "blue". These are tests that you know are supposed to pass, but which serve to double-check the assumptions in the code. (I use coverage testing to make sure that blue tests actually run; otherwise it's possible in some languages for a test to be shadowed by another test with the same name.)

Neither the original Martin implementation nor this one spend time analyzing the code for failure cases. For example, this function takes an i64, but the only justification is 'I do indeed want the function to take 1 integer parameter'. If the input were 2^63-25 then it would take a very long time to very that it's a prime number.

In this case, but also with Martin's original case, the worst-case time is O(N):

while num != 1 {
for i in 2..num + 1 {
if num % i == 0 {
result.push(i);
num = num / i;
break;
}
}

(Also, I think there's an overflow if 'num' is at the maximum value for i64.)

The temptation should not be to assume you know what you are doing. The first step should have been to better quantify the input range. Otherwise, why choose an i64 instead of an i32 or even i8? Why not put a hard limit of, say, 1 million?

One hand-wavy answer is to say that the solution given is good enough. The problem is, this means that TDD doesn't have a mechanism for identifying and resolving ambiguities in the spec. Either they have to be identified before hand ("big design up front") or afterwards and entail possible code changes ("test-last design").

Another is to argue that no one expects prime factorization to be fast. The problem is that, well, people do expect just that. Prime factorization algorithms are well understood:

# pyecm from http://sourceforge.net/projects/pyecm/
# via http://stackoverflow.com/questions/23708035/most-efficient-way-to-find-all-factors-with-gmpy2-or-gmp
>>> import time
>>> if 1:
... t1 = time.time()
... print(list(pyecm.factors(2**63-25, False, True, 10, 1)))
... t2 = time.time()
... print(t2-t1)
...
[mpz(9223372036854775783)]
0.00698018074036

It's certainly hard to get that performance, but you should know your limitations, not ignore them.

I have reviewed a half-dozen prime kata implementations. All end up with horrible run-times. None seem aware of limitations in their code.

Then again, even Beck's original Fibonacci example, which used a recursive implementation which is slow and leads to a stack overflow, omitted any discussion about how to add tests to working code which are supposed to excersise its full range.
What you are grappling with here is not "have we got a big enough economy". Global Warming does not come from value creation, or the statistical proxy that we call Economic Growth. It comes from burning fossile fuels.

In terms of value, what we have learnt from the last two decades is that a few people with computers can create a lot of it, with negligible impact on our planetary ecosystem. Clearly it makes our lives easier, and gives us more "stuff".

However, our physical existence still depends on fossilised energy to an alarming extent, and policymakers are still unable to wean us off it (witness the fuel subsidy debates in Egypy and Indonesia), or simply unwilling to. You can even say that we use so much of it due to lack of effort, i.e. an unwillingness to actually grow the economy enough by finding substitutes. Because that would involve people doing more work to learn the right technical skills, and that's unreasonable to demand, right?

In fact, it might lower the environmental inpact, since an app with driving directions can make our car journeys more efficient.
I've thought about this as well. Should be possible to store the data in the repo itself. Later we can add a gui to make things easy. I believe that we can let their existing api schema determine the format. I'd like to do it in node because of its portability and ubiquity. Pm me if you are interested in helping.

Big decision is whether to store the issues and other metadata in a seperate branch or not.
> “After the execution of court-authorized search warrants of online accounts controlled by Lichtenstein and Morgan, special agents obtained access to files within an online account controlled by Lichtenstein,” the press release said. “Those files contained the private keys required to access the digital wallet that directly received the funds stolen from Bitfinex, and allowed special agents to lawfully seize and recover more than 94,000 bitcoin that had been stolen from Bitfinex. The recovered bitcoin was valued at over $3.6 billion at the time of seizure.”

So most likely,

1) they didn't launder it properly, leading to police being able to trace it to their bank accounts. I wonder if tornado.cash was used.

2) then police had their names, leading to warrants for all online accounts - google account, apple account, etc.

3) they made the big blunder of keeping their private keys in their online account. Most likely a txt file in google drive. That is such a silly blunder. Without the private keys, the police has zero proof of anything. They could have made a hundred excuses for how they got money in their bank account, as long as the police didn't have the private keys. Who keeps their private keys in an online account?

Apparently the biggest criminals make too many silly mistakes. The old saying applies here: "you don't have to be smart, just don't be an idiot"
No, but consider all of the things that you might insure - appliances and electronics. Now take the total cost of insuring them and put it in a bank account. In the case that one of them breaks, the savings will likely cover that replacement. Chance are none of them will break. Do the same thing next year. Not only to you make a little interest, you have all of last year's left-over premiums.
Inspiring the team, maniacal Determination, Resourcefulness, fast rate of learning ( beginners mind ), making the tough decisions fast, seeing the big picture, intuition on seeing the next big thing ( move to where the puck is going to be ) and articulating that vision clearly , incredibly focused execution and most importantly thinking from first principles and keeping their assumptions informed by the ever changing reality and doing a complete 180 at the drop of a hat if the situation merits it.
Apple isn't suing for someone using the term "app store" in a sentence, they are suing for a product having app store in its name.
Similar Perl/Awk syntax for Python one-liners with BEGIN/END:
http://code.activestate.com/recipes/577075-pyliner-script-to...
This would be such an incredibly stupid security failure.

Passwords should always be salted and hashed.

Credit card info should always be HSM-protected so that it is irretrievable except through a hardware API.

What was Sony thinking!?
I'm disappointed but not surprised. When I had to change my password a few months ago on the Sony developer's network site I was told that my new password was too similar to the last ones. I was wondering how they knew that, aside from storing the passwords in plain-text, something I'd assume they'd be too smart to do.

I guess I gave them too much credit.
It does carry a risk though - if you make securing a major online service sound too easy by ridiculing your competitor then down the line when you get breached its more damaging imo. eg I dont remember any Car companies in recent history pointing to Service recalls of their competitors in their advertisements, ditto for Airlines and crashes.
I think you just solved the problem. The shock would probably do it for you.
Just to add to the conversation:
Customization is 90% of the hard work of doing enterprise software. Often enterprise software requires teams of folks to do the above, because what is required is

a) knowing the problems
b) knowing how to solve them (ie, coding/configuration)
c) being able to sell this to decision-makers

Those three roles often take more than one person to realize. Some folks are good at one of those, and they get paid well. Folks who do two or more well are rare/in-demand.
https://gist.github.com/943054

I've tidied it up and added some comments explaining what it does. The only dependency outside libraries which come with GHC is the 'text' package, which is included in the Haskell Platform.
>She just calls them “apps” which clearly shows the power of Apple’s marketing influence.

Huh? I have never owned or used an Apple product, and since I don't watch television I don't think I have ever seen an Apple commercial, and I have called programs "apps" for over a decade. It is a common term across all OSes.
The people who argue against naming machines in an automated fashion don't have hundreds or thousands to manage.

The people who argue that their use case -- regardless of whether it's ten machines or ten thousand machines -- can be generalized into something everyone has to do are the people I try to avoid arguing with.
Oh, hell, yes! I'm in the same boat. I can't say the work is always interesting, but people who can cross that line are invaluable.

Looks like you're in New Jersey. Try some of the solar startups-- they're open to new tech, and they need to scale up rapidly. Petra Solar? Komax in York, PA?
The word is regardless, please; irregardless is a nonsensical double negative.
#11 Google recognized that some information is temporal - beyond blogs and social networks - and added search tools to specify the time. Personally, I've found this to be the biggest single improvement in search in years.
1. Capybara is Ruby-specific (but generally awesome). This appears to be a pure JS solution as far as I can tell.

2. Capybara (currently) uses envjs for headless full-stack testing.

3. JSDOM, used by Zombie.js, certainly has different characteristics that may make it better/worse under some conditions.

4. If you're thinking Ruby, I doubt that any gems currently integrate with Zombie.js. However, that is also (somewhat easily) changed.

Sadly, full-stack testing in Ruby still kind of sucks. We spent a whole session at Ruby DCamp 2010 discussing the state of affairs. As much as we'd all like a robust headless solution, at the moment, the best browser simulator is still a browser.

YMMV. I've had mixed results with env.js. While not as sexy, I've been using Capybara with the Selenium driver with more success lately.
Take the distribution for any other religion and only include those who live in a few major east coast cities.
So include 'christians' who are executives in NY but ignore all the ones pumping gas in the mid-west.

Then leave out the less succesfull ones who don't identify themselves as part of that group.
Why didn't Google think of that?!
Epicurious so far with the paid account sync option so she can sync recipes. Mario Batali's app looks pretty neat as well since they recently added native iPad resolution support.
http://www.indeed.com/jobtrends?q=C%2C+java%2C+python%2C+C%2...

Java, PHP and Perl are still strong.
I would trust Tether more if it ever had meaningful outflows in dollar terms, had $1bn or so in the last crash (https://coinmarketcap.com/currencies/tether/) but has been generally on an upward march, not what you would expect from a stable coin
Sorry, this subject can't be mentioned on the internet without this link being posted. Don't care if I'm downvoted to oblivion...

http://xkcd.com/323/
My german definitely becomes much, much better after a few beers. Too many though and it starts getting worse.

No one's mentioned the Ballmer Peak yet?
You missed the point. You're comfortable enough with your equal status to openly deflate their status, _because_ you both know it doesn't mean anything. Fair trade/permission giving: later they can tease you and lower your status.

Then real dicks use that sort of friendship to only lower the status of their friends, which is why we call them dicks.
What drugs would you recommend?
Copy/Paste actually works in OS X. This is huge.
Sleep works on OS X laptops.
Sound and video just work.

Linux will never fix these things. I ran linux for 10 years and those 3 issues were there that entire time.

Yes, I miss many things, especially around keyboard shortcuts and multiple desktops, but overall my experience on the mac is better.
One of the reasons Dropbox is successful is because anyone can use it. Even your mother. In fact, one of the reasons Drew was originally accepted into the YC program was because his sister was using it when he applied.

"If I can look at my data any time I want, I just need the key to it. Dropbox just gives me access to the encrypted stream."

In order for the data to be encrypted securely, you would need to generate a key on your own computer which Dropbox then uses to perform the encryption. (Tarsnap works this way.)

Forcing Drew's sister (or your mother) to generate a key would be bad for accessibility.
Three points:

1. Sensationalism aside, Dropbox should review questionable security claims to reduce false sense of security if any. With millions of users, careless words formed out of marketing needs are no longer needed. What Dropbox users need now is more clear picture of what they are giving up to gain Dropbox's services.

2. The weakest security link is the user and their computer, not Dropbox which has enough financial incentives at stake to be diligent security wise. In the end, no computer open to external data or code is safe. What protect most users today is actually not security technologies but cost/benefit ratio to potential attackers, tempered by goal and scale. 99.9999% of Dropbox user data is useless to attackers and cost of mining questionable nuggets out continually expanding sea of data from 20 million users is not a trivial task.

3. While it's true that user must trust Dropbox in the end, some of its security measures could use strengthening even if it's just intended to raise the level of sophistication necessary to steal Dropbox data.
WOW I wish all streaming tv would be as easy as this. Really like the interface of the site. Very easy to navigate. Thanks!
Actions like these will kill the whole arduino brand. It's akin to parents that divorce claiming a physical half of their kids each, it simply will not work.

The rest of the world needs to see a unified front and to air your dirty laundry like this in an attempt to pre-empt the lawsuit is only going to turn off the recipients of this letter from the arduino brand and will cause them to look for alternatives elsewhere (of which there are quite a few by now).

What a pity, the arduino brand had a ton of goodwill attached.
My first work for FedEx, writing
the software to schedule the fleet,
I did from our living room in Maryland.
My wife was in her Ph.D. program
at Johns Hopkins in Baltimore.

To write the code,
I had a time sharing terminal and
wrote the code in PL/I on a CP67/CMS
system in Stamford, CT. Nice setup.
I really liked the data structures
and string manipulations in PL/I.

And, yes,
for the great circle calculation, that's
just the law of cosines for spherical
triangles!

Well, for writing the code,
I wanted the basic PL/I manuals
so called the local IBM office to order
them. Soon the manuals came, hand delivered,
complete
with a very interested and attentive
IBM marketing representative! I'm
not sure we ever paid for the manuals!

So, sure, sitting there in our living room,
I explained to the IBM guy what I was
doing. So, sure, he and his branch
office had guessed that anyone who wanted
PL/I manuals was likely up to something
significant and, thus, might also want
a few million bucks worth of hardware, too.
Their guess was correct: Eventually FedEx
did go with IBM (there's a story there, too).

When I got the software written, in six weeks,
also finishing teaching computer science
at Georgetown U., I drove to Memphis and
rented a room.

But I wanted to get home as often as possible.
So, since my work had to do with airplane
operations, FedEx talked the FAA into
letting me ride jump seat as an observer.
It was just I did all my observing
commuting to/from home in Maryland!

Yes, the pilots sometimes flew
somewhat less gracefully than they
would have with a passenger plane.
A lot of the pilots were fresh
from Viet Nam, maybe as fighter
pilots. The pilots were the most
competent, serious, effective,
and professional part of FedEx.

So, one time when I was observing
the pilots for some
reason on the way to landing
wanted to descend quickly.
So, they went down at 6000 feet
per minute. Going down that fast,
in the little jump seat
I was hanging by my seat belt!

Going down that fast also had the
outside of the
plane, still cold from cruise
altitude, suddenly in much warmer and
very humid air. So, we got
a layer of ice over the
front windows and could see nothing.
The pilots
were not concerned at all but
just flew via instruments.
Isn't this a "solved problem"? You publish a hash of each report when it's received (or sent, if you're the sender intending to establish precedence), then it's clear when all reports are revealed which ones were reported in which order.

It doesn't let you know what others have discovered/reported, but it solves the "their word against my word" problem...

(Of course, if they're actively trying to minimise bug bounty payouts and are prepared to screw over people attempting "responsible disclosure" to do so, they've got a lot of motivation to _not_ implement this from their side. Doesn't stop researchers posting hashes when they make reports, then the rest of us being able to verify those hashes when the bug is publicly disclosd.)
This might sound like a joke, or gross, but I think stool measurement is probably a great way to track diet.

And I bet there are apps to help.

Sigh. I searched.

"PoopLog" - https://play.google.com/store/apps/details?id=com.kefsco.poo...
The problem with free services is that you're not entitled to demand anything. The customers of YouTube are advertisers, and you are their potential customer. I'd suggest lobbying up the chain of command.

btw, if you do use an alternative, please know that Vimeo runs like a crippled dog outside of the US. If you believe that the service of customers is important, the quality of the actual video service really should be your first priority right?
Maybe my statuesque coder arms need some sexy recursive algorithm tattoos to flex in her general direction ;-)
This guy is so biased he can't even see straight.
you are not wrong, but this philosophy becomes deeply flawed once it starts being applied by chokepoint monopolies who control the flow of all potential avenues for speech and commerce online. when twitter plays favorites it is inconvenient, when mastercard & cloudflare do it is fundamentally destabilizing.
"You're misunderstanding the constitution and what the 'right to create currency' means."

You may be correct, I have noticed a strong correlation however between how the government behaves with respect to alternative currencies and my understanding of the legalities of same. And while I also recognize that correlation is not causation, I find this sort of correlation useful in predicting whether or not my future actions would be viewed as "sanctioned" or "not sanctioned" by law enforcement authorities.
How do those work? With the Jansen linkage?
Seems like a pretty cool company. It's like mint-for-democracy!
At the moment it redirects to the .com — I can see them changing that in a hurry.
Maybe the W3C can seize the page for non-compliance.
For something a little less painful than the other suggestions here, write a web server.

You'll learn more about HTTP, statefulness, scalability and 'how websites work' than you'll ever learn building websites.
Besides the first example having a mistake, their suggested solution still isn't best practices;

for (var i = 0, len = myArray.length; i < len; i++)
{
...
}

Will perform far faster than doing the comparison on each iteration. Might not be noticeable on an array of 10, but certainly would be on an array of 1k.
Most BLM protests were non-violent.

https://today.uconn.edu/2020/10/study-2020-protests-shows-di...
Both of you are correct. When I was a mod, I saw bots show up to automate removal of content - and there was simply no time to think or worry about the long term effects.

If you want to remove hate speech at internet scales, you are going to be creating lists of bad words and acting on it.

That also means that tomorrow, that same tech can be used to remove healthy speech and only amplify the worst kind of content that influences people.

We’re still going to use those bots though. The only thing I do more of is study what creates unhealthy speech in the first place.
Use the laws on the books to make these companies public trusts, as was done to the large trusts in the 20th century. If there is real competition on these platforms, if there were many app stores, then this wouldn't be an issue. These five or six companies have too much consolidated power.