HNHacker News
TopNewBestAskShowJobs

dbolgheroni

398 karma · joined February 24, 2014

https://bolgh.com
submissionscomments
dbolgheroni··on On the future of free long term support for Linux distributions
That's not true. Just because from the user perspective it seems not much is changing, there are tons of changes underneath. They don't guarantee user space stability like Linux does, so they can move faster (including upstreaming changes from ports). They only support the last 2 releases. Considering that there is a release every 6 months, that's 1 year of "LTS".
dbolgheroni··on Initial support for guided disk encryption in OpenBSD installer
That's not true. There is pledge(2) and unveil(2) (just to start) and the whole point of them is to _make it usable_. Some Linux distros have a basic config for SELinux, but if you need to change it for anything, it's so difficult that most people just end up disabling it, thus making it less secure than a default OpenBSD install.

Besides this, it changes the perspective of who is the best person to configure the secure features. OpenBSD makes this a decision for the developer of the application, who should know better about it than a random sysadmin who most probably won't even open the source code to know better (this is the approach SELinux takes).

https://man.openbsd.org/pledge https://man.openbsd.org/unveil

dbolgheroni··on I’m leaving London for NYC and taking my tech startup
I also see a lot of brain drain in Brazil. Most are from public colleges, and they go mostly to Europe.
dbolgheroni··on Creep – a pretty sweet 4px wide pixel font
The Spleen font has, among other sizes, the 5x8, which is pretty similar. It's the default for OpenBSD drm console, although using a different size. It's constantly being updated.

https://github.com/fcambus/spleen

dbolgheroni··on Everything Easy is Hard Again (2018)
I don't know if you are talking about Linux the kernel, Linux the entire distro, Linux the filesystem (out of tens of supported filesystems), but "arranged masterfully" is big statement. From 2 days ago:

https://news.ycombinator.com/item?id=26821298

dbolgheroni··on Bill Gates Says that Bitcoin is bad For the Planet
Care to give some examples?
dbolgheroni··on A Trip into FreeBSD
The FreeBSD pf is an (very) old version of what is available on OpenBSD.
dbolgheroni··on Five lines I put in a blank .vimrc
Not the simplest way of doing this, but ansible might be an option. IMO the advantage is being able to customize the configuration file depending on the host OS, IP address, attached filesystem, etc.

This is useful because sometimes you want to use the same configuration file on different systems and they usually need some customizations to adapt to each one, which can be done automatically by ansible based on jinja2 templates.

dbolgheroni··on Booting a 486 from floppy with the most up-to-date stable Linux kernel
Wish I had this flexibility with other kinds of hardware, like a phone. Having to throw out a much newer and completely functional hardware 2 years after being released, because there is almost nothing you can do with it is not good.

(And for those who want to instruct me about PC being a defined architecture, where there no such thing with smartphones, etc, etc, etc, I know all this, but the point is still valid.)

dbolgheroni··on Go is boring, and that’s fantastic
What does aspirational-Go means?
dbolgheroni··on We bought Walmart’s $140 laptop so you wouldn’t have to
In Brazil, if you want to go beyond the 1366x768 screen resolution, you'll have to pay a lot more than those $140.
dbolgheroni··on Let SOcket CAT Be Thy Glue over Serial
Do you have any page describing it?
dbolgheroni··on Let SOcket CAT Be Thy Glue over Serial
Do you consider you're on a secure network?
dbolgheroni··on Bare Metal STM32 Programming and a Quadcopters Awakening
Hi, interesting article, but I would like to suggest you something. While it's OK to do bare metal just using the memory locations like you did:

    *(uint32_t *)0x40021018 = 0x00000004;
after a few days, it will become tiresome to read and to remember all those addresses. I suggest you to use the header [0] that the ST provides for STM32F1, which is included in packages such as STMCubeF1 [1], STMCubeF0, etc.

