HNHacker News
TopNewBestAskShowJobs

bengotow

1,228 karma · joined December 24, 2012

[ my public key: https://keybase.io/bengotow; my proof: https://keybase.io/bengotow/sigs/jqshHYRogDU7morbFrScpmEYgdW4Nkp4_pyv0ToKYis ]
submissionscomments
bengotow··on HEIF – High Efficiency Image File Format
Haha thanks - I didn't think it supported H265 but it looks like I just have to build it from source (https://trac.ffmpeg.org/wiki/Encode/H.265). Suppose that's still fairly "easily" ;-)
bengotow··on HEIF – High Efficiency Image File Format
License notwithstanding, has anyone tried to create a HEIF file? There are a few samples on this site, but even given the code they've provided on GitHub I can't seem to create a HEIF image from another image format. Their code seems to take an H265 HEVC bytestream as input, which is fine, but I can't find anything that will build an HEVC bytestream for an image rather than a video...
bengotow··on Ask HN: Lost $400k USD in a deleted email, how contact a Gmail engineer?
This is definitely your best bet. Were you using an iPhone or an iPod Touch in that time window? Maybe iTunes still has a backup of the device in its backups folder? If you were using Mail.app, also check your Mac's Mail Downloads folder. It's totally possible the attachment was downloaded and not deleted when the email was. On my machine, that folder is full of ancient files for some reason.

Also if you power on any old devices to look for the email, put them in airplane mode ASAP!

bengotow··on Proposal to start a new implementation of Thunderbird based on web technologies
Well, the author seems thoughtful, but I'm sure he's seeking replies on the mailing list. You could propose something else!
bengotow··on Proposal to start a new implementation of Thunderbird based on web technologies
Ahh thanks I need to update that!

Originally Nylas Mail was OSS, but tied to the Nylas Cloud APIs (which did the actual mail processing.)

The cloud strategy was too expensive, and in version 2.0 the entire mail-sync system was moved into the client and open sourced. (https://github.com/nylas/nylas-mail/tree/master/packages/cli...). It's now much more like Thunderbird. There's a bit of cloud processing for snoozing / send later, etc., but it no longer syncs all your email through the cloud.

bengotow··on Proposal to start a new implementation of Thunderbird based on web technologies
Ahh I see! Sorry, I totally misread your message. Wow, that's a rough situation... If things get really bad, I think you could use a HTTPS proxy like Charles (https://www.charlesproxy.com/) to decrypt the traffic and re-encrypt it with a newer SSL cert before viewing it in Firefox. I'm not sure about Firefox, but you can run Chrome from the command line with `--allow-running-insecure-content --ignore-certificate-errors` and it'll load anything and everything. Maybe there's a similar mode for Firefox that will disable everything.
bengotow··on Proposal to start a new implementation of Thunderbird based on web technologies
Yep! Electron essentially just launches a web app from a directory on disk in an included copy of Chromium, with NodeJS's JavaScript bindings as well as the usual ones. The web app has an index.html, CSS, all the standard stuff. It's usually packaged into a .asar file so things can be loaded faster, but it's great for hackability.
bengotow··on Proposal to start a new implementation of Thunderbird based on web technologies
Well, the web is evolving.

If you're a sysadmin and you test everything in an ancient version of Firefox that doesn't display SSL errors, you're not getting an accurate picture of what the product's users will see. The latest browsers might entirely block people from visiting your site, display a huge warning, etc. and you wouldn't know. Maybe being a sysadmin requires getting the fixes, refreshes, rebranding as they come down the pipe? I'm also not a fan of the recent changes, just take a more defeatist attitude I guess!

bengotow··on Proposal to start a new implementation of Thunderbird based on web technologies
Hmm, I thought Mozilla had pulled financial support from Thunderbird? This would be an exciting new chapter for the product, but the article doesn't address whether it makes financial sense for Mozilla to invest this much in Thunderbird's future.

For most of the last three years I've worked on Nylas Mail (https://github.com/Nylas/Nylas-mail), and it hit 2.0 yesterday with Mac/Win/Linux support. It's entirely open source (GPL), written in JavaScript, syncs mail locally, etc. It essentially -is- what the author of the post is looking to build, except it doesn't look like Thunderbird. Nylas put at least $2M+ worth of engineering time into it, and I imagine ThunderbirdJS would take at least a similar commitment of time and effort. Heck, maybe they could just skin Nylas Mail and call it Thunderbird ;-)

bengotow··on Electron is flash for the desktop (2016)
But... isn't this correct? I wouldn't want my machine falling asleep while on a conference call, so preventing sleep is a good thing?
bengotow··on Twitter stops counting replies towards its 140 characters on web and mobile
Ahh wow thanks for the info - I didn't think about the dot replies. That's actually a real bummer...
bengotow··on Twitter stops counting replies towards its 140 characters on web and mobile
There's a lot of hate circulating around my Twitter feed this morning because of this, but I think it makes perfect sense. New users signing up for Twitter have to get longer usernames - everything else is taken. Then, when they try to reply to a couple of their friends, they only have like 50 characters to type a message. It's a non-starter. 140 characters enforces concise thoughts but somewhere around 90 characters you basically can't express yourself anymore.

This change evens the playing field for new users, allowing them to use the platform the same way og users like @alex and @ow do (having meaningful threads with 3+ people.)

bengotow··on Cross-platform GUI Toolkit Trainwreck, 2016 Edition
This is a great deep-dive into the GUI approaches taken by some nice cross-platform apps, but the author seems to have decided early on to ignore web technologies. It would have been nice to see an Adobe UI broken down, or Spotify, or Steam. (It's not like their HTML/JS-based UIs look any whackier than some of those audio production apps!)

If you have infinite time and need infinitely great performance, writing your own GUI framework on top of each platform's native libraries is probably the way to go. But a huge team of people already built and bulletproofed one called Chromium. It's icky in some ways and abstracted far from the native layer, and it'll probably eat an extra 50ms when someone clicks a button, but you can build and ship a cross-platform app in less than three years. The docs are written, the bugs are known ones, and it's easy to hire people who can help you. Just saying :-)

(full disclosure: I worked on an Electron-based mail client—definitely biased :-) )

