HNHacker News
TopNewBestAskShowJobs

drinchev

3,581 karma · joined October 4, 2011

Freelance web developer, based in Berlin.

http://www.drinchev.com

[ my public key: https://keybase.io/drinchev; my proof: https://keybase.io/drinchev/sigs/DoNkf0DJhCHcuXXwrX-M5M-qqQV3NqJQJO518YFb8zY ]

submissionscomments
drinchev··on Things I Wish I'd Known Before Using Vagrant
Vagrant's private network is really cool as well. I use it to test ansible provisioning scripts for server infrastructure.

    config.vm.define "ums-01" do |machine|
          machine.vm.network "private_network", ip: "192.168.1.10"
          machine.vm.network :forwarded_port, guest: 22, host: 2210, id: "ssh"
    end

    config.vm.define "ums-02" do |machine|
          machine.vm.network "private_network", ip: "192.168.1.20"
          machine.vm.network :forwarded_port, guest: 22, host: 2220, id: "ssh"
    end

-- https://www.vagrantup.com/docs/networking/private_network.ht...
drinchev··on Android Studio 3.0 Release Notes
I wonder how JetBrains shared the license for their IDE with Android the license. As far as I know IDEA community edition is open-source, but I'm wondering if they license allows what Android did with it.
drinchev··on Password Algorithms
Working on computers that aren't yours and remaining secure is quite challenging.

I would recommend you to use any password, but rotate the credentials every time you enter them in one of these.

drinchev··on Promise.prototype.finally
> In either case we need to call hideLoadingSpinner(). Until now, we had no choice but to duplicate this call in both the then() and the catch() block.

I always chain a `then` after `catch` in these situations.

    fetch(...)
        .then( response => data.response = response )
        .catch( error => data.error = error )
        .then( () => closeThatLoader() )
drinchev··on Napa.js: A multi-threaded JavaScript runtime
One of the great practical examples of this repository is to serve as a counter-argument against people, who complain that NodeJS is not multi-threaded.

For anything else, IMHO the use-case will be so narrow, that I wonder how MS will justify the development resources for maintaining it.

drinchev··on How to set up continuous deployment using free hosted tools
Only comment I would make is that you can use CircleCI instead of Travis to get for free running tests on private repos. The configuration is similar and the benefits as well.
drinchev··on How to Make Money Using Grep, Sed and Awk
There's always some reason for not to write "the perfect" command. Either being in a hurry or you just don't care about it.

Considering the commented out valid code, it looks like he was saving time by just adding another "|" and check the output, instead of improving the existing command and check the output. Something that I do very often as well.

drinchev··on Times I've Messed Up as a Developer
As for "Why So Many Dropped Production Databases?", you can always configure ssh with a combination of LocalCommand or use tmux to change the background of the terminal, when you are on a production server.

I did a blog post about it [1].

1: http://www.drinchev.com/blog/ssh-and-terminal-background/

drinchev··on iOS Privacy: Easily get a user's Apple ID password, just by asking
Only password outside of my password manager is the Apple one. Exactly because I need it so often that it would be really big issue for me if I have to loose 30 seconds every time I want to enter it.
drinchev··on These are the things no one tells you about working remote
Well, based on where you are located, you might also rent an office or a desk at someone else's office.

Here in Berlin I was able to rent a desk and work from a close-to-home office-room. As a dev I need this 27" screen, so being in a coffee shop / co-working space is a no-go. The desk costed around 300 Euro per month ( lended by a friend ).

drinchev··on Ask HN: Is Vagrant dead or dated? Do people still use it?
I use vagrant a lot for testing provisioning scripts. For example, having an Ansible setup with 2-app, 3-mongo and 1 redis server makes the script complicated, so I use >close< to production ( DO / Linode ) Linux distribution and try the scripts on my local machine. Works like charm.
drinchev··on SpaceX BFR [video]
I think if we measure the travel time from door to door the benefits of the fast rocket shrink in a relation to where is located.

With airplanes this is solved, by the big infrastructure ( cities sometimes have even 2-3 airports ).

Where I live ( Berlin ) with a flight to NYC would look like :

    1. City center -> TXL  - 20m
    2. Check-in / security - 30m ( no joke, the airport is small )
    3. Flight              - 9h 15m
    4. Check-out / luggage - 50m 
    5. EWR -> City center  - 50m
    ------------- TOTAL ---- 11h 25m
This means that ( ignoring the BFR flight time, since it's just minutes ) the time between you leave the city-center and entering the BFR should take less than 5 hours ( for Berlin ), otherwise you will not arrive faster than a plane.
drinchev··on Things to Learn from Uber’s Implosion
Wow. I think that’s more of an anti-American article, rather than something to learn.
drinchev··on Programmers who want to change how we code before catastrophe strikes
Regulation on programmers is not the solution.

Regulation on companies might be. I'm usually really disappointed when a cheap re-seller takes a government purchase of a 911 or 112 ( here in EU ) and then hires a subcontractor, which hires a subcontractor, which ...

That's how crappy software gets into production.

drinchev··on Java 9 and IntelliJ IDEA
Webpack watch mode is how I use it. On top of that you can run webpack outside of the IDE, just like you do with sublime text. My setup is i7 with 16 GB, and only electron app ( webpack + react ) will make my setup really slow. Anything else usually is swallowed by webstorm
drinchev··on Java 9 and IntelliJ IDEA
You can get far better IDE experience if you use TypeScript, instead of plain JS. Webstorm does a lot of things that are quite popular in IDEA, because it can rely on the type system. This includes refactoring and realtime compiler errors.
drinchev··on Trello Desktop for Mac and Windows: Get More Done Without Distractions
macOS offers WKWebView [1], which essentially uses internal webkit ( safari ) for running the application.

And since all libraries are already on your OS, the build is really small, as well as the memory footprint.

1: https://developer.apple.com/documentation/webkit/wkwebview

drinchev··on Trello Desktop for Mac and Windows: Get More Done Without Distractions
I think choosing a hybrid approach is the way to go here.

The implementation with Electron, as most cases, sucks.

I work with a startup and they have a hybrid app, which binary is 3.5 megabytes [1]. UI is JS/HTML/CSS and is almost the same bundle as the web version [2]

Trello's app is 66MB [3]

1: https://itunes.apple.com/us/app/ninox-database/id901110441?m...

2: https://app.ninoxdb.de

3: https://itunes.apple.com/us/app/trello/id1278508951?mt=12

drinchev··on Trello Desktop for Mac and Windows: Get More Done Without Distractions
It actually is an electron app

    λ /Applications/Trello.app/Contents ◆ tree -L 2
    .
    ├── Frameworks
    │   ├── Electron\ Framework.framework
    │   ├── Trello\ Helper\ EH.app
    │   ├── Trello\ Helper\ NP.app
    │   └── Trello\ Helper.app
    ├── Info.plist
Tried it. It's a bit laggy and seems not much different than the website itself.
drinchev··on iPhone 8
As well as the demo about the "AR" sky with stars. I remember there was an app [1] working on iPhone 4 that was doing exactly that.

[1] : https://www.engadget.com/2014/08/24/star-walk-2-mostly-impro...

drinchev··on Show HN: Yue – A new library to create cross-platform GUI apps
Fixed
drinchev··on Atlassian announces new logo
The only service logo, that >looks< unchanged is the Trello one.

One more time I would like to say how great is the Trello team of being able to deliver a logo that survived a redesign of it's new owner.

drinchev··on Show HN: Yue – A new library to create cross-platform GUI apps
Wow, that's very bad.

Created an issue for this to prevent anyone else using it.

Let's see how the author will respond.

https://github.com/yue/help/issues/4

drinchev··on Show HN: Yue – A new library to create cross-platform GUI apps
Why not? If you want to modify the source, just do it in a manner that you can commit back to the repo.
drinchev··on Show HN: Yue – A new library to create cross-platform GUI apps
Kudos for this. It does look awesome. Just tried out JS version.

Nevertheless I'm still afraid that features / maintenance will be unsustainable, since you are the only developer [1] ( considering your expertise ).

I hope there are companies that support the project.

1: https://github.com/yue/yue/graphs/contributors

drinchev··on IPv10
Excerpt :

    - That means, if the received IPv10 packet contains an IPv4
      address in the destination address field, the router
      should use the IPv4 routing table to make a routing
      decision, and if the received IPv10 packet contains an IPv6
      address in the destination address field, the router should
      use the IPv6 routing table to make a routing decision.

    - All Internet connected hosts must be IPv10 hosts to be
      able to communicate regardless the used IP version,
      and the IPv10 deployment process can be accomplished
      by ALL technology companies developing OSs for hosts
      networking and security devices.
Earlier in the RFC ( reasoning on IPv6 support ) :

    ... also, not all enterprises
    devices support IPv6 and also many people are afraid of the service
    outage that can be caused due to this migration.
If migrating to IPv10 requires the migration of the same infrastructure, what's the point of having it?
drinchev··on Django and React/Redux Boilerplate Project
Reminds me of another bloated boilerplate [1].

Please don't use those for real projects. It's really big pain to maintain and also the day after you start using it, it will be already deprecated.

Best approach, that won't make anyone else reading your code unhappy, would be to spend some time and create the base of your project yourself. It will result in a much smaller amount of dead code and you will learn a lot.

1: https://github.com/chentsulin/electron-react-boilerplate/blo...

drinchev··on Ask HN: How much do developers earn in Europe?
Super cool initiative.

For those complaining about formatting issues ( me as well ). I think someone should fork and re-format the sheet later today and release it back to this thread.

drinchev··on Node.js is forked to Ayo.js (pronounced like “IO”)
Precisely.

I'm just wondering what would've happened if Rod was forced to resign and the other <50% voters who voted against it. Maybe a fork of NodeJS, but this time from Rod's fellows?

drinchev··on Gnome is still the best Linux desktop environment
Side topic.

I can't believe the list of top GTK3 Themes [1] are so much influenced by macOS ( second "greatest" one basically replicates even the icons ).

macOS is beautiful, indeed, but as Ralph Waldo Emerson's quoted :

"... Imitation is Suicide."

I bet if the effort is put towards themes that can distinguish GTK from anything else, there will be another reason of Gnome being the best LDE.

1 : https://www.opendesktop.org/s/Gnome/browse/cat/135/ord/top/

← PreviousPage 8 of 30Next →