Better HN
topnewbestaskshowjobs
Log inSign up

developer2

2,010 karma · joined Dec 27, 2015 (10y ago) · 785 submissions

Submissions

comment 10y ago · link · parent

You're not the only one in the comments talking about buses "rocking". I've never experienced this in my life in the 3 Canadian cities I've lived in. There must be a disparity in the quality of buses depending on who is building them, or the purchase amount a particular city is willing to spend per unit. Combine a low centre of gravity with decent shock absorbers, and there shouldn't be much to worry about.

comment 10y ago · link · parent

I wouldn't recommend the CSS route as you'd be working against a core OS feature. On OS X: System Prefs > General > Show scroll bars > "Automatically based on mouse or trackpad"; "When scrolling"; "Always".

It's possible via something like [1], but the problem is you are hardcoding colors for a specific OS version. The example given in the link is a much darker scrollbar than is present in Yosemite.

I'd just go the route of labeling the example more explicitly. By the way, nice job on the site. Very snazzy, and you didn't make the mistake a lot of people make which is to hijack the native scrolling.

[1] http://stackoverflow.com/a/10100209/2609094

comment 10y ago · link · parent

This certainly doesn't apply to me. I'm one of those nuts who gets annoyed by people taking out their shitty camera phones to record video during fireworks displays. It's so irritating to have everyone with their bright screens whiting out the night vision required to properly enjoy the show. Nobody even watches the fireworks anymore, as they're too busy staring at tiny blobs of color on their phone screen or preview window on the back of their camera.

I've stopped going to fireworks shows. I also no longer go to the cinema, lest I murder a fellow moviegoer for using their fucking cell phone during the movie. If the cinema wants my dollar, they're going to have to install Faraday cages / jammers. Which will never happen, because "Think of the children - what if the babysitter has an emergency!" and "What if I need to call 911!". I can't imagine how people managed to watch a movie back before cell phones were the norm. How in the world did people disconnect from the digital network for 90-120 minutes?! It's unfathomable!

comment 10y ago · link · parent

How do people not understand the problem? There are not "temporarily good" and "temporarily bad" Tor IPs. Every single Tor IP is at any second a possible threat. This is the nature of the network - any Tor client can connect through any given Tor exit node at any given time. One single client can hit through every single Tor exit node in less than an hour's time. When that client is malicious, and any "well-written" piece of software that is using Tor for malicious purposes would be, they rotate through servers quickly specifically to avoid IP blacklisting as much as possible.

Couple that with most clients passing all the same fingerprintable data (browser brand and version, OS version, etc), and you can't uniquely identify different clients coming from the same IP with any level of accuracy.

There is no solution where everyone wins. Simple as that.

comment 10y ago · link · parent

Very cool, though I find it a little odd. If someone is going the extra mile to store the file encrypted, it stands to reason that trusting the service with the initial unencrypted byte stream is a no-go. The file being uploaded over HTTPS, and your assurance that the stream is piped directly through encryption, is of little consequence if you or an infiltrator to your server were to choose to be malicious.

I understand it's impossible to tool the concept to work with a very simple shell one-liner, and without a further dependency like an openssl binary. I like the concept, but I'd rather have to perform a one-time install of openssl or similar and copy a 10-20 line bash script to have true security rather than your current setup that comes with a technically flawed security model.

Obviously you are aware of this, and chose the path of convenience and "good for most uses". Kudos for a clean tool!

comment 10y ago · link · parent

colanderman is correct in his reply. Although RFCs are designed to be very explicit, certain sections are all too often left open to interpretation when vague/ambiguous language is used.

This is not one of those times. It is very clearly defined that PUT, by design, creates a resource at the exact URL provided. The 307 redirect variant mentioned is over-complicating the scenario. The right thing to do is use POST and return 201 Created with a Location header to the created URL.

Just because it works as-is doesn't mean there isn't a better way that strictly follows expected behaviors.

comment 10y ago · link · parent

I don't get it. Google says they're going after the big fish in the industry by claiming they have amazing pricing. The servers look good, I'm ready to jump on board.

$120-$230 for first TB of egress bandwidth depending on where it goes. No thanks, I can get 2 TB for < $20 elsewhere.

These bandwidth costs leave small businesses, and individuals like myself, staying with the smaller competition. I suppose their reasoning is they can chase after that single $400-600 million contract. One major client like that is worth as much as ten million of us little guys paying $50 each. The big cloud providers exist to to serve gigantic enterprises. The rest of us are a drop in bucket and not worth the effort.

comment 10y ago · link · parent

The telling quote from that article is this:

> “Developers took to our service from day one and [gave] Twitter a much more global reach."

Twitter would not be where Twitter is today without outside developers building their company for them, through the creation of tools that users actually want to use to interface with Twitter.

Twitter as a standalone product does not have a future. Every change they make that turns more developers away from the platform continues to reduce the number of users globally who are using Twitter in some fashion. It's a downward spiral. Twitter's demise is inevitable if they continue down this path. Developers should assist them by abandoning the platform in droves. There won't be much of a platform left to work with anyway, so why bother? Let Twitter be the next Yahoo.

comment 10y ago · link · parent

I've never understood this argument. The day you pull a gun on "government" is the day you will be killed on the spot, or sentenced to death row, or sent to life in prison with no chance of parole. You will be permanently removed from your comfortable life, and whomever takes that life away from you will face no penalty for doing so.

So you own a handgun? The government will have assault rifles. Oh, you own an assault-like rifle? The government will have RPG's and grenades. It doesn't matter what you own, the government will win every time. You are guaranteed to lose.

We hear this argument from Americans every single time this topic is brought up. "It's to keep the government in check!". What a load of horse crap. Every time, we only hear repeated "Constitution! Constitution!". Perhaps a little rational thought is required to comprehend that a document written ~227 years ago is probably out of date with modern reality when it comes to firearms.

It's a combination of amusing, frustrating, and bewildering to witness a large number of Americans' behaviour whenever this topic resurfaces. Honestly, most of the rest of the world out here just can't understand how you people are so goddamn self-indoctrinated into keeping your guns. There is no reasoning that I can apply to even begin to validate the concept that guns in the hands of citizens is a good thing.

comment 10y ago · link · parent

This is due to inconsistency from Github on the labeling of the issue text. That issue has no comments - the header shows "lostthetrail opened this issue 7 hours ago · 0 comments". The first "comment" you see is meant to be the original issue text, not a comment.

And yet... the header for that text says "lostthetrail commented 7 hours ago". Github repurposed the commenting system to stand in for the issue text itself. Side effect of a lazy implementation.

tldr; The first "comment" isn't a comment. It's the issue itself, and is where you add your reaction for the issue.

comment 10y ago · link · parent

Regarding machines, we already have that example set in stone. The explosion of computers in the 90's had many thinking we'd have to work less hours because so many office tasks would be finished far more quickly. Of course that didn't happen; the efficiency gain just meant we piled more work on every person who's job was made easier by a computer. In cases where there wasn't enough work to keep the existing number of employees busy, we laid people off and had fewer people working for the company performing the same amount of work (or more).

The number of hours expected of an employee is hardcoded for employers. Whether it's 20-something hours or 40 hours depending on your region, this is essentially a fixed number that will probably never change.

comment 10y ago · link · parent

I grew up on welfare, in a single parent home. Parent chainsmoked 2 packs a day, which barely left enough money for decent food let alone toilet paper. And yet, somehow, we stocked up on toilet paper when it was on sale.

comment 10y ago · link · parent

I read the article from top to bottom, and these questions aren't exactly answered. I got the impression it was a group of mostly artistic types getting together for conversation, essentially bringing social networking back to the real world instead of through screens.

How the hell this was supposed to be a "startup" that expected to grow into a profitable business is beyond me. In any case, Jeff Hull inherited many millions of dollars, blew a chunk of it on a personal pet project, and then had a hissy fit when he tried to monetize it and met resistance. Classic child-like behavior of inherited wealth, completely detached from the real world where the rest of us have to work hard to earn a pittance.

comment 10y ago · link · parent

>> The most prominent example is playing instruments. Like half of kids learn to play an instrument at some point, but hardly any of them keep up with it when they are adults.

Why do you think so many fail to keep up with an instrument as an adult? Oh that's right, upon entering adulthood we figure out that we have to dump 40+ hours into earning pennies while the company we work for earns millions.

