> On January 25, 2016 at 5:54 PM Rainer Weikusat
> wrote:
[...]
> A related but IMHO more interesting set of questions could be:
>
> 1. Should every trivial crap $someone ever implemented since 1978 end up
>in general purpose library just because $someone
On Mon, Jan 25, 2016 at 12:23:01PM +, Rainer Weikusat wrote:
> KatolaZ writes:
>
> [...]
>
> > I still don't see the need for an internal buffer to print out a
> > formatted string, to be honest :)
>
> Everything in code can always be implemented in a number of
On Mon, Jan 25, 2016 at 01:47:46PM +0100, Didier Kryn wrote:
> Le 25/01/2016 13:23, Rainer Weikusat a écrit :
> > while (*r) if (*r++ == '/') n = r;
>
> Does it mean
>
> while (*r)
> {
> if (*r == '/')
> {
>n = r;
>r++;
> }
>
Le 25/01/2016 13:23, Rainer Weikusat a écrit :
while (*r) if (*r++ == '/') n = r;
Does it mean
while (*r)
{
if (*r == '/')
{
n = r;
r++;
}
}
or
while (*r)
{
if (*r == '/')
{
r++;
Le 25/01/2016 13:47, Didier Kryn a écrit :
while (*r)
{
if (*r == '/')
{
r++;
n = r;
}
}
It's not even that. A for loop would do it:
for ( ; *r; r++ ) n = r+1;
___
Dng mailing
Didier Kryn:
> Le 25/01/2016 13:23, Rainer Weikusat a écrit :
> > while (*r) if (*r++ == '/') n = r;
>
> Does it mean
>
> while (*r)
>{
> if (*r == '/')
> {
> n = r;
> r++;
> }
>}
>
> or
>
> while (*r)
>
Didier Kryn writes:
> Le 25/01/2016 13:23, Rainer Weikusat a écrit :
>> while (*r) if (*r++ == '/') n = r;
>
> Does it mean
>
> while (*r)
> {
> if (*r == '/')
> {
>n = r;
>r++;
> }
> }
>
> or
>
> while (*r)
Am Montag, 25. Januar 2016 schrieb Rainer Weikusat:
> "Dr. Nikolaus Klepp" writes:
>
> [...]
>
> > What about making the source smaller and not the executable?
> >
> > static void print_start(char const *name, char const *what) {
> > if (name[0])
dev1fanboy wrote:
>One of the better ones for the purpose of keeping pulse and dbus out is xine
>(xine-ui).
It is ugly, wants over nine thousooond packages to be installed,
including samba-libs...
>A good music player is cmus which uses ncurses and has playlist support, does
>not use any
Removes GNOME3
Removes systemd
Removes Xfce
Removes 9wm
Removes X
Removes their package manager
Removes make, because "I can cc everything by myself"
Removes C++ programmes
Removes C programmes
"Why do I need Assembly when there is machine code"
On Sunday, January 24, 2016 11:47 PM, Go Linux wrote:
>
> On Sun, 1/24/16, Ian Zimmerman wrote:
>
> Subject: Re: [DNG] Ad filtering and blocking
> To: dng@lists.dyne.org
> Date: Sunday, January 24, 2016, 5:34 PM
re all,
here a new initiative by brothers and sisters of ArchLinux, one of the
first distributions to be bullied into systemd http://systemd-free.org
ArchLinux is a relatively young and very sharp distribution, they have
arguably the best documentation wiki on-line on GNU/Linux matters and
many
Personally I had hoped that law would mean sites are discouraged from using
cookies unless they are absolutely necessary, but that doesn't seem to be the
case. I think sites are choosing to continue finding ways to annoy their users
rather than just not using cookies where it's not necessary.
Le 25/01/2016 16:08, Rainer Weikusat a écrit :
Didier Kryn writes:
Le 25/01/2016 13:23, Rainer Weikusat a écrit :
while (*r) if (*r++ == '/') n = r;
Does it mean
while (*r)
{
if (*r == '/')
{
n = r;
r++;
On Sun, 24 Jan 2016 23:47:14 + (UTC)
Go Linux wrote:
> Or maybe because xul is going the way of the dodo?
>
> http://forums.mozillazine.org/viewtopic.php?f=7=2979611
Does anybody here know how the Seamonkey project is going to deal with
Mozilla's disposal of XUL?
Didier Kryn writes:
[...]
>> A multi-line version could look like this:
>>
>> while (c = *r) {
>> ++r;
>> if (c == '/') n = r;
>> }
>>
>
> It might be done with a for loop. eg:
>
> for ( ; *r ; ++r) if(*r=='/') n=r;
> n++;
[...]
> The for loop is the best
Although I'm no fan of rolling release distros, it's good to know there is some
effort to preserve other inits there.
On Monday, January 25, 2016 3:47 PM, Jaromil wrote:
> re all,
>
> here a new initiative by brothers and sisters of ArchLinux, one of the
> first distributions
Hi,
As I recently have been playing with window managers,
mostly FVWM, i3 and now it's Openbox, to latter I switched
from Xfce because I have decided not to go with D-Bus,
I am now in need to find a lightweight media or, precisely,
video player.
In Xfce I had been using Parole, because it's
On Fri, 22 Jan 2016 01:29:06 +0100, Wim wrote in message
One of the better ones for the purpose of keeping pulse and dbus out is xine
(xine-ui). As far as a media player.. I think it's best to have one thing for
music and another for video. A good music player is cmus which uses ncurses and
has playlist support, does not use any crappy extra libs, no
Also forgot to mention cdcd can play music direct from a cd. One tool one job
and all that, I also noted there are some more audio video/players around but
some of them are targetted to a specific purpose, like smpeg-gtv for playing
mpegs.
On Monday, January 25, 2016 6:04 PM, Mitt Green
2016-01-25 21:21 GMT+01:00, Mitt Green :
> Removes GNOME3
>
> Removes systemd
>
> Removes Xfce
> Removes 9wm
>
> Removes X
>
> Removes their package manager
> Removes make, because "I can cc everything by myself"
>
> Removes C++ programmes
> Removes C programmes
>
> "Why do I
Mitt Green writes:
> Removes GNOME3
>
> Removes systemd
>
> Removes Xfce
> Removes 9wm
>
> Removes X
>
> Removes their package manager
> Removes make, because "I can cc everything by myself"
>
> Removes C++ programmes
> Removes C programmes
>
> "Why do I need Assembly when
Reverse the order and change remove for installs and you have the evolution of
linux into windows ;-)
On Monday, January 25, 2016 8:21 PM, Mitt Green wrote:
> Removes GNOME3
>
> Removes systemd
>
> Removes Xfce
> Removes 9wm
>
> Removes X
>
> Removes their package
On Mon, 25 Jan 2016 21:06:45 +
Rainer Weikusat wrote:
> Now, what to all of these have in common beyond "you got almost all of
> the chronology wrong"?
Definitely the "Head or tails", gentlemen ;)
Quote from:
Asimov, Isaac - The Machine That Won The War,
Peter Olson writes:
>> On January 25, 2016 at 7:40 AM KatolaZ wrote:
>> On Mon, Jan 25, 2016 at 12:23:01PM +, Rainer Weikusat wrote:
[...]
>> > static char const *get_name(char const *arg0)
>> > {
>> > char const *n, *r;
>> >
>> > n = r =
Le 25/01/2016 23:44, Peter Olson a écrit :
This also brings up the question of whether you should roll your own get_name or
use basename(3) which already does the same thing except in some edge cases.
It's easier for the student to understand the code if it is implemented as
get_name, but the
Le 25/01/2016 19:11, Rainer Weikusat a écrit :
Didier Kryn writes:
[...]
A multi-line version could look like this:
while (c = *r) {
++r;
if (c == '/') n = r;
}
It might be done with a for loop. eg:
for ( ; *r ; ++r) if(*r=='/') n=r;
n++;
Rainer Weikusat writes:
> Didier Kryn writes:
>
> [...]
>
>>> A multi-line version could look like this:
>>>
>>> while (c = *r) {
>>> ++r;
>>> if (c == '/') n = r;
>>> }
>>>
>>
>> It might be done with a for loop. eg:
>>
>> for
On Sun, Jan 24, 2016 at 4:08 PM, Rainer Weikusat <
rainerweiku...@virginmedia.com> wrote:
> Apollia writes:
>
> [...]
>
> > I think if I ever did code much in C, my code would end up looking very
> > unusual and unconventional to many people, because I often like to use
> >
> On January 25, 2016 at 7:40 AM KatolaZ wrote:
>
>
> On Mon, Jan 25, 2016 at 12:23:01PM +, Rainer Weikusat wrote:
> > KatolaZ writes:
> >
> > [...]
[...]
> > The program also contains a very nice example of why the post-increment
> >
Le 24/01/2016 19:14, KatolaZ a écrit :
Soo, the above is nearly the same as
>
> char buf[total];
> p = buf;
>
>Why then use alloca()?
>
Maybe because
char buf[total];
works only in ANSI C11. I still don't see the need for an internal
buffer to print out a formatted string, to be
On Mon, Jan 25, 2016 at 09:27:15AM +0100, Didier Kryn wrote:
[cut]
>
> The following works in plain old C:
>
> #include
> #include
> static void print_start(char const *name, char const *what)
> {
> unsigned name_len, what_len, total;
>
> name_len = strlen(name);
>
Le 25/01/2016 11:34, KatolaZ a écrit :
I would say that having embedded subprograms in a function is not the
best thing one can do in C
Every block is a subprogram. The block in a do loop, the
conditional block in an if or while statement. The subprogram blocks are
everywhere in C;
Am Montag, 25. Januar 2016 schrieb KatolaZ:
> On Mon, Jan 25, 2016 at 09:27:15AM +0100, Didier Kryn wrote:
>
> [cut]
>
> >
> > The following works in plain old C:
> >
> > #include
> > #include
> > static void print_start(char const *name, char const *what)
> > {
> > unsigned
On Mon, Jan 25, 2016 at 12:18:09PM +0100, Dr. Nikolaus Klepp wrote:
[cut]
>
> What about making the source smaller and not the executable?
>
> static void print_start(char const *name, char const *what) {
> if (name[0]) fprintf("%c%s",name[0]&~0x20, name+1);
> fprintf(stderr, " %s:
Didier Kryn writes:
> Le 24/01/2016 19:14, KatolaZ a écrit :
>>> Soo, the above is nearly the same as
>>> >
>>> > char buf[total];
>>> > p = buf;
>>> >
>>> >Why then use alloca()?
>>> >
>> Maybe because
>> char buf[total];
>>
>> works only in ANSI C11. I still don't see
"Dr. Nikolaus Klepp" writes:
[...]
> What about making the source smaller and not the executable?
>
> static void print_start(char const *name, char const *what) {
> if (name[0]) fprintf("%c%s",name[0]&~0x20, name+1);
> fprintf(stderr, " %s: ",what);
> }
Are you
KatolaZ writes:
[...]
> I still don't see the need for an internal buffer to print out a
> formatted string, to be honest :)
Everything in code can always be implemented in a number of different
ways, hence, whatever the code ends up doing is "not really needed" ---
it
I started using mpv as media player instead vlc. vlc has become unstable
often producing segmentation fault, skipping frames. The package names
is mpv.
It has tiny package size less than 1.5 MB.
$ mpv --version
mpv 0.8.3 (C) 2000-2015 mpv/MPlayer/mplayer2 projects
built on Tue Mar 17
40 matches
Mail list logo