This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple usecase here is I want to override the document title function from chrome.js | |
// Make sure the code is loaded, i.e. set to module name | |
openerp.profile_hsd = function(instance) { | |
// Override the set_title method to our own to have recognizable document titles | |
// FIXME: this comes *after* it has already been set to OpenERP earlier, perhaps no biggie | |
instance.web.WebClient.include({ | |
set_title: function(title) { | |
title = _.str.clean(title); | |
var sep = _.isEmpty(title) ? '' : ' - '; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MrBlog micro> $group = User_group::getKV('id','debug'); | |
MrBlog micro> $blocked = $group->getBlocked(); | |
Fatal error: Call to a member function getBlocked() on a non-object in /usr/local/statusnet/scripts/console.php(153) : eval()'d code on line 1 | |
Call Stack: | |
0.0057 360820 1. {main}() /usr/local/statusnet/scripts/console.php:0 | |
174.6913 10870148 2. eval('$blocked = $group->getBlocked(); | |
') /usr/local/statusnet/scripts/console.php:153 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun no-op() (interactive)) | |
(global-set-key [key-4660] 'no-op) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq-default major-mode (lambda () | |
(if buffer-file-name | |
(fundamental-mode) | |
(let ((buffer-file-name (buffer-name))) | |
(set-auto-mode))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed Oct 23 16:35:30 2013] [error] [client 213.125.12.138] PHP Fatal error: Allowed memory size of 269484032 bytes exhausted (tried to allocate 44 bytes) in /usr/local/statusnet/extlib/DB/mysqli.php on line 458, referer: http://o.mrblog.nl/group/ | |
[Wed Oct 23 16:35:30 2013] [error] [client 213.125.12.138] PHP Stack trace:, referer: http://o.mrblog.nl/group/ | |
[Wed Oct 23 16:35:30 2013] [error] [client 213.125.12.138] PHP 1. {main}() /usr/local/statusnet/index.php:0, referer: http://o.mrblog.nl/group/ | |
[Wed Oct 23 16:35:30 2013] [error] [client 213.125.12.138] PHP 2. main() /usr/local/statusnet/index.php:354, referer: http://o.mrblog.nl/group/ | |
[Wed Oct 23 16:35:30 2013] [error] [client 213.125.12.138] PHP 3. call_user_func() /usr/local/statusnet/index.php:340, referer: http://o.mrblog.nl/group/ | |
[Wed Oct 23 16:35:30 2013] [error] [client 213.125.12.138] PHP 4. Action::run() /usr/local/statusnet/index.php:340, referer: http://o.mrblog.nl/group/ | |
[Wed Oct 23 16:35:30 2013] [error] [client 213.125.12.138] PHP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-10-21 09:05:30 LOG_ERR: [o.mrblog.nl:queuedaemon.php:8554] Distrib queue exception saving notice 3308049: [Inbox] DB_DataObject error []: DB Error: unknown error | |
#0 /usr/local/statusnet/extlib/DB/DataObject.php(2611): Memcached_DataObject->raiseError(Object(DB_Error)) | |
#1 /usr/local/statusnet/classes/Memcached_DataObject.php(629): DB_DataObject->_query('UPDATE inbox se...') | |
#2 /usr/local/statusnet/extlib/DB/DataObject.php(1729): Memcached_DataObject->_query('UPDATE inbox se...') | |
#3 /usr/local/statusnet/classes/Inbox.php(149): DB_DataObject->query('UPDATE inbox se...') | |
#4 /usr/local/statusnet/classes/Inbox.php(162): Inbox::insertNotice(1, 3308049) | |
#5 /usr/local/statusnet/classes/Notice.php(1096): Inbox::bulkInsert(3308049, Array) | |
#6 /usr/local/statusnet/lib/distribqueuehandler.php(69): Notice->addToInboxes() | |
#7 /usr/local/statusnet/lib/stompqueuemanager.php(519): DistribQueueHandler->handle(Object(Notice)) | |
#8 /usr/local/statusnet/lib/stompqueuemanager.php(259): StompQueueManager->handleItem(Object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -186,6 +186,7 @@ function initConversation() | |
// @fixme db_dataobject won't save our value for an autoincrement | |
// so we're bypassing the insert wrappers | |
+ try { | |
$conv = new Conversation(); | |
$sql = "insert into conversation (id,uri,created) values(%d,'%s','%s')"; | |
$sql = sprintf($sql, | |
@@ -193,6 +194,9 @@ function initConversation() | |
$conv->escape($uri), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'org-habit) | |
;; I need a modified version of org-is-habit, which takes inheritance | |
;; in to account | |
(defun mrb/org-is-habit-recursive-p (&optional pom) | |
"Is the task at POM or point a habit, taking property | |
inheritance into account?" | |
(equalp "habit" (org-entry-get (or pom (point)) "STYLE" t))) | |
(defun mrb/archive-done-item() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(quail-define-package | |
"MyTeX" "UTF-8" "\\" t | |
"LaTeX-like input method for many characters. | |
These characters are from the charsets used by the `utf-8' coding | |
system, including many technical ones. Examples: | |
\\'a -> á \\`{a} -> à | |
\\pi -> π \\int -> ∫ ^1 -> ¹" | |
'(("\t" . quail-completion)) | |
nil nil nil nil nil nil nil nil nil t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-10-02 13:04:39 LOG_WARNING: [o.mrblog.nl:queuedaemon.php:7798] [2] unlink(/usr/local/statusnet/avatar/Twitter_3103641_nrc.nl.twitter-avatar_bigger.png): No such file or directory (/usr/local/statusnet/classes/Avatar.php:58) | |
2013-10-02 13:04:41 LOG_WARNING: [o.mrblog.nl:queuedaemon.php:7798] TwitterImport Couldn't insert avatar - [Avatar] DB_DataObject error []: DB Error: already exists | |
2013-10-02 13:04:41 LOG_ERR: [o.mrblog.nl:queuedaemon.php:7798] twitterimport.php - Unknown error (NULL)(INSERT on avatar[profile_id='1033',original='0',width='24',height='24',mediatype='image/png',filename='Twitter_3103641_nrc.nl.twitter-avatar_mini.png',url='http://o.mrblog.nl/avatar/Twitter_3103641_nrc.nl.twitter-avatar_mini.png',created='2013-10-02 13:04:41',modified='']) | |
2013-10-02 13:04:41 LOG_WARNING: [o.mrblog.nl:queuedaemon.php:7798] TwitterImport Couldn't insert avatar - [Avatar] DB_DataObject error []: DB Error: already exists | |
2013-10-02 13:04:41 LOG_ERR: [o.mrblog.nl:queuedaemon.php:7798] twitterimport.php - Un |