skysight-inc/HackerNews huggingface dataset:
I'm all for clever code when playing around but there are limits to its usefulness. When its over the top, you're not doing yourself or anyone any favors. If something took you a while to come up with, and on top of that its not commented out, its going to annoy the next person, and maybe even yourself when you get back to it 6 months down the road. Well, either annoy or stroke your ego.. Neither contribute much to the quality of the end product.

Here's a quote from Brian Kernighan: "Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"

https://en.wikipedia.org/wiki/Brian_Kernighan

I've come to appreciate simplicity especially when spending a lot of time dealing with other people's code. If you spend most of your time in other peoples code, simplicity will save you endless amounts of time.
Not discussed, glossed over. The whole thing reads like Chelsea Clinton's "I tried to care about money, but I just couldn't."
> The makeup of the commission is also an issue. The law enforcement and intelligence community is overrepresented with 6 out of 16 seats. Because 12 of the 16 commission’s members are required to issue subpoenas or approve any conclusions, those 6 members have tremendous influence over the commission’s investigations and the content of any report.

Seat stuffing to control the direction of the committee is how you know they bias to control the "commission" in a given direction.

The original commission members [both of whom are intelligence/LE biased] + 6 LE officers = 50% control, so it is actually worse than the EFF is saying.

> The Warner-McCaul proposal ignores what technical experts, computer scientists, and others have repeatedly told Congress for more than 20 years: weakening encryption standards and mandating backdoors (or key escrow) for government access will make people and their devices less safe. Indeed, the very existence of the Warner-McCaul bill will be used to prolong an unnecessary conversation.

Honestly, I think EFF is understating the risk. Its quite possible this Commission won't get vetoed like the EFF believes, particularly given they can try under Obama [who might veto it] and in 2017 under the next president. Its basically veto shopping since it looks like Clinton will win [who won't veto it].

http://www.theverge.com/2015/12/19/10628208/hillary-clinton-...

> "It doesn't do anybody any good if terrorists can move toward encrypted communication that no law enforcement agency can break into before or after," Clinton said. "There must be some way. I don't know enough about the technology to be able to say what it is, but I have a lot of confidence in our tech experts."
This probably isn't what you are looking for but I wish I never learned, or at least never decided it should be my career. A career writing software has a shelf life. Age discrimination is real, software engineer experience isn't valued like other professions. And yes, there are plenty of firms that will hire engineers over 40, the fact remains that there are vast numbers of employers that won't and once you hit the senior/principal engineer in 5-10 years, you plateau. The pay is ok, for now, but the downward pressure on salaries is palpable. Also, it's difficult to be told how well we are paid when a vast vast majority in the software mecca (SF) can't actually afford a single family home with a sane commute. Some people can afford those homes, but it's not the software engineers. The industry is filled with work that just isn't interesting and of the interesting work that exists it tends to go to those that are the most political. We like to think this profession is a meritocracy but it isn't. We are a managed people without a seat at the big boy table and this means we will never truly have the control over our "destiny" we think we have.

If I could do it over again, after graduating with a CS degree I would explore either going to Wall St to grind and retire after 5-10 years, go to a top 10 law school grind for 10 years and retire, go to medical school. Hell, I'd even just do a DO school in the carribean. Sure you get crapped on for your residency, but after that it only gets better and you don't have shelf life.
I'm reminded of a gym I frequent, with blasting music out on the weightroom floor. Of course it is pin-drop quiet in the toilet area. :/
I know people who wouldn't watch a movie if it has an IMDB ranking of less than 7. LOL
Under prohibition pricing, our[0] costs (Indoor, organic nutrients) come out to about $17/plant to produce.

0. https://medicalcannab.is
Index fund, it isn't trading in an exchange.
The nice thing about VPLs is that they are more intuitive to people with non-programming experience. I imagine many Max/MSP / PD artists have never written a line of C in their life. And even if you have programming experience, VPLs can be a lot quicker to set up for certain tasks versus writing a full fledged plugin. So VPLs can be great as a prototyping / experimentation tool.

