Re: [dev] surf crash

2017-01-15 Thread Cág

Greg,

Try re-installing libjavascriptcoregtk-1.0-0.
It is fairly common for dpkg to install
broken packages. Those Gdk and dbus warnings
you received when running surf shouldn't be
vital.

If that still doesn't work, bewray your
config.mk to us.


Cág



Re: [dev] surf crash

2017-01-15 Thread Greg Minshall
Hiro, thanks for the reply.

> try compiling your system without dbus.
> then, add a gdb backtrace.

i'm not sure how to interpret the first line.  if it means compile Linux
without dbus, i'm afraid i don't know how to do that.  (but, with hints
and some time, could possibly figure it out; i'm running lubuntu.)

if the first line means surf(1), i don't (grep(1) doesn't) see any
references to dbus in the sources.

for the second line, i downloaded the current (0.7) release of surf,
compiled with -g.  below is the output (*does* look a bit like someone
stomped on the stack).

cheers, Greg

bash minshall-apollo: {1068} gdb surf
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from surf...done.
(gdb) run bit.ly/MoesE-Books
Starting program: /home/minshall/src/import/suckless/surf/surf-0.7/surf 
bit.ly/MoesE-Books
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe4812700 (LWP 31539)]
[New Thread 0x7fffa400f700 (LWP 31540)]
[New Thread 0x7fffa33b5700 (LWP 31541)]
[New Thread 0x7fffa2bb4700 (LWP 31542)]
[New Thread 0x7fffa1d49700 (LWP 31543)]
[New Thread 0x7fff9218f700 (LWP 31544)]
[New Thread 0x7fff9198e700 (LWP 31545)]
[New Thread 0x7fff9118d700 (LWP 31546)]
[New Thread 0x7fff9098c700 (LWP 31547)]
[New Thread 0x7fff87fff700 (LWP 31548)]
[New Thread 0x7fff877fe700 (LWP 31549)]
[Thread 0x7fff9218f700 (LWP 31544) exited]
[New Thread 0x7fff9218f700 (LWP 31551)]
[New Thread 0x7fff867d4700 (LWP 31552)]
[New Thread 0x7fff85fd3700 (LWP 31553)]
[New Thread 0x7fff857d2700 (LWP 31554)]
[New Thread 0x7fff63fff700 (LWP 31555)]
[New Thread 0x7fff637fe700 (LWP 31556)]
[New Thread 0x7fff62ffd700 (LWP 31557)]
[New Thread 0x7fff627fc700 (LWP 31558)]

Thread 1 "surf" received signal SIGSEGV, Segmentation fault.
0x73e15c16 in ?? () from 
/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-1.0.so.0
(gdb) where
#0  0x73e15c16 in ?? () from 
/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-1.0.so.0
#1  0x73e16563 in ?? () from 
/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-1.0.so.0
#2  0x7fffa404abe9 in ?? ()
#3  0x7fffce70 in ?? ()
#4  0x77e71000 in ?? ()
#5  0x7fff8496a728 in ?? ()
#6  0x7fffcee0 in ?? ()
#7  0x7fff86ffdff8 in ?? ()
#8  0x7fffcef0 in ?? ()
#9  0x7fffce70 in ?? ()
#10 0x73dffc03 in JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*, 
JSC::Register*) () from /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-1.0.so.0
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) 



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
On Sun, 15 Jan 2017 22:34:18 +0100
Felix Van der Jeugt  wrote:

