jorgenmodin.net - Blog
I had the need for a quick and easy way to publish a table on some free web publishing service. The table must be easy to edit. However finding a free blog site or web publishing site where you can add tables in the wysiwyg editor turned out to be not that easy. In fact I have not found one yet:
|no wysiwyg tables. There are plugins for wordpress that have this, but they are not available at wordpress.com, at least not for free.|
|no wysiwyg tables|
|no wysiwyg tables and has peculiar ideas about password security and annoying captchas|
|no wysiwyg tables|
|Is supposed to have some wordpress plugins, which ones they are is not listed, but signup does not work whether using Firefox or Chrome from Ubuntu, so it will remain a mystery.|
|has a table "plugin" but it disappears when you try to click it in Google Chrome or Firefox|
|has markdown publishing, but does not support the markdown table format|
sux seems to do the job. If you are on Ubuntu:
sudo apt-get install sux
sux other_user_name gui_program_to_run
You may need to include the full path to the program you want to run, e.g. if is a Windows program to be run under wine
sux other_user_name wine /path/to/program
Haven't tried without full path though.
There is a "hidden" setting in Gnome that allows you to use two fingers on the touchpd (trackpad) to emulate right click (context click). Read more here:
The instructions are for Ubuntu, but the user appociappo's instructions worked like a charm on Debian 7. It contains a patch to setup.py, and flags for the C compiler and loader:
Link - [ubuntu] compile python 2.4 and 2.6 on 12.04 x86_64
Furthermore, if you are using bootstrap.py for e.g. a Plone buildout, this bootstrap.py seems to work:
Boot with a live CD or live USB. Assuming that your install is availableat /dev/sda1, then, quoted from:
sudo mkdir -p /media/ubuntu sudo mount /dev/sda1 /media/ubuntu
Then you need to mount the proc, dev, and sys filesystems into your new environment:
sudo mount --bind /dev /media/ubuntu/dev sudo mount --bind /proc /media/ubuntu/proc sudo mount --bind /sys /media/ubuntu/sys
Finally, chroot into it:
sudo chroot /media/ubuntu
Now edit /etc/default/grub, uncommenting out the line
and then run
There is a script walk-through at the bitcoin wiki. It is not all that easy to understand, since it could be formatted and presented better. I show here the current table as it looks on the Wiki, and then further down my hopefully improved version. Here is what the original looks like:
|Empty.||<sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG||scriptSig and scriptPubKey are combined.|
|<sig> <pubKey>||OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG||Constants are added to the stack.|
|<sig> <pubKey> <pubKey>||OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG||Top stack item is duplicated.|
|<sig> <pubKey> <pubHashA>||<pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG||Top stack item is hashed.|
|<sig> <pubKey> <pubHashA> <pubKeyHash>||OP_EQUALVERIFY OP_CHECKSIG||Constant added.|
|<sig> <pubKey>||OP_CHECKSIG||Equality is checked between the top two stack items.|
|true||Empty.||Signature is checked for top two stack items.|
So, in order to understand this, there are a couple of things that are kind of obscure in that table, namely:
- In the column "Stack" the top of the stack is the last item, which means that since the text wraps in the field, if there are multiple lines, the bottom-most item is at the top of the stack
- In the column "Script", it is actually the same script in all rows, just less and less of it.
- The comments seem to be written as to what the state is before the script part executes
It might be cleaner to do like this instead:
- Let the topmost item in the "Stack" cell in a row, be at the top of the stack, and number them.
- Only write the part of the script that is executed in a row. List entire script before the table for clarity
- Description should descibe what happens when the code in the row, operates on the stack in the row
Then it becomes like this:
Entire script is:
<sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG
|Empty.||<sig> <pubKey>||scriptSig and scriptPubKey are pushed onto the stack.|
||OP_DUP||Top stack item is duplicated.|
||OP_HASH160||Top stack item is hashed.|
||<pubKeyHash>||Constant pubKeyHash is pushed onto the top of the stack,.|
||OP_EQUALVERIFY||Equality is checked between the top two stack items. If not equal, script returns false and transaction is invalidated|
||OP_CHECKSIG||.Signature is checked for the two remaining stack items.|
If you use different devices for your XMPP chat, it can be a chore to have different nicks just so that you do not get kicked out or blocked when you log in from device number 2.
Newer versions of ejabberd (13.10 tested) allows this by default, however the old version (2.1.2) shipped with Ubuntu 10.4 does not. Openfire did not allow it in the version I tested, and it seems that it is not possible.
Just a note to self:
Create and configure lightweight, reproducible, and portable development environments.
Read more: Link - Vagrant
sudo fdisk -l
It will show all the volumes. My stick was at /dev/sdb1 .
Change /dev/sdb1 if the USB stick isn't there and enter its correct address.
If the USB stick is at /dev/sdb1, unmount it with:
sudo umount /dev/sdb1
Then format it with fat32 like so:
sudo mkfs.vfat /dev/sdb1
Oftentimes, I'd like to edit a div in Wysiwyg mode. But the Wysiwyg editors that I use (TinyMCE and CKEditor) do not seem to show divs in an easy way. They do show tables, with borders and all, and I assume the same could be done for divs.
I'd like to see where the divs are, be able to create a div, preferrably by selecting a piece of text and do a "wrap in div" command or some such. And I want to be able to select a div in Wysiwyg mode, and edit its CSS classes.
I guess you could go through their source code and model a div editing capability on the table editing capability.
Hmm, I just realized that showing the divs is just a matter of editing the CSS for the edit view. Half the problem solved.
- For version 4.2 of CKEditor there seems to be a plugin called Div Container Manager .
- Also one called Show Blocks
Div container manager looks promising, but I am not entirely sure of how to integrate it into my CMS, Plone. Just including the file does not work, and additionally adding "div" to the Plone toolbar configuration does not work either.
For TinyMCE there is visualblocks.