Re: How to read a .xml file?

2008-04-16 Thread Chandra

Hi,

Thank you for your response. I am able to execute and include  file, 
but when I tried to include , it is giving compilation 
error as below:

main.c:8:30: libxml/xmlreader.h: No such file or directory

libxml2 library is installed in my machine. I executed "find" command to search 
for xmlreader.h file. It displayed the below results:

/usr/include/libxml2/libxml/xmlreader.h
/scratchbox/users/mouli/targets/CHINOOK_ARMEL/usr/include/libxml2/libxml/xmlreader.h
/scratchbox/users/mouli/targets/CHINOOK_X86/usr/include/libxml2/libxml/xmlreader.h

How can I do this? Am I have to change any path settings?

Thanks in advance.

Regards,
Chandra


Daniil Ivanov <[EMAIL PROTECTED]> wrote: Hi,

 you can find examples on the page of libxml project:
 http://xmlsoft.org/examples/index.html

Thanks, Daniil.

On Wed, Apr 16, 2008 at 3:54 PM, Chandra  wrote:
> Hi Friends,
>
> How to read a xml file using Maemo? Can anybody give me a reference of a
> complete example program to do this?
>
> Thanks in advance.
>
> Regards,
> Chandra
>
>
>  
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
> ___
>  maemo-developers mailing list
>  maemo-developers@maemo.org
>  https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>


   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Video Encoding (most probably revisited many times)

2008-04-16 Thread Victor Brilon
There will be a version of Video Converter
(http://betalabs.nokia.com/blog/tag/tablet-video-converter/)
available for the Mac in the next week or two. Stay
tuned :)

--- [EMAIL PROTECTED] wrote:

> 
> I have been unable to encode ANY video for the N810
> on a Mac. Ive played 
> with ffmpegX, mencoder, Handbrake, etc. Ive tried
> keeping resolutions 
> small (Im trying a 240x182 px movie right now). Ive
> tried creating various 
> movie files encoded with various codecs inside an
> AVI container and 
> nothing works at all.
> 
> Most of the 'nice' encoding tools Ive seen are all
> for Windows.
> 
> Is there a solution for us humble Mac people?
> 
> 
> 
> -- 
> Aj.
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
>
https://lists.maemo.org/mailman/listinfo/maemo-developers
> 
> 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Video Encoding (most probably revisited many times)

2008-04-16 Thread maemo

I have been unable to encode ANY video for the N810 on a Mac. Ive played 
with ffmpegX, mencoder, Handbrake, etc. Ive tried keeping resolutions 
small (Im trying a 240x182 px movie right now). Ive tried creating various 
movie files encoded with various codecs inside an AVI container and 
nothing works at all.

Most of the 'nice' encoding tools Ive seen are all for Windows.

Is there a solution for us humble Mac people?



-- 
Aj.


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


Re: BECOMEROOT

2008-04-16 Thread Ryan Abel

Johan Helsingius wrote:

> Eero Tamminen wrote:
>
>> Another reason why N800 etc software doesn't work on 770 is
>> hardware constraints.  Less RAM, Flash and older OMAP version.
>> I.e. "unfortunately" both HW and SW move forward...
>
> But there really isn't any excuse for not allowing for a
> software compatibility layer to allow 770 software to run
> on newer hardware. Currently I have to drag both a 770 and
> a laptop with me on car trips - if I could run CarMan on my
> 810, I could leave both 770 and laptop at home...

You do realize CarMan works just fine with OS2008, right? 
http://openbossa.indt.org/carman/install.html
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: BECOMEROOT

2008-04-16 Thread Johan Helsingius
Eero Tamminen wrote:

> Another reason why N800 etc software doesn't work on 770 is
> hardware constraints.  Less RAM, Flash and older OMAP version.
> I.e. "unfortunately" both HW and SW move forward...

But there really isn't any excuse for not allowing for a 
software compatibility layer to allow 770 software to run
on newer hardware. Currently I have to drag both a 770 and
a laptop with me on car trips - if I could run CarMan on my
810, I could leave both 770 and laptop at home...

