Comments disabled

1 Comment

Comments have been disabled for this blog.

Fix for apostrophe character

Christina (forum member efiabruni) is the author of pe_pplog, which I use for the blog that you are now reading.

There was a bug discovered recently. If the apostrophe character (') was used in comment titles, the comment was corrupted.

Efiabruni posted a fix:

...the apostrophe fix is in files and blog/, and is actually found in both of the patches:
blog/ subroutine to replace a ' with &apos Disabled bbcode on comments for security reasons

The latter patch also disables bbcode on comments, however I was uncertain about that and did not implement it.
I will need more feedback as to what the security risk actually is.

Kernel 3.12.11 with zram support

I was surprised that the 3.12.x kernel used in Quirky Tahr does not support zram. This is a compressed filesystem in RAM.
I had enabled it in some earlier kernels. It seems to have acquired a new dependency, that caused it to be de-selected when I compiled the 3.12.x kernels.

I have recompiled the 3.12.11 kernel, with these changes:

have added support for zram, builtin.

have changed aufs from module to builtin.

device drivers -->
staging drivers -->
[*] memory allocator for compressed images (CONFIG_ZSMALLOC)
<*> compressed ram block device support (CONFIG_ZRAM)

file systems -->
miscellaneous file systems -->
<*> aufs support

I want zram support, as I am playing with an idea for building Quirky as a live-CD. Don't know how far I will go with this, just thinking about a live-CD that boots up and runs totally in ram, using zram.

Note, not currently thinking about using aufs, even though have changed it to builtin.

The PET (25.2MB):

Slacko Puppy 5.7

There is a new Puppy released!

Mick (01micko on the Puppy Forum), is the coordinator of the Slacko series, built with Slackware binary packages.

The announcement on the Forum:

Download links are given on Mick's site:

Full announcement and release notes:

Extra notes:

Feedback and bug reports here:

New popup utility

I have always wanted to write a "popup" text-message utility from scratch, in C or BaCon, that is very efficient and does all of the various things that I would like a popup utility to do.

In Puppy and Quirky we have some popups that use gtkdialog, but I have always considered this to be less-than-satisfactory -- for example, 'yaf-splash' (gtkdialog-splash) and 'pupmessage').
There are others of course, such as xmessage, gxmessage, Xdialog, yad, etc. (and of course gtkdialog), most of which can do a lot more than simple information-popup, but are not really optimal for simple message-popup.

So, I have written one, named 'popup', in BaCon. It is written with HUG, with some GTK function imports and some embedded C. It runs as a daemon, that is, as a separate process, and once started you can optionally send more controls (commands) and text to it -- not by stdin or whatever, but by writing to a file.

I had originally thought that 'popup' could watch the file for modifications using inotify, but soon decided that is not suitable, for various reasons. Now, the GTK timer function is used, called every 500 msec, which is also convenient as a "terminate=<number>" control can be sent to tell it to quit after so many seconds.

Anyway, showing how it works by example, here is an invocation:
# ./popup "name=bk1 background='#00ffff' placement=top-middle|This text allows Pango Text Attribute Markup Language, for example <b>bold</b>, <big>big</big>, <small>small</small>, <i>italic</i>, <tt>monospace</tt>"

Which looks like:

Then this:
# echo "background='#ff0000' level=top flash=on writemode=append-newline|Now the message is on top layer and flashing, to draw attention" >> /tmp/popup_bk1

The popup comes to top layer and background flashes:

Then to terminate it:
# echo "terminate=now|" >> /tmp/popup_bk1

To find out all that it can do, just type "./popup" and hit ENTER key, or "-h" or "--help" then ENTER.

I have uploaded the source code to the BaCon forum:

I have placed popup into the Quirky build system, but it is a generic utility that will work in any Linux, including puppies.

Pages: [1] [2] [3] [4] [5] ...