← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 71
  1. Linux cannot up Ethernet after sleep

    In a nutshell: # ip link set eth0 down # echo mem > /sys/power/state # ip link set eth0 up RTNETLINK answers: No such device

  2. A couple of slackpkg+ tips

    One tip is on an issue with https://slakfinder.org, another is about not upgrading some packages by default.

  3. There exists a quite popular command-line parser for C++ called CLI11.

  4. The fucking Firefox lag

    Some time ago Firefox started to occasionally hang for maybe 20 seconds during which nothing was drawn on the window.

  5. Code review rules

    Over the years I have contributed to various FOSS projects (both non-commercial and those owned by corporations) as well as proprietary ones.

  6. Benchmarking I/O ETA algorithms

    Vifm can show some statistics about an ongoing file operation and recently it was suggested to add an ETA there as well.

  7. I finally decided to give LSP a try in my Vim for the purpose of getting completion in Lua.

  8. Front panel headphone jack and PipeWire

    After upgrading to Slackware 15.0 I kept using Bluetooth for headphones and only later found out that sound through wires didn’t work if plugged into front panel.

  9. Repository-specific commands

    Automating typical tasks in your repositories makes life easier by relieving you from running same commands over and over again.

  10. Don't trip over string optimizations

    Optimizations are nice, but sometimes their effects can take you by surprise, especially if you’re not thinking about them while trying to debug an issue.

  11. MPlayer disables powersave for your screen when it has a video to play, which is what you want usually, but not always.

  12. Most programmers are used to targeting x86 systems where char is signed char by default.

  13. Why do new software tools look shiny?

    It puzzles me when people get excited about some new tool which is just a rewrite of an old one.

  14. Inventing grammar for GNU Make

    For the purpose of making zograscope support parsing of more than just one language, there was a need to pick a language that is substantially different from C (the first one supported).

  15. More than 256 color pairs in curses

    Those who used curses at least once to draw something in color had to notice that setting colors happens in pairs (foreground and background) and number of such pairs is limited.

  16. pipedial is one more tool for selecting something in console.

  17. Turns out there is a nice project that provides another way of accessing some parts of the Web that doesn’t require using a browser.

  18. Take off GitHub with RocketGit

    Announcement of GitHub being acquired by Microsoft prompted many people to consider migrating away from it.

  19. New location of the blog

    The most important part Old URL: https://xaizek.github.io/ New URL: https://reversed.top/

  20. It’s been over a week since MS declared that it buys GitHub, which generated a lot of discussions, but one of the most interesting pieces is a post from The Linux Foundation.

  21. Come to terms with computer terms

    There are many things which people get wrong over and over again.

  22. How to make perf TUI work

    perf is a quite handy tool to quickly measure performance of your application on GNU/Linux without recompiling it.

  23. Updating mail receiving stack

    Calling it a “stack” is probably too much, but fetchmail and procmail seem to go together and they are both subject for replacement for good reasons.

  24. Conditional ignorance in C++

    It just so happened that I watched several C++ talks that mention upcoming feature of C++17 called “If statement with initializer” all in a relatively short time frame.

  25. The big list of Vim-like software

    A more interactive version of this post is available at https://vim.reversed.top/.

  26. UPDATE: if you have new gdb (7.12.1), scroll to the bottom.

  27. ncurses wrappers for C++

    curses is a well known set of libraries (with mostly common API) for creating TUIs.

  28. Vim has a great documentation for sure.

  29. C++ manual pages

    One of the great things about C is that its documentation is available locally via man command.

  30. Switching from tmux to GNU Screen

    I was postponing learning how to use terminal multiplexers for a long time until one day had to test integration with tmux, which required learning it.

  31. Enabling output colorization in GCC

    I was waiting for GCC 4.9 for a while to get my hands on colorized color output, but after it became available in Slackware error output didn’t magically become colored.

  32. C++11+ aggregate initializer surprise

    There is a nice thing in C++ called friendship between classes or classes and functions, which is used to put several entities in one security domain by allowing “friends” to access private fields.

  33. The other day I was looking for a way to obtain fully qualified names of items in Boost.PropertyTree in sorted order, but basically found only one post on the subject, which demonstrated recursive traversal of a tree in more detail than iteration over all…

  34. TOC Detecting postfix operators in for loops Detecting unused functions Detecting wrong first include (you are here) Introduction There is a well known (or at least I hope that it’s well known) good practice to include header that corresponds to the curre…

  35. I experienced strange failures of some commands in gvim (e.g. errors on closing window of :Gblame) for quite a while, but couldn’t figure out why the hell their occur.

  36. Fixing CIFS mounts in Slackware

    I remember CIFS/SMB working fine for me, but it occasionally mysteriously didn’t work on some machines even with 100% correct configuration (e.g. line in /etc/fstab).

  37. I thought that adding directory to pkgdata_DATA variable in Makefile.am file would be enough, but make install command gave this error: /usr/bin/ginstall: omitting directory ‘..

  38. For most bootable ISO images one of two approaches works: dd if=image.iso of=/dev/sdx if image is a hybrid CD-ROM/HD image.

  39. After upgrading motherboard and its components, regular graphics (windows, video) worked fine with Intel HD Graphics, but trying to run something like glxgears displayed nothing but blank window.

  40. Decrease LILO kernel load time

    Opened my LILO configuration file (/etc/lilo.conf) recently to take a look at video mode options and noticed this line: #compact # faster, but won't work on all systems.

  41. TOC Detecting postfix operators in for loops Detecting unused functions (you are here) Detecting wrong first include Introduction This memo provides description of a tool that scans a set of source files looking for two types of functions declared with ex…

  42. To split files by number of bytes or lines there is standard split command, but how to break file into pieces of variable size that are delimited by a separator?

  43. Although this subject is covered in multiple sources, it’s hard to find it for some reason or at least it wasn’t that easy for me.

  44. Had an issue with setting up correct routing rule for VPN network through PPTP.

  45. rexima: couldn't open mixer device

    After installing Slackware 14.1 on a new machine, I got unexpected output when tried to run rexima interactive mixer (by the way, it’s in extra section of Slackware packages, so search might silently skip it, just do slackpkg install rexima to install it).

  46. One of common ways to receive mail includes using sendmail as an MTA.

  47. How to make tabs visible in git diff

    I’m a bit tired looking at diffs like the following: for (int i = 0; i < 3; ++i) { - for (int h = 0; h < 4; ++h) { + for (int h = 0; h < 4; ++h) { for (int k = 0; k < 4; ++k) { Can anybody tell whet…

  48. TOC Detecting postfix operators in for loops (you are here) Detecting unused functions Detecting wrong first include Introduction Foreword The LLVM project has been started back in 2000, but became widely known and used quite recently, about 4 years as of…

  49. The issue explained Say directory structure is as follows: $ tree . |-- Makefile `-- lib.cpp 0 directories, 2 files

  50. Simple profiling using standard cProfile module Usually a command similar to the one below is used to profile an application: python -m cProfile -o app.prof app.py arg1 arg2