For instance, instead of using the memory address directly, you could just do

    RCC->APB2ENR |= RCC_APB2ENR_IOPAEN;
so it's easier to remember what is what. STMCubeF1 is a big package, but you won't be using the API/drivers ST provides (such as HAL and LL), just the header. As I understand, the STM32 community kind of rejects this API as "bloated".

I have some examples here if you would like to take a look:

https://github.com/dbolgheroni/arm-makefile/blob/master/drv/...

Cheers,

[0] https://github.com/dbolgheroni/arm-makefile/blob/master/stm3... [1] https://www.st.com/en/embedded-software/stm32cubef1.html

dbolgheroni··on State of web browsers in 2018
As a long Firefox user, I did switch to Chrome/Iridium lately.

When Firefox decided to attack the problem of market share with engineering, 2 things were happening (almost) at the same time[1]: 1) the deprecation of the old add-on engine and 2) the introduction of the new Quantum engine.

For the 1), while I understand there are some reasons in doing so (it was not a stable API as it was always breaking the extensions and security-wise), I think these problems could be managed. On the other hand, there were lots of good add-on depended on this API.

Particularly, even when Firefox was behind technically-speaking, that was the main reason I used it. Firefox replaced the old API without offering all the new interfaces with the new API. So, I lost what made Firefox really unique.

For the 2), I think it was a consequence for the 1). Firefox was finally "better" with Quantum. Of course everyone likes a responsible browser, but I actually didn't see that much difference. And there was another browser which was already really good: Chrome.

Suddenly, there was no real advantage in using Firefox anymore. Someone my say privacy. But in some corners of the Internet, it's already impossible to navigate without some privacy-wise add-on/extension, which usually work on both browsers.

Added to these, if you go deep down, security-wise there are some real technical advantages in running Chrome instead of Firefox in some OSs. For instance:

https://marc.info/?l=openbsd-misc&m=152872551609819&w=2

[1] I'm pretty sure a lot of other things were happening, but I'm in the perspective of the user here.

dbolgheroni··on The Power to Serve – FreeBSD Power Management
From the blog: "I write this as the FreeBSD Handbook does not cover all that information in the 11.13. Power and Resource Management chapter. The FreeBSD on Laptops article part 4. Power Management is from the ancient times of FreeBSD 10.1-RELEASE. There is some information on the FreeBSD Wiki page but parts of it are outdated."

The best way to help FreeBSD (or any open source projects in general) is to submit diffs to the project documentation itself, than to have lots of documentation scattered among blogs (which will soon become outdated also).

The project benefits by having up-to-date documentation, the users benefit by having a single source of truth and a lot of questions in the mailing lists are saved by users not following documentation which probably are no longer relevant.

dbolgheroni··on OpenBSD on a Laptop
Every time someone posts something about OpenBSD, there is someone who will post how hardware support is a problem.

Maybe, not everything is supported, but on ThinkPad, almost all (if not all) hardware is supported, yes (lots of developers use these machines). However, I've run OpenBSD on very cheap laptops also, with the only thing unsupported usually being the wifi. This is easily solvable by buying a cheap/supported USB dongle for $10 or less.

OTOH, I've tried the most common Linux distro on a ThinkPad last week, and I couldn't even install because of the installer crashing (no, before anyone asks, the integrity was checked and it was OK).

dbolgheroni··on Fixing bufferbloat on your home network with OpenBSD 6.2 or newer
Didn't know about this issue until I saw this article.

With 2 lines added to conf, I managed to go from C, D grades to A almost instantly.

dbolgheroni··on Learn just a little Awk (2010)
You can get the same behaviour with sed without "programmability":

  $ sed -n '/^func Test/,/^}/p' file
Which means: match 'func Test' at the beginning of a line and print (p command at the end) until you find a line beginnning with '}'.

This is because the print command (p) accepts 2 addresses to delimit a range. I used regexes as addresses but, for instance, can use line numbers also:

  $ sed -n '10,20p' file
