Custom Directives Outside of a VirtualHost Tag
I created a copy of vhost.default at /var/cpanel/templates/apache2 named vhost.local, found the first line listed below and added the second line below it.
| (function ($, undef) | |
| { | |
| // Function and variables defined in here that do not get | |
| // attached to $ will be scoped to this function, effectively | |
| // making them private. | |
| $fn.plugin = function (options) | |
| { | |
| options = $.extend($.plugin.options, options); |
Custom Directives Outside of a VirtualHost Tag
I created a copy of vhost.default at /var/cpanel/templates/apache2 named vhost.local, found the first line listed below and added the second line below it.
| #!C:\lang\perl\bin\perl.exe | |
| #!/usr/bin/perl -T | |
| use strict; | |
| use warnings; | |
| use Fcntl qw(:flock); | |
| use Try::Tiny; | |
| use Cwd; | |
| use JSON::PP; | |
| package Example::User; | |
| our $VERSION = '1.0.0'; | |
| #########################################||######################################### | |
| # # | |
| # Example::User # | |
| # © Copyright Information and Link To Authors Site Goes Here # | |
| # # | |
| #########################################||######################################### |
| #!c:\lang\perl\bin\perl.exe | |
| use strict; | |
| use warnings; | |
| use Fcntl qw(:DEFAULT :flock); | |
| # How high you want to be teleported | |
| my $y = 200; | |
| # The x offset for the center of the map | |
| my $offx = 1000; |
My pi runs a raspbian distro (2013-09-25-wheezy-raspbian.zip)
What the raspberry page officially recommends is the jdk. (Source: http://www.raspberrypi.org/archives/4920).
sudo apt-get update && sudo apt-get install oracle-java7-jdk
However, this doesn't include a server on the pi. The jre needs to be installed instead.
| @echo off | |
| if %1.==. goto UseDefaults | |
| set srvname=%1 | |
| if %2.==. goto UseDefaultApp | |
| set app=%2 | |
| if %3.==. goto UseDefaultConfig | |
| set config=%3 |
On the frontend, use dropzone.js, on the backend, use connect-express.
Node Route Example
module.exports.post = function (req, res, next)
{
console.log('request:');
var fstream;
req.pipe(req.busboy);Great (and mostly free) bootstrap plugins.