skysight-inc/HackerNews huggingface dataset:
Ask HN: Quantum Computing – Concept/Code Review (Qiskit Impl.)
Hello! I'm new to this stuff, so please be gentle, but I'm looking for feedback on the follow code sample which is an attempt at a sort of "homomorphic encryption" scheme. Basically Alice encrypts some operands, sends them to Bob ... who performs some operations (without knowing the operands), sends them back to Alice who then decrypts the results.

The implementation here is very simple:

* Alice encrypts 1 qubit, sends it to Bob.

* Bob performs a bit flip (on the encrypted value), sends the value back to Alice.

* Alice decrypts the result.

I'm leveraging quantum teleportation to get the qubit from Alice to Bob, which is probably not strictly necessary, if there was a "quantum internet" (a mechanism to send qubits around), but I'm assuming classical information transfer between the 2 parties.

I'm not a student, this is not homework. Just looking for feedback.

Code: https://gist.github.com/datafatmunger/9f881d362a92b533af8400f6f85f8ffc

Thank you!
In-depth financial info – in lingo that makes sense
Thank you for reminding everyone. I don't trust Bloomberg News at this point — "The Big Hack" seems to have been pure fiction, and this article seems to follow the beaten path to maximum clicks and ad impressions.
I think it’s worse for apps than document-based websites, but the border between those are fuzzy to me. I’ve certainly run into problems with both.
The Mission soundtrack was one of my favorites as a kid. And I just learned that his work on The Thing was nominated to a Razzie Award!
Hosting and the tech behind it, networks, etc. Is something I’m interested learning more about. Recommend any resources? Also, do people still care about college? This is a college dropout asking.
Tea For God does not use redirected walking. It procedurally adopts game space to available room space, and uses clever mechanisms like non-euclidian geometry and various elevators to allow for huge worlds. Still, movement is 1:1 mapped between room and game.

Redirected walking means distorting the mapping when moving or rotating, to fit any game world into limited playing space. In research it's always applied in larger spaces, x5 times bigger than living rooms. If you distort moving or turning too much, users lose balance or become nauseous.

Here's a decent intro paper. 15 Years of Research on Redirected Walking in Immersive Virtual Environments https://illusioneering.cs.umn.edu/papers/nilsson-cga2018.pdf
I’m not religious, but I do enjoy talking to Muslims and other religious people to learn their world views. Even though my personal beliefs are incompatible with their concept of a divine power.

But people who believe in flat earth theory, a 6000 year old planet, that one skin color is better than the others… I have much better things to do with my life than to even try to understand this level of crazy.

Edit: I fully see/understand the irony here, that I’m saying similar things as what people in those groups are saying about my beliefs. Maybe deep down, they really do believe that Obama and Clinton ran a pedophile pizza ring or that Biden flew to China to import SARS-CoV-2. And that’s the problem. They BELIEVE. There is no factual basis. It’s just what they believe because it reinforces their worldview. I don’t want to associate or interact with those types of people because nothing is based in reality.
Idyll Lang – Create explorable explanations and interactive essays
Have you tried the latest version of JUCE? I think it supports cmake now.
Seems alot more interesting than yet another failed searched for "dark matter"
Difference between similar terms and objects
Have you already done anything towards this goal? This is something I’ve been thinking about for several years and I’m about to tackle as a side project so would love to chat with you if you want.

My contact info is on my profile
I prefer the multiwindow IDE myself, but you can make Lazarus single windowed. To do that go Packages -> Install/Uninstall Packages -> find the "anchordockingdsgn" package and install it (Lazarus is quite modular and packages can alter the IDE) by hitting the "Save and rebuild IDE" button. Note that this will have the form designer still as a floating window, if you want it to also be inside the IDE also install the "sparta_dockedformeditor".

These aren't very obvious (in another comment i wrote that Lazarus can feel a bit messy and unpolished... this is one of the reasons i think that :-P) though and IMO it should be something that you get asked when you run Lazarus for the first time.
I checked out the repo, but didn't have high hopes when there weren't any screenshots in the README.

But these look great! You should definitely show them off. Adding them to the repo for others to see might generate the tinest bit more excitement for people stumbling on the project. :)
Slack Design
Remote Inning | Python/Django Backend Developer | Remote (India) | Full-time or Part-time | https://www.remoteinning.com

Remote Inning is looking for Django Web Developer. We are looking for developers with qualities like consistency, reliability, working independently and communication skills especially written skills apart from tech skills.

As we are a remote-first company, you can work from a place of your choice. The position is open to candidates based in India only. Full-time salary is 10-15 LPA and hourly rate is $20 -$30 per hour based on qualifications. The immediate requirement is for 1 developer but we will be hiring more developers soon.

- At least 3 years of experience working on custom web apps in Python/Django.