> Excerpts from Mattias Andrée's message of 2017-01-15
> 16:54:46 +0100:
> > On Sun, 15 Jan 2017 10:48:56 -0500 Alexander Keller
> >  wrote:  
> > > The simplest way I can imagine is to link them into a
> > > directory temporarily and/or permanently with:
> > > 
> > > mkdir playlist ln *some_glob_pattern* playlist
> > > 
> > > Then use the vidir(1) program to edit the files to
> > > number them sequentially the way you want. Then you
> > > can either create a playlist and delete the directory
> > > using some basic command line tools or just keep the
> > > directory as a playlist. 
> > 
> > The problem with this approach is that I cannot edit
> > the list whilst it is playing, except for removing
> > files.  
> 
> Unless you didn't play that directory with `mpv
> playlist/*`, but with a simple script which takes the
> alphabetically first file, plays it, removes it when
> played succesfully, and takes the next. `while mpv "$(ls
> playlist | head -1)"; do true; done`, am I right?
> 
> Sincerely,
> Felix
> 
> 

I wrote the following script that does most of what I want.
The only thing it lacks is support for mass reorder.

#!/bin/sh

number=0
if test "$1" = -n; then
number=1
shift 1
fi
if test "$1" = --; then
shift 1
fi
if ! test $# = 0; then
cd -- "$1"
fi

if test $number = 1; then
n="$(ls -1 | wc -l)"
i=1
ls -1 | while read f; do
mv -- "$f" "00$(seq -w 0 $n | sed 1,${i}d | sed 1q) - $f"
i=$(expr $i + 1)
done
fi

current="$(ls -1 | head -n 1)"
while mpv -- "$current"; do
index=$(ls -1 | grep -Fnx -- "$current" | cut -d : -f 1)
index=$(expr $index)
if test $index -ge $(ls -1 | wc -l); then
break
fi
current="$(ls -1 | sed 1,${index}d | sed 1q)"
done


pgpW054f2SwRp.pgp
Description: OpenPGP digital signature


[dev] cal -5 and -7

2017-01-15 Thread Antoni V.
I wanted to add -5 and -7 to cal and I did.
And it works.
But it looks bad.
Can anyone think of better implementation?
Thanks.

+case '5':
+nmons = 5;
+if (--month == 0) {
+month = 12;
+year--;
+}
+if (--month == -1) {
+month = 11;
+year--;
+}
+break;
+case '7':
+nmons = 7;
+if (--month == 0) {
+month = 12;
+year--;
+}
+if (--month == -1) {
+month = 11;
+year--;
+}
+if (--month == -2) {
+month = 10;
+year--;
+}
+break;




Re: [dev] surf crash

2017-01-15 Thread hiro
try compiling your system without dbus.
then, add a gdb backtrace.

On 1/15/17, Greg Minshall  wrote:
> hi.  trying
>
> : surf bit.ly/MoesE-Books
>
> gives surf
>
> : surf-0.7, ©2009-2015 surf engineers, see LICENSE for details
>
> a seg fault on my linux machine
>
> : Linux minshall-apollo.minshall.org 4.4.0-57-generic #78-Ubuntu SMP Fri Dec
> 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>
> the output is below.
>
> cheers, Greg Minshall
> 
> bash minshall-apollo: {998} surf bit.ly/MoesE-Books
>
> ** (surf:19102): WARNING **: Error retrieving accessibility bus address:
> org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not
> provided by any .service files
>
> (surf:19102): Gdk-CRITICAL **: gdk_window_set_events: assertion
> 'GDK_IS_WINDOW (window)' failed
>
> (surf:19102): Gdk-CRITICAL **: gdk_window_get_screen: assertion
> 'GDK_IS_WINDOW (window)' failed
>
> (surf:19102): Gdk-CRITICAL **: gdk_screen_get_resolution: assertion
> 'GDK_IS_SCREEN (screen)' failed
> Segmentation fault (core dumped)
> bash minshall-apollo: {999}
>
>



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread hiro
> By the way, has anyone tried OSS on Linux recently?

yes, still works, still fucks up on suspend. great on desktops.



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Felix Van der Jeugt
Excerpts from Mattias Andrée's message of 2017-01-15 16:54:46 +0100:
> On Sun, 15 Jan 2017 10:48:56 -0500 Alexander Keller
>  wrote:
> > The simplest way I can imagine is to link them into a directory
> > temporarily and/or permanently with:
> > 
> > mkdir playlist ln *some_glob_pattern* playlist
> > 
> > Then use the vidir(1) program to edit the files to number them
> > sequentially the way you want. Then you can either create a playlist
> > and delete the directory using some basic command line tools or just
> > keep the directory as a playlist.
> > 
> 
> The problem with this approach is that I cannot edit the list whilst
> it is playing, except for removing files.

Unless you didn't play that directory with `mpv playlist/*`, but with a
simple script which takes the alphabetically first file, plays it,
removes it when played succesfully, and takes the next. `while mpv "$(ls
playlist | head -1)"; do true; done`, am I right?

Sincerely,
Felix




Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Martin Kühne
On Sun, Jan 15, 2017 at 4:54 PM, Mattias Andrée  wrote:
> The problem with this approach is that I cannot
> edit the list whilst it is playing, except for
> removing files.


My personal solution to this problem is to simply use mpv from CLI per
file. There is simply no playlist, but I really don't need one,
though, which saves me of the additional complexity to have to adjust
it as I go. You might be used to do something while you're bored
watching a video, but maybe you should just find better stuff to watch
in that case.
If I want to abort viewing the current video I just press 'q' to exit
and then can decide what to watch next, which really goes well with
the fact that I just download interesting stuff I plan to watch to ~.
How about you find a way you can make your videos easily accessible
for you?

cheers!
mar77i



[dev] surf crash

2017-01-15 Thread Greg Minshall
hi.  trying

: surf bit.ly/MoesE-Books

gives surf

: surf-0.7, ©2009-2015 surf engineers, see LICENSE for details

a seg fault on my linux machine

: Linux minshall-apollo.minshall.org 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 
23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

the output is below.

cheers, Greg Minshall

bash minshall-apollo: {998} surf bit.ly/MoesE-Books

** (surf:19102): WARNING **: Error retrieving accessibility bus address: 
org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not 
provided by any .service files

(surf:19102): Gdk-CRITICAL **: gdk_window_set_events: assertion 'GDK_IS_WINDOW 
(window)' failed

(surf:19102): Gdk-CRITICAL **: gdk_window_get_screen: assertion 'GDK_IS_WINDOW 
(window)' failed

(surf:19102): Gdk-CRITICAL **: gdk_screen_get_resolution: assertion 
'GDK_IS_SCREEN (screen)' failed
Segmentation fault (core dumped)
bash minshall-apollo: {999} 



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Cág

Mattias Andrée wrote:


Does any have a recommendation for a video player
that has a good playlist where files can easily
be reordered?


I think a simple script should work. Not sure about
the dynamic management of the playlist though. I
switched to ffplay for video and mpg123 for audio,
because mplayer stopped decoding both mp3 and mp4
correctly for some reason.

By the way, has anyone tried OSS on Linux recently?


Cág



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
On Sun, 15 Jan 2017 10:48:56 -0500
Alexander Keller  wrote:

> The simplest way I can imagine is to link them into a
> directory temporarily and/or permanently with:
> 
> mkdir playlist
> ln *some_glob_pattern* playlist
> 
> Then use the vidir(1) program to edit the files to number
> them sequentially the way you want. Then you can either
> create a playlist and delete the directory using some
> basic command line tools or just keep the directory as a
> playlist.
> 

The problem with this approach is that I cannot
edit the list whilst it is playing, except for
removing files.


pgpSXdgmPqz1s.pgp
Description: OpenPGP digital signature


Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Alexander Keller
The simplest way I can imagine is to link them into a directory
temporarily and/or permanently with:

mkdir playlist
ln *some_glob_pattern* playlist

Then use the vidir(1) program to edit the files to number them
sequentially the way you want. Then you can either create a playlist and
delete the directory using some basic command line tools or just keep
the directory as a playlist.



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Sylvain BERTRAND
On Sun, Jan 15, 2017 at 01:03:53PM +0100, Martin Kühne wrote:
> While vlc is admittedly a bunch of crap...

+1

(could not resist to crap on this
 - "open source software which works well only on windows"
 - qt, then c++, abominous GUI
 - unwanted layer between their engine and ffmpeg, worse than mplayer one)

-- 
Sylvain



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
On Sun, 15 Jan 2017 13:03:53 +0100
Martin Kühne  wrote:

> While vlc is admittedly a bunch of crap, I have no real
> suggestion for a playlist editing player. you could wrap
> mpv with some playlist-managing DIY thing, though, as it
> does IPC but could as well be quit with SIGQUIT...
> 
> What's the reasoning behind this question though, why do
> you need to edit the playlist all the time?

I don't need it all the time, I use mpv too, but sometimes
I have a lot of videos I want to watch, but not in alphabetical
order, so I have to reorder them sometimes, and sometimes
I want to move a video in the playlist down because I feel
like watching it later. Sometimes I also want to add new
videos to the playlist.

Forgot to mention that it is preferable if it can playback
videos in faster than normal tempo. But I can work around
this with ffmpeg if necessary.

> 
> cheers!
> mar77i
> 



pgpfikw9hRC9S.pgp
Description: OpenPGP digital signature


Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Martin Kühne
While vlc is admittedly a bunch of crap, I have no real suggestion for
a playlist editing player. you could wrap mpv with some
playlist-managing DIY thing, though, as it does IPC but could as well
be quit with SIGQUIT...

What's the reasoning behind this question though, why do you need to
edit the playlist all the time?

cheers!
mar77i



[dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
Ahoy!

Does any have a recommendation for a video player
that has a good playlist where files can easily
be reordered? I'm getting tired of VLC causing
X to crash (although it looks like it is exiting
without actually crashing or aborting). So I don't
really care how crappy it is, as long as it has a
good playlist and does not crash X.


Mattias Andrée.


pgpihMXD42D4R.pgp
Description: OpenPGP digital signature