jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
I see your point, but I've got some practical objections to it:

a) You can't (sanely) initialize a fixed-sized rust array with an iterator. It looks like one of the following:

let a = [1.0f64, 2.0, 3.0]; // not convenient for large arrays
let a = [1.0f64; 1000]; // large array, but only the same value

I did find an insane example using an unsafe block. I've got no moral qualms about unsafe blocks, but using them to initialize an array seems heavy.

b) If you want it dynamically sized, you're probably going to use `Vec` and maybe an iterator as you suggested. I didn't try to compile the following, but I don't think it looks better than the for loop:

let len = get_command_line_argument() as isize;
let a: Vec<f64> = (0..len).map(|ii| sinc(scale*(ii - len/2) as f64)).collect();

You could break it down with more .maps, but I think it'd be even worse to look at. I think it's also growing iteratively (amortized constant, but still reallocating and copying along the way).

c) There are obvious cases where you want to re-use rather than reallocate your arrays. In addition to the cost of allocation and initializing to the wrong value, there are other times you might like to re-use the existing array address (FFI, etc..). You'd probably want to keep it in a Box<[T]> instead of a Vec<T>, but the point stands.

For (b), I suppose you could write a helper function:

let a = make_vec(len, |ii| sinc(scale*(ii - len/2) as f64));

That's not awful. Both len and ii can be isize, and the implementation of make_vec can reserve the size in advance. Maybe I'll add something like that to my toolbox :-)
The real barrier to an individual representing themselves in a Realestate transaction has little to do with the MLS. Listings are available for most areas on sites like Zillow. Redfin, or trurila. The pain comes when it is time to write the offer contract. Standard real estate contracts and the software (zip forms) that fills in the forms is controlled by the realtor associations thought a company owned by the California realtors association. A non realtor can't get access to the standard contracts unless they get their realty license and join their sate association.
or in the song

https://www.youtube.com/watch?v=YIs_rikRREE&list=PLHZxQw_SbV...
From OpenTable's info, the booking per diner is $1.00 if done via OpenTable's site, but only 25 cents per diner if done via the restaurant's site. This suggests certain approaches....
I think the germane point about Emacs here is that some people like writing Lisp and some people hate it. If you hate it Emacs is likely not going to be your best environment, and that’s fine.

I really like writing Lisp so Emacs has a simple way of doing anything I want, but it’s not for everyone.
This is the type of work clouds were born out of.

Have you considered using any of the large cloud providers?
Obama is not a member of the Republican party.

I can't tell the difference between Coke and Pepsi. I can only rarely tell the difference between Democrat and Republican.
Ask any Chinese person and they will tell you: Mao was 70% right, 30% wrong. This is the official party line taught in schools.
Or just tail -f in an emacs buffer
Also take a look at ccze which is great for syntax-coloring all kinds of log files heuristically.

For example: tail -F somefile.log|ccze -A

For your shell, there's a lot of funky colorful interactive customizations you can get on zsh and fishfish.
Maybe the point is you can easily port a web app to native.
In this case, Javascript is not the point, but the (only) available language
Why would they want to break or redirect thousands (millions?) of existing links and confuse many non tech people who get redirected to a .us site?

Sure it might make us on HN feel good that .com does not equal USA and we are the center of the world, but it would make little sense otherwise.
You keep talking about bugs and therefore you keep missing the point. As a matter of fact, I tend to agree with you that the Infosec community would benefit enormously by adopting some of the best practices that we lowly programmers take for granted. There would arguably be less bug and less high-profile bugs that way.

What I am trying to point out is that you cannot fix a flawed Security Design by incremental improvements. I am not talking about individual coding defects or even desirable features that have been left temporarily unimplemented on purpose. I am talking about Stupid!Ideas that get implemented because there was nobody around that recognized them as such, and then the usual traits of human nature (denial, previous investment bias, rationalization, etc) prevents the incumbents from scrapping those ideas until insurmountable evidence is assembled.

