Access denied in maemo.org

2008-10-16 Thread Till Harbaum / Lists
Hi,

i just tried to update the downloads page of osm2go, but i only get some
access denied page with some explanation that i need some special
admin rights.

Why?

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


Re: Access denied in maemo.org

2008-10-16 Thread Niels Breet
On Thu, October 16, 2008 09:18, Till Harbaum / Lists wrote:
 Hi,
Hi,


 i just tried to update the downloads page of osm2go, but i only get some
 access denied page with some explanation that i need some special
 admin rights.

I have just been able to edit your application as admin and regular user
without problems. Does it still happen to you?

 Why?


Let's try to find out.


 Till

--
Niels Breet
maemo.org webmaster


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


GtkPixbuf from Char buffer

2008-10-16 Thread Arto Karppinen

Hi, were developing an application which is supposed to show user images 
downloaded from web server using xmlrpc. The problem is that we cant 
quite figure out how to create a pixbuf from a buffer which contains the 
RAW contents of a file.

Functions like:

gdk_pixbuf_new_from_data
gdk_pixbuf_new_from_inline
gdk_pixbuf_from_pixdata

all seem to expect the image to be in some particular format already, 
while what we need is more like gdk_pixbuf_new_from_file() which is able 
to autodetect everything and just read the file.

All information that our application has about the image are:
  - Name of file.
  - Size of file.
  - Contents of file.

-- 
Arto Karppinen
--
[EMAIL PROTECTED]
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GtkPixbuf from Char buffer

2008-10-16 Thread gary liquid
arto,

have you considered caching the downloaded file to disk and reading from
there using the standard function?

This would give you the obvious benefit of allowing offline usage and faster
requerying.
There isn't an infinite amount of memory available and having to download
images everytime could cause user angst.

I believe /tmp is mapped to real memory and not the flash drive, so would
not cause real problems and wouldn't be much slower  (someone can confirm
this?)

Even though it may require a little bit more time to organise a cache file
plan, it may be worth it in the end?

Gary (lcuk on #maemo)

On Thu, Oct 16, 2008 at 3:12 PM, Arto Karppinen 
[EMAIL PROTECTED] wrote:


 Hi, were developing an application which is supposed to show user images
 downloaded from web server using xmlrpc. The problem is that we cant
 quite figure out how to create a pixbuf from a buffer which contains the
 RAW contents of a file.

 Functions like:

gdk_pixbuf_new_from_data
gdk_pixbuf_new_from_inline
gdk_pixbuf_from_pixdata

 all seem to expect the image to be in some particular format already,
 while what we need is more like gdk_pixbuf_new_from_file() which is able
 to autodetect everything and just read the file.

 All information that our application has about the image are:
  - Name of file.
  - Size of file.
  - Contents of file.

 --
 Arto Karppinen
 --
 [EMAIL PROTECTED]
 ___
 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


Re: GtkPixbuf from Char buffer

2008-10-16 Thread Daniil Ivanov
Hello!

  One way is to create GdkPixbufLoader and feed your image with
gdk_pixbuf_loader_write.
  It will parse it and give you GdkPixbuf.

  Another way is to save data into temporary file and do
gdk_pixbuf_new_from_file ().

Thanks, Daniil.

On Thu, Oct 16, 2008 at 5:12 PM, Arto Karppinen
[EMAIL PROTECTED] wrote:

 Hi, were developing an application which is supposed to show user images
 downloaded from web server using xmlrpc. The problem is that we cant
 quite figure out how to create a pixbuf from a buffer which contains the
 RAW contents of a file.

 Functions like:

gdk_pixbuf_new_from_data
gdk_pixbuf_new_from_inline
gdk_pixbuf_from_pixdata

 all seem to expect the image to be in some particular format already,
 while what we need is more like gdk_pixbuf_new_from_file() which is able
 to autodetect everything and just read the file.

 All information that our application has about the image are:
  - Name of file.
  - Size of file.
  - Contents of file.

 --
 Arto Karppinen
 --
 [EMAIL PROTECTED]
 ___
 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 get a general utility package cross-listed from tools to extras?

2008-10-16 Thread tz
I am writing a package that uses the bluez-utils-test, which are a set
of configuration utilities for the bluez stack and there are some
functions there which aren't available (or have side-effects) using
dbus or other things on the platform.  There are probably others.  The
big two are rfcomm and l2ping.  l2ping since for trusted devices will
search for the device with the least interference and resource
consumption (anything else will all but shut off wifi), and rfcomm
because the interface is simple.  The others are also useful.  They
are like ifconfig, iwconfig, iwlist, mount and other utilities which
are included.

The problem is they are only visible in red-pill-mode or with an apt-get.

There are probably other utilities (things like traceroute, socat,
etc.) which strictly are utilities, not just SDK or developer items.
GCC, probably not.

So first I'm asking if anyone else knows of packages that are only
available in red-pill mode, but are generally useful.

And second, if something could be created to vote a package into
extras or a user section.

Right now, such packages are in limbo - Nokia distributes it and
generally insures it works for development but doesn't support it for
user installation.  But because it is a Nokia package, it isn't going
to be supported or accessible by users.  Some of these are auxiliary
programs that go with the features, in the case of blues-utils-test,
the bluez stack, which they have to be kept in sync with.

Or do I just have to create a garage project for the identical
packages, then submit them for moving into extras?  Then what if Nokia
updates the base package?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GtkPixbuf from Char buffer

2008-10-16 Thread Eero Tamminen
Hi,

ext gary liquid wrote:
 have you considered caching the downloaded file to disk and reading from
 there using the standard function?
 
 This would give you the obvious benefit of allowing offline usage and faster
 requerying.
 There isn't an infinite amount of memory available and having to download
 images everytime could cause user angst.
 
 I believe /tmp is mapped to real memory and not the flash drive, so would
 not cause real problems and wouldn't be much slower  (someone can confirm
 this?)

