skysight-inc/HackerNews huggingface dataset:
Colton could do this, make some money, and maybe get a guest spot on Glee.
Really?!

Most Phds I know in CS, have done work not directly related to their main research point. Usually in the 6 months before the deadline some way was found to relate the work with the thesis and it got written in those remaining months.
> I am left wondering, what problem do all these video sharing apps think they are solving by setting arbitrary video time limits?

Here's a Forbes article on the subject: http://www.forbes.com/sites/carminegallo/2012/11/29/constrai...

(Meta-)quote: “Recent studies offer evidence that, contrary to popular belief, the main event of the imagination—creativity—does not require unrestrained freedom; rather, it relies on limits and obstacles.”

Another example: TED Talks, which are maximum 18 minutes
If your software understands the hyperlinks, isn't it more accessible to mashups and such?
We talk to computers. We are not computers.

I thought his post and the original article were very human.
Sharing this with my AS Computer Science students. Very clear explanations.
align=center.

MY EYES, MY EYES!
Regarding the malleability of the js runtime, would this be addressed by making all the page content a single html+js file and making its hash widely available for manual verification? Obviously "normal" users aren't going to check it's kosher, but it should mean if a site's serving dodgy code somebody will notice.

Obviously that's a bit impractical for most websites, but it could make sense for a site whose primary raison d'être is encryption.
Stanford GSB Sloan Study Notes: Sourcing, Screening, Valuing and Pitching
I'm not an outsider and the 30K was a bit of an exaggeration, and I apologize for that. The point I was trying to make was that if you look in as an outsider, you would see the requirements being extremely daunting compared to what you might see elsewhere with a pay scale that is very low and unappealing to anyone who might match it. Unless, of course, you just finished your degree in some biological discipline where the jobs are scarce. They are absolutely delusional (and so am I, most likely) because in most cases what they really need to solve the problems they have, is the same type of person most companies would need in a similar situation, a quality software engineer with experience building quality applications that are both extensible and maintainable.

I worked in bioinformatics for more than 10 years before I moved on, and In my experience they do have a lot of trouble finding people to fill positions, especially outside of massive government funded groups like the NIH. This often results in passing on competent software engineers with a B.Sc. that don't meet the requirements in favor of PHD level biology graduates who have taken a year or so of undergrad computer science courses. In my experience, this leads to many of the problems discussed (and exaggerated) by the OP. While some of these people are smart and produce good work, much of the time they produce poor quality software that gets the job done, but as inefficiently as possible and they leave a code base that is virtually unusable. Overall, I mostly just wanted say that it's a mindset they REALLY need to get past for the long term success of the industry.
> It won't be logical, but such is the way of Congressional hearings.

When such statements are made routinely about an organization, it's time to move on to another one. (Roman Senate as precedent. I'm sure there are many others.)
HBO is 11th on the list. Sounds legit.
You essentially changed the definition of "value" to mean what is just called "name" in Python.

Names refer to objects. Names are introduced by name binding operations such as `=`, `import`, `def`.

def f(a, b): # a, b - local variables
a = [1] # doesn't change x list; a refers to the new list hence forth
b.append(2) # change y list; b refers to the same list as y

x, y = [], []
f(x, y)
print x, y # [], [2]

Note: a "win" doesn't change the truth. It just means that nobody cared enough to participate further in the hostile discussion.
This is just a reflection of the sorry state of the publishing industry.

We are fast approaching the point when one cannot expect a robust piece of writing (specialized or general) of lasting worth, unless its behind a paywall.

Frankly I don't blame them. Although some new entrants like QZ (dot) com and very few others are trying, there have been no inroads made in this direction, over the past five years.

We need some form of a micropayments mechanism to incentivize good work.
Seriously, the article is badly mistitled.

> And if you have SSL, why do you need Javascript crypto? Just use the SSL.

Maybe because SSL only solves one problem, and other cryptographic algorithms/systems solve other problems?
"fizz" is a string - treated as a list in python

