olecom's blog

to ccurtis about text user interaface

Submitted by olecom
on May 22, 2008 - 8:25pm

> Would this make for a better links than elinks?

Run Borland Pascal 7.0 in dosbox to see what Turbo Vision was. Help system there is a nice browser, nither of today's lynx, links or elinks or whole www has. Pictures and flash are mostly spam, many don't know how to turn off.

dialog -> ncurses -> |stdout(ESC) -> tty -> vga_console |-> video RAM/frame buffer

fidi: file/directory choosing widget (not that much but something); moving to text editor

Submitted by olecom
on May 21, 2008 - 7:46am
shown concepts:
o `sh && sed && stty && dd` flexible patterns and no `find`, built-in `dd`
  are needed; mc, ncurses, readline are not
o key-vectors (tab is fixed origin)
o +,-,[,] keys - flexible UI config.
* tty backend needed: true windowing (move, overlap), stack-based coloring
  (easy multi-context highlighting).

lkml flame: causes, consequences and text editors

Submitted by olecom
on May 21, 2008 - 5:18am

#!/bin/sh: command modifiers: CPU affinity, ASLR, lightweight exec, capabilities

Submitted by olecom
on May 19, 2008 - 4:37pm
sed '' << 'EOF'
http://thread.gmane.org/gmane.comp.shells.dash/73
Let's listen to silence again now...

Update:
`set -F[rnd:$(read_ethernet_now)]` -- another choice
( # if there's no that much network activity:
wget ftp://ftp.kernel.org/another_kernel.tar.bz2 &
sleep "$seed"
set -F[rnd:$(read_ethernet_now)]
kill $!)
EOF

web surfing with `sh && nc && sed` and watching flash TV news in text mode.

Submitted by olecom
on May 19, 2008 - 1:03pm
flv=`sed -n '
/xmlfile/{
s-.*e=http://\([^/]*\)-url="nc \1 80" ; -
s_\(/[^"]*\)".*$_\
http="GET \1 HTTP/1.0\\r\\n\\r\\n"\n\
printf %b "$http" | $url | sed -n "/^<FLV/{s-<[^>]*>--g;p;q}"_p
q
}' "${1-/tmp/1tv}"`
$mplayer `eval "$flv"`

get a key: small elaboration about keyboard input

Submitted by olecom
on May 17, 2008 - 12:13am
Better and less ugly key-navigation is possible, if key-release
event and no repeating will be available; application must decide what
to do with input and how to do it. Stupid repeat, don't know ways
to configure it: ESC?, stty?, kbd_rate?, putty?, /sysfs/wtf?, xset?,
KDE?, GNOME?; even `xev` shows it as "press+release", raw mode from
kernel/keyboard i suppose. Geee!!!

ssh brute force

Submitted by olecom
on May 16, 2008 - 5:02am

Follow up to: "Brute-Force SSH Server Attacks Surge (InformationWeek)"

* default debian's "rootlogins: on" is bad;
* it's not easy to make multiple port sshds (dummy and real) due to bad /etc/init.d/ssh;
* i have login-only and work-sh-only accounts;
* script for login-only ones: ftp://flower.upol.cz/sys-olecom/+.profile

Programming Language Critiques

Submitted by olecom
on May 15, 2008 - 5:16am

I wonder, what would be there:
TO DO: What's so special about string and text processing?
trace:
http://pdos.csail.mit.edu/~engler/cool-people.html
http://pdos.csail.mit.edu/~engler/
http://www.stanford.edu/~engler/
big Q: where is Open Source of all that cool stuff?

nice spammy day, but i wanted to make (yet another) post about `sed`

Submitted by olecom
on May 14, 2008 - 4:48am

"You know sokoban. Everybody knows sokoban."

Best gameplay with:

stty -icanon -echo -echoctl; printf '\033c\233?25l'
while echo; do dd count=1; done 2>&- | sed -ne "
  `sed 's :q ^C g' <sokoban.sed`"
printf '\233?25h'; stty echo echoctl icanon

Animation: ftp://flower.upol.cz/dts/Sed0000/sokoban-intro.sh

#!/bin/sh: designing features for efficiency, flexibility and ease of use.

Submitted by olecom
on May 9, 2008 - 8:41am
$ sed '' << 'EOF'
Before i will continue my anti-`make`, anti-kconfig/kbuild, i need you
to know about `sh` ideas. `sh` is power, integral part of UNIX. This is
the first and main userspace tool, as important as kernel itself. But
it has its legacy and design problems, as well as complete lack of
development in last 20 or so years.

ftp://flower.upol.cz/dts/ash0000_var/ideas
EOF

sp@m: simply

Submitted by olecom
on May 5, 2008 - 7:18pm
After this comment about Jeremy's spam module for this site i think,
i have context to post some ideas about simple non-CPU, bandwidth
sucking, non GUI means of fighting cheap, non-human spam. I'm
stupid text-mode guy, thus:

* CSS obscurity (non-)captcha like for web
* To, In-reply-to, From, Message-id for SMTP/e-mail.

Linux: need of working and simple euidaccess() syscall

Submitted by olecom
on May 5, 2008 - 11:14am

* another bug report (thread)
http://thread.gmane.org/gmane.comp.shells.dash/36/focus=37
* another nice conversation with kernel hackers
http://thread.gmane.org/gmane.linux.file-systems/23151/focus=23160

the most simple shell `test` tool fail, yet they discuss case-insensitive renames, oh gee. Code part is raceless stripped linux-2.6/fs/open.c:sys_faccessat():

IDE (file changing/edit, flexible configure, building on-the-go): Linux kernel kconfig and kbuild alternatives.

Submitted by olecom
on May 4, 2008 - 9:10am

Important stuff. But it needs much more work, than linux kernel has and all useless GUI stuff does.

1) message after coding one smaller replacement of `test` in `dash`
2) message after yesterday's exercises with input, adds UI part.
3) side note about recurcive `make` and useless `make` itself.