This prints file's line from 10 to 20.

By default, sed prints the pattern space (modifications to each line) at the end of the script. The -n I used is to avoid that.

dbolgheroni··on Learn just a little Awk (2010)
awk is also interesting because it's not just a language, it's a "model". It isn't something that you can't write with some lines of any other language but, because the loop is embedded, makes it easier to write utilities for the command line.
dbolgheroni··on Learn just a little Awk (2010)
Yes.
dbolgheroni··on Learn just a little Awk (2010)
Some people might think "why learn awk today when there is Python, Go, etc". But a lot of tasks (even big ones) can be done easier with this tool.

The fact that most OSs have a POSIX compliant version of it in the base system also make it very valuable, not just for the people crunching data but also to sysadmin/devops people.

dbolgheroni··on Mozilla Project Fusion: Tor Integration into Firefox
Yes it is. I can't speak for everyone, but in Brazil, it's virtually impossible to use Tor even for HTML-only websites. And I can say most people have a slower bandwidth than I.
dbolgheroni··on OpenBSD's httpd gets URL rewrite
It's not about the lack of features. It's about the features that fit 90% of the use cases (sometimes 95%, sometimes 99%, etc), without the software being bloated.
dbolgheroni··on Mounting partitions from a dd image
OpenBSD uses vnconfig (also FreeBSD; on NetBSD it's vndconfig). An example:

  # vnconfig vnd0 install63.fs
Then you can treat vnd0 as if it was a disk:

  # disklabel vnd0
  # /dev/rvnd0c:
  type: vnd
  disk: vnd device
  label: fictitious
  duid: 138b4f2a2e184426
  flags:
  bytes/sector: 512
  sectors/track: 100
  tracks/cylinder: 1
  sectors/cylinder: 100
  cylinders: 7382
  total sectors: 738240
  boundstart: 1024
  boundend: 737280
  drivedata: 0 
  
  16 partitions:
  #                size           offset  fstype [fsize bsize   cpg]
    a:           736256             1024  4.2BSD   2048 16384 16142 
    c:           738240                0  unused                    
    i:              960               64   MSDOS                    
For instance, to mount the 'a' partition:

  # mount /dev/vnd0a /mnt
You can also associate an encryption key with the device. All data written to the diskimage will then be encrypted.
dbolgheroni··on Duolingo Suddenly Has Over Twice as Much Language Learning Material
I'm learning Italian with English as the base language. One of the things I felt with Duolingo (at least the "old" version, didn't try the new version) is that the exercises make you write mostly in English, not Italian, which is the main point of why I'm on Duolingo in the first place.

It's rare for an exercise that makes you write in Italian, even when assembling your own sentences is the basics for those who are learning a new language. Finishing an entire module doesn't make you entitled to write anything.

So I inverted things. Instead of the Italian course, I applied to the English course (which I am already fluent) as an Italian native speaker. This way, I write mostly in Italian, with almost no exercises to write in English (same problem with the Italian course).

Learning has been much more effective.

dbolgheroni··on Vim Anywhere
Vimperator did that. Just miss it.
dbolgheroni··on ISP Spying
Two huge cases from previous years:

https://nakedsecurity.sophos.com/2012/10/01/hacked-routers-b...

https://www.welivesecurity.com/2016/10/21/cybercriminals-tar...

Your router is critical, and choosing them wisely is one of the most important things if you care about some security.

dbolgheroni··on Bringing AMP to Gmail
> AMP for Email will also make it possible for information to easily kept up-to-date, so emails never get stale and the content is accurate when a user looks at it.

So it seems like a regular webpage but within Gmail.

dbolgheroni··on How to Run Your Own Mail Server (2017)
Of course, no MTA is as easy as creating a GMail account, but OpenBSD's smtpd is a lot clearer than any of the alternatives.
← PreviousPage 2 of 3Next →