Compiling C++11 with g++

I'm trying to update my C++ compiler to C++11. I have searched a bit and I have come to the conclusion that I have to use the flag -std=c++0x or -std=gnu++0x, but I don't know many things about...

python error: no module named pylab

I am new to Python and want to use its plot functionality to create graphs. I am using ubuntu 12.04. I followed the Python installation steps from...

How to pretty-print STL containers in GDB?

I've followed the instructions on the GDB wiki to install the python pretty-printers for viewing STL containers. My ~/.gdbinit now looks like this: python import sys sys.path.insert(0,...

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I installed LAMP on Ubuntu 12.04 LTS (Precise Pangolin) and then set root password on phpMyAdmin. I forgot the password and now I am unable to login. When I try to change password through...

Heap Overflow Issue - Can Overwrite Chunk Header, Corrupt Free(), But Program Doesn't Crash

I have been studying computer vulnerabilities and have been working on this problem for countless hours. I cannot seem to get the heap to overflow correctly. Despite glibc detecting a memory...

What is the difference between x86 and x64

What is the difference between x86 and x64 binaries here, we would like to download binaries for Windows 7, Ubuntu 12.04 (32 bit options)

Python CGI script wont print Hebrew on Linux

I cannot get python CGI to print Hebrew characters to an html webpage on Linux. This is a script which demonstrates the problem: #!/usr/bin/python3 print('Content-Type: text/html;...

why is pip so SLOW to download? (how to troubleshoot?)

I can wget e.g. python coverage and pip install the package locally quickly and without any problem, but pip install coverage takes forever. Using pip 1.3.1 in a virtual env on Ubuntu 12.04. Any...

Use gnome-screensaver-command on python

I have the following code to check whether the screen is locked or not (using gnome-screensaver) gnome-screensaver-command -q | grep "is active" From this link,...

How to install a specific version of Node on Ubuntu?

I would like to install NodeJS version 0.8.18 on Ubuntu 12.04. I tried to install the newest version and then reverting to 0.8.18 by using nvm, but when I run my code apparently there is some...

AWS EC2 Connection closed by when trying ssh into instance

Recently I set up a new EC2 instance. The next day I was not able to connect to my instance via ssh. I could connect and disconnect the day before, I am sure I did nothing. Here is ssh debug...

Can't ssh to AWS EC2: Identity file not accessible

I'm unable to ssh to my EC2 server and am getting the error: ssh -i /Users/Skeniver/Keepass/skeniver.pem [email protected] Identity file /Users/Skeniver/Keepass/skeniver.pem not accessible: No...

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1:war - Could not copy resource

I have a multi-module project that I'm trying to import in my Ubuntu 12.04 LTS's Eclipse Juno. (I already have done it successfully on Windows 7). My project has six modules, the first four...

ERROR: ld.so: object LD_PRELOAD cannot be preloaded: ignored

I am using ubuntu 12.04. Every time I start my bash terminal and every time when I finish typing a command(and press enter) , I get this message: ERROR: ld.so: object...

Installing MariaDB: unmet dependencies, mariadb-server-10.0

ubuntu:~$ sudo apt-get install mariadb-server Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that...

Npm install failed with "cannot run in wd"

I am trying to get my node environment set up on a new Ubuntu 12.04 instance, with Node 0.8.14 already installed, but I ran into problems when I try to run npm install. So when I try npm install,...

Can't use SURF, SIFT in OpenCV

I'm trying a simple thing like detector = cv2.SIFT() and get this bad error detector = cv2.SIFT() AttributeError: 'module' object has no attribute 'SIFT' I do not understand that because cv2...

Why does IntelliJ give me "Package doesn't exist" error?

I'm trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packages and wrote the...

How to optimize the FFMPEG h264/aac conversion while generating HLS segments too

I am generating HLS segments using FFMPEG. Here is the command that I am using : ffmpeg -i "rtmp://localhost/oflaDemo/33/hlsopt3 live=1" -y -c:v libx264 -b:v 1000k -vprofile baseline -preset...

python os.path.exists() failing for nfs mounted directory file that exists

I basically have a webserver for a site and another that simply stores files. The file server is connected to the main one by mounting one of its directories. The website runs Django so I...

Graph is too large for cairo-renderer bitmaps

Im trying to use pyreverse to generate UML images for a project source code. When I run the pyreverse command and specify to generate png images, it runs and then after a while, it shows: dot:...

Nginx: stat() failed (13: permission denied)

I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine. server { #listen 80; ## listen for ipv4; this line is default and...

Unable to compile any C++ Code

Whenever I try to compile a C++ file with IOStream , I get this error.. I've tried reinstalling GCC G++ (both 4.6 and 4.9) AND cpp.. It hasnt helped (or maybe I didnt do it the right way). How do...

Supervisor open file limit won't change when using Chef

I am modifying /etc/security/limits.conf on the machine, and then installing Supervisor in a Chef recipe. After the recipe run finishes, if I run cat /proc/<process id>/limits I see: Limit ...

Bluetooth does not turn on VM virtual Box

I have Android X-86 installed on Virtual Box as Virtual machine on my Windows 7. I am using Bluetooth dongle to access the Bluetooth on my VM. But I cannot turn on Bluetooth from menu. When I...

install.packages() failing due to lack of memory?

I have a VPS with Ramnode with Ubuntu 12.04 64-bit. I have their low memory plan (128mb). I have successfully installed R, but I cannot install any packages from CRAN. This is the result: >...

How to copy file from host to container using Dockerfile

I have written a Dockerfile which looks like this FROM ubuntu:12.04 RUN apt-get update RUN apt-get install -y wget Now I'm having a file called abc.txt in my host machine. How can I copy it to...

Could not find a version that satisfies the requirement <package>

I'm installing several Python packages in Ubuntu 12.04 using the following requirements.txt...

FreeSurfer installed on Ubuntu

I am trying to install FreeSurfer on Ubutun. I follow an installation instruction online. When I walk through this step, I have a question: Here is your FreeSurfer license. Place the four lines...

Open .pack file (UNIX)

The ARM CMSIS library can be downloaded as a *.pack file. How can I open/'unpack'(?) it? It seems there used to be a function, unpack, which has since been deprecated and delegated to gzip....