HNHacker News
TopNewBestAskShowJobs

agateau

537 karma · joined January 11, 2013

submissionscomments
agateau··on Donation page "not compliant with Google Play Policies"
You're welcome! :)
agateau··on Donation page "not compliant with Google Play Policies"
The game is actually open-source (https://github.com/agateau/pixelwheels/), so which side do I pick?
agateau··on Donation page "not compliant with Google Play Policies"
(author here)

I am sorry this came up sounding entitled: I don't expect Google policies to change on this subject, and since this is not business threatening to me I just decided to write something I thought would be snarky and hopefully amusing to read.

agateau··on Kallithea – Self-hosted alternative to GitHub
[Shameless plug] If all you need is the ability to manage a bunch of personal repositories hosted on your ssh server, you may want to try "reposetup", a minimalist, shell-based, repository manager: https://github.com/agateau/reposetup
agateau··on “My wife has complained that OpenOffice will never print on Tuesdays” (2009)
I hit a similarly puzzling bug a few years ago in Gwenview (an image viewer) when a user reported it could not open some PNG files of a certain width.

I wrote about it here: https://agateau.com/2012/qt-image-decoders-stepping-on-each-...

agateau··on Notre-Dame cathedral: Firefighters tackle blaze in Paris
Paris firefighters are part of the French Army [1], so they are used to being commanded.

[1]: https://en.wikipedia.org/wiki/Paris_Fire_Brigade

agateau··on Give Me Back My Monolith
I don't have a strong opinion on monoliths vs microservices, as long as you don't go overboard with splitting things leftpad-style, but I believe splittings VCS repositories result in a huge waste of time when making cross-micro-services API changes.

On the other hand, the king of the hill of VCS these days, git on GitHub, does not make it easy to have this kind of setup:

- it is not possible (as far as I know) to checkout a subdir of a git repository hosted on GitHub), which is annoying for deployment

- it becomes difficult to only follow the PRs your team is interested in, since you can't tell GitHub to only notify you of changes in the subdirs you are interested in.

What are your experiences on this? when you split a monolith into microservices, do you also split the VCS repository into as many repositories?

agateau··on Pipenv: promises a lot, delivers very little
Looks like a locale problem. `locale-gen en_US.UTF-8` should fix it.
agateau··on Anti-If: The missing patterns (2016)
I have heard this called early-returns. I like to write code this way too. Proponents of one-return-per-function probably write code in languages like C which does not have GC or RAII so having only one exit point makes it easy to ensure all resources allocated by the function have been released.

There are ways to do early returns in C without duplicating resource releasing code though, using gotos (it's one of the few cases where gotos make sense, IMHO). Code looks like this:

  int aFunctionWhichMightFail() {
      int result = FAIL;
      Foo* foo = allocateSomething();
      if (!someFunction(foo)) {
          goto fail;
      }
      moreWork(foo);
      result = SUCCESS;
  fail:
      releaseFoo(foo);
      return result;
  }
The Linux kernel makes heavy use of this.
agateau··on LibreSprite – fork of last open-source release of Aseprite pixel art editor
He did.

I contributed a few minor fixes and got an email from David asking for permission to re-license.

agateau··on How to Host Your Own Private Git Repositories
I do self-host a few repositories as well, but I do not set up a separate user: I just create a git/ dir in the home dir of the account I want to host the repositories on and put the repositories there.

To simplify the initial setup, I created a handy shell script, reposetup [1]. It makes to create repositories, push to them and remind me their urls.

[1]: https://github.com/agateau/reposetup

agateau··on Ask HN: Do you log your time at work?
I have been using it for the week, I like it!
agateau··on Ask HN: Do you log your time at work?
Yes, we consider a task to be done when code has been reviewed and merged, so our estimates include review time.
agateau··on Ask HN: Do you log your time at work?
Looks interesting, can it distinguish time spent in the browser, so one would know if time was spent on pull request #33 rather than on Twitter?
agateau··on Ask HN: Do you log your time at work?
The thing is, we often have tasks estimated to last 2 or 3 hours. 10 or 20 minutes of review starts to be a significant duration in this case.
agateau··on Why Users Abandon Forms with Select Menus
I disagree with the article for two reasons:

1. Many computer-illiterate users always click to switch from one input to another, so clicking on a select does not make them much slower

2. Many users are not aware that the text part of a radio button is actually clickable and will loose time precisely aiming at the round circle to select it. And they are unfortunately often right to aim at the circle because of the many loosely design pages which do not make the text part of a radio button clickable.

agateau··on Monod, our secure and offline-first Markdown editor, is open source
I wrote mup [1] to help with this: it is a markup previewer. It support multiple markup formats and for markdown multiple markdown implementations: pandoc, commonmark, kramdown, python-markdown and also previewing using GitHub API (slow but the most reliable for README.md editing)

[1]: https://github.com/agateau/mup

agateau··on Tesla: Introducing Autopilot and Dual Motor All Wheel Drive
> Once there's a critical mass of cars with cameras, cars could communicate road conditions automatically.

I would be frightened to trust the data coming from a random car in front of me. Inferring road condition from another car behavior sounds reasonable, using data supplied from it, not so much.

agateau··on Mbox – A lightweight sandboxing mechanism
I suspect (haven't checked!) this is actually Ubuntu kernel not allowing mbox to do what it tries to do. See https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening
agateau··on Candy Crush Saga creators have trademarked the word “candy”
While the trademark feels abusive, gamezebo really did not pick the best example: how can one name his game "All Candy Casino Slots – Jewel Craze Connect: Big Blast Mania Land" and then pretend he did not try to take advantage of the name of famous games?
agateau··on Safari is released to the world
Most likely because KHTML license was (still is) LGPL, which allows the creation of proprietary products with it (Safari) but requires all source code changes to be published.

Had KHTML been licensed under a BSD or MIT license, the browser world could potentially be very different from what it currently is.

← PreviousPage 2 of 2