Better HN
topnewbestaskshowjobs
Log inSign up

developer2

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

Submissions

comment 8y ago · link · parent

Seconded. I'm a hardcore fan of Apollo, it's an incredible app.

comment 8y ago · link · parent

No company truly wants its customers to be made aware of recalls for its products. A business has very little to gain (some goodwill), but much to lose (a lot of money). They put in the minimum effort mandated by law, and have no incentive to open themselves up to increased recall numbers. Companies are not going to willingly provide APIs that allow third party companies to simplify or centralize registrations.

Thus, a company wanting to do this would be left performing manual data entry or automated scraping of existing sources. It would also be nice to notify users of products which have multiple reports of a defect, before recalls are put out. However I suspect companies would be quick to sue over unsubstantiated claims.

Monetization of such a product would be limited. Very few people would pay for this service. You're essentially left with building a profile based on a user's purchased products, used to sell ad space and/or push affiliate links. With how infrequently a user would be opening the website or mobile app, I can't imagine the income being enough to sustain even a small startup. Assuming there are existing public catalogues of recall information that can be scraped, I could see a solo developer doing this as a quick project for some side income. I don't see this as being a full startup due to, as you put it, "vendor compliance".

comment 8y ago · link · parent

Because every time someone rants against PHP, they do so in the same way you've done, saying things like "If you are programming in PHP, you owe it to yourself to explore some of the many options that are out there".

All you do is insult the language, and subsequently, the intelligence of those who continue to use it. Many of us have looked at - and heavily used - other languages, and choose to come back to PHP for many (not necessarily all) projects. Your assumption that we're all morons who program in PHP because we're too stupid to try other options is misplaced. You looked elsewhere and preferred what you found. Good for you. Some of us who looked elsewhere found that every language has its faults, and that PHP does the job just fine. Particularly since the performance improvements in later PHP 5.x versions, and finally the leaps and bounds gained in PHP 7, the language is more than good enough for most tasks.

I've done projects in C, NodeJs, Ruby, and yes, even Python. Python fanboys in particular seem to think their use of the language is an indicator of superior intellect or programming ability. The whole "I am smarter/better than PHP developers" gag is really, really, old.

comment 8y ago · link · parent

DRAM and NAND shortages aren't new - the current supply problems started in 2016 and got progressively worse throughout 2017. The smartphone market is to blame - or rather, its consumers who upgrade/replace their phone every damn year. Apple alone drains the entire supply chain every time they ramp up for the next iPhone; add to that all the Android manufacturers, and there's just nothing left for desktop.

If more people kept their phones for 2-4 years instead of expecting an upgrade every 9-12 months, we wouldn't have this problem.

comment 8y ago · link · parent

>> come back and visit us in the next 5 days and take 15% off your order

Ugh, I hate this tactic. I understand why it's done - a customer is expensive to acquire, and it's cheaper to give a discount to an inactive customer than to acquire a new one. Yet it effectively rewards non-loyal customers, while loyal customers who provide a steady stream of repeat business are taken for granted. How many businesses who use this strategy also email their best customers with "Thank you for your loyalty - here's 15% off your next order within [some reasonable, non-manipulative, number of days]"?

comment 8y ago · link · parent

The technology should be good enough that every single meter of road is considered a "likely crossing". There shouldn't be an iota of difference between a supposed "likely crossing", versus any other section of road. If the sensors and decision engines aren't good enough to be driving under normal conditions, then perhaps they should not be on the road (yet).

I think it's absurd these vehicles are on the road today. The process is being rushed for the financial gain of corporations. No matter how far up the list safety of these cars is, it's not priority #1. The greed of companies vying to be the first to stake a majority share of this new market is the only real priority.

comment 8y ago · link · parent

Not comparing to Cloud Armor, but the $200/month minimum to bring one's own tls certificate. That alone puts Cloudflare squarely on the list of unusable options for any small project or business that is running their entire production infrastructure on less than $100/month. Also, the inability to specify cache expirations below... what was it... 30 minutes or 2 hours? Again, forced to pay too much for one of the core features of a CDN.

comment 8y ago · link · parent

This is the truth. The average person does not care about data mining. It's a non-issue for them. And no, it's not a matter of intelligence, or that they need to be educated on the matter. Leave them be. Ignorance is bliss - in a positive sense.

If you're going to teach others anything about the perils of the internet, focus on the truly serious things: how to avoid phishing scams targeting bank accounts, fake virus warnings, etc. Everything else sounds like tinfoil hat material because, for most people, that's pretty much what it is.

comment 8y ago · link · parent

Tangerine (Canadian bank) only offers a choice between exactly a 4-digit or 6-digit password. These are numeric digits, not alpha-numeric. Yes, this is for online and telephone banking, not just one's debit card PIN - though I'm sure most people use the same 4-digit code for both.

