Rails based EC2 AMI

Rails based EC2 AMI

I trying to navigate my new EC2 setup and was hoping to find an AMI setup for Rails. I've been having trouble. Basically, I'm looking for something like this:* Apache 2.2* Ruby Enterprise Edtion (REE)* Passenger* MySql Installed and confi

apache server reached MaxClients setting, consider raising the MaxClients setting

apache server reached MaxClients setting, consider raising the MaxClients setting

I am running centos 5.5 with 768mb ram. i keep getting server reached MaxClients setting, consider raising the MaxClients setting in the logs also apache runs really slow. when i look at cacti graphs it shows the server is not even using al

Node.js HTTPS server ERR_EMPTY_RESPONSE

Node.js HTTPS server ERR_EMPTY_RESPONSE

I created the server.key and server.csr files using openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr. I created a SSL certificate with startssl.com which gave me a certificate file. Then in my node.js application I rea

How can I call a console command in web application in Yii 2.0

How can I call a console command in web application in Yii 2.0

I have a console command to generate user report. I want to call the same from my web application. I am using Yii 2.0.0 beta version.I tried to follow answers given in this post How to call a console command in web application action in Yi

Can't use NVM from root (or sudo)

Can't use NVM from root (or sudo)

I've mentioned that my application uses different version of NodeJS when running from sudo.$ node -vv0.10.23$ sudo node -vv0.11.8-preThis v0.11.8-pre caused me some problems, so I definitely don't want to use it, but I can't change it for r

Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)

Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)

There are multiple installers for cpan modules available; I know of at least CPAN.pm (comes with perl,) CPANPLUS, and cpanminus.What is the difference between the three?What situations call for using one over the other?Are there other modul

Backup MySql database with PHP

Backup MySql database with PHP

I have a pretty large db in MySql, and I need to take backups of it every day or so.I need to be able to take backups from any computer, so therefore I thought about making a php script to do this and put this php script online (offcourse w

Backup MySql database with PHP

Backup MySql database with PHP

I have a pretty large db in MySql, and I need to take backups of it every day or so.I need to be able to take backups from any computer, so therefore I thought about making a php script to do this and put this php script online (offcourse w

How to use Python Pip install software, to pull packages from Github?

How to use Python Pip install software, to pull packages from Github?

I'm trying to install a package from Github, using Pip, using the following syntaxpip install -e git+https://github.com/facebook/python-sdk.git#egg=FacebookSDKand getting the error "cannot find command git". This Question has (unchecked) an

File vs database for storage efficiency in chat app

File vs database for storage efficiency in chat app

I'm working on a simple AJAX chat add-on for my PHP application so I can provide real-time support to my users. I'm currently using a MySQL database storing the text, timestamp and user_id of the person who is chatting. I got to thinking

Git and Trac (or similar)

Git and Trac (or similar)

In the past I have really enjoyed using Trac with subversion repositories hosted on some of my own servers. The integrated ticketing and online code browsing is very convenient.I have used github for some of my public projects but I don't

Deploy node.js in production

Deploy node.js in production

What are the best practices for deploying a nodejs application in production?I would like to know how deploy for production Api's nodejs is being done today, today my application is in docker and running locally.I wonder if I should use a N

Getting client hostname in Node.js

Getting client hostname in Node.js

is it possible to get hostname in Node.js?This is how I get client's IP:var ip = request.header('x-forwarded-for');So, how do I get client's hostname?var hostname = request.header('???');Thanks for reply! 1:I think the only way you can d

verify if video exist with youtube api v3

verify if video exist with youtube api v3

I'm trying to verify if a youtube video (with the id_video) is valid/exist , using the youtube api V3. That's what i do (y2oy7b4SFgE is the id of the video i test):$file_headers = @get_headers('https://www.googleapis.com/youtube/v3/videos?p

Allow remote access MySQL, Ubuntu

Allow remote access MySQL, Ubuntu

Im trying to allow remote accecss to MySQL on my Ubuntu server (VPS). Im trying to access the database through an Java application Im building in Netbeans. Netbeans kick the following error message, when trying to connect: Cannot establis

How to get rid of MySQL error 'Prepared statement needs to be re-prepared'

How to get rid of MySQL error 'Prepared statement needs to be re-prepared'

I've rewritten my site php-code and added MySQL Stored Procedures. In my local version everything works fine but after I uploaded my site to hosting server I'm constatly getting fatal error 'Prepared statement needs to be re-prepared'. Some

Can't use NVM from root (or sudo)

Can't use NVM from root (or sudo)

I've mentioned that my application uses different version of NodeJS when running from sudo.$ node -vv0.10.23$ sudo node -vv0.11.8-preThis v0.11.8-pre caused me some problems, so I definitely don't want to use it, but I can't change it for r

apache server reached MaxClients setting, consider raising the MaxClients setting

apache server reached MaxClients setting, consider raising the MaxClients setting

I am running centos 5.5 with 768mb ram. i keep getting server reached MaxClients setting, consider raising the MaxClients setting in the logs also apache runs really slow. when i look at cacti graphs it shows the server is not even using al

Rails based EC2 AMI

Rails based EC2 AMI

I trying to navigate my new EC2 setup and was hoping to find an AMI setup for Rails. I've been having trouble. Basically, I'm looking for something like this:* Apache 2.2* Ruby Enterprise Edtion (REE)* Passenger* MySql Installed and confi

Zend Framework on shared hosting

Zend Framework on shared hosting

I'm new to Zend Framework. I would like to know how to implement zend framework on a shared hosting. Because of the zend framework folder structureall view files are put into the "public" folder.Suppose"/" is the main root folder for me a

Node.js HTTPS server ERR_EMPTY_RESPONSE

Node.js HTTPS server ERR_EMPTY_RESPONSE

I created the server.key and server.csr files using openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr. I created a SSL certificate with startssl.com which gave me a certificate file. Then in my node.js application I rea

.htm vs .html [closed]

.htm vs .html [closed]

Which extension should I choose for my HTML files and why? 1:The short answerThere is none. They are exactly the same.The long answerBoth .htm and .html are exactly the same and will work in the same way. The choice is down to personal p

The request failed with HTTP status 417: Expectation Failed - Using Web Services

The request failed with HTTP status 417: Expectation Failed - Using Web Services

some minutes ago i was working on a project in visual studio 2010 and suddenly my pc was restarted.after rebooting i got the error below when browsing that web site in local machine: The request failed with HTTP status 417: Expectation F

Restarting cron after changing crontab file?

Restarting cron after changing crontab file?

Do I have to restart cron after changing the crontable file? 1:No.From the cron man page: ...cron will then examine the modification time on all crontabs and reload those which have changed. Thus cron need not be restarted when

Restarting cron after changing crontab file?

Restarting cron after changing crontab file?

Do I have to restart cron after changing the crontable file? 1:No.From the cron man page: ...cron will then examine the modification time on all crontabs and reload those which have changed. Thus cron need not be restarted when