Skip to content

Instantly share code, notes, and snippets.

@Sprakle
Sprakle / gist:5561925
Last active December 17, 2015 05:59
Time Parser
public class StandardParser implements TimeParser {
private Logger logger;
// units used in SimpleDateFormat
private String[] unitFormats = { "yyyy", "MM", "dd", "HH", "mm", "ss" };
private SimpleDateFormat formatter;
// this is a relative time, and cannot be directly compared to the current date. This is because
@Sprakle
Sprakle / rhythmbox -d
Created May 6, 2013 01:57
Seeking through tracks after resuming
(18:53:12) [0x7fa158004990] [media_player_key_pressed] rb-mmkeys-plugin.c:110: got media key 'Play' for application 'Rhythmbox'
(18:53:12) [0x7fa158004990] [rb_shell_player_playpause] rb-shell-player.c:2367: doing playpause
(18:53:12) [0x7fa158004990] [start_sink_locked] rb-player-gst-xfade.c:2730: starting sink
(18:53:12) [0x7fa158004990] [start_sink_locked] rb-player-gst-xfade.c:2826: adder is now PAUSED
(18:53:12) [0x7fa158004990] [start_sink_locked] rb-player-gst-xfade.c:2828: silencebin is now PAUSED
(18:53:12) [0x7fa158004990] [start_sink_locked] rb-player-gst-xfade.c:2823: outputbin is now PAUSED
(18:53:12) [0x7fa158004990] [rb_player_gst_find_element_with_property] rb-player-gst-helper.c:132: iterating bin looking for property volume
(18:53:12) [0x7fa158004990] [find_property_element] rb-player-gst-helper.c:107: found property "volume" on element autoaudiosink0-actual-sink-pulse
(18:53:12) [0x7fa158004990] [start_sink_locked] rb-player-gst-xfade.c:2891: sink playing
(18:53:12) [0x7fa158004990] [rb_pla