These may as well be stored as plaintext. What would be the point of hashing when you're dealing with a mere 10,000 permutations for 4-digit passwords (or 1,000,000 for 6-digit)?

comment 8y ago · link · parent

A hack against your password manager isn't going to be targeted at you as an individual. It will happen to one of the major companies who develop the software. The security of the product is only as good as the weakest link at the company.

Where is their source control stored - GitHub? How strong are the passwords of the developers (and managers, etc.) who have access? Do they use two-factor auth? How easy is it to social engineer one's way in, and add a commit to the app so that the next release decrypts all credentials and sends them to the hacker's remote endpoint? It's probably 3-5 lines of code to sneak in. The possibility of a "disgruntled/ambitious employee" exists, too.

There's also the browser extensions. I know web extensions are sandboxed, but does that include preventing a malicious extension from capturing the keystrokes from your password manager's master password text box? Each of these companies also has a website UI where you can view/manage your passwords; they load data into local storage - thus not being decrypted on the server side - but these are still vulnerable to cross-site scripting attacks, etc.

I think it's inevitable that one of the major password managers will wind up being compromised. Such an event would be catastrophic.

comment 8y ago · link · parent

>> would be an issue for my other team members[...] I'm use to its workflow but onboarding game devs hate it. I have to hear everyday lets move to[...] I personally like coffee-script but I swallowed the medicine on this one[...] I think of code completion and seeing errors right away as crutches[...] make it much easier for juniors and lower the bar

That's an awful lot of "I am very smart" for one comment. You shouldn't need to repeatedly insult your fellow team members to express your thoughts on such matters.

Preferring vim over an IDE isn't enough to convict, but when someone starts associating the use of an IDE with "juniors", the verdict is guilty. Your choice of tools should be about getting the job done efficiently - using vim isn't a skill that demonstrates seniority or superiority.

>> I really wanted to contribute[...] put great effort to join but Richard was useless in responding[...] I asked month over month[...] I would have contributed significantly[...]

Classic "nice guy". You might have taken the hint after the first few weeks - or months - that he wasn't interested. I'm sure that, upon reading your comment, he would be relieved to know he didn't invest his time onboarding someone who would have sucked the life out of the project.

Source: You sound like me 10 years ago. Right down to the perspective on vim.

comment 8y ago · link · parent

Python actually does have a kind of "anonymous function" feature, at least in a way that replaces most common use cases. It just happens to be bundled in a unique Python-like way. A lot of people don't seem to know about @contextmanager (contextlib.contextmanager) - it's what provides the functionality for "with" blocks. You've probably seen with() used with file operations (open file, run block of code, file is closed automatically at end of block), but I suspect many developers are unaware that you can create your own context managers.

While they are not true anonymous functions, I have yet to stumble on a scenario where a context manager did not fit the bill. They're easy to create - nothing more than a try/except/finally with a "yield" call to execute... you guessed it, essentially an anonymous function block. It's a little mind-warping the first time through, but it winds up creating clean code. PEP 343 is a good source to learn more.

comment 8y ago · link · parent

There's no chance the U.S. military doesn't have the ability to selectively knock GPS out nation-wide. Odds are the American government has infrastructure in place to do the same in dozens of countries worldwide. GPS would never have been made available to the consumer market without this level of absolute control having been put into place.

It's frightening to see how casually the American government takes disrupting GPS. The fact is, there is risk in performing these tests near civilian populations. It takes one pilot - or someone else who depends heavily on GPS - to make a fatal mistake. It's not physically necessary to black out GPS for training... just take away the trainees' hardware, or program the firmware/software to act in the desired way. "How do we train our troops not to rely on GPS? I guess the only way is to disrupt GPS for a thousand miles around the training site!"

comment 8y ago · link · parent

There's a lot I like about Python, but there are a couple of things that they've gotten so horribly wrong.

1. The KeyboardInterrupt exception for SIGINT. Whoever came up with that idea destroyed the credibility of the entire interpreter. Python falls flat on its face to me because of this one design choice. It's impossible to write a Python script that will not dump a full debug stack trace if you send SIGINT (ie: Ctrl+C) before the first line of your script is reached. That is, even if your very first line of code is a try/except block intended to catch KeyboardInterrupt, a SIGINT early on will still fail spectacularly at some point during Python's internal startup. Python runs a lot of code before turning control over to your script and it's simply not possible to, from within Python, catch these signals.

In order to provide a professional piece of software to clients that will not dump debugging gibberish to the terminal, one must wrap every single Python script with a shell script or small C binary that catches signals and proxies/rewrites SIGINT as SIGTERM, in order to avoid KeyboardInterrupt entirely. Something as fundamental as signal handling having been botched to this extent is frustrating.

