Re: on N900 after gainroot, executing shell script throws permission denied error.

2010-07-21 Thread Marius Gedminas
On Wed, Jul 21, 2010 at 01:50:14PM +0200, koos vriezen wrote:
 2010/7/21 praveen koduru prawin1...@gmail.com:
  Yes it has executable permissions
  but not able to execute the shell script.
 
 First line of shell script? Which should look like
 
 #!/bin/sh
 
 Note that your script must be in UNIX text format (i.e. only a newline
 and not carriage-return+newline like DOS/Windows text files have)
 
 Could be the filesystem too, eg. /home/user/MyDocs is on my device
 mounted with the noexec option.

This would be my guess.

I keep my shell scripts in /home/user/bin, and I've added that directory
to the $PATH by putting

  export PATH=/home/user/bin:$PATH:/sbin:/usr/sbin

in /home/user/.profile

Marius Gedminas
-- 
If it weren't for the last minute, nothing would get done.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Dependency problems after PR 1.2 update to extras builder

2010-03-29 Thread Marius Gedminas
On Mon, Mar 29, 2010 at 06:00:25PM +0200, Dave Neary wrote:
 Marcin Juszkiewicz wrote:
  No, I am not kidding. It was discussed here on mailing list and announced 
  that 
  Extras autobuilder will be updated to PR 1.2 compatible SDK and that 
  resulting 
  packages will be installable only on devices owned by Nokia employed people 
  (and some from cooperating companies). Other users (and developers) have to 
  wait for next firmware drop (which does not have release date as usual so 
  it 
  can be tomorrow or in next year).
 
 Now now Marcin, that's not what was said.
 
 what was said was that software built with the PR 1.2 SDK would probably
 only install on devices with PR 1.2 installed. That's not the same thing.

True: *some* packages built with today's autobuilder do install on devices
with PR 1.1.1 firmware.  Some don't.

 ianaré, normally all you have to do is upgrade the firmware on your N900
 to PR 1.2, as I understand it.

Gladly.  The problem here is that nobody has access to PR 1.2 firmware,
except for some people working for Nokia.

Regards,
Marius Gedminas
-- 
I dont know about madness (and anyway, the little green martians dancing
around me tell me not to worry...), but I've implemented something not
unlike this just now.
-- Peter Sabaini


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GSOC Project: eBook Reader

2010-03-24 Thread Marius Gedminas
On Wed, Mar 24, 2010 at 12:22:49AM -0400, Ajai Khattri wrote:
 On Tue, 23 Mar 2010, Oliver Haag wrote:
  Okular should be a pretty good base, it supports many formats and is 
  Qt-based 
  (Hope there aren't too many KDE-dependencies...). I'll take a closer look 
  at 
  the source the next days.
  
  There's another eBook-Software in the repos called FBReader, maybe that is 
  already known but wanted to write it here anyway in case it wasn't seen. 
  I've 
  tried it out and it doesn't seem to be touch-friendly but it looks like it 
  supports more eBook-only-formats, maybe these could be ported (When the 
  other 
  things are running fine :D).
 
 You've been reading my mind haven't you? :-)
 
 It has to be said, Evince is pretty good for PDF (but I dont know if that 
 build includes DJVU support?).

I'm currently reading a PDF in Evince, and it's painful.  The touch
scrolling has weird and unintuitive inertia and is very slow to redraw,
so you don't see where you're scrolling until it's too late.

Marius Gedminas
-- 
The memory management on the PowerPC can be used to frighten small children.
-- Linus Torvalds


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: auto-start openvpn and udhcpc

2010-03-02 Thread Marius Gedminas
On Tue, Mar 02, 2010 at 10:25:48PM -0500, Jason wrote:
 I'm attempting to get openvpn on my N900 connecting to my existing
 openvpn server.  The openvpn part works well.  The automation part is
 trickier :-)
 
 First, how do I get openvpn to automagically start anytime I select a
 network to connect to?  I'd like mail checks (which should pull up an
 interface on demand) to find my mailserver, which is only available
 via vpn.

Good question.  I suppose you already tried /etc/network/if-up.d/ and
it didn't work?

 Second, I've found a script workaround for the gprs0 unnamed gateway
 issue, but I can't figure out the proper way to trigger udhcpc on my
 tap0.  I've setup my openvpn infrastructure to use my dnsmasq server
 for dhcp and to use real dhcp clients to configure tap0 (one tool for
 one job [1]).  This has worked great for years on
 desktop/laptop/embedded platforms.  
 
 I tried adding tap0 to /etc/network/interfaces, but that earned me a
 dumb look.  Isn't maemo supposed to be debian-based?

It is; that doesn't mean nothing was changed.

 I cat'd the
 /proc/$PID/cmdline of udhcpc for my wlan0 which sent me on a script
 hunt and didn't yield, at least to me, a clean way to hook in or
 trigger it.

Worst case you can listen for DBUS notifications to discover when the
N900 gets online.

Best case -- I hope you can find a script you can hook into.  E.g.
/etc/udhcpc/default.script might work.

 I also found that resolv.conf is changed in /var/run...

That's normal for dnsmasq, as far as I understand.
Incidentally, the script that modifies it is /etc/udhcpc/default.bound
or default.renew

 Any ideas?
 
 thx,
 
 Jason.
 
 [1] http://www.faqs.org/docs/artu/ch01s06.html

Regards,
Marius Gedminas
-- 
C is a language that combines all the elegance and power of assembly language
with all the readability and maintainability of assembly language.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N900 Charging Issue

2010-02-20 Thread Marius Gedminas
On Sat, Feb 20, 2010 at 11:08:08PM +1300, Charles wrote:
 Hi all,

 has anyone had this kind of charging issues for N900? My problem was  
 when I plugged in the USB cable into N900 it did not show up the mode  
 selection dialogue and did not show any charging indication either. The  
 same happened with the wall-charger as well.

Sounds like https://bugs.maemo.org/show_bug.cgi?id=6004

It ought to be fixed in PR 1.1 firmware.

 Also, when i turned the phone off and plugged in the USB cable, the  
 front LED flashed yellow twice and nothing happens.

 I am so annoying by this issue as I cannot charge the phone properly. Is  
 this something related to the Maemo software?

Marius Gedminas
-- 
Never trust a computer you can't repair yourself.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: /home/maemo/user/MyDocs mounted in read only mode

2010-02-12 Thread Marius Gedminas
On Fri, Feb 12, 2010 at 05:09:06PM +0100, ac...@dsic.upv.es wrote:
 I am having problems with my N900 for some reason the directory  
 /home/user/MyDocs esta montado en readonly mode.

This happens when the OS detects filesystem corruption, which can happen
if you write something to it over USB using mass-storage mode and then
unplug without cleanly ejecting.

 Please, could some one tell me how to set it to read/write mode again.

Connect the N900 via USB to a laptop and run a filesystem repair tool
(On Linux: umount  dosfsck -a; on Windows: uh, I forgot, I don't use
Windows...).

Cheers!
Marius Gedminas
-- 
We're sysadmins. To us, data is a protocol-overhead.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Packaging questions

2010-02-09 Thread Marius Gedminas
On Mon, Feb 08, 2010 at 12:19:10AM -0500, Ajai Khattri wrote:
 Im trying to create my first Maemo package and I had a few questions:
 
 1) This package has a main binary, but also has additional 
 binaries/scripts and library files, so do I select 'Multiple binaries' 
 when running dh_make ?

There's some confusion here that I haven't seen addressed in this
thread: binary can mean a binary execution file, which is what
you're thinking about, or it can mean a binary Debian package, which
is what dh_make is asking about.

You most likely want a single binary deb that contains all your
executables.

Marius Gedminas
-- 
...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and
the Ugly).
-- Matt Welsh


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: rx-51 xkb file: how does FOUR_LEVEL type work?

2010-02-06 Thread Marius Gedminas
On Fri, Feb 05, 2010 at 07:41:50PM -0800, Denis DeLaRoca wrote:
 Is /usr/share/X11/locale/en_US.UTF-8/Compose relevant at all? It defines  
 an array of compose key combinations.

 But as defined in rx-51, the compose key, aka Fn + Ctrl, presently  
 triggers the extension virtual keyboard and thus preempts the use of the  
 compose key combinations, yes?

Also, at least on desktops, Gtk+ ignores the X11 Compose definitions and
uses its own builtin table, unless you explicitly set GTK_IM_MODULE=xim.

Marius Gedminas
-- 
This sentence contradicts itself -- no actually it doesn't.
-- Douglas Hofstadter


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Older targets in Mammo 5 SDK?

2010-02-04 Thread Marius Gedminas
On Wed, Feb 03, 2010 at 02:46:10PM -0500, ma...@bitblit.net wrote:
 On Wed, 3 Feb 2010, Marius Gedminas wrote:
 
  Check out this post about setting up multiple targets in your scratchbox:
  http://inz.fi/blog/2007/10/22/multi-target-development-for-maemo/
  
  I currently have targets for mistral, bora, chinook, diablo and
  fremantle.
 
 I read the blog post but its not clear to me. I used the regular installer 
 scripts to have FREMANTLE. I just want to add the DIABLO targets and 
 binaries.

What the installer script did for you was:

  * install scratchbox
  * set up a couple of fremantle targets

Now you can do the rest yourself:

  * download diablo rootstrap
  * run the three 'sb-conf st', 'sb-conf rs', 'sb-conf in' commands for
diablo

O, hey, that blog post has no 'diablo'!  No matter, it's basically same
as chinook:

  sb-conf setup diablo-armel -c cs2005q3.2-glibc2.5-arm -d 
perl:debian-etch:Maemo Community council election September 
20083-tools:cputransp -t qemu-arm-0.8.2-sb2
  sudo wget -O /scratchbox/packages/diablo-armel-rootstrap.tgz 
http://repository.maemo.org/stable/4.1/armel/maemo-sdk-rootstrap_4.1_armel.tgz
  sb-conf rs diablo-armel /scratchbox/packages/diablo-armel-rootstrap.tgz
  sb-conf in diablo-armel -e -d -F

(Note: you run all these in your host system, not inside Scratchbox).

Marius Gedminas
-- 
Five words to strike fear into the heart of any software developer: 'How long
will it take?'
-- Sean McGrath


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Older targets in Mammo 5 SDK?

2010-02-02 Thread Marius Gedminas
On Wed, Feb 03, 2010 at 12:51:41AM -0500, ma...@bitblit.net wrote:
 Is it possible to have older targets inside the Maemo 5 SDK? For example, 
 it would be useful to have DIABLO_X86 and DIABLO_ARMEL targets available.

Check out this post about setting up multiple targets in your scratchbox:
http://inz.fi/blog/2007/10/22/multi-target-development-for-maemo/

I currently have targets for mistral, bora, chinook, diablo and
fremantle.

Marius Gedminas
-- 
lg_PC.gigacharset (lg = little green men language, PC = proxima centauri)
-- Markus Kuhn provides an example of a locale


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Profiling applications (oprofile, others?)

2009-12-28 Thread Marius Gedminas
On Thu, Dec 03, 2009 at 10:45:43AM +0200, Alberto Mardegan wrote:
 Andrea Borgia wrote:
  Alberto Mardegan ha scritto:
  
 since fremantle's maemo-mapper is so horribly slow, I went and tried to 
  run 
  oprofile.
  
  AFAIK, it was very slow even on Diablo:
  https://bugs.maemo.org/show_bug.cgi?id=4452
 
 Believe me, it's even slower :-)
 About the map cache, I don't see much point of having it in a DB at all, I 
 would 
 just use the filesystem.

Very old versions of Maemo Mapper did exactly that.

Very old versions of Maemo Mapper felt faster to me than newer versions
did.

Hmmm.

 But I'll try to get all the developers of maps 
 application to agree on a common place/format to store downloaded maps, in 
 order 
 to share it.

That'd be nice.

Marius Gedminas
-- 
Get a life?  Well, once I nearly found one, but the link was broken.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Find out Maemo version from script

2009-12-15 Thread Marius Gedminas
On Tue, Dec 15, 2009 at 04:37:23PM +0100, Alberto Garcia wrote:
 On Tue, Dec 15, 2009 at 12:21:58PM +0100, Cornelius Hald wrote:
 
  While developing inside the SDK I used /etc/maemo_version (which is
  provided by the package maemo-version) to alter the runtime behavior
  of some scripts.
 
 I think it's simpler to check the version of some installed packages
 (using e.g. pkg-config)

And it's even better to check for the *features* you want, rather than
the version of the software that has these features.

Marius Gedminas
-- 
At most companies, programmers aren't trusted with words that a user might
actually see (and for good reason, much of the time).
-- Joel Spolski


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Find out Maemo version from script

2009-12-15 Thread Marius Gedminas
On Tue, Dec 15, 2009 at 07:50:48PM +0100, Cornelius Hald wrote:
 I think I will use the osso-product-info command as this seems to be the
 best way for me to do it.
 
 With the other solutions I have some problems:
 
 * /etc/osso_software_version does not exist on my N900.
 
 * pkg-config is only for *-dev packages and does not exist (by default)
 on the N900.
 
 * Checking for the feature is not possible, as the feature is a bug in
 some preinstalled library and I don't know in which one.
 
 I need this check because I need to figure out whether or not this bug
 exists and if yes change a couple of files to work around it. So
 checking for the OSSO_PRODUCT_RELEASE_VERSION with the osso-product-info
 command should work for me.

This sounds very interesting.  Can you tell use what the bug is and what
files you need to change for the workaround?

Marius Gedminas
-- 
If the ancients were right and to think is to exist, does Microsoft exist?


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to determine the model and hardware configuration Maemo device?

2009-12-14 Thread Marius Gedminas
On Sun, Dec 13, 2009 at 06:16:42PM +0300, Arkady Glazov wrote:
 Is it possible to determine from a perl or shell script on which model
 it gets? And how can we determine how the localization device
 (keyboard)

osso-product-info could help.

IIRC in Diablo it required root for (part of?) the info; in Fremantle
regular users can run it no problem.

