HNHacker News
TopNewBestAskShowJobs

grafelic

477 karma · joined April 29, 2016

submissionscomments
grafelic··on Donut.c Without a Math Library
Very nice.

Works out of the box on AmigaOS 3.1 compiled with bebbo's gcc fork.

grafelic··on Oasis: a small statically-linked Linux system
Why care about "why" when there is "why not".
grafelic··on Ask HN: Unsolved hard problems like protein folding?
https://en.m.wikipedia.org/wiki/List_of_unsolved_problems_in...

I find the unsolved problem of Alkaloid function very interesting.

grafelic··on K6: Like unit testing, for performance
Interesting. How did you collect metrics for reports when running that many VUS? In a recent attempt, influxdb quickly became the bottleneck for us when testing with around 5000 VUS. Is there some best practices outlined somewhere, or which you could outline here, on how to collect metrics for large runs?
grafelic··on K6: Like unit testing, for performance
what is the max number of VUS you guys have run through it?
grafelic··on Surveillance company harassed female employees using its own facial recognition
> Verkada board chairman Hans Robertson has said publicly that he intentionally hired a team of “sales athletes,” and Verkada’s strategy is to “make the culture really fun.”

Surveillance is not fun, it is serious business and doesn't deserve a "fun" culture. I guess from a surveilor business' point of view it is a rather effective way to numb the inner critic of your employees.

grafelic··on Comparison of Kubernetes Ingress Controllers
HAProxy has a dashboard the last time I checked, which is today.

Thanks for the effort! A very nice overview, which makes choosing between load balancer implementations when looking for a specific feature a lot easier. Somehow tables like these are hard to find when you actually need them, good to know this one exists.

grafelic··on Ask HN: Teaching Python to 16 yo as their first PL. Fun projects to get started?
A scientific calculator.
grafelic··on AIX or Linux on POWER (2010)
I had the great pleasure of adminstrating and deploying AIX for 6 years. It really is an extremely solid OS. During that time I also worked with HP-UX, which compared to AIX felt stuck in some oldschool UNIX limbo especially concerning storage handling felt extremely clunky. As mentioned in the article AIX's LVM implementation is a joy to use giving the administrator the ability to extend and SHRINK a live filesystem and LVM mirroring with AIX was rock solid. The AIX LPAR technology was very impressive and fun to work with. Perhaps the years have given my memories a rosy taint but working solely Linux now (OpenShift), I sort of miss those days with AIX.
grafelic··on Technical Debt Doesn’t Exist
To me (from an Ops perspective), technical debt is when people who have come before you implemented a setup that is broken at a deep level. A setup which can only be fixed by a complete re-implementation. No amount of maintenance will suffice.
grafelic··on Docker update ToS: Image retention limits imposed on free accounts
Github Packages Registry does not support pulling by digest, making it unusable for k8s/OpenShift.

https://github.community/t/cannot-pull-docker-image-from-git...

grafelic··on The mysterious life of birds who never come down
Could the mites you mention be Louse Flies which are common Swifts? I used to live in apartment with many Swifts nesting under roof and a lot of these small unkillable critters (could survive being stepped on) crawled through cracks in the walls. They are not charming. https://en.m.wikipedia.org/wiki/Hippoboscidae
grafelic··on Small mail server best current practices
AFAIK dkimproxy is no longer maintained. That is the main reason I dropped my plan using dkimproxy with OpenSMTPD for a simple send-only mailsetup. The rspamd+redis setup felt way to overkill for a tiny vps.

Postfix+opendkim+opendmarc works fine and it is very simple to setup as well.

grafelic··on Ask HN: What did you make during lockdown?
I carved my own crankbait.
grafelic··on Office noise generator
I miss the sound of people muttering to themselves and breathing loudly while wearing noise cancelling headphones.

No, not really.

grafelic··on The Invention of the AeroPress (2014)
I use my AeroPress for Yerba Mate exclusively. Two spoons of Yerba Mate for one cup, add 90C° water, put in plunger on top and let it steep for 5 minutes. It stretches the Yerba Mate and it is easy to clean.
grafelic··on Sanoid – Replication and Backups with ZFS
I've been using it for my daily zfs snapshotting needs for a year. Rock solid software. Thanks.
grafelic··on Ask HN: How do I learn C properly?
An interesting way IME to learn C, is to code for an old platform like the Amiga.

