Comments disabled

1 Comment

Comments have been disabled for this blog.


Fix for apostrophe character

12Comments
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:
https://github.com/efiabruni/pe_pplog/commits/comment_registration

...the apostrophe fix is in files pe_pplog.pl and blog/sub.pl, and is actually found in both of the patches:
blog/sub.pl: subroutine to replace a ' with &apos
pe_pplog.pl: 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

16Comments
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):
http://distro.ibiblio.org/quirky/quirky6/x86/packages/pet_packages-tahr/linux_kernel-3.12.11-nopae-builtin_aufs_f2fs_squashfs_zram-i486-tahr.pet


Slacko Puppy 5.7

5Comments
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:
http://murga-linux.com/puppy/viewtopic.php?t=90489

Download links are given on Mick's site:
http://slacko.01micko.com/download.html

Full announcement and release notes:
http://distro.ibiblio.org/puppylinux/puppy-slacko-5.7/release-Slacko-5.7.htm

Extra notes:
>http://slacko.01micko.com/notes.html


Feedback and bug reports here:
http://murga-linux.com/puppy/viewtopic.php?t=92503


New popup utility

8Comments
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:
http://basic-converter.proboards.com/thread/641/popup-utility

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] ...