Re: implementation of 2-dimensional array in bash - kind request
C is a good solution. So is Perl, which comes on OS 2008. So is Python. Perl lets you construct nested lists, which gives you the equivalent in capability to multi-dimensional arrays. Python gives similar constructs. There is no reason IMHO to be writing shell scripts of any kind on a system where Perl and Python are available. Shell programming is just weak for many reasons including lack of data structure capabilities and should be avoided whenever possible. I say this as someone who has accumulated years of shell programming experience in a professional software shop as well as other languages. The strongest of the shell programming languages, namely bash and ksh, have this problem. Perl and Python are practical for exactly the reason that they are good replacements for these shell languages. -Will Kees Jongenburger wrote: Hello Darius, On Sat, Jul 5, 2008 at 7:54 PM, Darius Jack [EMAIL PROTECTED] wrote: and have 2D array inmterpreted as one row. so calculating array2D ( ) i-th j-th element as i + (j-1) x row length I agree with Igor what using bash or even better a POSIX shell would be a little insane. Still Dave Taylor have a serries on linuxjounral about shell programming (creating a card game/arrat manipulation) see http://www.linuxjournal.com/article/8704 I think you might find it useful. greetings, P.S. can you stop sending the Send instant messages to your online friends http://uk.messenger.yahoo.com; in every and each mail? ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: MPlayer and Free42 for OS 2008
Thanks. For the moment I've solved the problem by reverting to OS 2007 and installing MPlayer and Free42 on there. Along the way I dabbled with programming in scratchbox and got some sample code running. Regarding these two programs, I have found the following issues. A) MPlayer is not functioning properly. I installed MPlayer on a regular Linux PC. I created a playable file from a DVD I own using mencoder. I confirmed that I can play the video on the regular PC using mplayer. However, when I run it on the N800 (using MPlayer installed on OS 2007), I get these problems: i) No sound. The Report function says Audio: no sound. Yet sound comes out fine when I play it on the PC. ii) Seems to play in fast-forward fashion. B) Free42: I haven't been able to find either the sources or the debian or install file anywhere under repository.maemo.org. -Will Martin Grimme wrote: 2007/12/31, William Gordon Rutherdale [EMAIL PROTECTED]: Where exactly could I get a copy of this? I haven't found the location on the web site. Address: http://repository.maemo.org/extras-devel try omitting the 'i' in 'repository' if you have trouble with this Distribution: chinook Components: free non-free Cheers, Martin ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Tcl/Tk and C++ for Chess
Hi. I'm still quite new to Maemo development and just barely got a command-line hello world program going so far. I would like to get a GPL'd program called ChessDB running on it. This program is good at analysing chess positions, as opposed to playing them. For instance you can set up an endgame position and analyse different variations. This is something I would like to do on the subway using the N800. Anyway, I looked through the ChessDB code. It is written mostly in C++. The user interface part, however, is in Tcl/Tk. Thus there is no messy C GUI library to contend with as in porting some other software. At present I am using OS 2007 but can switch to OS 2008 if necessary. I was wondering if others have experience with the following issues: A) Is it hard getting Tcl/Tk running on either OS 2007 or 2008? B) Do applications running in Tcl/Tk generally have behavioural issues once you get them going? C) Would a straight C++ program have any problems with standard shared runtime libraries on the N800 using either OS? Any help would be appreciated. -Will ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers