Good day, I have been debating some details with a colleague about ALSA vs PulseAudio, and need some help coming to a conclusion with it. It’s to my understanding that ALSA is relatively low-level, and talks directly to the hardware, while PulseAudio sits on top of ALSA as a service. Additionally, it…
Tag: linux
“sh: line 1: Moved: command not found” installing npm with curl | sh
I attempted to install npm on mac OSX Yosemite with the command: And I received the following message: Any suggestions on how to resolve this issue? Answer You’re missing the curl -L option to follow redirects. However, you don’t need to use this installation method anymore, npm comes with node an…
Why am I not able to use relative path to open a file in CLion?
I seem to get errors when trying to open an std::ifstream if I use a relative path. Though it works fine if using an absolute path. Is there something I need to add to the CMakeLists.txt? (I’m pretty new to using cmake) Or is it just a problem in CLion? Answer It’s CLion. You have to set the Worki…
How does kbuild actually work?
When i’m developing a linux driver, i’ve read about how to write linux kbuild makefile through this document I know kbuild system use makefile variables such as obj-y obj-m to determine what to build and how to build. But what i’m confused about is where does kbuild system really execute bui…
Failed to execute /init
I am trying to build a basic root filesystem using Buildroot, for an embedded system (the Banana PI D1). I am using a kernel from an SDK supplied by the SoC vendor. From this repo I am using only the kernel, found in src/kernel. There’s nothing remarkable about the Buildroot configuration. It builds wit…
laravel 4.2 liebig package work on localhost but fail in server cron job command
i want to fire some function to get news about football from rss i used laravel4.2 https://github.com/liebig/cron as that it work correctly when i use cmd php artisan cron:run in my computer but when use the server cron job command /usr/bin/php /home/public_html/interestoo.com/artisan cron:run i don’t f…
C++ std::thread “Attempt to use a deleted function”
Here’s the relevant code and the relevant error, I’m not really sure what to make of it. That’s in thread.cpp, the next is in log.cpp… and Here’s the relevant error: Answer I think the problem is the declaration of the parameter func. It is declared as a void pointer instead of a…
grep -A until a string
assuming that we have a file containing the following: and we want to grep this file so we take the lines from chapter 1 blah blah to blah num (the line before the next chapter). The only things we know are the stating string chapter 1 blah blah somewhere after that there is another line starting with chapter…
linux kernel module: kernel method undefined (kthread_create_on_cpu)
The method is defined in kthread.c file and prototyped in kthread.h. But it is not exported. In my driver I want to start a kthread on a given CPU, so I do: I can compile but I get linkage error on resolving module symbols on MODPOST: How should I proceed? How to import this symbol or what to do instead?
Delete last executed command in Linux terminal
I want to do a clear but only of the last command I executed. Here is a example so you can understand it better: If that’s the current state of the shell I want to execute a command (for example echo a > /tmp/foo) and keep the console: So it should be something like echo a > /tmp/foo && cl…