skysight-inc/HackerNews huggingface dataset:
I'm thinking though that if you talk a fairly large area surrounding a circle, and then randomly selected two points within it. Draw a line between the two points. If the line intersects the circle, calculate the length the length of it's chord. Bigger then sqrt(3) or less get put into bins, and the probability is calculated from there. Obviously this would work better if the area was an infinite plane, but I would expect to see the answer tending to a value as the size of the area increased.

I don't believe that this approach makes any assumptions about the chords that it generates. Here's a ruby snippet that does just that (err, I think!)

plane_size = 10000.0
chords = []

while chords.size < 100
p1 = {}
p2 = {}

p1[:x] = Random.rand(plane_size) - plane_size / 2
p1[:y] = Random.rand(plane_size) - plane_size / 2
p2[:x] = Random.rand(plane_size) - plane_size / 2
p2[:y] = Random.rand(plane_size) - plane_size / 2
puts p1
puts p2
#gradient 'm'
m = (p2[:y] - p1[:y]) / (p2[:x] - p1[:x])
#y = mx + b
# => b = y - mx
b = p2[:y] - m * p2[:x]

#x^2 + y^2 = 1
#sub in y from the line equation
#x^2 + (mx + b) * (mx + b) = 1
#x^2 + m^2x^2 + 2bmx + b^2 = 1
#x^2(1 + m^2) + 2bmx + b^2 - 1 = 0

#apply the quadratic equation to find the roots
#Ax^2 + Bx + C = 0
#=>x = (-B +- sqrt(b^2 - 4AC)) / 2A

#in our case, A = (1 + m^2), B = 2bm, C = b^2 -1
#the line intersects if B^2 -4AC > 0
discriminator = (2 * b * m) * (2 * b * m) - 4 * (1 + m * m) * (b * b - 1)
if discriminator > 0 then
chord1 = {}
chord2 = {}
chord1[:x] = (-2 * b * m + Math.sqrt(discriminator) ) / (2 * (1 + m * m))
chord1[:y] = m * chord1[:x] + b
chord2[:x] = (-2 * b * m - Math.sqrt(discriminator) ) / (2 * (1 + m * m))
chord2[:y] = m * chord2[:x] + b
length = Math.sqrt((chord2[:x] - chord1[:x]) * (chord2[:x] - chord1[:x]) +
(chord2[:y] - chord1[:y]) * (chord2[:y] - chord1[:y]))
chords << length
end
end

smaller = 0
chords.each {|c| smaller += 1 if c < Math.sqrt(3) }
puts "The number of chords smaller than sqrt(3) = #{smaller/100.0}%"

If I believe the result, the real world seems to feel that the answer is 0.5

Edit: Hah! Should have read just a few comments further, and I would have seen some other posts doing exactly the same thing. Good to see we ended up with the same answer :D
Check the website: http://www.helloruby.com/about

I can't find any explicit mention of the Ruby programming language being used as an example, but it's pretty clear that the name of the protagonist is not an accident. The book itself doesn't seem to dive too deeply into actual code, though.
Vector-based graphics in HTML and CSS
Sounds like a hybrid isn't for you, then. The good thing is other manufacturers make pure gasoline or pure electric cars, so there is choice.

For some of us, a plug-in hybrid is a great choice, at least until the range improves on pure electric cars.
One more reason advertisers and publishers need to stop blaming visitors for rising ad blocking usage. Until they come to grips with security and good UX, their arguments of lost revenue continue to fall on deaf ears.
Computer Science from the Bottom Up
Key Indicators on Customer Buying Insights for School Management Software
> As merely a very good developer, management pays better.

There are also more management positions. The parallel track technical positions are significantly more rare, even in the companies that have them.

