2,010 karma · joined Dec 27, 2015 (10y ago) · 785 submissions
comment 9y ago · link · parent
Is an in-app purchase required to offer something tangible? Instead of using ads and offering an in-app purchase to remove ads, I'd love to see cheap apps (ie: free or $0.99, without ads) with options for in-app purchases - maybe $3, $5, $10, $20 - that are nothing more than a voluntary donation to pay more for an app I find worthwhile.
If I could volunteer to pay more for apps after using them for an extended period of time (fully unlocked, no trial gimmicks), I'd likely have spent a lot more money than I have thus far. I won't pay thousands for a bunch of crappy used-once apps, but I'd pay a few hundred for the bundle of apps I've kept.
comment 9y ago · link · parent
comment 9y ago · link · parent
The fact remains that app installs are bundles whose base source could come from anywhere. There's no guarantee that what you install from an app store was built from their GitHub. On a non-jailbroken iOS device, you're installing a closed-source binary with no inspection possible. I believe you could build your own Android apk from their GitHib, but how many users would ever do that (let alone rebuild it on every update)?
As I mentioned, I suspect that the first attack against one of the major password managers will result from a commit to the official repository (ex: GitHub). Users are not looking at every commit to GitHub before updating an iOS app to make sure that the latest version doesn't have a backdoor.
At the end of the day, you must trust the app publisher with your unencrypted data within the app. Anyway, for this ssh product, I wouldn't be all that worried. Password managers though... I'm waiting for the first attack to happen, at which point I can point to my HN history to show I saw it coming. ;)
comment 9y ago · link · parent
The entire concept you're aiming to set up is terribly heavyweight and overkill. If you're knowledgeable enough to be discussing VMs and chroots, you must realize that what you are proposing is being careful to the point of paranoia à la tinfoil hat. Those of us who know how to stay as safe as possible via "basic" methods of security should be sleeping soundly knowing we're already in the top 5-10% of consumers. Install OS security updates, use a virus scanner and firewall, don't install pirated software (more likely to contain malware), and you're better off than most people by a significant margin.
You're talking about barely making a dent in the chances of your credentials or sessions being compromised. Private browsing, a separate browser instance, a VM, or chroot makes no difference if you have malware with a keylogger on the host system. Give yourself a break, realize that there is no such thing as "perfect security", and stop worrying so much. The amount of energy you're pouring into "banking safely" is not a sane endeavor. It serves no useful purpose. You could be investing this time and energy into something far more likely to improve your quality of life (eg: family, friends, health, etc.).
comment 9y ago · link · parent
Animated GIFs continue to reign as king. Image hosts' demand to reduce outbound bandwidth costs finally culminated in the .gifv "format". IIRC it's nothing more than a WebM or MP4 video without an audio track, targeted at the html5 <video> element.
What is the real reason why animated PNG was not rolled out years ago when we were all eagerly awaiting its arrival? Was the process encumbered for legal reasons, or was it simply not prioritized as an easily checked off box by the major players (ie: browsers)?
comment 9y ago · link · parent
Note that you are trusting this app with your private key. While other apps are sandboxed away from having access, all it takes is one update to the app to sneak away your private key to any remote server. You have to trust the publisher of this app, including their entire chain of source code repository management and app build/release process. It takes a single instance of a malicious person inserting code that steals all users' private keys (disgruntled employee at this company, or social engineering attack to gain access to commit to their GitHub, etc.).
It's the same reason I am horrified that anyone trusts password managers from for-profit companies. Those companies have unfiltered potential access to your entire online identity, including critical logins like your bank and government services. The app is sandboxed, and the company promises that your (unencrypted) credentials never leave the local device. But it is impossible for them to offer an absolute guarantee that their app will never be the target of an attacker slipping in code that steals information.
In this particular case, you're giving a single app access to potentially expose your key to theft. Less risky than storing your key in the default ~/.ssh/id_rsa, where any app running on your desktop machine has access to read it. Also likely to be less devastating of a loss compared to the compromise of the contents of a password manager.
comment 9y ago · link · parent
A hugely useful feature of postgres, that nearly no ORM/ActiveRecord library makes use of, is the RETURNING clause of INSERT statements[1] (also supported on UPDATE and DELETE statements, though those are less useful).
A write statement with a RETURNING clause returns a resultset just like SELECT, with one row per row inserted, updated, or deleted. In this way, you can request the values of columns whose data was dynamically determined by the postgres server. This is especially useful for sequence (ie: SERIAL, autoincrement) values, as well as other columns with default values (such as an insert datetime, or a column with a value based on a complex expression).
This functionality is amazing, yet is so underused. Try to do a multi-row insert statement with MySQL with an auto-increment primary key, and know which IDs were assigned to your rows. You can't, because there is no guarantee your auto-increment values will be sequential.
Example query, which will return the auto-increment sequence id and default insertion timestamp of the two inserted rows:
INSERT INTO members (name) VALUES ('Foo'), ('Bar') RETURNING id, created_at;
[1] https://www.postgresql.org/docs/current/static/sql-insert.ht...comment 9y ago · link · parent
Without proprietary hardware, there is not enough money in the market for them to bother with a tower in the first place. It would also put the "it just works" aspect of the Apple brand at risk, should customers use 3rd-party hardware components that wind up not functioning properly due to unofficial drivers. Apple has a public image to maintain, and they will not expose themselves to having customers claim that their Mac Pro "isn't working", blaming Apple instead of looking to the 3rd-party hardware manufacturer.
comment 9y ago · link · parent
comment 9y ago · link · parent
The point isn't really to "run more Docker". It's to eliminate as much operating system overhead as possible, so that nearly every CPU cycle and byte of memory usage is dedicated to your containers.
comment 9y ago · link · parent
Yes, and these are the only implementations anyone should ever use. You have to remove the DOM elements for rows above and below the viewport (+/- headroom for a couple of rows). When you do so, you use only two placeholder elements to replace the scrollable height of the removed items (one above the viewport, one below).
Any other solution breaks scrolling expectations and/or uses too much memory, which will crash mobile browsers (particularly on iOS). An infinite scroll library is not a 1-day project. It takes a lot of mindful effort to do properly, and nearly every library author takes shortcuts that don't take these requirements into account on their first release.
comment 9y ago · link · parent
comment 9y ago · link · parent
You either use private keys that remain with the client, or you don't use asymmetric crypto in the first place. They're trying to mix security with convenience by eliminating the security aspect, leaving only convenience with a false sense of security.
comment 9y ago · link · parent
I find it reprehensible that the Gizmodo author (who is using his position as a journalist to encourage criminals) and HN commenters are applauding this hacker as if he's a hero of the people, fighting for a better future. He's directly harming individuals who have purchased products. This is not a friendly reminder to manufacturers to get their shit together. It's some guy illegally connecting to, taking control of, and bricking computers.
I've seen him referred to as a greyhat. No. Everything about this is strictly blackhat. This hacker deserves prison time. What a piece of lowlife scum. It really does sound like a 15 year old getting off on making waves, rather than someone who gives a damn about security.
comment 9y ago · link · parent
Best case scenario you get to build the feature once, based on a spec that fits the needs of a larger pool of customers. This reduces the overhead of more customers inevitably requesting similar features weeks or months down the line.
Worst case scenario you still wind up releasing a feature that only one customer is going to use. At least you've tried your best to fold more customers' needs into a single unit of work. Better to have asked and found no takers than to have not asked and wound up with repeated requests for similar features once it's too late to combine the work.
comment 9y ago · link · parent
It could be argued that the vehicle owner is responsible for ensuring this adjustment is made every time tires are changed, but with no real way for the average consumer to verify or measure the difference, the fact is we depend on the business providing the service to do it for us.
comment 9y ago · link · parent
>> once you do, shell is really, really useful and convenient
Part of the issue here is that a large number of people who think they know how to write safe shell scripts do not in fact have the ability to do so.
There are so many gotchas to learn that it's all too easy to believe oneself competent, while being unaware of just how short one's knowledge falls. It's just too easy to write a script in the shell of your choice that works - until it encounters an edge case scenario that wasn't planned for, at which point the results can be catastrophic. This is true of any programming language, but the tasks for which people write shell scripts (such as massive system-wide filesystem manipulation) makes the consequences of a single-line bug very real.
comment 9y ago · link · parent
That leaves port change, which is better than nothing. But even better than that is proper firewalling with whitelisted IPs.
comment 9y ago · link · parent
In Windows XP, Microsoft locked each license down to a subset of allowed languages based on the country the license was sold in. You can download a "Language Pack" for any language, but these only provide a half-assed superficial layer of support. A "Language Pack" only translates some aspects of the OS, falling short of being the equivalent to choosing that language as a native OS setting with the appropriate license.
A quick Google shows that "Language Packs" are still a thing in Windows 7, Vista, and 10. Perhaps they now offer complete support, or perhaps they are still a crippled aftermarket solution refusing to meet the expectations of any paying customer.
tldr; Many people in non-English countries are using Windows' licenses bought from English markets (such as the US). Even if these users know where to change the OS's language setting, odds are their native language isn't listed as an option.
comment 9y ago · link · parent
Follow the money. "Won't someone think of the environment" is often a smokescreen used by those looking to seek policy changes for their own financial gain. Reading this article does not have me envisioning environmental motivations; I get the vibe of a lobbyist-like group pushing an agenda with their own financial incentive in mind.
comment 9y ago · link · parent
comment 9y ago · link · parent
This move is going to confuse many users, and could entirely derail their growth. What the hell were they thinking, to execute this decision at such a critical point in time? Docker was already confusing enough to get started with, and now there's an additional barrier to entry just to understand what it all means? People right now at least understand what "Docker" is; now people are going to be redirected to something called "Moby", and many will give up out of confusion.
Really bad timing for such a move.
tldr; Am I even supposed to call it "Docker" now? Years of growing recognition of that name, thrown out the window.
comment 9y ago · link · parent
When you get around to desktop clients, ignore the seemingly negative consensus regarding Electron[1] if you think it's the right fit for you. All the negativity I've read about it is from "purists" who aren't specifically singling out Electron; rather they are hating on all non-native implementations. I noticed the mention of Xamarin on your site; never heard of it, but I'd be weary as they seem to be oriented more towards mobile whereas you're looking for a cross-platform desktop solution which is where Electron shines.
If your goal were to be the gold standard for apps, you should be developing using native OS X APIs; the performance you get from a native implementation on OS X is astounding. However, if you do native OS X you're putting yourself in a position to do native Windows and possibly Linux apps, and the collective work required for native-everywhere obviously does not come easy or cheap - particularly if you are doing this as a solo project without assistance from a team.
Electron is a perfectly fine balance for most UIs that are fairly simplistic, which is going to be true even for the most advanced todo-type app. Extra bonus being that if you put in the effort to plan out the Electron app side-by-side with your web/browser-based app, you can share the frontend development between the two, resulting in less overall work.
comment 9y ago · link · parent
Android essentially represents only a subset of phones and tablets. An app like yours is useless to many people unless it has desktop equivalents, as mobile-only access heavily restricts a user's ability to be productive where and when they need it. I might be an edge case, but I use Windows, OS X, an iPhone, and an Android tablet. Your app could be the most functional and usable todo app out there, but a competing product with 10% of your features is going to wind up being my choice simply because I get to use it across all my workflows. Platform support beats out the quality of the app, every time.
Based on your screenshots, the app is wonderful. I simply suspect you have focused too much on launching a 100% complete product instead of starting with an MVP. Obsessing over having a perfect product that launches too late to market, while your competition launches early and takes your cake, is all too common a scenario.
comment 9y ago · link · parent
Forgetting my expectations, the code example you linked is practically the antithesis for ES2015/ES6. You've abused the concept of "const". Your example is terrible, using "const" to define things that should have been defined as separate classes, without having to define so many global "const"s.
Even more critically... wtf are you doing with all those "const" definitions? That code is ultimately worse than what I saw in javascript in 1995. Please don't write code that way. :/
To go to the extreme, my ultimate reaction is that the code you linked is straight up unacceptable. You would fail an interview at my company with that code. It screams "I know ES6", while being the worst example of javascript I've ever seen, regardless of the Ecmascript version. You're overcompensating, trying way too hard to prove that you understand the latest spec. There are limits to what "modern javascript" means, and you have gone too far. A dozen global "const" declaration means you know ES6, but don't know how to write proper code.
tldr; Dial back a bit. Upgrading to ES2015/ES6 does not mean transforming all your code to be completely unreadable unless you know the latest spec. Your code should still look like javascript rather than 100% some-new-functional-language.