Julf

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


Re: [ISSUE] Maemo Help framework

2008-04-16 Thread Aniello Del Sorbo
Hi,

damn me!

"The context string is defined by the attribute contextUID and must follow
the format xxx_filename_yyy, where filename must be exactly the name of the
XML file (without the extension)."

Works.
Sorry to bother :)

--
anidel

On Wed, Apr 16, 2008 at 7:53 PM, Aniello Del Sorbo <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I am back home and playing with the Help framework again.
> Forget the second mail. Osso help is old stuff (and is still in the How To
> write new application howto!).
> I only have hildon-help.h and no osso help.
>
> So playing with it now...
> But, now one here that knows how to hint me ?
>
> --
> anidel
>
>
> On Wed, Apr 16, 2008 at 4:09 PM, Aniello Del Sorbo <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> > looks like the on-line documentation needs a lot of work on it.
> > the Maemo Help Framework howto is outdated, so is the maemopad package.
> >
> > while waiting before the lesson i decided to go read other pieces of
> > the on-line documentation.
> >
> > the
> > How to Write New Applications in maemo 4.0
> >
> > document states I should use the ossohelp_show function and even
> > redirects me to the former help framework howto!!
> >
> > I will check later if this helps.
> >
> > --
> > anidel
> >
> > On 4/16/08, Aniello Del Sorbo <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I am again bugging the list with another issue I am going to solve.
> > > This time with the help framework.
> > >
> > > I did write my xournal.xml help file, here is an excerpt of interest
> > for the issue I am describing:
> > >
> > > 
> > > 
> > > 
> > > Xournal
> > > 
> > > 1. Introduction
> > >  
> > > Xournal is an application for
> > notetaking, sketching, keeping a journal using a stylus. It is free software
> > (GNU GPL) and runs on Maemo, desktop Linux (recent distributions) and other
> > GTK+/Gnome platforms. It is similar to Microsoft Windows Journal or to other
> > alternatives such as Jarnal  and Gournal.
> > >  
> > > 
> > > 
> > >
> > > This xournal.xml file is stored correctly into
> > /usr/share/osso-help/en_GB and en_US
> > > (the tablet is set as en_US)
> > >
> > > main function:
> > >
> > >   osso_context_t *ctx;
> > >
> > >   ctx = osso_initialize (PACKAGE, VERSION, TRUE, NULL);
> > >   g_assert (ctx);
> > >
> > >   g_signal_connect (GTK_OBJECT(xournalHelp), "activate",
> > > G_CALLBACK (on_HildonHelp_activate),
> > >  "help_introduction");
> > > ...
> > > This is the code in the callback function (it is correctly called)
> > on_HildonHelp_activate:
> > >
> > > on_HildonHelp_activate (GtkWidget *widget, gchar *help_id) {
> > >  ..
> > >   retval = hildon_help_show(ctx, /* global osso_context */
> > >   help_id,   /* topic id */
> > >   HILDON_HELP_SHOW_DIALOG);
> > > ..
> > > }
> > >
> > > where "help_id" is correctly passed as "help_introduction" from the
> > menu item signal
> > >  and the ctx is a global osso_context_t * pointer (the one returned by
> > osso_initialize);
> > >
> > > Guess what ?
> > > No help widget is shown.
> > >
> > > Yeah, I know.. this is very similar to the Help Framework HOWTO, is it
> > ? :)
> > >
> > > One more thing. I did also check the maemopad example, but its
> > Makefile stores
> > > the help file in the /usr/share/hildon-help folder rather than
> > osso-help, thus I guess
> > > that help is wrong or outdated.
> > > Anyway when the MaemoPad.xml was stored in the hildon-help folder, it
> > behaved as
> > >  Xournal. Click on the menu item and it doesn't show anything at all.
> > > If I copy the MaemoPad.xml file to the correct folder in osso-help
> > (en_GB and en_US
> > > to be sure) a balloon appears telling me that that topic does not
> > exist (even if it does, I checked).
> > >
> > > What's wrong ?
> > >
> > > --
> > > anidel
> >
> >
> >
> > --
> > anidel
> >
>
>
>
> --
> anidel




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