- You are not afraid to look into code of Django packages like Django Rest Framework when in doubt. And also look into the Django codebase when something is not clear from the Django documentation (rare as docs are great).

- Create and edit Django templates so a basic understanding of HTML, CSS and JavaScript is required. You know how to create template tags, filters and integrate SASS etc. The position requires nearly 80% backend and 20% frontend skills.

- Good understanding of Django class-based views.

- Good communication skills. As we are a remote-first development agency, good communication skills are a must. It does not mean writing in 100% accurate grammar. But understanding the feature requirements, ask questions early on and make sure the team gets the message properly. You know how to describe the issue, discuss and come up with the implementation.

- Wagtail experience is a plus but not required.

Email us at hello@remoteinning.com with Resume. Mention your development experience, motivation for applying to us and links to relevant projects.
Indeed. I think the API should be either:

def load(filepath):
return csv.reader(filepath)

def main:
...
with load(myFilepath) as reader:
for item in reader:
...

where the CSV reader both opens and closes the file, or

def load(file):
return csv.reader(file)

def main:
...
with open(myFilepath) as file
for item in load(file):
...

where the CSV reader is ignorant about opening or closing anything. If desired, add a method to the first API that takes an open file, but don’t close it if callers do

with load(myOpenFile) as reader:
...
I believe Hardwired Tour did not use this intro.
Which program?
He toured with live performances very frequently, only retiring from live music last year, at age of 90. I saw him twice and both were filled with really serious fans of all ages.

While he was prolific (350+ movie scores credits on imdb), I really feel as I am re-experiencing the movie while listening to Morricone's soundtracks, more than from any other composer, especially for "Cinema Paradiso", "Frantic" and, I think, the most meaningful Spaghetti Western, "Duck, You Sucker" (!).
Voyager: The Greatest Space Mission
There's also plenty of other cross-pollination, e.g. the influence that Cedar or even Modula-3 had on Java.

Still, I can understand the issues. Let's not forget that despite his work in the field, Hejlsberg isn't Mr. Pascal, that would be Niklaus Wirth. Who always had a way more minimalistic design perspective than others, starting with Algol-W and ending with Oberon-7. Comparing that to the kitchen sink approach of C# (and arguably even Object Pascal) shows two philosophies that can hardly be more different.
Our office is next to a managed kitchen,which cooks for 6-10 different restaurants,who mainly operate online only,via Deliveroo and etc.The service is very popular,so the road is always packed with scooter riders. However, the downtime seems to be substantial for the riders. These are the ones things I'd be going out and observing if I was someone with tons of money to invest in those companies.
Not the OP, but moving to sparse matrices is probably going to give you the most bang for your buck. I would strongly suspect that those huge dataframes could be encoded sparsely in a much more efficient format.

To be fair, that's one of the reasons that Spark ML stuff works quite well. Be warned though, estimating how long a Spark job will take/how much resources it will need is a dark, dark art.
Maybe they convinced themselves that automated cars will come soon and then delivery will become basically almost free.
Remember the desert is very cold at night. So you don't need to spend that much energy, as long as you can store heat.
Ask HN: Recommended services to display unique page view/reads on personal blog?
Rather than writing letters, wouldn't scientists be better off doing some randomised trials to test the efficacy of face-coverings on the spread of the virus?
TIL that the email in the profile isn't public access. Probably should have realized that before.

My email is Shared404 (at) protonmail.com, I'd love to hear your ideas.
Thanks :-).