The article in question talks about using One Time Pads (OTPs) to conceal secrets. This is an idea that sounds good, OTP is mathematically proven to be "unbreakable" and all that... The problem is when theory meets practice and nobody asks the hard question: How are sender and receiver going to share the OTP prior to sending the real message.

This is not a trivial question to ask, giving the fact that OTP must have the same amount of bits as the message it is protecting. You can also not "recycle" a single OTP for many messages (that would be a Many Time Pad, which by definition violates the very preconditions that make OTP secure).

So, you end up with the scheme used in spy movies (I have no idea how real spies worked during the Cold War). Each spy carries around a code-book of OTPs that he received in hand by a trusted contact. The fact of being in possession of such book is itself a proof of being a spy so he was to take great care to hide it, which is hard because it is a whole book (OTP, lots a lots of messages). Also, the spy agency will have the cumbersome work of providing a different code-book to each spy (because otherwise, when the enemy catches one spy, they could theoretically run the OTP on all previous communications from suspected spies and have each one of them rounded and shot before the word comes out that the first spy was in prison).

This example also serves to illustrate another point. Maybe a Bad!Idea can be made to work in a limited way, if need is dire and resources are plenty. But any organization which kept secrets of real importance and tried to rely on this kind of solution would end up eaten alive by any adversary that had heard the words "asymmetric cryptography" spoken together.
More of a product, but codecademy (http://www.codecademy.com/learn) has a number of APIs it covers how to use.
Almost anything with "Go" in the title gets upvotes on HN.
> Remember the photocopier that worked by OCR and would occasionally mis-transcribe numbers?

That was perfectly ordinary compression?

The phenomenon is all over the place, most visible in autocorrect.
right? apparently if you worked for decades then tried to start your own company with savings that isn't bootstrapping lol.
The main thing I would wonder about is if there's a good auth plugin for FastAPI.

I am not a huge fan of Django, but if you have already chosen Python, it is really hard to argue with having good, battle-tested auth system out of the box.
For example a Massachusetts official was talking about how they will have to "break the will" of people who are heating their homes or driving cars. Whatever that means.

https://www.youtube.com/watch?v=muxVGmgykA4
This is the data/methodology behind NYC’s official COVID statistics, such as: https://www1.nyc.gov/site/doh/covid/covid-19-data-totals.pag...
I was thinking the same thing, makes me wonder wtf I'm doing with my life.
I've been using Godot for some small gamedev projects, but have been interested in Bevy because Rust is my primary language. The Bevy Book stil says that Godot should be picked for any big projects; is there a rough estimate of when Bevy would be at a point where you'd be confident recommending it for a Next Big Project™? I know timelines can be tough to nail down, but even something like "a very long time" or "a couple of years" would be helpful. Thanks for your work btw :)
That's significant in this space, because it implies that he does not benefit directly[0] from speculation on MOB, and so has less incentives to get involved in a pump and dump.

What I would still like to see for more transparency:

- legal commitment from the Signal Foundation that no employee owns any MOB

- disclosure of money transfers between MobileCoin and any Signal Foundation employee

Maybe some of this information could already be extracted given the statuses of the entities involved?

[0]: he benefits indirectly because if MobileCoin stays up, he'll probably stay as a technical advisor
Thanks for the recommendation. I've actually been looking for a new book.
I just got done watching the MSU vs. Penn State game on "ESPN 3" on my XBox 360. I can also watch it online on my computer.

Whether you could have watched it online is anybody's guess. It seems to involve whether your ISP has cut a deal with ESPN to be able to do this, and "ESPN 3" is also clearly just sort of wedged between the licensing cracks as games seem to get blacked out at the drop of a hat. But other than some weird quality issues with the stream, it did basically work. (And, oddly, this game was also locally broadcast so I have no idea why I was able to see it.)

