Re: [DNG] tool to check for updates without root??

2016-06-21 Thread Joel Roth
emnin...@riseup.net wrote: > May someone of you knows if their exists in the .deb world a tool which > checks for available updates and which does not need root. > > What i am looking for, is just a simple "update available" notifier > (with other package managers that's possible, but i do not see

Re: [DNG] tool to check for updates without root??

2016-06-21 Thread KatolaZ
On Wed, Jun 22, 2016 at 02:15:17AM +0200, emnin...@riseup.net wrote: > May someone of you knows if their exists in the .deb world a tool which > checks for available updates and which does not need root. > > What i am looking for, is just a simple "update available" notifier > (with other package

Re: [DNG] LXC template for Devuan

2016-06-21 Thread Greg Olsen
On 06/20/2016 09:47 PM, Simon Walter wrote: Hi Greg, I've added a branch called add-netconf, which you have probably seen. I thought to just add one feature per branch so that review is easier. Let me know how you prefer to collaborate. That's perfect. Branch as often as you see fit, that's

[DNG] tool to check for updates without root??

2016-06-21 Thread emninger
May someone of you knows if their exists in the .deb world a tool which checks for available updates and which does not need root. What i am looking for, is just a simple "update available" notifier (with other package managers that's possible, but i do not see a way to do that with apt or aptitud

Re: [DNG] The frontend of simple-netaid

2016-06-21 Thread aitor_czr
Hi Edward, On 06/21/2016 10:14 PM, Edward Bartolo wrote: Hi, Try /sbin/iwconfig or save the ESSID on a successful connection attempt. Both work. Edward On 21/06/2016, aitor_czr wrote: >Hi all, > >I'm working again in the frontend of simple-netaid. > >Is there a way to get information abou

Re: [DNG] package request

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 22:01:49 +0200 Adam Borowski wrote: > On Tue, Jun 21, 2016 at 01:49:32PM +0200, emnin...@riseup.net wrote: > > Hi! > > > > Is there any possibility to package for devuan xdgmenumaker (1) (2)? > > > > It's a rocksolid and very nice menumaker which makes for *ANY* > > *boxes b

Re: [DNG] How to stop udev from re-ordering devices

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 20:10:24 +0100 Rainer Weikusat wrote: > The nice thing about free software is that one may use it to solve > real problems the developers disapprove of. NICE QUOTE RAINER!!! SteveT Steve Litt June 2016 featured book: Troubleshooting: Why Bother? http://www.troubleshooters

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 14:43:03 -0400 "Steven W. Scott" wrote: > May as well toss in the assembler guy approach to the problem: > > char SpaceSquash() > { > for (i = strlen(desc) - 1; i > 0; i--) { >if (desc[i-1] == ' ') { >if (desc[i] == ' ') { >

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 14:43:03 -0400 "Steven W. Scott" wrote: > May as well toss in the assembler guy approach to the problem: > > char SpaceSquash() > { > for (i = strlen(desc) - 1; i > 0; i--) { >if (desc[i-1] == ' ') { >if (desc[i] == ' ') { >

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Rainer Weikusat
Adam Borowski writes: > On Tue, Jun 21, 2016 at 03:13:21PM +0200, Irrwahn wrote: >> On Tue, 21 Jun 2016 14:42:46 +0200, Edward Bartolo wrote: >> [...] >> > if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { >> [...] >> You should *never* assume that the latin letters occur in >> the exec

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 21:30:34 +0100, Katolaz wrote: > Nono, wait guys. > > 1 octet == 1 byte == 8 bits Not so. Although the 8-bit byte today is a de facto standard for most of the equipment in wide use, it is not set in stone, lest is it defined that way. So it's actually: 1 octet == 8 b

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 17:55:52 +0100 KatolaZ wrote: > On Tue, Jun 21, 2016 at 06:41:15PM +0200, Edward Bartolo wrote: > > [cut] > > > > > And > > << if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) >> > > > > would reduce to: > > > > if (isletter(c)) > > > > or, you could just use "is

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread KatolaZ
On Tue, Jun 21, 2016 at 10:16:21PM +0200, Irrwahn wrote: [cut] > > >> And "there's so much broken code already you rely on" should > >> never be an excuse to deliberately produce even more broken code. > > > > I wouldn't call code that assumes 8-bit bytes "broken". I'd call it "sane". > > Oc

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 14:43:03 -0400, Steven W. Scott wrote: > May as well toss in the assembler guy approach to the problem: > > char SpaceSquash() > { > for (i = strlen(desc) - 1; i > 0; i--) { >if (desc[i-1] == ' ') { >if (desc[i] == ' ') { >

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 21:50:10 +0200, Adam Borowski wrote: > It's isalpha() that's an abomination, exactly because its behaviour varies > between locales. That depends on the requirements. There are cases where I as a user would be slightly surprised if some code would tell me that e.g. Umlauts

Re: [DNG] The frontend of simple-netaid

2016-06-21 Thread Edward Bartolo
Hi, Try /sbin/iwconfig or save the ESSID on a successful connection attempt. Both work. Edward On 21/06/2016, aitor_czr wrote: > Hi all, > > I'm working again in the frontend of simple-netaid. > > Is there a way to get information about the status of the network > connection, for example, a wa

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread KatolaZ
On Tue, Jun 21, 2016 at 09:57:06PM +0200, Adam Borowski wrote: > On Tue, Jun 21, 2016 at 05:55:52PM +0100, KatolaZ wrote: > > On Tue, Jun 21, 2016 at 06:41:15PM +0200, Edward Bartolo wrote: > > > And > > > << if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) >> > > > > > > would reduce to: > >

Re: [DNG] package request

2016-06-21 Thread Adam Borowski
On Tue, Jun 21, 2016 at 01:49:32PM +0200, emnin...@riseup.net wrote: > Hi! > > Is there any possibility to package for devuan xdgmenumaker (1) (2)? > > It's a rocksolid and very nice menumaker which makes for *ANY* *boxes > based desktop a xdgcompliant menu (which especially in debian > with its

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Adam Borowski
On Tue, Jun 21, 2016 at 05:55:52PM +0100, KatolaZ wrote: > On Tue, Jun 21, 2016 at 06:41:15PM +0200, Edward Bartolo wrote: > > And > > << if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) >> > > > > would reduce to: > > > > if (isletter(c)) > > or, you could just use "isalpha(c)", as suggest

[DNG] The frontend of simple-netaid

2016-06-21 Thread aitor_czr
Hi all, I'm working again in the frontend of simple-netaid. Is there a way to get information about the status of the network connection, for example, a way to get the ESSID of the wifi to which we are connected at some time? Thanks in advance, Aitor. _

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Adam Borowski
On Tue, Jun 21, 2016 at 04:38:50PM +0200, Irrwahn wrote: > On Tue, 21 Jun 2016 16:00:53 +0200, Adam Borowski wrote: > > On Tue, Jun 21, 2016 at 03:13:21PM +0200, Irrwahn wrote: > >> On Tue, 21 Jun 2016 14:42:46 +0200, Edward Bartolo wrote: > >> [...] > >>> if ((c >= 'a' && c <= 'z') || (c >= 'A

Re: [DNG] A proposal for usability ;)

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 13:02:43 + asbesto wrote: > please, can someone do a BIG favour to the entire world? :D > > ... enable the touchpad gestures / tap to click by default > in the window manager!!! > > :D Thank you all for the great work. :) And after doing that favor to humanity, please

Re: [DNG] How to stop udev from re-ordering devices

2016-06-21 Thread Rainer Weikusat
Simon Hobson writes: [...] > All in all, the easiest way by far is to use stable and user(admin) > set names for interfaces ! This is going to bite you in the posterior in case of canned OS installations intended to be usable on a wide range of differently configured 'servers' and not supposed

[DNG] Menus: was package request

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 13:49:32 +0200 wrote: > Hi! > > Is there any possibility to package for devuan xdgmenumaker (1) (2)? > > It's a rocksolid and very nice menumaker which makes for *ANY* *boxes > based desktop a xdgcompliant menu (which especially in debian > with its awful menu system is badl

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Steven W. Scott
May as well toss in the assembler guy approach to the problem: char SpaceSquash() { for (i = strlen(desc) - 1; i > 0; i--) { if (desc[i-1] == ' ') { if (desc[i] == ' ') { strncpy(&desc[i], &desc[i+1], (strlen(desc)-i));

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 17:55:52 +0100, Katolaz wrote: > On Tue, Jun 21, 2016 at 06:41:15PM +0200, Edward Bartolo wrote: > > [cut] > >> >> And >> << if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) >> >> >> would reduce to: >> >> if (isletter(c)) >> > > or, you could just use "isalpha(c)", as s

Re: [DNG] How to stop udev from re-ordering devices

2016-06-21 Thread Simon Hobson
Steve Litt wrote: > Good point. Here in my house, I trust everyone with a physical console, > so individual computers have simple or no firewalls. I'm running servers where you have to assume everyone is out to get you. > My Internet > firewall is pFSense, and every once in a while I use OpenBS

Re: [DNG] Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 16:42:02 +0100, Simon Hobson wrote: > An interesting task would be to look at the various algorithms offered, work > out how the compiler is likely to handle them when turning into code (or even > look at the code generated), and then work out the efficiency of the > differen

Re: [DNG] How to stop udev from re-ordering devices

2016-06-21 Thread Steve Litt
On Tue, 21 Jun 2016 08:14:57 +0100 Simon Hobson wrote: > Steve Litt wrote: > > > Of all the escapades of FreeDesktop.Org, managers of Lennart and the > > Redhats, these name thingies are some of the least onerous. I put a > > shellscript on the list a few months ago that delivers the wifi > > d

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread KatolaZ
On Tue, Jun 21, 2016 at 06:41:15PM +0200, Edward Bartolo wrote: [cut] > > And > << if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) >> > > would reduce to: > > if (isletter(c)) > or, you could just use "isalpha(c)", as suggested also by Urban. -- [ ~.,_ Enzo Nicosia aka KatolaZ -

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Edward Bartolo
Hi, Irrwhan35 wrote: << [...] > if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { [...] You should *never* assume that the latin letters occur in the execution character set in ascending consecutive order. (Though similar *is* guaranteed for the digits '0' to '9'!) >> I think a function

Re: [DNG] Studying C as told. (For help)

2016-06-21 Thread Simon Hobson
An interesting task would be to look at the various algorithms offered, work out how the compiler is likely to handle them when turning into code (or even look at the code generated), and then work out the efficiency of the different methods in terms of CPU cycles/character. Of course, it's poss

Re: [DNG] Studying C as told. (For help)

2016-06-21 Thread Rainer Weikusat
Edward Bartolo writes: > I am saving your program for future study as its level is beyond the > current level I am at. I am still at page 34 ("The C programming > language" (Kernighan & Ritchie)) This is based on another simple idea, namely, instead of using a simple pattern-recognition automaton

Re: [DNG] A proposal for usability :)

2016-06-21 Thread aitor_czr
Hi asbesto, On 06/21/2016 04:41 PM, asbesto wrote: please, can someone do a BIG favour to the entire world? :D ... enable the touchpad gestures / tap to click by default in the window manager!!! :D Thank you all for the great work.:) We made reference to this subjet in a previous thread: "T

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 16:00:53 +0200, Adam Borowski wrote: > On Tue, Jun 21, 2016 at 03:13:21PM +0200, Irrwahn wrote: >> On Tue, 21 Jun 2016 14:42:46 +0200, Edward Bartolo wrote: >> [...] >>> if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { >> [...] >> You should *never* assume that the la

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Adam Borowski
On Tue, Jun 21, 2016 at 03:13:21PM +0200, Irrwahn wrote: > On Tue, 21 Jun 2016 14:42:46 +0200, Edward Bartolo wrote: > [...] > > if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { > [...] > You should *never* assume that the latin letters occur in > the execution character set in ascendin

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 14:42:46 +0200, Edward Bartolo wrote: [...] > if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { [...] You should *never* assume that the latin letters occur in the execution character set in ascending consecutive order. (Though similar *is* guaranteed for the digits '

Re: [DNG] package request

2016-06-21 Thread aitor_czr
On 06/21/2016 02:00 PM, wrote: Hi! Is there any possibility to package for devuan xdgmenumaker (1) (2)? It's a rocksolid and very nice menumaker which makes for*ANY* *boxes based desktop a xdgcompliant menu (which especially in debian with its awful menu system is badly needed). 1)ht

[DNG] A proposal for usability ;)

2016-06-21 Thread asbesto
please, can someone do a BIG favour to the entire world? :D ... enable the touchpad gestures / tap to click by default in the window manager!!! :D Thank you all for the great work. :) -- [ : 73 de IW9HGS : http://freaknet.org/asbesto ::: ] [ Freaknet Medialab :: Poetry Hacklab

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 13:15:57 +0100, Simon Hobson wrote: > http://www.ioccc.org Supplemental readings: https://www.doc.ic.ac.uk/~susan/475/unmain.html http://xkcd.com/1513/ http://xkcd.com/1695/ ___ Dng mailing list Dng@lists.dyne.org https://ma

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Edward Bartolo
Hi, Again, this is NOT a difficulty but for anyone wanting to comment. And this is for P. 38 Exercise 1-14 Initially, this gave me the dreaded Segmentation Fault (aka Access Violation). It was naturally something to do with the array. I was exceeding the permissible index maximum. My solution:

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Simon Hobson
Irrwahn wrote: > We could. But it is a kludge, and very bad style. Is this the right time to introduce ... ... wait for it ... ... you're probably not going to like it ... ... no spoilers ... ... it is "safe for work" ... ... unless your work is writing C code ... http://www.io

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Edward Bartolo
Hi, This is NOT a difficulty. I am posting my code so that anyone wanting to comment can do so. Pg 38, Exercise: 1-13 Write a program to print a histogram of the lengths of words in its input. Horizontal bars selected. My solution/code: #include int main() { #define MAX_LENGTH 10 int word

[DNG] package request

2016-06-21 Thread emninger
Hi! Is there any possibility to package for devuan xdgmenumaker (1) (2)? It's a rocksolid and very nice menumaker which makes for *ANY* *boxes based desktop a xdgcompliant menu (which especially in debian with its awful menu system is badly needed). 1) https://github.com/gapan/xdgmenumaker

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Irrwahn
On Tue, 21 Jun 2016 19:31:55 +0900, Simon Walter wrote: [About short-circuiting logical operators] > I am thinking we might use single ampersand or pipe (bitwise). Can we > use bitwise operators as what would be a non-short-circuiting logical > operator in C (or other languages)? We could. But i

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Simon Walter
On 06/21/2016 06:09 PM, KatolaZ wrote: On Tue, Jun 21, 2016 at 05:47:59PM +0900, Simon Walter wrote: [cut] Be careful, because conditional expressions in C are subject to "short-circuiting", meaning that only the minimum number of expressions sufficient to determine the value of a chain of &&

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread KatolaZ
On Tue, Jun 21, 2016 at 05:47:59PM +0900, Simon Walter wrote: [cut] > >Be careful, because conditional expressions in C are subject to > >"short-circuiting", meaning that only the minimum number of > >expressions sufficient to determine the value of a chain of && and || > >will be evaluated. In p

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Simon Hobson
KatolaZ wrote: > Be careful, because conditional expressions in C are subject to > "short-circuiting", meaning that only the minimum number of > expressions sufficient to determine the value of a chain of && and || > will be evaluated. In particular, a chain of || expressions will be > evaluated

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread Simon Walter
On 06/21/2016 05:28 PM, KatolaZ wrote: On Tue, Jun 21, 2016 at 08:22:41AM +0200, Edward Bartolo wrote: [cut] I studied 'and' and 'or' boolean operators back when I studied Delphi Pascal. I am embarrassed to have written such a stupid thing. It must be due to the fact I wrote the email just

Re: [DNG] [OT] [Re: Studying C as told. (For help)

2016-06-21 Thread KatolaZ
On Tue, Jun 21, 2016 at 08:22:41AM +0200, Edward Bartolo wrote: [cut] > > I studied 'and' and 'or' boolean operators back when I studied Delphi > Pascal. I am embarrassed to have written such a stupid thing. It must > be due to the fact I wrote the email just before going to bed. > > AND: requi

Re: [DNG] Studying C as told. (For help)

2016-06-21 Thread Edward Bartolo
Hi, I am saving your program for future study as its level is beyond the current level I am at. I am still at page 34 ("The C programming language" (Kernighan & Ritchie)) Thanks, Edward On 21/06/2016, Peter Olson wrote: >> On June 20, 2016 at 10:37 AM Edward Bartolo wrote: >> >> On page Page 3

Re: [DNG] How to stop udev from re-ordering devices

2016-06-21 Thread Simon Hobson
Steve Litt wrote: > Of all the escapades of FreeDesktop.Org, managers of Lennart and the > Redhats, these name thingies are some of the least onerous. I put a > shellscript on the list a few months ago that delivers the wifi device > name, and that script can be used in init scripts and the like.