Earning even a basic income is the real time sink. What most people do all day long, at least 5 days a week, is the real busywork. Society would be much improved if every adult spent a good chunk of their time in the arts. Yet we continue to pretend that if every adult doesn't spend 40 hours doing corporate busywork that the economy would fall apart.

comment 10y ago · link · parent

I find the whole process to be hilariously ineffective.

1. Search Google for any movie name followed by "free online". The first page of results are all pirated streaming sites, and they work. So, what did the takedowns accomplish? Exactly nothing.

2. Right at the bottom of the first page of results is a link to LumenDatabase.org with the list of all URLs removed. So even the URLs which were "removed" from Google results were simply relocated beneath a single additional click from Google's search results.

The whole thing is just a waste of resources. It doesn't even cause a dent.

comment 10y ago · link · parent

That makes no sense. If hell is for eternity, why would any religious nut care whether the criminal is executed sooner rather than let to rot and die in prison later? The end result would be the same.

comment 10y ago · link · parent

Let's not forget it's not exactly Apple's fault that some developers remove their apps from the App Store. While it's annoying, and we can wish all we want that Apple would make apps permanently available once downloaded, it's really the developer of the app that has failed you, not Apple.

comment 10y ago · link · parent

Not sure how this would be bad for the defense and good for the prosecution?

Defense attorneys would appreciate jury members refusing to convict their clients for ridiculous laws. I imagine every defense out there would absolutely love to have the possibility of jury nullification laid out on the table.

comment 10y ago · link · parent

For those using nginx:

All nginx versions >= 0.8.19 (Oct 2009), and backported to >= 0.7.65 (Feb 2010), have SSLv2 disabled in default configuration[1][2]. Versions >= 1.9.1 (May 2015) also disable SSLv3 by default, which is not affected by this particular attack but suffers from the POODLE attack.

If you are on a version of nginx covered above, just ensure your nginx configuration does not have an "ssl_protocols" directive explicitly enabling SSLv2 (and SSLv3 for POODLE).

If you are on an older affected version of nginx, check your configuration to make sure you exclude SSLv2 (and typically SSLv3) with something like:

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

It is not necessary to worry whether your nginx is built against openssl 1.0.2g, as this release simply disables SSLv2 support by default. If you've covered your bases with your nginx configuration, the openssl update is not strictly required.

[1] http://nginx.org/en/docs/http/configuring_https_servers.html (versions listed at very bottom of page)

[2] https://drownattack.com/nginx

comment 10y ago · link · parent

> stupid laws that make drugs like alcohol and tobacco legal, but make drugs like marijuana illegal

> I explained that almost everyone breaks the law now and then, on purpose.

Forget the Hitler thing, which doesn't really affect your judgement. I'm surprised the prosecution didn't dismiss you for statements like these. While you did say you'd convict based on the law, you're clearly sympathetic to people being tried for bullshit - which the prosecution obviously doesn't want.

Either way, no jury for you. :)

comment 10y ago · link · parent

Extremely so. For one, it actually jumps the scroll position twice in a row when you click. Secondly, the scroll should be performed first, followed by the appearance of the dialog once the scroll is complete. Finally, it would be better to "scrollTo" the position rather than an immediate jump. This way the user has a sense of where the scroll went to relative to their starting position.

I don't believe this format works well with a scrolling page to begin with. It makes a lot more sense on full-screen apps, or on fixed navigation menus. If you really need to show a dialog further down the page, you're better off having the trigger for it be down there - not further up the page.

Most importantly, don't overuse it. Even the most complex situation should not need more than 2-3 of these. Beyond pointing out extremely critical elements to interact with, the page or app shouldn't be that difficult to navigate.

comment 10y ago · link · parent

Unless Microsoft doesn't allow range requests, any half-decent client will happily resume an interrupted download. This includes browsers and command-line utilities like curl and wget.

Edit: Just tried one of the files with curl. They resume just fine, and the download URLs aren't even tied to a session or IP. I copied the URL from my local browser and used curl on a remote server. No problem. :)

comment 10y ago · link · parent

It's likely that their SMTP server accepts messages with an SMTP "MAIL FROM" command and/or "From" header address that belongs to the company's own domain without requiring authentication. The attacker then adds a "Reply-To" header so that replies will be sent elsewhere (likely a throwaway free email account).