2. The asyncio module. They screwed up the async implementation in the earlier phases, and the hacks that have been implemented in an attempt to improve the situation are grotesque. The state of async in Python is confusing enough as it is, but if you happen to run into one of the edge cases where the ways in which they've hacked the core of the language to make room for the async stuff affects you, you're in for quite the ride.

comment 8y ago · link · parent

The examples you list are the few obvious, controversial types. The majority of content creators who have been getting demonetized over the past year or two do not have a single shred of "bad stuff" in their content. There are people losing their entire income because they don't fit some algorithm that has nothing to do with (properly) categorized - or reported - content.

It doesn't help that there are apologizers who spread the idea that YouTube is somehow targeting "the bad stuff", when that is a very small fraction of what is happening. Everyone focuses on the sensationalist garbage reported by the media; meanwhile all the small channels that are playing by the rules are being left out to dry.

comment 8y ago · link · parent

How about this for an idea: YouTube dictates to advertisers how things work, and not the other way around. This woven tale about how advertisers will abandon YouTube en masse if they're not in full control is such a load of baloney. If YouTube firmly planted their feet and said "tough luck advertisers - we dictate the terms", any company trying to "abandon" the platform will be back within a month upon seeing massive drops in their acquisition and bottom line.

Advertisers don't have a choice - they need YouTube. YouTube could easily dictate this relationship. They choose not to.

comment 8y ago · link · parent

Unfortunately the iOS support is a sham. I tested myself, and the rumors that iOS does not randomize MACs turns out to be true. Not only does it not simply change over time, it doesn't even change when you restart the device. I walked around for a week, and my MAC never changed.

Apparently, if it ever works at all, you have to run settings that nobody uses - including, iirc, not being connected to a cell tower. I used to spread the same FUD of "iOS does this!", but the truth is it's a lie.

comment 8y ago · link · parent

Wait, you have a recovery code today?

I have an "RK-" recovery key in my backup from when I set it up a couple of years ago. However today I see no reference to recovery codes whatsoever, either on my account or during attempts to recover my password. I just now stripped two-factor auth entirely, and set it up again from scratch. There is absolutely no reference to a recovery key anywhere[1].

It must depend on which devices and/or OS versions one is running. I've got a 2013 MacBook Pro on High Sierra and an iPhone 6 on iOS 11 (latest software on both). I also have a confirmed phone number. I no longer have the option for a recovery code with two-factor auth[1].

[1] https://imgur.com/a/pPJe9

comment 8y ago · link · parent

It looks like Apple ID "RK-"-prefixed recovery keys are no longer a thing. I have one stored in my backup, but none of the "forgot password" scenarios asks for a recovery key anymore. As a further test, I just stripped two-factor authentication from my account, and set it up from scratch. No mention of a recovery key this time around, and no section for it in the security tab[1].

Recovery keys are gone. You must either have a 2nd device, or be able to receive a text or phone call to a verified phone number. Failing these, the last resort is now an "account recovery" process that takes a few days to reset via what looks like verification by email and confirmation of personal details.

I'd rather have retained the recovery key option, but I imagine this system was removed because the majority of consumers weren't actually storing the key. Of people who at least stored the key, far too many probably only put it on their Apple device(s), which is of course useless.

[1] https://imgur.com/a/pPJe9

comment 9y ago · link · parent

It's possible to never pay a dollar in League, and wind up owning all champions. The problem is how long it takes to unlock them all with the free in-game currency (previously IP, now Blue Essence). It takes 3-4 years of near-daily play. Once you own all to-date champions, there is no monthly real-money requirement - you earn enough free currency to instantly buy new champion releases.

Some people, like me, spent a ton of real money to unlock all champions faster. According to Riot, it's not "necessary" to have all champions unlocked. However if you don't own a champion, you cannot pick that champion early in the team drafting phase for someone else to play (swap/trade) - even in ranked. It is a disadvantage, though admittedly minor - a 5 man team that owns all champions has more flexibility in drafting than an enemy team that has holes in what they own.

comment 9y ago · link · parent

From bitwarden's home page[1]:

> Since all of your data is fully encrypted before it ever leaves your device, only you have access to it. Not even the team at bitwarden can read your data, even if we wanted to.

I wish all these password manager companies would stop telling this lie. Your passwords may be encrypted on their servers, but since they provide the clients, an attacker only needs to slip in a single commit to any of the clients' source code repositories. In less than 10 lines of code, one could decrypt every single password locally on the device and then ship the payload out to an external API.

All it takes is a single disgruntled employee. Or one of these companies to be coerced by government to backdoor the clients. Or a third party attacker to social engineer their way to having write access to the source code repositories.

