X Error of failed request: BadAlloc (insufficient resources for operation)

Under the section “Device.” Unfortunately, I have no such file Try creating your own xorg.conf file, placing it in this location will override your X settings after restarting X or simply by restarting the computer. mkdir -p /etc/X11/xorg.conf.d/ cp /etc/X11/xorg.conf.d/xorg.conf /etc/X11/xorg.conf.d/xorg.conf.bk # in case it exists cp /usr/share/X11/xorg.conf.d/10-monitor.conf /etc/X11/xorg.conf.d/xorg.conf The content of /etc/X11/xorg.conf.d/xorg.conf would look … Read more

Debianzing a Python program to get a .deb [duplicate]

I just tested stdeb (see https://pypi.python.org/pypi/stdeb), a Python package for turning any other Python package into a Debian package. First I installed stdeb: apt-get install python-stdeb Then I made a simple script called myscript.py with the following contents: def main(): print “Hello world, says myscript!” # wait for input from the user raw_input() if __name__ … Read more

Elasticsearch can’t write to log files

If you installed elasticsearch using a package manager like yum or apt-get you should not start elasticsearch this way. Try to use the service: for instance /etc/init.d/elasticsearch or using the command sudo service elasticsearch start You should also check if the logging.yml file is at the location mentioned in the stack trace:/usr/share/elasticsearch/config Using sudo to … Read more

Setup Google test in CLion

Create new Project Create a repository in my ClionProjects folder cd ~/ClionProjects mkdir .repo cd .repo Clone the DownloadProject from github git clone https://github.com/Crascit/DownloadProject.git Create a C++ project with a src and test directory Add following files: CMakeLists.txt cmake_minimum_required(VERSION 3.3) project(MyProjectName) add_subdirectory(src) add_subdirectory(test) src/CMakeLists.txt #set(core_SRCS ADD ALL SOURCE FILES HERE) add_library(core ${core_SRCS}) add_executable(exe main.cpp) target_link_libraries(exe … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)