This shows up in email clients as "From: legit.name@example.com". When the recipient replies, they don't notice that they're sending a reply to a different address than the one their client claimed was the sender of the original message.

Receiving SMTP servers need to be configured to require SMTP authentication for messages claiming to originate from the company's own domain.

comment 10y ago · link · parent

Good luck with the link still being usable in a month or a year. There's a reason we use domain names for sharing. Not only because they are friendly to read and remember, but also because IPs are typically far more transient than domain names.

The IPs behind my projects have changed dozens of times over the years (new server, changing hosting provider, adding a load balancer, etc.). A simple DNS change allows the same domain name to follow the project.

I'm actually surprised HN permits links to IP addresses. While links posted here are not guaranteed to point to the same content in the future anyway, it is more likely that an IP address will change before the project is taken down entirely. Search engine posterity and all.

comment 10y ago · link · parent

I'd like to point out that this formatting convention is not a widespread standard. "You should" is biased towards making life simpler for a small number of people who have used the format before, while complicating and bloating your API responses - for both the developer(s) and consumers of your API.

Consumers are now expected to add a full library to their project to parse/understand the JSON responses. Also, implementation overload for many languages: http://jsonapi.org/implementations/

comment 10y ago · link · parent

10 years ago I contacted a small company (7-8 developers) across the country from the city I was living in, that "wasn't hiring". A week later, after a simple coding exercise and a few interesting hours on the phone, I was scheduling my all-expenses-paid relocation.

That relocation was the best decision of my life. And it started with contacting a company that originally indicated they were not hiring.

If you're interested, you make contact. Just don't expect that it has to lead somewhere. It never hurts to try.

comment 10y ago · link · parent

Except that the authorities do want companies to use bad crypto. The only reason they've had to fall back on demanding an attack vector is because they haven't yet been able to force their preferred solution (bad crypto) to be implemented.

Demanding an attack vector should be seen as the same concept as demanding bad crypto, because the intent behind the request is the same. They're trying to convince us that these are different requests, but the end result is the same. A workaround to attack good security is the same as having bad security to begin with. I can't imagine why anybody would think that "bad crypto" and "attack vector" are not very nearly the same thing.

comment 10y ago · link · parent

Most adults do not consider having a "room in a shared apartment" to be adequate. A living wage allows you to rent/mortgage a place of your own. What I'm hearing is that $50k is not a living wage.

comment 10y ago · link · parent

Haha, I suppose that's true. There will always be the few tidbits where there is enough evidence to make factual statements about what is found at a site. The rest is going to be speculation; some of it based on educated guesses, and some of it pure imagination.

I can understand the wonder and excitement that comes with imagining how the pieces fit together. Everyone likes to dig (pun!) their teeth into a mystery. If an article is going to contain more than the proven facts, I just wish they'd lay out multiple possible scenarios rather than a single "it was probably this one convoluted option".

Then again... as long as they explicitly label all the conjecture with "maybe/possibly/probably", they're at least not being outright misleading - which leaves room for each person to wring their own brain for other options. I guess I want the people who know the most about these things to lay out more reasonable possibilities for me, instead of making me put in the effort to imagine it all for myself. :D

comment 10y ago · link · parent

>> In the fire, possibly started by a cooking blaze that got disastrously out of control

>> A skull... possibly originally casually buried in the river bank just outside the door of the larger house

>> The wheel... may originally have been hanging on a wall.

>> the people of this settlement lived on and in the water and were rich enough to all but ignore the abundant food a few feet away... Instead the bones and food traces reveal that they were eating quantities of lamb, along with pork, beef and venison, and various grains.

What is with the overabundance of conjecture with no evidence to back up such claims? Whose first impression of a settlement burned to the ground is that it was likely caused by an out of control cooking fire? Why speculate about a wheel hanging from a wall? A skull is assumed to have come from a burial? The lack of fish bones implies they ate no fish?

I'm curious how much of this comes from the archeologists versus the writers of the article. When I hear "settlement fire" and "skull", I imagine an assault on the settlement involving an intentionally set fire. But I wouldn't publish my baseless speculations in an attempt to fluff the number of words in an article.

1
2324252627