The hardware accelerated versions will lose the "grittiness" of the software renderer, but i want to eventually have them working in my Voodoo 1 PC and such visual differences weren't uncommon at the time :-P.
The author of this piece, Zeynep Tufekci (https://twitter.com/zeynep), has had a pretty consistent viewpoint throughout the epidemic: she called for early response, early mask wearing (when most western authorities were advising against it) and co-authored a review on the topic (https://www.preprints.org/manuscript/202004.0203/v1), and has consistently said that closing outdoor public spaces is a mistake. Whether she's wrong or right, she's not just writing what the Atlantic's editors tell her to.
In Chile at least he was huge. His concerts there sold out quickly.
Why can't the RPi have at least 1GB or 2GB of flash storage on its board? My 4 year old, 80 euro android has 8GB.

It's not a secret SD cards quickly fail.

I've not bought the RPi for that specific reason. Even if the RPi is 5 times slower, having reliable storage seems seems like a most important feature.
This is such an amazingly good question because it directly relates to real life. Of course you would trade with them to get 1000 years ahead and then once you are at the same level as them you would betray them and completely ignore their "stupid" IP laws. This is basically what China has been doing for decades now.
Ok, so less about the flow and nature of information and more about the semantics.

> Seeing the computation as a physical process, processing information "about" details in its environment, highlights this.

Are you familiar with Karl Friston's work on the Free Energy Principle? [0] He touches on how the nature of a living being (computational agent) is to model its external environment and act upon that model. That making decisions based on internal logic requires external stimulus and semantics being analyzed and augmented in sort of a feedback loop.

> The key to all this is appreciating that, once you see semantics and information processing as a matter of physical processes, you can see that the correct semantics can be necessary for producing a physical outcome.

I think I understand what you're saying and it touches on some of my own inquiries. A more concrete example, if you have one, might better help align me with where your thoughts are at regarding this.

[0] https://www.youtube.com/watch?v=NIu_dJGyIQI
Huh! We're basically neighbours. Newtown here ;-)
In criticism the word prolific is often used in a demeaning manner to imply that the artist under question has not put as much thought and care into their pieces as they might or should have, but instead went for quantity over quality.

I think though this usage has fallen out of favor and at any rate was probably more common among poor critics, I think nowadays it is understood that quantity of output might be necessary for some creators to achieve their best work (by producing some that is not as great as their best)

on edit: so the word is sometimes sort of a snob-whistle, ooh prolific, well they're saying he's not that good then. But I doubt that is the way it is being used here.
Spark is really, really good. It's a massive leap from the Python/R model of play around with a data.frame till I have a model, then wrap it up in a script for a lot of data scientists though, which causes problems.

Spark is ace as it has an SQL API available cross-language, which makes ETL much more effective, and ML models (though I've always been sort-of suspicious about their maturity).

tl;dr - demonstrate the speed of running regressions in Spark, and many (most) data scientists will invest the time in learning the tool.
> I didn't know that Santa Claus was a religious symbol

Really? That's a bit surprising to me. I mean, Santa Claus is specifically part of a celebration of a Christian holiday, how could it not be a religious symbol?

(This is kind of assuming we're talking about the American-style conception of Santa Claus, I believe other regions use really do use it in a non-religious way, so that could totally be the disconnect.)

Note: the original ticket is ridiculous, or at least the way it is framed. And it seems that it's a troll in the first place, which makes sense.
Huawei Not Banned
WTF? No, it just seems that they use white as symbol for purity and god - angels clad in white, brides in white dresses...

My sincere apologies for growing up in a Christian culture, making me an evil colonialist by birth. How can I make amends?

Boogeyman - we are talking about the colors black and white here. Get off your high horse!
Making people aware they should test their drugs.
MDMA testing is illegal in lots of places, we ship test kits where available.

And I created a reverse image search to look up pill data:
https://play.google.com/store/apps/details?id=be.harmreducti...
Different context. If you're being offered the same odds on every bet, bet on the likely winner.
Protectionism isn't about jump starting local industries. It's about converting foreign owned local industries into domestically owned local industries. You can only afford to do it once you no longer need foreign investors.
There are a couple of aspects of Formula 1 that make it very compelling to watch (my opinion of course, take as you will):

- Accessible aerodynamics (it's on the road in front of you, not up in the air)

- Technological developments (e.g. this year, one of the teams has a steering wheel they pull toward/push away themselves to change the geometry of the front wheels)

- Watching high-performing athletes demonstrating the ability to operate a machine at speeds over 200mph and still having the capacity to understand the strategic situations unfolding around them, even gathering information from the crowd in the grandstands, or the tv screens that flash past them as they navigate the track

- Seeing an inter-disciplinary team design and operate a machine that fuses aerodynamics, mechanics and hybrid propulsion systems, driven by a human operator, monitored in realtime by a team of engineers distributed around the world

- On-the-fly risk/reward decision making in race strategy from observing current data whilst incorporating gut feeling based on past experience to great effect
Now it is official: I like (modern) JavaScript.

I am a C# guy and every time I see modern Rust, C++ or Go syntax I am really surprised by its deviation from the norm (which is interestingly no longer C but a hybrid between JS/Java/C#). I mean why different Rust syntax for closures and functions. || vs ().

On the other hand, the linage is not Java/JS/C# to Rust but C/C++ to Rust. Considering that, it is an improvement.
Any reason why you're seeing ads in the first place? I recommend using an adblocker, specifically uBlock Origin.
It is not impossible to achieve profitability. Seamless (what used to be every Wall Street Banker's go-to service) was profitable for a long while. Granted, they didn't have the same level of competition we see today.
You actually can't really do that since workplace health insurance plans actually cover some of the costs that insurance bills. Like, your work literally pays a bill.

This isn't something that you can replicate.
China did liberate the area from feudalism by killing the ppl living there in the first place: https://en.wikipedia.org/wiki/Dzungar_genocide
China intentionally and resettled the uighurs there in first place after having killed 80% of the population that lived there.

How can you make an historical argument without mentioning this small detail?
Pandas combines the intuitive nature of base-R with the excellent missing data model of Python.
The problem with search in particular is that it gets better as more people use it, because click behavior feeds into the search ranking algorithms. So if you force Google to expose such an API, you effectively degrade the quality of search results for everyone.
Nope, that's not an improvement. You gotta add hover animations to each news item, fading effects, real time updates of timestamps and likes, thumbnails(because how else can we differentiate between the items?!!1!), and don't forget the ads inbetween to not blow a hole into your budget due to the increase in bandwidth thanks to the innovative responsive frameworks.

This half-assed proposal is not a good solution! /s
This is completely false. Insurance is far cheaper for large companies since the risk is being spread amongst a very large pool of individuals.
I was lucky enough to see him at Radio City about a decade ago, with the entirety of the Roma Sinfonietta playing for him and for us. It was one of the most impressive and moving musical performances I have ever seen in my life.

Seeing a coloratura soprano do The Ecstasy Of Gold right before me was mindblowing.
GC advocates say that managing memory lifetimes is an excessive burden to programmers.

Anti-GC advocates say that memory is just one particular instance of management of life-timed resources, and that special casing it is an ugly hack and you should be using RAII. Rust probably is the leading exponent (C++'s way is more of a mess).

The RAII critics point out that RAII also glosses over part of the problem because often de-allocating resources can itself fail (e.g. closing a file) and RAII (in Rust or C++) has no proper way to deal with that.

Then, there is the Reference counting camp, the only people who can say that they solve the something close to the general automatic resource de-allocation problem -- because lifetimes are precisely tracked. But reference counting can't cope with cycles and generally has poor performance. Also, it does not directly help with de-allocation failures. One interesting recent variation are attempts at static reference counting: http://strlen.com/lobster/.

Last there are the old and the new muddle through camp. The old muddle through camp (e.g. java, python) adds finalizers with crap semantics (call-me-maybe). The new muddle-through camp uses GC for memory but adds some extra mechanism for other resources (defer in go, <close> in lua 5.4). Defer in go seems like an inferior version of rust-style RAII. Lua 5.4's <close> also has/had problems (see http://lua-users.org/lists/lua-l/2019-06/msg00179.html).

The author of the article advocates old-style muddling through, but this feels unsatisfactory because it's not robust in general and likely worse than following current "best practice". But it still seems like there is still no really good general solution available. Rust-style ownership tracking would have solved the lifetime ambiguity of the file for the csv reader, but would not be able to deal with file close errors properly. These can be somewhat handled with exception based mechanisms, but not without problems either -- because multiple things can go out of scope at once, requiring cleanup and one or more of these cleanups may fail themselves but try catch statements (with stack unwinding) offer no natural way to deal with multiple failures being propagated up at once.
Investigating neural vocoders (WaveNet, WaveGlow, etc.) and studying deep learning with applications to music and audio.
In Australia, health insurance isn't related to employment at all.

It seems a strange idea that it should somehow be connected to your employer. I can't see any reason why it would, only reasons why that would make things problematic and complex for no gain.
Data Science Myths:“You Need PhD,Extensive Python Skills and Tons of Experience”
The only unsafe functionality the author describes is the unchecked array access. Based on that (which may be incomplete, of course), the borrow checker is a safety feature that is active.
This is an extremely accurate description of Dominos operations. Very few,if any,can replicate it,unless they also sell products that cost a small fraction of the end price. At least in the UK, their tech is years ahead of any other pizza join, including their biggest competitors.
No I'm not. It indicates quantity, with little indication of quality. In artistic fields that's often used to describe people whose production was abundant but not necessarily remarkable in qualitative terms. People making jingles for tv ads are prolific. Morricone was more than prolific; he was a genius who changed his field and left a massive legacy.
You likely can’t run a successful campaign for a non finished/play tested board game, no. There is too much competition for backers to take the risk.

It doesn’t stop people from trying, but there is a reason so many project never get funded.
I'm European, and I think that healthcare should be considered a human right. Not giving someone in need a potentially life-saving medical treatment is completely unfair, and a big red flag honestly. Life doesn't give the same opportunities to everyone, some people have been born in better environments or have simply been less fortunate then others, and I think it's the state's responsibility to create a system where these things are taken into account. Denying this is plain greed from the richest who don't want to subsidize healthcare for the poorest, without realizing that a society where people are less worried about their future would benefit them too; it puzzles me that so many people on the other side of the pond think of this almost as if it was some form of bolshevism while it is instead just plain and simple basic human decency.
Show HN: Create a branch with your pending code changes
I read Adrian Newey's autobiography, "How to build a car", last year, and thoroughly enjoyed it. I'd recommend it to anyone with an interest in the engineering side of motorsport.
One of my side projects was to make a game where you need to calculate your odds correctly as fast as possible but main goal was to learn some TypeScript so I lost interest after I was satisfied.

Anyway, I got at least one "game" done, you need to correctly count your outs. It is not perfect but covers most cases well.

https://github.com/GustekDev/poker-odds-game