skysight-inc/HackerNews huggingface dataset:
Ask HN: Where do you share your technical blog-posts?
Hi,

I started slowly writing a blog, with various, mostly technical articles about things that interest me. I don't write often and the topics can be all over the place, from attempts at applicative functor in python to opinions on jenkins configuration.

I just don't really know where to share it. I don't have twitter followers and I don't think show-hn is meant for blogposts.

So what do you do? Reddit? Better ceo?

Thanks for suggestions!

Ps: the blog in question is notes.asaleh.net
WebAssembly: Elastic Man (Rick and Morty)
Indeed! They are usually my preferred why of interacting with the DB when the queries are complex or hold a good amount of logic.

Add user-defined table types used as parameters and you've got a good way to pass batches of data too.
Org.­springframework.­util.­ConcurrentReferenceHashMap is not thread-safe
WatchOS 4 Tutorial Part 1: Getting Started
The key is don't go to meetups to meet people. Go because you want to participate in the shared activity every week/month.
See also the Albanian tradition of Kanun [1,2] for an example of what happens when a society gets trapped in this kind of moral tar pit.

[1] http://www.aljazeera.com/indepth/features/2016/03/albania-da...

[2] https://en.wikipedia.org/wiki/Kanun_(Albania)
> Did anybody liked writing data migration? Try explaining value of table migration to some Product Manager of early startup :-).

data integrity isn't good enough for a product manager? It's like saying "statically typed languages aren't worth the effort, do everything in JavaScript".

Furthermore, MongoDB or not, an application in development needs DB migrations. I don't believe one second you can change all your classes or structs and pretend like MongoDB will magically update your previous documents and collections to the current state of your application.
A reminder about “event” markup
And yet they continue to go from strength to strength. I think you're right, and that the logical outcome should be poor company performance, but clearly that's not the case.
evilwm is great! the neat interface creates quite a stir in my lab
Here is a another infinite city written in a WebGL shader. https://www.shadertoy.com/view/XsBSRG

All the calculations are done on a per-pixel basis, there are no polygons or other objects created. The city is a 3d scalar field with effectively an isosurface plotted.

The city is made infinite with a simple modulo operation in X-Y on the field.

Interesting to note in this technique there is no additional computational load associated with more visible objects, and there can be as many objects as pixels.
> The biggest thing MongoDB got right was putting developer first, optimize for initial experience and development speed.

That's absolutely true, but this is also what gave it a bad rep. It put security on the back-seat, and since it's "convenient" and just REST, it allows for moronic stuff like talking to your database straight from a client's web-browser. Security as an afterthought promotes bad or inexperienced developers to do silly stuff, and since MongoDB focuses primarily on web applications - that is a really really bad thing. How many leaks have there been simply because the database was exposed to the public internet without any authentication? Too many.

Now the problem is that inexperienced devs will flock to something that makes it that easy, and there's no real way of preventing that, but developers should never be put first - it leads to lazy solutions and compromises on too many other levels.
Credit cards are more like a delayed bill than debt, if you pay off the amount in full every month (and I don't know why you wouldn't, credit cards are a poor way to borrow money).
Attorneys fees and costs are usually awarded in addition to whatever damages are allowed, so shouldn't be considered against the damage award.
What do you think? are ICOs just hype?
What Happens to Your Brain When You Stop Exercising?
I use a Revolut card for this purpose. Pre-pay the card, pay the amount required. Also benefit from interbank rates for foreign transactions. Also means that if the card details are stolen from the merchant or processor, or are stolen in transit, all they have is a prepay account number with a $0 balance 99.999% of the time. If they get my checking account debit card number, they could easily take dozens of dollars on any given day. Dozens!
Destiny 2 misrepresented XP gains to its players until the devs got caught
Maybe they are selling that type of pizza only in regions where the recommendation is not mandatory? Just guessing.
Npm v5.6.0 (2017-11-27)
I know what property based testing is. And it's not a substitute for unit testing. It's basically just a way of generating many tests from a single test template and is an alternative to example based testing. But it doesn't relate to what code you're testing, so what you're describing is still an integration test which serves a much different purpose from unit testing. Again, I think you just haven't had enough experience with unit testing and had that "aha" moment yet. It's not that I don't understand your point, I just doubt you have enough experience in testing strategies because you're trying to compare two things that aren't comparable. If I suggested your code use a function instead of a queue, you'd think I was ignorant and inexperienced because you can't replace a queue with a function...they're not concepts that can be swapped for one another. You suggesting property based testing instead of unit testing is likewise nonsensical. Unit testing and integration testing are different concepts of the same type. They cover what code gets tested. Property based testing is one of many strategies (example based testing, mutation testing, etc) that cover how code gets tested.

