Skip to content
Advertisement

Tag: ubuntu

implicit declaration of function ‘sched_setaffinity’

I’m writing a program which needed to be run on single core. To bind it to single core, I’m using sched_setaffinity(), but the compiler gives warning: implicit declaration of function ‘sched_setaffinity’ My test code is: Can you please help me to figure it out. Actually code is compiled and run, but I’m not sure whether it is running on single

replace text between two tabs – sed

I have the following input files: and I am trying to find the second string between the two tabs (e.g. text2, abc2) and replace it with another word. I have tried with but it only deletes the tab and does not replace the word. I appreciate any help! Answer I would suggest using awk here: Set the input and output

Php.ini changes are not taken on Linux Bitnami Ubuntu

I am using a LAMP stack from Bitnami with Ubuntu. I am trying to increase post_max_size in file php.ini. I changed these values: Then reset with sudo /opt/bitnami/ctlscript.sh restart php-fpm (taken from the Bitnami documentation). No changes take effect. I have tried removing all the text from php.ini. I get date errors at the top of phpinfo, but it still

PHP fopen ‘x+’ doesn’t work on ubuntu

I created an application which has an caching script on an Windows/Wamp environment. This script’s caching function is only allowed to run once at the same time. To achieve this I used a ‘locking file’ with check to see if it exists. On windows this script continues to work fine. But now it is moved to an Ubuntu environment is

How to move window offscreen with wmctrl

I am trying to programmatically move a window so that it is partially on screen. For instance, clicking the VLC title bar and dragging it so that only half the window is visible works just fine. When I output the results of wmctrl -lG this works just fine: However, when I then move it back on screen and try and

No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation

I’m running Ubuntu 15.10. So, I just uploaded the Android Studio from the site. After that I unpacked the zip file. Went to android-studio/bin and found studio.sh. Sit permission to be executed chmod +x studio.sh. Ran the file to install with this line: ./studio.sh. Then I had the error I have already netbeans installed. I just ran the instalation package

Error: mime-types-data requires Ruby version >= 2.0

I recently install clean ubuntu14.04 virtual machine in vware fusion and updated it. I am trying to install the mime-tyes-data by sudo gem install mime-types-data -v 3.2015.1120 The error shows ERROR: Error installing mime-types-data: mime-types-data requires Ruby version >= 2.0. Before that I already update ruby version by sudo apt-get install ruby2.0 sudo ln -sf /usr/bin/ruby2.0 /usr/bin/ruby It seems my

Pointers and virtual memory [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago. Improve this question According to my system’s cpuinfo file, each processor in my system has a 39 bit physical address size and a 48 bit virtual address size.

Advertisement