There is a top to technical positions, the rest is management. You have to choose where you will be happy.
Yes, the fixed price only applies to books published in Germany (even in other languages, if they are directed at the German market).
Nostalgia aside (I spent my childhood in a library) I don't see any value in high street bookstores. Stories like this are sad on a personal level for people involved but they are trying to suggest that we are losing something when we're anything but. My book consumption has quadrupled because of how easy it is to find new books and recommendations online. I am never in a situation where I don't have a book I want to read or I can't get it within 10 minutes.
3 days? I make it 2 weeks in a 20 year old car. Sure, if you're doing a lot of driving it won't last 6 months. But for typical everyday use, I bet that's not an exaggeration (certainly not for my use).
Kay draws a distinction between news and new. A new JavaScript framework is news...a person can explain the idea in 5 minutes or so because it is a normal incremental change. It's incremental because it's projecting normal as the future. Evaluating JavaScript frameworks is exhausting because the differences are mostly mundane, not world wide web versus gopher.
How is it so much trouble? Install postgres & any extensions you use on your dev/test boxes, this is a one-off cost that takes minutes.

Have your test bootstrapper run "createdb somethingunique" and then "export APP_DBCONN_STR='somethingunique'". Adding this to your bootstrapper will take minutes.
It may be total, but there aren't enough resources to process absolutely everything. I'll grant you ISIS, but random shooters? That's hardly a national security threat. When you're running a secret surveillance program you probably don't want to go and tell police about every planned murder you discovered, because at some point people will start asking questions about how you know the things you do (or some Joe Random Officer will decide to disclose your program for a 5 minutes of fame in a late night show interview).

I guess it does work, but they prioritize the threats (possibly still missing some important ones).
We have benchmarked this at our company and notivced that using a ramdisk does not give much extra performance over just turning of synchronous_commit in PostgreSQL. Most of the slowdown from the database turned out to be latency from waiting on the background writer to fsync.
Hitchhiking Robot, Safe in Several Countries, Meets Its End in Philadelphia
I find it a bit telling that neither the paper, the arstechnica nor this article mentions the most common argument against fingerprint attacks are describe in the base rate fallacy.

With 12% false positive rate that the paper mention, you still only need to visit a small number of websites to generate a false positive. I also doubt that the 12% is actually correct in real life circumstances, since the research only tested single traffic flows from clients and many website has JS that trigger simultaneous traffic flows while users browse the web in other tabs.
Will this show a warning?

Yes, because the assignment happens inside a conditional that references a tainted variable.

In the promiscuous world of imperative programming there's millions of ways to introduce dependency that can't be automaticaly checked.

That is not true.

workers/threads doing while() { sleep(), next_letter; }

What is that supposed to achieve?

known seed in one loop depending on tainted data

Every variable assigned to within a "loop depending on tainted data" becomes tainted. Calling rand() doesn't taint the generator. Seeding it within a tainted scope does.

Edit: I was wrong (see below), of course rand() also taints the generator.
ESDoc – A Documentation Generator for JavaScript(ES6)
#ilooklikeanengineer
SEEKING FREELANCER - LONDON

Backend + DevOps AWS dev required - 3D printing CAM Engine start up

We are Betatype, a London based start-up currently developing a Cloud based Computer Assisted Manufacturing (CAM) engine for Metal 3D printing.

As most of the technology is now there we are looking for a AWS DevOps and a backend developer to scale up the computing capability and code our public facing interface .

This is a freelance position which could turn into full time. job for a single person (ideal) or split up between different people.

>> AWS job

DevOps required to build a CPU intensive processing pipeline (not necessarily using AWS data pipeline). Currently alpha version using S3 → Lambda → Beanstalk → S3

Challenges include devising a way of tracking usage per customer and billing them, working with the developer making the customer portal to allow customers to download their own processed files.

>> Backend job

Developer needed to build a a simple customer portal (5/6 pages) with ability to checkout, view current invoices and integrate with billing / download management system integrating with AWS stack

Web framework can be one of: Django (python) Flask (python) Rails (ruby) Express / sails (javascript) Meteor JS

guillaume(AT)betaty(DOT)pe
www.betaty.pe
> what impact did the #occupy movement have on the world order?

Exactly none? People just shouted for a while, maybe burned a few cars, and then they got bored with it. Terror attack on the other hand tend to scare the living shit and every remaining ounce of rational thought out of people. People worldwide supported two wars over 9/11.
EBooks are much cheaper in South america
I was looking for JavaScript Doc Generators and found this fine piece of software!

