Posts

Hideable navigation on Custom Home extension

To make more space in the main column, we can try to wrap the navigation using div, so that it will be hidden  on window load. This example shows how to wrap the navigation using typoscript. In this example, the navigation is defined in left_nav object: page . 10 . subparts   {   left _nav . wrap   =   < div   id = "nav1"   class = "nav" >< div   class = "nav-btn" >< img   width = "16"   height = "16"   alt = "Info"   title = "Info"   src = "../typo3/sysext/t3skin/icons/module_web_list.gif" >< /div >   |   < /div> } The div above will be processed by jquery so that it will be hidden by default, we can hover on the icon to make it visible, and then we can access the navigation.

Changing Shibboleth Hostname

Introduction When we change the hostname, for example: idp.example.com to idp.example2.com, we need to change the definition in configuration file and also the SSL certificate. The information below, lists which files are needed to be changed. Changing IDP hostname When we change the IDP hostname, the following files should be edited: edit shibboleth2.xml on SP server edit relying-party.xml (IDP SSL cert path) edit idp-metadata.xml (hostname and ssl cert) edit apache conf (SSL cert path) After that, restart both IDP and SP services.

Belkin F7D1101 Wireless USB on android Cubieboard

Image
Preconfigured Android Livesuit image from Cubieboard website only support Wireless Usb with RTL8192cu and RTL8188eu chipset. For anyone that have wireless USB with chipset 8712u (8188su) such as Belkin F7D1101  ( list of similar device ) must add the driver manually. Here you can find how to compile the driver and configure it in android cubieboard.

Shibboleth IDP and Kerberos

Image
Intoduction Shibboleth IDP can use Kerberos as authentication mechanism, but Shibboleth IDP still need a LDAP or any database system to get the user's data and to release the attributes to the Shibboleth SP. To setup a Kerberos mechanism in Shibboleth IDP, we need at least: Working Kerberos System. Working Kerberos client in the Shibboleth IDP server. /etc/krb5.conf is configured properly. Working Shibboleth IDP server. At first, we need to install Kerberos Login Handler in the working Shibboleth IDP server. The Original file and documentation can be found  here .

Doc Creator (doc_creator) for typo3

This extension is based on PDF Generator 2. This extension uses htmltodocx , PHPWord and SimpleHTMLDom as the converter engine. So, it is a pure php converter and should work in any OS. Because of the limited function from PHPWord, it can only convert simple html page into docx. You can find the extension installer on TER. example in the template Constants: doc_creator   {    top   =   18    bottom   =   20    left   =   15    right   =   15    string_search1   =   < body >    string_replace1   =   < body >   < ! - -   DOCX Body   - - >    regexp_search2   =   ( < a   ( . * ? ) > &larr ; ( . * ? ) < /a > )    regexp_search3   =   ( < a   ( . * ? ) > ← ( . * ? ) < /a > )    regexp_search4   =   ( < a   ( . * ?...

VGA out for cubieboard

Image
Because my TV is used mainly for watching. I need an alternative display output for my cubieboard. The easiest way is using CVBS pin, and attach it to RCA jack to connect to video input. But I don't have another display with video in, so I need to built VGA out for the cubieboard. Component needed : 3 x 75 ohm low-tolerance resistors. 1 x 74ACT08D quad AND gate. 2 x bat54s SCHOTTKY diodes (I can't find it in my local store, so I change it with 4 x bat85s or any SCHOTTKY diodes). 1 x 100 nF low-tolerance capasitor. 1 x VGA DB15 connector.

Mysql backup using php script

When you make backup using mysqldump, you will get one big file in your backup folder. If you want to move the backup file to another server or just want to save it in your local computer, it will take time because of the size of the file. Indeed, you can split it per table. This script can help you to backup your mysql database, and splits the backup file every 10 tables.