Tag Archives: console

PHP doesn’t execute scripts

Neither using CLI (with -f or a shebang) nor through Apache.

It was just dumping the script to stdout, and that means short PHP tags (<? ... ?>) are disabled. Nothing serious, fixed in php.ini.

But then it just did nothing. No output, no errors, no warnings. Turned out this particular version of PHP can’t read DOS-formatted text files. To change them to Unix, in vim:

:set ff-unix

This happened after I flipped from FreeBSD to Arch Linux.

urxvt (rxvt-unicode): port installation defaults

cd /usr/ports/x11/rxvt-unicode
sudo make -DWITHOUT_PERL -DWITHOUT_XIM -DWITHOUT_UNICODE3 -DWITHOUT_MENUBAR \
-DWITHOUT_RXVT_SCROLLBAR -DWITHOUT_NEXT_SCROLLBAR -DWITHOUT_XTERM_SCROLLBAR \
-DWITHOUT_PLAIN_SCROLLBAR -DWITH_HALF_SHADOW \
-DWITHOUT_LINESPACE -DWITHOUT_TERMINFO -DWITHOUT_AFTERIMAGE
sudo make install -DWITHOUT_PERL -DWITHOUT_XIM -DWITHOUT_UNICODE3 -DWITHOUT_MENUBAR \
-DWITHOUT_RXVT_SCROLLBAR -DWITHOUT_NEXT_SCROLLBAR -DWITHOUT_XTERM_SCROLLBAR \
-DWITHOUT_PLAIN_SCROLLBAR -DWITH_HALF_SHADOW \
-DWITHOUT_LINESPACE -DWITHOUT_TERMINFO -DWITHOUT_AFTERIMAGE

vim: port installation defaults

Not to forget:

cd /usr/ports/editors/vim
sudo make -D WITHOUT_X11
sudo make install -D WITHOUT_X11

Otherwise, it installs GTK 1.2.

Console RSS news reader

I was looking for one today, and only found these three:

Raggle – written in Ruby, last version dates 2004, feeds-articles-content layout common to graphical aggregators.
Snownews – a simple list layout.
Newsbeuter – very much like mutt in layout.

All three support some sort of filtering/grouping; and importing/exporting OPML.

Here’s the memory usage:

PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
36264 user 1 96 0 24100K 19852K select 0:12 0.00% ruby
36506 user 1 5 0 14388K 10632K ttyin 0:07 0.00% newsbeuter
35062 user 1 5 0 6728K 3664K ttyin 0:00 0.00% snownews

Other notes:

  • Snownews doesn’t support Atom. The other two do.
  • Snownews and Raggle have feed encoding conversion problems, at least on my machine. Newsbeuter doesn’t.
  • Snownews and Raggle can be run under cygwin. Don’t know about Newsbeuter.