- md5.js
- color.js
- handlebars.js
- moment.js
- underscore.js
- json2.js
- chroma.js
- numeral.js
- sylvester.js
return a ? b ? 0 : -j : i;
needs to be edited as
return a ? (b ? 0 : -j) : i;
It just takes some patience.
return a ? b ? 0 : -j : i;
needs to be edited as
return a ? (b ? 0 : -j) : i;
It just takes some patience.
catalyst.pl Hastu cd Hastu/ # this is important mv hastu.psgi app.psgi # need to edit app.psgi here git add . git init && git add . git commit -m "first commit" git remote add origin https://github.com/simonecesano/Hastu.git cpanm --installdeps . heroku apps:create hastu --stack cedar --buildpack https://github.com/miyagawa/heroku-buildpack-perl.git git push -u origin master git push heroku master
sudo mkdir /Volumes/Data/Postgresql/perfido
Then you make sure that it's owned by the user postgressudo chown -R postgres:postgres /Volumes/Data/Postgresql
and finally you create the databasesudo su postgres -c "initdb -D /Volumes/Data/Postgresql/perfido"
and you're ready to go.
If things don't work (you get a "could not connect to server" message) it's very likely a path issue (see this), and therefore fix your path:export PATH=/opt/local/lib/postgresql93/bin:$PATHTo start postgres automatically use:
sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql93-server.plist
# inside My::Catalyst::App
after 'prepare_path' => sub {
my ($c) = @_;
local $_ = $c->request->path;
s/\.([a-z]+)$//i;
$c->stash->{format} = lc $1 || 'html';
$c->request->path($_);
};
sub begin : Private {
my ( $self, $c) = @_;
my ($p, $i);
$p = $c->req->params;
for (grep { /^\w$/ } keys %{$p}) {
$i->{$_} = $p->{$_};
delete $p->{$_}
}
$c->stash->{params} = $p;
$c->stash->{int_params} = $i;
}
and you place your javascript files in the MyApp/root/js directory, the hassle's gone.
__PACKAGE__->config->{static}->{dirs} = [
'static',
qr/^(images|css|js)/,
];