maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   work in progress: simple vertical sms app: vertsms (https://talk.maemo.org/showthread.php?t=51635)

aspidites 2010-05-02 14:07

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by ossipena (Post 638271)
-what would be the best way to implement a timer for text input? ("aa","ab" etc not possible for now because there is no timeout)

Surely the time module would be best here. I'll have a look at it after breakfast.

Quote:

Originally Posted by ossipena (Post 638271)
-what is wrong with sending sms? the number is btw mine so before you press send, please edit the string ;)
I am 100% sure it worked before but since I cleaned the code a lot and reorganized some stuff, it doesn't work anymore...

It IS git, so you could always run a diff on the revision that worked versus this one.

Quote:

Originally Posted by ossipena (Post 638271)
future plans: when I get those 3 working, I start to learn packaging and try to get the app to extras-devel. then I create an announcement thread to M5 and see if there is interest to beta-test plus giving comments for improvements.

The Py2Deb packaging article in the wiki is pretty straight forward, but I can send you my build script from aptly if you like.

lcuk 2010-05-02 14:16

Re: work in progress: simple vertical sms app: vertsms
 
ossipena great stuff, I'm always impressed by prototypes coming from community :)

would need some custom glyphs over the keyboard for the ABC etc

problem with that is it changes for different regions, so you may be better having a back template and generating the alphabet ontop of those at runtime and using them

anyone want to offer some glyphs for ossi to help it look a little nicer?

frals 2010-05-02 14:28

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by ossipena (Post 638271)
I got finally git working (after I remembered that the public key at gitorious was 2 reflashes too old)

http://gitorious.org/vertsms

Now I have 3 problems:

-how can I get the contact chooser to output a number from contact's sms -field?

Looks great!

If you are having problems with getting the numbers and whatnot when using ctypes I'm using it in fMMS: http://gitorious.org/fmms/fmms/blobs...acts.py#line46

Hope this helps! :)

(Btw, I realise this is a bit silly request, but could you change your function names and similar to english? This would make the code a bit easier to read for the non-finns ;))

ossipena 2010-05-02 14:35

Re: work in progress: simple vertical sms app: vertsms
 
@aspitides, only problem is that I cleaned the code only that I can upload first version to git and don't have to shame my code so much. :D

but I'll see today if I can debug the sms sending problem.

and thanks a lot for offering help with timer. I've tried couple things without success.

I'll try py2deb but if it doesn't work I'll ask for the script.

@lcuk excellent idea, seems pretty easy to implement after more important things are functioning properly.

lcuk 2010-05-02 14:36

Re: work in progress: simple vertical sms app: vertsms
 
@ossi, we are discussing a little in #maemo irc :)
drop in anytime

ossipena 2010-05-02 14:37

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by frals (Post 638433)
(Btw, I realise this is a bit silly request, but could you change your function names and similar to english? This would make the code a bit easier to read for the non-finns ;))

hehe I changed many function names, variable names etc to english, so work is in progress. should have thought of that before writing first functions ;)

ossipena 2010-05-02 15:53

Re: work in progress: simple vertical sms app: vertsms
 
yeah got sms sending function working again! now I am gathering motivation to look through frals good example.

and some answers:
-no T9 unless someone patches it up to the app
-no idea how one could use built-in kb. so I spent two evenings with python&gtk and got the UI to the state it is now.
-main point is quick&dirty solution that you can type simple sms with when you have only one hand available.
-can evolve to about anything, depends how much ideas and help I get.

e: just pushed version that has working sms sending. now I must go and clean the kitchen in order to keep my gf happy so she will let me code @ weekends also in the future :)

aspidites 2010-05-02 16:32

Re: work in progress: simple vertical sms app: vertsms
 
Perhaps the quit button could be replaced by backspace? The user already has the x in the top-right corner.

I'm playing with timing right now to see if I can come up with something sane.

PS - The code looks much cleaner/readible than the initial version. Thanks. Would you be insulted if I made the indentation more uniform trhoughout the entire script?

ossipena 2010-05-02 16:42

Re: work in progress: simple vertical sms app: vertsms
 
the indentation was quilty for killing sms sending so I won't be touching it for a while once I got it into condition that works :)

but it still is my intention to make it not to jump randomly eventually

aspidites 2010-05-02 18:10

Re: work in progress: simple vertical sms app: vertsms
 
Ossipena, I've cloned your repo and have timeout working. It is now possilbe to write "cat". Currently, the timeout is set to 1 second, but you can increase or decrease it as you wish.

The only quirk seems to be that the first character doesn't accept mulitple presses. That is, typing 2 twice results in 'aa' instead of 'b'.


All times are GMT. The time now is 06:54.

vBulletin® Version 3.8.8