About

This site is a place for us Byte Craft folks to dump, blog, rant about and host various stuff related to our work. Han, also known as angch, maintains this site. This is also site for us to experiment various things so there might be breakage from time to time. This site also suffers from shoemakers-kids-go-barefoot syndrome, sorry.

Drupal: Disable region on certain url path

Need to disable 'region' on certain url path such as 'admin' or 'edit'. Previously it did involve hacking the core block.module (not me).

TinyMCE with Drupal

The 'disable-richtext' link doesn't work. It give an error message as:-

Error: tinyMCE.getEditorId is not a function

http://drupal.org/node/215580#comment-721556

Need to insert Drupal break tag to split the content into teaser.

http://drupal.org/node/247163#comment-846147

Apply those two patch and so far it works. Using TinyMCE module version 5.x-1.9 with TinyMCE 3.x I guess.

mysql tuning

Random note, Ubuntu Hardy, mysql/innodb tuning (more like frobbing).

[mysqld]
query_cache_limit = 2M; was 1M
query_cache_size = 32M; was 16M
innodb_file_per_table
innodb_buffer_pool_size=128M
innodb_log_file_size=32M
innodb_log_buffer_size=12M

default-table-type=innodb

Dump/restore required, nuke the orig log file first before restarting

dbase module for PHP5 on Ubuntu

Using Firefox multi profile

Firefox allow us to specify multi profile, other than just the default. This is useful for example to test web application with different users has to logged in into the system. The usage is quite simple:-

$ firefox -ProfileManager

will show a dialog box for you to select which profile to use or create new one. But once you have an instance of Firefox running, the dialogue box is not displayed anymore.

Public Sector ICT Personnel Seminar

BC has been invited to speak at the Public Sector ICT Personnel Seminar - Series 2/2008 which will be held in Melaka, 20/10/2008. Our very own Kamal will be speaking about the finer points of using Drupal as a content management system and beyond. Attached are the slides.

FOSS.my


We'll be one of the sponsors for FOSS.my, an event to bring together FOSS people in Malaysia to share and learn. Plenty of local and international speakers. I may or may not speak at the event, but will definitely rant about stuff in one of the lightning talks. Helping out to organize the event as well.

This is back-to-back with MyGOSSCON '08, so it'd be tiring like heck for me.

MyGOSSCON 2008

OSCC/MAMPU is having its FOSS annual, MyGOSSCON 2008 on 5-6 Nov 2008 at PICC. Angch will be speaking at the event. BC will probably set a booth there. Our first booth in 3 years!

IE innerHTML - "Unknown runtime error"

"Unknown runtime error" -- only in IE. Occur when click 'innerHTML WITH form tag'

<html>
<body>
<form>
<div id="replaceme"></div>
</form>
<div onclick="replace();return false;">innerHTML WITHOUT form tag</div><br/>
<div onclick="replace2();return false;">innerHTML WITH form tag</div>
<script>
function replace() {
document.getElementById('replaceme').innerHTML = 'REPLACED';
}
function replace2() {

Syndicate content