Choosing to write unit tests instead of integration tests does not preclude the use of property based testing or any other technique that covers how you test code. As I stated before, if you were to use property based testing at the unit test level, it would be all the more powerful because you'd get that same exponential coverage just with significantly larger number of effective tests per unit of code. From the A, B, C dependency graph example, if you used property based testing to test A thousands of times, B thousands of times and C thousands of times, you'd effectively be testing thousands times thousands times thousands (aka billions) of different scenarios. And you'd still be able to use mocks because mocks are created in test code and can be as dynamic as you need them to be.

I've done testing in many languages, both static and dynamic. Dynamic languages, thanks to the lack of static type checking, often don't need a mocking framework because the language is flexible enough that you can swap in a mock-like object at runtime. But the concepts are the same. And there really is a ton of value in testing code you've written in isolation. It's the testing equivalent of separation of concerns. And just like some developers never grok the single responsibility principle, some developers never grok the need to test code in isolation. You've obviously understood how to encapsulate your concerns based on the design you implemented. And yet the testing strategy you described is the opposite...trying to test everything at once rather than focusing on each test covering one specific bit of code.
I do not agree much with this conclusion. If you can't measure very well, the safe bet is to disable THP because they are capable of improving of a given percentage the performance on certain use cases, but can totally destroy other use cases. So when there is not enough information the potential gain/lose ratio is terrible... So I would say "blindly disable THP", unless you can really go to use-case-specific costly measurement activities and are able to prove yourself that in your use case THP are beneficial.
Opening in incognito mode works. Sites like these are pushing us to do our entire web experience in incognito mode.
Online Practice Interviews with Experts
Running a Bitcoin full node on $5 a month
Packt DataHub – Daily news, insights and tutorials for the data science community
No ICO is ever sold as investment (as far as I know). In a many cases they explicitly say that the tokens are completely useless to not get in trouble with the regulators. For example:

"The EOS Tokens do not have any rights, uses, purpose, attributes, functionalities or features, express or implied, including, without limitation, any uses, purpose, attributes, functionalities or features on the EOS Platform."

It's (almost) impossible to find words like "invest" or "investment" on ICO websites or white papers.
Künstliche Intelligenz Und Maschinelles Lernen
A delayed bill is a debt, so it's impossible for something to be more like a delayed bill than debt.

They are also often the best method consumers have to borrow money for many purposes.
Lyme doesn't fit the symptoms very well, though not completely out of the question.

Lactose intolerance is a possibility too, it's on our long list of the things to eliminate. I'm going to quit milk based products today.
Instead write a micro service on top of it that holds all the domain knowledge about how the data is structured in the storage layer? Stored procedures are not necessarily business logic, they can be an abstraction layer over the underlying structure, so yes, that can quite well make sense to place it in the DB.
Because the risk of being out of pocket for a period of time is higher with debit cards than credit cards.

If you just think of your credit card as a delayed bill, where you can quibble over charges trivially, they're not like debt at all. Always pay off in full every month, automatically.
Firefox Debugger
Stratasys announces 3D-printed human hearts and bones for medical device testing
Opt out. Nobody is forcing you to use Facebook. If you think it’s poison, don’t use it. The rest of the Internet is still here, trust me!
This reminds me of Guarded Dependent Type theory, which isn't about stream programming, but has the same dimension analysis built into it.

