Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 18
  1. It isn’t uncommon on linux systems to have muliple (layer 3, i.e. with IP addresses, not counting the loopback device) network interfaces.

  2. There are various reasons why one would prefer 64-bit over 32-bit (or not); basically it is about improved ABI (passing arguments in registers), bigger register (can be faster) versus higher memory usage (because pointers are twice as big).

  3. Sometimes services are started by systemd with already dropped privileges, for example inspircd.service starts as irc user.

  4. Type punning with unions

    TLDR: don’t use unions for type punning; always use memcpy.

  5. Some notes on SHA-3

    What is SHA-3?

  6. Fix ssh command quoting

    SSH only takes a simple string as command to send to the remote end 1.

  7. Checking SSL Certificates

    Verify whether a certificate matches a private key and has valid timestamp¶ The certificate is the signed public key (and some meta data); to verify whether a certificate matches the private key, one has to extract the public key of both and compare them.

  8. There is a nice repository on build.opensuse.org which provides some useful packages to cross compile from linux, and I’m going to describe a simple setup using cmake and Qt: First install openSUSE 12.1 into a virtual machine (unless you want to do it on a

  9. Hidden Finalizers in Ada

    It’s not a bug, it’s a feature!

  10. I just had a very stupid bug in a lighttpd2 feature I was working on, it looked like this: ```c linenums=1 typedef enum { S_DEAD, S_START / … / } con_state; typedef struct { con_state state; / … / } con; void foo(con c) { if (S_DEAD == c) { / … */ } } I o…

  11. Many people know a very basic fact about Fibonacci numbers: \[ gcd(F_n, F_{n+1}) = 1 \] In other words: \(F_n\) and \(F_{n+1}\) are coprime There is a more generic form: \[ gcd(F_n, F_m) = F_{gcd(n, m)} \] The first proposition follows from this, as \(gcd…

  12. openSUSE Build Service

    Why you want packages instead of building software yourself¶ Open source projects often have more or less simple instructions to build their software.

  13. A glibc change committed one year ago (Improve 64bit memcpy/memmove for Atom, Core 2 and Core i7), which already resulted in some flamewars discussions (involving Linus Torvalds vs.

  14. I wanted to export all wiki pages of a redmine project as plain text (the original textile code) with a small yaml header: ~/redmine $ RAILS_ENV=production .

  15. I already mentioned that i don’t like Ada, but I didn’t expect to hit something like this: $ gnatmake gnatbug gcc-4.4 -c gnatbug.adb +===========================GNAT BUG DETECTED==============================+ | 4.4.6 (x86_64-pc-linux-gnu) Assert_Failure…

  16. Debugging Ada exceptions

    Each time i have to code in Ada i just hate the language… it makes “clean” coding a pain in the ass (easy workarounds would include using pointers everywhere).

  17. DomainKeys Identified Mail (DKIM) is used to prevent people from sending spam mails with “from” mail addresses from your domain; you announce with DNS records that you sign all your mails with a RSA key, and everyone can check whether mails have been real…

  18. Welcome to the first post on my blog!