Marius Gedminas
-- 
Never trust a computer you can't repair yourself.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Garage maintenance break

2009-12-12 Thread Marius Gedminas
On Sat, Dec 12, 2009 at 11:34:57AM +, Andrew Flegg wrote:
  does anyone know how long this break will be? Should I make new plans
  for today or will it be up soon again?
 
 Since I was planning on doing some Maemo development work this
 weekend, this has (potentially) scuppered my plans too. I've asked
 this before, but will ask it again: since out-of-hours for the
 people paid to work on maemo.org actually *conflicts* with most of the
 Maemo community's development time can we have a clear announcement:
 
   * On http://maemo.org/news/ and maemo-developers:
   * As soon as it is scheduled.
   * A few days before the break.
   * Containing the start and expected end.
   * Containing what services are expected to be impacted.
   * And another mail when it's completed.
 
 Apologies if such an announcement was made - but I didn't see it, and
 can't find it if it was. So, if it *was* made; it needs to be made
 more clearly next time :-)

I was unable to find an announcement either.  Since previous maintenance
breaks used to be announced, I can only assume this downtime is
unscheduled.  Some kind of emergency?

Marius Gedminas
-- 
Attempts to stick to simple on-or-off options lead to monsters like gcc, which
now has so many flags that programmers are using genetic algorithms to explore
them.
-- http://www.third-bit.com/~gvwilson/xmlprog.html


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Any new information on Developer Device Program?

2009-12-08 Thread Marius Gedminas
On Thu, Dec 03, 2009 at 01:21:28PM +0100, ds wrote:
 Christmas is approaching, and to me it is absolutly not transparent,
 what happend to a N900 Developer Device Program.

Today I received an email from the N900 Developer Device Program saying
that it is finally in stock and can be ordered.

Marius Gedminas
-- 
Any time somebody tells you that you shouldn't do something because it's
unprofessional, you know that they've run out of real arguments.
-- Joel Spolski


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: overlaid buttons

2009-12-08 Thread Marius Gedminas
On Tue, Dec 08, 2009 at 01:53:03AM -0600, kyle cronan wrote:
 The browser (when you're in full screen) and the media player (when
 you're browsing media) both have a little button in the bottom right
 hand corner of the screen that is overlaid over the main window
 content.  How can I do this in my application with Hildon and GTK?  I
 was under the impression that GTK doesn't support overlapping widgets.

There's a package called hildon-extras that implements this kind of
widget.  It's called HeFullscreenButton, IIRC.

Marius Gedminas
-- 
I've been in the sun for a week.  I took the bold step of leaving my
laptop at home.  I found only 4K messages pending when I returned.
-- Keith Packard


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: can't install application to phone from local repository

2009-10-25 Thread Marius Gedminas
On Sun, Oct 25, 2009 at 12:37:21PM +0200, ibrahim wrote:
 I created a local repository to host some test applications for Maemo  
 fremantle device - and YES, the repository folders are visible to the  
 phone- Added some packages and ran the dpkg-scanpackages utility to  
 generate the Package  and Package.gz files with no errors.

 _the contents of the Package file :_

Package: hello
Section: base
...
 opening the install file on the device with the Application Manager adds  
 the catalogue to the catalogues list, the installation procedure starts  
 saying:preparing for the installation, please wait
 but the Application manager says that it couldn't download the  
 application : unable to download 'hello'. Application package not 
 found.

Where have I seen this question before?

The Application Manager doesn't let the user install packages from
Section: base.  It doesn't let the user install packages from sections
not starting with user/.

 I tried to download the application from the Xterminal application -  
 using the gainroot program:
 apt-get install hello
 And surprisingly, the application manages to download and install !
 the question is : What is wrong with the way i deployed the application  
 that the Application Manager refuses to install it, yet it is downloaded  
 from the command line ? Am i missing something?

Command-line tools such apt or dpkg do not enforce the user/ section
restriction.

Marius Gedminas
-- 
Doing linear scans over an associative array is like trying to club someone to
death with a loaded Uzi.
-- Larry Wall


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Packaging Libraries

2009-10-23 Thread Marius Gedminas
On Fri, Oct 23, 2009 at 02:13:57PM +0200, Jeremiah Foster wrote:
 The best way to go about it might be to first pull down your source  
 package from upstream. Upstream is usually debian and that is easy to  
 do if you are on a debian, or even debian-like, machine:
 
   `apt-get source libyou-want-to-port`
 
 Once that is done, you'll find that you have an original tarball  
 (named usually libyou-want-to-port.orig.tar.gz) a diff tarball, a  
 description file ending in .dsc, and the source package dir. The  
 source package dir, i.e. libyou-want-to-port/ should contain a  
 debian dir underneath. You can drop in there, change the maintainer  
 name to yours, note the dependencies, add that you are maemoifying it  
 to the changelog, and then build. Building is usually done in the  
 libyou-want-to-port/ dir like this;
 
   `dpkg-buildpackage -D rfakeroot`

That should be dpkg-buildpackage -D -rfakeroot.  Or you can omit the -D,
since it's enabled by default anyway.

 You want to do this in scratchbox of course since that is where the  
 device's dependencies are kept, they should be identical to the  
 device. Once this building is done, you should get a .deb and .changes  
 file. The deb is now the binary archive you can use to install your  
 lib. You can test this on the device and you can also follow the  
 instructions on the maemo wiki on how to upload your resulting build.
 
 Of course, this all is a bit of a gloss, there may be issues, like  
 other dependencies not yet solved, and/or versions that are out of  
 sync, etc. But once you start this process, feel free to fire off  
 questions to this list or on IRC #maemo with error messages and you  
 should find that there are often people who will help you. I certainly  
 will, but there are others as well who are very knowledgeable about  
 the platform.

There's also MUD Builder which attempts to automate most of the
downloading-from-debian-patching-and-rebuilding steps:
http://mud-builder.garage.maemo.org/

Marius Gedminas
-- 
Unix for stability;
Macs for productivity;
Palm for mobility;
Windows for Solitaire


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer]

2009-10-23 Thread Marius Gedminas
On Fri, Oct 23, 2009 at 11:44:33AM +0200, Cornelius Hald wrote:
 On Fri, 2009-10-23 at 11:27 +0200, Luca Donaggio wrote:
 
  I'm no goot at finding names, but what about
  he_fullscreen_toggle_overlay?
 
 It's a good fit I think. Something shorter would be nice, though.
 
 I was thinking about the following names, but they have problems too:
 
 - HeFullscreenButton sounds like it is a very big button
 - HeFullscreenOverlay sounds like a very big overlay

How does it work, Gtk-wise?  Is it a widget you add somewhere into your
widget tree?  If so, where?

HeFullscreenOverlay sounds like a GtkBin subclass that contains your
main content area and draws the overlay in the corner when the app is
fullscreened.

HeFloatingFullscreenButton is too long, I suppose.

Marius Gedminas
-- 
After having done some test using hi-tech istruments (moving my mouse
during a kernel build) [...]
-- Davide Libenzi on lkml


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: can't install application to phone from local repository

2009-10-22 Thread Marius Gedminas
On Thu, Oct 22, 2009 at 02:04:38PM +0200, ibrahim wrote:
 Package: hello
...
 Section: base
...
  but the Application manager says that it couldn't download the 
 application : unable to download 'hello'. Application package not found.

