melnikov.net.ru


« Previous Entries
Next Entries »

Web-based bug tracker

2008-01-23 06:25

For one small (web)project I need bug tracker / issue tracker / workflow system / name-is-as-you-wish tool. (read more…)

Tags: Debian, IT, php, WordPress | Comment this! »

Some FreeBSD docs

2008-01-23 06:21
  • Big book of wisdom: FreeBSD Handbook
  • small FreeBSD live distros/CDs
    • PicoBSD and more links
    • Frenzy (probably most up-to-date project) (seems as single developer project with small community)
  • Logrotation (built-in): newsyslog
    • config file: /etc/newsyslog.conf
    • article at onLamp
    • official docs
  • Real-time traffic analysis
    • trafshow (in ports) (basic in/out per IP stats)
    • systat (part of the base system) (general network statistics)
    • nifmon
    • ntop (isn’t very suitable for a firewall)

Tags: unix | Comment this! »

Software / Hardware RAID

2008-01-23 01:19

Here is translated piece of IDE hardware RAID discussion in ALT-linux maillist:

3Ware card (priced $200 roughly) is really hardware RAID, vendor-supported (and stable) module is already in Linux kernel. This is the best IDE-RAID card (at least ataraid-list maillist stated so) and actually the single really hardware-implemented RAID card.

On some hardware RAID solution from Fedora maillist:

MPlayer news page, post of 2004.07.23:

One of the hard drives in our project server is failing and needs to be replaced. Since it is part of a RAID1 array and performance suffers a lot when running RAID1 with different geometry drives we need either the same model as replacement or two new IDE drives.

Red these and many other opinions, I choose to go with Linux kernel-based software RAID for my current project.

Tags: IT | Comment this! »

Shaman tambourine for system administration

2006-11-26 08:47

Sorry, but if you aren’t system administrator, you probably will not understand this (from here).

Tags: humor, IT | Comment this! »

Vanilla and WordPress integration

2006-11-26 01:28

This is mall manual describing steps to integrate Vanilla forum “to the middle” of Wordpress blog: surround forum engine output with Wordpress header, footer, sidebars, etc.

This must be done after you will read and done “official” Wordpress integration manuall for Vanilla. This will allow two apps use the same users base and same authorization.

There are solution existing already on
Vanilla community forum, but my is slightly more elegant way. The benefit ot this solution is slightly better performance — no connection closing and reopening.

Steps:

(1) Go to /library/Framework/ folder. There are file ‘Framework.Class.MySQL.php’ file. Copy it to the same folder, but with name ‘Framework.Class.WordpressDB.php’.

(2) Edit this new file:

(2.1) replace ‘class MySQL extends Database {’ line with:

class WordpressDB extends Database {

(2.2) replace function GetConnection() with this one:

function GetConnection() {
## use DB connection established by WordPress
global $wpdb;
if( $wpdb->dbh ){
$this->Connection = $wpdb->dbh;
} else {
$this->Context->ErrorManager->AddError($this->Context, $this->Name, ‘GetConnection’, ‘$wpdb->dbh does not exist, Wordpress is not initialised:’, $php_errormsg);
}
return $this->Connection;
}

(2.3) replace function MySql(&$Context) with this:

function WordpressDB(&$Context) {
$this->Name = ‘WordpressDB’;
$this->Context = &$Context;
}

(3) in your /conf/settings.php or your /conf/database.php add line:

$Configuration['DATABASE_SERVER'] = ‘WordpressDB’;

(4) go to database and comment out all strings tarting with $Configuration['DATABASE_ -- you will not need them anymore.

If now Vanilla works, create new theme for it and customize it: replace some Vanilla code with WP calls like get_header(), get_footer(), etc.

If you need to change Vanilla templates rendering order, use $Configuration['CONTROL_POSITION_ (...) variables. In my /conf/settings.php file there are two such lines:

$Configuration['CONTROL_POSITION_MENU'] = '598';
$Configuration['CONTROL_POSITION_PANEL'] = ‘599′;

Note that both engines will co-exist in the same space, so conflicts could happens. For example, if you have ‘Role Manager’ Wordpress plugin installed, it will conflict with Vanilla object with the same name.

Tags: php, WordPress | Comment this! »

« Previous Entries
Next Entries »

  • grub
    xen
    security
    windows remote
    serial
    virtualBox
    ups
    windows
    virtualization
    psy
    webTech
    linux
    unix
    RAID
    blogs
    humor
    plugin
    php
    WordPress
    IT
    Debian
    • about this site
    • contact me