skysight-inc/HackerNews huggingface dataset:
Well yes, that's an example that's relying on the find utility, for which the equivalent in the windows world (at least for file management) is robocopy.

robocopy /r $pathFrom $pathTo *.html

If you wanted to exclude say 'main.js' then it'd be:

robocopy /r $pathFrom $pathTo *.html /xf main.js

..and /xd is for excluding directories too.

I guess copy-item should be smarter to be able to handle this.

Also, for what it's worth, your example in the linked post is a bit more verbose than it really needs to be.
You're comparing a full-up programming language to nant there. So yeah, it's a bit more verbose there. But I bet I can come up with a counter-example where nant is a giant nightmare to get right (or requires just dropping straight to executing external commands) (There's a reason I've killed off all usage of nant years ago, and gone to powershell for build scripts)
I think it may be possible due to sharing of Google infrastructure that Google App Engine apps (what Snapchat runs on) are automatically blocked in China. This trick allowed Whatsapp to spoof censorship recently by feigning a connection to Google.com while truly connecting to an App Engine hosted proxy.
Snaps can now export libraries, so you can get a shared Qt framework for example if you don't want to bundle that. Up to you how much you trust the library snap publisher not to break you.
Report: Congressional analysts worry SpaceX engines are prone to cracks
It's part A - Google's cloud infrastructure isn't even resolvable in China.
I am bit wary of the idea, despite the fair intentions, but Google in particular tends to view anything remotely close to 'improving' search ranking using 3rd party 'software', as a threat to their own Ego-rithms.
What career are you in?
so one person for every line of code. nice. (..I hope this comment does not wipe out all my karma on hn...)
While it's true the current culture is particularly hostile to math incline people, I must also say that, by nature, people good at solving problem with perfect solutions are not good at integrating in an imperfect society.

They bear part of the responsibility.
I don't see any issue in github paying for this page and i don't think, that this page will no longer exists when github decides not to pay for it anymore.

There are enough companies who just overtake. Google, heroku whatever.

But it would probably a good idea to try to help Jim in his work.
You can get the snapcraft.yaml con fig of the app and recreate the snap with your modifications and adaptations.
It's basically scheme with built in probabilistic functions.

If you know scheme or lisp it should be no different than learning to use a few new functions.

If you are not familiar with functional programming you might find it difficult to learn.

I know I found it difficult.
Avoid these accounting mistakes when starting up
But converting electricity to mechanical power isn't 100% effective either, and the weight of the battery affects efficiency too. Petrol is much lighter, and its weight naturally diminishes as it is expended.

So at least for transportation, the breakeven is probably somewhat further than your calculation suggests.
Server-side JavaScript has benefited from "proper" asynchronous programming for quite a while now. Promises (or the slightly more exotic choice of generators + promises) make a very nice asynchronous programming experience.

async/await will surely make that easier but I don't know about "proper", as it would imply that the current solution are mere hacks, which they're not.
I had no problems with the readiness score in ME3 (I did not play multiplayer) or the final ending but the way you get there? Absolutely horrible. In my case I had every fleet (including the geth and the quarian) I had Leviathan, I basically maxed out the game...and the last mission on Earth still sucks. Nothing changed. The same struggle with the same outcome. I actually played through all 3 games last year and despite the fantastic missions and DLCs I just uninstalled when I reached the Earth mission. This is nowhere near as satisfying as the suicide mission in ME2.
The Hidden Costs of Snap’s Employee Shares
Again, not what "tolerant" means.

showing willingness to allow the existence of opinions or behaviour that one does not necessarily agree with.

You don't get to pick and choose individual things to be tolerant of, you don't get to pick a side and then not be tolerant of the other side, that's just not tolerance.