But yes, absolutely, for more complex tasks (and my examples would be: DSP routines such as filtering, anti-alias oscillators, etc.), it would be better to use a text language. Both PureData and Max/MSP have external objects (that you write and compile in a text based language) for this purpose... although, even these objects will never be as fully optimized as a plugin that is completely text-language based.
Ok I volunteered at a parent-cooperative preschool. I cleaned the bathrooms. The girls' bathroom was shockingly worse than the boys'. A data point.
Use the test for divisibility by 3: if the sum of the digits is divisible by 3, the number is divisible by 3. 5+1=6, so 51 is divisible by 3.
I have GIT repo over my home folder for incremental backups.
But unless Mac OS X becomes as strict about background processes as iOS, third-party applications can still waste energy.
Either comment your code or move darlings to a properly named function, which is even better.

@sentence = capitalizeEveryWordInThe(@sentence)

Then you can both unit test (if you're into that kind of thing) and refactor without breaking a lot of things.
It is a package manager, though? The fundamental idea of downloading a list of available options of which the user picks some, and the system pulls in dependencies, is almost exactly how dpkg and yum work. The location to which the packages are installed is a detail.
Power consumption is a concern even in data centers, but yeah, the power cost of this inefficiency is probably inconsequential in situations where sqlservr is actually being used.

But, VS installed and started sqlservr on millions of developer machines so they should have paid some attention to this issue. Super sloppy.
It looks like they've aggregated SoundRangers and a few other library sites. Does anyone have opinions on the quality of their selection?
No it isn't. You only calculate the square root once, vs calculating the square at each iteration.
There was an HN discussion quite a while ago on a one-line Game of Life in APL. Much more difficult to understand than using any currently popular language.

Here's the discussion: https://news.ycombinator.com/item?id=1041500

Here's a (different) one-line Life implementation, linked to in that discussion: http://catpad.net/michael/apl/
Which is a good reason, if that optimization is needed.
> years of strict agency pricing

You mean the years of strict wholesale pricing?
I loved using labview when I was in test automation
I got 22 on my first try. The most helpful trick is to note that if the digits add up to a multiple of 3 it cannot be prime (because it is divisible be 3) with the exception of 3 itself.
Khronos in general - yes. For example for WebGL (competition and the fact that they lost browser wars caused that). But Vulkan? MS clearly avoided any participation. So you only confirm what I said - MS drop lock-in only when competition starts burning their heels.
Huma Abedin: It's been whispered for quite some time these two are partners in crime.
Push vs. Pull
> C++ allows this and it's very fast and safe (even safer since C++11).

The security track records of large-scale security-sensitive software written in C++ support the opposite conclusion.

> Also, most all of those languages (or at least the critical parts) are implemented in C++ (hotspot).

Go is not, and never was, implemented in C++.
Calculating a square is ~1. A square root it ~N. Much harder to do. Its a common optimization in graphics code to compare squares for this reason.
Why should you? also you forget that not ever service scales the same way or has the same usage across the year.

Take for example something old school and established (ZzZzZ) - accounting.

Say you are an accounting firm with an established IT infrastructure and you now want to launch a new service that will allow new smaller clients to perform certain tasks even a single one (say fixed assets devaluation for deductibles).
The core of the service is a messaging API as it's an accounting application it's usage wont be fixed and the product team estimates that on a normal week it will handle 20,000 requests, on a end or the quarter week it will handle 500,000 and at the end of the financial year it will handle 2,000,000 how do you scale this?

Say a single server will 20,000 request so you have here a 1 to 100 scaling between peak and normal usage which means that if you own your own infrastructure you are paying for 99 servers to idle during most of the time.
Even if you can some how manage to do some inner-organizational thin provisioning you will still be wasting allot of hardware because as it turns out most of your other internal services also follow a similar usage trend so that might not be an option to begin with.

Now you can rent VPS/IAAS from say Amazon or Rackspace but then you still have a huge overhead sure you'll pay less for usage because those 99 instances will be down but you still need to pay for other resources e.g. reserved IP addresses and storage, you need to practice and test the machines every couple of weeks/months and you need an live-ops/sys-admins with balls of steel to be confident enough to agree to spin up 99 instances at the very last moment and hope that everything will work out smoothly.

But even that doesn't really solve it because it doesn't allow you to be flexible with onboarding new costumers, it can't predict various trends like a change in legislation or a holiday weekend prompting people to use your service earlier / later than expected.

But if you say just use a PAAS/SAAS messaging service all of this goes away, you don't worry about scaling as long as the service can handle your peak traffic, you don't worry about waste because you pay what you use so if you've only sent 18796 messages in week 37 you pay for that exact amount, you don't need to worry about some promotion that the marketing and product dev team was running that caused an influx of new customers without telling you, and you don't have to really worry about down time, backups, and even security (as long as you get sufficient assurance from your service provider) because as long as their service is up you are up and running.
Doesn't matter anyway, Google nowadays just ignores some words if it feels like it. Even if you add quotes << "stevia" "iOS" "layout" >> then you're not guaranteed that the pages will have all the words in. Google need a "just show me the results I asked for" button.
I suggest loading Papier on the new tab page only if it isn't yet open. If it's already open, the new tab page could show frequently visited, bookmarks, and search as before.
> Just curious what would you label something whose source you can view and/or modify for personal use ? Google says open source.

I'd probably call it "viewable source", "source code", "software with source code", or "software with published source code".
What are their exposures to toxins? Are they genetically more or less prone to certain cancers?
The expansion of the universe simulated
I think that contact page remembers the last repo you visited. I went to it in incognito mode and is wasn't there.

That's a pretty neat feature!
Best Collection of Programming Courses,Projects,Articles
Vulkan is not "warm fuzzies". It's something that can make life easier for everyone. But it reduces their lock-in, that's why they ignore it and want to force developers to do double work if they want to target their closed platforms like Xbox.
Overpopulation is a myth.
http://www.nytimes.com/2013/09/14/opinion/overpopulation-is-...
The problem you mention is real, but first come first served is an easy solution. That also solve the order problem.

That encourage you to submit transactions earlier in time slot (as you get more chance to complete them).

Still there is some HFT strategies possible, but window of opportunity will be by an order of magnitude or two smaller.
https://github.com/Microsoft/dotnet How exactly is releasing the .NET framework on Github a lock-in strategy?

Like many people, you are missing the point. The operating system is irrelevant. You have people editing Excel spreadsheets in an iPad on iOS, and then switching to Excel on some form of Windows. They've been trying to get Windows Server and IIS as the platform of choice, and they have lost to Linux, Apache, and NGINX.

From a technological perspective, they can't afford lock-ins, not when there are so many alternatives. They want you using their services.
Life Tip: Most of the time, things at work are not going to go your way. Most of the time, you will not be rewarded, recognized, or even treated fairly. You will also always see others with seemingly the opposite experience. This is baseline normal.

Now, when this happens to you, you might be tempted to ask if things are stacked against you for one reason or another. When you get to this line of thinking, you should revisit the reasons why life is good, instead of fanning the flames of political cancers.
I didn't see any indication that I signed up for it when I ordered the book.

Also, the HN discussion for the first book was good: https://news.ycombinator.com/item?id=10984620
thanks akarve, I shall read abot "shor's algorithm"
As pointed out below, they aren't equivalent.

Compare the output of both when run against "foo bar WIBBLE"
> So they've decide that the business model of the past two decades is doomed?

Windows is a commodity, a) it won't pay for its own engineering team and b) unlike other competitors, Microsoft hasn't been able to capture as much value from the current Windows ecosystem and marketplace.