Re: [ISSUE] Maemo Help framework

2008-04-16 Thread Aniello Del Sorbo
Hi,

I am back home and playing with the Help framework again.
Forget the second mail. Osso help is old stuff (and is still in the How To
write new application howto!).
I only have hildon-help.h and no osso help.

So playing with it now...
But, now one here that knows how to hint me ?

--
anidel

On Wed, Apr 16, 2008 at 4:09 PM, Aniello Del Sorbo <[EMAIL PROTECTED]> wrote:

> Hi,
>
> looks like the on-line documentation needs a lot of work on it.
> the Maemo Help Framework howto is outdated, so is the maemopad package.
>
> while waiting before the lesson i decided to go read other pieces of
> the on-line documentation.
>
> the
> How to Write New Applications in maemo 4.0
>
> document states I should use the ossohelp_show function and even
> redirects me to the former help framework howto!!
>
> I will check later if this helps.
>
> --
> anidel
>
> On 4/16/08, Aniello Del Sorbo <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am again bugging the list with another issue I am going to solve.
> > This time with the help framework.
> >
> > I did write my xournal.xml help file, here is an excerpt of interest for
> the issue I am describing:
> >
> > 
> > 
> > 
> > Xournal
> > 
> > 1. Introduction
> >  
> > Xournal is an application for notetaking,
> sketching, keeping a journal using a stylus. It is free software (GNU GPL)
> and runs on Maemo, desktop Linux (recent distributions) and other GTK+/Gnome
> platforms. It is similar to Microsoft Windows Journal or to other
> alternatives such as Jarnal  and Gournal.
> >  
> > 
> > 
> >
> > This xournal.xml file is stored correctly into
> /usr/share/osso-help/en_GB and en_US
> > (the tablet is set as en_US)
> >
> > main function:
> >
> >   osso_context_t *ctx;
> >
> >   ctx = osso_initialize (PACKAGE, VERSION, TRUE, NULL);
> >   g_assert (ctx);
> >
> >   g_signal_connect (GTK_OBJECT(xournalHelp), "activate",
> > G_CALLBACK (on_HildonHelp_activate),
> >  "help_introduction");
> > ...
> > This is the code in the callback function (it is correctly called)
> on_HildonHelp_activate:
> >
> > on_HildonHelp_activate (GtkWidget *widget, gchar *help_id) {
> >  ..
> >   retval = hildon_help_show(ctx, /* global osso_context */
> >   help_id,   /* topic id */
> >   HILDON_HELP_SHOW_DIALOG);
> > ..
> > }
> >
> > where "help_id" is correctly passed as "help_introduction" from the menu
> item signal
> >  and the ctx is a global osso_context_t * pointer (the one returned by
> osso_initialize);
> >
> > Guess what ?
> > No help widget is shown.
> >
> > Yeah, I know.. this is very similar to the Help Framework HOWTO, is it ?
> :)
> >
> > One more thing. I did also check the maemopad example, but its Makefile
> stores
> > the help file in the /usr/share/hildon-help folder rather than
> osso-help, thus I guess
> > that help is wrong or outdated.
> > Anyway when the MaemoPad.xml was stored in the hildon-help folder, it
> behaved as
> >  Xournal. Click on the menu item and it doesn't show anything at all.
> > If I copy the MaemoPad.xml file to the correct folder in osso-help
> (en_GB and en_US
> > to be sure) a balloon appears telling me that that topic does not exist
> (even if it does, I checked).
> >
> > What's wrong ?
> >
> > --
> > anidel
>
>
>
> --
> anidel
>



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


Re: BECOMEROOT

2008-04-16 Thread Ian Lawrence
Hi,
>  The issue is more that the whole "Web 2.0" hasn't been planned to be run
>  in 64MB of RAM.  There are sites out there where a single Flash object
>  or JavaScript script consumes more memory.  Even 128MB is tight.
But, I mean it is possible to increase the amount of memory available
for a 770 using an MMC card, right?. I am not sure what the upper
limit is but 128MB + 64MB of system memory seems feasible. There is
even some nice GUI tab to do this in the control panel IIRC so you
don't need to get your hands dirty if you do not want to. Granted this
memory is not as fast as the system memory and there are plenty of
JavaScript/Flash horror stories out there in the wild to trip the
device up but this does not seem like 'the issue' we are talking about
to me. That is (or was) more profound, IMHO.

