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

2016-06-23 Thread Simon Hobson
Rainer Weikusat wrote: > Reportedly, Linux hotplug already had the same problem. OK, that's what I'd have been seeing in the past then. > During initialization, the kernel walks through the bus or busses it > finds in order to locate all devices and enables them by calling the > responsible dri

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

2016-06-23 Thread Simon Walter
On 06/23/2016 11:26 AM, Adam Borowski wrote: ... [1]. Actually, the English alphabet had more letters: þ, ð, ƿ[2] and ȝ, but they got dropped as early printing presses imported from Germany lacked these characters. Before the technology was copied and fonts could be manufactured domestically, th

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

2016-06-23 Thread KatolaZ
On Thu, Jun 23, 2016 at 02:42:13AM +0200, Irrwahn wrote: [cut] > > Actually, I think it in fact /still/ invokes undefined behavior, > as it is only valid to cast from a pointer-to-T to a pointer to a > compatible type (and back), or from a pointer-to-T to void pointer > (or a pointer-to-unsign

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

2016-06-23 Thread Didier Kryn
Le 22/06/2016 14:20, Irrwahn a écrit : On Wed, 22 Jun 2016 13:46:43 +0200, Emninger wrote: Am Wed, 22 Jun 2016 08:35:48 + schrieb KatolaZ : The easiest way is to have a cron script that runs once a day, with root provileges, and calls "apt-get update". [...] Thanks for your pointer. So, e

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

2016-06-23 Thread Irrwahn
On Thu, 23 Jun 2016 08:23:01 +0100, Katolaz wrote: [...] > Thanks for your explanation :) Actually, my point was simply that the > language allows you to do whatever you want with allocated space that > you think is "an array of T". If I remove the explicit casts, the > compiler gives a few warning

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

2016-06-23 Thread Irrwahn
On Thu, 23 Jun 2016 10:46:24 +0200, Didier Kryn wrote: > Le 22/06/2016 14:20, Irrwahn a écrit : >> Actually, I am much more in favor of the brilliant suggestion >> made by Giovanni Rapagnani in another reply: >> >> | another way of periodically updating the lists of packages is >> | to add this

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

2016-06-23 Thread Didier Kryn
Le 22/06/2016 16:29, Rainer Weikusat a écrit : If you'll neither believe me nor the code wrt causes these 'random device names', may I try some kind of authority? 7.4.3.7. Device naming order changes randomly after rebooting This is due to the fact that Udev, by design, handles

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

2016-06-23 Thread Didier Kryn
Le 23/06/2016 09:05, Simon Hobson a écrit : Rainer Weikusat wrote: >Reportedly, Linux hotplug already had the same problem. OK, that's what I'd have been seeing in the past then. >During initialization, the kernel walks through the bus or busses it >finds in order to locate all devices and

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

2016-06-23 Thread Edward Bartolo
Hi, At this point of my C studies, I did a test to get feedback of my C language learning progress. I found an online C test which consisted of 20 questions and a time duration of 30 minutes. Link: http://www.indiabix.com/online-test/c-programming-test/random The test included concepts and synta

Re: [DNG] A proposal for usability ;)

2016-06-23 Thread vmlinux
Thanks for this! There's is no bane to the existence of the touchpad greater than that of my thumbs accidentally bouncing off it and moving the cursor to places unknown. ::Here's a shellscript, called touchtoggle, that I hooked to ::hotkey Ctrl+Shift+j, that turns the mousepad alternately on or

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

2016-06-23 Thread Adam Borowski
On Thu, Jun 23, 2016 at 11:08:48AM +0200, Irrwahn wrote: > On Thu, 23 Jun 2016 10:46:24 +0200, Didier Kryn wrote: > > If the question was only to be informed, I would use apt-watch. If > > it is to upgrade my system automatically, I would be afraid it brings in > > some undesired systemd/gno

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

2016-06-23 Thread Didier Kryn
Le 23/06/2016 13:53, Adam Borowski a écrit : On Thu, Jun 23, 2016 at 11:08:48AM +0200, Irrwahn wrote: On Thu, 23 Jun 2016 10:46:24 +0200, Didier Kryn wrote: If the question was only to be informed, I would use apt-watch. If it is to upgrade my system automatically, I would be afraid it br

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

2016-06-23 Thread Edward Bartolo
Hi, I am doing exercise 1-21 Pg 48 The C programming language" (Kernighan & Ritchie). Since I am finding difficulty inspecting tabs in XFCE4.10 terminal, I would like someone to inspect this program which replaces repeating spaces with tabs when there are sufficient consecutive spaces. I am not as

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

2016-06-23 Thread Edward Bartolo
Ooops, this is the corrected program for exercise1-21 #include /* insert tabs instead of repeated spaces * I am assuming a tab is equivalent to 3 spaces and forgetting tabs that are defined at specific columns */ int tab_width = 3; void replace_spaces_with_tabs(char c) { int count = 0; if

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

2016-06-23 Thread KatolaZ
On Thu, Jun 23, 2016 at 02:17:37PM +0200, Edward Bartolo wrote: > Hi, > > I am doing exercise 1-21 Pg 48 The C programming language" (Kernighan > & Ritchie). Since I am finding difficulty inspecting tabs in XFCE4.10 > terminal, I would like someone to inspect this program which replaces > repeatin

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

2016-06-23 Thread Irrwahn
On Thu, 23 Jun 2016 13:53:49 +0200, Adam Borowski wrote: > On Thu, Jun 23, 2016 at 11:08:48AM +0200, Irrwahn wrote: >> On Thu, 23 Jun 2016 10:46:24 +0200, Didier Kryn wrote: >>> If the question was only to be informed, I would use apt-watch. >> And it's only available in >> wheezy and in uns

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

2016-06-23 Thread Rainer Weikusat
Simon Hobson writes: > Rainer Weikusat wrote: > >> Reportedly, Linux hotplug already had the same problem. > > OK, that's what I'd have been seeing in the past then. > >> During initialization, the kernel walks through the bus or busses it >> finds in order to locate all devices and enables them

[DNG] How to get rfcomm working again?

2016-06-23 Thread dr . klepp
Hi all! Somehow bluetooth stopped working on my Devuan jessie machines. In february I set up rfcomm connection from my embedded system via rfcomm to my desktop. Pairing went smoothly, I set up the rfcomm connetion with # rfcomm bind 0 00:00:62:81:B4:24 1 $ cat /dev/rfcomm0 and out came the da

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

2016-06-23 Thread Edward Bartolo
Hi, I am using nano. I paste the program's output in nano and use the cursor keys to investigate the position of tabs. This is the final debugged version of the tab insertion program. It assumes tabs are 8 characters apart with the first column having no tab. #include /* insert tabs instead o

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

2016-06-23 Thread Rainer Weikusat
Didier Kryn writes: > Le 23/06/2016 09:05, Simon Hobson a écrit : >> Rainer Weikusat wrote: >> >>> >Reportedly, Linux hotplug already had the same problem. >> OK, that's what I'd have been seeing in the past then. >> >>> >During initialization, the kernel walks through the bus or busses it >>> >f

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

2016-06-23 Thread Peter Olson
> On June 23, 2016 at 10:48 AM Edward Bartolo wrote: > if (count > 0) > while(putchar(' ') && --count); I strongly recommend using the continue statement here: while(putchar(' ') && --count) continue; The reason is that the semicolon by itself is almost unnoticeable and you can cre