News
Home Home Contact us Contact
home News Projects Tests Files Follow manatlan on Twitter Sign in
6 months ago

iBraining in the angular way

I'm totally mad ... I recode iBraining from scratch. This is a big job ;-)

It was coded with GAE/python25/webpy/mako/html4/jquery ... I go with GAE/python27/bottle/html5/angularjs. And it will target desktop and smart devices.

But i'm really a big fan of AngularJS, and can't imagine to continue without it ;-)

Comments (View) Tags: ibraining, gae
12 months ago

A single page html5 app

Here is my first public app : RestoDiv. With the hope it could be useful for someone else.

It should help you to divide a bill. You set the bill, and add groups of payers : it will divide it by group. An adult is a full part, a child is a demi part. A group can decide to pay by tickets : just hit the part of the group and set the amount for the ticket.

On small screens, swipe-right to remove a group (on bigger : a button is available for that).

It works offline, and should work on any smart(html5) devices (smartphones, tablets, smart tv, computers, ...)

I don't know yet if I will release a cordova/apk for the playstore.

Comments (View)
last year

Found my old site

I've just found my old site of me ... It was hosted on multimania : la vitrine de marco ! It's from the past century ! I'm really happy to have found that, thanks to qwant ... I thought it was dead, as multimania was dead ... A lot of links are broken ;-)

It was before the manella times !

The "WWW" has really changed (like me) ;-)

feel nostalgeek ;-)

Comments (View)
last year

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
last year

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 ibraining.com.

So I will continue to test ...

BTW2, I really should update the look ;-)

Comments (View) Tags: gae
last year

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)
2 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
2 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
2 years ago

Shaarli APK

I was a big fan of del.icio.us 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
2 years ago

FreeboxV6 JSON Api with Python

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

#!/usr/bin/python
# -*- 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))
urllib2.install_opener(opener)


class FBXComm(object):
    def __init__(self,host,passwd):
        self.__host=host
        data={"login":"freebox","passwd":passwd}

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

        fbxsid=None
        for i in cookiejar:
            if i.name == "FBXSID":
                fbxsid=i.value.strip('"')
        assert fbxsid

    def call(self,method,data):
        cgi=method.split(".",1)[0]+".cgi"
        data={"jsonrpc":"2.0","method":method,"params":data}
        q=urllib2.Request("http://%s/%s"%(self.__host,cgi),json.dumps(data),{"Content-Type":"application/json"})
        r=urllib2.urlopen(q)
        return json.loads(r.read())

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

Inspired from chosesafaire

More documentation on Freebox V6 apis

Comments (View) Tags: freebox
<< oldest

Tags

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