Better HN
topnewbestaskshowjobs
Log inSign up

developer2

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

Submissions

comment 9y ago · link · parent

Yep. It's a sad state we're in. It's just too risky to pay more for an app from a publisher who is not well-known. All too often, installing an app for $3-5+ is disappointing when you discover the app is not what you were expecting. I rarely pay for apps, simply because I'd have paid thousands of dollars over the lifetime of a single phone, only to uninstall 95% of apps after discovering it was not for me.

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

Surely if you're using core Swift, or core Objective-C, the runtime is a shared lib shipped with the OS? I can't imagine that every single app built on Swift or Objective-C is bundling the exact same foundation? That seems so unlike Apple to miss such a massive optimization to reduce the download size of nearly every app. I can understand there being exceptions with some apps that use custom setups, but surely the majority of apps are written in XCode using exactly what is provided as a toolset.

comment 9y ago · link · parent

>> everything you'll need you can find on their GitHub

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

>> this is terribly heavyweight and overkill when I don't need a full blown VM

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

Wow. I remember the initial hype for animated PNGs, meant to replace animated GIFs. We all expected it to happen in a matter of a few months, and that must have been nearly a decade ago now? It took 2-3 years before I simply gave up on checking to see if support had rolled out. To this day I have never seen an animated PNG in action.

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

>> Every application on the phone is sandboxed

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

>> cool things you possibly don't know about

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

People overestimate how a modern Mac Pro tower would work. A Mac Pro tower is not going to permit hackintosh-style hardware builds. They will force the use of whitelisted "supported" hardware, and sell it all themselves with their standard high markups.

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

Have you ever used Rancher OS? Not trying to sound like a judgemental jerk, but the arguments you are making are clearly from someone who is commenting based on a preconceived notion of what it is, without knowing what it really is. Instead of combating others in comments because they can't succinctly describe it to you, go research it instead. If you don't care enough to look into it, you shouldn't be caring to argue in the comments.

comment 9y ago · link · parent

It's nothing like that at all. It's just a minimal operating system with a small install image. The only special thing it does is replace the init process with a system-docker process to reduce the overhead of resources used by the operating system.

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

>> Are there implementations of infinite scrolling that delete DOM elements outside of a specified range of the viewport?

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

To be explicit for anyone who gets confused with date-based math: your "joined in" year minus the year of your birth needs to be at least 19 to be safe. If it shows 18, you may have been 17 instead of 18 when you joined.

comment 9y ago · link · parent

Are "mess" and "unknown" the same bin? I would expect that they get grouped together as a "human intervention" bin. It would be very surprising if you went so far as to train the neural net to recognize pieces stuck together as something different than an unrecognized piece.

comment 9y ago · link · parent

The reason people are taken aback by their service is that if they're going to store the private key on the server, then they shouldn't even be using client-side encryption to send the backups in the first place. It doesn't provide an additional layer of security to use asymmetric crypto the way they are using it. So why do they have it at all? To make their service sound more secure than it really is. The service is essentially using false advertising to trick nontechnical users, and that is what turns people off.

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

No. The product is going to be out of warranty, the manufacturer is going to refuse to replace the device, and suddenly a customer is out hundreds or thousands of dollars out of their own pocket. IoT devices are not cheap.

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

A mitigation strategy here is to delay implementing any new feature for a single customer, in order to query your other customers as to whether they need the same or similar feature. Oftentimes you will find other customers who are interested, even if their exact needs are slightly different from the first customer's request.

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

I think ticketing for 5 over would open up the floodgates to a debatably valid reason/excuse: a speedometer only reports accurate numbers when tuned to the wheel configuration. It's common enough for tire sizes to be changed on a vehicle, especially in regions where larger summer tires are swapped out for smaller winter tires, without the speedometer readings being adjusted for the new tire size.

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

>> need to know how to write safe shell programs

>> 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

If I understand correctly, fail2ban has no effect if you disable the use of passwords. If you force the use of ssh keys, fail2ban becomes completely superfluous.

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

Blame Microsoft for creating this problem. If you have a Windows license from one country and use it elsewhere where the nationally recognized languages are not the same, chances are you cannot set Windows to use your preferred language.

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

The topic and language of the article makes it sound like the author, or the entity who commissioned the article to be written, stands to benefit financially from resold parts or refurbishing. The tone is too strong for something that is not a big deal, except to those who are in the business of profiting from the reuse/resale of hardware components.

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

I think expecting your users to have a GitHub account to leave comments is a terrible idea. Normal non-developers do not have, do not want, and should probably not be enticed to, make a GitHub account for purposes that have nothing to do with GitHub. Not to mention that unless GitHub themselves state that this is perfectly acceptable, they could take steps at any time to counter/block such usage.

comment 9y ago · link · parent

Terrible timing for Docker to do this. It may not be much of an underlying change, but the simple fact that https://github.com/docker/docker redirects to https://github.com/moby/moby is a product-destroying move, as Docker is now just managing to spread to a wider audience.

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

Please tell me you know of a functional language that does not incorporate "point-free style", as you put it. I would love to look at such a language as a way to redefine how I view functional languages in general. No sarcasm involved, I am genuinely interested.

comment 9y ago · link · parent

First of all, clearly the advice I'm giving is a bit too early for where you are at presently. I think that's giving credit to you for the quality of the work you are producing. Basically, I want this app. You might want to dial back just a tad on the intricate details, out of fear you may wind up never shipping an initial version. Being a software dev myself, I understand that you could spend another year (hell, even 2-3 years) completely hashing out every minute detail. However I think that what you have is getting to the point of being "above and beyond what is necessary" that you need to stop tinkering so much, and find a way to ship something sooner rather than later.

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.

[1] https://electron.atom.io/

comment 9y ago · link · parent

Your barrier in gaining popularity once you launch is going to be cross-platform support. It sounds like you started wholly with Android, with other platforms coming further down the pipeline. These days a product that does not have apps for at least Windows, Android, iOS, and OS X severely limits its customer base.

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

To meet my new-language-style expectations, you would have to remove every single "const" in your code. You have multiple definitions, all simply executed in sequence based on an initial caller. I was thinking of a single block that took all inputs to result in a single output.

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.

1
101112
27