How to forward a message to QCoreApplication::arguments() ?

2010-11-19 Thread Timo Pelkonen
Hi

I am trying to give a message with random length and formation to simple Qt
cli application. What is the best way to do it? I have tried with quotation
marks but åäö don't appear at all and the message could contain quotation
marks so that probably messes everything up. Would it be the most failsafe
method to put the whole message into a single file which is read then by the
application?

Good tips and pointers are welcome!

Timo P / Ossipena
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: HDShortcuts

2010-04-16 Thread Timo Pelkonen
Works perfectly, thanks a lot!

Ossipena / TimoP

2010/4/16 Timo Pelkonen 

> Thanks for the info!
>
> I'll test that soon.
>
>
> Ossipena / TimoP
>
> 2010/4/16 Faheem Pervez 
>
> Hello,
>>
>> On Fri, Apr 16, 2010 at 11:05 AM, Timo Pelkonen 
>> wrote:
>> > Now I've tried setting string (whatever it really is, luckily don't have
>> to
>> > stress so much with those when using python :) ) 'icon' to:
>> >
>> > a) full path to png file (/home/user/.bookmarks.)
>> > b) path that exists (~/.bookmarks/home-thumbnails/...)
>> > c) created the path documented and copied the same file there
>> > (~/.bookmarks/shortcut-thumbnails/...)
>> > d) plain file name (file lies in root of
>> ~/.bookmarks/shortcut-thumbnails/)
>> >
>> >
>> > So now I need to know what I am doing wrong.
>>
>> hd_shortcuts_add_bookmark_shortcut () copies the icon from another
>> place to ~/.bookmarks/home-thumbnails. I created a 160x96 PNG called
>> "asd.png" and saved it in "/" (copying to the 32GB ATM...).
>>
>> I then ran the following:
>>
>> import gobject #AFAIK, GType is inited. when importing gobject. AFAIK,
>> anyway.
>> import ctypes
>>
>> hd = ctypes.CDLL("libhildondesktop-1.so.0")
>> hd.hd_shortcuts_add_bookmark_shortcut ("asdadsgfdsa", "afddfsf",
>> "/asd.png")
>>
>> The shortcut then appeared on my desktop, with the icon.
>>
>> Best Regards,
>> Faheem
>>
>
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


HDShortcuts

2010-04-16 Thread Timo Pelkonen
Hi

I am at final stretch with my simple python app and only real problem now is
getting an icon for the shortcuts the program outputs. It uses
libhildondesktop via ctypes and the command is
hd_shortcuts_add_bookmark_shortcut (file_src, name, icon)

now everything else works perfectly except the icon... documentation says
the path for the icon is ~/.bookmarks/shortcut-thumbnails, browsed to the
folder that didn't exist. but there was similar looking:
~/.bookmarks/home-thumbnails . The latter contains thumbs for every web
shortcut I've added to desktop.

Now I've tried setting string (whatever it really is, luckily don't have to
stress so much with those when using python :) ) 'icon' to:

a) full path to png file (/home/user/.bookmarks.)
b) path that exists (~/.bookmarks/home-thumbnails/...)
c) created the path documented and copied the same file there
(~/.bookmarks/shortcut-thumbnails/...)
d) plain file name (file lies in root of ~/.bookmarks/shortcut-thumbnails/)


So now I need to know what I am doing wrong.

Ossipena / Timo P
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


python hildon.Button -problem

2010-04-09 Thread Timo Pelkonen
Hi!

I don't know what I am doing wrong with this.

I have two buttons configured like this:

button_1 =
hildon.Button(gtk.HILDON_SIZE_AUTO,hildon.BUTTON_ARRANGEMENT_VERTICAL,
"Button 1")

and when I run the program, only one button is shown.

Thanks a lot for the help!

Ossipena / Timo P
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to destroy your community

2010-01-21 Thread Timo Pelkonen
2010/1/20 Aldon Hynes 

> You can *demand*.  You can also ask in a way that is likely to be more
> effective or join in a discussion about how we can all work together to
> make
> sure that we all get the best possible equipment and supporting
> infrastructure.
>
> Aldon
>
>
I want to bump this point up. What has been said can't be taken back so this
thing started with a wrong foot by using topic "how to destroy your
community" and making all kinds of accusations even when you don't have a
clue about the realities that apply to the server move is a starting point
that won't give you anything useful.

Conversation starter written in whole another tone would have been a
superior choice. Please keep in mind, that if you want things to be
improved, attacking takes you nowhere. And showing a little bit of symphaty
instead of bashing doesn't make your points any less valid unless the points
are totally wrong at the first place.

Ossipena / Timo
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to destroy your community

2010-01-19 Thread Timo Pelkonen
2010/1/19 Nathan Anderson 

>
>
> I would agree be polite!   Also don't dismiss the newer members
> (Not directed at you Jeremiah).
>

IMO the new members should have some common sense about what they write. It
is the tone that is the poison, not the point. First there was hell lot of
bad tone at tmo, and now I hope this was the first and the last one to
mailing lists.

If you want to suggest somebody to change something, do you start with "Yo,
fucker! you are a piece of shit! I think you lack . and you should "
?(example aggravated)

Why did the conversation opener only picked "the gems", aka things that
apply to maemo community? Why not picking couple points that doesn't apply
at all with those?

All negative is a good way to mess things up and make the repicient to
ignore the point and everything else. It is basic psychology and regognised
by foremen at least in places I've worked.


Ossipena / Timo
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to destroy your community

2010-01-19 Thread Timo Pelkonen
2010/1/19 Jeff Moe 

>
> I don't have to be here for years to see how things are managed and where
> the problems are.
>
> -Jeff Moe
> http://wiki.maemo.org/User:Jebba
>
>
Nope, but it would be good for you so that you can see the bigger picture.

This was second time to me when repos didn't work if my memory doesn't
betray me. So since 2008 and two times out of n repos were malfunctioning.
Shocking.


Ossipena / Timo
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


way to hang up calls via dbus

2010-01-13 Thread Timo Pelkonen
Hi, I'm being a bit lazy and want to know is it possible to end calls via
dbus commands?

If nobody knows, I'll read the log through I collected tonight and try to
figure it out by myself.

Ossipena / Timo
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


any way to get incoming call number to python?

2010-01-05 Thread Timo Pelkonen
Hi

I am starting to develop an app to maemo, my friend is doing similar one to
nokia s60 and he told this is the thing one must start with.

Is getting incoming call number doable with dbus? if not, is there other
ways? Links to any documents relevant are also appreciated.

Ossipena / Timo
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers