Understanding WordPress for Android – Part 0
Posted: June 7, 2011 Filed under: Android, GSoC, wordpress Leave a comment »One of the apps which I never expected to see in the Android marketplace was the WordPress app.
https://market.android.com/details?id=org.wordpress.android
Seriously, was it possible to bring in the power of blogging into one’s Android mobile? Microblogging was easy. There are thousands of Twitter apps for Android to do that. But how could a mobile be sufficient to blog on WordPress??
Trust me, it is really an awesome app!
It was the time when organizations where applying for Google Summer of Code. Within a few weeks, I got to know that the Android app had been selected as a project as well! I was so eager to work on it to realize it’s full potential myself. I also wanted to work on a GSoC project. I applied and worked hard to get it, and finally I did.
You can find more details about the app here: http://android.wordpress.org/
If you also wanna be a developer, this is the place to be: irc://freenode/wordpress-mobile
I have been working on changing the UI of the app for a few weeks now. I just realized that the best way to progress quickly would be to be blog about this blogging app. So here I am.
I will be initially giving a brief introduction to the app and then moving on to the explain the code later.
Macbuntu in Ubuntu 11.04
Posted: June 7, 2011 Filed under: Linux, Ubuntu 9 Comments »Those of you who used Macbuntu earlier on your Ubuntu 10.10 and have shifted to Ubuntu 11.04 would have noticed that the Macbuntu theme isn’t available. It seems that the project has been stalled and they don’t seem to have a version for 11.04 yet. Searching for it on Google takes you to a site where you are asked to download a remastered Ubuntu distro of size >700 Mb! If you have already downloaded Ubuntu 11.04, you wouldn’t feel like downloading another complete distro just for the sake of the Macbuntu theme.
So, what is the solution? Use the code for 10.10!! With a few minor changes, you can use the Macbuntu theme for your 11.04 Ubuntu Classic desktop as well. I do not know how it integrates with Unity yet, as I don’t use Unity. (I have also heard that it doesn’t integrate very well with Unity.)
So, what are the changes to be made?
First download the source code for the Macbuntu theme from the SourceForge project site, if you already haven’t. http://sourceforge.net/projects/macbuntu/
After downloading, extract the file to some location that you can remember. Rename the folder from Macbuntu-10.10 to Macbuntu-11.04 to avoid confusion later.
Now open the file install.sh in the text editor of your choice. I use vim, so the code is as follows.
vim install.sh
After opening the file, you would see the following code in lines 19 and 20:
UBUVER="10.10"
UBUNTU="Ubuntu $UBUVER"
Change it to read
UBUVER="11.04"
UBUNTU="Ubuntu $UBUVER"
Do the same to your uninstall.sh file.
Now run the install.sh file.
./install.sh
Now follow the installation instructions and reboot your system.
After rebooting, you might want to adjust your Indicator Applet icons, make sure Docky is installed and adjust your Compiz settings too.
If you want to uninstall, you can always run
./uninstall.sh
to remove Macbuntu from your system.
Note.If you have any clarifications or if something just doesn’t work, you can always post them in the Comments section below.
UI mock-up for a Non Dashboard page
Posted: April 8, 2011 Filed under: Uncategorized 1 Comment »This is my UI mock-up for a Non Dashboard page. Quick Access dashboard will ensure that users can access other stuff really quickly now.
Not that I have replaced the button for Dashboard with a large button to return to the previous page. Please note that I might come up with something more useful later, in this space.
This is my mock-up with my Quick Access Dashboard pulled up. It displays the dashboard.
Facts about WordPress – My first plugin
Posted: April 2, 2011 Filed under: Uncategorized 1 Comment »<?php
/**
* @package WordPress_Facts
* @version 1.0
*/
/*
Plugin Name: Facts about WordPress
Plugin URI: http://anirudhspider.wordpress.com/wordpressfacts
Description: This is a plugin which you can use to display random wordpress facts in your admin panel.
Version: 1.0
Author: Anirudh S
Author URI: http://anirudh24seven.wordpress.com
License: GPL2
*/
/* Copyright 2011 Anirudh S (email : anirudh24seven@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
function random_fact_line() {
/** These are the random facts */
$line = “WordPress is an open source Content Management System.
Wordpress is powered by PHP and MySQL.
Wordpress was first released on May 27, 2003, by Matt Mullenweg.
Native WordPress applications exist for Android, iPhone/iPod Touch, iPad, Windows Phone 7 and BlackBerry.
In 2009 WordPress won the best Open Source CMS Award.
Wordpress version 1.2 was codenamed Mingus and was released on 22 May 2004.
Wordpress version 1.5 was codenamed Strayhorn and was released on 17 February 2005.
Wordpress version 2.0 was codenamed Duke and was released on 31 December 2005.
Wordpress version 2.1 was codenamed Ella and was released on 22 January 2007.
Wordpress version 2.2 was codenamed Getz and was released on 16 May 2007.
Wordpress version 2.3 was codenamed Dexter and was released on 24 September 2007.
Wordpress version 2.5 was codenamed Brecker and was released on 29 March 2008.
Wordpress version 2.6 was codenamed Tyner and was released on 15 July 2008.
Wordpress version 2.7 was codenamed Coltrane and was released on 11 December 2008.
Wordpress version 2.8 was codenamed Baker and was released on 10 June 2009.
Wordpress version 2.9 was codenamed Carmen and was released on 19 December 2009.
Wordpress version 3.0 was codenamed Thelonius and was released on 17 June 2010.
Wordpress version 3.1 was codenamed Reinhardt and was released on 23 February 2011.”;
// Here I split the $line query into separate lines based on the newline character (\n)
$line = explode( “\n”, $line );
// From the lines that have been generated, I generate a random line out of them for Random Facts
return wptexturize( $line[ mt_rand( 0, count( $line ) - 1 ) ] );
}
// This just echoes the chosen line, we’ll position it later
function random_fact() {
$chosen = random_fact_line();
echo “<p id=’fact’><b>Random Fact:</b> $chosen</p>”;
}
// Now we set that function up to execute when the admin_notices action is called
add_action( ‘admin_notices’, ‘random_fact’ );
// We need some CSS to position the paragraph
function fact_css() {
// If this is not present, the fact would not be at the top right, but at the top left. From Hello Dolly plugin documentation- “This makes sure that the positioning is also good for right-to-left languages”
$x = is_rtl() ? ‘left’ : ‘right’;
echo “
<style type=’text/css’>
#fact {
float: $x;
padding-$x: 15px;
padding-top: 5px;
margin: 0;
font-size: 11px;
}
</style>
“;
}
add_action( ‘admin_head’, ‘fact_css’ );
?>
Version 2 – WordPress Android App UI
Posted: April 1, 2011 Filed under: Android, GSoC, wordpress 7 Comments »Thanks for the comments and feedback on my first version of the WordPress Android App UI mock-up. I have made some modifications according to the feedback given.
Here is my 2nd version.
This front page represents the Dashboard and clicking on the Dashboard button while reading some WordPress blog, will redirect it back to this page.
I have also added icons and tweaked the layout arrangement a bit, for this 2.1 version.
Comments/suggestions welcome.
Suggestion for new WordPress Android App UI
Posted: March 31, 2011 Filed under: Android, GSoC 4 Comments »As part of my GSoC application for the project “Refresh the Android App UI”, I would like to post a mock-up of what I have in my mind.
Suggestions welcome.
Explaining the header, clicking on the wordpress logo should take the user to wordpress.com, the next button upon clicking would take the user to the Stats page and the final button would implement the Search feature through the mobile app.
Note: Suitable icons for the buttons haven’t been put up yet, as it would be difficult to find out what the buttons are for.
GSoC 2011 Projects Classification
Posted: March 27, 2011 Filed under: GSoC Leave a comment »For anyone trying to participate for the first time in Google Summer of Code, it takes quite some time for them to decide what projects they might want to get involved in.
Being interested in projects related to Android and PHP, I decided to compile the list of projects which have the specified keyword, so that it becomes easier to filter through those projects and choose the project that you like. Hope it helps.
Note.I compiled this list from the actual list of GSoC 2011 projects from the Google Melange site. You can look at the main list for more details over here: http://www.google-melange.com/gsoc/homepage/google/gsoc2011
The following links redirect to their respective GSoC 2011 page. The list is in no particular order.
Android related (keyword: android) :
Rockbox
Sakai
Processing
openSUSE
Natural User Interface Group
Catroid Project
Hedgewars Project
GNU Project
Helsinki Institute of Information Technology
K-9 Mail
The Java Pathfinder Team
Komodo OpenLab Inc.
Web Development (keyword: php) :
WordPress
Drupal
LimeSurvey
Marine Biological Laboratory – Center for Library and Informatics
Moodle
Debian Project
DokuWiki
Elgg
Genome Informatics
Gentoo Foundation
The Honeynet Project
Inclusive Design Institute
Typo3 Association
Wikimedia Foundation
National Resource for Network Biology (GenMAPP, Cytoscape and WikiPathways)
Openwall Project
OSGeo – Open Source Geospatial Foundation
phpMyAdmin
Sahana Software Foundation
StatusNet
Sunlight Labs
Of course, I love GNOME too. So here is the link.
GNOME Project
Note:
I am also interested in projects related to C++, but the projects with the keyword C++ are so diverse that I thought that it might not be worth it to list them here. Readers are advised to go through the project list on their own for this.








