Calvin Morrison | 31 Oct 21:53 2014
Picon

fsbm

hi,

I just released fsbm [0] a small bandwidth monitor

i rewrote cbm, a bandwidth meter to output to stdout instead of
writing out to curses. I find this to be more more palatable and I can
use it with i3 or whatever status bar system I want. the code still
sucks, but i only just hacked out the curses part, i now just need to
rewrite the statistics function.

overall, code is sucky, but better than before.

thought any cbm users might like it,
Calvin

[0] https://github.com/mutantturkey/fsbm

Daniel Camolês | 29 Oct 03:41 2014
Picon

rebooting the web (it was: surf rewrite for WebKit2GTK)

2014-10-28 22:04 GMT-02:00 M Farkas-Dyck <strake888 <at> gmail.com>:
> VM is an option, tho a less versatile one. We could use capabilities
> where available and VM elsewhere.

Well, that's already more than twice the complexity before it even
started to be written.

I researched a bit on VM's and distributed systems, and there are some
very interesting things happening. Harvard developed RockSalt[1], that
is a formal code verifier written in 80 lines to guarantee that code
is safe to be executed. The verifier itself have been put to formal
verification and up to the time of the publishing of the link below,
no breaches had been found.

One huge disadvantage of running native code would be portability. You
would need to cross compile and test on several plataforms to be able
to ship software. It's highly flexible though. Google NaCl[2] follows
this path, but its security problems were one of the motivations
behind RockSalt.  One big advantage is the near-native speeds: they
claim about only 5% of overhead when compared to native.

NaCl is currently only implemented in Chrome; Mozilla doesn't want
anything to do with it. They have asm.js, that is another way to run
C/C++ compiled in the browser. But asm.js is 2x slower than native
code.

If we are talking about rebooting the web, then why point out these
things that run from the browser? Because once such an alternative
proves to be better than traditional web developing, it would be a
matter of implementing the corresponding technology outside the
(Continue reading)

Eric Pruitt | 29 Oct 01:51 2014
Picon

[PATCH] Check for presence of SHELL environment variable


- POSIX states the SHELL environment variable "... shall represent a
  pathname of the user's preferred command language interpreter." As
  such, st should check for its presence when deciding what shell to
  use; just as HOME can be defined to override one's passwd-defined home
  directory, a user should also be able to override their passwd-defined
  shell using the SHELL environment variable.
---
 st.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

M Farkas-Dyck | 29 Oct 00:38 2014
Picon

Re: surf rewrite for WebKit2GTK

On 28/10/2014, Daniel Camolês <bigatojj <at> gmail.com> wrote:
> 2014-10-28 12:01 GMT-02:00 M Farkas-Dyck <strake888 <at> gmail.com>:
>> Distribute (source or intermediate) code over 9p. Generic client is 9p
>> client and (compiler or interpreter) of (source or intermediate)
>> language.
>>
>
> That's interesting, but there is a problem. How do you execute
> untrusted code? Maybe some kind of virtual machine?

Thus, or in capability mode.

Most program distribution systems what I know share this problem. It
is the user's responsibility to properly confine untrusted code.

Alexandru Salajan | 28 Oct 11:09 2014
Picon

tax on internet?

bit off topic... but serious threat for freedom

https://www.google.com/search?tbm=nws&q=internet+tax+hungary&oq=internet+tax+hungary

please spread

dequis | 27 Oct 03:01 2014
Picon

[PATCH] [st] Use inverted defaultbg/fg for selection when bg/fg are the same

The background/foreground of selected text is currently set by setting
ATTR_REVERSE, which flips its normal bg/fg. When the text being
selected has the same bg and fg, it won't be readable after selecting
it, either.

This may sound silly - my main use case is IRC channels using color
codes for black-on-black to mark 'spoilers'.

This patch allows that text to be read by selecting it, turning it
into text with white bg and black fg (given default values for
defaultbg/fg), just like most normal unformatted text when selected.
Paride Legovini | 26 Oct 20:26 2014

[dvtm] Truecolor support

Hi,

I see that st nicely support "truecolor" sequences, as it can be easily 
tested with this command:

printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"

that has to be given outside any terminal multiplexer. The point is that 
currently no terminal multiplexer (tmux, dvtm, screen) supports this 
kind of color sequences. I'd be interested to see this feature added to 
dvtm, but I'm not sure if it is possible as it may be a limitation of 
libncurses.

Did anybody try to implement this before?

Paride

dequis | 26 Oct 03:15 2014
Picon

[PATCH] [st] Fix issues with wcwidth() returning -1 for unsupported unicode chars

Hi suckless! First, thanks for st. Been using it for a long while,
still impressed at how it gets a lot of stuff right - stuff that urxvt
failed miserably at. There's only one issue that has been bothering me
particularly.

The issue itself:

Unicode characters added since unicode 5.2 (released in 2009, the
latest revision[1] is 7.0) are not supported by the wcwidth()
implementation of glibc, and as a result, they behave weirdly in st.
The man page of wcwidth() specifies that -1 is returned for invalid
unicode characters. I found a stack overflow question[2] about this
same issue.

How st handles it:

I made a gif[3] showing its behavior.

It just offsets the columns by the value returned by wcwidth,
expecting either 1 or 2, not -1. So each unsupported unicode character
behaves like a printable backspace.

Picked U+0524[4] for the tests. The st on the top shows the current
behavior, the st on the bottom is my patched version. The first two
lines typed in the gif are spaces followed by that character. Third
line is the letter 'a' just to show how it overlaps.

Then I used a tmux keybinding that is supposed to scan for URLs, but
the main effect here is refreshing the terminal contents, which makes
those characters vanish. That z^H is a typo, ignore that.
(Continue reading)

Dimitris Zervas | 26 Oct 00:00 2014
Picon

Macbook retina and dwm

Hello,

I just bought my macbook pro retina 13".
I am running Gentoo fairly well (a bit power hungry, I am open to suggestions, especially fan control).
The main problem is the resolution. If I downscale with xrandr, it does bitmap scales so the fonts are horrible.
Any ideas?
I though about system wide font enlargement or passing other resolution to X11 (possible?).

Quentin Rameau | 23 Oct 13:54 2014
Picon

surf rewrite for WebKit2GTK

Hi, I tried to port surf for the webkit2 (WebKitGTK 2.6 / GTK3), here
is the code:
git://quinq.eu.org/surf2
There will be some bugs, feel free to try it, feedback welcomed.

Kajetan Jasztal | 22 Oct 00:14 2014
Picon

[dmenu] dmenu based directory browser

Hi there!
Just want to share super-simple, crappy written yet quite useful (at
least for me) script I've written while ago.
I run it via bind with Ctrl+O

bind '"\C-o":". ~/.dbdb.sh\C-m"'

and the script

#!/bin/sh
CHOSEN="just for not being empty"
DMENU="dmenu -i -fn -*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*"
COLORS=" -nb #000000 -nf #706c9a -sb #000000 -sf #dddddd"
while [ "$CHOSEN" != "" ]; do
   clear && pwd && ls -X
   CHOSEN=`( ( echo "../" && ls -1p ) | grep "/" ) | $DMENU $COLORS`
   cd "$CHOSEN"
done

great job with suckless!


Gmane