Graphing a process's memory usage [closed]
Question Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
</div>
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 months ago.
The community reviewed whether to reopen this question 7 months ago and left it closed:…
Read more ⟶npm "failed to parse json"
Question When I'm trying to install express with npm I always get the following error:
Failed to parse json
No data, empty input at 1:1
File: /root/.npm/inherits/2.0.1/package/package.json
Failed to parse package.json data.
package.json must be actual JSON, not just JavaScript.
This is not a bug in npm. Tell the package author to fix their package.json file. JSON.parse What am I doing wrong?
sudo npm install -g express
OS is Ubuntu 12.…
Read more ⟶"Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar" when starting the Scala interpreter
Question When running the Scala interpreter in Ubuntu 14.04, I get the following message printed as the first line:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Followed by the familiar "Welcome to Scala" message.
I'm worried because I haven't seen that when running Scala before - what does it mean, is it dangerous, etc?
Apparently the environment variable $JAVA_TOOL_OPTIONS is set to -javaagent:/usr/share/java/jayatanaag.jar - I didn't set that, but what did and why? Can I safely unset it?…
Read more ⟶What is the difference between installing a package using pip vs. apt-get?
Question I'm trying to deploy a Django site on an Ubuntu machine. I need to install Psycopg2 and PIL but it seems that I'm able to install them using either apt-get or using pip. Is there a difference in installing by the two methods? I know that using pip, I'm able to install it into a virtual environment but with apt-get it installs in the global python environment. Answer You probably already know the benefits of apt-get.…
Read more ⟶Fetching static files failed with 404 in nginx
Question I'm now deploying an django app with nginx and gunicorn on ubuntu 12.
And I configure the nginx virtual host file as below:
server {
listen 80;
server_name mydomain.com;
access_log /var/log/nginx/gunicorn.log;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /static/ {
root /var/www/django/ecerp/erp/static/;
}
} I can request the django well, but when request a static file, it response with 404 status.…
Read more ⟶Apache and logrotate configuration
Question Last week I found a problem on my server, because the disk usage was 100%, and I found out apache had created a huge error.log file of 60GB. I changed then the LogLevel to emerg, but after one week, it is again 1.3GB which is definitely too much.
Moreover, I have an access.log of 6MB and an other_vhosts_access.log of 167MB. So I found out that the problem could be logrotate not working.…
Read more ⟶PHPStorm can't accept any input from keyboard after Find Occurrence
Question I'm using PHPStorm 7.0 in Ubuntu 13.10
I have problem after run command "Next Occurence" / "Prev Occurence" via keyboard shortcut "Ctrl + Alt + Down Arrow", I can not type any word or run any shortcut again in PHPStorm in any view (editor, Project, Favorite, etc), like PHPStorm ignored my keyboard input.
But fortunately it still can accepted mouse input, so I still can save my works, then I restarted it & back to normal.…
Read more ⟶