Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration
, select Apache Configuration
and then click on Reserved IPs Editor
.
http { | |
# Default virtual host for www.example.com. This will pick up all HTTP | |
# requests to port 80 that are not for one of the other virtual hosts. | |
server { | |
listen 80; | |
server_name www.example.com; | |
# ...your server config here... |
/* | |
* This is a hack solves the "Invalid method passed to UIModule" error | |
* It works by forcing Titanium to load SDK components into memory. | |
* | |
* Drop this file anywhere in your project and DON'T Ti.include() it. | |
* Be sure this file extension is .js. | |
* Clean and recompile your project. | |
* | |
* Enjoy! | |
* @tzmartin |
/** | |
Create Thumbnail of Video File | |
This snippet captures a thumbnail JPG image, based on a frame @ 2 second time-lapse. | |
Titanium Mobile | |
*/ | |
var movie = Titanium.Media.createVideoPlayer({ | |
contentURL:FILENAME, |
#!/bin/bash | |
# | |
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe | |
# mounted at /mnt. It should be run early on the first boot of the system. | |
# | |
# Beware, This script is NOT fully idempotent. | |
# | |
METADATA_URL_BASE="http://169.254.169.254/2012-01-12" |
/** @jsx React.DOM */ | |
var LopMonHoc = React.createClass({ | |
getInitialState: function(){ | |
return {data: []} | |
}, | |
loadData: function(){ | |
$.ajax({ | |
url: '/daotao/lops', | |
success: function(data){ |
[ | |
{ | |
"timestamp": 0, | |
"input": "W", | |
"type": "search_local", | |
"latency": 0 | |
}, | |
{ | |
"local_results": [ | |
"ddg_search", |