This file contains 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
$wgForeignFileRepos[] = array( | |
'class' => 'ForeignAPIRepo', | |
'name' => 'enwiki', | |
'apibase' => 'http://en.wikipedia.org/w/api.php', | |
'fetchDescription' => true, // Optional | |
'descriptionCacheExpiry' => 43200, // 12 hours, optional (values are seconds) | |
'apiThumbCacheExpiry' => 43200, // 12 hours, optional, but required for local thumb caching | |
); |
This file contains 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
iff --git a/includes/Linker.php b/includes/Linker.php | |
index f1f6c8e..0f45165 100644 | |
--- a/includes/Linker.php | |
+++ b/includes/Linker.php | |
@@ -797,6 +797,7 @@ class Linker { | |
$hp['width'] = isset( $fp['upright'] ) ? 130 : 180; | |
} | |
$thumb = false; | |
+ $noscale = false; | |
This file contains 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 "$IP/extensions/MobileFrontend/MobileFrontend.php"; | |
// really important extensions for running Wikipedia content | |
require "$IP/extensions/ParserFunctions/ParserFunctions.php"; | |
require "$IP/extensions/Cite/Cite.php"; | |
// pull images from Commons | |
$wgUseInstantCommons = true; |
This file contains 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
Narrative | |
As the mobile team writing PHP code, I can get access to per-article thumbnail images, so that I can display them in the user interface (watchlist, search, etc) | |
Acceptance Criteria | |
PHP method to, given a page title, retrieve a relevant image (as a File object) | |
provide a standard fallback image to use when no image is available | |
Related Bugs | |
Related Stories |
This file contains 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
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 9.878s | |
[INFO] Finished at: Thu Jan 24 13:47:09 PST 2013 | |
[INFO] Final Memory: 7M/81M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal on project commons: Could not resolve dependencies for project org.wikimedia:commons:apk:1.0-SNAPSHOT: Could not find artifact android:android:jar:4.1_r2 in central (http://repo.maven.apache.org/maven2) -> [Help 1] | |
[ERROR] | |
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. |
This file contains 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
INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 12.724s | |
[INFO] Finished at: Thu Jan 24 14:15:34 PST 2013 | |
[INFO] Final Memory: 16M/81M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:dex (default-dex) on project commons: MojoExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /Users/brion/src/wiki/droid/android-commons/commons && /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx1024M -jar /Users/brion/android-sdks/platform-tools/lib/dx.jar --dex --output=/Users/brion/src/wiki/droid/android-commons/commons/target/classes.dex /Users/brion/.m2/repository/com/google/android/android/4.0.1.2/android-4.0.1.2.jar /Users/brion/.m2/repository/org/apache/httpcomponents/httpmime/4.2.2/ |
This file contains 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
trouble processing "javax/xml/namespace/QName.class": | |
Ill-advised or mistaken usage of a core class (java.* or javax.*) | |
when not building a core library. | |
This is often due to inadvertently including a core library file | |
in your application's project, when using an IDE (such as | |
Eclipse). If you are sure you're not intentionally defining a | |
core class, then this is the most likely explanation of what's | |
going on. |
This file contains 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
I/ActivityManager( 96): Starting: Intent { act=android.intent.action.SEND typ=image/jpeg flg=0x1 cmp=org.wikimedia.commons/.ShareActivity (has extras) } from pid 519 | |
I/RenderView( 519): OnPause RenderView com.cooliris.media.RenderView@40554770 | |
I/ActivityManager( 96): Start proc org.wikimedia.commons for activity org.wikimedia.commons/.ShareActivity: pid=1252 uid=10058 gids={3003, 1015} | |
D/dalvikvm( 1252): DexOpt: couldn't find static field | |
W/dalvikvm( 1252): VFY: unable to resolve static field 47 (THREAD_POOL_EXECUTOR) in Landroid/os/AsyncTask; | |
D/dalvikvm( 1252): VFY: replacing opcode 0x62 at 0x0006 | |
D/dalvikvm( 1252): VFY: dead code 0x0008-000a in Lorg/wikimedia/commons/CommonsApplication;.executeAsyncTask (Landroid/os/AsyncTask;[Ljava/lang/Object;)V | |
D/AndroidRuntime( 1252): Shutting down VM | |
W/dalvikvm( 1252): threadid=1: thread exiting with uncaught exception (group=0x40015560) | |
E/AndroidRuntime( 1252): FATAL EXCEPTION: main |
This file contains 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
I/RenderView( 1492): First Draw | |
W/IInputConnectionWrapper( 1519): showStatusIcon on inactive InputConnection | |
I/GridLayer( 1492): Slot changing from 0 to 0 | |
D/Commons ( 1519): Uploaded 848 of 27990 | |
W/StatusBarService( 159): Couldn't reapply views for package org.wikimedia.commons | |
W/StatusBarService( 159): android.widget.RemoteViews$ActionException: can't find view: 0x7f05003e | |
W/StatusBarService( 159): at android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:447) | |
W/StatusBarService( 159): at android.widget.RemoteViews.performApply(RemoteViews.java:964) | |
W/StatusBarService( 159): at android.widget.RemoteViews.reapply(RemoteViews.java:956) | |
W/StatusBarService( 159): at com.android.systemui.statusbar.StatusBarService.updateNotification(StatusBarService.java:437) |
This file contains 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
E/ImageLoader(30461): https://upload.wikimedia.org/wikipedia/test/thumb/6/6d/Commonsfrog.webm/320px-Commonsfrog.webm.png | |
E/ImageLoader(30461): java.io.FileNotFoundException: https://upload.wikimedia.org/wikipedia/test/thumb/6/6d/Commonsfrog.webm/320px-Commonsfrog.webm.png | |
E/ImageLoader(30461): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186) | |
E/ImageLoader(30461): at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271) | |
E/ImageLoader(30461): at com.nostra13.universalimageloader.core.download.URLConnectionImageDownloader.getStreamFromNetwork(URLConnectionImageDownloader.java:40) | |
E/ImageLoader(30461): at com.nostra13.universalimageloader.core.download.ImageDownloader.getStream(ImageDownloader.java:27) | |
E/ImageLoader(30461): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.saveImageOnDisc(LoadAndDisplayImageTask.java:301) | |
E/ImageLoader(30461): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBi |