Monthly Archives: November 2012

Plone install and customisation

Install

Download last stable release from:

http://plone.org/products/plone/releases

Read the INSTALL in the tar ball, Install it.

start/stop

xxx/zinstance/bin/plonectl start/stop/restart

Open host:8080 in your browser, and create a new Plone instance, e.g: cms

Customisation

Any customisation must be done when plone is not running, and after your change, run xxx/zinstance/bin/buildbot and start plone again.

Time Zone

Plone default runes in GTM+0 time zone, if you want Plone show time in you local time zone, such as in document by line, search result, you need tell Plone which time zone you’re:

Add a TZ environment vary in the zinstance/base.cfg

# You may also control the environment variables for the instance.
environment-vars =
        ${buildout:environment-vars}
        TZ Etc/GMT+8

Note: very vary must stands in a new line.

WebDAV support

If you want to access your contents in plone via the WebDAV protocol, add a new in the base.cfg

# webdav support
webdav-address = 1980

Add-ons

Plone only provides some basic content type, install add-on to add new type as you need

Add new Add-ons in the zinstance/buildout.cfg

# Eggs
# ----
# Add an indented line to the eggs section for any Python
# eggs or packages you wish to include.
#
eggs =
    Plone
    Pillow
    lxml
    Products.PloneFormGen
    Products.Ploneboard
    Products.OpenXml

Products.PloneFormGen – Create form and collect data from it, useful if you want to some survey.

Products.Ploneboard – If you want create BBS, or a forum, it’s be test.

Products.OpenXml – Add support for index Excel files

Index for PDF/Doc/Docx/Excel

If you want to search key word from the content of PDF/Doc/Docx/Excel, You must install some packages into your operating system. So that Plone can use them to index these files.

sudo apt-get install wv poppler-utils

Reference to >>

For support index of Docx, install add-on Products.OpenXml is enough.

Increase login session time out period

If you don’t want to login every day when you access your CMS, You need to customise the session time.

Reference to:

http://plone.org/documentation/kb/cookie-duration

http://davidjb.com/blog/2011/03/increasing-plones-session-timeout

Android screencast in Qt

Yet another Android screencast wrote in Qt (desktop application) as an alternative for the orginal android screencast in java.

 Features:

 * Click and swipe on the screen (so you can unlock screen by swipe)
 * Virtual menu/home/back key on the UI
 * Virtual QWERTY key support
 * Auto connect to your device when plug in
 * Auto turn screen on (wakeup) when connected
 * Auto resize to fit the screen resolution of the device
 * Zoom window as your wish and keep the ratio
 * Click on window to wakeup the device (emulate power key press event)
 * Support both Android ICS and Jelly Bean. Froyo not tested.
 * Support customized 'screencap' for speeding up (RGBA32, RGB888, RGB565)
 * Auto enable compressed data transfer if 'minigzip' found on the host
 * 1~2FPS on MSM8625 device (1.2G dual core, 512M memory, 800×480)
 * Wrote in Qt 4.x, easily port to different desktop environment
 
Non-feature:
 
 * Not support multi devices pluged in at the same time.
 
More infomation:
 
 
Screenshots:
 

Screenshot-1.png
Screenshot-2.png
Screenshot-3.png
Screenshot-4.png