Guarded Dependent Type Theory (GDTT) has dimensions (called clocks), fby/sby (called later), clock quantification (to introduce new dimensions), and dimension analysis built into the type system in the form of "clocked universes" (type universes which depend on clocks). The latter is required for the semantics to make sense, but it also allows an implementation without implicit caching. In particular, GDTT does not have an analogue of first for all types, but only for those types which don't themselves depend on the clock parameter and this requires clock dependence to be tracked in the type system.

Maybe not so interesting for stream processing as is, but it could probably be extended along those lines...
The Silicon Valley Founder with a Pocket Full of Visas
They don't sell a small-size Deep Dish or Brooklyn.
Using something else does potentially widen the audience. Being able to compile/run on a variety of platforms alone has value.
Donald Knuth’s 80th birthday will be celebrated by two events in Piteå, Sweden
> NGS on the other side is more or less a gradual development.

While true that’s not really relevant. What’s relevant is that it has completely revolutionised biomedical research. And although CRISPR has the potential of doing the same, it’s just telling that RNA-seq (and related technologies) have become so routine that they’ve effectively spawned new fields of research. Together with WGS (and preceded by microarrays), the new sequencing technologies have led to a revolution of how science is done: because most of the science here is done at a computer. CRISPR, by contrast, is “merely” a new molecular biology tool. A very powerful, for sure, and one that opens up completely new avenues of research. But it doesn’t fundamentally change the way we do science. NGS has.
IIRC, there was an interesting article posted here on HN about the history of FireWire. It sounded like an interesting piece of technology, but various circumstances prevented it ever becoming the big success it could have been.

I feel the same thing is repeating with Thunderbolt.

It's kind of funny/sad because neither technology is strictly tied to Apple machines - I had a work laptop (Dell Latitude D630) with a Firewire port. One of our CAD workstations has Thunderbolt on board (but, sadly no actual port).

But there were almost no peripherals to support it. The only person I ever saw using Firewire used it to transfer digital video from their camera to their PC.
And yet they built Lightsail instead of fixing Beanstalk to actually compete with GAE/Heroku. The mind reels.
Tiling WMs like i3 or xmonad are great. Xmonad can run under GNOME, making it easier to set up.

https://wiki.haskell.org/Xmonad/Using_xmonad_in_Gnome
Can't share cat gifs with a fusion reactor.
Checkmate
I was pleasantly surprised to see vehicles stopping for each other!
#1 is at least very familiar today. It's a trait of a narcissist. 2017 should really be the year of narcissism awareness. Suddenly it's a disorder that affects us all.
as long as they appreciate their complaining will come to nowt, do it as much as they like
Problem with these things is you can make yourself out to be not welcome despite best efforts, some attendees are utterly hopeless / shameless that they'll decline any offer of drink (soft drink or otherwise), demand free tap water, speak like shit to staff (grunt with no thanks or please), leave no tips, sneak their own beverages in, complain wifi is slow and so on. I wouldn't host an event in a bar unless I knew the people attending, you're judge by your company after-all and if you want to come again then bringing shameless mingebag joe no manners is not a good idea. Note: this shitty behavior isn't isolated to tech groups, bridge groups and other card game groups are apparently worse that they now have to rent out community centres.
I've been through a similar experience to what you've described, starting a bit over 10 years ago. It took till about 5-6 years ago to find useful answers and beneficial treatments. It's taken till the past 2-3 years for real recovery to happen, and it's still ongoing. Meditation has been one item in my tool kit, but several other practices have beneficial too (some mainstream, some heterodox, some physical/medicinal/nutritional, some emotional).

After 10+ years of working with this stuff in myself and others, I've learned to be very careful about what practices to undertake and what advice to offer others, so I won't share anything more here, but feel free to email me (address in profile) if you want some pointers.
Yes, of course the rich are going to end up paying for BI no matter what. At some point the government is just taking $1000 out of your wallet and handing it back as BI, depending on your income.