bengotow··on Mapzen's new OpenStreetMap-powered bike map based on safety
This is awesome!

Color scheme is very strange though. I live in SF, and I imagine if you surveyed folks on the street, everyone would tell you blue is a "safer" color than orange.

Maybe it could follow the Google Maps standard—green, yellow, red (traffic)? They may be depicting a different metric more important to cyclists (safety), but the problem-solving approach is the same: try to take green / yellow routes and avoid red ones.

bengotow··on Ask HN: What might be the future of open-source offline-first email apps?
I'd highly recommend checking out Nylas N1 (https://github.com/Nylas/N1). It's beautiful, cross platform (Mac, Windows, Linux) and extensible via a plugin architecture borrowed from Atom. Nylas is currently working on a version that doesn't require the backend "Nylas Cloud" APIs and will connect to IMAP / Exchange directly.

(disclosure: I was the Nylas N1 team lead from 2014-Dec 2016.)

bengotow··on Reactive Offline-first Database
This looks cool! We actually built something conceptually similar to this for the Nylas N1 mail client (https://github.com/Nylas/N1) and open sourced it with an (unfortunately) very similar name: https://github.com/bengotow/electron-RxDB.

Curious if the author has made any optimizations around the observable queries to prevent small changes to the database from re-running everything? We had to do a bunch of optimizations so that changes would only cause queries to re-execute when absolutely necessary. Our case might be extreme though - the mail client has several GBs of mail data in SQLite and 50+ observable queries for different parts of the UI.

bengotow··on Android platform engineer on application architecture
I think it's fine for the Android team to take this approach like so many framework authors before them. I think the problem is that Android developers are seeking patterns and prescriptivist documentation because that's what many other platforms offer these days.

On iOS, the message has always been clear: "Use MVC, delegates & data sources, storyboards, etc. /We use them internally/ and you should too. Don't go re-invent UIViewController!"

bengotow··on Electron 1.0 is here
I think it's easy to argue about tools, but take a look at popular desktop apps these days: Slack, Atom, VSCode, Spotify, WhatsApp Desktop... they're all built on Electron or the Chromium Embedded Framework. It seems the community has spoken, and no longer considers Java / Qt the right tool for many jobs.
bengotow··on Electron 1.0 is here
Honestly, I think JavaScript was just in the right place at the right time. If you haven't seen ES2016 yet though, it's really worth a look. Electron JavaScript isn't the jQuery crap of the 1990's. It's got destructuring assignment, classes, template strings, let / const, you name it...

https://github.com/lukehoban/es6features

bengotow··on Electron 1.0 is here
There are a couple of things to consider:

1. Electron is not necessarily the best choice if all you want to do is "put your website in the Dock." In Electron, JavaScript on the page can do anything native code could do, like write to the filesystem unless you explicitly disable node integration. Just loading up your website inside an Electron window could be a disastrous security hole.

2. Electron apps run at least 50MB, and take at least 100MB of RAM. (Equivalent to one tab in Chromium)

3. JavaScript is single threaded. Node's event-driven / async design makes is a good fit for most things, but considers all work equal. You have to bend over backwards to do things that a nice threading abstraction would make easy (like Regexp find/replace in a huge directory tree. Atom actually spawns a separate process to do it so it doesn't consume the JavaScript process.)

