Skip to content

Multiple Qt versions on Linux

I am currenyly using Debian Jessie and I have Qt Creator installed with Qt 5.3.3. It works fine, however there are some issues like QSystemTrayIcon not appearing properly, which I understand doesn’t occur on versions earlier than 5.0.0, so I would like to be able to switch which version I am building wi…

sbrk system call in unix

I studied like malloc uses the sbrk system call. But, some one says, the sbrk is deprecated one. Now a days malloc using the mmap2 system call to allocate memory. So, Is there any commands like (ls,cat, grep, sed) using the sbrk system call. For Ex: The above output shows that the ls command using the above s…

Vim Starts on Insert Mode and Inserts Special Characters

So vim just suddenly started flaking out on me today and I can’t pinpont the problem. Haven’t touch the configuration file and the last thing I worked on before I noticed the problem was updating my sshd_config and sshd_config.pacnew files. What I noticed is that upon opening the sshd_config file …

for loop syntax with grep in bash

I want to do text processing for lines in file.txt that ends with 0, I wrote an easy form of it to ask my question clearly. I want the output to be: 1 343 4352 0 432 432 2345 0 I want $i variable to be “1 343 4352 0” and after that to be “432 432 2345 0” but

size and objdump report different sizes for the text segment

I have tried this, but stuck up to the answer below questions where hello_world-1.c is The executed commands: Can anyone please help me to figure out what might be the reasons for the questions below? The size command didn’t list a stack or heap segment for hello_world or hello_world.o. What might be th…

SIZE command in UNIX

The following is my C file: It contains only return statement. But if I use the size command, it shows the output like this: Even though my program does not contain any global variable, or undeclared data. But, the output shows data segment have 252 and the bss have 8 bytes. So, why the output is like this? w…

Bash Array not accepting WildCard

I have an Array that I have setup in a bash script. My goal is to ping through a particular port on a a server with many network interfaces. For example the ping -I eth3 172.26.0.1 command to force ping through eth3 When I setup a bash Array I can get code to work if I call the Elements (ports)