Are there any good Ruby on Rails project other than Discourse ? A lot of people talk highly about Ruby on Rails, but I have not seen it applied much in many areas. Not that I have came across. If it is so good, why it is not discussed much ?
Posted by: meetdilip - 12-03-2016, 09:20 AM - Forum: General Gaming Discussion
- No Replies
What is the scope of DayDream in games ? Could VR revolutionize gaming ? It already has in a few devices. DayDream VR headsets are not costly unlike other VR sets. Would be great to try one.
Are there any 3D games for Android that I can play on a tablet. I would be ok with using a 3D glass just like in a 3D movie. Would I need something more than that ?
Nginx is an opensource web server which uses epoll mechanism to serve clients as opposed to Apache which uses a thread based model which delegates the requests to an instance in the thread pool. Nginx is being used more over Apache because of its speed.
Installing from source is not as easy as installing it from the repository. This way you have to configure it and compile it before you can start using it. In the repository they add the version they compiled. Compiling from source is good option when you need newest version of nginx, fixing security vulnerabilities. fixing bugs and such.
Compiling from source is useful because you can add modules that are not available in regular installation.
1. Install dependencies
2. Download the source code
Grab the latest version from http://nginx.org/en/download.html
3. Preparing the nginx source
For a full list of options you can look at ./configure --help
Options for basic file path names
These options are the basic variables which we override to use default system paths at /etc/to ensure it works simliar when installed via rpm. The user and group option are used to run the nginx worker processes in non-privileged.
4. Compiling
Now when we have configured our nginx, it is time to build it.
5. Run the nginx
We will create a user nginx which will run the process.
Create a startup script
Paste following
Make the script executable:
Set the service to start whenever the system boots:
Start nginx server
The setup is complete and nginx is running on port 80.
Installing from source is not as easy as installing it from the repository. This way you have to configure it and compile it before you can start using it. In the repository they add the version they compiled. Compiling from source is good option when you need newest version of nginx, fixing security vulnerabilities. fixing bugs and such.
Compiling from source is useful because you can add modules that are not available in regular installation.
1. Install dependencies
Code:
yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel2. Download the source code
Grab the latest version from http://nginx.org/en/download.html
Code:
wget http://nginx.org/download/nginx-1.11.6.tar.gz
tar -xzf nginx-1.11.6.tar.gz3. Preparing the nginx source
For a full list of options you can look at ./configure --help
Options for basic file path names
These options are the basic variables which we override to use default system paths at /etc/to ensure it works simliar when installed via rpm. The user and group option are used to run the nginx worker processes in non-privileged.
- --user
- --group
- --prefix
- --sbin-path
- --conf-path
- --pid-path
- --lock-path
- --error-log-path
- --http-log-path
- --with-http_gzip_static_module option enables nginx to use gzip (Before serving a file from disk to a gzip-enabled client, this module will look for a precompressed file in the same location that ends in ".gz". The purpose is to avoid compressing the same file each time it is requested.).[recommended for reducing size of information sent]
- --with-http_stub_status_module option enables other plugins over nginx to allow us to get the status (This module provides the ability to get some status from nginx.). [recommended for getting stats]
- --with-http_ssl_module - required if you want to run a HTTPS server. See How To Create a SSL Certificate on nginx for CentOS 6
- --with-pcre option enables to match routes via Regular Expression Matching when defining routes. [recommended, you will find more use of this once you start adding and matching routes]
- --with-file-aio - enables asynchronous I/O, better than the default send file option (recommended if you are allowing users to download static files)
- --with-http_realip_module is used for getting the IP of the client when behind a load balancer. This is useful when serving content behind CloudFlare like services.
- --without-http_scgi_module - Disable SCGI module (normally used when running CGI scripts)
- --without-http_uwsgi_module - Disable UWSGI module (normally used when running CGI scripts)
- --without-http_fastcgi_module - Disable FastCGI module (normally used when running CGI scripts)
Code:
./configure \
--user=nginx \
--group=nginx \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-pcre \
--with-file-aio \
--with-http_realip_module \
--without-http_scgi_module \
--without-http_uwsgi_module \
--without-http_fastcgi_module4. Compiling
Now when we have configured our nginx, it is time to build it.
Code:
make
make install5. Run the nginx
We will create a user nginx which will run the process.
Code:
useradd -r nginxCreate a startup script
Code:
vi /etc/init.d/nginxPaste following
Code:
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# pidfile: /var/run/nginx.pid
# user: nginx
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0
nginx="/usr/sbin/nginx"
prog=$(basename $nginx)
NGINX_CONF_FILE="/etc/nginx/nginx.conf"
lockfile=/var/run/nginx.lock
start() {
[ -x $nginx ] || exit 5
[ -f $NGINX_CONF_FILE ] || exit 6
echo -n $"Starting $prog: "
daemon $nginx -c $NGINX_CONF_FILE
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping $prog: "
killproc $prog -QUIT
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
configtest || return $?
stop
start
}
reload() {
configtest || return $?
echo -n $"Reloading $prog: "
killproc $nginx -HUP
RETVAL=$?
echo
}
force_reload() {
restart
}
configtest() {
$nginx -t -c $NGINX_CONF_FILE
}
rh_status() {
status $prog
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart|configtest)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}"
exit 2
esacMake the script executable:
Code:
chmod +x /etc/init.d/nginxSet the service to start whenever the system boots:
Code:
chkconfig --add nginx
chkconfig --level 345 nginx onStart nginx server
Code:
service nginx startThe setup is complete and nginx is running on port 80.
This is a guide how to install stack of software which will allow us to serve dynamic pages.
It includes:
2. Install nginx
This will install the Webserver and proxy server nginx which is very light and uses fewer resources than apache.
3. Install PHP Processor
PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language.
4. Install MariaDB
MariaDB is a community-developed fork of MySQL. They have better performance and frequent updates.
5. Edit nginx configuration
Open the default configuration file
Delete everything and paste the following
Replace server_domain_name_or_IP with your domain name or IP and the root with root path of your website.
That would be it. Now you are ready to create your dynamic website.
It includes:
- NGINX - Web server and proxy
- PHP FPM - server side language processor
- MariaDB - Database server (RDBMS)
Code:
sudo apt-get update
sudo apt-get upgrade2. Install nginx
This will install the Webserver and proxy server nginx which is very light and uses fewer resources than apache.
Code:
sudo apt-get install nginx3. Install PHP Processor
PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language.
Code:
sudo apt-get install php5-fpm php5-mysql4. Install MariaDB
MariaDB is a community-developed fork of MySQL. They have better performance and frequent updates.
Code:
sudo apt-get install mariadb-server mariadb-client5. Edit nginx configuration
Open the default configuration file
Code:
sudo nano /etc/nginx/sites-available/defaultDelete everything and paste the following
Code:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
server_name server_domain_name_or_IP;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}Replace server_domain_name_or_IP with your domain name or IP and the root with root path of your website.
That would be it. Now you are ready to create your dynamic website.
37 VPSs are Available
8x VPS 3
2x VPS 4
10x VPS 5
1x VPS 6
9x VPS 8
2x VPS 9 (Please mention the location from Dallas, and Chicago in your VPS Request or if you want random then don't mention it & Please include in your request which operating system you would like installed from below OS list.)
2x VPS 10
1x VPS 11
1x VPS 12
1x VPS 13
Note: We would not only view points for VPS 9 but also the VPS usage purpose too, so if you a have reasonable purpose, then only try to claim for them
as otherwise it would be just a waste of resourceOperating System of VPS 3 are as follows:
Spoiler Expand
Operating System of VPS 9 are as follows:
Spoiler Expand
The winners will be decided as soon as possible and giveaway will remain open till 8th of December (Thursday).
Please Read before Applying
- Read Our Forum Rules before applying.
- You should have meet our minimum requirements to get VPS.
- Read Application Format before applying. (If the application format is wrong then your Request will be rejected)
- You must post your VPS application in VPS Request Forum.
- Read TOS of VPS providers before applying.
Good Luck !
Hello Everyone!
I got an amazing deal on hosting, so I will help everybody in need of my small service. This is great for school projects, as you can host files easy through the PYDIO platform!
Overview:
Location: US Server
Number of applications: 3
Storage Quota: 500MB
Encryption: Yes, the file hosting panel is secured using SSL/TLS
I can only host thirty people at the moment, so this is based off a first come first serve basis.
Now there are two ways of obtaining access (or the Format):
This will be used until I can find a way to automate this process.
Recommended: Send me an eMail.
Send the eMail to [email protected]
Name:
E-Mail Address: (This is optional, as I can use the address you use to send me this eMail)
Preferred Username: (This is still being worked on, but I will try to give you the username you want)
Second way:
Post a reply in this thread using the format above.
Thank you!
I got an amazing deal on hosting, so I will help everybody in need of my small service. This is great for school projects, as you can host files easy through the PYDIO platform!
Overview:
Location: US Server
Number of applications: 3
Storage Quota: 500MB
Encryption: Yes, the file hosting panel is secured using SSL/TLS
I can only host thirty people at the moment, so this is based off a first come first serve basis.
Now there are two ways of obtaining access (or the Format):
This will be used until I can find a way to automate this process.
Recommended: Send me an eMail.
Send the eMail to [email protected]
Name:
E-Mail Address: (This is optional, as I can use the address you use to send me this eMail)
Preferred Username: (This is still being worked on, but I will try to give you the username you want)
Second way:
Post a reply in this thread using the format above.
Thank you!
So lets say u have 2 hdd's both are the same model and same speeds, what would be faster and why, USB 3.0 or Sata III.
In my first opinion i would think that usb 3 would win, but then in the other side i would think that sata would win because sata is direct to the mainboard, and USB 3.0 is not made to have windows running on it.
but then what is faster, what do you think
In my first opinion i would think that usb 3 would win, but then in the other side i would think that sata would win because sata is direct to the mainboard, and USB 3.0 is not made to have windows running on it.
but then what is faster, what do you think
i am playing with 4:3 1280x1024 (stretched) but what resolution are you playing with?
| Welcome, Guest |
|
You have to register before you can post on our site. |
| Search Forums |
|
(Advanced Search) |
| Forum Statistics |
|
» Members: 2,271 » Latest member: orzpainter » Forum threads: 3,099 » Forum posts: 34,782 Full Statistics |
| Online Users |
|
There are currently 480 online users. » 0 Member(s) | 477 Guest(s) Bing, Google, Yandex |
| Latest Threads |
|
Get LLHOST Netherlands Fe...
Forum: Others Last Post: LLHOST 09-29-2025, 03:02 AM » Replies: 0 » Views: 496 |
|
Super Fast LLHOST Netherl...
Forum: Value VPS Providers Last Post: LLHOST 09-16-2025, 05:01 AM » Replies: 0 » Views: 359 |
|
Get LLHOST Netherlands Fe...
Forum: Cheap Providers Last Post: LLHOST 09-08-2025, 01:33 PM » Replies: 0 » Views: 471 |
|
Windows VPS @ $31.5/Year ...
Forum: Cheap Providers Last Post: DewlanceHosting 08-16-2025, 03:12 AM » Replies: 0 » Views: 618 |
|
Buy DemoTiger Videos on c...
Forum: Others Last Post: DewlanceHosting 08-16-2025, 03:10 AM » Replies: 8 » Views: 5,776 |
|
Budget Dedicated Servers ...
Forum: Others Last Post: HostNamaste 08-13-2025, 04:54 AM » Replies: 2 » Views: 1,575 |
|
☁️ How to Use VCCPRO Virt...
Forum: Cheap Providers Last Post: bestadvisor 07-13-2025, 09:36 AM » Replies: 0 » Views: 810 |
|
[Promo] 30% Discount – VP...
Forum: Cheap Providers Last Post: LLHOST 07-11-2025, 12:56 PM » Replies: 0 » Views: 720 |
|
✅ Affordable VPS Hosting ...
Forum: Cheap VPS Providers Last Post: RIYAD 07-02-2025, 03:02 AM » Replies: 0 » Views: 1,497 |
|
15% Lifetime Discount on ...
Forum: Cheap Providers Last Post: LLHOST 06-25-2025, 05:03 AM » Replies: 0 » Views: 602 |
E with NoVNC and Java pre-installed for RS