Skip to content

Instantly share code, notes, and snippets.

John Murray johnmurrayvi

Block or report user

Report or block johnmurrayvi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@johnmurrayvi
johnmurrayvi / bug22958-attach17786
Created Jul 25, 2014
poti bug 22958, attachment 17786 - encoding in unsynchronizedlyricsframe.cpp
View bug22958-attach17786
Index: taglib/taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp
===================================================================
--- taglib/taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp (revision 11368)
+++ taglib/taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp (working copy)
@@ -23,16 +23,17 @@
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
@johnmurrayvi
johnmurrayvi / gist:3b6a83d55f35f2f8b4dd
Last active Aug 29, 2015
metadata_artwork debugging output
View gist:3b6a83d55f35f2f8b4dd
nsresult sbMetadataHandlerTaglib::ReadImageITunes(TagLib::MP4::Tag *aTag,
nsACString &aMimeType,
PRUint32 *aDataLen,
PRUint8 **aData)
{
NS_ENSURE_ARG_POINTER(aTag);
NS_ENSURE_ARG_POINTER(aData);
NS_ENSURE_ARG_POINTER(aDataLen);
nsCOMPtr<nsIThread> mainThread;
nsresult rv = NS_OK;
View gist:5bb94d98b8a54e4ee7d1
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 75 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
View gst_debug for gstmozilla
0:00:50.801413313 18036 0x7fb584149b50 DEBUG GST_PLUGIN_LOADING gstpluginloader.c:324:plugin_loader_load_and_sync:<registry0> Synchronously loading plugin file /mnt/git/nightingale/sb-trunk-oldxul/compiled/dist/gst-plugins/gstmozilla_d.so
0:00:50.801430251 18036 0x7fb584149b50 DEBUG GST_POLL gstpoll.c:874:gst_poll_fd_ctl_write: 0x7fb57c454230: fd (fd:37, idx:1), active : 1
0:00:50.801440075 18036 0x7fb584149b50 LOG GST_POLL gstpoll.c:888:gst_poll_fd_ctl_write: pfd->events now 60 (POLLOUT:4)
0:00:50.833350322 18036 0x7fb584149b50 DEBUG GST_POLL gstpoll.c:874:gst_poll_fd_ctl_write: 0x7fb57c454230: fd (fd:37, idx:1), active : 1
0:00:50.833367230 18036 0x7fb584149b50 LOG GST_POLL gstpoll.c:888:gst_poll_fd_ctl_write: pfd->events now 60 (POLLOUT:4)
0:00:50.833377414 18036 0x7fb584149b50 DEBUG GST_POLL gstpoll.c:1229:gst_poll_wait: timeout :0:00:01.000000000
0:00:50.833390438 18036 0x7fb584149b50 LOG GST_PLUGIN_LOADING gstpluginloade
View gist:7518743
### TinyOS ###
export TOSROOT="/opt/tinyos/tinyos-main"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar:$TOSROOT/support/sdk/java
export MAKERULES="$TOSROOT/support/make/Makerules"
export PYTHONPATH=$PYTHONPATH:$TOSROOT/support/sdk/python
#export MOTECOM="serial@/dev/ttyUSB0:telosb"
View ng-feathers-manager
Changes:
getSkinDescription: function getSkinDescription(internalName) {
+ dump("sbFeathersManager::getSkinDescription(internalName = "+internalName+")\n");
return this._skins[internalName];
},
...
getLayoutDescription: function getLayoutDescription(url) {
@johnmurrayvi
johnmurrayvi / gcc-4.8-pm-fix
Last active Dec 19, 2015
patch to fix ng build with gcc 4.8
View gcc-4.8-pm-fix
--- /usr/lib/gcc/x86_64-linux-gnu/4.8/include/mm_malloc.h
+++ /usr/lib/gcc/x86_64-linux-gnu/4.8/include/mm_malloc.h
@@ -32,6 +32,7 @@
extern int posix_memalign (void **, size_t, size_t);
#else
-extern "C" int posix_memalign (void **, size_t, size_t) throw ();
+extern "C" int posix_memalign (void **, size_t, size_t);
#endif
static __inline void *
@johnmurrayvi
johnmurrayvi / playcount-fail
Created Jun 24, 2013
play count increment debugging
View playcount-fail
***** First track *****
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): sbPlaybackHistoryService[0xb3e0e400] - OnMediacoreEvent
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): +++++ sbIMediacoreEvent: eventType = 16384 [STREAM_BEFORE_START]
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): sbPlaybackHistoryService[0xb3e0e400] - OnMediacoreEvent
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): +++++ sbIMediacoreEvent: eventType = 4096 [METADATA_CHANGE]
***** About to start first track *****
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): sbPlaybackHistoryService[0xb3e0e400] - OnMediacoreEvent
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): +++++ sbIMediacoreEvent: e
@johnmurrayvi
johnmurrayvi / ng-backtrace
Created Jun 16, 2013
full backtrace of current issues
View ng-backtrace
(gdb) backtrace full
#0 0x00007ffff4e34a5b in nsCOMPtr<nsIObserver>::nsCOMPtr (this=0x7fffffffc838, aRawPtr=0x7fffe0fdb2d0) at ../../../dist/include/nsCOMPtr.h:600
No locals.
#1 0x00007ffff4fb6fdc in PrefCallback::PrefCallback (this=0x7fffffffc810, aDomain=0x7ffff6ba53e0 <sFileOriginPolicyPrefName> "security.fileuri.strict_origin_policy", aObserver=0x7fffe0fdb2d0, aBranch=0x7fffe9648d80)
at /mnt/git/nightingale/deps/xulrunner/mozilla/modules/libpref/src/nsPrefBranch.h:89
No locals.
#2 0x00007ffff4fba089 in nsPrefBranch::RemoveObserver (this=0x7fffe9648d80, aDomain=0x7ffff6ba53e0 <sFileOriginPolicyPrefName> "security.fileuri.strict_origin_policy", aObserver=0x7fffe0fdb2d0)
at /mnt/git/nightingale/deps/xulrunner/mozilla/modules/libpref/src/nsPrefBranch.cpp:634
rv = 0
key = {
@johnmurrayvi
johnmurrayvi / ng-nspr-log
Created Jun 16, 2013
export NSPR_LOG_MODULES=all:3 ; ./nightingale
View ng-nspr-log
jmurray@jjmvi-AMD-ubuntu:~/git/nightingale/nightingale/compiled/dist$ export NSPR_LOG_MODULES=all:3 ; ./nightingale
(process:9783): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
nsStringStats
=> mAllocCount: 6
=> mReallocCount: 2
=> mFreeCount: 6
=> mShareCount: 1
=> mAdoptCount: 0
=> mAdoptFreeCount: 0
You can’t perform that action at this time.