No commercials on the XBox 360, either. It was weird, it just puts up a screen about how the game will resume shortly. Kinda nice, actually.

It seems to be ESPN is willing to do the subscription thing, but the sports fields are so tied up in licensing snarls that it's hard to get anything through yet. But it is starting.
I consider people who live their lives leeching off the work of others degenerates and scumbags, and those who defend them idiots (especially because, in the long run, they're not acting in their best interest). I use civil language talking to people who I respect.
I have both textmate and espresso and tried coda for a while. I am staying with textmate and I am doing it not because textmate is better than the other two but because it does the job the way I expect it to. Even though I bought espresso, I never used it, it came with a bundle and I was very excited about it but in the end, my workflow is already working and instead of switching to a new app, I decided to learn emacs and slowly switch to it because it enables me to code on my mac and on my linux box with the same tools.

TextMate Pros:
* if you need a text editor, you will love it
* the bundles are great
* works as expected
* customizable

TextMate cons:
* you need extra tools such as ssh, ftp and the like
* it has no nice GUI for visually doing stuff such as css
(the cons are rational cons but they don't affect my job)
Really? I have an amazing job, great friends, and every toy a man could want. I'm insanely happy with my life, yet I can see myself falling into depression right now. Depression != sadness or stress.
The bit where you don't know for sure what's in Ruby and what's Rails-specific, argues against your own point for me. I can't help but feel that that sort of attitude is why the more work I take that involves maintaining Rails applications, the less I want to write a new application in Rails... I'd consider using just plain Rails, though my experiences with the code quality of even some aspects of that aren't super great, but most 3rd party Gems for Rails scare the crap out of me at this point in terms of future support burdens. And people throw so many of those into their gemfiles.

2.1.0 :002 > Time.now + 3.hours
NoMethodError: undefined method `hours' for 3:Fixnum

2.1.0 :003 > Time.now.end_of_day
NoMethodError: undefined method `end_of_day' for 2014-12-27 20:52:11 -0600:Time

EDIT: to elaborate on what I mean by that sort of attitude, I feel like Rails's reliance on "magic" (or things that appear to be such) makes it too easy to do things quickly that the cost to do it right doesn't get paid and this interacts very badly with a common pitfall for users of open source components where people just don't put in enough time vetting quality before integrating things into a project.
To save people a Google: there aren't any source code or even detailed specifications yet. The talk takes place tomorrow (Dec 28), so presumably more information will be available then.
Could you provide any links for using CouchDB in this kind of use case? I wasn't aware of it as a solution to this problem (but only as a document db) and would like to learn more.
Rust arrays are perfectly compatible with C arrays, they're both just contiguous segments of memory with elements at fixed offsets. You can pass Rust arrays to C functions trivially, and bounds checking has nothing to do with it.

I should also note that all correct C code does bounds checking somewhere. The difference with languages that are bounds-checked by default is that they pessimistically assume that you haven't checked the bound manually, and so can potentially do more bounds checking than is strictly necessary if their optimizers aren't capable of hoisting out the checks.
I find baring the law of the excluded middle an unnecessarily restrictive basis for logic...

And that attitude combined with a long chain of reasoning will wind up with you accepting that the following are entirely sensible statements.

"I accept that there exist real numbers which cannot ever be specified."

"I accept that there exists a reasonable computer science problem for which there exists a polynomial time algorithm but for which I cannot ever prove any algorithm correct."

If you do accept them as reasonable, it is worth carefully considering what the word "exists" actually means to you, and how someone else might think it should mean something different. IF you come to the conclusion that it should mean something different than what is implied by those statements, then you should take another look at constructivism. :-)
Summary: Any sufficiently complex Markov source is indistinguishable from random (until you read enough characters).

A mathematical re-evaluation of the limits on data compression? No, not really.
Has this tool been taken down?
Pick from the Top Ten Deadliest Animals: Dart Frog, Cape Buffalo, etc. Had a buddy who used names of Fender Guitars, boss wasn't as amused as us ;)
ETFs. They are funds but traded like stocks and their goal is to mirror an index like the S&P 500. Their main benefit over mutual funds are their really low management fees.
I name them after herbs
Because they didn't use state? Can you elaborate what you mean?
RPX | San Francisco, CA | Multiple Roles | ONSITE

RPX is the leading provider of a comprehensive suite of solutions to help companies manage the risks and costs that arise at any stage of their intellectual property program. I work full-time on the tech side at RPX. If any of the positions below interest you, just send your CV to my personal address at craigsanders262@gmail.com and I'll get it into the hiring manager's hands. Cheers.

- Engineering Manager focused on Python, Machine Learning, Data Science. Responsible for helping build state of the art technologies using Machine Learning and NLP solutions and applying the analysis into UI development. In this position, you will get to play many roles, touch many parts of our system, and have a significant impact on our products.

- Analytics Manager focused on Market Intelligence. Working closely with Client Services, Litigation Intelligence and Product Management teams to research business and legal trends across consumer electronics, e-commerce and software, financial services, media content and distribution, mobile communications, networking, automotive, and semiconductor market sectors. This role provides a unique opportunity for quantitative and qualitative analysis in a rapidly growing and exciting industry.

- IP Analyst. RPX Consulting is an early-stage venture started within RPX Corporation whose purpose is to help technology companies optimize their own patent programs. We are seeking engineers, scientists, data scientists, patent attorneys/agents, and former patent examiners to join our Intellectual Property (IP) Consulting & Advisory Services team as a Patent Analyst. In this role, you will utilize data analysis to craft summary reports of findings.

Other open positions: Senior Patent Engineer focused on Semiconductor Technology
Some people just aren't satisfied until they're reading their mail in Emacs.
Well, i´ll tell you as a SaaS provider to small bussinesses and web software provider to large enterprises.
The main reason we sell to large enterprises an on premise solution is because they basically don´t trust us or our platform providers (aws, appengine) with their info.
Just look at github firewall install and other on premise solutions, they are available because of a fundamental and justified lack of trust on third parties.
Good luck on the civil liberties (rights) angle, i believe it´s not such a utopian but more of a practical concern who you trust your info to.
>Brain to computer interfaces

Very, very, very bad idea. Once this works, we've got a massive box of philosophical and psychological issues to deal with--reality becomes suspect and meaningless.

Sure, there are all sorts of bizarre risks inherent in this, but is there any possibility that this won't happen? It seems all the trends point this way?
So instead of using a unix domain socket and amortizing the cost of startup he forks a process every time. This is ok for prototyping but definitely not ok for any kind of production use.
The in-app purchase APIs were added relatively recently, and in theory they will eliminate "the app is the content" problems eventually. An app should be able to trivially reach the store and acquire more content, even if it's for a price; a user should not need to download new "apps".

It would also help considerably if there were a big text filter in the app store, e.g. to hide all new apps with similar names, so that more uniques show up. Right now, it seems every week there's 40 new "map reading" apps that vary only by city, etc. and it's aggravating to have to page through them all to find truly new things.
Remember what Timothy McVeigh though. His POV was that you could kill him, do whatever to him, and he's still up 168 to 1.

Timothy McVeigh was a failure, in every sense of the word. He accomplished none of his political goals. He had hoped to start a revolution. Which didn't happen. Because even people who were sympathetic with his goals were repulsed at the barbarity of murdering small children. McVeigh was far more effective at annihilating public support for his preferred policies than the government could ever be.

You have to outlast your enemy, and make it clear that they have not won, and can not win.

What do you mean when you say "win"? How does a terrorist "win" exactly? It seems like you're describing the politics of spite and I don't see how this analysis allows you to make any useful predictions.

They don't have to be effective and kill a lot of people to wage a campaign of terror.

I'm not sure why we should care about terrorists that only manage to kill a few people every year. Those terrorists are about as dangerous as bathtub drownings or golf course lightning strikes: they kill a tiny number of random people. So what? What if you threw a terror campaign and nobody cared?

What does "effective" mean anyway? Do you really think that Al Queda will achieve its policy goals if it continues small scale terrorist attacks for the next few years? Really?
Oh I hate unpaid internships. However of late, lots of people have been pushing them around and people are getting bold because the labor department isn't enforcing the crap out of the law in this area.
I was completely talking about the average case.

Do you honestly think the modern world can be navigated just as well by someone with drive and a 4 year degree as someone with an equal amount of drive and the training from the 4 year degree on average?

The world isn't designed for you. It's designed for all people, and for the vast majority of people, they need a much greater amount of training and education to get the same life their parents had by their age.
Arguably the whole "one book per app" meme should be forbidden from the App Store. That's the larger problem. Ban that phenomenon and a lot of the junk/spammage will go away. Make your book/comic be compatible with the iBook app, or heck just put it on a website and let folks on any platform access it via Safari. Book == static images and/or text != rocket science
I don't mean to nitpick, but while there aren't any affiliate "codes" there are most certainly google ads which are contextually showing ads for airline cards within the blog post.
> Maybe you don't need to have kids, but you do need to find some kind of full filling activity, outside of start ups. It will help you focus when you aren't doing that activity.

This definitely sounds true.

Taking it a little further ... startups are all about freedom and money.

As time goes by, those count less and less for me personally. The freedom you get comes with extra responsibilities, and you really don't need that much money to be happy.

But there's nothing like a kid coming into the picture ... a little boy is on the way and I want to be there for him in every possible way, never miss his first steps and provide him with all the financial support he needs to succeed in life. Suddenly regular employment doesn't sound so great.

Entrepreneurship is exhausting, life itself is exhausting and for the long term you need a motivator outside of feeding your hungry ego.
Everyone - everyone in South Korea hates Kim Jong-il, and most people seem kind of embarassed and blush when you mention him.

What about this, which came from B.R. Myers's book "The Cleanest Race: How North Koreans See Themselves and Why It Matters":

"Even in South Korea there are those who feel the Kim Jong-il regime, under which they themselves could not live for a single day, to be somehow more "authentically" Korean."
> Speaking for the U.S. context only: once you have a security clearance, which will become necessary at some point for defence work, it becomes difficult to move out to non-classified work.

Huh? None of my friends with clearances seem to have that problem. Do they have the "wrong" clearances?
> It's a shame to waste perfectly good medicine in a pandemic, but would we feel the same if he had not found anybody vulnerable who was available, and instead ended up vaccinating his own children, who are fit and healthy?

If he'd made an honest attempt at offering it to vulnerable people first and couldn't find any takers, then I'd be fine with him giving it to his healthy children.

> What if, instead, he taken the vaccine vial to Beverly Hills and called up the rich and famous to try and find someone who wanted to be vaccinated?

That's worse, but I think it's unfair to offer these as the comparisons to what he actually did - offered it to first responders, healthcare workers, and finally the most vulnerable people he could find, all on his own time, money, and effort.

> * But the motivation for the prosecution is understandable - a distribution policy exists to protect the equity of society, and bureaucracy is meant to be a guarantee of that equity. *

Unfortunately, "equity" is a nebulous term here. The bureaucracy took one look at the list of names, saw a bunch of brown South Asian names and assumed this was unfair - why? Was their net worth written next to them? Could they have taken this step with a latino doctor and all the names were latino names - or with a black doctor?

> a distribution policy exists to protect the equity of society

Not really - the policy was exists in most places heavily favors the most vulnerable, not equitable racial distribution. There is some overlap between those two groups, for sure.
TIL. Still less functional (no hotkeys) but good to know, regardless.

Discoverability could use some work.