Home Home Contact us Contact
home News Projects Tests Files Follow manatlan on Twitter Sign in
2 years ago

AngularJS + WebApp on mobile platforms

Since my last post about android dev, times have changed ;-). I've made two mainstream apps. The last one reach the place #78 of the "top new free" on the playStore, during 1 day ;-)

Native apps are "fun" to developp, except the fact that I've never used newest widgets/api, cause I was targeting a large panel of android's versions. I've played a lot with Eclipse Env, and the play store console. It's amazing, but it's definitively not my cup of tea. What a pain to write so many boilerplate lines of code to make a so simple httprequest (java pain), or to parse a json object !

So, I'm back in the web development. I found something that is really interesting (and it sweet my needs), because it can cover every (html5-)platforms ;-)

Here is a recipe :

  • Take a good cloud platform, like GAE, to serve a website.
  • Code your backends using httprequests/json(p), in the CRUD style
  • Make your website with main html5 features : appcache, localStorage, canvas, workers, etc ...
  • Use and abuse of AngularJS in your html5 pages, to make a rich client side easily.
  • Code your look'n'feel with responsive design patterns (and css3), to adapt your screen to yours audiences.
  • Optionally, make phonegap bootstraps, to give better experience on some devices (ex: android, to remove the navigation bar of chrome ;-) )
  • Optionally, you can have access to peripherals thru phonegap/cordova.js.

So you can make (web)apps, which work offline (using localstorage) or online (using your json backends), which work on every platforms in the same manner, which are easier to re-deploy. Everything is not perfect yet, but it's definitively the way to go. Thanks to angularjs which provide a simple way (MVC) to create complex objects to interact with users (it's the perfect approach, while waiting for the webcomponents).

Comments (View) Tags: android, gae, angular
2 years ago

Blind changes

I've just migrated this account in HRD(High-Replication datastore) and python2.7 on GAE ! It takes me 2hours, with heavy sweating ;-)

You don't see the changes. But there is a lot of WSGI apps under my domain (and subs), with a lot of frameworks : aeweb, webpy, bottle, ... and templates engines ;-). It was hard to dive in my old one (aeweb) ;-)

BTW, the migration process is fairly well explained. The next one will be

So I will continue to test ...

BTW2, I really should update the look ;-)

Comments (View) Tags: gae
2 years ago

Plugin totem flux, and frenchflux website are down

It makes a long time since I wanted to close these things. Now, they won't work anymore. In fact, the totem plugin was already broken with newer versions of totem. And the website was not able to reach all flux. (websites have changed their pages since 2008, and I've never take the time to update things)

Sorry for users ... If anybody want to continue this, mail me, and I could send you back the code of the website (app engine thing in python (it's just a scrapper which was providing rss feeds for the plugin)). The code of the plugin is included in the plugin, but should be adapted ;-)

I think you can go with miro now

Comments (View)
3 years ago

I'am a nexus guy now

After buying a nexus 7 at the end of the summer. I'm now an happy user of the nexus 4. A great phone from Google, with a poor battery life (my Acer metal liquid was better). But I presume/hope it's a software trouble, because the optimus lg has not this trouble. Despite this, the android experience can't be better: the phone is marvelous. And android 4.2 is great, the new keyboard with swipe feature is perfect (this is typed from my n7). The nexus 4 is a lot faster than the 7: amazing. But I think I will root it to be able to decrease the power of the processor, to gain more juice :-) I really don't need all this power. I will wait for 4.2.1, to see if it's better. And continue to test software tricks.

Comments (View) Tags: android
3 years ago

Shaarli on the play store

Just a post (from my nexus7): I have subscribed a Dev account on the play store, and uploaded my first app : so, Shaarly is now on the play store. Shaarli android is an android client for the marvelous Shaarli from sebsauvage.

I plan to release sources on github soon, stay tuned.

BTW, I've bought a nexus7 from Google, and I'm really happy with :-)

Comments (View) Tags: android
3 years ago

Shaarli APK

I was a big fan of in the past. When yahoo decided to shutdown it : I moved to diigo, like a lot of users.

For 3 months, I moved all to Shaarli, which is the same thing, but without the social bookmarking side. Shaarli is perfect in many points (like many products of sebsauvage, which is a python fan, like me ;-) ) !

Being a happy user of an android device, I really needed an way to bookmark links in shaarli, from my device. In less than one hour, I reach to produce an apk heavily based on this tutorial, without having done any android application before (just to say, that android dev is really easy). The app seems to do the job, and is available from a sebsauvage post, you can grab it here.

It is the first release that I sent to Sebsauvage. I don't make any updates since that day. I don't know how many shaarli's users use it. I don't see any evolutions to do (but perhaps you ?). It's free, and not available from the google play store (but perhaps one day, coz' I plan to take an account for my others apks).

