Skip to content

Instantly share code, notes, and snippets.

View rassie's full-sized avatar

Nikolai Prokoschenko rassie

  • Nürnberg, Germany
View GitHub Profile
$if(
$or(
$eq(%releasetype%,audiobook),
$eq(%releasetype%,spokenword)
),
Hörbücher,
Musik
)/
$if(
$ne(
def update(self, signal=True):
for name, values in self.metadata.rawitems():
if not name.startswith('~') and self.supports_tag(name):
if self.orig_metadata.getall(name) != values:
#print name, values, self.orig_metadata.getall(name)
self.similarity = self.orig_metadata.compare(self.metadata)
if self.state in (File.CHANGED, File.NORMAL):
self.state = File.CHANGED
break
else:
Traceback (most recent call last):
File "./picard/ui/itemviews.py", line 491, in dropEvent
self.drop_urls(urls, target)
File "./picard/ui/itemviews.py", line 477, in drop_urls
self.tagger.add_files(files)
File "./picard/tagger.py", line 316, in add_files
self.unmatched_files.add_files(new_files)
File "./picard/cluster.py", line 254, in add_files
super(UnmatchedFiles, self).add_files(files)
File "./picard/cluster.py", line 56, in add_files
=== modified file 'picard/album.py'
--- picard/album.py 2010-01-11 22:53:17 +0000
+++ picard/album.py 2010-02-01 23:27:56 +0000
@@ -353,6 +353,11 @@
self._after_load_callbacks.put(func)
def update(self, update_tracks=True):
+ for track in self.tracks:
+ for file in track.linked_files:
+ file.update()
Sat Feb 6 22:51:33 2010 : InitDb.pl starting
Failed query:
'SET search_path TO 'musicbrainz''
()
DBD::Pg::st execute failed: FEHLER: Schema »musicbrainz« existiert nicht at /home/nikolai/Daten/Projekte/Musicbrainz/musicbrainz-server/admin/../lib/Sql.pm line 102.
at /home/nikolai/Daten/Projekte/Musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Connector.pm line 46
Sat Feb 6 22:51:33 2010 : InitDb.pl failed
Sun Feb 7 01:01:58 2010 : InitDb.pl starting
$VAR1 = bless( {
'database' => bless( {
'database' => 'template1',
'password' => 'postgres',
'host' => 'localhost',
'username' => 'postgres'
}, 'MusicBrainz::Server::Database' )
}, 'MusicBrainz::Server::Connector' );
Failed query:
}
}
} // At this point, give up, and assume it's a sentence.
}
}
}
}
}
}
;; CPerl-Mode
;;; cperl-mode is preferred to perl-mode
(require 'cperl-mode)
(setq cperl-hairy t)
(autoload 'tt-mode "tt-mode")
(setq auto-mode-alist
(append '(("\\.tt$" . tt-mode)) auto-mode-alist ))
public class MyWidget extends AppWidgetProvider {
private static final String TAG = "My Widget";
@Override
public void onReceive(Context context, Intent intent) {
super.onReceive(context, intent);
if (intent.getAction().equals("org.namespace.ACTION_1")) {
Toast.makeText(context, "Action 1", Toast.LENGTH_SHORT).show();
$ git clone https://github.com/playfire/django-debug-toolbar-user-panel.git
Cloning into django-debug-toolbar-user-panel...
remote: Counting objects: 122, done.
remote: Compressing objects: 100% (107/107), done.
remote: Total 122 (delta 51), reused 52 (delta 9)
Receiving objects: 100% (122/122), 236.00 KiB, done.
Resolving deltas: 100% (51/51), done.
$ cd django-debug-toolbar-user-panel/