skysight-inc/HackerNews huggingface dataset:
Ask HN: CPAN, npm, PyPi, rubygems, and... the shell?
Hi,

I've a hobby project which I don't know if it makes any sense.

Most people I talk with tell me I'm wrong, but I still use this project when I want to have some fun and relax coding.

Here is a working draft of where I want to go with this:

http://imagebin.org/index.php?mode=image&id=264198

I want to think how we could use github as a backend, for the public "csan" or whatever is the final name, even if the framework itself should work offline too, or from other "repositories"... "spkg" should take multiple sources... local trees, http trees, rsync, git origins, who know what...

By now it generates documentation from the comments (with markdown and a pre/post parser) with a tool (sdoc) to query and display the "doc-comments" of a code base.

I want to add more "development helpers" to "package->publish" bash code.

The screenshot is from a clean draft, The real s::core now has many more modules :)

My question to HN is:

Should I continue with this project? or really nobody could use it as many people tells me?

There are many reasons I've hear...

"Shell scripts are not modular"
"Writting portable shell is very hard"
"http://mywiki.wooledge.org/BashWeaknesses"
etc...
No, some "tried and true" methods of using crypto are in one of Schneier's books, _Practical Cryptography_. _Practical_ is great, but it's not complete, a fact mitigated by the effort Schneier and Furgusen go to in that book to convince people not to write casual crypto.

The methods described in _Applied Cryptography_ are unfortunately well-tried, but few of them are true. _Applied_ is an almanac of cryptographic concepts. Where _Practical_ tries hard to present best practices at every point in the book, _Applied_ instead strives for the broadest coverage; it's a survey, not an instruction guide. Unfortunately for all of us, ~20 years of _Applied_ readers have tried to put directly into practice the material in that book, much of which is (relevant to modern standards) half-baked.

It's also important to know that _Practical_ is also showing its age. There are very common, very serious vulnerabilities that _Practical_ does very little to prevent. For instance, "Design Rule 4" in _Practical_, "The Horton Principle", implies that message authentication should precede encryption. This construction is now disfavored; protocols that use mac-then-encrypt have been broken with side channels abetted by attacker chosen ciphertext.

