skysight-inc/HackerNews huggingface dataset:
Recent surprise: exponentiation by squaring. Not by name, but by being the correct answer to the question. (This is in the list of 500, by the way.)

It's trivial to explain:

x^n = x(x^2)^((n-1)/2), if n is odd
= (x^2)^(n/2) , if n is even

Knowing that (or having figured that out yourself if an interview was your first exposure to this problem), it's even more trivial to implement, making it a math quiz far more than a programming exercise. (Though I later turned it into a programming exercise entirely to exploit an arbitrary eye bleedecution bug in the human brain: https://gist.github.com/LnxPrgr3/7154873d3eb8b1e5960851628c7...)

Maybe that's what they intended. It's certainly legit if the job will have you actually doing, rather than applying, math. Except that it concludes you can math if you're smart enough to pretend to derive the answer you memorized after encountering it before. You might accidentally hire a bunch of crypto nerds.
Who gets to decide? How about all of us voters, taxpayers, and citizens, collectively, in a democratic fashion?

I'd be fine having a discussion about what's "too massive" for a company and trying to figure out how to balance the interests of society and any given company (and its constituent individuals). But I'd like to start from a position of, what do we want society to look like? rather than a position of, how do we preserve the status quo?
The Internet can be compared to a city
HTML vs plaintext

The plaintext email only nature resonated with me for long time but many email and chat services have gone rich text and it's great. Why I say that...I used to use claws mail for many years for business email but being able to at least make text bold or add an inline image is valuable. For personal email mutt is great for me and Gmail too nowadays but for business to business, HTML is required.

It took me a while to get Thunderbird to mimick Claws. Thunderbird is much slower and crashing randomly frequently but is the best from the crowd.

Does Claws Mail allow me to write HTML styled messages?

No. A discussion has gone around over this topic, and the outcome was that HTML mail is not wanted. If you really need to send HTML, you can of course attach a webpage to an e-mail.

http://www.claws-mail.org/faq/index.php/General_Information#...
The app is my old online poker tracker, written with pygtk.

I am tempted to move to Qt instead, and for a number of reasons will probably try Go instead.

1) As much as I have traditionally disliked Go's dependency management, with the vendoring support it can be made reasonable

2) I never got python's threading to work properly, which made the UI unresponsive when dealing with database operations; and threading in python is a hack anyway

3) I believe (cough hubris!) that I can simplify the internals by further splitting the architecture

One of the best ideas I ever had was to forego all attempts at subprocess management and just go for DBus and its process autolauncher instead. I mean, have you ever tried to make a fork/exec work from within GTK software without causing X hiccups?
Deep breath. ICE and the transistor have been around for decades. Centuries in fact, in the case of the former. It's not even clear that pagerank is being used now; I can almost guarantee you it won't be in 50 years. Given the pace of biotech discovery I suspect CRISPR won't either.
Go directly to SVG. Then you can view mazes in the browser and easily use them in web pages, having them look good at any scale.
I'm well aware: I live in Qatar.

All I'm saying is that it is important to look at what the left hand is doing even while praising the actions of the right hand.
This is how we get five eyes spying. If it's immoral for one country to spy, it's immoral for all of them. If there isn't a law against one country spying on you, there might as well not be a law against any of them spying on you, as we've seen.
Uninstalled it many years ago. Check about once a month and stay signed out. I totally avoid it otherwise, too intrusive.
I quit facebook and smoking together. I used to smoke 4-5 cigarettes a day and once i started being mindful about why i do and what i get, i took a stance to quit. I convinced myself to quit and also out of curiosity picked up a book about quitting smoking.After doing all this, I felt facebook and smoking are similar in so many ways. Trying to fill the non existent void in everyday life. And even though we are so much aware of our physical health , we hardly try to resolve our mental health issues. And then i quit facebook. Even though i used facebook for may be all together 45 mins a day. It feels so much better to not consume that insensible, utterly useless content.
Ask HN: Good WordPress themes for dev blog?
Hi HN!