(What you can to, is to pick one side and then be tolerant, to show willingness to accept the existence of the other side, while seeking to change minds on the other side)
It might be possible with a Tango phone.
Hey, I teach SMD soldering to absolute beginners, many of whom have never done ANY electronics. Within an hour and a half they have a working board with "advanced" components like QFNs and 0402 passives attached. Nobody goes without a working board. Only equipment needed is a pair of tweezers, a metal squeegee for paste deposition and a plain off-the-shelf $10 hotplate. No fancy anything. It's not a setup you'd use for high-volume production, but who gives a shit, it's enabling technology for hobbyists to use modern parts. I call it "surface mount electronics assembly for terrified beginners". If you can make it to an event I'm teaching at, I'll give you a free class, as you're EXACTLY the kind of person who would benefit most from seeing that there's a middle way between relying on increasingly unobtainium components and having to have a pile of fancy expensive stuff to be able to work at all.
I think it's the API limit. Last time I tried doing something like this I hit the 250 posts limit.
Transfer learning in ML refers to the general idea of taking a model trained for one domain and applying it to another. However this article seems to only focus on feature mapping, ie. breaking down images into features using hidden layers of ImageNet models. In this case, the pretrained model is only acting as a feature extractor because it is not trained to maximize the embedded distance between the classes you are trying to differentiate.
> Perl is a full blown general purpose programming language with a massive collection of libs and frameworks.

> So Bash is also very powerful with the help from all its friends

> you don't HAVE to code Bash in the most convoluted way possible. Sane code structure and naming goes a long way.

All of these things are also true for Powershell. Powershell can use any .NET Assembly, and if necessary make native windows system calls too if you really want.
LOL. So. Very. True.
Completely anecdotally, almost all of my ongoing car maintenance costs for a 18 year old car I recently sold have been unrelated to the power train. Wheel bearings, steering bushings, brakes.

This is probably in part due to the UK annual inspection which checks all these things and forces you to fix them.

I agree though that pretty much all the catastrophic scrap-the-car failures are power train related. A lot of modern engines are really, really reliable though, so will happily go for hundreds of thousands of miles without issue.
High cohesion and low coupling are good, and easily testable correlates with that, but having lots of unit tests doesn't imply that the code is easily testable, and not having unit tests doesn't imply that code has low cohesion or high coupling. It's even possible code needs many lines of testing partly because it lacks in ease of testing.

In the case of SQLite I think it mostly is because of hard work to fulfill the ambition to deliver a robust project and because of the existence of fuzzing, which can automate test generation.
From zero experience to San Francisco design job in less than 12 months
Adding buffer overflow detection to string functions
Although it is a RoR app you still can cache a lot of thing out of the box. As others have pointed out, just using cloudflare as CDN would already help somewhat.

Recently I've seen a blog post about a company using RoR for generating a completely static website. Unfortunately I can't find it anymore.

The naive approach would be to use "wget -r" a locally running and "rsync" the generated html to the server but there might be some gotchas with that.
> I think there could be some instances where people suggest or build stuff with SQLITE when a more robust database solution is called for.

They do, unfortunately. I inherited a web2py application using SQLite as database. It was maybe OK when the original developer wrote it but it's pretty clear now that we should move to a full fledged database.

There already were "fossil" columns in the database because there is no DROP COLUMN and no RENAME COLUMN. The lack of those basic features greatly hinders development because they must be implemented by creating a new table with the new schema and copying all the data in there. Luckily we can stop production to perform those operations, but the extra developer time means that any of those operations costs an unreasonable amount of money to the customer (compared to ALTER TABLE DROP COLUMN). It's not a surprise that they decided to keep those fossils into the database for now and "we'll see what to do".

Another problem I run into was the typelessness of the storage. Basically SQLite has storage classes and maps SQL types to them (Edit: see the note at the end) I quote https://www.sqlite.org/datatype3.html "The important idea here is that the type is recommended, not required. Any column can still store any type of data" and "If numerical data is inserted into a column with TEXT affinity it is converted into text form before being stored." I won't go into details but I had some fun with dates, stored in different formats in different TEXT fields and even in the same column of the same table, because different versions of a controller had different ideas about how to parse the dates received from the browser.