This is a no-no.  The system /tmp is a RAM-disk with 1/2MB max size
and it's used by all applications.  It's intended for _small_ (few KB)
temporary files.  For larger or more permanent[1] things one should
use $TMPDIR i.e. /var/tmp which is on Flash.

[1] See the Filesystem Hierarchy Standard:
http://www.pathname.com/fhs/


 Even though it may require a little bit more time to organise a cache file
 plan, it may be worth it in the end?


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


Re: GtkPixbuf from Char buffer

2008-10-16 Thread gary liquid
i don't mind being wrong :)
thanks Eero, it was the principle more than the specifics I was trying to
indicate however.

On Thu, Oct 16, 2008 at 3:46 PM, Eero Tamminen [EMAIL PROTECTED]wrote:

 Hi,

 ext gary liquid wrote:

 have you considered caching the downloaded file to disk and reading from
 there using the standard function?

 This would give you the obvious benefit of allowing offline usage and
 faster
 requerying.
 There isn't an infinite amount of memory available and having to download
 images everytime could cause user angst.

 I believe /tmp is mapped to real memory and not the flash drive, so would
 not cause real problems and wouldn't be much slower  (someone can confirm
 this?)


 This is a no-no.  The system /tmp is a RAM-disk with 1/2MB max size
 and it's used by all applications.  It's intended for _small_ (few KB)
 temporary files.  For larger or more permanent[1] things one should
 use $TMPDIR i.e. /var/tmp which is on Flash.

 [1] See the Filesystem Hierarchy Standard:
http://www.pathname.com/fhs/



  Even though it may require a little bit more time to organise a cache file
 plan, it may be worth it in the end?



- Eero

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


Re: How to get a general utility package cross-listed from tools to extras?

2008-10-16 Thread Eero Tamminen
Hi,

ext tz wrote:
 I am writing a package that uses the bluez-utils-test, which are a set
 of configuration utilities for the bluez stack and there are some
 functions there which aren't available (or have side-effects) using
 dbus or other things on the platform.  There are probably others.  The
 big two are rfcomm and l2ping.  l2ping since for trusted devices will
 search for the device with the least interference and resource
 consumption (anything else will all but shut off wifi), and rfcomm
 because the interface is simple.  The others are also useful.  They
 are like ifconfig, iwconfig, iwlist, mount and other utilities which
 are included.
 
 The problem is they are only visible in red-pill-mode or with an apt-get.

Why that is a problem?  If your UI package needs them, you should
add a dependency to them.


 There are probably other utilities (things like traceroute, socat,
 etc.) which strictly are utilities, not just SDK or developer items.
 GCC, probably not.
 
 So first I'm asking if anyone else knows of packages that are only
 available in red-pill mode, but are generally useful.

Define generally.  For me strace (in maemo tools repo) is
generally more useful than for example socat. :-)


 And second, if something could be created to vote a package into
 extras or a user section.
 
 Right now, such packages are in limbo - Nokia distributes it and
 generally insures it works for development but doesn't support it for
 user installation.  But because it is a Nokia package, it isn't going
 to be supported or accessible by users.  Some of these are auxiliary
 programs that go with the features, in the case of blues-utils-test,
 the bluez stack, which they have to be kept in sync with.

Packages in user sections should really be something visible to normal
user (go to application menu, have icon and UI, be translated etc), not
things for which you need command line.

For command line things, install ssh and do the command line stuff
on the device from your desktop, install stuff with apt-get etc.
(it's anyway much nicer for installing a large amount of packages
and you see the potential issues immediately instead of needing
to click your way into View log dialog).


  Or do I just have to create a garage project for the identical
  packages, then submit them for moving into extras?  Then what if Nokia
  updates the base package?

I still fail to see the problem you're trying to solve.
Or are you worried about cross-repository dependencies?

Marius/Quim, any opinion on whether the Nokia provided tools packages
should go to extras instead of the SDK/tools repository?


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


Re: GtkPixbuf from Char buffer

2008-10-16 Thread Kemal Hadimli
From Maemopad+ 
(https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/unified/src/ui/callbacks.c?revision=94root=maemopadplusview=markup
)