- Beautiful readable UI (Android docs style)
- Supports ES6 class syntax.
- Generates detailed documentation.
- Measures documentation coverage.
- Integrate test codes into documentation.
- Loot at sources from browser.
- Gulp Plugin (https://www.npmjs.com/package/gulp-esdoc)
The Mac OS System 7.1 source code was leaked a few years back.
IKEA has plenty of solid wood furniture, but style-wise these items are very different from the fiberwood crap.
HitchBOT – A robot exploring the world
World's coolest bookstores
I find this most dramatic with Barnes & Nobles. The store price is significantly higher than .com price, making it real hard to justify buying something of a shelf when the pricing differential makes it seem B&N is begging me to buy online instead. I'll often banter with the staff a la "this is $60, but you've got it for $40 on your website - I'd really rather buy it here to support the brick-and-mortar store, can't I get some discount like $10 off? No? Really?" and then end up ordering it from Amazon because it's cheaper still, free shipping, extra credit-card rewards points, a cut goes to a favorite charity (http://smile.amazon.com people!), and get some bonus back for opting for delayed delivery.

Physical stores are increasingly just museums to me: a place to spend time looking at interesting things.
HitchBOT, the hitchhiking robot, gets beheaded in Philadelphia
What sort of constraints do you have that your dev environment can't be a VM running the same software as production?
Should've been called Diatomic!
The company where I work has the parallel career paths, but like you say, has a much higher proportion of managers at the higher levels.

In my view, money and advancement have to be part of the motivation for becoming a manager. Otherwise, it's too stressful and boring, and nobody would do it. My evidence is that every person who has joined management at the lowest rung, where the work is the most boring and unrewarding, has been somebody with a family to support.
Can only paraphrase Henry Ford here: You can have any colour as long as it's black.
SEEKING FREELANCER - LONDON / REMOTE

Backend + DevOps AWS dev required - 3D printing CAM Engine start up

We are Betatype, a London based start-up currently developing a Cloud based Computer Assisted Manufacturing (CAM) engine for Metal 3D printing.

As most of the technology is now there we are looking for a AWS DevOps and a backend developer to scale up the computing capability and code our public facing interface .

This is a freelance position which could turn into full time. job for a single person (ideal) or split up between different people.

>> AWS job

DevOps required to build a CPU intensive processing pipeline (not necessarily using AWS data pipeline). Currently alpha version using S3 → Lambda → Beanstalk → S3

Challenges include devising a way of tracking usage per customer and billing them, working with the developer making the customer portal to allow customers to download their own processed files.

>> Backend job

Developer needed to build a a simple customer portal (5/6 pages) with ability to checkout, view current invoices and integrate with billing / download management system integrating with AWS stack

Web framework can be one of: Django (python) Flask (python) Rails (ruby) Express / sails (javascript) Meteor JS

guillaume(AT)betaty(DOT)pe

www.betaty.pe
Thank you!

Very interesting article. But I wonder, can these four questions really capture the performance of employees? It seems better than many systems but perhaps it is too narrowly focused.
Or a wife/husband?
Great! Is there a similar list for other countries? Is India special in this regard?
Introducing Turku: Cloud-Friendly Backups for Your Infrastructure
How to stop a leak – the WebRTC notifier
An Ex-Cop's War on Lie Detectors
That is more than a book a day. Unless you work as a editor or not work at all I can't see how that's possible but I have no reason not to believe you so what's your secret?
I've removed Flash entirely from my computers. I was afraid that it would degrade my experience, but I'm barely missing it.

Sure there are a few sites that insist on using flash for video or some old games, but I'm ok with that sacrifice.

Flash has been a tool of evil for too long: either storing permanent cookies for tracking or as a tool to exploit vulnerabilities in itself or its host.

There is nothing on the web today that should require flash. Using it for adverts is especially egregious considering that it remains a major vector of attack despite all attempts at fixing it.
I will tell a story that I think is very strange.

Last year I worked at a small startup that was focused on medical records. They used PostGres in production, but SQLLite in development. The frontend was pure AngularJS. They had a massive Python code base for pulling data from the database, turning it into JSON, and then sending it to the frontend.

But then things began to change.

PostGreSQL gained the ability to handle JSON natively. We began the preliminary process of switching over to use that ability. It would mean less work for the Python code.

Here is where it got strange: some of the team was so deeply committed to using SQLLite, that they began hacking SQLLite to add the ability of SQLLite to handle JSON natively. That is, any feature that PostGreSQL had, which we used, they wanted SQLLite to have.

On the one hand, the technology they developed was amazingly cool. On the other hand, it was a massive effort that had nothing to do with the goals of the startup.

I could not fathom why we didn't simply use PostGreSQL in both development and production.
PostgreSQL will be close enough to an in memory database if you turn off synchronous_commit. For most test ssuties I would suspect much more time will be spent plannign the queries (which can be improved with prepared staatments) than the time spent on disk IO if you just reduce the durability requirements of your test database.
Bad robot
That's a really good question
It's not really so strange. A common theme I've seen on kickstarter projects is that they come up with product Z. They find a supplier in China who gives them quote X. But they will also need some money for themselves (not being greedy but just a living wage so they can quit their jobs and work on this full time) so we will call that Y.

However, after they collect the money the supplier says - actually it will cost X+N dollars. (X+N) + Y > the kickstarter amount. Perhaps they also found other issues which will cost extra money (perhaps needing to hire another developer).
Gotta love the people downvoting you without thinking twice.
> If you often use the gas engine, you are wasting gas hauling around extra-large batteries

... but batteries can still provide lot of gas-free kilometers before becoming a dead weight, making big contribution to your mpg.
I've had quite a lot of good furniture from there, which has lasted more than a decade. I think they carry crap and they carry things which are well made and well designed.

There does recently seem to be more crap, though. I tried to buy a floor lamp from there a couple of months ago, and they seemed to be basically not charging enough to be able to make their designs to a decent standard. If you're going to make a floor lamp for £30-40, just make it simple, don't put in a lot of hinges which aren't properly secured or balanced, or snake-like fittings which make loud groaning noises every time they are moved. Ironically I got something less ambitious and better designed from the local anonymous hardware store. Disappointing to see a company like IKEA which is supposed to be all about thought-out industrial design making mistakes like that.
While owning real estate would be nice, I'm not too interested in becoming a landlord.

I see the wisdom in your advice (this country was founded and continues to thrive on strong property rights) I just don't think the tradeoff of my time and energy managing a household would justify whatever rent I could pull in from a 2-3 bedroom in Somerville MA, Silverlake CA, Austin TX, Oakland CA, or Queens NY.
TabTale is Hiring "Unity Developers" and "iOS Developers" in : Las Vegas/Serbia/China. Please send you CV to: jobs@tabtale.com.
The job description is attached.

Unity Developer position:
TabTale is looking for an experience Unity Game Developer to join our Game Development studio in Serbia. The developer will be part of Tabtale’s international Unity platform team. Developing new feature for all Tabtale’s games, working directly with the Israel’s core platform team and supporting all Tabtale’s international studios from China to the U.S.
Requirements:
Minimum 2 years of experience in developing Android/iOS mobile apps in both 2D and 3D – games are a plus!
Excellent knowledge of Unity3D and C# scripting, textures, animation, GUI styles, user session management, statistical analyses.
Direct experience with game logic, particle systems, client-server communication scripting, big data collection.
Self-motivated with a strong desire to learn and stay-up-to date with game developments/standards.
Excellent oral and written English communication skills.

iOS Developer position:
TabTale, one of the most promising startups in Israel, is building a new team and seeking for ninja IOS Developers in Serbia!
If you are interested in building a platform for hundreds of millions of users, working on fabulous games, learning new and exciting technologies and most important- working with great talented people like you, ping us today and develop the technology of tomorrow!
Team tech stack:
Objective C, Swift.
Requirements:
3+ years of experience in Objective C.
Excellent knowledge in working with REST API.
Experience in Swift – Advantage!
Experience in OpenGL – Advantage!
and this should be reason enough to block all ads that require code to run in the browser, in one form or another.
erm. why are you even using a pointer if its not late-binding?

this is what static, stack, scopes and global variables are for with references as needed...
C++ Internals: STL Vector, Part II
> I don't understand the argument against this

Write only pure, portable SQL. Using RDBMS extensions is evil. Enligtenment only comes to those who are pure(ly using SQL).
Your "OOP sense" is exactly what I meant about confusing things with computer science jargon. To a beginner, treating objects as structs with functions is all they need to know.
I drink quite rarely myself. I've purchased two bottles of wine since January of last year.

I reserve drinking wine to extremely special occasions, so I stick with wines that I know I love or were recommended by a trusted third party (I have a brother-in-law who's a wine geek/knows my tastes). As a result, the last two bottles I purchased were Mollydooker's Blue Eyed Boy (at $36 -- normally this runs $45, but for some reason the Costco in Ann Arbor, MI has it for an exceptionally low price) and Mollydooker's Carnival of Love (at ~$100). I wouldn't buy the latter again. Though it was great, paying $100 for a glass of wine is hard to stomach and I won't drink re-corked wine (no device I've tried is capable of preserving wine in a way that makes me want to drink it the next day).

To specifically answer: once per year, and I'm willing to spend up to $50 since it's such a rare indulgence. That said, a decade ago I could find wines that I enjoyed for around $15-$20 USD and purchased a bottle about twice a month.

(and yes, those are accurate numbers -- no need to multiply by 7 due to people normally under-reporting the amount that they drink)
Sadly not, since there are many cases where databases act differently. For example SQLite is dynamically typed while other databases enforce the types of columns. An ORM protect against some common cases, but not against all the subtle differences between databases.
It's Adobe's implementation that's the problem, not the concept.

I think it's better as a plugin because then you get to easily enable/disable it (off by default is good) and the browser can also isolate it; something not so easily done for built-ins like JS.
Location: Los Angeles, CA

Remote: Yes

Willing to Relocate: No

Technologies: AngularJS, HTML, CSS, NodeJS, Java, Ionic (Hybrid Mobile)

Résumé/CV/Portfolio: www.euphonialabs.com

Email: euphonialabs@gmail.com

Night-time Hobby: https://youtu.be/ldunlyc1IHM
I use Develop and Debug Chrome Apps & Extensions to see if an Extension does malicious stuff.

https://chrome.google.com/webstore/detail/chrome-apps-extens...

Click on behavior to see the history or look at realtime stuff from extensions or apps. Requests and access(!) get recorded. It shows privacy-related history and the extension is from google.
Wicked Awesome Startup People
How we manage web projects
ICG Announces Call for Public Comment on IANA Stewardship Transition Proposal
It's a stupid comment and deserves downvotes.
Are you equally as uncomfortable with libraries?
Yes, that's the one. Seems like a storm in a teacup now.
> When you are using an ORM, most of the arguments are obsolete, too.

At the cost of pretty much everything you get out of using something that isn't SQLite.
Free Cross-Platform UI Kit from InVision
"The ideal economic or GDP hero is a chain-smoking terminal cancer patient going through an expensive divorce whose car is totalled in a 20-car pileup, while munching on fast-take-out-food and chatting on a cell phone. All add to GDP growth. The GDP villain is non-smoking, eats home-cooked wholesome meals and cycles to work."

-- Mark Anielski

Something to remember when you next start going on about "real value".
Someone actually understands. I try to explain this to people, but they just don't get it. Not that it matters. It will never happen.
A transpiler is a compiler that will transform a high level language into another high level language. Examples: Coffeescript, Sass, this thing.

Compiling is a more generic term that includes transpiling, but is usually used to mean the kind that transforms into assembly/bytecode/executables.

Edit: Since I have no interest in furthering a thread on a legitimate question, let me just answer to the replies here: There is no reason to make the difference other than pickiness, and there is no legitimate claim as to what is or isn't high level. Use your common sense, computers don't care whether it's a transpiler or compiler.
Rasky, Rpi2 based KVM over IP new side goal: complete FLOSS development workflow
>GDP is a (attempted) measurement of economic value-add. I cannot think of a better definition of productivity in the context of this conversation
>Feel free to provide a better measurement if you have one.

HDI
There's nothing irrationale about that. One disadvantage of the battery technology is that "half-filling" a battery doesn't half its weight. A Tesla-sized battery pack for 100 km daily trip wastes lot of energy (several hunders of kilograms of dead weight, even regenerative brakes cannot recovery all the kinetic energy.)
How Does Your Cyber Security Measure Up?
Discover Ember – A new online course for newbies who want to learn Ember
What is wrong with voicemail? Are the conversations too long?
11 Types of Employees You See in Every Tech Company