skysight-inc/HackerNews huggingface dataset:
| This is a hack, and I don't like it.

Registrations spilling over into other namespaces (in this case the ccTLD namespaces) are an effect of the common namespaces (.org, .com, .net) becoming crowded by legitimate companies and people squatting on domains hoping for a huge payout. People don't want to type in sanford-and-sons-incorporated.com (or was it sanford-and-sons-inc.com or maybe sanford-sons.com?).

A legitimate use-case (that doesn't run under 'only for use in association with said country') is for allowing user-defined webpages on sub-domains, while not enabling access to cookies for the master domain (e.g. Github moving Pages to github.io vs github.com).
#1 oh, god yes. Variable variables and extract. I hate extract. Although i've only actually seen it in production in wordpress... Though i'd edit this to always do the simplest thing that will work properly. After all, the simplest way to do a SQL query in php that works is to just dump POST vars into a mysql function...

#2 I've actually gotten into an argument with someone who insists md5 is perfectly fine for password hashing if you salt it. Better, in fact, because it's faster. So yeah.

#3 Unfortunately we're also stuck with a ton of legacy code that does this, and would be all but impossible to refactor, and i'm still pointing out to people who post code like this to at the very least sanitize their stuff.

Seriously, if it's even possible, someone come up with an easy way to convert old-style linear SQL statements to parameterized queries or something in PHP.

#4 HTMLPurifier is good, but can be incredibly slow. htmlspecialchars is probably good where you don't need to sanitize data but still provide markup. I personally use htmlpurifier after a markup generator like Markdown, so I can enforce a whitelist against it. Still, YMMV but do SOMETHING.

#5 Might as well say don't use Wordpress either. I have yet to find a framework that makes me as angry as it does. Though granted, I haven't actually used cakePHP yet and I hear Zend Framework is a bit gnarly. Though "Use a framework when you can" is probably a good rule. Though eventually that ends up being "don't reinvent the wheel"

#6 WHO EVEN DOES THIS?!

#7 I don't know. Depending on how many you're sending, it's probably fine for low volume. It's probably right though.

#8 Don't really agree with this at all. In a global file, the body of helpful_function() is in one place, so if I want to change it or upgrade it, it's right there. If I integrate it into the rest of my code, I have to go look for it or else deal with multiple definitions in different files.

Though I will agree that if you're only using a helper function once in your code, then clearly it needs to be integrated somewhere else. My definition for a helper function is that it gets used multiple times in no particular place.

#9 Most php developers work with whatever server their host is using, so this is of limited utility.
There are vim bindings. From the docs:

Use the "Vim: Toggle vim mode" command from the command tab.
That's not fair. You can switch, you just have to decide between whether you want the better software, or (for you) the better hardware.
Hmm, I can not find that neat functions drag-drop layout from video...
Ask HN: Why Game In Browser
In the past few days I have noticed an increase in the mention of "html5 games" in my daily Internet browsing. This led to ask a question I don't think anyone has yet to answer. Why game in browser ? The consoles all have great games and so does the PC. Why is everyone so fascinated by a game in browser when all these better looking and more complex games exist. A coolness factor I can understand but not much else.
Rebasing isn't saying "these commits were made in this order" when they weren't, it's explicitly choosing to make those commits in that order.
Norvig is a great scientist and teacher, but you don't need this. In Residence concept is a throwback to the bad old days of exclusionary education. We have the Internet and great books (Norvig wrote one) and MOOCs the future is egalitarian.
Apple gets most things right in terms of hardware--eventually.
It took them a while to come up with a user-facing camera for Skype calls, as well as high-speed data access. Personal preference is everything in the digital device market, so your criteria are perfectly valid, but not necessarily universally agreed-upon.

I had to fall back on my iPhone 3GS for a couple weeks while my Android phone was at the doctor's, and I was surprised at how viable a device it still is, despite its advanced age, but I simply couldn't believe that the only way I could use it as a hotspot was to physically tether it via USB, or connect via Bluetooth ("And you really don't want to use Bluetooth for your hotspot if you want to pull any large-ish chunks of data down," the Apple Store genius told me.)
Right, it is artificial social barriers set up to exclude the many for the benefit of the few, like the "Ivy League" imprimatur or being in a "good family".
Chrome and Firefox both correct for fixed-position headers to make pageup/pagedn/space work correctly in pages like this one. Some details:

https://bugzilla.mozilla.org/show_bug.cgi?id=780345

https://bugzilla.mozilla.org/show_bug.cgi?id=830479
And finally, I'm genuinely curious... Why are some people so obsessed with perfect preservation of history? Is this some sense of fear/paranoia? In practice I've never found project history to be useful without modification, so what am I missing? What are people trying to preserve?

I think it's a conflation of having something like incremental backups versus having (as you so eloquently put it) a cleaned up log of development. Sure, you can use a VCS to record the minutiae of every little thing that changes so you have a "snapshot" of the code at any point in time. And git will do that if you want it.

But I'd also have to second your thoughts that git is VCS done right, that is, by maintainers. All code will have to be maintained sooner or later, and as someone who has had to maintain plenty of code, I can tell you I don't care at all about every little change that's made. Even when I'm bisecting a bug, I don't want to have to skip over every stupid bit that was twiddled, or see commits that are immediately reverted by the next commit. That's garbage. I want to see conceptual chunks, things that hang together because a human thought of them in the terms of "this is a feature" or "this fixes a bug". Should commits make the Minimum Necessary Change? Yes. Should a new feature or bug fix be split across several commits, possibly separated by other, unrelated commits, because that's the way some sleep deprived programmer thought of them? Do you like to read author's notes about their novels instead of the edited novels?
Starting chrome with --app=https://trello.com works as a standalone app.
VoIP calls from your Android phone via Base CRM
Well, for me it isn’t and I also have a rMBP. I believe you, it’s just that you are likely looking at a software issue. (No doubt that this software issue is likely exacerbated by the requirements of the screen and it sucks either way, but in principle the graphics hardware is up to the task.)
Isn't that just making multiple helper files? Which is better, five files each with one function or one file with five?
You can also take a free course online (https://www.udacity.com/course/cs212) by Peter Norvig with Udacity (https://www.udacity.com/) in case you can't make it to hacker school.
That is basically the point of the GPL: to fight proprietary software ecosystems.
I am gonna chime in here. I think he is absolutely wrong. Apple has amazing software built right in and usually never fails me. Siri can be a pain sometimes but it works 90% of the time for me. Apple Maps are pretty good despite the lack of local transit routing. I have had Google Maps for iOS's turn by turn navigation fail me just as much as Apple Does. I've been an apple developer for a long time now, and just recently started developing for Android. I will say this apple developer tools/API/SDK's are far better than android hands down. I spend more time doing stuff in android that could be done in less code for iOS. The quality of the apps there fore tend to be much better and more polished on iOS than Android. and it shows.
No.

>MD5 was very much acceptable for the longest time.

MD5 was never a good password hash. Neither is SHA1,256,etc. The reason is that they are crypto hashes optimized for speed. This is bad for passwords. What you should be using is the opposite: an expensive hash to compute. This is bcrypt which has been in use since 1999 (and what the PHPass is based on). This is a clear example of "Dont do your own crypto" because you dont know all the details.

>It was even what was implemented by the standard libraries and APIs of the time.

Yes, and this was a mistake. But to be fair DES used to take a full second to compute and bcrypt wasnt invented until 1999. This is why current password hashes use variable rounds so that we can increase the cost as computers get faster. When the algorithm is DESIGNED to be computed quickly it is fundamentally broken for passwords.

This is the reason that LinkedIn's passwords were vulnerable[1].

[1]http://www.itworld.com/security/280813/expert-calls-linkedin...
What is with these preachy headlines? "Why you should..." "Please use ..." "Please stay away from..."

It's very presumptuous to assume that you know the intricacies of thousands of developers' workflows well enough to tell them how to do thier jobs.
That is perfect! thank you!
Should bitcoin’s price be determined by users or speculators?
I have experience with OCaml, and I don't find its static typing to be nice to work with at all.

I like the final result of safety, and how whole classes of bugs are excluded once I get my OCaml program to compile. But the process of getting my program to compile in the first place is pretty painful and not fun.

Then again, writing endless unit tests in a dynamically typed language like Scheme is not much fun either. But I don't have to write the unit tests until I've written some functional portion of my program (or even the whole thing) and am satisfied with its design and how it works. Then I could add unit tests or even rewrite it in a safe language like OCaml, if I wanted to.

As I said elsewhere in this thread, for fast prototyping and sheer pleasure of programming, I find Scheme very hard to beat.
Residual flux is usually enough to start, but if you lose all flux for some reason (when the core is completely demagnetize) zapping it with DC can help restore it.
Respectfully, it doesn't make me feel any better to lose a major feature because it was a reaction to Geohot (who can be obnoxious). It's probably also too long a conversation to get into in-depth however, but I don't actually think what Geohot did warranted that reaction. Like I said, I am the type of person who would do exactly that, so Sony - based on observation, not malice - does not appear to be the kind of company I would prefer to support. I appreciate what the phone crew is doing too, and that's worth acknowledging, but I still recognize that their work, while immediately interesting to me, also puts food in the mouths of people who do not have what I consider to be my long-term interests at heart. That is not blind hatred, it is rationality and voting with my dollar. I have a strong desire to reward people who reward me. If the Sony execs convince me they have my interests at heart, I will put my money on the table again. For now, I think they've got enough from me, and I'd rather not fund my prosecution.
I still dream of world where I can combine a hodge-podge of services that intercommunicate through open protocols. Maybe the integration isn't quite as perfect, but it gets the job done. I'll gladly make that trade-off if I can avoid picking an "ecosystem" the way we pick a sports team.
I agree with most of these except the one about helper functions but I think it was just written poorly (like the whole article). Definitely sort your functions into the files where they are most applicable, but sometimes (a lot of the time) you will have toolkit/helper functions which are globally applicable to the entire app. Where should those go? A helper or toolkit PHP file IMHO.
Hi, I'm one of the founders of Hacker School. I'm happy to answer questions that anyone might have.
Since 2008, yeah. But the only way Apple got the license to sell the music online in the first place was if they DRM'd it, and you have to pay to unlock the songs purchased prior to the switch.
How about that QuantumGuy spam?
No seriously, am I the only one who sees the same story from them like 20 times?
"The PHP Community" comprises massive swaths of developers, from people who have a hard time caring about things like "namespaces" and "encapsulation" to people who think and breath those concepts on a daily basis. It would be disingenuous to make such broad-sweeping and baseless statements about the entirety of a group of people.

Please don't get confused and paint everybody so broadly, it damages us all. There are many people working hard to improve the language and create a more modern environment around PHP.
Nope, I am seeing it too.
Flag it to get him banned.
the guy is retarded
You could just reinstall OS X. It'll just replace the /System directory so you lose no data or settings
I think it depends on the individual and how they see work, how one aspect of their life leaks into another another and so on.

Speaking personally I know that even when I'm stressed at work I still know the difference between tasks carried out as part of my job, and tasks carried out which are potentially similar, and which may be being carried out in a work setting, but which are not work.

Don't get me wrong, if I feel work is going badly, doing something else and being OK at it is almost certainly a good thing, I just think that doing something work related and doing it well is probably better.
The original reason why "skins" earned criticism was that it was perceived as the cause of update delays, back when Samsung, SE and HTC tossed devices out and quickly forgot them. This took hold, and an anti-skin sentiment was entrenched, despite vendors like HTC and Samsung figuring out how to do updates in a much more timely manner.

Since then the argument has seldom had much to do with rational evaluation (just as much of the praise for the terrible Chrome for Android is just some sort of default conclusion). People -- speaking specifically of the tech community, having nothing to do with general users -- just seem to assume that derivations from Google's pure experience = worse. Here's the paradox, however: with each iteration Google is stealing those features from the vendor skins, to great acclaim.
Mobile phones and internet access via mobile phones is a pretty high priority, even if the other items on the list are a toilet, a scooter, or a stove. The rationale is that the phone and internet enables you to earn more and get the other items.
We make an app written as HTML5 CSS3. We made this decision because with limited dev resources it allowed us to write once deploy many. That is powerful. Our app required more testing than a native app, and less.

With a native app if you write your code for Version X of the OS you can be 99% certain that Version X.1, X+1, and X+1.3 are all going to treat it the same. With HTML5 "fixes" to the renderer can mean that what was working will stop working. Or stop looking like it used to.

With an HTML5 app you should be able to write once and deploy many, but Mobile Safari, and Mobile Chrome, that do the renderings on IOS and Android don't handle all JS and CSS quite the same. So you may have slight differences. Much less than you would have with ObjectiveC vs Java, but differences none the less.

PhoneGap makes much of the stuff you want to do with the hardware easier, but not perfect. If you want to send a Text, or make a call or access the contacts you will have to at least touch a plugin, if not write some native code. Most of the time you can just clip a snippet from someone else, but if you want to do anything awe inspiring you will have to still get your hands dirty with native code.

http://tldrstuff.com shows what we were able to do with a single UI Core across Windows Phone 8, Android, and IOS.

We hit all of the platforms, and had less code to change, but our app doesn't "Feel" native. We don't have a UI that looks integrated with the OS, but we have concistency across platforms. Was our decision "right"? Hard to say. We spent less resources which was a major driving factor so I say yes. Did it keep us from being Wavii or Summly? I hope not. But it is hard to say. I don't know if we traded dev resources for glory, or if we saved money we will want and need to be bigger than either.
At least in the Ivy's you can in principle get a scholarship, part time work to sustain you, or gasp take out a lifetime loan, this requires a bit more thought...maybe there's kickstarter funding...hey maybe Peter N. can subsidize a deserving Hacker?
Digital comicbook - pay what you want
A pastebin link is not a source worth reading.

Here is what I found as more official, the oles@ovh.net account is often used for official announcements: http://forums.ovh.net/showthread.php?p=548183

tl;dr: Bad random string generator in password change URLs, 3 customers affected, all Bitcoin related.

edit: OVH, if you are reading this. The 4 character string for receipt protection is creeping me out ever since I saw it. Why not simply use a longer string?
What you're looking for is digital watermarking: http://en.wikipedia.org/wiki/Digital_watermarking
If your workflow is based on very small feature branches, that's fine, but when your branch is more heavy on changes it's good to preserve the merge commit (and be able to undo it).
People’s Cloud architecture and futures in 1000 words
Can someone proficient in French provide a tl;dr?

I have been thinking about renting a server from then so this interests me greatly.
The intent is "don't rebase if you might have a downstream". You're welcome to rebase branches that you push as long as your workflow specifies that they are still volatile. For example, we push unfinished topic branches to our team repo as backup and to allow "passive review" (a pull request is "active review"). Comments at this stage are communicated by bitbucket line comments (or by email/chat) and are handled by amending the topic branch. This unmerged topic branch is rebased any time the author prefers to start from a later 'master' in exchange for re-testing the series.

When the topic is considered complete by the author, she either makes a pull request or merges to 'next' herself. Merging to 'next' signifies that another topic may depend on that branch.

In this workflow, an unmerged topic branch is roughly equivalent to a patch series on a mailing list, but doesn't require email client integration and degrades more gracefully with less disciplined commit factoring and less sophisticated tool use.
You can start here: http://en.wikipedia.org/wiki/Signalling_theory
Hacker School is free.
I was wondering the same thing the other day. I think she's hiding out and probably not sure about her next move. I don't know her at all but I emailed her to tell her that she has done lots of good and will be forgiven if she explains where she screwed up. Nobody deserves to be told they should be raped etc. and I think the only way for some of the public overreaction to stop is for her to admit her own overreaction. I don't think she's a bad person, but this was a bad mistake to make and stay silent after and she might be remembered as only this is if she doesn't speak up. I also worry this has made women in tech appear fragile and oversensitive. I don't like how she's trying to speak for me, a women in tech, because she doesn't handle herself like a woman, she handles herself like a child. Have a tantrum and run away. The longer she waits, the harder it will be for the public to forgive her. Come on Adria, you must be better than this. You seem so smart, please just step up to the plate. Women in tech need you now to return our reputation to what it was before your outburst.
a speculator is also (a certain type of) user.
I felt it was all very hand-wavy

It's as if you expect him to actually understand and explain what his brain is doing ;)
Erm, it's not really that exclusionary. It's just small because it has like eight people on staff and is still in its early stages.

I mean, I'm in Hacker School this batch (which is sadly ending this week) and I live in a hostel in Bed-Stuy for $650/mo. You don't have to be rich. Certainly way cheaper than college tuition for me.
Honest interest from someone who doesn't know: While I know this is happening at least some other places in the US (it happened to the one I went to and to at least one a friend attended), is it largely limited to this country, or are other countries seeing similar issues?
Again in the UK it's worth noting that's not standard - I've had jobs that were 35 hours a week, 37.5 hours a week and 40 hours a week and in each case I've had the variety where that was usually the number of hours you did and where you did a shed load more.
why did you waste your life doing this?
I would but I cannot seem to figure out how.
> I appreciate what the phone crew is doing too, and that's worth acknowledging

Isn't it better to vote with your wallet? If you don't buy it, they'll think "well that open strategy didn't work, so let's try the closed thing Apple and Samsung are doing, those sell like hotcakes"
I also feel like they are much slower in terms of innovation or exciting features. They had everyone when the iPhone was first released as it blew everything out of the water. Competitors have caught up, and in a lot of ways, are starting to pass Apple in various ways.

Like the author of this post, Google apps have replaced most of the common Apple apps I use. I too am looking to switch to Android. If I do switch to Android, this means that staying with OS X and Apple hardware is far less important to me.
What are the chances that we're on the cusp of a golden age of archaeological discovery as robots/drones/etc advance in capabilities and allow us to deeply explore ruins, underground lairs, underwater wrecks, and other remains of past, buried civilizations that previously required human-sized openings / human-supportable environments? Or is it more likely to be continued marginal advancements over time as we keep discovering the next-hardest stuff to discover? (It's been decades since Alvin explored the Titanic, but the technology is getting much better and much more affordable.) Either way, it's an exciting time to be alive.
I'm using an Android phone. For long, I was never satisfied with the quality of software on Android. iOS apps are much more polished and innovative.
Icallme APP
The php 5.5 functions are really nice. Fortunately they can be shimmed into versions 5.3.7+. See:

https://github.com/ircmaxell/password_compat
I use stripe and their API makes it just so easy to do everything already.
Agreed. That is the frustrating part. The education system is so great and their health system is incredible. I really liked living in Paris. It is without a doubt the most beautiful city that I have ever lived in. Plus, I absolutely love the French language.

We are sort of in the same position. We would like to head out to Silicon Valley get some experience there and then move back to France and become involved in entrepreneurship in Paris while our children would finish high school and go to university.
Isn't that exactly what the article is saying?
Why? You mean St. Petersburg, Florida, or you mean that the Russian St. Petersburg is not part of Europe in the common American conception of it?