But this is explicitly what the proponents of BI want. It's as much about the optics as who pays for it. I.e. the idea is to create a program that draws its political support from everyone getting paid a check, similar to how Roosevelt enacted social security to include all citizens, even those who were millionaires and had no need for it.

Which is what sets it apart from Negative Income Tax.
I believe the authors point is that you have to use SQLAlchemy for that experience. Natively, the experience is much harder and that's why ORMs (like SQLALchemy) have been built. In MongoDB, the driver matches the command line interface 1-1, there is no need for a higher level wrapper so that you can use your database.
yes.. but a bond issuance on the internet!!!
I work in a building with two cores each with 5 elevator shafts, and two elevators per shaft. Sometimes the top elevator can't go down because the bottom elevator is just below it. Having an elevator able to overtake the other would be very nice.

Also, you could use one shaft for going up and another for going down. I definitely see the usefulness here.
People often say that one should learn Lisp/Prolog/Haskell to become a better programmer. Lucid and Multidimensional Lucid should definitely be added to that list. It just reconfigure your brain around loops and iteration spaces.
You don't use a single supermagnet at the top of the shaft, you use lots of magnets all along the sides of the shaft. Think maglev. Or maybe railgun, for a slightly less pleasant mental image.
I suppose anecdote is not the singular of data. But my family, friends and I have largely rejected e-books based on price. I read a lot.
I would say that almost all VC money goes towards executing various predatory strategies.

VCs have a monopoly over user attention through their connections to industry influencers. They essentially control all the tech blogs and media channels and they use them to drive traffic to companies that they have invested in.

Bloggers are rewarded for doing writeups on VC-backed startups and they are punished for doing writeups on bootstrapped startups.

VCs also drive up online advertising prices to make it not viable for small players to compete based on CPC.

Finally, VCs have a monopoly over acquisition channels within most large corporations so they can make sure that your startup will never be acquired by a large corporation unless you accept VC funding.

For the last decade, the tech industry has been ripe with corruption and injustice. That's why we have cryptocurrencies now, it's a desperate solution to allow people to sidestep the entirety of the existing system.
Is Singapore a 3rd world country?
What stock?
I guess you will be able to invest into SpaceX via Gigafund eventually.
You wouldn't expect someone to have the same name as the thing in their heart though, would you?
Economist authors have always been big on puns and word play. It's one of the newspaper's quirky charms (as is its instance on calling itself a newspaper and not a magazine).
This is my site

https://aicochow.github.io/vpn/
What you describe is the state of affairs before Rupert Murdoch purchases the paper.
I have read most of the comments. I find myself chuckling at the memory of people telling me that using cwm with X is too...whatever. I haven't had to change my workflow for something like eight years and it's still being developed with incremental improvements. I don't understand the desire to constantly mess with the dashboard when all I want to do is drive the car.
orthogonally, templates are also implicitly inline.

Then again, inline does not mean what most people think.
Very interesting, do you have a blog post about this?
If I run this in C#; it truncates to 6 and not 7... does C do an implicit round?

Broken down, you get this:

int toTest = 128;
var div = toTest / 3;
var sqrt = Math.Sqrt(div);
var logSqrt = Math.Log(sqrt);
var log2 = Math.Log(2);
var logDiv = logSqrt / log2;
var pow = Math.Pow(2, logDiv);
var result = pow * pow * 3;

int result2 = (int)Math.Pow(2, Math.Log(Math.Sqrt(128 / 3)) / Math.Log(2));
int total = result2 * result2 * 3;

this	{Clusters.DAL.Tests.UtilitiesTests}	Clusters.DAL.Tests.UtilitiesTests
toTest	128	int
div	42	int
sqrt	6.48074069840786	double
logSqrt	1.8688348091416842	double
log2	0.69314718055994529	double
logDiv	2.6961587113893803	double
pow	6.4807406984078613	double
result	126.00000000000004	double
result2	6	int
total	108	int
Thank you for your detailed opinion
Project Malmo
Automation, templating, and and knowing when to ask for help.