Other concepts missing from _Practical_: elliptic curve --- particularly given endangered status of RSA, which would be a nit if not for the extremely detailed coverage Schneier gives to more theoretical threats to AES, (EC)DSA parameter tampering, the notion of minimizing randomness from cryptosystems, the modern AE modes, an in-depth treatment of side channels (where "in-depth" might mean "at least as much coverage as is given to the question of what block cipher mode to use") --- particularly error oracles, applications of hash collisions, RSA message formatting (it doesn't even cover OAEP), and secure key derivation.

I write this from a place of love; _Practical Cryptography_ is one of my all-time favorite software security books. It's one of those books you can "read backwards" to learn how to break systems in addition to learning how to build them. With age, though, _Practical_ is becoming more useful as a breaker's guide and less and a builder's guide.

There is no book anywhere that a generalist developer can read to learn how to build a secure cryptosystem from scratch, and generalist developers should be relying instead on high-level libraries like Keyczar and Nacl.

I don't know a think about Satoshi's competence (I couldn't, because nobody knows who he is), but Moxie Marlinspike has spent over 15 years building his competence. If you're Moxie, build whatever you want.
I agree with your malware point. If your system is compromised, and attackers are past the 'airtight hatchway', then you're doomed anyway.
Ask HN: Should a startup CEO should be a leader or a manager?
That is definitely a thing that you don't appreciate until you have to use it. We were on road over the long weekend and were lost with no network connection. Thanks to offline maps on my Lumia 920 I was able to find the nearest road offline and get back on road to our destination.
No he didn't. The national Republican Party is outspoken about raising taxes on lower income people, in "broadening the base". In the election-year expose of Romney's secret fundraising speeches, we learned about "the 49%" of Americans who don't pay taxes. Well, we didn't learn about it, it's a very common trope for conservative politicians.

It's no secret that Republicans largely support "base broadening", as well as less-overt attacks on the finances of the poor like their CURRENT attempts to divorce the farm bill from food stamps, to further cut food stamps.

You're trying to enforce some politically correct echo chamber where a national political party isn't responsible for their votes and their policy.

Republicans are openly for raising taxes on the bottom 50% of Americans, are openly for decreasing wealth transfer like foodstamps, welfare and unemployment, and are openly for lowering (and abolishing) corporate taxes.

Those are their policies and it is utterly and totally fair to state that and reference it.
So, the line of code in the OP that's missing from the LINQ version of the solution is:

Imports System.Linq
What an incredibly privileged and myopic viewpoint. I think I just threw up in my mouth a little bit.
Second "Master Key" Style APK Exploit Is Revealed, Already Patched By Google
That's an interesting question. I wonder if that could be a usable defense. "What did I do wrong? I just thought I was talking to one of those bots, not a real person!"
Probably the "with maximum return to shareholders" part.
> After all, if corporate taxes truly fell on the poor, Republicans wouldn't be for cutting them.

That kind of presupposes that Republicans are all about saving big business and not the poor.

What if Republicans favor cutting corporate taxes because they are regressive, and their support of 'family' values means they want to protect the income and lifestyle of the poor to middle class families that make up the majority of the American voting population?
Oliver Stone on NSA Spying [video]
That was a fun exercise :)

input_string.split(/\W+/).inject(Hash.new(0)) {|acc, w| acc[w] += 1; acc}.sort {|a,b| b.last <=> a.last }[0,10]
I'm not in favor of corporate taxes for practical reasons--I think they're too hard to make work in an international setting. That said, it is not necessarily the case that taxes on corporate profits are passed on to consumers through higher product prices.

At always comes back to prices being the equilibrium of supply and demand. Taxes on corporate profits obviously have no impact on demand, so we must look at supply. Does taxing corporate profits reduce the amount of supply producers are able to put onto the market at a particular price? In a totally competitive market, profits approach a marginal amount and there is very little to tax anyway. So what about not perfectly competitive markets? If you tax Apple 10% of their profits instead of 5%, does that reduce the number of iPhones they are willing to supply at any given price? If taxes are applied uniformly through all industries, so that Apple can't get a lower tax rate by going into a different industry, then not really.

This is of course a very simplistic analysis. You have to consider things like elasticity of demand, etc. But basically, you can't ignore supply and demand. If you raise prices, quantity demanded will go down, and so the profit-maximizing price is not necessarily or even usually one in which the consumer bears the full amount of the tax.
Except you can install Ubuntu on a new Mac.
Is there a way to make the change on an iPhone? Or is that change pointless since you're on an apple product anyways?
Gas explosion causes partial collapse of Lower Manhattan building
While I think this article makes some sweeping generalizations and assumptions, the question it poses is what's important. If we as programmers continue to automate the world (as is our job), and as previous jobs therein are rendered unnecessary, how does one reallocate the workforce? Is the workforce unnecessary at that point?
Interesting, but I'm curious why the author felt the need to include a surprise spoiler to "A Game of Thrones" out of the blue.
There already is a negative income tax. It's called the Earned Income Tax Credit. The only catch on the EITC is that it's based on both income and the number of qualifying children.
Thanks to Edward Snowden, humble typewriter returns to Russian bureaucracy
Too bad that the PAPI was destroyed in the crash, so there's no way to know for sure if it had a problem that let to the crash. But I don't think the pilots of any of the other flights arriving at SFO that day reported anything.
Since we're already on the JVM, here's my solution for Scala:

def top10(s: String) = s.split(' ').groupBy(identity).mapValues(_.size).toList.sortBy(-_._2).take(10).map(_._1)
It's not that simple. Of course, the direct effect of corporate taxes is mostly on the wealthy who own most of the stock but that's not necessarily the group who gets most of the wealth--more on that below. Even in terms of direct payments, wealth isn't the only important factor. As significant is a company's willingness to be creative. I have never seen a corporate tax scheme that's ungamable that doesn't involve giving the IRS more discretion post-hoc in applying the law nor is one feasible in practice given the resources a company tends to devote to minimizing a multi-billion dollar tax bill. So we have the perverse situation where, to a significant degree, tax creativity is a productive economic activity and belief in adhering more closely to the spirit of the law of punished with higher taxes.

As for the economic payers. Consider what happens if we eliminate corporate taxes: The company has more money. It can use that money in three general ways: Lower prices, raise pay or return it to shareholders. In a company with little competition, the optimal calculation is fairly simple. Does the additional return enable new entrants at current prices? Do we have employees who could leave and create competition and to what extent does the additional cash-flow make it more likely? In a competitive environment, the right answer is based on the sensitivity of profit to talent, the sensitivity of talent to pay increases, and the sensitivity of consumers to price decreases.

Given this different factors, what's the empirical answer? It varies based on circumstance and no one can say definitively. Here's an example of one attempt to answer based on variation in European tax rates that suggests that 49% of the taxes are paid by workers: http://www.econstor.eu/bitstream/10419/51691/1/66322666X.pdf. You can find many more papers with different points of view through your favorite search engine.
>You can either give up by selling all your belongings and begin to live on the street as a non-tax paying citizen, or you can do something to stop the things that are taking away your freedoms and liberties, or at the very least, do something to make it harder for those that want to take away your freedoms to do so.

False dichotomy, there are other options that both don't lend any legitimacy to the state and allow you to live a pretty good life these days. Especially for people with technically advanced skillets. The world is much bigger than the tax farm you were born in which claims dominion over you, and outside the borders of that farm, its powers are greatly diminished.
Introducing Chartboost Store, Our New Backend Service
That's a crazy amount of money to spend on food. Does that figure include buying food for multiple people? As a single person that's more than 5X what I spend on food. In fact $10K would completely cover my food and rent for a year with a small bit left over. Obviously this will differ from place to place and person to person.
Why is this targeted at large retailers? If the DC minimum wage is insufficient for "living", shouldn't it be raised, instead of a somewhat arbitrary law forcing only retailers to raise their wages?
Why are people so eager to make it harder for poor people to get jobs by forcing price controls onto employers?

footoverhand: I want as many people to be able to work as possible. If you think it is too hard for people to live on the salaries that are available at their skill level, then by all means we can talk about improving the social safety net... but forcing companies to lay off people to maintain their salary budgets through salary controls is NOT a good way to help poor people.
Since we're both fans of logic, I'll make small nitpicks:

I wasn't appealing to authority because I wasn't making an argument -- just making sure you knew of the articles existence. Also, in reference to "it's still an appeal...": You shouldn't imply that an appeal to authority is always wrong (It's only wrong if the authority is not appropriate; and it's never implied that authorities are infallible). However, you rightly went on to attack the authorities arguments -- but like I said, nitpick for fun.

One thing that's not clear to me is your last paragraph. Why was Snowden approving of judicial oversight? My understanding was that he had faith that a broken system might repair itself, then upon realize it was only getting worse, leaked the info to the public. Escaping this system afterwards wouldn't be hypocrisy.
Perhaps, if you did it in Powershell?
Another article in the informal series, "Why everyone should sleep like I do even though there's plenty of evidence that there is actually a wide spectrum of sleep behaviors and not everyone is alike".
Almost all food that I microwave also needs a power adjustment. So I'd add a Power button and a Time button to your list, and I wouldn't require user do power before time or vice versa; and power would default to 100%. But I love his barcode/database approach even better!
"Satoshi is more than likely one or more individuals with significant crypto experience"

I doubt that very much, based on reading the original Bitcoin paper and his posts to the cryptography mailing list. More than likely Satoshi was an amateur/enthusiast.
Obliquely, you make a good point.

We should neither censor ourselves (exclude something) or leap to conclusions before the full verdict is in.

As I know less than fk-all about airlines and airplanes, I'm just reading this stuff, and am trusting in others to make sure the truth comes out, whether it's un-PC or completely innocent.

In fact, I'm amazed at how few plane crashes seem to occur (knock on wood). If any nation produced truly incompetent pilots, it's less likely this would be true.
Globalpublicash
Network Marketing 2.0 , rappresenta esattamente come il web marketing 2.0 l'evoluzione del business on line, che ha visto il dilagare della prima ondata di sistemi di guadagno, per la maggior parte fasulli o truffaldini, ed ora si concentra sulla qualita' e sul saper discernere da un network marketing qualunque ad uno di successo.
Except you can install Linux, Windows, and even Plan 9 or a *BSD on a Mac laptop. So basically, it's not locked at all.

The author of the post submitted this to HN himself and it's rather embarrassingly wrong. I flagged this submission because it seems like link/flamebait.
> Raised taxes represent an additional expense (for the purposes of this discussion)

Raised income taxes aren't really an additional expense, because they are taken out of after-tax net income, not gross income. That complicates the analysis substantially.
>> "Who wants to volunteer to clean my toilet and mow my lawn?"

You can't clean your own toilet and mow your own lawn? Especially considering you would have more time to do it with a guaranteed basic income.
You're confusing the syntax with the functionality.
Almost all the items in that list are a product of inadequate skills/insufficient training/overconfidence, quite consistent with the op.

The degradation of basic flying skills and over-reliance on autopilot-like systems has been a factor in most recent catastrophes, and in countries where pilots have little chance to practice a lot in small planes (such as Korea, basically no civilian aircraft) you might expect an even greater lack of manual stick/rudder/throttle flying skills.
The Spacedeck Survival Manual
the company is too monolithic (they used to be monolithic in multiple silos, now they're becoming monolithic in one giant silo, that's not better)

Exactly, they are too big, and this reorg is going to make that worse, not better. I think they would have been better off actually spinning off their business units into separate companies, each with a clear product category and a clear organizational mission.
Can you please explain how and why living with one's parents is an insult?
The single biggest issue with BI is that there is some fraction of the population that will fritter it away and starve.

Most people proposing BI are economic liberals so have the point of view "If we gave them enough money to live off of and they wasted it, it's no longer our problem" but that doesn't sit will with the rest of the population that aren't economic liberals.

Even if you buy into that view, you still have to deal with the increased crime from starving desperate people; it costs a lot more than $10k per year to keep someone incarcerated, so inevitably non-violent offenders will be paroled only to offend again.

[edit] Perhaps those downvoting me could let me know why? I'd like to know how my comment detracts from the conversation on this article.
I feel like I read this somewhere before... Pretty sure it was Atlas Shrugged, not the best literary work, but paints a pretty clear picture of a world where people get money they don't earn.
If it really is as robust and simple to operate as they claim it will be, $150 seems more than fair. Especially considering the thriving $500 tablet market is driven by every day people who think it's too much of a hassle to use their phone or laptop on their sofa. I'm not sold on the product yet (security reasons) but price is certainly not my complaint.
I thought it was a good thing that you don't have to work unless you want to do so for additional income.

Which one of us is wrong? Which one of us will be wrong in the future, as more and more jobs can be automated and thus disappear while the amount of people on this planet keeps increasing?

Just remember that the future is now.
You don't need to print to see the improvements the oversampled images provide. You should see much cleaner images, especially in low light. These are noticeable even at Facebook level resolutions. Anyone who has used a real camera would know that.
The problem here is clearly political. Somebody made the decision to fire these instructors; that decision was surely supported by senior management and then the government.

What should happen here is that the FAA, EU, and other countries that were originally involved in getting the Koreans to hire these expat instructors in the first place -- these countries should demand final say over all instructor personnel decisions.

This will mean the Koreans basically giving up control of their training program, which will be a huge piece of humble pie for them to eat. But there is no other solution. Either the pilots will be trained properly or they will continue making entirely preventable mistakes and killing people.

EDITED to add clarification: I know nothing about flying planes. My comment is about organizational dysfunction.

OH, and another thought: I don't know anything about this forum except that it calls itself a "Rumour Network". The fact that this post was deleted makes me wonder -- who is keeping issues like this from being aired? It's clear that the author has nothing against Koreans per se -- he just doesn't like to see incompetent pilots flying aircraft.
The problem with unconditional basic income is that there's no incentive to do anything beyond the minimum.

Like most utopian plans, this idea relies on the belief that humans will get up and do things in large numbers.

We can't even get them to voluntarily recycle and quit beating their kids.
This is a powerful point to ignore. The Great Recession has shown this trend might be establishing itself already; the percentage of people not participating in the workforce in any fashion spiked, hasn't recovered, and isn't showing promising signs of ever recovering.

What a basic income will tend to do however is reduce the need for a minimum wage. Currently the minimum wage exists to solve a problem: People need to survive, and to do that they need to work enough to enable that. The problem is with workforce participation being compulsory, absent a minimum wage the price for labor in unskilled work rapidly drops. Where you can find someone desperate for 7.00 an hour, you'll find someone else equally desperate willing to take 6.90 an hour. There will be yet another person willing to take 6.80, and this trend continues until you reach a point where you're better off scraping whatever you can do to survive.

So it's actually preferential for the labor force to shrink some; instead of everyone competing for the tiniest slice of a paycheck just for survival, you'd have a labor force with much more power, ensuring that you don't have to settle for work at 7.50 an hour just to eat. On the contrary: You'll stand on a corner and flip a signboard around in the air for 20 bucks a day only if it's worth your time, and to buy the extra 6-pack or whatever you desire, but don't need to survive.
I'm from Virginia, and as part of the University of Virginia tour they always show you the one-time dorm room of Edgar Allen Poe, famous American poet. During the tour, some snarky potential student will always point out that Poe was both a paedophile (he married his bride when he was 27 and she 13), and also a proponent of incest (she was his 1st cousin).
How is WP compelling at all for other OEM's when Nokia has 80 percent of WP's market share? That's much worse than Samsung with 30 percent in the Android market. I wouldn't even consider it worth my time, especially when besides the extremely dominant market share of Nokia within WP market, it also means very few devices per total being sold. the numbers just aren't compelling at all for others. Plus, you have a lot harder time differentiating, too.
Grouping Bing with Office will hide Bing's massive financial losses from investors.
What on earth does the author mean by "just like Mac and OS 10"? Apple laptops will run other OSes, including Windows and Linux, just fine.

(Linux support for the latest set of Macbook Airs is still imperfect - but the hardware is brand-new, and it'll undoubtedly get better with time. The hardware is not the problem here; it's practically a reference design!)
Differentiating the quality of a dwell would be nice, but that would mean to track search trails of our users, which is too much of a privacy issue. But we are thinking about semantically evaluating the DwellRank. For example a useful dwell would be for tutorials. But this is just an assumption, we simply need more data about that.

Gerald (Disclosure: archify/Blippex CTO)
Reminds me of the PogoPlug[1]. I came across it when buying a SheevaPlug, the device it was originally built on.

[1]: http://pogoplug.com/devices
Serious question: why does this bother you so much?

If we were talking instead about people operating their own pharmacies, or doing their own home electrical work, nobody would bat an eyelash.
> Does there not ever come a point when we can say we're rich enough as a society to support those who can't meaningfully contribute?

You are free to support those who can't meaningfully contribute, but where do you get the moral authority to demand that I do so as well, with my own money?

Besides the moral argument, isn't there a good chance that a permanent underclass with a guaranteed welfare income will overpopulate in relation to those who are "meaningfully contributing", to the point where the ratio is so bad that the system breaks down?