GdkPixbufLoader *pl = gdk_pixbuf_loader_new_with_type(png, NULL);
GError *err = NULL;
gdk_pixbuf_loader_write(pl, (guchar *) blob, blobsize, err);
f (err != NULL)
{
//error
g_error_free(err);
return;
}
gdk_pixbuf_loader_close(pl, NULL);
GdkPixbuf *pixbuf = gdk_pixbuf_loader_get_pixbuf(pl);

if (GDK_IS_PIXBUF(pixbuf))
{
//do stuff
}
g_object_unref(pl);


On Thu, Oct 16, 2008 at 5:12 PM, Arto Karppinen
[EMAIL PROTECTED] wrote:

 Hi, were developing an application which is supposed to show user images
 downloaded from web server using xmlrpc. The problem is that we cant
 quite figure out how to create a pixbuf from a buffer which contains the
 RAW contents of a file.

 Functions like:

gdk_pixbuf_new_from_data
gdk_pixbuf_new_from_inline
gdk_pixbuf_from_pixdata

 all seem to expect the image to be in some particular format already,
 while what we need is more like gdk_pixbuf_new_from_file() which is able
 to autodetect everything and just read the file.

 All information that our application has about the image are:
  - Name of file.
  - Size of file.
  - Contents of file.

 --
 Arto Karppinen
 --
 [EMAIL PROTECTED]
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



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


Re: GtkPixbuf from Char buffer

2008-10-16 Thread Arto Karppinen
gary liquid wrote:
 arto,
 
 have you considered caching the downloaded file to disk and reading from 
 there using the standard function?
 
 This would give you the obvious benefit of allowing offline usage and 
 faster requerying.
 There isn't an infinite amount of memory available and having to 
 download images everytime could cause user angst.

This is about a small preview image for the complete Irreco Theme, so i 
don't feel there is any real need to cache it.

The theme will be saved to disk if the user likes the preview, and 
chooses do download the whole thing.


-- 
Arto Karppinen
--
[EMAIL PROTECTED]
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get a general utility package cross-listed from tools to extras?

2008-10-16 Thread Ryan Abel
On Oct 16, 2008, at 10:58 AM, Eero Tamminen wrote:

 Marius/Quim, any opinion on whether the Nokia provided tools packages
 should go to extras instead of the SDK/tools repository?


My own opinion is that, yes, the Tools repository packages should move  
to Extras. Repository bloat has always been a big problem, and the  
Tools repo just adds to it without bringing any really useful  
definition between itself and Extras.

The packages wont show up in the Application manager anyway, so there  
isn't much point in keeping them segregated.

--
Ryan Abel
Maemo Community Council chair

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


Re: How to get a general utility package cross-listed from tools to extras?

2008-10-16 Thread Andrew Flegg
On Thu, Oct 16, 2008 at 4:32 PM, Ryan Abel [EMAIL PROTECTED] wrote:
 On Oct 16, 2008, at 10:58 AM, Eero Tamminen wrote:

 Marius/Quim, any opinion on whether the Nokia provided tools packages
 should go to extras instead of the SDK/tools repository?

 My own opinion is that, yes, the Tools repository packages should move
 to Extras. Repository bloat has always been a big problem, and the
 Tools repo just adds to it without bringing any really useful
 definition between itself and Extras.

Agreed. Until I was reminded recently (why bother with netcat in
Extras from mud, when it's in the tools repo), I'd forgotten it
existed.

 The packages wont show up in the Application manager anyway, so there
 isn't much point in keeping them segregated.

+1.

Cheers,

Andrew

-- 
Andrew Flegg -- mailto:[EMAIL PROTECTED]  |  http://www.bleb.org/
maemo.org Community Council member
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GtkPixbuf from Char buffer

2008-10-16 Thread Alberto Garcia
On Thu, Oct 16, 2008 at 05:12:40PM +0300, Arto Karppinen wrote:

 Hi, were developing an application which is supposed to show user
 images downloaded from web server using xmlrpc. The problem is that
 we cant quite figure out how to create a pixbuf from a buffer which
 contains the RAW contents of a file.

You can use GdkPixbufLoader to do that.

A sample implementation here (function get_pixbuf_from_image()):

https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/src/util.c?root=vagalumeview=markup

-- 
Alberto García González
http://people.igalia.com/berto/
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Safety through education or the Red Pill mode wiki article

2008-10-16 Thread Ryan Abel
In the interest of (hopefully) reducing usage of Red Pill mode by  
educating users rather than scaring them, I've started a new wiki  
article on the subject, using the old midgard article, and h-a-m's  
Garage documentation as a base.[1]

I need a breakdown of exactly what Red Pill mode does, though,  
specifically in the way of disabled safety locks (allowing conflicting  
packages to be removed, upgrading system packages, etc.).

I have a general idea, but because I'm feeling tired and lazy, I'd  
figure I'd pole the list to compile a list for me rather than doing it  
myself. ;)


[1]http://wiki.maemo.org/Red_Pill

--
Ryan Abel
Maemo Community Council chair

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