Developing for Windows is becoming a liability: a) your team can't develop only for Windows anyways; b) your team can be more efficient by using a wider set of tools and technologies than Microsoft's own developers, and c) if Windows is not profitable and your product depends on Windows, it better pay for part of Windows' cost.

Internal OSS adoption, investing on cross-platform development and in Azure seem all strategic investments in managing the risks above while remaining a software (product) development company.

Every other gain from the same strategies (the ones affecting their customer base) are cherries on the top of the cake.

> Are investors onboard with that?

Not sure they realize what's going on. If they did, I couldn't explain the current P/E ratio in days of declining revenue, a prospect of shrinking revenue streams (overall; medium-term at least) and large bets on lower margin businesses.

> They just gave away all their products for free?

They probably wish they had invested in Office for the Web, Android and iOS much earlier on and with much more intensity, and still have given it for free. They were lucky none of the competitors really stepped up to fill the void. In a cloud-first and mobile-first world, there are multiple revenue stream available once the data information workers process is more closely tied to a provider; specially with the synergies in their product line.
> So they've decide that the business model of the past two decades is doomed?

Windows is a commodity, a) it won't pay for its own engineering team and b) unlike other competitors, Microsoft hasn't been able to capture as much value from the current Windows ecosystem and marketplace.

Developing for Windows is becoming a liability: a) your team can't develop only for Windows anyways; b) your team can be more efficient by using a wider set of tools and technologies than Microsoft's own developers, and c) if Windows is not profitable and your product depends on Windows, it better pay for part of Windows' cost.