"fizz"[0] is the zeroth character in the list / string

Note "fizz"[:] will output all chars in the string (implicitly it's [0:] - from zeroth string to end

X % 3 is x modulo 3, producing 0 only if x is divisible by
three - so we want to print fizz here. 4 is the number of chars in both fizz and buzz - so the meat is

"fizz"[x%3*4:] is "fizz"[0:] if x%3 is 0 - when we want tp print fizz, otherwise it's [somevaluegreaterthan4: to the end of the list (ie nothing). The extra : stops index error
> If Coulton had rights to create a derivative, he'd be getting legal advice that he has a great (legal) case against Fox

Others are saying he paid for a license.
Then why was it accepted in the first place?

Edit: I know they've redacted apps after release plenty of times in the past, but it clearly involves bitcoin and they clearly have a stance on that, so chances are good that it was a calculated decision.
iOS is compiled with Clang.
You could be right. It just reminds me of the kinds of things a schizophrenic friend of mine would say. She would often have a more suspicious interpretation of events than I would.
Is it just me, or are they successfully killing a strawman in this article? Who the hell uses js cryptography for such things?
I don't get it. Apollo did go to the moon six times, six months ahead of schedule.
Much as a web crawler crawls HTML, an HTTP crawler should be able to crawl an HTTP API. There are operational benefits here of being able to write monitoring and instrumentation tools that don't need to be updated and redeployed when your URLs change.

If this goes for a crawler, it's not so hard to see how it might be the same for an admin panel or CMS.

Sometimes when writing front-end JS apps, I'll develop a common abstract class for a family of resources, and the only unique information in each concrete subclass is it's URL structure!

Sometimes your data really is that boring, and you could develop an entire UI with different resource types without ever having to encode expectations in client-side code.
some problems with this

-authorities won't care msgs are anonymous and will assume you wrote them or know who did if your phone is seized, you will get rubber hosed anyways

-just having the app on your phone means guilty of dissent if arrested the erase function pretty useless. should camoflauge the app

-wandering around with bluetooth enabled while your adversary is a despotic regime with money to buy corporate intelligence contractor provided sophisticated malware and spyware is dangerous. hey here's my phone wide open for you to exploit even better, create spyware that jumps from phone to phone as we pass msgs you can create a virtual listening network to spy on the entire revolution

-intel can be changed by agents or censored before being passed on

to pass the app between devices could use nfc or wifi but that would also be dangerous to leave on all the time should agents get close enough to you and exploit your nfc to copy contacts or inject spyware, or wifi.

that said this is better than nothing which is the alternative
Beijing smog: When growth trumps life
Agreed, and the saddest part is I think anybody with half a brain can see it coming, and nobody wants it, but we'll wind up there anyway.

It's sort of a great example why the idea of a good "race to the bottom" no longer excites but rather uneases me. We've just gotten so darn good at reaching new lows.
Ever Take a Minute And Realize How Freaking Amazing Programming Is?
Interestingly, this is exactly what the HTTP Content-MD5 header is for.
I see, people were mistaking the different nature of values in C and Python for a difference in calling semantics.
Interesting. But have times changed though? You will have to pardon my ignorance little bit because I am a non-native speaker of English (and hence uneducated in history of English literature), but even today you rarely see a comedy getting the Pulitzer. Of course, these awards don't mean much at the end of day but I get distinct feeling that even today - Comedy is considered low brow stuff even behind Fantasy. (Both are my favourite genres btw).
It prints a substring from "Fizz" using slicing.
The thing is, the x%3*4 determines the start of that slice. It's either 0, which is when X modulo 3 == 0 (which is every third number in range(101) ), or something larger than 4, in which case the slice would start at the end of "Fizz" thus yielding an empty string.
Interesting. Could you elaborate? Backblaze allows web access but only after I enter my key to "unlock" my files. Am I being hoodwinked?
I think you should read the NY Times article on how AS worked assiduously to avoid detection.
You need to allow some JS from other domains for it to work.
It's confusing that output is on the >>> lines while input is not -- backwards from the REPL.

More things to consider: dict.iteritems, collections.defaultdict, enumerate(seq, 1)
This is a bit silly, of course it's good to build things that people need.

However, don't fall into the trap of building the solutions that people think suit their needs. In other words, don't let the public do your design work for you. People are very bad at falling victim to "satisficing", going with the easiest and simplest solution that seems to solve their problem. You should avoid that, and be smart enough to come up with solutions that may not have seemed obvious.

For example, falling victim to satisficing can result in trying to breed better horses when the smart move is the automobile. Or building a smarter email based form parser when the smart move is web based applications.
Random number generator problem is solved in Chrome:

var x = new Uint8Array(10);
window.crypto.getRandomValues(x);
console.log(x);

It's also supposed to work in FF, but for some reason doesn't:

https://developer.mozilla.org/en-US/docs/DOM/window.crypto
Well, if you use native encryption software, what makes things any different? If they can replace key code and data on the fly for web application run over SSL, what makes think they're unable to deliver you fradulend updates for native apps?

I have been raising alarm about this for a long time. Automated updates are dangerous, how many users make it absolutely certain that every update is secure? Well, I can tell you nobody ever does. Because secure updates or software doesn't exist at all. Even if the previous version was secure, the next version could be boroken by mistake or on purpose, or you could just get espionage version delivered which is made just for you.

Unfortunately there are countless programs that do not make update delivery in very secure manner at all. Plain http, no signatures etc. That's quite much 100% fail.
I am way out of my league asking this, but couldn't any MITM attack just fake that header as well?
2013 - What I will do. Start of a Journey
I used Postgres on a project and my main concern with it is that whatever GUIs were available were seriously lacking. Phppgadmin is awful.

If you're really pushing its capabilities then there may be better solutions than MySQL but for bog standard applications and websites there is no alternative as far as I'm concerned.
the author gives a clear impression that cd-players were replaced by ipod. so the author does not have the notion or knowledge of mp3 players pre-ipod//
Processes (and a common design for c functions) return zero on success and an error code otherwise. Although it might be unexpected (and certainly breaks flow constructs), it's probably not so bad with some context.

Worse, though, Windows defines TRUE and FALSE for you somewhere in windef.h - so you would have to be careful about where your code was included..
> Hope that helps clarify things a bit.

Yes, it helps. Now I'm even more convinced how corrupt your company is.
Yeah, I don't think it actually solves any problems for us. It is, as zachrose says, interesting that it exists though.

Also way out of my league, btw :-)
"WAIT, CAN'T I GENERATE A KEY AND USE IT TO SECURE THINGS IN HTML5 LOCAL STORAGE? WHAT'S WRONG WITH THAT?"