In the last couple years I've played with several blogging platforms--hand rolled, Jekyll, Medium, Ghost, WordPress--and found that WordPress is the one I enjoy using the most. Strange, I know, but it is what it is.

Problem is, I haven't been able to find too many themes that work well for a developer blog. Most of the official themes, as well as ones on third-party marketplaces, seem to be geared towards either magazine-style websites or image-heavy portfolios.

I'm looking for a theme with a simple sticky sidebar/top bar for navigation, and a stripped-down reading experience. The focus should be good typography and readability.

I get a lot of consulting work from my blog, so I'm willing to pay for this. In fact, I've been talking to some programmer friends and some of them have offered to pitch in cash to get an actual designer to build this from scratch.

Before I go down that route, though, I'd like to know if I can buy something off the shelf that's suitable for a dev blog. Do you guys know of something?
Can we use mixture models to predict market bottoms?
Perhaps you can send me down the righ path?

I want my users to be able to send emails from their iPads, and those emails would be generated based on templates. There will be many such templates built in, and eventually users will be able to hire web developer-type person to make custom templates.

My thinking was that PHP is the most popular language for that sort of thing, so it would be nice if could support that. My second choice is handlebars. I'm not sure if JSX would do the job?

Any thoughts appreciated.
In a strange mirroring of the article itself, I clicked on the link with preconceived ideas about what it was going to say. Before I read the first paragraph, I was formulating counter points in my head, as well as examples of my own experiences of being at the receiving edge of rudeness. I could feel my blood temperature rising with excitement and affront.

But as I read through this excellent essay, I found myself taking on the actions of her painter friend in the airport security line. I simply let myself read, and absorb the words - without judgement, without getting indignant or self righteous at the injustice of the situations she described.

I read the section on her interaction with the sales assistant in the clothes shop, with much sadness. I realised that in my everyday dealings, I (and possibly many others) flit between the persona of the assistant, and the author.

And in the spirit of her painter friend, I'd simply like to say "Thank You" to whomever posted this article here for me to find and read.
Trump and the Problem of Militant Ignorance
Thanks. That's sound advice. I've sent you mail
Automate the Boring Stuff with Python by Al Sweigart – Book Review
I first came across it when I was hitting certain boundary conditions w/ GA/GP in the early 90s. It's pretty great. Of course, as stochastic methods go, you never know when they are going to get there. I am gratified to find recent research in the DL community going back and saying, "you know what? some of these GA/GP/PSO critiques of multi-layer NN were right, and they had something to say!". But, I'm too old and grumpy to do anything with either gratitude, or revenge or research dollars now. I just mostly tell the kids to get off my lawn.

EDIT: I'm simply saying that saying: "I told you so!" 25+ years later doesn't get me my life or my wife back. I was a misplaced, from my agent-centric-point-of-view, sample. If I could only learn to lean back and give it up for England. (just kidding)
The size is more or less a physics limitation. If you want a fast lens then your lens elements must be larger in diameter. Then you have to add more elements for correcting aberrations that are more prominent at wide aperture, thus making the lens heavier. The resolution is less of a factor, and is more dependent on things like the glasses used and manufacturing tolerances. Most of the Sony lenses are merely comparable with Canon/Nikon lenses, and behind the Sigma Art lenses unless you are comparing the G-Master series, which are more comparable with high end Zeiss glass.
Work duration and overtime tracking with Slack
> The liberal elite, as far as I am aware, do not make death threats

I guess the author is choosing to ignore all the "Bash the fash" "Punch a Nazi" violent resistance to any ideas that don't support the liberal elite's sacred cows.
No.. it's PWA.
The page is oddly written in a variety of ways: "The team was astonished," the insistence on "G-mail," and what is this doing in there:

"Apple has decided to use alternatives such as Advanced Encryption Standard, Cipher Block Chaining (AES-CBC) + Keyed Hash Authentication (HMAC) to achieve both confidentiality and integrity for sensitive data transmitted over the Internet."