Internal OSS adoption, investing on cross-platform development and in Azure seem all strategic investments in managing the risks above while remaining a software (product) development company.

Every other gain from the same strategies (the ones affecting their customer base) are cherries on the top of the cake.

> Are investors onboard with that?

Not sure they realize what's going on. If they did, I couldn't explain the current P/E ratio in days of declining revenue, a prospect of shrinking revenue streams (overall) and large bets on lower margin businesses.

> They just gave away all their products for free?

They probably wish they had invested in Office for the Web, Android and iOS much earlier on and with much more intensity, and still have given it for free. They were lucky none of the competitors really stepped up to fill the void. In a cloud-first and mobile-first world, there are multiple revenue stream available once the data information workers process is tied to a platform; specially with the synergies in their product line.
Remember that the Nazis were elected to the legislature, a minority party, and once they were put in power they ended democracy in order to retain power. Another way to look at it: Would it be acceptable for even a majority, 55% of a nation, to elect a leader who would bring an end to future elections (even, for the sake of example, one who pledged to do it)?

Democracy, which I very strongly favor, does have some weaknesses. As someone said, 'Democracy must be more than two wolves and a sheep voting on what's for dinner.'

Also, Germany, with its history, is in a very unusual situation. Neo-Nazis in power is not an acceptable outcome. They also censor new-Nazi materials.
Instant Bitcoin purchases at over 6,000 Canadian locations
I enjoy software development. I'd hate to waste even a few years grinding at some hateful task like that.

And yes I have control over my destiny. As long as you're willing to get up, put your coat on and walk, then you're in control. But as long as you calculate everything in dollars, you're at the mercy of the 'big boys'.
You're taking one line I wrote and applying it to everything. I've made a bunch of other statements in this conversation about how I prefer mixed groups, not only of sex but of ethnicity too. One nice side-effect of a mixed group is there might be some dateable people in there, but it's not a given, and it's nice to have a mixed group (IMO) for many other reasons than just sex or seeing pretty faces, but I don't see how it's wrong to want to work in a mixed environment and have that possibility if you're single.
We just need to update our terminology. I recommend "Main Squeeze" for the updated nomenclature to be used in all forms of culture, from newspapers to school essays.
I hate to sound alarmist, but I'm seriously worried that we're reaching "peak novelty programming language". If we don't start exploring alternative uses of free time now, we're going to be in serious trouble soon.
Methionine may be a key player: http://www.ncbi.nlm.nih.gov/pubmed/22342103
The economy is based on supply and demand. People demand things "cheaper," so anyone who builds a cheaper mousetrap can make a lot of money.

When people demand "better" it gives that to them, too (like the HP in our cars has gone up dramatically over the last 30 years....because people mostly are willing to pay for that)
Yes, that is almost exactly how I would rewrite it. The original doesn't communicate its intent at all. It makes one itching to rewrite it but, it takes some time to take all the "smartness" into account.

The original line raises surprisingly many questions:

- The default for `split` is to split on whitespace. Is it the intent of the author to only split on spaces? (I guess so) What about tabs?

- Why is the author using #map! (with exclamation mark)? I have to admit this put me on the wrong foot for a while. My best guess right now is that the reason is speed; Mutating the array that split produced is (slightly) faster than creating a new one.

- Why is the capitalized string assigned to x again? I can think of no good reason at all. Am I missing something?

- Why is the author using x[0..0] instead of x[0] or x.first? I know why: The difference is that the latter two return nil if x is the empty string; but it's far from obvious and one could easily break the code by trying to improve this.

- Why are the parts of x concatenated with << instead of with +? For speed? Is the author not aware of String#capitalize ?

My variant would be this:

@sentence = @sentence.split.map(&:capitalize).join(' ')

... and I would put it in a one-line method called titleize to better communicate my intent.
I've wondered if this issue could have been solved a long time ago by commercial companies (the way LetsEncrypt solves it or similar), it just wasn't as good business :-)
> Just to be fair I think any discrete time auction would reduce HFT.

But is the reduction of HFT qua HFT really the goal? Making a market low-frequency will by definition reduce/eliminate HFT as a strategy but you will still have a lot of trading activity done by well capitalized companies using lots of expensive equipment. They will just use different strategies.
I also went with the hg solution to enjoy it's core large-file support but ultimately switched to git-annex so I didn't have to support and learn each technology. git-lfs looks to be good but I'm still waiting a small, standalone production-ready server implementation.