Samstag, 7. November 2015

This weekend I spent some time participating in RoboVM Pull Request contest. Guys from RoboVM prepared demo application and invited people to add new features.
Amongst proposed features to add were:

commercial transactions support

localisation

everything else you can imagine :)

Because I had almost no previous mobile development experience I decided to start with some simple thing.

Typical RoboVM mobile project consists from 3 modules:

core - which shares code between platforms

android - platform specific UI implementation for Android

ios - platform specific UI implementation for iOS

For long time I wanted to give a try to Paypal Java SDK. That was a chance.

Because I wanted to use it for both platforms (iOS and Android) library dependency should be included to core module. Project uses Gradle as a build tool and all you need to do is include following line to build.gradle:

compile 'com.paypal.sdk:rest-api-sdk:1.2.9'

At first I started with simple implementation of payment API (PaymentAPI). I following this reference. Tried following sample requests against my test account. Everything worked perfectly!

Android UI is organised in fragments. I added new one (PaymentDetailsFragment) and changed a bit logic of working with order placement.

That was a pleasure to work with new RoboVM Studio. Most of functions I used to have in JetBrais Idea I had as well because it is just fork of Community Edition.

If you are reading this text before 23rd November 2015 you still have a chance to win one of the prices provided for that RoboVM contest.

Mittwoch, 10. Dezember 2014

The past weekend I was lucky enough to participate in an event held by Koding (http://koding.com) titled "Global Hackathon" (https://koding.com/Hackathon).

Hackathon - is a kind of time-limited events, where participants work on projects for which in ordinary daily life there is no time as a rule. The main idea is to bring the idea to the finished prototype of the final product in the shortest possible time. Hackathon is named this way because participants can use all possible tools and ways to achieve this goal.

The event was attended by 2000 teams from all around the world, selected from more than 19,000 applications. Maximum number of participants in the team was equal to 5. Many people like me was not fortunate enough to find teammates and had to work alone. 51 of the judges will find winners among completed projects and the most worthy of them will be awarded.

Donnerstag, 29. Mai 2014

For my pet project I need to upload sketches to Arduino board connected to RaspPI. As usual I have only SSH access to PI and don't want to install a lot of unnecessary packages. So the only one thing you have to install it arduino-mk package:

First of all I connected VCC and GND pins to common rails and then to corresponding pins of ultrasonic sensor. After that I connected Trigger to Pin 3 and Echo to Pin 2 of Arduino board. As in many existing examples I decided to output signal through Piezo Buzzer. I simply connected Pin 4 of Arduino to positive leg of buzzer and the other leg to common ground.