1. Automation
I automate provision environments, deployments, tests, and the command line. Pretty much whatever I can in a reasonable amount of time.

2. Templating
I have a few project templates that already have the above automations scoped out. My ci/cd script, a makefile with common tasks, dockerfile skeleton, sensible playbooks. This lives in a skeleton git repo and cookiecutter.

3. Asking for help
I'm active on stackoverflow ,various slack communities and mailing lists. This is critical in moving my work along at a healthy clip. There is a lot to be said for figuring it out on your own, but I'm more concerned with delivering value than being academic or pedantic about my implementation.

These are the skills and behaviors I try to hire for and the ones I try to have for myself.
"Did anybody liked writing data migration? Try explaining value of table migration to some Product Manager of early startup :-)."

People are so spoiled this days. What is so hard in writing table migration, it is like a few minutes of your time. And why would some non techy product manager even know that you wrote some migration sql file. It is a minuscule technical detail related to the chosen technology and he will not see any repercussion in the production. But try to explain to him why after some reckless sprints you got many inconsistencies in the user facing app which you will have if you abuse "schemaless" NoSQL but use implicit schemas which change over time without proper checks. And if my product manager will push just for initial speed all the time without 0 time for some basic architecture (and I mean really basic), engineering practices and such, you know really useful stuff, I would leave that place without second thought. It is digging it`s own hole from the beginning.

And what is the problem of data migrations? Implicit schemas in MongoDB are much worse of a problem when your data requirements change. With relational databases you at least have integrity checks on the DB level that guard you from much of the possible problems when doing such migrations.
If you have bbq sauce on a small pizza (who eats a small pizza?) you already have 22 grams, add some ingredients and you get another couple of grams making a woman pass her daily allowed intake for added sugar (25 grams [0]). That means you shouldn't have any desert or soft drinks with it. No cereal that day, no muffin, nothing.

Actually, a medium pizza crust + bbq sauce puts even a man over his limit of 30 grams per day. For a large pizza? Better not eat any bbq sauce at all.

[0] https://www.healthline.com/nutrition/how-much-sugar-per-day
F1 2017 is not a simulator. It is a okay game, that lacks some love (presentation and menu is boring and lackluster). I fondly remember Grand Prix 1-4 games, that at least realistically represented everything going on in Formula 1 and had quite realistic physics, etc for their time. Unfortunately the last Codemasters game that were awesome and really polished were GRID 1 and DiRT 2. Now Codemasters owns the DriveClub devs, I hope we see a new polished game from them again.
Well, the headline rhymes, which is clever, and maybe a bit too on the nose, but...

> "Mr Vollaard’s study has blown the lid off the sealed world of Dutch herring. Fishmongers who long suspected the judge of bias towards Atlantic now say the test is rotten."

No puns there.

> "But the charges of belangenverstrengeling (conflict of interest) have left the test’s reputation for impartiality gutted."

Wait, is the definition of "pun" just that you're using words with a double meaning? Rhyming "funny" in place of the original word isn't the main example of the art?

> "No food is more loved."

Okay, I haven't been to the Netherlands in like 400 years, but I know this isn't true.
No. They are talking about enforcing uniqueness on a particular column.

Nothing to do with the primary key and yes it is definitely rare in the NoSQL world.
It is very strange. It seems to have a lot of Unity shader code in it. Much of it verbatim from Unity's source code.

But the rest of it is Three.JS. Thus were the assets created in Unity and someone copied the shader code to ensure that they render the same in ThreeJS as in Unity? I am a little confused.
Maybe an entry fee that buys you your first drink would help for the first problem at least
> Vendetta is obviously bad.

That depends on the value system. When human life is worth less than retaining honour, then killing by vendetta is obviously desirable and good for thar society.