Regards,
Ian


-- 
http://ianlawrence.info
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: BECOMEROOT

2008-04-16 Thread Eero Tamminen
Hi,

ext Ian Lawrence wrote:
>>  Another reason why N800 etc software doesn't work on 770 is
>>  hardware constraints.  Less RAM, Flash and older OMAP version.
>>  I.e. "unfortunately" both HW and SW move forward...
> 
> Whilst this may be true it also highlights something else. More recent
> software was never really *planned* to be running on a 770. Maybe if
> this had been considered at the time some of the HW and SW effects
> could have been ameliorated to some extent. ?

The issue is more that the whole "Web 2.0" hasn't been planned to be run
in 64MB of RAM.  There are sites out there where a single Flash object
or JavaScript script consumes more memory.  Even 128MB is tight.


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


Re: [ISSUE] Maemo Help framework

2008-04-16 Thread Aniello Del Sorbo
Hi,

looks like the on-line documentation needs a lot of work on it.
the Maemo Help Framework howto is outdated, so is the maemopad package.

while waiting before the lesson i decided to go read other pieces of
the on-line documentation.

the
How to Write New Applications in maemo 4.0

document states I should use the ossohelp_show function and even
redirects me to the former help framework howto!!

I will check later if this helps.

--
anidel

On 4/16/08, Aniello Del Sorbo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am again bugging the list with another issue I am going to solve.
> This time with the help framework.
>
> I did write my xournal.xml help file, here is an excerpt of interest for the 
> issue I am describing:
>
> 
> 
> 
> Xournal
> 
> 1. Introduction
>  
> Xournal is an application for notetaking, 
> sketching, keeping a journal using a stylus. It is free software (GNU GPL) 
> and runs on Maemo, desktop Linux (recent distributions) and other GTK+/Gnome 
> platforms. It is similar to Microsoft Windows Journal or to other 
> alternatives such as Jarnal  and Gournal.
>  
> 
> 
>
> This xournal.xml file is stored correctly into /usr/share/osso-help/en_GB and 
> en_US
> (the tablet is set as en_US)
>
> main function:
>
>   osso_context_t *ctx;
>
>   ctx = osso_initialize (PACKAGE, VERSION, TRUE, NULL);
>   g_assert (ctx);
>
>   g_signal_connect (GTK_OBJECT(xournalHelp), "activate",
> G_CALLBACK (on_HildonHelp_activate),
>  "help_introduction");
> ...
> This is the code in the callback function (it is correctly called) 
> on_HildonHelp_activate:
>
> on_HildonHelp_activate (GtkWidget *widget, gchar *help_id) {
>  ..
>   retval = hildon_help_show(ctx, /* global osso_context */
>   help_id,   /* topic id */
>   HILDON_HELP_SHOW_DIALOG);
> ..
> }
>
> where "help_id" is correctly passed as "help_introduction" from the menu item 
> signal
>  and the ctx is a global osso_context_t * pointer (the one returned by 
> osso_initialize);
>
> Guess what ?
> No help widget is shown.
>
> Yeah, I know.. this is very similar to the Help Framework HOWTO, is it ? :)
>
> One more thing. I did also check the maemopad example, but its Makefile stores
> the help file in the /usr/share/hildon-help folder rather than osso-help, 
> thus I guess
> that help is wrong or outdated.
> Anyway when the MaemoPad.xml was stored in the hildon-help folder, it behaved 
> as
>  Xournal. Click on the menu item and it doesn't show anything at all.
> If I copy the MaemoPad.xml file to the correct folder in osso-help (en_GB and 
> en_US
> to be sure) a balloon appears telling me that that topic does not exist (even 
> if it does, I checked).
>
> What's wrong ?
>
> --
> anidel



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