All the same best practices apply, but the underlying OS is more simple and the constraints, like missing floating point, forces you investigate many aspects of C.

You can use Bebbo's m68k cross compiler to compile for the platform: https://github.com/bebbo/amiga-gcc

No single source of truth for C best practices exist, but I can recommend using static analyzers like:

https://splint.org/

and

http://cppcheck.sourceforge.net/

to steer you in the right direction.

Also, compile your code with the following gcc options: -pedantic -std=<c99 or c89> -ggdb3 -O0 -Wall -Wextra -Wformat=2 -Wmissing-include-dirs -Winit-self -Wswitch-default -Wswitch-enum -Wunused-parameter -Wfloat-equal -Wundef -Wshadow -Wlarger-than-1000 -Wunsafe-loop-optimizations -Wbad-function-cast -Wcast-qual -Wcast-align -Wconversion -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Winvalid-pch -Wvolatile-register-var -Wstrict-aliasing=2 -Wstrict-overflow=2 -Wtraditional-conversion -Wwrite-strings

Not that they all necessarily always makes sense, but they will reveal weak points in your code.

grafelic··on What Is the Most Valuable Thing You Can Learn in One Hour?
sed patching
grafelic··on Ask HN: What are you looking forward to learn in 2020?
Feeling at ease being myself.
grafelic··on Max Headroom broadcast signal intrusion
It was the KLF
grafelic··on Lesser Known Coding Fonts
I always use Dina font, except on HiDPI screens were I use Terminus. I even ported Dina to AmigaOS so I can enjoy it there as well. It is the most legible and non-tiring font for terminal/vi work for me.

Dina font: https://www.dcmembers.com/jibsen/download/61/

Dina font port on aminet: http://aminet.net/package/text/bfont/Dina

grafelic··on Ask HN: How to deal with anxiety and fear of loosing your job?
To alleviate the anxiety a bit, ensure that you have a 3 month with no income buffer.
grafelic··on The “mail is hard” myth
And when you finally have a well-running setup, use: https://mxtoolbox.com/ (No affiliation) To verify you have everything set up properly.
grafelic··on Degraded performance on GitLab.com
Indeed. Incredibly slow.

Status page: https://status.gitlab.com/

Issue: https://gitlab.com/gitlab-com/gl-infra/production/issues/928

grafelic··on Raspberry Pi on Raspberry Pi
There is also iPXE, where a solution would be to use a small ipxe iso/lkrn and combine it with a boot loader written to a sd and then bootstrap the system over the network from there.

http://ipxe.org/appnote/buildtargets

grafelic··on Simple script to analyse your PostgreSQL database config, give tuning advice
If you for some reason can not use docker and don't want to pollute your system globally with cpan packages, you can use a locallib install instead. CentOS example:

  sudo yum -y install postgresql-devel   
  sudo useradd -d /home/pgsqltun -m -s /bin/bash -c"pgsql tuner user"  psqltun
  sudo su - psqltun   
  wget -O- https://cpanmin.us | perl - -l $HOME/perl5 App::cpanminus local::lib
  echo 'eval `perl -I $HOME/perl5/lib/perl5 -Mlocal::lib`' >> $HOME/.bash_profile
  echo 'export MANPATH=$HOME/perl5/man:$MANPATH' >> $HOME/.bash_profile
  . .bash_profile
  cpanm DBD::Pg
  <install postgresqltuner.pl>
grafelic··on Nginx quick reference
Don't casually enable HSTS with the following:

add_header Strict-Transport-Security "max-age=63072000; includeSubdomains" always;

On a top domain site like https://example.com, if there are subdomain sites like http://golf.example.com which are not configured with TLS. The setting will be stored on the clients and they need to "forget" non-https sites after you have rolled back the misconfiguration. Of course you could go in the other direction and enable https for all subdomains. :)

grafelic··on Data alignment: Straighten up and fly right (2005)
Would you mind sharing your benchmark script?
grafelic··on Haiku R1/beta1 has been released
My Thinkpad 240 is ready, now waiting for an USB to IDE adapter to install Haiku on its disk.
← PreviousPage 3 of 4Next →