For these and other reasons we should migrating to PostgreSQL (even MySQL will do). That would mean rewriting parts of the application and testing it all (guess if the original developer wrote any test?) That costs too much upfront so we're sticking with SQLite for the time being, until we hit some showstopper.

At least a problem this application won't ever have is scaling. There will always be one server and one process writing to the database. SQLite is OK in this scenario. A different web app for a different customer (also inherited) is using SQLite and maybe it will have to scale horizontally in the next months. That means we'll have to replace SQLite with PostgreSQL but again, it costs and will do it only when necessary.

TLDR, my suggestion is to never start a web application with SQLite. It's not its natural environment and there is little to gain because setting up a traditional database is not that difficult anyway. Use SQLite only as embedded db for desktop or mobile applications. I wish we had it in the browser too. I'm sorry that https://www.w3.org/TR/webdatabase/ has died. IMHO it was much better than https://www.w3.org/TR/IndexedDB/

Edit: I read once again the page I linked and concluded that this is because of the choice of the developer. He used varchar for some date fields and numerical fields for others. The problems were in the varchar fields. No blame to SQLite here. Still, automatic data conversion is not a good idea for a database IMHO.
It's a shame the v8 5.5 backport (https://github.com/nodejs/node/pull/11029) didn't make it in but it looks like it won't be long.
I think your comment sums up what we have seen happening in general. And it is the physics description of instability - a displacement away from equilibrium pushes the system further from equilibrium.

Is there any way to fix this other than settling at a new, far removed equilibrium point? I think there is, or at least hope there is.
They are not racist and the only turn xenophobic after ME2. The Illusive Man makes you recruit xenos on ME2!
Ask HN: Why is Paypal's 2FA so poorly implemtented?
First of all, I'm not a security expert so I'm talking about the end-user experience.

While trying to enable 2FA for my Paypal account I couldn't find the option in my settings page. This couldn't be true so I googled it.
I found a Paypal page which mentions 2FA via text message and a 3rd party website mentions Symantec's VIP. For both options you'd have to dig into the Paypal site to enable them.

How can it be that a payment gateway of this size makes it this difficult to enable 2FA?

I read that they've had their issues with 2FA but still, this should have been solveed by now.
I'm a recent convert to sqlite - started using it in CLI Go apps as a more robust way of handling large data sets than building my own bespoke in memory databases. It's not often I come across software that impresses and amazes me as much as sqlite does. It's tiny, ridiculously easy to implement, writes 1 flat file, uses comparatively little memory, and is /fast/. I don't even know how they managed to make it so fast given all the other constraints.