bitwarden, like their competition, offers a web-based UI for managing your passwords. If done properly, the decryption of your stored items is performed directly in the browser with javascript - not on the server side. And yet, this web client is another target for attackers to attempt to compromise.

Unlike the popular proprietary options, at least bitwarden has an open source option. This means you could audit it yourself, and compile the software for your personal use. Of course, you have to audit every update to make sure you're not pulling compromised changes.

tldr; No password manager provided by a 3rd party company is ever completely safe to use. You're trusting that company to never betray you. Do they monitor their source code to the point where ever single write operation is explicitly approved by world-class security experts? Probably not.

[1] https://bitwarden.com/

comment 9y ago · link · parent

Mozilla absolutely made the right decision to dump a decade's worth of legacy code to improve performance, and make the future happen now. Let's be real: had they supported legacy extensions, extension developers would ignore porting until Mozilla finally said "that's been long enough, we're removing legacy support". The result is simply that the rough transition happens now instead of a couple of years down the line.

Every popular extension will be ported within a matter of weeks, worst case scenario 2-3 months for those that are unabanonded, but less popular. If you are missing a deal-breaker extension, then don't upgrade yet... how is that a bad thing? "But I want the latest and greatest, super fast Firefox now - with all my extensions!". Talk about wanting to have one's cake and eat it too. The new Firefox wouldn't be new and improved if it was backwards-compatible with the stone age.

comment 9y ago · link · parent

Thank you so much. That change, combined with the switch to the Light theme, makes Firefox so incredibly better on macOS.

comment 9y ago · link · parent

Basically, this "cramming up all of the components tighter together" is worth being impressed with. We're at the point in manufacturing where every square millimetre of space saved on a logic board, or within a collection of components, is bringing us ever closer to the limit of what we are capable of producing based on our current understanding of physics.

Aside: I'm excited to see how far technology advances in my lifetime. The general consensus seems to be that we are approaching some supposed limit. I'm hoping this turns out to be wrong, and that our technology continues to experience "horse => car" types of leaps. All I've been reading is that we only have "faster horses" in our future. With any luck, this kind of narrative is short-sighted and naive, and we have some incredible technological advances to look forward to.

comment 9y ago · link · parent

I took the liberty of scanning very quickly through your post history. We live and work quite far apart. Seems MLS pain is universal. ;)

comment 9y ago · link · parent

I would also appreciate an answer to this question. It's not about "why'd you reinvent the wheel", but rather that I suspect you must have found chart.js while searching for options and decided something was missing or could be improved. I am interested to know how they compare, to have an idea how seriously I should look into this new option.

comment 9y ago · link · parent

Fuck MLS. It's supposedly a "standard", but every single MLS API endpoint is completely different. As in, there are very few recognizable similarities between any two feeds. The data structures are not actually standardized whatsoever; one MLS will have all listings in a single "table", while another will have 12 different tables that you have to figure out how to parse and/or join. There is some lingo that is fairly standard because of the industry, but the way the data is organized and represented is wholly unique per MLS. And there is no documentation other than an (optional, usually 2-3 word!) description on each field providing little insight.

The protocol used by MLS servers is kind of standardized... expect not really. There's no single way, for example, to accomplish a full download of an initial dataset. Some MLSes let you order by id with an offset, so you can paginate properly. With others you must use date ranges - but you're assuming that a create or update timestamp is actually meaningful, and surprise - they are not. Some let you run multiple concurrent connections so you can increase data throughput, while others only permit one slow connection that makes it takes 6+ hours to download their entire database.

Finally: good luck figuring out when a record is flat out deleted. The MLS may have a separate table where deleted records are supposed to go, but that table is always empty. The MLS nukes data rows with no way for clients to detect the change other than by downloading the entire database from scratch to find the gaps. This requires running hours of queue jobs PER MLS every 24 hours. It's so ridiculously inefficient.

Yeah... fuck MLS. End rant.

comment 9y ago · link · parent

It's exactly this. YouTubers are being given phones to drum up some uneducated noise to dilute any criticism from technical reviews. YouTubers only care about view counts and their popularity, and most will just shout about how shiny it is without putting in any effort to find anything to criticize. Apple needs some hype to convince consumers that the iPhone X's notch design, and Face ID not working in sunlight or sitting on a flat surface, aren't deal breakers.

That notch is the most gimmicky thing to ever make it past the concept phase for a modern phone. The tech reviews I've seen so far are showing off just how broken existing apps are because of the notch interfering. Of course all the "big player" apps will be fixed within 1-2 months, but there are thousands of apps that will never be updated to support the X's notch.

Apple needs to figure out how to embed these components beneath the screen. Yes it will be an incredible technical challenge; but that's what we're really waiting for: 100% screen space. Until that is possible, they shouldn't have pushed such an unfinished concept as being "innovative".

1
567
27