Re: BECOMEROOT

2008-04-16 Thread Ian Lawrence
Hi,

>  Another reason why N800 etc software doesn't work on 770 is
>  hardware constraints.  Less RAM, Flash and older OMAP version.
>  I.e. "unfortunately" both HW and SW move forward...

Whilst this may be true it also highlights something else. More recent
software was never really *planned* to be running on a 770. Maybe if
this had been considered at the time some of the HW and SW effects
could have been ameliorated to some extent. ?
Perhaps this has its origins in Nokia being a mobile phone company and
not an Ubuntu or Red Hat or  type of company.
Mobile phones are often seen as disposable/throw away items so support
for backwards compatibility was not seen as crucial (either to profits
or the users experience). Unix/Linux hackers and power users
(especially those working in low and resource constrained embedded
environments) do not think in the same way [1] (at least in my
experience) so there is a certain disconnect involved.
Maybe it is just the price we are paying for a more mainstream
acceptance of Linux which companies like Nokia can bring but in any
case it is certainly a pretty 'current' topic of conversation [2]

Regards
Ian

[1] http://en.wikipedia.org/wiki/Unix_philosophy
[2] http://www.linux.com/feature/132203
-- 
http://ianlawrence.info
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to read a .xml file?

2008-04-16 Thread Eero Tamminen
Hi,

ext Chandra wrote:
> How to read a xml file using Maemo?

You can use either libxml2, libexpat or Glib XML parser for that.
Google for more information.


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


Re: BECOMEROOT

2008-04-16 Thread Eero Tamminen
Hi,

ext sebastian maemo wrote:
> I wish that 770 used a standard debian (armel) distribution so that I could
> rely on debian servers to install, update and maintain my favourite
> packages...

Armel is coming to Debian Lenny, it wasn't there when (last SW
release of) 770 was released.  Lenny binary packages are compiled with
newer GCC & Glibc so their dependencies cannot be satisfied on 770
which software is (now) older. In source compilation the issue is
that Lenny requires newer build tools than the Debian Etch tools
used in our SDK.  (This is actually true for N8x0 too)

Another reason why N800 etc software doesn't work on 770 is
hardware constraints.  Less RAM, Flash and older OMAP version.
I.e. "unfortunately" both HW and SW move forward...


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


Re: How to read a .xml file?

2008-04-16 Thread Daniil Ivanov
Hi,

 you can find examples on the page of libxml project:
 http://xmlsoft.org/examples/index.html

Thanks, Daniil.

On Wed, Apr 16, 2008 at 3:54 PM, Chandra <[EMAIL PROTECTED]> wrote:
> Hi Friends,
>
> How to read a xml file using Maemo? Can anybody give me a reference of a
> complete example program to do this?
>
> Thanks in advance.
>
> Regards,
> Chandra
>
>
>  
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
> ___
>  maemo-developers mailing list
>  maemo-developers@maemo.org
>  https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How to read a .xml file?

2008-04-16 Thread Chandra
Hi Friends,

How to read a xml file using Maemo? Can anybody give me a reference of a 
complete example program to do this?

Thanks in advance.

Regards,
Chandra

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: BECOMEROOT

2008-04-16 Thread sebastian maemo
2008/4/16, Kevin T. Neely <[EMAIL PROTECTED]>:
>
> On Wed, Apr 16, 2008 at 04:01:45AM +0200, sebastian maemo wrote:
> > I can install lots of applications in my cellphone (also a Nokia). But I
> can
> > install only a few applications in the 770, unless I do a (non-trivial)
>
> Can you?  I have an S60 phone and -although there are a number of
> applications for it- most of them are either 1) non-free (in code or cost),
> and 2) require a special signature, without which they are very difficult to
> install.


I have an S60 3rd Nokia phone. I've installed on it:

1. A browser that works much better than the browser in 770
2. Google Maps
3. Gmail application
4. PDF viewer
5. PowerPoint viewer
6. Word viewer
7. Excel viewer
8. RealPlayer
9. Flash player
10. Audio book player
11. Book reader
12. Dictionary
13. DOS console
14. Weather app
15. mIRC
16. Blogger
17. YouTube viewer
18. Python console
19. JAVA VM
20. Basic interpreter
...

