Monday, May 21, 2007

Setting up MediaWiki

A default install of MediaWiki will allow anyone to read and edit.
Adding these lines into LocalSettings.php will allow only logged in users to read/edit:

$wgGroupPermissions['*' ]['read'] = false;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;


Furthermore, adding the following will allow only sysop to create accounts:

$wgGroupPermissions['*' ]['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" );


See http://ericsantiago.typepad.com/eric_santiago/mediawiki/index.html

Tuesday, May 15, 2007

Developing add-on for Thunderbird

Introductory document
http://developer.mozilla.org/en/docs/Extensions

Find info regarding developing Mozilla extension here:
http://kb.mozillazine.org/Getting_started_with_extension_development
(e.g., install "Console2" extension to view Jscript errors)

<a href="DOM
The XML User Interface Language (XUL)
Thunderbird: DOMming Around
XMLHTTP notes: abort() and Mozilla bug
Traditional Ways of Tree Traversal
Thunderbird extension development hell
Firefox Extension Development Tutorial :: Overview

Indonesia dan Tagalog

Ini kata2 yang sama antara bahasa Indonesia dan bahasa Tagalog.

Indonesia Tagalog
minum inum
gunting gunting
nangka nangka/langka
kambing kambing
balik balik
dinding dinding
kanan kanan
sayang sayang
mahal mahal
murah murah
takut takut
aku ako
simpan simpan

Thursday, May 10, 2007

OpenWorkBench troubles

I have not been able to run OpenWorkBench on my WinXP Home.
I just saw a new post in the forum saying that in WinXP Pro the problem can be solved by running it as Administrator. Unfortunately it still does not work on my WinXP Home.
I tried on Vista Ultimate, even the install failed with "Internal Error 2739". Some googling revealed that doing "regsvr32 c:\windows\system32\jscript.dll" may solve the problem. The info was not specifically for OpenWorkBench but it solved installation problem. But then OpenWorkBench could not start, giving error message regarding JRE not present. I installed "Java Runtime Environment Version 6 Update 1" from java.com, this solved the problem.
Now OpenWorkBench runs on my Vista machine, but not on my main machine, i.e., WinXP.
And for the first time I saw it running: it's not that impressive...

Sunday, May 6, 2007

Redmine on FreeBSD

First get ruby's tarball.
Then do "./configure; make; make install"
Then install gems as follows:

ruby setup.rb

Then install rails as follows:

gem update
gem install rails --include-dependencies


Then basically follow this basic installation steps:
http://www.redmine.org/index.php?s=install
(getting ruby via SVN is recommended on ruby site... so do the following svn checkout svn://rubyforge.org/var/svn/redmine)

But there will be iconv related error when running rake (rake db:migrate RAILS_ENV="production" and so on).

Change directory to /ext/iconv inside ruby's tar ball directory, then do the following:

$ ruby extconf.rb --prefix=$HOME/app --with-iconv-dir=/usr/local
$ make
$ cp iconv.so /usr/local/lib/ruby/1.8/i386-freebsd5.4


This will elimiate iconv error.

Uncomment this on config/environment.rb

ENV['RAILS_ENV'] ||= 'production'


References:
http://www.imasy.or.jp/~garsl/td/?date=0509
http://www.machu.jp/diary/20041004.html#p01