It's really simple : run the app to configure your main shaarli'url. At the first share (*), shaarli will ask your account before posting. Next shares will bring you immediatly on the post page.

(*): It uses the share hook system of android's os. At any place where you can share an url, shaarli should appear in the sharing list.

Comments (View) Tags: android
3 years ago

FreeboxV6 JSON Api with Python

Just a snippet : a simple python wrapper around JSON/Freebox V6 API

# -*- coding: utf-8 -*-
import cookielib, urllib, urllib2
import json
from pprint import pprint

# install an urlopener which handle cookies
cookiejar = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))

class FBXComm(object):
    def __init__(self,host,passwd):

        request = urllib2.Request("http://%s/login.php"%host, urllib.urlencode(data), {})
        assert r.code == 200

        for i in cookiejar:
            if == "FBXSID":
        assert fbxsid

    def call(self,method,data):
        return json.loads(

if __name__=="__main__":
    pprint("conn.status",[]) )
    pprint("fs.list",["/Disque dur"]) )

Inspired from chosesafaire

More documentation on Freebox V6 apis

Comments (View) Tags: freebox
3 years ago

Adroid dev

Since I've got an android device, I try to developp on it. I've tried Kivy, which is a little more than an android framework ;-). It's really multiplatforms, but target multi-touch devices. It's pretty cool to be able to developp powerful app with the python language. The only big downside, is that the size of the resulting package/apk : at less 6mb ;-(

I've tried PhoneGap (with JQM), which is a java boostrap app running a webview, letting you code your app with javascript and html5 features (html, canvas, audio/video, persistent datas,...). Phonegap provides javascript's api to access core features of the android device. It's a good choice for multiplatforms too ! The size of a resulting package/apk starts at 120kb, which is far decent !

Yesterday, I've tried the SDK/ADT android java framework in Eclipse. Forget the multiplatform ;-), but it's really powerful, and let you do what you want, in a great development context/ide. It's really easy to code/test and see the result immediately. I will stick with that ! The size of a resulting package/apk starts at 10kb ;-).

I've made an App which consumes JSON http request/response to build its own interface (button, checkbox, searchbox, spinner, ...). In fact, the same thing I've made in LUA for my squeezeboxes, 10 months ago. I've made a phonegap and a native one for my android. The native version is really really responsive, looks better/real (coz native), and consumes less memory/cpu.

No android apps to release here, because they only works in my LAN. But I should ask my self, if I should release "My Json Server protocol", which can deliver some UI actions, because I've got 3 clients now: a web version (with jqm), an android one, and a squeezebox applet ;-). With this thing, you can easily setup a server which "do some things", and control it from a browser, an android or a squeezebox ;-) ... does anyone is interested?

Comments (View) Tags: android
3 years ago

pyplaydar and some news

Finally I released a version of pyplaydar which is now compatible with tomahawk's resolvers ! Tomahawk's resolvers are mainly in javascript, so I needed to run them thru pyv8. So pyplaydar owns a "playdar's resolver" which is able to call a "javascript tomahawk resolver". This resolver should be compatible with other playdar implementations. Everything is on my github ... It begins to be usable, it can resolve things ;-)

The second big thing : I've bought an android device, my first phone and my first smartphone ;-) What a great device ! I've started to developp apk with kivy (a python framework to make multi-touch app): very easy to use. The only downside is that the apk starts with a minimal size of 6mb, but an app works on major platforms (win/*nix/mac/android/iOS). My android is the perfect device to drive my squeezeboxes too ;-)

A new release of py2deb too ;-), and a new release for jbrout too

Comments (View) Tags: py2deb, jbrout
4 years ago

Introducing PyPlaydar

Since I've got my squeezebox'es, all code I done it's related to my music server, or music hacking. I can nearly listen all what I want. There are a lot of python's lib to fetch content from grooveshark, pandora, lastfm, echonest or vk ;-) (Note : I should release my python lastfm client (yet another one) ! and my lua applet for squeezebox)

The last thing which interested me is playdar : a music content resolver. I never reach to run it, so I decided to create mine. Introducing PyPlaydar : a Playdar music server resolver. Currently, it resolves nothing ;-). It's just the implementation of the playdar protocol. But it's easily plugin'able ! It's fully compatible with current JS clients !

It use the latest bottlepy and the cherrypy wsgi server (all included).

At this time, I really don't know if I will push it. Currently, it helps me to understand how it's working. I'm trying to chain Playnode(a recent java one) and tomahawk, a smart music player which embed a playdar server.

I'd like to create a content-resolver playdar server for my squeezebox'es. But I don't know yet, if I will push it, because I already have this kind of feature (my own resolver).

Comments (View) Tags: squeezebox
<< oldest newest >>


RSS aex aex
RSS d2 d2
RSS gae gae
RSS go go
RSS ppa ppa
RSS Python Powered Get Ubuntu
©opyleft 2008 - manatlan cmd snippets