Of course, I had much more applications on my 770 than on my cell phone. But
to do that you need to boot from MMC.

I see this attitude as completely unproductive.


I completely agree.

 1) it was the first edition of the IT.  Anytime you willingly step into
> version 1.0, you become a beta tester and will be subject to all types of
> difficulties not necessarily expected.  This is as true for new electronics
> as it is for first run cars.


Not really. Mine was version 2.0. And in that version WPA wifi still doesn't
work properly because of a problem with certificates management. It means
that I cannot access the secured wifi at my uni, unless I do the trick of
connecting via unsecure network and then VPN. Pretty slow and frustrating
when VPN disconnects every now and then... My Nokia phone connects perfectly
to the secured wifi network...

2) the 770 is now an outdated model.  I loved mine and have only recently
> moved to an 800.  I love OS2008, with the flash support, video, and easy
> installation of apps like canola.  But it was a necessary move.  If I were
> consent to do a little rss, web, IM, and gizmo calls, I would stick with the
> 770, but like you, I want more, more, more out of my internet tablet.  I
> want to try all the differnt applications and that requires the newer
> operating system.


An 770 costed almost USD500. No comment about changing devices as if it were
changing the headphones...

Once you start trying to run *any* third party app, it does become something
> of a chaos.  Even on my 800, the catalogs (repos) have become somewhat
> chaotic, yet still manageable.


That's right. But an 770 *without* third party apps is pretty useless...

And here, as I see it, is the root of your problem.  When you start doing
> things like "booting from MMC", you have left the realm of simple end user
> and become a hacker.  Welcome to the club!  It is fun, rewarding, and
> frustrating.  But to claim to be a "simple end user", you would not even try
> to install applications like BecomeRoot or apps that might require root
> privileges.  An end user is someone like a friend of mine at work; I flashed
> her device to OS2008 and she remains within the apps browsable through
> Application Manager.


Sure... Nokia has made a hacker of me... I've even published wikis on Debian
pages that are highly appreciated... but when I have to start from ground
zero again, now and then, it's pretty frustrating...

When you want to be restrained by your device, then the Apple iPhone is the
> right thing for you.  When you want the -sometimes difficult- ability to
> extend your device beyond the imaginings of even its developers, then
> something like the maemo-based IT, or an S60 phone is for you.  Pros and
> cons to both sides, but that is the simple presentation.


Seriously, if I had bought my N80 (cell phone) before my N770, I think I
wouldn't have bought it at all. Now I try to use the 770 as mini-laptop. But
it lacks lots of features, like upgrading package distributions, completely
resolved dependencies (it's very difficult to end up with a broken system
from an up-to-date debian distribution - and I use a testing debian -, but
it's very easy to end up with a broken system when playing with your 770)...


enjoy hacking on your 770, you are definitely in the club now!


Definitely...

I wish that 770 used a standard debian (armel) distribution so that I could
rely on debian servers to install, update and maintain my favourite
packages...
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


[ISSUE] Maemo Help framework

2008-04-16 Thread Aniello Del Sorbo
Hi,

I am again bugging the list with another issue I am going to solve.
This time with the help framework.

I did write my xournal.xml help file, here is an excerpt of interest for the
issue I am describing:




Xournal

1. Introduction

Xournal is an application for notetaking,
sketching, keeping a journal using a stylus. It is free software (GNU GPL)
and runs on Maemo, desktop Linux (recent distributions) and other GTK+/Gnome
platforms. It is similar to Microsoft Windows Journal or to other
alternatives such as Jarnal  and Gournal.




This xournal.xml file is stored correctly into /usr/share/osso-help/en_GB
and en_US
(the tablet is set as en_US)

main function:

  osso_context_t *ctx;

  ctx = osso_initialize (PACKAGE, VERSION, TRUE, NULL);
  g_assert (ctx);

  g_signal_connect (GTK_OBJECT(xournalHelp), "activate",
G_CALLBACK (on_HildonHelp_activate),
"help_introduction");
...
This is the code in the callback function (it is correctly called)
on_HildonHelp_activate:

on_HildonHelp_activate (GtkWidget *widget, gchar *help_id) {
..
  retval = hildon_help_show(ctx, /* global osso_context */
  help_id,   /* topic id */
  HILDON_HELP_SHOW_DIALOG);
..
}

where "help_id" is correctly passed as "help_introduction" from the menu
item signal
and the ctx is a global osso_context_t * pointer (the one returned by
osso_initialize);

Guess what ?
No help widget is shown.

Yeah, I know.. this is very similar to the Help Framework HOWTO, is it ? :)

One more thing. I did also check the maemopad example, but its Makefile
stores
the help file in the /usr/share/hildon-help folder rather than osso-help,
thus I guess
that help is wrong or outdated.
Anyway when the MaemoPad.xml was stored in the hildon-help folder, it
behaved as
Xournal. Click on the menu item and it doesn't show anything at all.
If I copy the MaemoPad.xml file to the correct folder in osso-help (en_GB
and en_US
to be sure) a balloon appears telling me that that topic does not exist
(even if it does, I checked).

What's wrong ?

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


Re: hildon_color_button & custom colors issue

2008-04-16 Thread Aniello Del Sorbo
Hi,

this may help other people when working with RGBA values.

I did indeed solved the problem.

Anyway.. the first issue below happened because I was running Xournal from
root in an SSH remote shell.
Thus, probably, colormaps  were wrong.
Running it the usual way (from the Menu) fixed a bit things.
The GdkColor returned by the hildon color chooser was, when drawn on the
canvas, slightly different from the one showed in the button itself.
I think it looked darker.

After digging a bit I figured out that the GdkColor RGB values where RGB16
(guint16) while I needed the RGB8 format.
Thus, I had to first divide red, green and blue by 255 before putting them
into a single guint value (RGBA) in the form of 0xRRGGBBAA.

guint rgba = GNOME_CANVAS_COLOR_A  (color->red / 255.0, color->green /
255.0, color->blue / 255.0, alpha)

Is that the correct explanation ?

--
anidel

On Tue, Apr 15, 2008 at 8:16 PM, Aniello Del Sorbo <[EMAIL PROTECTED]> wrote:

> I reply to myself.
> I was testing the app running it from a remote SSH (root) and not from the
> user's Menu.
>
> It works.
> Thanks anyway.
>
> Aniello
>
>
> On Tue, Apr 15, 2008 at 5:50 PM, Aniello Del Sorbo <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> > while porting Xournal to Maemo I decided to give it as much
> > hildonization is possible.
> > Base xournal uses only a bunch of predefined colors (something like 9 or
> > 10 colors).
> >
> > I decided to use the hildon_color_button widget to give the user a much
> > wide choice of colors.
> > I get the GdkColor from the color button and have to convert it in RGBA
> > because Xournal only works with those values
> > (passing "fill-color-rgba" to the canvas items). It does this, I think,
> > for being able to make a highlighter tool available in different colors
> > (by making use of the alpha channel).
> >
> > anyway, I convert the GdkColor to RGBA using the macro:
> >
> > GdkColor *color; // read from the hildon_color widget
> > guint alpha = 0xFF; // no transparency
> >
> > guint rgba = GNOME_CANVAS_COLOR_A  (color->red, color->green,
> > color->blue, alpha)
> >
> > and then use it wherever it is needed.
> >
> > This works for the predefined colors in the color chooser dialog.
> > But if I choose my own custom color it does not.
> >
> > If I use the GdkColor as is (thus passing "fill-color-gdk" to the canvas
> > items), it works, but I can't use the alpha channel (can I ?).
> > If I convert this custom color to RGBA with the given macro, it paints
> > in a totally different color.
> >
> > Is this some issue with the colormap ?
> > Is GNOME_CANVAS_COLOR_A not good for this ?
> >
> > Any other hints ?
> >
> > --
> > anidel
>
>
>
>
> --
> anidel
>



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