The Application Manager lets the user install only those packages that
are in sections starting with user/.  It installs packages from other
sections only as dependencies for user/* packages.

The list of supported sections is in the wiki:
http://wiki.maemo.org/Maemo_packaging#Sections

HTH,
Marius Gedminas
-- 
Linux became only possible because 20 years of OS research was carefully
studied, analyzed, discussed and thrown away.
-- Ingo Molnar


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Optification breaks package on upgrade from non-optified older version

2009-10-16 Thread Marius Gedminas
On Fri, Oct 16, 2009 at 01:43:12AM +0300, Mikko Vartiainen wrote:
  What's the practical difference between upgrading and
  removing-then-reinstalling?  (It probably shows that I haven't read the
  maemo-optify and python apps thread.)  Maybe you could fix the upgrade
  problem by writing a suitable preinst script?
 
 I have noticed with upgrading from non optified packages to
 maemo-optified packages that directory links are not created.

I've read somewhere that dpkg is unable to replace directories with
symlinks.

 For example if I first have installed a package with a directory
 /usr/share/games/crimson and upgrade to a package which has optified
 directory /usr/share/games/crimson -
 /opt/maemo/usr/share/games/crimson, the link is not created because
 dpkg never removes /usr/share/games/crimson directory. Result is that
 I have empty /usr/share/games/crimson directory and all of it's
 content in /opt directory.

Perhaps a solution is to have maemo-optify keep the directory structure
in place and create symlinks only for regular files.

 I think it's a bug in dpkg or then we are just using it wrong.
 
 Workaround for this would be to remove the directory in preinst script
 or to install to another directory. But currently when all users are
 more or less beta testers I don't care about it.

Removing the directory is a bit scary: what if other packages have files
in it?  This is maybe not applicable to this particular example, but I
could imagine crimson-extra-levels or crimson-updated-sound-pack
putting stuff there.

Marius Gedminas
-- 
question = (to) ? be : !be; -- Shakespeare


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Optification breaks package on upgrade from non-optified older version

2009-10-15 Thread Marius Gedminas
On Thu, Oct 15, 2009 at 12:21:54PM +0200, Thomas Perl wrote:
 In the latest version of gPodder (written in Python), I have started
 using maemo-optify. It saves around 1 MB according to maemo-optify's
 output. The problem is that now when a user upgrades from an older
 version to this version, it breaks (the user cannot start the
 application from the icon, and starting it from the command line tells
 me that Python can't find the gpodder module).

That's a packaging bug, from the user's perspective.

 Uninstalling and re-installing the package fixes this problem, but I
 assume there will be lots of users upgrading from the current version
 in Extras (non-optified) to some optified version in the future, and
 they won't just try to uninstall and re-install it and assume that the
 application is at fault :/

 Is it possible to fix that problem somehow? Or should I just disable
 optification?

What's the practical difference between upgrading and
removing-then-reinstalling?  (It probably shows that I haven't read the
maemo-optify and python apps thread.)  Maybe you could fix the upgrade
problem by writing a suitable preinst script?

 Another problem is the slower startup speed, which is really
 noticeable now. That's another reason why I would like to go without
 optification.

Ouch.

Have you done any measurements?

Marius Gedminas
-- 
Bumper sticker: No radio - Already stolen.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mbarcode/maemo-barcode dialog oddity and progress report

2009-10-15 Thread Marius Gedminas
On Thu, Oct 15, 2009 at 09:42:40PM +0300, Jody Fanning wrote:
 On 15.10.2009 10:57, Simon Pickering wrote:
  Why is it necessary to do a webscrape of Amazon. Amazon has plenty
  of simple APIs for getting data freely and easily. The REST based ones
  are extremely simple and you get back an XML document with everything
  you need.
   
  It quite possibly isn't necessary, this is certainly not my area of
  expertise, just something I wanted to get working ASAP. When I looked at
  how to do this I found a mixture of web scraping tools and ones that use
  Amazon Web Services. AFAIK AWS requires that you register to obtain a
  key, and I'm not sure of the exact terms and conditions, but I presume
  they will not want me to share my key, but I may be wrong about this.
 
 I'm pretty sure you are able to share the key. I do have an AWS account 
 and have used it for my own stuff (in Java though). But all those 
 applications around must have a key embedded since they never ask you to 
 register yourself. There must be some other open source applications 
 around that fetch data from Amazon using AWS.

Calibre, for one.  The key is embedded right there in the sources.
I don't know if they're allowed to do that since I was too lazy to
actually read the AWS agreement.  (Shh! Don't tell anyone.)

I applied for an AWS key, got two (one called access key, the other
called secret access key), did some experiments with pyaws (a Python
library for accessing the AWS).  I couldn't get it to work with just the
AWS key, I needed to supply both.  I don't know how Calibre manages to
do its thing with just one key (or maybe it's broken now -- I couldn't
figure out the user interface and ran away screaming to invent my own
library management system).

 Amazon did make things a little more complicated a few months ago 
 though. All requests must be signed,

This might mean that Calibre was using old unsigned requests at the time
I looked at its source code.

 but they generally provide code 
 samples for how to do everything. One thing is to check the licensing of 
 the interfaces. There was something recently about different licensing 
 between mobile devices and other uses that came up with the iPhone. But 
 the advantage is that you won't have any problem with the page layout 
 breaking things. Plus their APIs provide pretty much every detail about 
 an item you could think of.

Marius Gedminas
-- 
Give a man a computer program and you give him a headache, but teach him to
program computers and you give him the power to create headaches for others for
the rest of his life...
-- R. B. Forest


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Uploading to Fremantle extras via Extras Assistant

2009-10-15 Thread Marius Gedminas
On Thu, Oct 15, 2009 at 10:59:05PM +0100, Aniello Del Sorbo wrote:
 uhm.. I've upgraded to Ubuntu 9.10 and I think I've lost my keys?
 
 (WARNING: Failed to sign .dsc and .changes file)
 
 But I am uploading via web interface, should not be an issue, should it?

No, signing is not needed for EA.

Can you upload the .changes file somewhere so we could take a look and
try to guess why Extras Assistant is unhappy?

One guess:

  I haven't changed anything and was working fine for fremantle-beta, do
  I have to do something?

Are you trying to re-upload the same .changes file you've already
uploaded once?  You can't do that, you need to increment the version
number and rebuild the source package.

Marius Gedminas
-- 
  (Pdb) operationerr.w_value.w_value.w_value.w_value.w_value.w_value
  pypy.interpreter.executioncontext.OperationError instance at 0x5eee30
 -- one of the clearer PyPy debugging sessions
(seen in Michael Hudson's sig)


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Screenshot as loading screen on Maemo 5

2009-10-14 Thread Marius Gedminas
On Wed, Oct 14, 2009 at 12:43:05PM +0400, Marat Radchenko wrote:
 What's the point looking fast when in practice it is slow? Can't you just
 fix your app so it starts up faster?

No cheating:

  1. click an app
  2. wait for app to appear
  3. app appears
  4. look at app screen, decide where you want to click
  5. click etc.

Time in step 2 is wasted and frustrating to the user

Cheating:

  1. click an app, get cached app screenshot
  2a. app starts up in the background
  2b. look at app screen, decide where you want to click
  3. click etc.
  4. wait until app finishes loading and reacts to the click

There is a possible wait in step 4, but it is usually shorter.  Win!

Marius Gedminas
-- 
HOST SYSTEM RESPONDING, PROBABLY UP...


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Maemo 5 Keymaps - The Saga of Pipe Tab

2009-10-14 Thread Marius Gedminas
On Wed, Oct 14, 2009 at 10:37:10PM +0200, Joaquim Rocha wrote:
 What hardware keyboard layout are you using at the moment? You can check
 this by going to the Settings-Text Input.
 
 You should be able to input extra characters by pressing Fn and then the
 Sym/Ctrl key. A dialog with extra characters pops up and all you need to
 do is tap on the desired one.
 
 Could this end your saga? :)

If I'm to type Lithuanian text, I need to be able to enter these
characters:

  ąčęėįšųūž
  ĄČĘĖĮŠŲŪŽ

There's no ogonek, dot above or macron in the Fn+Ctrl palette.

(BTW my preferred use for Fn+arrow keys would be to map them to
Home/End/PgUp/PgDn.  Tab on the on-screen toolbar is sufficient for
xterm use and I haven't missed it anywhere else, well, except for xchat.
Hm.  Fn+Enter?  Convince xchat to use the tab character entered from the
Fn+Ctrl popup for nick completion instead for inserting a literal ASCII
\t?)

Marius Gedminas
-- 
You can't have megalomania.  *I* have megalomania.
-- Joe Bednorz


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: ssh permission denied

2009-08-25 Thread Marius Gedminas
On Mon, Aug 24, 2009 at 10:10:55AM -0600, Jeffrey Barish wrote:
 Kees Jongenburger wrote:
  On Sun, Aug 23, 2009 at 9:27 PM, Jeffrey
  Barishjeff_bar...@earthlink.net wrote:
  There was an update to openssh recently.  Since installing it, I cannot
  ssh to the N800.
...
  try using ssh -v n810 to get more information about where is goes wrong
 
 Your suggestion to try ssh -v led me to debug mode for sshd:
 
 /etc/init.d/ssh stop
 /usr/sbin/sshd -d
 
 I discovered that user user was not allowed because account is locked.  
 /etc/passwd had ! as the password for user.  I changed it to *, at which 
 point I was able to ssh in.  It's hard to imagine what the openssh upgrade 
 did to create this problem.  Thanks for the response.

Thank you, you've just saved me from a painful evening of debugging.

Marius Gedminas
-- 
Hi. I'm the I love you .signature virus. You have been infected.
Please panic immediately.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to reload /etc/pointercal?

2009-02-17 Thread Marius Gedminas
On Mon, Feb 16, 2009 at 02:56:34PM +0800, Alex T. W. LEUNG wrote:
 Dear Marius,
 
 Can you kindly share the bug id to us?

Found it at last: https://bugs.maemo.org/show_bug.cgi?id=1728 

 -Original Message-
 From: maemo-developers-boun...@maemo.org
 [mailto:maemo-developers-boun...@maemo.org] On Behalf Of Marius Gedminas
 Sent: Monday, February 16, 2009 2:51 PM
 To: maemo-developers@maemo.org
 Subject: Re: how to reload /etc/pointercal?
 
 
 At one point you needed to reboot after performing a calibration for
 changes to be noticed.  There was a bug in Bugzilla that was closed at
 some point, so I assume now there's a way to get it to reload without
 rebooting, but I don't know what it is 

Some people (myself included) frown at top-posting.

Marius Gedminas
-- 
The typewriter was invented by Hungarian immigrant Qwert Yuiop, who left his
signature on the keyboard.
-- Kim


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to reload /etc/pointercal?

2009-02-15 Thread Marius Gedminas
Well, it doesn't seem that there's an answer forthcoming to this...

On Thu, Jan 29, 2009 at 01:05:19PM +0800, Alex T. W. LEUNG wrote:
 Hi maemo developers,
  
 I would like to ask questions about the internal of ts_calibrate.
  
 After the touch screen calibration, it will update /etc/pointercal. Now,
 it seems Xomap needs to reload that file. My question is, how to notify
 Xomap to reload /etc/pointercal? Any command line tools that may do this
 job?

At one point you needed to reboot after performing a calibration for
changes to be noticed.  There was a bug in Bugzilla that was closed at
some point, so I assume now there's a way to get it to reload without
rebooting, but I don't know what it is 

Marius Gedminas
-- 
It's possible to describe anything in mathematical notation. I recall seeing
some paper once in which someone had created a mathematical description of C.
(I forget whether or not this included the preprocessor.) As an achievement,
this is somewhat like building a full-size model of the Eiffel Tower out of
tongue depressors. It's clearly not the act of a talentless man, but you have
to wonder what he said when he applied for his grant.
-- Mencius Moldbug


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: multiple SDKs on the same sbox

2009-02-15 Thread Marius Gedminas
On Sun, Feb 15, 2009 at 05:17:12PM -0800, Daniel Monteiro wrote:
 Hello folks, 
 long time since my last email here. I've been silently developing my
 games for Maemo,but now here I am with a new question regarding
 Freemantle:
 
 Can I have Freemantle and Gregalle in the same sbox?

This used to work with older SDK versions, see
http://inz.fi/blog/2007/10/22/multi-target-development-for-maemo/

I haven't tried Fremantle yet.

Marius Gedminas
-- 
Think different? I'd be happy if most people would just think...


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: scratchbox ide

2009-01-24 Thread Marius Gedminas
On Fri, Jan 23, 2009 at 12:34:39PM -0600, Frank Banul wrote:
 I use vi. I have not had the pleasure of learning Emacs. For my
 understanding, is it possible to define a list of files or directories in a
 project and then search for instances of used variables and how they are
 used? Same question for functions.

GNU id-utils is great for that.  Run mkid to build a keyword database,
use gid/lid on the command line for searching.  This integrates with
vim's built-in :grep facility, see :help quickfix.txt, section 5.4
Using :grep with id-utils.

ctags is the complement to that: it finds definitions rather than uses.
See :help tags.

I've been told that cscope can do the same thing (find both definitions
and uses), but I'm not personally familiar with it.

 I did a quick google search and didn't
 find either of these capabilities illustrated. I see color syntax support. I
 know vi has auto indentation and I assume emacs does as well but can they go
 as far as selecting blocks of code and auto indent?

Absolutely.  '=' is the vim command for reindentation, and it works in
visual mode. I don't know about Emacs (tab reindents the current line;
I've never figured out how to reindent larger blocks -- I only ever use
Emacs when pair-programming with an Emacs user).

Another killer feature of both vim/emacs is keyword completion: start typing
a name, then hit a key to complete it, from the corpus of all the names
used in the current file/included files/the whole project (if you've
built a ctags db).  Sort of a dumb, but lightning-quick IntelliSense.
(vim also has smart autocompletion, called omnicomplete, but I rarely
use that -- Python programs are *very* hard to statically analyze).

Marius Gedminas
-- 
One picture is worth 128K words.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: scratchbox ide

2009-01-23 Thread Marius Gedminas
On Tue, Jan 20, 2009 at 10:46:23PM +0200, Felipe Contreras wrote:
 On Tue, Jan 20, 2009 at 9:41 PM, Neil Jerram neiljer...@googlemail.com 
 wrote:
  2009/1/20 Frank Banul frank.ba...@gmail.com:
 
  I'm curious what development tools you use? Textedit is nice and all but 
  I'm
  sure that there are better tools. I would be interested in an editor that
  supported more code oriented tasks. Any suggestions?
 
  Emacs?  I have pretty extensive code-oriented needs, and it meets all
  of those (and more).
 
 And vim :)

Vim and Emacs are incredibly great, if you're willing to invest the time
in learning to use them well (a couple of days for basic tasks, weeks
for real proficiency, and then you'll still be learning new tricks for
years).  It'll pay off in the end, if you do a lot of coding (or other
kinds of text editing).  It's sort of like learning to touch-type.

Marius Gedminas
-- 
Those who can't write, write manuals.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N810 WE

2009-01-18 Thread Marius Gedminas
On Thu, Jan 15, 2009 at 04:46:28PM -0500, John Holmblad wrote:
 Andrew,
 
 thanks for sharing that link.
 
 The point about Samba support being dropped after recently being added 
 makes me wonder what is going on here.

Wait, what's this about Samba being dropped?

Marius Gedminas
-- 
Hoping the problem  magically goes away  by ignoring it is the microsoft
approach to programming and should never be allowed.
-- Linus Torvalds


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: gtkmozembed: why kill itself in destructor?

2009-01-14 Thread Marius Gedminas
On Wed, Jan 14, 2009 at 02:27:04PM +0200, Eero Tamminen wrote:
 ext Zhihai Wang wrote:
  Deal all,
  
  In EmbedPrivate.cpp,
  
  EmbedPrivate::~EmbedPrivate()
  {
sWindowList-RemoveElement(this);
sWidgetCount--;
mNeedFav = PR_FALSE;
if (mProgress)
  mProgress-Shutdown();
if (mEventListener)
  mEventListener-Shutdown();
mOwningWidget = nsnull;
if (sWidgetCount) return;
gboolean bval = FALSE;
if (gtk_moz_embed_common_get_pref
  (G_TYPE_BOOLEAN,gtkmozembed.no_destroy_on_last_window, bval)  bval)
  return;
int pid = getpid();
EmbedCommon::DeleteInstance();
EmbedGlobalHistory::DeleteInstance();
kill (pid, SIGUSR1);
kill (pid, SIGKILL);
  }
  
  Why shall we kill pid in the end? Can't the program exit normally?
 
 AFAIK it can be quite a bit faster.
 
 Normal process exit goes through a lot of destructor code,
 freeing things that are anyway freed by the operating system
 when process terminates.  Browser is threaded, so maybe that
 the destructors use locking too...

That's what the _exit() function from unistd.h is for, isn't it?

Marius Gedminas
-- 
Don't trust a statistic you haven't faked yourself.
-- Seen in another posting by Markus Kuhn


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: xterm cant escape so my cursor is homeless (echo -e \033[H)

2009-01-01 Thread Marius Gedminas
On Wed, Dec 31, 2008 at 07:11:48AM -0600, tz wrote:
 I just tried to do some basic cursor movement using ansi sequences,
 but they don't work in the standard xterm. I know vim and other
 things work but they may be using the panels or some other library.
 Is this just not implemented, or does it use something completely non
 ANSI/VTxx?

It is essentially the same as GNOME Terminal, which is more or less
xterm-compatible.

What exactly did you try?  echo -e '\033[H' makes the cursor jump to the
top-left when I try it.

Marius Gedminas
-- 
If con is the opposite of pro, then what is the opposite of progress?


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does Apple's Bonjour work on Maemo?

2008-12-18 Thread Marius Gedminas
On Wed, Dec 17, 2008 at 01:45:05PM +0200, Shengye Lu wrote:
 I tried to cross-compile a service-discovery enabled application,
 which depends on Apple's mDNSResponder library. My question is: is it
 possible to cross-compile mDNSResponder library in scratchbox, and
 make Apple's service-discovery mechanism work on Maemo?
 
 My own experience is: compiling mDNSResponder library need root
 permission, but in scratchbox, we have no real root permission. So my
 cross-compiling mDNSResponder library in scratchbox failed.

There's always fakeroot.

Avahi has been compiled for Maemo, and AFAIK it has a mDNSResponder
compatibility layer.  IIRC Avahi may be included in the next Maemo
version (Freemantle), so I'd recommend looking into it.

Marius Gedminas
-- 
   TCP_SeqNum - The 32-bit Sequence Number, encoded as an ASCII string
  representing the hex value of the Sequence number.  This field
  MUST be sent as lower case because it is not urgent.
-- RFC 3093


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Needing help with dead unit.

2008-10-30 Thread Marius Gedminas
On Wed, Oct 29, 2008 at 05:43:11PM +0100, [EMAIL PROTECTED] wrote:
 On Wed, Oct 29, 2008 at 09:00:20AM -0700, Tim Ashman wrote:
  On Wednesday 29 October 2008 08:30:51 am Ryan Abel wrote:
   Did you go to the correct page for your unit?
  
  I did, not only that when I was on the phone with tech support I asked him 
  to 
  check my ID number and he told me it was invalid...  But offered no way and 
  I 
  asked how I could straighten this out.  he asked me where I purchased it, I 
  offered to send him a jpg of the unit showing the sticker, etc.  Nothing 
  not 
  interested in really helping me.
 
 The clock issue seems to be known:
 http://www.internettablettalk.com/forums/showthread.php?t=14362
 
 Your wrong ID number is really puzzling though. If i remember
 correctly your ID is the mac address of your tablet network interface
 (without the :).
 
 You can get this value by launching /sbin/ifconfig on a terminal when
 the wifi network is available.

Or /sbin/ifconfig -a even when wifi is down.  Or Control Panel -
Device - About.  But any of those is hard to do when the device won't
boot, so the sticker on the box is the only way.

 Be sure you try to download a n810 firmware with a n810 mac address, or
 a n800 firmware with a n800 mac address.

That is the most likely explanation.  If you go to the page for the
wrong model, it will reject valid IDs with the invalid ID message.

Marius Gedminas
-- 
Lisp-style macros [...] are to C-style macros what Emacs is to cat.
-- Jacek Generowicz


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Adding basic Maemo apps on Hildon Application Framework

2008-10-28 Thread Marius Gedminas
On Mon, Oct 27, 2008 at 08:09:42PM +0100, piotr maliński wrote:
 I've installed Scratchbox and Maemo SDK, I've installed a x86 target
 with all packages. The Hildon Application Framework works in Xephyr
 but it's empty - no apps.
 
 What packages I have to install to get basic apps under HAF? like a
 browser or terminal?

I haven't used Scracthbox for GUI testing for a long time, but in older
SDK versions the terminal app was preinstalled.

You cannot get any of the closed Nokia apps (such as browser, file
manager, pdf reader, media player etc.) in Scratchbox.

Marius Gedminas
-- 
Those parts of the system that you can hit with a hammer (not advised)
are called hardware; those program instructions that you can only curse
at are called software.
-- Levitating Trains and Kamikaze Genes: Technological
   Literacy for the 1990's.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: python gtkhtml problem

2008-10-23 Thread Marius Gedminas
On Wed, Oct 22, 2008 at 11:15:19PM +0200, Nyul Zoltán wrote:
 I have problem with import gtkhtml in python. I'm getting this:
 
 Traceback (most recent call last):
 File simple-browser.py, line 1, in ?
 import gtkhtml2
 ImportError: No module named gtkhtml2
 
 I have scratchbox 4.0.1 and maemo-sdk 4.1
 I installed python2.5-sdk, python2.5-gtk2,python2.5-gtk2-dev, 
 python-gtkhtml2, 
 python2.5-gnome, python2.5-gnome2, python2.5-gnome2-extras, python2.5-gnome2-
 extras-dev
 
 Why python can't find gtkhtml? 

Could it be that you're using the wrong python?  If you run 'python' in
Scratchbox, I believe you'll get python2.3 that came with Scratchbox
rather than 2.5 that you installed all those extra packages for.  You
need to run 'python2.5' explicitly.

HTH,
Marius Gedminas
-- 
As an aside, UPnP's implementation (which features SOAP, HTTP over
multicast/broadcast UDP, and extremely odd XML) is a must-read for fans of
unnatural and baroque network protocols.
-- Anthony Baxter


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: RE: Integration with hildon desktop

2008-10-01 Thread Marius Gedminas
On Wed, Oct 01, 2008 at 09:00:42AM -0600, Jeffrey Barish wrote:
 Matan Ziv-Av wrote:
  
  Just to be on the safe side - put a 64x64 icon in scalable/ as well. A
  lot of applications only have scalable and 26x26 icons, and that seems
  to work fine.
 
 Thanks for the suggestion.  I copied the icon in the 26x26 directory to the
 scalable directory.  I still get the default icon on the navigator bar.
 
 It still seems likely that I have something wrong in my .desktop file.  Here
 is what it contains.  Perhaps someone will notice something.

I don't see anything, but I remember problems caused by trailing spaces
in this file.  There don't seem to be any, but maybe they got lost
during the copy  paste into the email.

 [Desktop Entry]
 Encoding=UTF-8
 Name=My_application
 GenericName=My_application
 Exec=/usr/bin/my_application.sh
 Type=Application
 X-Icon-path=/usr/share/icons
 Icon=my_application
 X-Window-Icon=my_application
 X-HildonDesk-ShowInToolbar=true
 X-Osso-Service=my_application
 X-Osso-Type=application/x-executable

Marius Gedminas
-- 
Anybody who doesn't cut his speed at the sight of a police car is
probably parked.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Log-in to scratch-box without using password.

2008-09-26 Thread Marius Gedminas
On Fri, Sep 26, 2008 at 03:23:18PM +0530, atul raut wrote:
 How to login to Scrach-box without 
 password is there any way ?

When I run sb-login, I'm never asked for a password.

Marius Gedminas
-- 
Hanlon's Razor:
Never attribute to malice that which is adequately explained
by stupidity.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Packaging changes to base system.

2008-09-23 Thread Marius Gedminas
On Tue, Sep 23, 2008 at 07:34:28PM +0300, Matan Ziv-Av wrote:
 
 Hello,
 
 1. The iptables package that is installed is missing a few .so files 
 (MASQUERADE, DNAT, etc.). With a few changes to the files in debian/ 
 directory of the source package, it now also generates a new package 
 iptables-ext, which includes those missing files. The question is how to 
 distribute this: Is it acceptable to upload this to extras-devel (using 
 the autobuilder) even though this creates the same package as in the 
 base system? And should I increase the release number (which will cause 
 problems with osso-software-version) or use the same?

I believe the application installer won't allow you to replace a base
package with a version from a different repository.

Can you package just the missing files in the iptables-ext, so it would
coexist with the base package?

 2. In order to language name in input setting dialog, rather than empty 
 parentheses, the language needs to appear in the binary files in the 
 directory /usr/share/i18n-locale-resolver/, provided by the package 
 (with no source) locale-resolver-data. I wrote a small program to 
 generate those files from a source file. The package I created now 
 includes those files with different names and the postinst script to 
 rename them, since otherwise it will conflict with the original package 
 (again, required by osso-software-version). Is there a better way to 
 achieve this?

Yes, it's called dpkg-divert.
http://www.debian.org/doc/debian-policy/ap-pkg-diversions.html

Marius Gedminas
-- 
As an aside, UPnP's implementation (which features SOAP, HTTP over
multicast/broadcast UDP, and extremely odd XML) is a must-read for fans of
unnatural and baroque network protocols.
-- Anthony Baxter


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Provisional results of the Maemo Community Council elections

2008-09-11 Thread Marius Gedminas
On Thu, Sep 11, 2008 at 11:57:42AM +0200, Aniello Del Sorbo wrote:
 Congratulations :)
 
 I like it, the one I voted is in there. He won't betray me, will it? :)

It?  Have we got ROBOTS masquerading as humans among our council?

:-)

Marius Gedminas
-- 
All those who believe in psychokinesis raise my hand.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Maemo locales

2008-08-29 Thread Marius Gedminas
On Sun, Aug 10, 2008 at 09:00:30PM +, Danny Milosavljevic wrote:
 is there an (official) document somewhere describing which locales and 
 charmaps are available on Maemo? (Especially details on UTF-8 support)

Hm, no replies to this one for almost a month?  Let me try.

You can find a list of available locales and charmaps by opening a
terminal and running locale -a and locale -m respectively.

UTF-8 support is pervasive; in fact only UTF-8 locales are available.

Marius Gedminas
-- 
If it weren't for the last minute, nothing would ever get done.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: hildon_file_chooser_dialog_new() can not get the wanted files

2008-08-26 Thread Marius Gedminas
On Tue, Aug 26, 2008 at 02:49:52PM +0300, learning maemo wrote:
 I use the function  hildon_file_chooser_dialog_new() to choose and
 open files. But I can not get the correct folders and file names.
 
 For example,
 
 I just got two folders: Nokia N800 and bluetooth. 
 
 I hope to get the file MyDocs/*.*. If possible, how can I get it?

These should all appear under the Nokia N800 entry, if you expand it.

Marius Gedminas
-- 
Suppose you went back to Ada Lovelace and asked her the difference between a
script and a program. She'd probably look at you funny, then say something
like: Well, a script is what you give the actors, but a program is what you
give the audience.
-- Larry Wall


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: PowerVR MBX driver for Maemo?

2008-07-31 Thread Marius Gedminas
On Fri, Aug 01, 2008 at 12:18:10AM +0900, KwangYul Seo wrote:
 After deparately looking for OpenGL ES driver for Maemo, I've found
 that Nokia does not provide the PowerVR MBX driver for OpenGL ES 1.1
 for some reasons.
 
 https://bugs.maemo.org/show_bug.cgi?id=1028
 
 It says that this does not mean that Nokia won't support OpenGL ES
 forever. Is there any schedule on this?

No.

 When can I create OpenGL
 applications on Maemo?

Never.

Well, maybe when Nokia releases a N900 based on different hardware, but
don't hold your breath.  3D is not a requirement for the tablet's use
case, which is web browsing.

HTH,
Marius Gedminas
-- 
...the only place for 63,000 bugs is a rain forest


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: WM and bad position and size of non hildon apps.

2008-07-22 Thread Marius Gedminas
On Tue, Jul 22, 2008 at 02:47:03PM +0300, Antonio Aloisio wrote:
 This morning I was thinking about the wrong position on the screen of
 the non hildon applications.
 Eg: http://qt4.garage.maemo.org/screenshots/1.png

What do you mean by wrong position?  The white bar between the title
and menu bars?  It's drawn by the theme engine, as far as I know, and
it's supposed to be there.

Marius Gedminas
-- 
If nothing else helps, read the documentation.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: documentation in .deb packages

2008-07-21 Thread Marius Gedminas
On Tue, Jul 22, 2008 at 02:10:26AM +0400, Andrew Zabolotny wrote:
 I'm trying to understand the machinery that automatically removes the
 documentation file when installing them on tablet.

apt-cache show docpurge
cat /etc/apt/apt.conf.d/99-docpurge
cat /usr/sbin/docpurge

 So far my packages
 install a few files in /usr/share/doc/${pkg}/ and for some reason they
 are not autoremoved.

Did you use apt to install them, or did you use dpkg directly?

 Some more complex packages also have documentation inside the .deb
 file, but at some point it is removed, although I don't get at which
 (install-docs in postinst it seems?)

Later.  After apt-get finishes its work, it calls docpurge.  If you
don't use apt-get, docpurge is never called, hence my question about
calling dpkg directly.

 Can somebody explain how this works and what I should put in the .rules
 to generate the correct postinst hooks.

You don't need to do anything.

 Sure, I can just remove dh_installchangelogs  dh_installdocs and there
 simply won't be any docs in the .deb. However, it's a matter of
 principle :-)

If you're building a package specifically for Maemo, then by all means
remove the docs from the deb!  You'll reduce the download size, and
save some flash memory from wearing out sooner.

HTH,
Marius Gedminas
-- 
The last good thing written in C was Franz Schubert's Symphony #9.
-- Erwin Dietrich


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Problem to setup an icon to an application

2008-07-03 Thread Marius Gedminas
On Thu, Jul 03, 2008 at 03:32:19PM +0200, Torello Querci wrote:
 I try to set an icon file to a my application. The program seem to run
 fine without error on console but the icon still the same, the generic
 application icon setup by default.
 
 This is a sample file taken from maemo tutorial where I add the
 
   gtk_window_set_icon_from_file(window,icona.ico,NULL);

Is the .ico format even supported by Gtk+?  Usually people use .png.

I strongly suspect the relative pathname is not going to work.  You
should pass an absolute filename, such as /usr/share/myapp/icon.png.

Also, I believe the window manager in Maemo (matchbox) wants to
determine the icon from the .desktop file corresponding to your app,
rather than from the _NET_WM_ICON property that
gtk_window_set_icon_from_file.

Now you have three things to check, any of which could be the cause why
your icon is missing.

Marius Gedminas
-- 
C is for Cookies.  Perl is even better for Cookies.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Modest/TinyMail problems (continue from the blog comments)

2008-06-30 Thread Marius Gedminas
On Sun, Jun 29, 2008 at 05:23:29PM +0200, Luca Olivetti wrote:
 En/na Philip Van Hoof ha escrit:
 
  So I can only recommend checking out the code and trying to implement
  them.
 
 No, I won't, for 2 simple reasons: 1) I'm not a C/C++ coder (I can make 
 the occasional patch if there's no other way, but I really hate those 
 languages) and 2) I already can use a program that already does what I want.

Out of curiosity, what is the program that can deal with 26,000-message
folders and runs on the Internet Tablets?

Regards,
Marius Gedminas
-- 
But perhaps ISO's central secretariat follows just the common industry
practice pioneered by Microsoft: We will get it right in the third
release.
-- Markus Kuhn on ISO 10646 PDF CD-ROM edition


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: bugs.maemo.org minor feature update

2008-06-30 Thread Marius Gedminas
On Sat, Jun 28, 2008 at 11:40:57PM +0200, Karsten Bräckelmann wrote:
 Just a quick note, that some custom features have been implemented in
 bugs.maemo.org. Most notably bug 2035 [1] and bug 3158 [2]. In a
 nutshell, some roles and the reporter are now indicated for each
 comment. Also, the original report now holds the same meta information.

Nice!

Marius Gedminas
-- 
The gates in my computer are AND, OR and NOT; they are not Bill.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: More autobuilder problems (armel only)

2008-06-30 Thread Marius Gedminas
On Mon, Jun 30, 2008 at 08:08:37PM +0100, Andrew Flegg wrote:
 On Mon, Jun 30, 2008 at 12:14 PM, Ed Bartosh [EMAIL PROTECTED] wrote:
  On Sun, 2008-06-29 at 15:57 +0100, ext Andrew Flegg wrote:
 
  I'm /fairly/ certain it's not related: an earlier build also failed,
  without generating a 28MB summary.
 
  Can you point me out to the initial sources, please?
  I'll look what's the issue there.
 
 https://garage.maemo.org/builder/diablo/vim_7.0/sources/

It looks like a native Debian package (i.e. the debian/ thing is inside
the tarball).  How hard would it be to get mud-builder produce
non-native Debian packages (i.e. .orig.tar.gz + .diff.gz + .dsc)?

Marius Gedminas
-- 
My mail reader can beat up your mail reader.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: More autobuilder problems (armel only)

2008-06-30 Thread Marius Gedminas
On Mon, Jun 30, 2008 at 08:18:41PM +0100, Andrew Flegg wrote:
 On Mon, Jun 30, 2008 at 8:11 PM, Marius Gedminas [EMAIL PROTECTED] wrote:
  On Mon, Jun 30, 2008 at 08:08:37PM +0100, Andrew Flegg wrote:
 
  https://garage.maemo.org/builder/diablo/vim_7.0/sources/
 
  It looks like a native Debian package (i.e. the debian/ thing is inside
  the tarball).  How hard would it be to get mud-builder produce
  non-native Debian packages (i.e. .orig.tar.gz + .diff.gz + .dsc)?
 
 It /should/ be relatively trivial. I'm not sure, OTTOMH, whether it'd
 need any cleverness to handle upstream Debian sources which will
 already have a .diff.gz and then may have further Maemo patches.

Hm.  This is slowly drifting into the let's just use a Distributed
Version Control System territory.

 Apart from being slightly more consistent with the Debian way, I
 suppose the key advantage is that it's potentially easier for someone
 to try and apply the .diff.gz to a different upstream source if the
 original maintainer gets hit by a bus?

Or is just busy/on vacation.

I also think that having a Maemo diff would make porting to new Maemo
versions easier: you get to see all the places that needed
Maemo-specific modifications.  Hm.  Suddenly I'm not sure there are any
advantages over just trying to rebuild the already-patched source tree,
and fixing errors on the go.

 Any other reason I'm missing?

The other reason (at least for Debian) is that when you fix packaging
bugs, you only need to upload the .diff.gz and therefore save bandwidth.
I don't know if this is currently applicable to Maemo, but if supported,
it would help people with low bandwidth trying to debug package build
problems on the autobuilder.

Marius Gedminas
-- 
To err is human, but to really foul things up requires a computer.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Too many categories in Application Manager

2008-06-28 Thread Marius Gedminas
On Sat, Jun 28, 2008 at 10:51:01AM +0100, Andrew Flegg wrote:
 On Fri, Jun 27, 2008 at 9:59 PM, Ryan Abel [EMAIL PROTECTED] wrote:
 
  [RFC] Maemo package guidelines: mandatory categories here:
  http://www.gossamer-threads.com/lists/maemo/developers/36089
 
 Did we ever come to a consensus on whether command-line packages
 should be in user/, and - if so - what suffix?

I've personally decided that yes, they should (I don't want to have to
gain root just so that I could install ping, less or vim).

I don't know about the suffix.  Something like Terminal Applications
or Applications for Terminal might look good in the Application
manager and by referring to the built-in Terminal app hopefully give the
right impression to users not familiar with Linux.

 I've uploaded vim to diablo-extras-builder (building now) -

Yay!  Good!

 but
 there's no GUI. Probably for something like that it should try opening
 a terminal running vim, I suppose.

Vim is a special case: there's a GUI version (only it wasn't ported for Maemo)
that would make perfect sense for a menu item.

But what about something like ping or less?  Having these in the
task navigator menu makes no sense whatsoever, while having them in an
advanced corner of non-root-requiring installable packages makes perfect
sense.

 But what about other stuff, like bsdgames? Leave out of user so
 normal users don't get confused?

I wouldn't mind an option '[ ] Show command-line applications' in the
app manger.  I don't think red-pill is that option: I never want to see
libraries and other supporting packages in the app manager's list.  In
other words, having that option would mean a change in the packaging
infrastructure (is user/cmdline/foo a valid section name?)

 TBH, I think this is symptomatic of design flaws in App Manager: I
 almost always use all - which gives a lot of noise, but at least it
 means I can see what packages are available.

I don't think the flaw is in the App Manager as much as it's a flaw in
the packages, or perhaps the Maemo packaging guidelines.  I remember
looking at the list of the official categories and not finding
anything that fit my purposes.

Marius Gedminas
-- 
 I'm not sure what makes a given poem 'modern'...

Well, one characteristic sometimes found is... to put it politely...
creative typography.  Very creative typography.
-- Henry Spencer on the chores of typesetting modern poetry


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: (update2) Is array implemented in bash ...?

2008-06-27 Thread Marius Gedminas
On Fri, Jun 27, 2008 at 07:06:32PM +, Darius Jack wrote:
 update2
 
 (I do hope you don't get it htmlized, as Rich Text is disabled)
 
 Installed bash, run bash in busybox

I'm not sure I understand what you mean run bash in busybox.  Did you
mean scratchbox?

 code works fine from terminal
 unfortunately
 trying to run shell file, file.sh

How exactly are you running it?

  $ ./file.sh

should work if file starts with #!/bin/bash

  $ bash file.sh

should work always, and

  $ sh file.sh

will use ash to run file.sh.

 it is still run by ash shell (not removed yet, as some claimed it may
 crash a system)
 
 so arrays don't work
 
 #!/bin/bash
 doesn't work

Could you be more specific?  Do you get a No such file error, or do
you get errors you usually see when file.sh is executed by ash?

Marius Gedminas
-- 
Cool. Does it also recode ISO10646-1 pcf files into the funny
permutations and subsets used a long time ago in a galaxy far far away
on the planets Isolatinus XV and Koiruski VIII ...
-- Markus Kuhn inquires about libXft


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Modest/TinyMail problems (continue from the blog comments)

2008-06-25 Thread Marius Gedminas
On Wed, Jun 25, 2008 at 12:31:28AM +0200, Philip Van Hoof wrote:
 On Wed, 2008-06-25 at 00:57 +0300, Marius Gedminas wrote:
  On Tue, Jun 24, 2008 at 11:24:24PM +0200, Andrea Grandi wrote:
   I continue here a discussion you can find in this post:
   http://pvanhoof.be/blog/index.php/2008/06/24/big-day-for-modest-and-tinymail
   (Just read the comments).
  snip
   Please let me know what do you think about it.
  
  I want all the messages, and I want them in threaded view.  I believe
  Modest does the former, but not the latter.

FWIW it's not that I want it very badly (hey, I still use ssh + mutt
from my tablet more often than I use Modest), but Andrea asked for an
opinion poll and I replied.

I honestly didn't expect a reply from the Tinymail author.  :-)

 I'm also not convinced that a device with such a small screen could
 provide a useful view when threaded.

It's not the tree structure that's important, it's grouping of messages
by thread.  I receive multiple mailing lists into a single inbox, and
then it's hard to keep track of an interesting discussion when multiple
threads from multiple lists are all intermixed in date order.

I believe GMail does this (collapses the thread into a conversation,
but doesn't show the tree structure).

 I think grouping E-mails together based on discussion, so basically a
 one-level Tree instead of a multi-threaded threaded view with each reply
 recursively going deeper ... I believe that makes a lot more sense.

Right.  I'd even say the tree is not needed at all, just keep messages
belonging to the same thread together.

 Also if it's a tablet that you are unlikely going to be using for
 handling more than ten mails per day and that functions as your
 secondary E-mail client (your primary is either KMail, Evolution,
 Outlook or Thunderbird, right?).

Mutt.  And yes, I use Modest to check for new interesting emails rather
than deal with all the incoming stream.

 Anyway, join Tinymail's mailing list if you want to discuss the service-
 side of the story. The UI side is always going to be a Modest's team
 decision. Best way to ping those people is to make a bug for Maemo in
 the product Mail or Modest (I forgot which is being used atm).

Last time I looked they used the Garage bug tracker.  Now I see a Modest
component in bugzilla.  And hey, my wish is there already:
https://bugs.maemo.org/show_bug.cgi?id=2674

Marius Gedminas
-- 
Favorite MS-DOS error message: Drive C: not ready, close door.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Modest/TinyMail problems (continue from the blog comments)

2008-06-25 Thread Marius Gedminas
On Wed, Jun 25, 2008 at 11:25:18AM +0200, Philip Van Hoof wrote:
 On Wed, 2008-06-25 at 10:48 +0200, Luca Olivetti wrote:
  I'm currently tunneling imap through ssh with compression enabled.
 
 That's a good temporary solution indeed. Note that your SSL layer might
 already do compression, in which case the SSH tunnel will just add
 latency to your connection.

I like SSH tunnels for my IMAP connections because (1) I don't have to
set up an externally-visible IMAPS port, and (2) I can use SSH key
authentication (and therefore ssh-agent) instead of a username/password
pair for IMAP.  For (2) you need support from your IMAP client
(offlineimap, fetchmail and one of the three popular desktop ones --
Evolution/Thunderbird/Sylpheed -- support it).

I hadn't yet thought about the possibilities of compression and the
disadvantages of latency.

Marius Gedminas
-- 
Bumper sticker: Alcohol and calculus don't mix.  Never drink and derive.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Installing xulrunner on N810

2008-06-24 Thread Marius Gedminas
On Tue, Jun 24, 2008 at 09:08:21AM +0530, jitender singh wrote:
  I have done the same as stated in
  http://blog.mozilla.com/blassey/2008/03/17/maemo-buildbot/
  to install xulrunner on myN810 OS2008, except that i extracted
  xulrunner  in /media/mmc2/, because i don't have much space in  /opt.
 
  This doesn't work  when i tried to run  mybrowser-0.2.2.xulapp
  application.

/media/mmc2 is mounted with noexec, so you cannot run applications from
it.

mount -o remount,exec /media/mmc2 as root should solve that
(temporarily, until next reboot).

Marius Gedminas
-- 
Any sufficiently advanced magic is indistinguishable from technology.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Modest/TinyMail problems (continue from the blog comments)

2008-06-24 Thread Marius Gedminas
On Tue, Jun 24, 2008 at 11:24:24PM +0200, Andrea Grandi wrote:
 I continue here a discussion you can find in this post:
 http://pvanhoof.be/blog/index.php/2008/06/24/big-day-for-modest-and-tinymail
 (Just read the comments).
snip
 Please let me know what do you think about it.

I want all the messages, and I want them in threaded view.  I believe
Modest does the former, but not the latter.

HTH,
Marius Gedminas
-- 
No proper program contains an indication which as an operator-applied
occurrence identifies an operator-defining occurrence which as an
indication-applied occurrence identifies an indication-defining occurrence
different from the one identified by the given indication as an
indication-applied occurrence.
-- ALGOL 68 Report


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: key press/release behavior of the Menu key

2008-06-19 Thread Marius Gedminas
On Wed, Jun 18, 2008 at 10:03:55PM -0400, Andrew Barr wrote:
 I have noticed something strange when playing with Xomap under GPE on my
 N800 tablet (Angstrom distribution on an SD card). All keys except the
 Menu key behave as one might expect, sending a KeyPress and KeyRelease
 event when that event occurs. Menu sends both at once when the button is
 depressed and nothing is sent on key-up. Can someone comment on this
 behavior, if it's not a fluke of my software environment?

This doesn't happen on my N810.  I get the KeyRelease event when I
release the key.

Marius Gedminas
-- 
I am Lalo of deB-org. You will be freed. Resistance is futile.
-- from the sig of Lalo Martins


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: scratchbox2 environment

2008-06-19 Thread Marius Gedminas
On Thu, Jun 19, 2008 at 01:41:16PM -0700, Joshua Layne wrote:
 I have gotten a sb2 environment set up on my debian etch machine by half
 upgrading it to lenny (testing) where necessary.
 
 sb2 seems to mostly work, but I cannot actually install anything using
 apt-get.  When I run apt-get update, apt-get upgrade, I get the following:
 
 /bin/sh: line 1: /usr/sbin/dpkg-preconfigure: No such file or directory

This is harmless.

 dpkg: requested operation requires superuser privilege

This is not, but the fix is simple: you need to run apt-get under fakeroot.

Marius Gedminas
-- 
QOTD:
A child of 5 could understand this!  Fetch me a child of 5.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N800 as a home automation/monitoring remote

2008-06-18 Thread Marius Gedminas
On Wed, Jun 18, 2008 at 12:15:40PM +0100, Mike Ferguson wrote:
 I think I'd like to try to use my N800 as a remote terminal for home
 automation/monitoring and would like some advice about whether I'm
 thinking along the right lines.

I saw this demoed at the Linux-MCE booth during LinuxTag 2008.

http://www.linuxmce.org/
http://wiki.linuxmce.org/index.php/Nokia_N800

 Is anyone aware of a similar project that I can borrow ideas from?

See above.

Regards,
Marius Gedminas
-- 
...the only place for 63,000 bugs is a rain forest


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Garage Misconfiguration?

2008-06-18 Thread Marius Gedminas
On Wed, Jun 18, 2008 at 11:56:52AM -0400, Andrew Barr wrote:
 Is anyone else being spammed by garage.maemo.org with the same message
 saying logo contest is now open? I seem to be getting a new one of
 these in my inbox about every thirty minutes.

I only got four copies so far.

Marius Gedminas
-- 
I want patience, and I WANT IT NOW!


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Portrait Maemo app

2008-06-12 Thread Marius Gedminas
On Thu, Jun 12, 2008 at 05:36:02PM +0100, David Greaves wrote:
 I think my discomfort comes from the weak run-time type checking and the 
 verbiage...
   check.set_active(TRUE);
 seems so much less error prone; especially for people who have to pick up this
 new toolkit (and that's got to be important for attracting developers to Maemo
 and making their early experience pleasant).
 
 I mentioned gtkmm (hopefully not a sensitive topic) a moment ago - what are
 peoples thoughts on that?

Vala is very interesting to me because (1) it's a high-level language
that is (2) compiled to C.  You ought to get all the benefits of, say,
PyGtk (high-levelness, intuitive syntax, no repetetive mucking around
with typecasts) without the disadvantages (high memory usage).

Marius Gedminas
-- 
Beware of bugs in the above code; I have only proved it correct, not tried it.
-- Donald Knuth


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Maemo on Nokia N810

2008-06-11 Thread Marius Gedminas
On Tue, Jun 10, 2008 at 11:00:41PM -0500, Amita Ekbote wrote:
 I am a Newbie to hacking the nokia N810. I am trying to write an
 application with a front end in python and back end in C++ (already
 written) . I have flashed the nokia N810 and installed the SDK
 already. I followed all instructions from maemo site. I have 2
 problems
 
 1) The hello world program in C given for testing the SDK doesnt work
 on the GUI. I have xephyr running where there is an image flash(not
 sure if that is wat is supposed to happen ) and I get the following
 error in scratchbox
 
 helloworld[3149]: GLIB WARNING ** GLib-GObject -
 IA__g_object_new_valist: object class `GtkWindow' has no property
 named `label'
 helloworld[3149]: GLIB WARNING ** Gtk - Can't set a parent on a toplevel 
 widget
 main:calling gtk_main
 helloworld[3149]: GLIB ERROR ** Gtk - file gtkcontainer.c: line 2745
 (gtk_container_propagate_expose): assertion failed: (child-parent ==
 GTK_WIDGET (container))
 aborting...
 Aborted (core dumped)

Weird.

Admittedly, I haven't attempted to run the hello world in Xephyr in a
long time.

 2) In the focus of trying to get the SDK running I overlooked the RD
 mode instructions while flashing. Do we need that to write
 applications in python? (I have'nt done my homework on this yet i.e
 still reading up but a lil guidance wud help)

No, you don't need RD mode to develop applications.

Marius Gedminas
-- 
No sane person should use frame buffers if they have the choice.
-- Linus Torvalds on lkml


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: policy: maemo packaging policy -draft

2008-06-07 Thread Marius Gedminas
Hi!

On Wed, May 28, 2008 at 10:32:22AM +0300, Eero Tamminen wrote:
 A draft version of the maemo packaging policy is available
 for commenting:
  https://maemo.org/forrest-images/pdf/maemo-policy.pdf
 
 If you're packaging software for maemo, please take a look at it.

* Testing on a device with no extra packages is a hard to do, unless
  you have two devices, or you're not actually using the one you have.
  I wish we had a complete hardware emulator so that you could test
  package installation on a pristine rootfs in a virtual machine.

* Interactive prompts from maintainer scripts (such as asking where
  do you want to stick this new thing in your menus) are annoying for
  the user.  I'd be inclined to add a sentence or two saying that these
  SHOULD be avoided where possible.

* Splitting translations has a question about Debian/Ubuntu.  I'm not a
  developer of either, but as far as I know Debian ships translation
  files for all languages in the same .deb that contains the software,
  while Ubuntu collects all translations from a big group of related
  packages into a language-pack-$group-$languagecode, so you end up
  with language-pack-lt, language-pack-gnome-lt, language-pack-kde-lt
  and so on.  The Ubuntu solution is only possible because they release
  the whole stack at once.

 As stated in the policy document, the comments and questions on this
 policy should be mailed to the maemo-developers mailing list with
 word policy in the subject.

This thread qualifies. ;-)

Marius Gedminas
-- 
I have yet to see any problem, however complicated, which, when
you looked at it in the right way, did not become still more complicated.
-- Poul Anderson


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Having trouble installing the scratchbox development environment.

2008-06-06 Thread Marius Gedminas
On Thu, Jun 05, 2008 at 07:25:09PM +, Hendrik Boom wrote:
 On Thu, 05 Jun 2008 21:56:58 +0300, Marius Gedminas wrote:
  On Thu, Jun 05, 2008 at 03:46:28PM +, Hendrik Boom wrote:
  I'm following the instructions in
http://inz.fi/blog/2007/10/22/multi-target-development-for-maemo/
  as advised by Graham Cobb, and have run into a snag.
  
  Been there, done that, have a working scratchbox.
 
 I seem to off track now.  Things are not behaving as I expect from the
  instructions.  Running the next commend in the list gives me:
 
 [EMAIL PROTECTED]:~$ sb-conf rs mistral-armel 
 /scratchbox/packages/mistral-armel-rootstrap.tgz
 
 You dont have active target in scratchbox chroot.
 Please create one by running sb-menu before continuing
 
 sb-conf: No such target: mistral-armel
 sbrsh-conf: No current target

It looks to me as if you skipped one step from that list.  The command

  sb-conf st mistral-armel -c cs2005q3.2-glibc-arm \
-d debian-sarge:maemo3-tools:cputransp:doctools:perl:maemo3-debian \
-t qemu-arm-0.8.2-sb2

creates the mistral-armel target, and the next command

  sb-conf rs mistral-armel /scratchbox/packages/mistral-armel-rootstrap.tgz

unpacks the rootstrap inside it.  Then the last command

  sb-conf in mistral-armel -c -e -d -F
 
does some extra configuration steps, but I've forgotten what those are
(symlinking libc headers and tools like fakeroot into the appropriate
places inside your target, IIRC).

 And sb-menu gives me a lot of choices without explaining what they mean.
 What, for example, is a target?

Sort of like a chroot.  A directory that contains all the tools needed
for building packages for a particular Maemo version and CPU
architecture.

 If 'mistral', 'bora', and 'chinook' are
 targets, isn't setting them up what these instructions I'm following are
 supposed to do?

Yes.

 It looks as if things have changed since these
 instructions were written, or else that my installation has been
 derailed somehow and I should wipe it and start over, with a different
 debconf priority.

Nah, forget debconf.  You've got scratchbox installed -- check.
You've got a scratchbox user -- check.  Now you need to set up the
targets for cross-compilation.  If you screw up in a target, you can
always nuke it with

  rm -r /scratchbox/users/$username/targets/$targetname*

and start fresh with the sb-conf st/rs/in trio (or, to use longer
command name aliases, sb-conf setup/rootstrap/install).

 I feel like I'minstalling slackware again, but without the handy few
 pages of paper telling me what's going on.

Oh, yes.  Some assembly required indeed.

 Is there documentation
 somewhere that could tell me what's going on behimnd the scenes? -- what
 all these commands do and need to do?

Certainly!  http://scratchbox.org/documentation/

  By the way, if you run a recent distro with a recent kernel, you'll get
  other problems in the future.  Errors like
 
 I'm running lenny with its up-to-date kernel.  Thanks for warning me
 what's coming,
 
  
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion
`(void *) ph-p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
  
  are fixed by
  
echo 0 | sudo tee /proc/sys/vm/vdso_enabled
  
  and
  
mmap: Permission denied
  
  is fixed by
  
echo 4096 | sudo tee /proc/sys/vm/mmap_min_addr
 
 Do these have to be reentered every time I reboot?

Yes.  If you don't want to do that, edit /etc/sysctl.conf and
add

  vm.vdso_enabled = 0
  vm.mmap_min_addr = 4096

in there, then those commands will be automatically executed on every
reboot.

HTH,
Marius Gedminas
-- 
Please note that I only check linux-utf8 on Tuesdays when they happen
on a tenth of December, so please CC me with any replies.
-- Juliusz Chroboczek


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Having trouble installing the scratchbox development environment.

2008-06-06 Thread Marius Gedminas
On Thu, Jun 05, 2008 at 09:29:21PM +, Hendrik Boom wrote:
 On Thu, 05 Jun 2008 21:56:58 +0300, Marius Gedminas wrote:
  
  (Actually, two, because http://maemo-sdk.garage.maemo.org/install.html
  also worked for me, and seems a bit simpler to set up.  It's not the
  official way though, and it's an early alpha version, so beware.)
  
 
 Had a look at  http://maemo-sdk.garage.maemo.org/install.html, and found
 the following fateful lines:
 
  First, set up the following entry to your /etc/apt/sources.list file on
  your Debian host. This will add the maemo-sdk host build tools repository.
  If you have Ubuntu Gutsy 7.10 on your host, please, add the following 
  line into /etc/apt/sources.list:
 deb http://maemo-sdk.garage.maemo.org/download/host ubuntu-gutsy free
  
  To install for Ubuntu Hardy 8.04, please, use the following URL:
 deb http://maemo-sdk.garage.maemo.org/download/host ubuntu-hardy free
 
 It seems to leave out the crucial line for a Debian host.

After going to

  http://maemo-sdk.garage.maemo.org/download/host/dists

I see three distros there:

  ubuntu-gutsy
  ubuntu-hardy
  experimental

The install page also says

  This ALPHA-2.5 version of Maemo SDK+ has been tested on Ubuntu Gutsy
  and Hardy running on 32bit i386 architecture. It is recommended to use
  Ubunty Gutsy/Hardy Server but maemo SDK+ should work also with Debian
  unstable and testing.

Is anyone from the maemo-sdk garage project reading this list?  Anyway,
they have their own list, and forums, and a bug tracker, so you may want
to raise the question about Debian support there.

Marius Gedminas
-- 
I once asked an older coworker and Solaris guru what happened with the
Unix-haters list. He told me that it stopped being quite so funny once Windows
NT came along.
-- the gnat at slashdot


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Problems with larger buttons in HButtonBox

2008-06-06 Thread Marius Gedminas
On Fri, Jun 06, 2008 at 07:55:14AM -0400, James Ferris wrote:
 I'm quite new to this, and while I've managed to navigate installation,
 basic application building and using Glade to produce interface xml,
 I've run into a hitch.
 
 I have a horizontal button box that requests a size of 150x150 for it's
 children, and the buttons themselves are set to expand (and to try it,
 even set a request of 150x150 for each button) which shows up fine in
 Glade, but when I run it in the emulator, each button area is the full
 150 by 150 pixels, but the button appearance is that of three and a bit
 buttons stacked on top of each other like bricks. 
 They expand to fill the 150 width, but not the height. Instead, they
 repeat to fill the height.

Screenshot?

I've seen something like this on osso-xterm with the vertical toolbar.
Large toolbar buttons were drawn stacked, because the theme assumes a
fixed button height.

 If I throw one button into the vbox, it will expand to fill the whole
 space, but not when I put it into a hbuttonbox inside the vbox.
 
 have tried this from Glade's xml, and from direct coding, and it doesn't
 seem to work for me either way.

Marius Gedminas
-- 
This host is a black hole at HTTP wavelengths. GETs go in, and nothing
comes out, not even Hawking radiation.
-- Graaagh the Mighty on rec.games.roguelike.angband


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: maemo Bug Jar #7

2008-06-05 Thread Marius Gedminas
On Thu, Jun 05, 2008 at 08:46:04AM +0200, Luca Olivetti wrote:
 En/na Stephen Gadsby ha escrit:
 
  61 bugs were closed:
 
 I noticed that some of the bugs are marked as fixed in diablo, and 
 that's not really useful unless you release diablo rsn or provide 
 updated packages for chinook.

Still, it is more useful than having no feedback whatsoever.

FWIW launchpad.net has two different bug statuses: Fix committed means
that the bug will be fixed in the next release, and Fix released means
the user can actually upgrade right now to get the fix.

When you do a search for a bug, you get fix comitted bugs in the
results list.  This prevents you from filing new duplicates for a bug
that's already been fixed.

Personally, I'm disappointed that when a bug is closed as fixed in
diablo, as a user I've no idea how to get the updated package on my
N810.  I've got scratchbox handy, just point me at the new source
package and I'll backport it -- but repository.maemo.org has no 'diablo'
in dists/.

Marius Gedminas
-- 
Every nonzero finite dimensional inner product space has an orthonormal basis.

It makes sense, when you don't think about it.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Having trouble installing the scratchbox development environment.

2008-06-05 Thread Marius Gedminas
On Thu, Jun 05, 2008 at 03:46:28PM +, Hendrik Boom wrote:
 I'm following the instructions in
   http://inz.fi/blog/2007/10/22/multi-target-development-for-maemo/
 as advised by Graham Cobb, and have run into a snag.

Been there, done that, have a working scratchbox.

(Actually, two, because http://maemo-sdk.garage.maemo.org/install.html
also worked for me, and seems a bit simpler to set up.  It's not the
official way though, and it's an early alpha version, so beware.)

 When I get to the point of creating the bora rootstrap, it tells me:
 
 [EMAIL PROTECTED]:~$ sb-conf rs mistral-armel 
 /scratchbox/packages/mistral-armel-rootstrap.tgz
 ERROR: You don't have a Scratchbox user account!

You need to run

  sudo /scratchbox/sbin/sbox_adduser $USER

you'll get prompted whether you want to add $USER to group 'sbox';
answer yes and then log out/log back in, or run the following commands
in a subshell spawned by 'newgrp sbox'.  The 'su - $USER' trick might
also work; I hadn't known about it, but it makes sense.

 One relevant point: The instructions said, when it asks for users to add 
 to scratchbox, just choose your user (and whomever might want to do 
 scratchbox development on the box).  But it has never asked for users.

Perhaps your debconf priority is set to a high level, so you don't
get asked unimportant questions like that ;-)

 How do I fix this up after the fact?

With sbox_adduser.

By the way, if you run a recent distro with a recent kernel, you'll get
other problems in the future.  Errors like

  Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) 
ph-p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

are fixed by

  echo 0 | sudo tee /proc/sys/vm/vdso_enabled

and

  mmap: Permission denied

is fixed by

  echo 4096 | sudo tee /proc/sys/vm/mmap_min_addr

HTH,
Marius Gedminas
-- 
ultimate_answer_t deep_thought(void) { sleep(years2secs(750)); return 42; }
-- ConceptJunkie on Slashdot


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Where did the name Maemo come from?

2008-06-04 Thread Marius Gedminas
On Wed, Jun 04, 2008 at 12:49:57PM +0300, Tuomas Kulve wrote:
 Paul Bloch wrote:
  Today I was wondering, what is a maemo? Just wondering what the
  origins of the name are, anyone know what a Maemo is?
 
 Maemo is a name from a name generator.

IIRC the generator was 'pwgen'.

Marius Gedminas
-- 
niemeyer I'm wondering why we have defineChecker() defined twice with exactly
   the same implementation under zope.security.checker...
niemeyer Is it some kind of high-availability system? :-)
-- #zope3-dev


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Hello Maemo - CFSONID 2008

2008-06-04 Thread Marius Gedminas
On Wed, Jun 04, 2008 at 12:23:15PM +0200, Robert Schuster wrote:
 So the answer is no. As long as Maemo's goal is not 'providing a 100%
 free platform' as well I[0] will not contribute[1] to it and I expect
 that with more and more freedom respecting projects/products you will
 have a hard time finding people who do.

This is what I had in mind in my LinuxTag maemo.org presentation: there
are people who will not want to contribute to Maemo just because Nokia
does not completely adhere to the free software principles.

By that I did not mean to imply that Nokia should put free software
above their bottom line.  My point was that Nokia should evaluate the
extra value received from free software zealots (this word is probably
too strong, but I don't have the time right now to pick a better one)
with value lost from opening their proprietary components.

Unfortunately I'm no economist and I cannot evaluate either.  Looking
at the increasing popularity of free software in the IT sector it seems
to me that free software benefits outweigh proprietary benefits, but
this is not a choice I can make for Nokia; it's one Nokia has to make
for themselves.

Marius Gedminas
-- 
As of 2.91, these bugs have all been fixed.  We look forward to new ones, well,
not exactly...
-- libstdc++-v3 FAQ


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: sqlite3 CLI?

2008-06-03 Thread Marius Gedminas
On Mon, Jun 02, 2008 at 09:31:39PM +0200, Frantisek Dufka wrote:
 Marius Gedminas wrote:
  Do you know the reason for that?
 
 No. I also wondered why someone took the time to edit debian files to 
 remove it from the build, it does not look like the most productive 
 thing to do :-) Maybe it saves some trees?
 
  
  Is there a bug filed on bugs.maemo.org for restoring the command-line
  tool?
 
 I did not file any since removing it was intentional and nobody missed 
 it (except me).

Well, there are now three people who miss it, so I'll go and file the
bug.

Here it is: https://bugs.maemo.org/show_bug.cgi?id=3215

Marius Gedminas
-- 
When in danger, or in doubt, run in circles, scream and shout.
-- Robert A. Heinlein


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: sqlite3 CLI?

2008-06-02 Thread Marius Gedminas
On Mon, Jun 02, 2008 at 09:32:09AM +0200, Frantisek Dufka wrote:
 [EMAIL PROTECTED] wrote:
  Which package do I need to install to have the sqlite3 command-line tool 
  available ?
  
 
 There is no such package in SDK repository, you should install sqlite3 
 but this one is disabled in maemo patch for sqlite3 so you need to 
 rebuild it from source and revert part of sqlite3_3.4.1-1osso3.diff.gz 
  patch which disables it. 
 http://repository.maemo.org/pool/chinook/free/s/sqlite3/

Do you know the reason for that?

Is there a bug filed on bugs.maemo.org for restoring the command-line
tool?

 I had same problem some time ago, my build for chinook is here
 http://fanoush.wz.cz/maemo/sqlite3_3.4.1-1osso3_armel.deb

Marius Gedminas
-- 
Remember the... the... uhh.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Hello Maemo - CFSONID 2008

2008-06-02 Thread Marius Gedminas
Hi!

On Mon, Jun 02, 2008 at 01:28:23PM +0200, Robert Schuster wrote:
 I finally subscribed to this list because I think the time is right.

Welcome!

 I
 attended LinuxTag 2008 in Berlin/Germany a few days ago. Quim Gil and
 other people from Nokia and the Maemo community were there. In the first
 Maemo talk Quim invited the community to speak out to Nokia (Btw: really
 Nokia or just the OSSO team?) and I want to participate therein.
 
 If you attended the first talk I was the guy asking to raise your hand
 if you want to see the Nokia IT devices being freed of all proprietary
 software in one way (install a different OS) or another (make IT OS 100%
 free itself).

I was one of those who raised their hands.

 Without knowing anything from inside OSSO/Nokia in this regard I still
 hope that those reasons apply more or less to them because I want to
 base this year's Campaign for Software Freedom on Nokia IT devices
 (tm)[2] on them. ;)
 
 What the campaign is hoping to achieve is the following:
 
 1) Users should be able to install any compatible OSes on their Nokia IT
 devices they wish like one can do on their desktop computers.

Please add and have all the hardware working properly, because you can
already install Debian or Poky on a Nokia IT.

 2) It should be possible to port and put Maemo on other non-Nokia
 devices like it is possible to e.g. port Fedora to any machine.

If I'm not confused about the terms, Maemo already consists of only the
open-source parts.  The software that comes on a Nokia IT is called the
Internet Tablet Operating System, and it is based on Maemo with a lot
of non-free parts added at various levels of the software stack.

Perhaps what you want is to make Maemo complete -- by adding the missing
closed parts such as the virtual keyboard/handwriting input plugins,
status bar applets, etc.

Regards,
Marius Gedminas
-- 
We can tell Nokia what we want.  We can't tell Nokia what to do.  If a
comparable device with a more open platform appears, I will happily
switch, just like I switched from the closed Palm to the half-open Nokia
Internet Tablet.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N810 discount code frustration

2008-06-02 Thread Marius Gedminas
On Thu, May 29, 2008 at 02:05:04AM +0300, Vivia Nikolaidou wrote:
 I was one of the winners of the N810 discount code contest (being a
 developer of aMSN) and I'm having serious issues with it. Mainly the
 Spanish Nokia store is to blame, but I am sick and tired of calling
 them and I'd like to get some help. I don't really know if this
 mailing list is the place to get some help, and I'm sorry in advance
 if I'm inadvertently spamming everyone, so I'd be glad to be
 redirected somewhere else if needed.

I'm afraid none of the people here (including the ones who work at
Nokia) have influence over how the discount codes are managed.
Aren't big corporations wonderful?

 Anyway, here is the story:

snip

In my experience you'll need someone living in one of the approved
countries to buy the N810 with their own credit card.  Yes, this is
incredibly frustrating for those of us who are second-class citizens in
Nokia's eyes.

I hope you'll manage to get a working discount code, if the one you
originally got doesn't work any more.

Marius Gedminas
-- 
At most companies, programmers aren't trusted with words that a user might
actually see (and for good reason, much of the time).
-- Joel Spolski


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: developing xkb mappings

2008-05-20 Thread Marius Gedminas
On Sat, May 17, 2008 at 12:59:22PM -0400, Tim Tisdall wrote:
Please excuse my ignorance, but I'm completely new to some of this stuff...
 
I recently got an iGo Stowaway keyboard and wanted to type with it
 in Dvorak on my N800.  I managed to hack together some changes to the
 xkb files so I can select English (dvorak) from the list of keyboard
 layouts, but I was hoping to refine the symbol mapping more to use
 some of the extra keys available.  I need to be able to read the
 scancodes sent by the keyboard, but I haven't been able to figure out
 a way to do that yet in Maemo.  Anyone have any experience with this
 sort of thing?

A bit.

You can use xev to see the keycodes (raw scan codes are irrelevant for
XKB -- they get converted to keycodes that the X server then sees).

Once you have the key code, you can find the key name used in XKB files
by searching through /etc/X11/xkb/, or by running

  $ xkbcomp :0 -|grep '= 65;'
  SPCE = 65;

(where 65 is the keycode)

The XKB configuration files are documented somewhere on the web.  This
is the page I've bookmarked, although I'm unable to access it right now
(server timeout):

  http://www.charvolant.org/~doug/xkb/index.html

You can load an xkb file with

  $ xkbcomp myexperiment.xkb :0

and if everything goes wrong, reset the keyboard mappings with

  $ setxkbmap

An working ssh session helps a lot, although I suppose the on-screen
virtual keyboard can't be broken by XKB either.

Marius Gedminas
-- 
...the only place for 63,000 bugs is a rain forest


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: developing xkb mappings

2008-05-20 Thread Marius Gedminas
On Tue, May 20, 2008 at 08:10:56PM +0300, Marius Gedminas wrote:
 The XKB configuration files are documented somewhere on the web.  This
 is the page I've bookmarked, although I'm unable to access it right now
 (server timeout):
 
   http://www.charvolant.org/~doug/xkb/index.html

And here's another resource:

  http://pascal.tsu.ru/en/xkb/

Marius Gedminas
-- 
Hi. I'm the I love you .signature virus. You have been infected.
Please panic immediately.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Autobuilder for extras repository public beta

2008-04-25 Thread Marius Gedminas
On Fri, Apr 25, 2008 at 05:36:27PM +0200, Niels Breet wrote:
 A while ago we discussed the idea of an autobuilder for the extras
 repository. [1] We have been working on creating such an autobuilder and
 have been testing it in private. As a result we now think it is time to
 do a tests with a larger group and make it publicly known. Please give
 it a try and tell us your results.

This is wonderful news!

Marius Gedminas
-- 
C, n:
A programming language that is sort of like Pascal except more like
assembly except that it isn't very much like either one, or anything
else.  It is either the best language available to the art today, or
it isn't.
-- Ray Simard


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Gtk error from ComboBoxEntry

2008-04-24 Thread Marius Gedminas
On Thu, Apr 24, 2008 at 10:43:23AM -0600, Jeffrey Barish wrote:
 I am getting the error message
 
 AttributeError: 'gtk.ComboBoxEntry' object has no attribute 'get_cells'

 I suppose that this error must result from a maemo abridgement because the
 gtk documentation describes this method (in gtk.CellLayout).  A
 ComboBoxEntry installs the renderer automatically, so how am I supposed to
 get it so that I can change its attributes?

This function appeared in Gtk+ 2.12.

Maemo 4.0 has Gtk+ 2.10.

Marius Gedminas
-- 
Despite all appearances, your boss is a thinking, feeling, human being.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Porting packages from debian

2008-04-22 Thread Marius Gedminas
On Tue, Apr 22, 2008 at 10:55:27AM +0200, Ryan Pavlik wrote:
 Graham Cobb wrote:
  On Tuesday 22 April 2008 08:58:29 Arto Karppinen wrote:

  If i get a debian package sources from debian website and compile it in
  Maemo, what should i do to debian/* files?
...
  - Should i change myself as maintainer when i have no idea about the
  internals of the lib?
  
 
  Personally I would say yes, and I do for the packages I build.  It doesn't 
  seem sensible to leave the maintainer set to a person who has never even 
  heard of Maemo and would not know how to contact me if someone contacted 
  them 
  about a packaging problem.  If someone had a real query about the code I 
  could always pass it on to the Debian maintainer.
...
 Ubuntu discussed this same thing, and ended up adding Debian Maintainer 
 or similar field to the control file.  You might want to google for that 
 and follow their lead, so that debian derivs get some sort of de-facto 
 standard there.

XSBC-Original-Maintainer.

But then what do you do when you port a Ubuntu package that already has
both

  Maintainer: (the ubuntu person)

and

  XSBC-Original-Maintainer: (the debian person)

in debian/control?

Marius Gedminas
-- 
This message has been ROT-13 encrypted twice for higher security.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Porting packages from debian

2008-04-22 Thread Marius Gedminas
On Tue, Apr 22, 2008 at 09:44:21AM +0100, Graham Cobb wrote:
  - Should i add something to the package version, like lib_1.2.3-mypkg1,
  or something?
 
 I tend to do that if I have made some substantive change.  So, changes to the 
 build process wouldn't count, but changes to the behaviour of the code would. 
  
 In my experience, the most common change is to disable building things like 
 documentation (which the tablet will delete if you install, and which often 
 has complex dependencies)  which probably doesn't need a version change.

Debian package versions are composed of several parts: upstream version,
a dash, and then the packaging version.  (Pedantic nitpick:
Debian-native packages have only a single version field).   Any change
in the packaging should result in an increased package version.  I
usually apppend -mg1, -mg2 etc. to the end, to clearly indicate what my
version of the package was based upon.

Now if you don't actually change anything in debian/*, but just rebuild,
that's the only time when you can keep the old version.  I think.

 But others may decide differently!
 
 Graham
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

Marius Gedminas
-- 
99 little bugs in the code,
99 bugs in the code,
fix one bug, compile it again...
101 little bugs in the code


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: swap not a substitute for virtual memory

2008-04-17 Thread Marius Gedminas
On Thu, Apr 17, 2008 at 04:13:54PM +0100, Tony Green wrote:
  For what it is worth, after I removed /usr/bin/metalayer-crawler, my
  system went from being completely unusable for anything but being a
  broken alarm clock to being relatively useful.
 
 metalayer-crawler's generally only a system-hog at bootup, so shouldn't cause 
 many problems unless you completely shut down and reboot your device rather 
 than just suspending it.
 
 I must admit to being surprised how badly it slows the system down, since 
 according to the init file, it apparently should be running with a niceness 
 of 19, so should pretty much only get CPU time when nothing else requires it.

Perhaps it should be ionice'd as well?  Heavy I/O may hog the system
down even if the process is niced.

What I/O scheduler does Maemo use?  ionice only works with CFQ.

Marius Gedminas
-- 
IBM motto: If you can't read our assembly language, you must be
borderline dyslexic, and we don't want you to mess with it anyway
-- Linus Torvalds


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: BECOMEROOT

2008-04-15 Thread Marius Gedminas
Good afternoon!

On Tue, Apr 15, 2008 at 01:10:41PM +0100, sebastian maemo wrote:
 Thank you very much to the developers and maintainers of the pages:
 
  http://mg.pov.lt/770

That would be me.

 because they had a folder for MAEMO distributions (that is ITOS 2006) with
 the package BECOMEROOT in it, and now they had ERASED it completely.

Not quite -- I moved becomeroot 0.1 deb to a different folder (obsolete)
because there was a new version of becomeroot out there (0.2) that had
quite different behaviour, and I wanted to avoid confusion.

(I don't think I ever removed a package completely.  Maybe once, when
the package in question was so broken that it could brick your device.)

 Nevertheless, http://mg.pov.lt/770 has kept a folder called obsolete with
 a package becomeroot in it, but it doesn't work.

Please define doesn't work.  I had used it successfully on my 770.

Note that becomeroot 0.1 allowed you to do sudo su to get a root
shell, while becomeroot 0.2 was changed and had you use sudo gainroot
instead.  I don't know what precisely you expected, but if you ever
installed becomeroot form my repo, you should be able to sudo su.

 It's great that they help us so much.

I'm glad you appreciate it.

 I've just reflashed my 770 and won't
 be able to easily become root again unless I buy an N800 and install BORA on
 it.

There are many ways of getting root that are a bit simpler than that.

(Although I would recommend getting a N800 or N810, as the hardware is
nicer than the 770.)

 I wish I had downloaded and saved the deb packages. Now I'm fucked.
 
 Fucking thanks.

Have a nice day!

Marius Gedminas
-- 
Be yourself.
Especially, do not feign respect for technical incompetance.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: SDK on Ubuntu

2008-04-10 Thread Marius Gedminas
On Wed, Apr 09, 2008 at 05:22:58PM -0400, [EMAIL PROTECTED] wrote:
 On Wed, 9 Apr 2008, Luca Olivetti wrote:
 
  En/na [EMAIL PROTECTED] ha escrit:
   I bought an 8Gb EEE PC for use as a mobile development platform for maemo 
   (amongst other things :-). Now Im wondering how much disk space I need 
   for 
   Scratchbox + Chinook SDK + Xephyr?
  
  This is the space used by scratchbox+sdk, fresh install, under mandriva, 
  so debian packages may be different.
  
  $ du -sh /mnt/disk1/maemo/
  1.7G/mnt/disk1/maemo/
 
 Yeah, I just did a full install and Ive used around 2Gb of space.
 
 I ran Xephyr and started the emulator under it successfully so all is 
 well. But the emulated environment doesn't appear to have any apps 
 installed inside it - is this normal?

Yes.  IIRC by default you only get xterm and a hello world app.

Marius Gedminas
-- 
Why do geeks think Halloween and Christmas occur on the same day?
Because 31oct = 25dec!


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Pulseaudio on Maemo

2008-03-26 Thread Marius Gedminas
On Wed, Mar 26, 2008 at 03:05:37PM -0400, Kwan Hong Lee wrote:
 Has anybody got pulseaudio to work on Maemo 4.x?

That would be *awesome*.

Marius Gedminas
-- 
If you are angry with someone, you should walk a mile in their shoes... then
you'll be a mile away from them, and you'll have their shoes.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Init script woes

2008-02-05 Thread Marius Gedminas
On Fri, Feb 01, 2008 at 05:58:42PM +, Tony Green wrote:
 I wonder if anybody can shed any light on a strange (and annoying) problem 
 I'm 
 having persuading dpkg to install init scripts for a package.
 
 I have an init script in the right place in my development tree 
 (~/httpd-2.2.8/debian/init.d), hd_installinit is un-commented in 
 ~/httpd-2.2.8/debian/rules and when I manually un-pick the .deb file, 
 data.tar.gz correctly contains ./etc/init.d/httpd.
 
 But... when I actually install the package, I end up without an init file.
 
 The problem appears to be somewhere in the configuration phase, as if I 
 unpack 
 the package, I see /etc/init.d/httpd.dpkg-new but when I then configure the 
 package, it disappears. Running with debug and some tracing suggests that 
 it's being deleted by whatever process runs just before my postinst script is 
 called.

Have you solved this problem already?  If not, perhaps this might be
relevant: http://www.davidpashley.com/blog/2008/02/05#confmiss

 This is happening with the latest version of the development environment, but 
 reverting to the OS2007 version, it's also happening there. But the fact that 
 I DID have an init script in place suggests I've somehow managed to get this 
 to work at some stage in my early development work (I forgot to include 
 deletion in the postrm script, so it must have been left there by an earlier 
 attempt.)

It does sound like you stumbled on the exact same feature that's
described in the blog post.

HTH,
Marius Gedminas
-- 
While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work. -- C Hacking


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Access to apt-get or dpkg from the application

2008-01-30 Thread Marius Gedminas
On Wed, Jan 30, 2008 at 11:51:08AM +0200, Michael Stepanov wrote:
 I just would like to know if there is a common way to access apt-get or dpkg
 from the application?
 
 I need it to perform automatic installation several packages. Some of them
 are placed in the different repositories or can be just downloaded from the
 web. So, idea is to run a simple application which will install them without
 user interaction.

As a user, I do not like this idea.  I'd rather use a .install file
(which in OS2008 can add multiple repositories in one go).  I don't
remember if .install files can specify more than one package to install,
but it's simple to build an empty metapackage that depends on all the
packages you want.

Marius Gedminas
-- 
When I'm not in my right mind, my left mind gets a little crowded.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: What is the difference between GtkImage, GdkImage, GdkPixmap and GdkBitmap?

2008-01-25 Thread Marius Gedminas
On Fri, Jan 25, 2008 at 05:36:43PM +0800, LIU Chun Hung wrote:
 I don't know the difference between these types(GtkImage, GdkImage,
 GdkPixmap and GdkBitmap) although I have read the GTK and GDK API
 Reference Manual.

Disclaimer: IANAEGD (I Am Not An Experienced Gtk+ Developer).

GtkImage is a widget that you can stick into a window to display image
data (stored in a GdkImage).

GtkPixmap is a widget that you can stick into a window to display image
data (stored in a GdkPixmap).

The difference between an image and a pixmap is that the image is stored
on the client and transfers pixel data to the X server on every redraw
request, while a pixmap is stored on the X server.  Usually this is more
efficient, but if you plan to modify the image, you cannot use pixmaps.

A GdkBitmap is a *bit* map: it's a 1-bit per pixel image, usually used
for things like transparency maps.

 Suppose I want to create a new RGB bitmap with 3 x 3 in size and I want to
 set all pixel values to be 0. After clicking a button, all pixel values
 will change to 255. Which one of the above types should I use? Should
 GdkImage be used as I can see there are functions to change the pixel
 values (gdk_image_put_pixel) in this type, but not in other types.

You would use a GdkImage to manipulate the pixels, and a GtkImage to
display it.

Marius Gedminas
-- 
All programs evolve until they can send email.
-- Richard Letts
Except Microsoft Exchange.
-- Art
(found on the Snort web site)


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Curious: Maemo devices other than Nokia?

2008-01-23 Thread Marius Gedminas
On Wed, Jan 23, 2008 at 12:28:42PM +0200, Riku Voipio wrote:
 Marius Gedminas wrote:
 On Tue, Jan 22, 2008 at 06:42:00PM +0200, Riku Voipio wrote:
 Firstly, one needs a VKB. now hildon-input is mostly open source,
 
 Is it?  The framework, yes, but I think the actual virtual keyboard and
 handwriting recognition plugins are closed.
   
 The input framework is OSS and it includes a example VKB. I
 believe the example VKB is different from what is included
 in ITOS.

Ah, that's good to know!

 Oops no, xterm uses hildon_gtk_im_context_show() to show the vkb,
 which is only available in maemo version of *gtk+2.0* - what a lovely
 layering violation.
 
 
 What layering violation?  osso-xterm is entirely based on gnome-terminal
 (libvte, actually).  The name is a bit misleading -- it's not related to
 the real xterm, it just performs the same function.
   
 The layering violation is including a function
 hildon_gtk_im_context_show() inside *gtk-2-0*. 

As opposed to in libhildon.  I see.  I misunderstood your original
statement.

Marius Gedminas
-- 
CBQ is merely the oldest kid on the block - yet it is by far the least useful
qdisc and also the most complex one. I advise *against* using it. This may come
as something of a shock to many who fell for the 'sendmail effect', which
learns us that any complex technology which doesn't come with documentation
must be the best available.
-- Linux Advanced Routing HOWTO


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Curious: Maemo devices other than Nokia?

2008-01-22 Thread Marius Gedminas
On Tue, Jan 22, 2008 at 06:42:00PM +0200, Riku Voipio wrote:
 rant
 Firstly, one needs a VKB. now hildon-input is mostly open source,

Is it?  The framework, yes, but I think the actual virtual keyboard and
handwriting recognition plugins are closed.

 but when you have a real distribution, it's a lot more annoying that
 only gtk2 applications have input. Acceptable, at least we have osso-xterm -
 Oops no, xterm uses hildon_gtk_im_context_show() to show the vkb,
 which is only available in maemo version of *gtk+2.0* - what a lovely
 layering violation.

What layering violation?  osso-xterm is entirely based on gnome-terminal
(libvte, actually).  The name is a bit misleading -- it's not related to
the real xterm, it just performs the same function.

snip
 So now there is a hildon-desktop, terminal, network-manager and a vkb.
 Only such minor details as web browser is missing, and the themes/icons
 having a funny license.  But it just a matter of sorting all pieces 
 together
 to get fully OSS rootfs built out of Debian to support the basic use cases
 of internet browsing, email and so on.

But not fast battery charging.  IIRC.

Marius Gedminas
who would love to see a pure OSS alternative to IT OS.
-- 
If it wasn't for C, we'd be using BASI, PASAL and OBOL


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: explanations of the recent download problems

2008-01-16 Thread Marius Gedminas
On Wed, Jan 16, 2008 at 02:29:01PM +0200, Ferenc Szekely wrote:
 I owe you an explanation about the problems we faced with the firmware
 downloads, repository.maemo.org and the windows update wizard server
 backend since Xmas till the beginning of Jan.

Thank you for the open and informative reply.

As a techie, I'd like to know more about how the content distribution
network happened to cache HTML error pages for many of the packages on
repository.maemo.org.  Did the error pages come with long cache
expiration headers by mistake, or does the CDN tend to assume URLs
ending in .deb never change?

Marius Gedminas
-- 
Colorless green ideas sleep furiously.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: n810: Light Sensor (?)

2008-01-14 Thread Marius Gedminas
On Sun, Jan 13, 2008 at 01:32:26AM +, Neil MacLeod wrote:
 Deleting or renaming /usr/lib/mce/modules/libfilter-brightness-als.so
 (and rebooting) is an effective way to stop the light sensor from
 randomly and inappropriately changing the display brightness[1] even
 in a well lit environment.
 
 It might be worth perusing the source code for the aforementioned
 library in order to glean any useful tidbits (assuming it hasn't been
 retained as closed source).

I tend to assume that anything developed by Nokia is closed-source,
unless they started from an existing GPL project to save money and
therefore can't close it.

  $ dpkg -S /usr/lib/mce/modules/libfilter-brightness-als.so 
  mce: /usr/lib/mce/modules/libfilter-brightness-als.so

There's no mce in http://repository.maemo.org/pool/os2008/free/m/ nor it
is mentioned in http://repository.maemo.org/dists/os2008/free/source/Sources

Marius Gedminas
-- 
The irony is that Bill Gates claims to be making a stable operating
system and Linus Torvalds claims to be trying to take over the
world.
-- seen on the net


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N810 USA Availability

2008-01-11 Thread Marius Gedminas
On Thu, Jan 10, 2008 at 08:02:04PM -0200, Adilson Oliveira wrote:
 Owen Williams escreveu:
 
  
  I don't see a place to enter in a code with that link.
  
 
 You're right. I was quite sure there was but I just went over all the
 shopping process but confirm the order and really there's none.
 We're going to have to wait for Nokia to send us a valid link like the
 rest of the planet :)

Nokia sent me a valid link today:

Here is the correct link to US online shop to purchase N810 device with
maemo device program discount code.

http://www.nokiausa.com/link?cid=PLAIN_TEXT_607318

When I get to the shopping cart, I see two places to enter a code: one
is labeled Coupon Code, and the other one - Gift / Reward Code.
I've no idea which one is the correct one for entering the maemo device
program discount code.  I tried both but neither worked.

Marius Gedminas
-- 
lg_PC.gigacharset (lg = little green men language, PC = proxima centauri)
-- Markus Kuhn provides an example of a locale


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Console apps

2008-01-10 Thread Marius Gedminas
On Thu, Jan 10, 2008 at 11:37:49AM -0500, [EMAIL PROTECTED] wrote:
 Any docs on building console apps on maemo?
 
 Also, what about running daemons from a system init script, how is that 
 done? Im assuming one needs to be root to install and to start/stop 
 services from an init script?

Everything's the same as in Debian.

This would be a good place to link to a Debian packaging guide, if I had
the link...  Actually, the Debian Policy manual describes the packaging
of daemons:

  http://www.debian.org/doc/debian-policy/

Package postinst scripts are always run as root.

Marius Gedminas
-- 
Of course everyone knows that vim is the best text editor in the world. Anyone
who tells you differently is either wrong, lying, or criminally insane. (Or an
emacs user, in which case they are wrong, lying and criminally insane).


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Suggestions for storing data for Python based Maemo application

2008-01-08 Thread Marius Gedminas
On Tue, Jan 08, 2008 at 08:33:02AM +1100, Devraj Mukherjee wrote:
 We are developing an application for Maemo which is if you like a
 custom data collection application for a local firm. The application
 is being written in Python 2.5 against the Chinook framework and is
 expected to create upto about 200 records (all up). Are there any
 general suggestion for what we should use to store data? At this stage
 thoughts/options are
 
 - Python object serialization
 - XML file
 - SQLite database
 
 Thanks for your time.

Any of them will work fine.

I'd go with XML myself, for extra data transparency.

Marius Gedminas
-- 
The reason computer chips are so small is that computers don't eat much.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N810 Maemo Program/USA Store

2008-01-08 Thread Marius Gedminas
On Tue, Jan 08, 2008 at 10:38:06AM -0200, Rafael Proença wrote:
 I think the best we can do is just wait

Wait for what, exactly?

There is no Nokia shop in my country.  I've asked for a US code because
a coworker is going to a conference there in March.  I also have to ask
a business acquaintance who lives in the US to order the device with a
US credit card.  I would like to know when I can ask that acquaintance
to actually order the device.

Now I've received an email that implies my discount code is valid in
the supported Nokia shops, and gives a list of shops supported,
which seems to define what the supported Nokia shops are.  US is not
in that list.  This makes me confused: did I get a European discount
code instead of the US one that I asked for?  How can I find out?

The email said to contact the customer care channel of your shop for
further questions, but which shop is my shop, and what's the email
address of its customer care channel?

 By the way, I am one of those who are waiting for USA stores to get my
 device using the device discount code from Maemo.

I'm fine with waiting, but how will I know the wait is over?  Will I get
another email from Nokia that specifically says and now you can use the
US discount code?

Marius Gedminas
-- 
We don't really understand it, so we'll give it to the programmers.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Mutagen for Maemo

2008-01-05 Thread Marius Gedminas
On Thu, Jan 03, 2008 at 08:49:18PM +0100, Pavel Rojtberg wrote:
 I've packaged and uploaded mutagen for maemo[1] to garage.
 Will it show up in the extra repository now? If not what are the
 necessary steps?

http://maemo.org/community/application-catalog/extras_repository.html

HTH,
Marius Gedminas
-- 
My mail reader can beat up your mail reader.


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


  1   2   3   >