Skip to content

Instantly share code, notes, and snippets.

Current:
Picard is a cross-platform (Linux/Mac OS X/Windows) application written in Python.
It supports the majority of audio file formats, uses PUID audio fingerprints,
performs CD lookups and disc ID submissions, and it has excellent Unicode support.
New:
MusicBrainz Picard is a cross-platform (Windows, Mac OS X, Linux) application written
in Python. Picard has excellent Unicode support, handles the majority of audio file
formats, and can perform audio fingerprinting, CD lookups, and disc ID submissions.
907fd4c HEAD@{0}: merge my-cool-feature: Fast forward
781dd2d HEAD@{1}: checkout: moving from my-cool-feature to master
907fd4c HEAD@{2}: checkout: moving from master to my-cool-feature
781dd2d HEAD@{3}: checkout: moving from my-cool-feature to master
907fd4c HEAD@{4}: commit: Added 'Annotation' h2
781dd2d HEAD@{5}: checkout: moving from master to my-cool-feature
$ git commit -a -m "Added headings and page titles across the templates"
[headings e43837e] Added headings and page titles across the templates
21 files changed, 178 insertions(+), 174 deletions(-)
rewrite root/edit/relationship/create.tt (81%)
rewrite root/isrc/index.tt (72%)
rewrite root/search/plugins.tt (88%)
Template::Stash::XS
-------------------
The Template::Stash module is a core part of the Template Toolkit,
implementing the magic for accessing data using the dot notation.
There is a high speed version, Template::Stash::XS, written in C.
This makes the Template Toolkit run about twice as fast as when using
the regular Template::Stash written in Perl. If you've got a C
compiler on your system then you can elect to have the XS Stash built.
@navap
navap / gist:323271
Created March 5, 2010 22:53
./admin/InitDb.pl --createdb --clean
navap@bard:~/mb_server$ ./admin/InitDb.pl --createdb --clean
Fri Mar 5 17:52:25 2010 : InitDb.pl starting
Couldn't load class (MusicBrainz::Server::Connector) because: Can't locate TryCatch.pm in @INC (@INC contains: /home/navap/mb_server/admin/../lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/navap/mb_server/admin/../lib/Sql.pm line 6.
BEGIN failed--compilation aborted at /home/navap/mb_server/admin/../lib/Sql.pm line 6.
Compilation failed in require at /home/navap/mb_server/admin/../lib/MusicBrainz/Server/Connector.pm line 5.
BEGIN failed--compilation aborted at /home/navap/mb_server/admin/../lib/MusicBrainz/Server/Connector.pm line 5.
Compilation failed in require at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 101.
at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 105
Class::MOP::__ANON__('Can\'t locate TryCatch.pm in @INC (@INC contains: /home/navap...') called at /u
@navap
navap / gist:323356
Created March 6, 2010 00:36
./script/musicbrainz_server.pl -r
navap@bard:~/mb_server$ ./script/musicbrainz_server.pl -r
Couldn't load class (MusicBrainz::Server) because: Can't locate UNIVERSAL/require.pm in @INC (@INC contains: /home/navap/mb_server/script/../lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/navap/mb_server/script/../lib/MusicBrainz/Server.pm line 9.
BEGIN failed--compilation aborted at /home/navap/mb_server/script/../lib/MusicBrainz/Server.pm line 9.
Compilation failed in require at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 101.
at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 105
Class::MOP::__ANON__('Can\'t locate UNIVERSAL/require.pm in @INC (@INC contains: /h...') called at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 98
Try::Tiny::try('CODE(0xa6ae740)', 'Try::Tiny::Catch=REF(0xa7779d8)') called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 110
Class::MOP::load_first_existing_class('MusicBra
@navap
navap / gist:323372
Created March 6, 2010 00:45
sudo cpan UNIVERSAL
navap@bard:~/mb_server$ sudo cpan UNIVERSAL
CPAN: Storable loaded ok (v2.21)
Going to read /home/navap/.cpan/Metadata
Database was generated on Fri, 05 Mar 2010 17:47:55 GMT
CPAN: YAML loaded ok (v0.71)
Going to read /home/navap/.cpan/build/
............................................................................DONE
Found 27 old builds, restored the state of 27
Running install for module 'UNIVERSAL'
The most recent version "1.05" of the module "UNIVERSAL"
@navap
navap / gist:323830
Created March 6, 2010 18:02
The mysterious INSTALL
navap@XPC ~/Documents/MB Hacking/mb_server (master)
$ git branch
comments
headings
* master
readme
navap@XPC ~/Documents/MB Hacking/mb_server (master)
$ git status
# On branch master
@navap
navap / header.tt
Created March 7, 2010 19:03
Damn parse errors
[%- IF edit.is_open -%]
[%- INCLUDE 'layout/sidebar/property.tt' label=l('Expires:')
content=html_escape(UserDate.format(edit.expires_time)) -%]
[%- ELSE -%]
[%- INCLUDE 'layout/sidebar/property.tt' label=l('Closed:')
content=html_escape(UserDate.format(edit.close_time))
[%- END -%]
Couldn't render template "file error - parse error - edit/layout.tt line 13-15: unexpected token (%-)
@navap
navap / gist:325042
Created March 8, 2010 09:57
past/present tense
<p>
[% IF edit.is_open %]
[%- l('This edit is set to a {quality}. It requires {votes}.',
{ quality => quality_name(edit.quality),
votes => ln('1 vote to accept/reject', '{n} unanimous votes to accept/reject',
edit.conditions.votes, { n => edit.conditions.votes })
}) -%]
[% ELSE %]
[% l('This edit was set to a {quality}. It required {votes}.',
{ quality => quality_name(edit.quality),