They're talking about a vulnerability in QUIC, a protocol Apple doesn't support, to my knowledge. To the extent that eyebrows are waggled in the direction of AES-GCM in TLS, Apple supports that as well.

"AES-GCM is also used by TLS version 1.2. We have been unable to verify the Ring-Road vulnerability in TLS due to time constraints, but we strongly encourage other researchers to study TLS version 1.2 to see if Ring-Road exists."

Is this the same thing as what somebody previously called the "bicycle attack"? [1] (it went over like a lead balloon so you're forgiven for not having noticed)

[1] https://guidovranken.wordpress.com/2015/12/30/https-bicycle-...
Books to Learn Object Oriented Programming
Seems cool, anyone know how this compares to similar projects out there? In thinking of doing an OS course soon as a refresher.
It is also my first easter in 20 years away from my family. And people in the place where I am now don't celebrate so it was more difficult to do it, but I prepared the best easter basket I could and painted eggs with my girlfriend. It wasn't that bad, but I wish I was home for it.

Happy easter!
Meanwhile....

RT non-stop San Francisco<->Beijing Depart May 3rd, return May 11 is running <$500, Air China vs. United.

Flip that over to London, and its about $950, United, British Air, Virgin.

Flying around the world is so cheap, competition is fierce and operating an airline business is a horrible morass of regulations.

It's a bit miraculous that more incidents like Dao vs. The Goliath don't occur.
My clients mostly liked Avada. It's easy to deal with mainly. Still requires a bunch of CSS hackery to get things setup how you want but that's pretty much just how WordPress is.

I recommend statically generating the site from the WP code and using pure HTML if it's just a straight blog. No worries about the constant WP security holes and terrible performance then :) .

I'm of the clan that believes a website is your office nowadays though, so if your forte is tech consulting I would advise you to do it custom and throw some little personal touches in there.

If you think WordPress will work I highly recommend the managed services Flywheel and WPEngine. They main dealing with the BS parts of WP easier.
https://github.com/groue/GRMustache

https://github.com/groue/GRMustache.swift
Just wondering, what kind of things do you think FreeBSD is lacking in?

Regardless of those things, the OpenConnect boxes are doing a pretty small subset of possible server tasks, it's basically serving static content from disk, and updating the static content occasionally. This is a task that FreeBSD has been excelling at, since basically forever. FreeBSD is a pretty stable target to tweak on as well, Netflix moved TLS bulk encryption into sendfile(), which helps avoid the transitions from kernel to user space, but by putting more stuff in kernel space, rather than the DPDK method of putting more stuff in user space. They've continued to tweak sendfile, which I imagine helped them get up to nearly 100Gbps out.

I haven't had the pleasure of running 100G network, but I had to do very little tuning to saturate 10G with FreeBSD on http download site, and TLS cpu was the primary thing holding me back when moving it to https. Bulk download was moved away from my team before I got new servers with 2x10G and fancier processors, so I was never able to see if I could saturate that too :(
Japanese Leading Metasearch Company Using Tavisca’s Mapping Solution
The first thing I thought of when I saw the photo of the interior of the building: panopticon.

https://en.wikipedia.org/wiki/Panopticon
>I CAN'T do any such thing.

You absolutely can. Praise effort instead of talent.

One of the mistakes my parents made when I was younger was to call me talented in things. It resulted in a tremendous amount of stress, and did not make me more likely to try. I felt like I should automatically know how to do things (because that's what talented people do, right?), and hated that I didn't. It made me more resistant to pushing past my comfort zone, because I knew I wouldn't be good at doing so, and I didn't want to disappoint.

There were times they pulled me out of after-school language or music classes, because again, I was stressed out and miserable. But it wasn't because I didn't enjoy the subjects- I just had unrealistic expectations of my own abilities.

I eventually figured out that hard work brings its own rewards, but it wasn't an easy path, and I only found it thanks to other family members who pushed/encouraged me in their own way.

Now, I do not have any children of my own, but I'm uncle to a lot of friends & family. I do my best to encourage the younger ones' efforts, making sure that they know that I see them trying hard. And it really seems to work. Kids need guidance. They do not yet have enough experience to know what they would enjoy. And that sometimes means making decisions for them, and that is OK.

[edit] I want to be very clear, overall I loved my childhood, and I feel very lucky to have had the parents I did. We had (and have) a great relationship. It is simply that with the benefit of hindsight, I can identify choices that I would make differently. I do not expect my parents (or me) to be perfect. The best we can do is try to improve things for the next generation, until it is their turn to do the same.
Does "Nazis are bad" really qualify as a liberal elite position? Oh wait I just saw your username.
Well we were able to write an algorithm that kind of worked. But it relied more on just which MAC addresses are visible at a certain point.
If solely for templating emails, I would go with handlebars.

You could use PHP but then you have a whole host of other stuff that you don't want or need in a templating language.
Slack Faces Giant Tech Rivals
The+new+iPhone+7s+and+the+iPhone+8+would+arrive+this+year++-+RUMOR
As someone with lots of people on FB for many of whom my FB has become the only way of contacting me - is there any way I can keep my FB account where I only get notified about personal messages and nothing else? What annoys me most is this constant E-mail harassment to try to get my screentime back.
The French micral was a microcomputer and dated 1972. Others also existed after.
Apple I was out 4 years later.
Decent article - but she does try to stress the brexit references, as well as references to modern politics and the divisions thereof. Would have been a better piece if she stuck more to her points of analyzing "The Age of Rudeness"
Just tested...doesn't work on my Android Chrome browser right now but hopefully it gets there.
Well, as an economist, you're close, but not quite there. In truth, in the US, what we've had for a long time is NOT capitalism. It is what you get when you start with capitalism and then add in centuries of rent seeking behavior. Ultimately, at best, what we have is crony capitalism, where corporations and institutions (including labor unions and the government) lobby (aka "rent seek") for preferential treatment under law.

Crucially, I'd argue that we don't get fair capitalistic pricing of labor when there is asymmetric information in the market: Employers pay for access to salary data so they know how much you are worth (approximately), but you have no such knowledge (though this is better than it used to be with services like Glassdoor and Paysa and Salary.com). You're guessing as to the supply and demand for your skill set. Add in the common practice of requiring past salary history to be submitted as part of the application process, and you've got a recipe for suboptimal outcomes, at least on the employee side of the labor equation. If your price gets set below your market value early in your career, it may remain permanently below your actual value because employers often adopt policies which only allow for paying a candidate 10% (or some arbitrary number) more than their last position. This can happen because you underestimate your value initially, or price yourself according to the local market and then move to another market later (say from Salt Lake City to San Diego), or you're out of the labor force for some time (like mothers or fathers who spend them first couple years at home with their new child). The smart candidates will insist on keeping their compensation history confidential (I.e., not sharing it with potential employers), and pass on those organizations who insist that the data be shared. Force them to tell you how much your skill set is worth to them. I've used this strategy to move to a new employer with a 68% increase in compensation. I've also passed on opportunities which required compensation history to be submitted before an offer would be issued. Hopefully legislation will be enacted to make this unnecessary in the future and employers will simply be banned from asking for such data.

Plus, there's a host of policy-related distortions which I won't go into, but basically, no, what we have is not a free market, and not capitalism. What we have is a mess.
At least one stock exchange has:
https://en.m.wikipedia.org/wiki/IEX
Nancy Pelosi is also House minority leader who would have official business with the Ambassador. Pelosi's meetings were also not in secret.
8Q7QV Fihalhohi Island
Jan is one of the most active client authors on the standards lists. He really cares about getting the details right. It's nice to see!
The DSLR is on its way down and mirrorless has caught up, and even is surpassing the DSLR in many ways now. There are certainly very valid reasons why professionals would want to continue using their DSLR for now, but the differences are constantly being eroded away and it is only a matter of time where you are choosing between a couple of trade-offs between the systems for professional use.
Simple Skin Shader in GLSL
So I just learned my suggestion of using LN2/CO2 in an emergency refrigeration system isn't something I came up with -- LN2/CO2-powered backup refrigeration is in fact a standard option on ultra-low temperature freezers (the kind that get used to store biological samples and stuff):

https://www.thermofisher.com/order/catalog/product/6214
http://www.helmerinc.com/Assets/helmer/knowledge-center/manu...

Given that it's commercially-available on freezers that get used to store critical biological material, there is no reason that a sample vault that stores irreplaceable ice cores can't have a similar, scaled-up version of this as well.
I believe that's a reference to IEX's magic shoebox. 61 kilometers of cable that provide 350 microseconds of delay for stock market voodoo purposes.
Fertile Crescent* not Middle East. The Middle East is not really an agreed upon fixed set of places, theres a not-insigifnicant variance in how one can describe it.
This seems to be largely retreading of traditional complaints about the deterioration of society[1].

Her comments on the airport staff in particular seem to be exaggerating the issues. In both cases, it seems the author is unable to accept that the staff might just be following rules.

The comments on political developments in particular seem rather disconnected. In particular:

> The liberal elite, as far as I am aware, do not make death threats.

This comment in particular really exemplifies the holier than thou attitude which many liberals appear to be unable to get over[2]. Being unable to engage with the other side of the political spectrum is (to me) ruder than retail and airport staff following a script to the point of being overbearing.

Her section on trying on an outfit in particular seems to be her attempting to 'reach out' to the retail worker, in spite of her implied superiority as the consumer in this situation. This really grates with me in terms of the holier than thou attitude I mentioned earlier.

> I consider the role that good manners might play in the sphere of rat-eating

This really seems to be her placing herself morally above others through being tolerant and caring, which ultimately helps nobody. I'm reminded of a quote from one of Term Pratchett's books, "[i]f civilization were to collapse totally and the survivors were reduced to eating cockroaches, Madame Dawning would still use a napkin and look down on people who ate their cockroaches the wrong way around."

Ultimately this smacks of the sorts of idealised view of civilised behaviour which pervaded the British Empire, and ultimately did terrible things when they met another culture. This seems to be an attempt to rationalise retaining the customs of that era without the social classes that came with it.

[1] https://xkcd.com/1227/

[2] https://web.archive.org/web/20170412021638/https://www.reddi... (go to the fourth comment from the top)
Who defines who is a nazi in the modern day? How is Charles Murray a Nazi in any way? You're comfortable with violent action at the behest of the fuzzy logic of incited mobs?
PCR -- an essential step for all sorts of DNA analysis -- was worth $2B to Roche

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1523369/
Overbooked flight on Delta? You now could get nearly $10000 to give up your seat
This is actually a very cool idea! I'm collecting some fun projects to teach in my web development classes, and this is a great one since it's quite easy to set up Mailgun to hit an HTTP endpoint with email contents. I think the students will have such a blast seeing their emails show up on a live website.
Haha... I feel like people very often hedge and undermine their own correct argumentation when they differ from something mainstream or powerful.
Anyone claiming that liberalism, left-wing thinking, lacks a potential for violence obviously has little respect for french history.
When I was still in computer vision, "super-resolution" meant taking multiple images and combining them to really be able to see what was in the scene.

Now it often means: take a single image and have the computer guess/make up image content. Not the same at all, IMO. There are worse examples than this, though.
You're spot on. It's a weird response to missing that feeling of community, having something bigger than yourself, being with others (in real life) who share your perspectives and speak the same language. I think this will be the disruptive trend of this century: a surprising and profound reorientation to what is real. I think we're all finding that Social Media is not truly social, and that we hate that our devices addict us and have left us feeling strangely empty. Militias are just the more bizarre first wave of what is to come. Fortunes will be made helping people reconnect with what it means to be alive.
AmiBroker 6.1 Crack with License Key Free Download Get [HERE]
Using it about 10 mins per day. Hacker News is taking much more time.