"That scheme is, at best, only as secure as the server that fed you the code you used to secure the key. You might as well just store the key on that server and ask for it later. For that matter, store your documents there, and keep the moving parts out of the browser."

This ignores the scenario of app deployment models like Chrome Packaged Apps, in which the JavaScript code gets downloaded up-front and then is only used locally. Since you don't re-download the code every time, you only depend on the security of the code once, up-front, instead of on a continuous basis. You aren't affected by server compromise (well, no more than compromise of your OS vendor, but surely you aren't arguing that we might as well send all our keys to Microsoft, Apple, and Canonical).

Also I feel that this analysis conflates security with access. You may trust a company to keep their servers secure from compromise, but want them not to have access to the documents when the government comes knocking.
If suffering makes life more meaningful, should we set out to inflict suffering on others for their own good?
Reminiscent of the old joke where the physicist says "let's assume the horse is a sphere." But while a sphere might be a good model for a horse, it's definitely not a good model for how actual computers currently work.

In other words, the "actual" in the title should be replaced with "theoretical", with a footnote saying "under a theory that is worse than the one you are already using." Of course, nobody would read it then.
you should always check the length of lists before zip, otherwise you end up with surprises (try running zip with unequal lengths)
At work we had a team develop a corporate standard for REST APIs that includes discoverability, such as including a 'links' and 'actions' properties on resources.

Our team determined that implementing the discoverability aspect was going to take a significant amount of engineering resources and wouldn't provide much, if any.

The other problem I have with the idea of discoverability in the API is that it doesn't really help the client. For example, with a forum API there may be a link to create a new comment. The client has to be written to recognize the new comment link and attach the URI to a button. What if the API changes the new comment link? How does discoverability help here? Sure, the server is sending the new link but the client doesn't know that new link is really the new comment link that it's expecting so the client has to be updated anyway.

So I don't really see how that helps prevent the client from needing updates when the server changes something.
Interestingly, it's not a syntax error.
HBO more innovative then Tesla? Starbucks & NFL more innovative then YCombinator? This deserves the title of the most innovative rating :)

