Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread tilt!
Hi Jonathan, On 09/12/2015 06:04 PM, Jonathan Wilkes wrote: Hi tilt! Is this a serious response? I ask because the other candidates -- an obscure language and a dead language-- were not. If so tell me which dialect to use. No, it's *not* a serious response. Had i been serious, i had

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread Jonathan Wilkes
Guile it is. Just so we're clear-- I am assuming you understand why I want to do this, and that you will defend the choice of language against bike-shedders and Socratic bombers.  (Though of course you don't have to defend my actual code.)  If both those assumptions are true then I'll get

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread tilt!
Hi Jonathan, no please! I was kidding, as indicated by smileys interleaved with my postings! :-D BTW if you have the time to do it, and if you think it brings you something, why should a random guy from the internet like i be the one who gives thumbs up or down? Should it be your serious

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread Hendrik Boom
On Sat, Sep 12, 2015 at 04:04:14PM +, Jonathan Wilkes wrote: > Hi tilt!Is this a serious response?  I ask because the other > candidates-- an obscure language and a dead language-- were not. Programming language popularity is more a matter of fashion than technical excellence. Modula 3

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread aitor_czr
It was not Pascal the successor of Modula? El 12/09/15 a las 22:38, Hendrik Boom escribió: Modula 3 isn't dead. Moribund, maybe, but not dead. And it easily beats a number of madly popular languages for systems programming. Its one of the few languages I've used in

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread Hendrik Boom
On Sat, Sep 12, 2015 at 08:38:40PM +, Jonathan Wilkes wrote: > It depends completely on the random guy. :) > If you were a knowledgeable advocate of Guile and saw the same risks of > "winging it" with C strings, then there'd now be at least two devs with a > vested interest in a port of the

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread KatolaZ
On Sat, Sep 12, 2015 at 03:50:57AM +0200, aitor_czr wrote: > I recomend you to eat a pizza with Jaromil > :) How do you know I have not had a pizza with Jaromil already? HND KatolaZ -- [ Enzo Nicosia aka KatolaZ --- GLUG Catania -- Freaknet Medialab ] [ me [at] katolaz.homeunix.net --

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread Svante Signell
On Fri, 2015-09-11 at 22:34 +0200, aitor_czr wrote: > You are right Edward, i was thinking in the transposition matrix. > > > El 11/09/15 a las 19:32, Edward Bartolo escribió: > > > > > > > only square matrices can > > > have an inverse If a square matrix is singular, i.e. the determinant is

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread tilt!
On 09/11/2015 08:57 PM, Jonathan Wilkes wrote: > [...] To anyone else mortified by this thread: name any of the obviously preferable languages for this job and I'll try my hand at porting to that language. I can't guarantee I'll know exactly what I'm doing, but I can guarantee that an entire

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread Hendrik Boom
On Sat, Sep 12, 2015 at 05:30:23PM +0200, tilt! wrote: > On 09/11/2015 08:57 PM, Jonathan Wilkes wrote: > > [...] > >To anyone else mortified by this thread: name any of the obviously > >preferable languages for this job and I'll try my hand at porting to > >that language. I can't guarantee I'll

Re: [DNG] Debugging netman auto-connect.

2015-09-12 Thread Rainer Weikusat
Hendrik Boom writes: > On Fri, Sep 11, 2015 at 06:57:04PM +, Jonathan Wilkes wrote: >> Wow, we've gone from "I don't understand c strings" to "let me explain them >> using matrices". >> >> To anyone else mortified by this thread: name any of the obviously >>

[DNG] Debugging netman auto-connect.

2015-09-11 Thread aitor_czr
Hi Edward, Consider a double pointer like a matrix (in algebra) witch one you don't know its dimension a priori. An example: put the case that we are developing an application witch calculates the inverse of a matrix of dimensions NxM. The values of N and M will be determinated by the user

[DNG] Debugging netman auto-connect.

2015-09-11 Thread Edward Bartolo
Hi all, Since yesterday I have been trying to understand why "char** essid_list" is working inside getInstalledEssidList(, essid_list) but failing as soon as I try to access essid_list[0] outside the function. Both the source and the gdb text output are attached. Any helpful pointers are

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread aitor_czr
You are right Edward, i was thinking in the transposition matrix. El 11/09/15 a las 19:32, Edward Bartolo escribió: only square matrices can have an inverse ___ Dng mailing list Dng@lists.dyne.org

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread aitor_czr
A * (1/A) = 1 = (1/A) * A So, it must be square :-) On 11/09/15 20:57, Jonathan Wilkes wrote: El 11/09/15 a las 19:32, Edward Bartolo escribió: only square matrices can have an inverse ___ Dng mailing list Dng@lists.dyne.org

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread tilt!
Perfect - avoids the GLIB dependency, too :) GLIB is a bloated beast anyway, comes with an XML parser, an own threading system, i bet somewhere in there is a fully featured telnet client and a mail program, too. Thank you Rainer for extreme (C) programming. ;-) Regards, T. On 09/11/2015

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread KatolaZ
On Fri, Sep 11, 2015 at 10:48:19PM +0200, aitor_czr wrote: > A * (1/A) = 1 = (1/A) * A > > So, it must be square :-) > I will become pedantic now, but if A is a matrix, the interpretation of the equations above depends on what "1" and "/" actually mean for you. In general, 1/A does not mean

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread Peter Olson
> On September 11, 2015 at 2:24 PM aitor_czr wrote: > > No! > > Only square matrices can have a determinant. > > I am not Roger Penrose. I am a hooligan of *Richard Feynman* > and *Lev Davidovick Landau* (vintage). Perhaps also with some variation *Joseph-Louis

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread Rainer Weikusat
Edward Bartolo writes: > Since yesterday I have been trying to understand why "char** > essid_list" is working inside getInstalledEssidList(, > essid_list) but failing as soon as I try to access essid_list[0] > outside the function. > > Both the source and the gdb text output

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread tilt!
On 09/11/2015 10:35 AM, Edward Bartolo wrote: Hi all, Since yesterday I have been trying to understand why "char** essid_list" is working inside getInstalledEssidList(, essid_list) but failing as soon as I try to access essid_list[0] outside the function. Both the source and the gdb text

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread aitor_czr
I recomend you to eat a pizza with Jaromil El 12/09/15 a las 00:18, KatolaZ escribió: will become pedantic now, but if A is a matrix, the interpretation of the equations above depends on what "1" and "/" actually mean for you. In general, 1/A does not mean anything when you deal with

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread aitor_czr
Of course... and Maxwell.. and many others... El 11/09/15 a las 23:18, Peter Olson escribió: On September 11, 2015 at 2:24 PM aitor_czr wrote: > >No! > >Only square matrices can have a determinant. > >I am not Roger Penrose. I am a hooligan of*Richard Feynman*

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread Edward Bartolo
I will try the solution from Rainer as it seems to do the least of disruption to my original code. Thanks to you all, Edward On 11/09/2015, Edward Bartolo wrote: > As suggested by tilt, I switched to use GSList but I need to use it > for two distinct cases: > a) to manage a

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread Edward Bartolo
As suggested by tilt, I switched to use GSList but I need to use it for two distinct cases: a) to manage a list of strings b) to manage a list of structures of this construct: typedef struct { double quality; char name[MAX_ESSID_LENGTH]; } wifi_quality; I expect this to be

Re: [DNG] Debugging netman auto-connect.

2015-09-11 Thread aitor_czr
No! Only square matrices can have a determinant. I am not Roger Penrose. I am a hooligan of *Richard Feynman* and *Lev Davidovick Landau* (vintage). Yes, i know... There are many hooligans in this forum. There is a special black hole in the heaven for that guys. Aitor. El 11/09/15 a