Skip to content

Instantly share code, notes, and snippets.

View bvibber's full-sized avatar

Brooke Vibber bvibber

View GitHub Profile
@bvibber
bvibber / gist:1243845
Created September 27, 2011 00:10
tweak to MessageCache::loadFromDB
Index: includes/cache/MessageCache.php
===================================================================
--- includes/cache/MessageCache.php (revision 98199)
+++ includes/cache/MessageCache.php (working copy)
@@ -428,7 +428,16 @@
);
foreach ( $res as $row ) {
- $cache[$row->page_title] = ' ' . Revision::getRevisionText( $row );
+ $text = Revision::getRevisionText( $row );
Index: OpenSearchXml/ApiOpenSearchXml.php
===================================================================
--- OpenSearchXml/ApiOpenSearchXml.php (revision 99057)
+++ OpenSearchXml/ApiOpenSearchXml.php (working copy)
@@ -87,7 +87,11 @@
$srchres = PrefixSearch::titleSearch( $search, $limit, $namespaces );
- $items = array_filter( array_map( array( $this, 'formatItem' ), $srchres ) );
+ try {
+html > body .portlet {
+ float: left;
+ clear: left;
+}
+/* recover IEMac (might be fine with the float, but usually it's close to IE */
+*>body .portlet {
+ float: none;
+ clear: none;
+}
ini_set('display_errors', 1);
error_reporting(E_ALL);
$f = fopen($wgDebugLogFile, "a");
if (!$f) die("Failed to open log file");
fputs($f, "Testing log file.\n");
grendel:callback-ios brion$ make
Packaging PhoneGap Javascript...
Done.
Building PhoneGap.framework...
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution "Run Script" build/PhoneGapLib.build/Release-iphoneos/UniversalFramework.build/Script-303258E6136B2D4F00982B63.sh
(1 failure)
....
CompileC build/PhoneGapLib.build/Release-iphoneos/PhoneGap.build/Objects-normal/armv6/Location.o Classes/Location.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/brion/src/callback-ios/PhoneGapLib
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -x objective-c -arch armv6 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -std=c99 -Wno-trigraphs -fpascal-strings -Os -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -DPG_VERSION= -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -Wno-sign-conversion -mthumb "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__a
e114a353 PhoneGapLib/Classes/Location.m (Becky Gibson 2011-09-08 02:46:30 +0800 178)
f091f294 iphone/Classes/Location.m (Michael Nachbaur 2009-04-16 16:45:17 -0700 179) // Tell the location manager to start notifying us of location updates
5b7dae9e PhoneGapLib/Classes/Location.m (Matthew Schulkind 2011-11-15 00:20:36 -0500 180) }
5b7dae9e PhoneGapLib/Classes/Location.m (Matthew Schulkind 2011-11-15 00:20:36 -0500 181)
5b7dae9e PhoneGapLib/Classes/Location.m (Matthew Schulkind 2011-11-15 00:20:36 -0500 182) // Tell the location manager to start notifying us of location updates. We
5b7dae9e PhoneGapLib/Classes/Location.m (Matthew Schulkind 2011-11-15 00:20:36 -0500 183) // first stop, and then start the updating to ensure we get at least one
5b7dae9e PhoneGapLib/Classes/Location.m (Matthew Schulkind 2011-11-15 00:20:36 -0500 184) // update, even if our location did not change.
5b7dae9e PhoneGapLib/Classes/Location.m (Matthew Schulkind 2011-11-15 00:20:36 -0500 185)
make[5]: *** No rule to make target `/Users/brion/src/mozilla/birch/embedding/android/Makefile.in', needed by `android/Makefile'. Stop.
make[4]: *** [export_tier_platform] Error 2
make[3]: *** [tier_platform] Error 2
make[2]: *** [default] Error 2
make[1]: *** [realbuild] Error 2
make: *** [build] Error 2
$(function() {
$statusbar = $('#status-top');
// Only do the rest if we have the statusbar!
if ($statusbar.length > 0) {
function updateOnlineStatusBar() {
// ... code to fetch and update
}
$.ajax({
url: mw.config.get('wgScriptUrl') + '/api' + mw.config.get('wgScriptExtension'),
data: {
action: "query",
prop: "onlinestatus",
onlinestatususer: mw.config.get('wgTitle'),
format: 'json'
},
success: function(data) {
// code to update the statusbar based on the returned message