TinyMCE Images Upload plugin



  • Allows to upload images in 2 clicks;
  • Optional image auto-resize (the maximum width and height of an image can be specified in config file);
  • Optionally prohibits uploads that exceed the maximum image width, height or the maximum file size (all set in config file);
  • Optionally disables uploads of image file formats that are not marked as allowed.


  1. Download distribution pack. Unzip it into TinyMCE’s plugins folder.
  2. Edit config.php file found in plugins/jbimages. Minimally, you should only specify a target directory for your uploads. Every block of config.php is well-commented, so I think everything should go right.
  3. Activate jbimages plugin and add jbimages button in TinyMCE. Don’t forget to set theme:advanced and relative_urls:false.

How To Use Docker

Step 1.

Install CentOS7 Minimal 64-bit as a virtual machine.
I am using VMware Player as the hypervisor.

Create a new virtual machine.

Install CentOS onto the virtual machine.
You only need to click ‘Done’ for the ‘Installation Destination’ then ‘Begin Installation’.

It starts installing.
You can set a ‘root’ password here.
I just use ‘password’

Step 2.

Once installed you’ll be at the command line.
Login using username ‘root’ and password ‘password’

We must configure our Internet connection first.

Edit a connection
Enable ‘Automatically connect’, by pressing spacebar

systemctl restart network

We should update CentOS

yum -y update

Step 3.

Now we install Docker

yum -y install docker docker-registry
systemctl enable docker.service
systemctl start docker

Check if Docker is working

systemctl status docker.service

You should see in green text ‘active (running)’

Step 4.

In order to run an application in Docker you must make it into an image.
You can get ready-made images from:
Also running each image requires different commands which will be listed here

You can try running an image, by using the following command, but it won’t work, since we have no images downloaded.
ABC in this context would be the name of an image

sudo docker run ABC

Check what images we have

docker images

We have none

We will download Dell’s LAMP image

docker pull dell/lamp

Check what images we have again, now we have one

docker images

Step 5.

Now run Dell’s LAMP image in Docker

sudo docker run -d -p 8080:80 dell/lamp

Now we test if the LAMP is working, by trying to get a message to display in the command line first then a browser
If one browser doesn’t work, try another
If we get a ‘Hello World’ message, we know it works

curl http://localhost:8080

yum -y install net-tools

Note down your IP address
Should be the 2nd network adapter
With IP address 192.168.***.***
Now in a browser type:

It should display the Dell symbol
Hello world!
MySQL Server version: 5.5.43-0ubuntu0.14.04.1

Step 6.

Now we create a image and load it into Docker

Make a directory and put it in there
Navigate to it

mkdir /tmp/hkitblog
cd /tmp/hkitblog
touch Dockerfile

We now create some kind of script that will pull
a docker image of Ubuntu from the Docker servers
so we can load it in Docker

It will also include Ruby with the Ubuntu install

vi Dockerfile

Press INSERT to type
Press ESC to stop typing
Use this to save and exit:
# this allows for comments

Type this into the script:
# Dockerfile build ubuntu with Ruby
FROM ubuntu:14.04
# Author
# Commands
RUN apt-get -qq update
RUN apt-get -qqy install ruby ruby-dev
RUN gem install sinatra

Step 7.

This builds the image in the script
Then runs it

sudo docker build -t=”ouruser/sinatra:v2″ .
sudo docker run -t -i ouruser/sinatra:v2 /bin/bash

Step 8.

After doing that, we are now inside Ubuntu, which is inside CentOS
We will write a Ruby script to test if the Ubuntu is working OK

mkdir /tmp/ruby

vi hello.rb

Write this in the script:
puts “Hello World”;

Now run the script

ruby hello.rb

To exit from Ubuntu, back to CentOS

Press Ctrl P+Q

That completes this demonstration!

8 Typography Design Elements To Consider for Print & Web Design

Typography is a fundamental principle of good design. Whether you’re designing for print or the web, good typography helps balance the visual structure of your design between the content and the visuals. Apply these eight elements of typography to make sure your viewer can navigate through your content the way you’ve intended.

1. Color Contrast

Good color contrast may seem like an elementary concept, but there are some easily overlooked things to note when selecting colors for your typography and overall design. Continue reading 8 Typography Design Elements To Consider for Print & Web Design

Change File Attachment Size In Zimbra

A client asked that the file attachment size for email be increased.
They are using Zimbra running on a Ubuntu server.
I tried different methods until I found one that worked.

Method 1

1. Using the Zimbra admin console (web based GUI)
2. Configure
3. Global settings
4. General information
5. Max size of a file uploaded (kb) – change from 10240 to 20480

Result – Failed
Reason – It states that server settings override global settings,
but there’s no server settings to alter attachment size anywhere in the admin console.

Method 2

1. Log onto the mail server running Ubuntu
2. Using putty at 111.222.333.444
3. Log in as user ‘username’
4. Checked “zimbra” user exists using: cat /etc/passwd
5. Change user to “zimbra”
(‘su – zimbra’ doesn’t work, because I don’t have the password)
6. ‘sudo -u zimbra -i’
This asks you for your ‘username’ password instead
7. ‘zmprov mcf zimbraMtaMaxMessageSize 20480000′
Now shutdown ubuntu for changes to take effect
Seems like no command to just restart zimbra
Need to be root to initiate shutdown
Our ‘username’ has admin access, can’t use root no password
8. Changed to ‘username’ user
9. ‘su – ‘username”
10. ‘sudo shutdown -r 1′
-r = restart after shutdown VERY IMPORTANT! If you’re doing this remotely, otherwise someone will have to switch the machine back on!
1 = shutdown in one minute

Result – Failed
Reason – Only changed message size

Method 3

Basically do above but change this variable instead:
‘zmprov mcf zimbraFileUploadMaxSize 20480000′
The size is in bytes, but due to some conversion, instead of 20MB it’s actually 15MB

Result – Works!!!
Reason – Changed the parameter on the correct variable

Install Windows 8.1 On Tablet

I was assigned the task of installing Windows 8.1 English onto a tablet. Specifically a Samsung Slate T700.

I had a Windows 8.1 install disc and a external optical drive. It is possible to use a USB flash drive to do this as well. But I decided to do this using disc.

The tablet had only two USB ports and I needed three. One for the keyboard. I was given a bluetooth keyboard but I do not think this will work, since bluetooth does not work during a install process. And the optical drive needed two usb ports to provided enough power. I just plugged a USB extension cable into another neighbouring computer. I think this tablet comes with a keyboard turning it into a laptop, but I was not given this.

I then restarted the tablet. You then hold down the power button on the right side and the windows button on the centre bottom. This allows you into BIOS to change the boot order. The 3rd tab is labelled ‘Boot’, using the right arrow key move across to it. I got 6 boot options, the optical drive was below the main hard disk.

Took me a minute to figure out, but pressing Enter selected a item. And pressing the space bar moved it down. The arrow keys do not work. So you keep pushing things down until they are in the order you want.

After this I pressed F10 to save and exit. The tablet then booted from the optical drive, this seems to take a minute. Then you get the familiar Windows install screen. The touch screen is actually active during the installation process so you use this in place of a mouse.

I went through the usual prompts and options to choose from and Windows installed itself.