1. 13

    I love it. It’s like Terminus with significantly better curly braces.

    Also, you have slashed zeroes, which is what all correct-thinking people prefer.

    1. 2

      Also, you have slashed zeroes, which is what all correct-thinking people prefer.

      I use a copy of Droid Sans Mono that I edited to have slashed-zeros. I love the font, but without slashed zeros (or even dot-zeros) it’s useless for coding.

      Terminus doesn’t render properly on Windows, which is a shame, As Spleen is a bitmap font, I’m guessing I need .fon versions for Windows ?

      1. 4

        For those that can’t (or don’t want to) edit fonts cosmix.org have a Droid Sans Mono with both dotted and slashed zero varieties.

        Arch users can get it from the AUR

        Powerline version too

        1. 1

          Yes, I think .fon is the required format for bitmap fonts on Windows. I’ve generated some .fon files for all sizes here, but I don’t have access to any Windows machine, so I cannot test them. It would be nice if you could try and report results, thanks!

          1. 1

            Ok I’ve had a go. They don’t render in Windows at all. :( Windows just shows ‘Courier New’ when I preview the files. Looking via HEX viewer, it seems that your .fon files are missing extra (repeated) meta-data that Windows seem to need. Thanks tho!

      1. 2

        Does anyone know a BDF to PSF (for the Linux console) converter? Both names are so close to PDF it’s impossible to Google. If not, I’m probably about to write my own.

        1. 2

          The font editor I use to create Spleen, gbdfed, has an option to export PSF files.

          1. 1

            Because I’m dense… The layout displayed in gbdfed gets translated to my local codepage via psfu / the actual glyph names, right?

            Also, in case people want to try with gbdfed themselves, you need to populate the first 32 codepoints or will get a weird error when trying to load the font and the screen will look bizarre. It seems to shift the codepoints down by 32 if you leave those blank…

            1. 1

              Yeah I just tried exporting all the BDFs to PSF and none of them work properly. Either they error out setfont or they fill the screen with garbage.

          2. 2

            archlinux has one in aur via the debian thingy usage should be a simple manpage away…

          1. 6

            I’d like to see screen shots of the lower resolution variants.

            As an aside, does anyone else find the font used for the article to be very hard to read? Can’t quite put my finger on it, but it seems to have too much horizontal spacing or something.

            1. 3

              Yes, I think the horizontal spacing is a little too wide. It seems to be the default spacing for the font that’s being used. If you’re curious about how to change the way it looks, try opening the developer tools and putting this into the Console.

              document.body.style.letterSpacing = "-.04em"
              

              This adds the value you specify to the font default spacing - hence the negative value, to reduce the spacing.

              1. 1

                That does improve things, thanks! Incidentally, the font turns out to be “Work Sans”: https://fontlibrary.org/en/font/work-sans

              2. 2

                I will create a proper site for Spleen with screenshots in various sizes, but meanwhile, here is a screenshot of the 5x8 version.

              1. 2

                Is the name a reference to Spleen et Idéal?

                1. 2

                  Pretty close, the poem used in one of the screenshots is “L’etranger” from “Le Spleen de Paris”. But yes, it’s indeed a reference to Baudelaire’s works.

                1. 4

                  Hi, I’m Frederic and I write mostly about UNIX and DNS related topics.

                  Link: https://www.cambus.net

                  1. 9

                    Overheard: “It looks like the logo of a convenience store in a regional airport.”

                    1. 1

                      There is a French sporting goods retailer called Go Sport, and the new Go logo immediately made me think of their logo.

                    1. 1

                      Does anyone know what Kore is? There’s no links in the post, and the closest I could find was https://github.com/kframework/kore but I’m not entirely sure it is

                      1. 5

                        I think it’s more likely https://kore.io/

                        1. 5

                          Indeed, that’s the correct link. Kore is an easy to use web platform for writing scalable web APIs in C.

                        2. 4

                          I used to work for an information security company called KoreLogic; we referred to ourselves internally as “Kore”.

                          Whenever I talked to someone from outside the company it would go like this:

                          “I work for KoreLogic Security. Not CoreLogic with a ‘C’. Not Core Security. Not Kore IO. KoreLogic with a ‘K’, but not the KoreLogic with a ‘K’ in the United Kingdom.”

                          (And for future reference, you should absolutely talk to the KoreLogic people if you need information security consulting. I cannot say enough nice things about them.)

                          1. 1

                            Also not OpenKore, a bot software for an MMO ;)

                            1. 1

                              huh, until I read this comment I automatically assumed it was pronounced “ko-ray”

                          1. 5

                            Decent article and, even if it is a little dated, the core message is still relevant.

                            Loved this quote, which oddly enough I’d never encountered in my 20+ years of using *BSD:

                            BSD is what you get when a bunch of Unix hackers sit down to try to port a Unix system to the PC. Linux is what you get when a bunch of PC hackers sit down and try to write a Unix system for the PC.

                            Particularly relevant in the era of systemd et al. Hmm, it’s just reminded me of reading Bill and Lynne Jolitz’s 386BSD articles in DDJ when I was a schoolkid and trying to make head or tail of them.

                            1. 4

                              “BSD is for people who love Unix. Linux is for people who hate Microsoft.” is a relevant quote, supposedly attributed to Theo de Raadt, but I can’t seem to find any source.

                              1. 2

                                A quick web search finds the quote as I remember it (“Linux is for people who hate Windows. BSD is for people who love Unix.”), unattributed.

                                1. 2

                                  The quote from deraadt@ is “Linux people do what they do because they hate Microsoft. We do what we do because we love Unix” from this article.

                                2. 1

                                  the core message is still relevant

                                  Is it really? Gentoo Linux evolved in a better *BSD replacement under all aspects.

                                  1. 10

                                    Gentoo is nice, I guess, but to me it doesn’t feel like BSD at all. As a user I see GNU utils, man pages lacking quality, no SIGINFO and not much coherence. As a sysadmin I see a Linux boot sequence, from bootloader to init scripts, and other management utils, such as partitioning tools. As a programmer I see glibc.

                                    1. 1

                                      Look at Portage and not just at how “recipes” are no longer makefiles, but shell scripts. Look at all the extra functionality compared to *BSD ports: https://projects.gentoo.org/pms/6/pms.html

                                      1. 1

                                        What extra functionality do you mean?

                                        I used Gentoo for two years in 2014-2015 and liked it, and I may use it again soon. But it’s just not s BSD system, and BSD is not only (or even primarily) about ports.

                                  1. 2

                                    You asked about Noctua fans, they are definitely your best bet for ultra quiet/reliable fans. I’m not sure if they make them small enough for the laptop though.

                                    1. 1

                                      And in colours other than brown ;)

                                      But seriously, laptop fans are usually a bespoke thing tightly integrated with the custom heatsinks.

                                      1. 1

                                        Thanks for your input both of you, I plan to open one of my Yeeloongs and evaluate the possibility. This will probably lead to another post with pictures of the internals ;)

                                    1. 7

                                      For mature frameworks / libraries built with security in mind for doing Web applications in C, have a look at :

                                      • Kore - Easy to use web application framework for writing scalable web APIs in C
                                      • kcgi - Minimal CGI and FastCGI library in C
                                      1. 1

                                        What is particularly “scalable” about Kore? I read through the documentation and it seems like a standard shared-nothing HTTP framework.

                                      1. 1

                                        Is that the same Yeeloong model what Stallman used in the past? (He uses an libreboot-ed Thinkpad X200 now)

                                        1. 1

                                          Indeed, it’s the same model. I’m proud to be running OpenBSD on hardware which has been granted the Stallman seal of approval :-)

                                          1. 5

                                            OpenBSD on hardware which has been granted the Stallman seal of approval

                                            This feels ironic for some reason or another.

                                        1. [Comment removed by author]

                                          1. 11

                                            GNU is a recursive acronym for “GNU’s Not Unix!”.

                                            1. 9

                                              And I’d say as someone who’s been using guix for a while, it’s largely a mistake. /usr/bin/env is probably one of the few intelligent pieces of unix filesystem hierarchy. I always just copy one back to /usr/bin/env.

                                              1. 6

                                                Author here :D - Thanks for the input.

                                                Did not enjoy the patronizing writing style.

                                                I have a lot of frustration on this topic (if you couldn’t tell), hard coded paths have given me a large number of “contributions” to various projects that I have ported to OpenBSD. It’s gotten to the point where I typically abandon the porting effort if I run into #!/bin/bash

                                                1. [Comment removed by author]

                                                  1. 7

                                                    I do have a script to do it. The problem is I either have to A) maintain a set of patch files that get applied to the port at build time, or B) I have to send a PR to the project to get it fixed upstream.

                                                    A: Is workable, but B is a better option as it will help other projects in the same situation as OpenBSD. B: Often results in long drawn out discussions involving solutions along the lines of:

                                                    “bash is installed in /bin on my system, why can’t you just symlink it on OpenBSD?”

                                                    Sure this would solve the immediate problem, but as the goal is to produce a port that other people will run, I can’t go around symlinking stuff on their boxes.

                                                    1. 6

                                                      One problem is that I don’t have qbit’s script.

                                                      1. 6

                                                        Hammer time!

                                                        find . -type f -exec sed -i 's$#!/bin/bash$#!/usr/bin/env bash$' {} \;
                                                        
                                                        1. 1

                                                          You probably want to anchor that regular expression to the front of the line.

                                                    2. 1

                                                      I would love to have your problems. Sigh.

                                                    3. 3

                                                      Where does GuixSD keep env?

                                                    1. 1

                                                      Isn’t it already built in into OS X though? Grep for Mouse Keys here: http://www.apple.com/accessibility/osx/

                                                      The feature has existed in X Window for at least thirty years. But I suppose everything old is new again?

                                                      1. 4

                                                        I think the implementation you are referencing works more like a joystick (i.e. press/hold up and it will continually scroll up). This repo is like a trackpad where the travel corresponds to a swiping action with the finger.

                                                        1. 1

                                                          Indeed, you are correct, it wasn’t entirely clear after reading the project description.

                                                          After reading your comment I watched the video and it looks great actually, I really like the idea! Now I kind of wish X had something similar ;)

                                                        1. 3

                                                          That’s great news, I really hope RISC-V and lowRISC projects will be successful. I know this is premature, but taking the opportunity to ask when can we expect dev boards to reach general availability?

                                                          1. 4

                                                            Thanks for the words of support. We intend to tape out a test chip next year, and we’d get ~100 dies through a multi-project wafer (possibly more if there’s spare space on the wafer and the fab is being nice to us, or if we pay for extra wafers). This would produce some dev boards for key contributors and project partners. Assuming a successful test chip, I’d expect general availability to follow in 2017.

                                                          1. 2

                                                            Maybe its just because Im on my phone, but the page was light on details. Would be interesting for my little home tor/privoxy gateway. Anyone know if openbsd could be ported to it?

                                                            1. 2
                                                              1. 2

                                                                Ha! I had no idea even that it was a kickstarter campaign until this morning. I was going to plop down $15. Another reason to stop reading the web on my phone, and just grab my laptop.

                                                            1. 9
                                                              -------------------------------------------------------------------------------
                                                                                  Logswan 1.00 (c) by Frederic Cambus 2015                   
                                                              -------------------------------------------------------------------------------
                                                              
                                                              Processing file : access.log
                                                              
                                                              Segmentation fault 
                                                              
                                                              1. 6

                                                                That’s not a very good bug report. Where’s the gdb backtrace?

                                                                1. 4

                                                                  Could you provide a backtrace? It’s hard to try to guess what’s wrong without any context.

                                                                  I’ve had a bug report today, and it’s been found that such log lines crash the program (the cause is known and the issue will be fixed soon) :

                                                                  1.2.3.4 - - [18/Nov/2013:19:54:25 +0100] “-” 400 0 “-” “-”

                                                                  1. 2

                                                                    I thought the snippet in my comment had a little beauty of its own, therefore no backtrace.

                                                                    #0  __strcmp_sse2_unaligned ()
                                                                        at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:30
                                                                    #1  0x0000000000401f66 in main (argc=1, argv=0x7ffdb64c2c80)
                                                                        at /home/allan/mess/current/logswan/src/logswan.c:186
                                                                    (gdb)
                                                                    
                                                                    1. 1

                                                                      I believe this is the same bug occurrence of the bug which has been reported and is now fixed.

                                                                      Logswan 1.01 has been tagged. Could you test and report if it solves your issue? Thanks.

                                                                  2. 2

                                                                    Wonder if Valgrind would’ve caught this? Also wondering how fast I could get an equivalent in Haskell to go. We have a HyperLogLog library that I’ve been waiting for an excuse to use outside of work.

                                                                    1. 4

                                                                      There’s no way to tell if valgrind would have helped unless @allan provides a stack trace or example input that crashes logswan.

                                                                      My best guess? Stuff like this would be more probably caught by afl fuzzing since I know fcambus uses logswan regularly on real life data. Though again, without the input log file or a stack trace there is no way to tell.

                                                                  1. 3

                                                                    This week, I’m planning to continue working on Logswan, a web log analyzer project I started a few weeks ago. I plan to clean up the existing code base and continue researching memory-efficient ways of counting unique IP addresses, possibly sacrificing exact counts in favour of using HyperLogLog.

                                                                    1. 5

                                                                      Richard Stallman please recommend a good open source car. Tesla are relatively forward thinking, perhaps they will be the first? It may be the same problem as video drivers, “no because trade secrets!”.