bengotow··on Electron 1.0 is here
I've been building on Electron for the last 18 months (@Nylas), and it's really impressive how far it's come in the last year.

Coming from native Mac OS X development, Electron is an breath of fresh air. There's an incredible amount of energy and momentum in the web development community these days, and things like Flexbox, ES2016, React, and ESLint make it possible to ship fast and iterate quickly. Who would have thought JavaScript would be achieving what Java/Swing set out to do in the 90's?

I've had a chance to work with the core team on a handful of bug fixes and new features, and they've been incredibly kind and welcoming. I think Electron will go far as an open source project, and I'm excited that GitHub is growing it beyond Atom.

If you're in the SF Bay Area and interested in learning more about Electron, there's a meet-up coming up later this month! http://www.meetup.com/Bay-Area-Electron-User-Group/

bengotow··on If You Can’t Break Crypto, Break the Client: Recovery of Plaintext iMessage Data
Man, that's depressing. It's fairly easy to prevent this particular kind of injection—you just have to add a Content Security Policy to the HTML page. The appropriate value for web pages running from file://, with no expectation of downloading and executing remote JavaScript is: `script-src 'self';`

Really sad to see that Apple is using embedded web views without these sort of basic protections. I bet worse exploits than this are possible, given that they probably expose parts of the ObjectiveC layer through the JavaScriptCore bridge.

bengotow··on An 'alt+space' launcher for Windows, built with Electron
Ahh the DOS days are long gone I'm afraid... A single 1024x1024 app icon on Mac OS X weighs in at 4MB once it's inflated to raw bitmap data from ICNS / PNG. Throw a couple of those onscreen at once in a list and you're looking at 30MB easy, and that's just in images!

Of course, you could leave out the images, but you could also just keep using DOS if RAM is a concern :-)

bengotow··on An 'alt+space' launcher for Windows, built with Electron
I don't think you're intended to build it from source - you can just get a binary: https://github.com/appetizermonster/Hain/releases
bengotow··on Add Reactions to Pull Requests, Issues, and Comments
Finally. Let's just hope it doesn't email you when someone leave's a +1 reaction.
bengotow··on GitKraken: git GUI Client for Windows Mac and Linux
I don't think this is a dealbreaker for 99% of people. I currently use Tower (https://www.git-tower.com/), a closed-source Mac Git client that costs $70.

It's beautiful, it speeds up my work day to day, and it's been worth every cent. Open source is great and I spend my days building an open-source mail client, but I have no problem paying for great tools.

bengotow··on Dropbox closing Carousel and Mailbox
I'm afraid Hackpad is also dead—Dropbox open sourced it, and no one has touched it since October: https://github.com/dropbox/hackpad
bengotow··on Show HN: MarkRight – Electron-powered GitHub-flavored Markdown editor
This is awesome—I use Mou right now, but going to try switching to this for a while.

This really highlights the need to create some sort of shared library from Electron's core, though. I've probably got a half dozen copies of Chromium bundled into various apps now!

bengotow··on React Desktop – React UI Components for OS X El Capitan and Windows 10
Man it's great to see effort being put into a platform-sensitive React component set. We've been working on React components for N1, and it'd be cool to swap them out for an open source set one day. The thing is, I'm not sure 100% native appearance is the way to go. I think Spotify nailed a cross-platform desktop experience using a UI that is distinctly non-native.

For folks just learning about Electron / web-based desktop UI — we gave a talk about UI considerations at the Bay Area ElectronJS meetup last month: https://www.youtube.com/watch?v=JIRXVGVPzn8

bengotow··on [dead]
Hey folks! Ben from Nylas here - I've been working on N1. Happy to answer any questions! We're excited to be open sourcing the client, and I can't wait to see what folks do with the plugin system.
← PreviousPage 4 of 7Next →