Or is there something I don't know about HBO?
I saw the post as more "roll with the punches". And yes, that phrase trivializes some terrible experiences. But I feel like that's what Dr. Victor is getting at. The most successful people are those who are willing to reframe their perspective and create goals/silver linings around that perspective.

In the (arguably) skewed world of Silicon Valley I think that's a valuable thing.
Why the Facebook and Apple Empires are Bound to Fall
Nice comment on the origional article: The modern definition of "happiness" certainly refers to the hedonistic pursuit of pleasure. But it is instructive to consider how the term has evolved since the time Thomas Jefferson enshrined the "pursuit of happiness" in the Declaration of Independence as being a fundamental human right. Jefferson most likely borrowed this idea from John Locke, one Jefferson's key intellectual influences. In his essay "Concerning Human Understanding", Locke stated that, "The necessity of pursuing happiness [is] the foundation of liberty. As therefore the highest perfection of intellectual nature lies in a careful and constant pursuit of true and solid happiness; so the care of ourselves, that we mistake not imaginary for real happiness, is the necessary foundation of our liberty." Locke was not referring to the pursuit of sensual pleasure, but to the Aristotelian meaning of "happiness", which Aristotle had described not as the satisfaction of our desire for sensual pleasures, but a person's active pursuit of virtue or excellence, or, in other words, the pursuit of meaning (the phrase "pursuit of happiness" is actually redundant since pursuit is an essential part of Aristotle's definition of happiness). So during the 18th Century and at the time of the birth of this nation, the search for happiness and the search for meaning in life were actually one in the same.
James Murray was the true Scotsman.
This could also be a positive. If you lived in a country where you had sensitive data at risk you could store this data in a country you felt comfortable with.
Another method that I find isn't used enough: dict.setdefault. Instead of doing this:

if 'key' in d:
val = d['key']
else:
val = d['key'] = 'some default value'

You can do this:

val = d.setdefault('key', 'some default value')

This is super-useful for configuration in frameworks, for example - it's a one-liner to set a default config value if the user didn't provide one.
I have never watched any of the video series. The books are classics at comedy. I wish 'Pigs have wings' is available on iBooks. Stories involving Bertie Wooster, Jeeves, Hon. Threepod etc.. are hilarious and make up a good lazy Sunday afternoon.
The article requires some corrections if presented to beginners.

`something` should be written as repr(something). `` (backticks) are gone in Python 3.

if 0 < x > 1: is syntactically correct but it should be written as: if x > 1. The combining syntax could be used for the same direction e.g., if -1 < x < 1.

Code golf is not the strong side of Python and it is not the point of FizzBuzz. Code golf might demonstrate language features but it doesn't provide the correct context for their usage i.e., code golf doesn't show to a beginner how something should be used correctly.

True/False are keywords Python 3 (you can't assign to them).
I agree, but I don't think 'pursuit' was redundant. To pursue hedonism would contradict his definition.
Moby Dick was utterly ignored for many decades. heart breaking.
Design Your App on Paper, Animate It With Your iPhone Camera
> For the cost of a $35 Raspberry Pi

Model A should be out in the next few weeks, which will make that $25.
A new use for StackOverflow
...or he could use a dbms that works properly and save himself the hassle.
This is actually a pretty good summary of the whole article. The main point is that mysql works very well, by slightly modifying what you meant into valid statements and doing the best it can. And because what it does depends on the (hidden) type of the data as well as what you actually ask it to do ... it sometimes does things you didn't intend.

It reads a lot like a static typing versus dynamic typing debate.

It's easy to find yourself on either side of this debate. If I program in javascript for a few hours I'm ready to attack any dynamic typing proponent with an axe. If I attempt to write something bigger in Haskell (or try to make something run faster), I am starting to wonder if being bludgeoned to death with an axe is too easy a death. If I try to program anyting in Coq it gets a lot worse.
> The process I have described—setting clear goals, choosing an approach, measuring results, and then using those measurements to continually refine our approach

This sounds like a pretty pragmatic plan to me.

Sounds like a good outline for startups.
the college will simply decrease their existing scholarship budget by $1 for every $1 of a restricted gift. They're literally as good as cash.

This is exactly the first thing that occurred to me when I started thinking about donating to my alma mater. Haven't really figured out a way around it.
Nice tips. One nitpick: the "inline if statement" is handy because it works as an expression, not just as a statement.

A few more useful things:

frozenset: immutable set values. these can be hashed, so you can use them as keys in dicts or put them in sets.

poor-man's transpose via zip:

>>> x = [('a', 'b'), ('c', 'd')]
>>> zip(*x)
[('a', 'c'), ('b', 'd')]

slices can be constructed with the "slice" function and passed around as values:

>>> f = lambda x, s : x[s]
>>> first3 = slice(3)
>>> last3 = slice(-3, None)
>>> rev = slice(None, None, -1)
>>> f('hello', first3)
'hel'
>>> f('hello', last3)
'llo'
>>> f('hello', rev)
'olleh'
Courage Is an Entrepreneur's Most Important Quality
Well, to be fair, I think the commenter meant partly malevolent and partly unintentionally harmful.
Gates was a good business man. I've not heard many call him a good hacker before. I'd like to hear more...
Yeah, what moultano said. Except for one derivation in the more rural parts, my state has the accent that most American newscasters will learn or imitate.

So for better or worse, I have neutral American English.

Pretty good being on top.
How complicated was the bureocracy that you couldn't push the change into production yourself after verifying that it is a strict speed-up and doesn't break anything? I think such barriers are incompatible with the word 'research', where the first you need is freedom.
Almost always, IME. The bank may even charge a service fee (to their own customers) on top of whatever fee the guest ATM charges. This probably comes out to no more than a few dollars, but it does make the option to pay +4% at POS more compelling for small purchases.
Shouldn't "the last 3" be [-3:] instead of [3:] ? Inyour case it gives the correct result, but that's because your list has 6 elements i think. ( note : typing on my phone so i can't verify).
Another subjective list and a another misunderstanding of the word 'innovation'.

Where are Philips who are pioneering high efficiency LED lighting, or TomTom that gave us the first decent GPS for cars? or Ubuntu that gave the world its first decent free operating system? or eBay, still the leader in global re-cycling... and I'm sure there are loads of companies that make amazing scientific and medical innovations that I am unaware of.
Ask HN: legally can i build search niche web search engine?
i want to build search engine that searching dally
niche sites , like blogs first page's
then present statistics based on the crawling.
legally can i do this ?
I find I use it most in multi-level data structures, not unlike Perl's auto-vivification system:

logins = {}
for user, date in getLogins():
logins.setdefault(user, []).append(date)

Here you login ends up having one key per "user" with a list of "date".
I don't think security is a priority for most EHRs that don't have an established procedural culture.

Part of the advantage of being a startup is being able to run around with untenable liabilities and cutting corners the 'big guys' can't cut under pain of tort.
>Ubuntu that gave the world its first decent free operating system

lol what
That's why I said it's not practical for images, but the rate is enough for short texts.

If only mobile phones had good, configurable radio transmitters...