GSoC – week 5: my little baby is born

I would like to present you my, just borned, little baby 🙂

Also if a picture is worth a thousand words, I want (or well, I must 🙂 ) write something more.
This is a first idea on how the login UIUI UI is an acronym for User Interface - the layout of the page the user interacts with. Think ‘how are they doing that’ and less about what they are doing. would look like (I think I’ll not change it so much), if anyone have any critics/suggestion or whatever, this would be appreciated.
The login process is working fine, but, as I had a talk with Danilo (my mentor), he explain me, in details, what I need to to do, to make the login process working at it’s best.
As far as I understand, I’ve to create an helper function to discover where the endpoint for the XML-RPC has been placed. The first step, should be that if the user doesn’t fill in the ‘Blog Address’ input, then I’ll set the endpoint on https://wordpress.com (e.g. https://wordpress.com/xmlrpc.php ) and check if there is any records that belong to the given credentials. The second step is that if the user writes something in the ‘Blog Address’ input, than I’ll need to check where is the XML-RPC endpoint, mostly (in standard case), it would be an append on the URL that the user has given, if it has been inserted correctly. The third step is when from the given URL I cannot find the XML-RPC placed where I expected it to be, so I need to call this helper function that will do some parse (HTML and XML) and other (nice) stuff, to catch where the xmlrpc.php has been placed. The helper function is needed, if I understand it correctly, only when the user use a blog on an own host, with the JetPack plugin.
So, for the next week I’ll try to implement this stuff in Qt, Danilo gave me a step-by-step guide, so I hope to not encounter any big blocking issue.

#blackberry, #gsoc

GSoC – week 4 : hard times

This week has been an intense week for me. Due to other duties the work on this project proceeded a little bit slower than expected. Anyway, as I wrote last week, I’ve pointed my attention on how to bind C++ to Cascades. This has been a, some sort of, hard step. The main reason is because the connection in Cascades is a bit diffrent than how I made it with pure QML. The first blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. has been to understand what I exactly need to connect, what kind of calls, signals and others. This has been an hiccup, principally because I had made a long shoot on what I need. So, I’ve been back to my steps, and tried to pick a decision for an actual smaller step.
I’ve created a custom library, and, as a first step I had to deal with the network. I’ve made a first call, connected it with the interaction of the login button, to a c++ class method that uses a QtNetworkRequest to make the call to the WordPress endpoint, then, once the response (the XML) is ready, and we have a QtNetworkReply, I emit a signal with the data. This is the tipical situation that (I think) should be similar for all the other necessary calls.
During the next week I’ll (stress) test this piece of code to see if it’s really working as expected or if there is any hidden bug.
I’ve to say that I’m a bit out of my schedule, but I think I can regain that time almost easily. Nothing to worry about, I think.

#blackberry, #gsoc

GSoC – week 3 : API API and yet API

This week I’ve read and learnt a lot more about BlackBerry 10 APIs, paying attention on the Cascades library. The main reason why I choose to go with Cascades, it’s beacuse with these APIs is possible to create stunning apps, and the platform APIs provide access to the underlying featrues of the BlackBerry Application Platform. It should be easier to create a beautiful UIUI UI is an acronym for User Interface - the layout of the page the user interacts with. Think ‘how are they doing that’ and less about what they are doing. together with a set of advanced tools that can be use to easily integrate the app to the system and giving the users an astonishing experience.
Said that, I’ve started with the basic (understanding) of Cascades: the layouts.
The layouts are the basic to construct Uis, and Cascades supports a (large) variety of different layouts that can be used to arrange and position controls in the apps; and, choosing the right one, right now, for me, is a must. After a long digging (write, try, sketch), I think (but I’m not sure at all) I will use a StackLayout, at the least for the login page.
I’ve also made a first (fake) attempt of the login process, but it’s not finished yet. I have to manage how to put all the stuff togheter. I also need to connect the C++ (Qt) signals to Cascades (QML), and, for the next week(s) (I though this is kinda important) this is my milestone. I will write some code to see if I understand correctly how it work, and how it needs to be implemented.
In the next weeks I’ll upload a first draft of what I’m doing.

#blackberry, #gsoc

GSoC – week 2 : gearing up

During this week I focused my attention on the WordPress APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways.. I’ve digged into it, looked at how they work, tried to understand which ones are the best and useful calls that best fits my purpose, and tried some calls (just to make sure that I’ve correctly understand the behavior).
Later on I’ve wrote some code (rude and rough, I admit) to execute this kind of calls, and, at the end, I think I will go with making the call, so also create the XML, using Qt. My milestone for the next week is to decide if it’s better to parse the returned XML in Qt or in Cascades (QML) itself.
I’ve also put some attention on the UIUI UI is an acronym for User Interface - the layout of the page the user interacts with. Think ‘how are they doing that’ and less about what they are doing./UXUX UX is an acronym for User Experience - the way the user uses the UI. Think ‘what they are doing’ and less about how they do it., so I made a first UI (just for the login), but I think I’ll complete it in a few days, I also had a discussion on how to make it (in the best way) with my mentor, so I will follow his advices, definitely.
I would also dealing, in the next week, with the bb10 API, to see if I can use it to make something better.
Currently I haven’t used the svn repository; when I will start building a primary version of the WordPress for BlackBerry 10 devices, in the next weeks, I will start uploading stuff, but now, there is no good code that need to be pushed somewhere 🙂

#blackberry, #gsoc

GSoC – week 1: introduction

Hello,

my name is Daniele Maio, I’m from Italy and I’m currently enrolled at the University of Catania for the last year of a bachelor degree in Computer Science. I have some years of experience in developing open source project. Since the born of maemo (http://maemo.org) I’ve addressed my interest in mobile development with opensource OS and tools. I was (I am) an active contributor, especially, for the maemo and meego communities. Some times ago BlackBerry unveiled their new platform, and, since the beginning, I felt in love with it.
Due to this last statement, I’ve decide to propose myself and my idea for the Google Summer of Code 2013. My project is, indeed, to build a WordPress mobile native app for the BlackBerry 10 devices. I’ve decide to build this app with the native coding language Qt/Cascades. There is already a port from the android version that currently works on bb10, but, it seems to be not so good (the porting obviously).
For this project, I can count on the mentoring help by Danilo Ercoli, I’ve already talked with him, and I have had the impression that he would be a great mentor.
I have to admit that I’m quite new to WordPress, I am not a blogger at all, I’ve used it only to build someone’s else blog or websites, but they are very few.
However, I’ve been always impressed by the growing up of WordPress, in terms of community and in terms of code and projects. This is the main reason I choose WordPress as a target for my gsoc project.

That’s all for now.
Regards.

#blackberry, #gsoc