Seriously impressive database.
Maybe to display the VSTs. The more recent ones can be quite complex.
Is there a way ppl is reading papers using sci-hub nowadays instead of accessing the official pages (especially students I'd assume)? :)
We do; their coverage of our stock market is often better than the domestic coverage!

On that note, I have a feeling Mobily's stock is about to dip a bit after this article...
Let me just jump in and play devil's advocate here.
Most likely, either the number of posts or the mechanism counting them is capped at 250. Probably the counting system. You'd expect to get slightly less than 250 once in a while, depending on when you counted, if this was measuring real post counts.
Thanks for this write up. I'm not in the ML field, but do follow it a bit and didn't know anything about it.

I also really like your business model. I had argued with potential entrepreneurs and friends that ai is becoming a commodity. However, your business model has a potential for building a network effect of data on top of ai. Presumably becoming more valuable with time.
I do think though, you probably best solve this for a specific vertical first as your go to market strategy.
in case you haven't seen it, The Expanse is the best space opera sci-fi TV since firefly and/or bsg and arguably the best ever.

the books are very good, too.
Yep, I've done something very similar for payment processing (from multiple providers) recently. Have a well defined schema containing the columns that I _know_ I need now for handling a transaction, but also include a jsonb column that stores all of the data that the payment provider provides for the transaction.

For one, this makes debugging easier, and it also means that should business needs change in the future and some field that we've been receiving becomes important for payment processing, it can be extracted from the json field and promoted to a column in the table, without having to _now_ define a load of columns for every possible field that every payment provider can ever supply.
Java mouse-deer
> we shouldn't judge a comment on whether we recognize their username, but rather on quality of content

Ah right, I think I see the nature of our disagreement / misunderstanding. I totally agree with you on the general principle that quality of content should be allowed to stand on its own.

However, I believe that there are things that are context-specific things that the men and women in the arena will face. And these are things that those of us in the stands, however thoughtful and discerning, will never be able to appreciate them, because we simply do not know. (For a great read about this, check out Daniel Ellsberg's message to Henry Kissinger, on the reality of having access to top secret information: http://www.motherjones.com/kevin-drum/2010/02/daniel-ellsber...)

So for example. It seems obvious to me that the top comment is sensible and correct. Snap's CTO or whoever else made that decision is surely very familiar with the costs of being dependent on something like Google. So if they decide to do it anyway, I'm of the opinion that they're quite likely to have done it because of concerns that I am not able to appreciate, because I am not in their context.

Of course, there's a non-zero chance that Snap is making stupid decisions. But I think it's far likelier that they're making decisions that SEEM stupid to a 3rd party, but make perfect sense once you appreciate their context.

I could be wrong about this, of course.
How corporate dark money is taking power on both sides of the Atlantic
>It’s a trait shared by elite families in China, whose high status has persisted since the Mao years.

Well, but that's just about 60 years...
Tech sector begins legal assault on Trump immigration order
Pretty cool idea. When I type in my Github name (queicherius) and choose any year however, "february" shows up twice: http://i.imgur.com/MrI9r6a.png
Quote is from an interview 11 months ago, well before he was Trump's chief strategist.
Sounds fine for people who are resistent to motion sickness.

But, especially in a medical setting, what would they do if the patient became nauseated during surgery? Surely that can't be beneficial.

And lying in bed while all senses tell your body you are stationary and only your eyes say "no, we are actually standing and the world is moving around us" will cause motion sickness. It is a normal response from the body.

So you would be basically switching the sedatives with drugs to combat motion sickness when you want to use VR.
Missed this reply, sorry! It was in this one I think towards the end: https://youtu.be/Jb4prVsXkZU
5 Advantages Offered by Specialized Contact Center Service Providers
The thesis here is essentially that they also got regulated out of exsistance. Seen has centers of criminal activity, local government started mandating the removal of inbound calling capability and reduced the number of permits they granted for pay phone installation.

I'm not sure I totally buy this. How much money did pay phones ever make from telecoms companies, given the degree to which they got vandalized and required regular repair anyway.
Na, I think the real plan starting to unfold. This week we get the new welcome screen, next will be the "deploy to Azure" and "how to make a Windows Store App" sidebar links.

(not that I'll stop using it, I'm sure someone will fork if gets too obnoxious)
Overnight Port of Atom-Beautify from Atom.io to VSCode
I work from home and I voluntarily choosed exactly this setup. Windows desktop and IDE tools are more comfortable, but the "real" software runs on Linux VM.
When it comes to assistive technologies the current legal situation is scary, because data generated and stored by devices you need to use by medical reasons are treated the same way as devices ( and data ) you choose to use.

The more information about you that is available the more likely it is that a spurious correlation, misremembered facts or inferenced made from the data will often make you seem less trustworthy than somebody you have less data about as long as both parties behave according to societal norms.

If you have an actual impairment, especially cognitive, the situation is even worse.
> I'm not sure, but I think that's what fuel tax pays for?

The high taxes on cars and gasoline usually goes to improve public transport.
That really depends on what you consider the best outcome. For me, synthesis was preferable to destroy or control, and was worth the sacrifice of Shepard's life to achieve. It broke the current cycle, prevented future cycles from starting, and preserved the lives of EDI and the geth.
Great letter by a even greater academician Knuth. Kudos to Knuth who started this great movement, which is being pushed further by another great academician Timothy Gowers [1].

It reminds Aaron Schwartz, RIP.

[1] https://gowers.wordpress.com/2012/01/21/elsevier-my-part-in-...
Aaand...the very same security expert wrote this last week:

https://www.troyhunt.com/https-adoption-has-reached-the-tipp...

TL;DR: HTTPS is now workable and affordable.
Woke up, fell out of bed.

Dragged a comb across my head.

Found my way downstairs and drank a cup.

And looking up I noticed I was late.

Found my coat and grabbed my hat.

Made the bus in seconds flat.

Found my way upstairs and had a smoke.

Somebody spoke and I went into a dream.
bullshit

nobody wanted war, we just had different goals
Apple Set to Begin Making iPhones in India by April’s End
Meanwhile similar comments criticizing Trump on ideological grounds are fine...
In fairness, that's pretty much how you are going to have to package a binaries-only software with most package management systems. Install the binaries. Make a package description of those binaries.

It's manifest, by the way.
Here we value good arguments more than authority, I guess.
I don't think anyone is assuming they can't be wrong. I think it's more that the post said this was a bad move "with authority" when you don't have all the information unless you actually were involved with that decision.

It might be a bad move still but we don't have all the information necessary so it's strange to just assume we know better.
mintpress is trash news

Israel is not supporting Jabhat Fateh al-Sham it treats people on the border including fighters in exchange for leaving the syrian druze alone.
Absolutely! I love to read through them on each release to discover whats new. And each time I'm surprised how many new useful things get integrated.
https://www.theguardian.com/technology/1999/jun/23/microsoft...
> The UN actually ruled Zionism a racist institution but now we know you can only be racist if you're a white European.

Yeah that was some deep bullshit by the UN.

They later acknowledged this and took it back
I think that totally underwrites the behavior of Elon Musk how I see it. Even if engineers know better that there are problems with certain design decisions and things have to be redone, Elon overwrites and say: "just do it, we will fix it later." That basically to be able to run its marketing machine that he is the innovative guy.

It is this IT thinking principle of MVP with knowing design flaws. "But we will fix the flaws later." which is different from the engineering principle. In the engineering principle if design flaws become obvious, yes things gets delayed, because it has to be redone to eleminate the design flaws from the beginning. Because we know, things you can fix early may delay, but it is cheap. Things you need to fix later are expansive. Like if your production is set up and running and then you need to change things, you need also to change production.

He has shown this behavior with the Autopilot in the Tesla. Now it also becomes obvious for SpaceX: "Industry officials have known about problems with cracked blades on Falcon 9 versions for many months or even years. But cracks continued to be found during tests as recently as September 2016, Robert Lightfoot, NASA’s acting administrator, confirmed in an interview with The Wall Street Journal earlier this week."
Yes, you can buy a Toyota Mirai in California. Toyota is selling about 100 a month. This includes three years of hydrogen, and they even have some filling stations.
This is the concept of 'Invertible Counterpoint'. Which is the extreme discipline of writing harmonies whos roles can be reversed and still sound good. i.e the bassline becomes the melody vice versa.

http://www.music.ucsb.edu/faculty/rothfarb/courses/103/inver...
I don't see how this is unlocking anything. Google has been doing the same for the past 5 years.
I've used MSDN docs but I wouldn't call that a tutorial :)
It means being able to reach more kinds of orbits, which adds requirements. So does reentry capability. Why add those two sets of requirements to the same vehicle, see?
No most times it wasn't.

Hezbollah basically did their best to provoke a war by kidnapping soldiers.
This is a great fit for IPFS so you don't need central infrastructure
If I am reading this article correctly, it looks like the %/market that Chromebooks have managed to capture in the field of education is large worldwide.

http://www.gartner.com/newsroom/id/3058517
Project Rider?
The data that turned the world upside down