Wednesday, February 27, 2008

ToDo-Repo

I need a small howto on creating and maintaining repositories.

Tuesday, February 26, 2008

qemu

I wanted to have a system for development and testing and since I found it to be a hassle to maintain multiple systems, I wanted to have a look at virtual machines for this. I recently got a core2 duo with 2 GB ram and intel motherboard. All I did was to follow this page and my virtual machine was ready. These are the exact steps.

1. I had F8 DVD extracted to /var/www/html/F8 of my laptop
2. Did a wget of F8/images/boot.iso
3. qemu-img create -f qcow2 4gb.img 4G
4. qemu -cdrom boot.iso -hda 4gb.img -m 256 -boot d
5. Selected http install, pointed to correct url, selected default layout, no desktop, devel + servers

Allowed the installation to take its own sweet time to finish

When it was over, I rebooted with 512MB RAM. I am now planning to get KQemu

Sip error/response codes

http://www.voip-info.org/wiki/index.php?page=SIP+response+codes

Wednesday, February 20, 2008

ഭൂലോക വല വിഷയാനുസൃതമായി ക്രമീകരിച്ചത്.

ഭൂലോക വല വിഷയാനുസൃതമായി ക്രമീകരിച്ചത്.
ശൃംഗലയിലെ ഏറ്റവും വലിയ മനുഷ്യ-പരിശോധിത സൂചിക നിര്‍മ്മിക്കുവാന്‍ സഹായിക്കുക

And the translations are...

The web organized by topic into categories.
Help build the largest human-edited directory on the web.

:)





Sunday, February 17, 2008

Adding color to dokuwiki text

http://wiki.ioslo.net/dokuwiki/color

Copy the plugin-source below, and paste it into <dokuwiki-root>/lib/plugins/color/syntax.php

<color red> </color>


<?php
/**
* color-Plugin
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Carl-Christian Salvesen <calle@ioslo.net>
* @version 0.1.20050622
*/


if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'syntax.php');

/**
* All DokuWiki plugins to extend the parser/rendering mechanism
* need to inherit from this class
*/

class syntax_plugin_color extends DokuWiki_Syntax_Plugin {

/**
* What kind of syntax are we?
*/

function getType(){
return 'formatting';
}

/**
* Where to sort in?
*/

function getSort(){
return 100;
}


/**
* Connect pattern to lexer
*/

function connectTo($mode) {
$this->Lexer->addEntryPattern('<color(?=.*\x3C/color\x3E)',$mode,'plugin_color');
}

function postConnect() {
$this->Lexer->addExitPattern('</color>','plugin_color');
}

/**
* Handle the match
*/



function handle($match, $state, $pos) {
if ( $state == DOKU_LEXER_UNMATCHED ) {
$matches = preg_split('/>/u',$match,2);
$matches[0] = trim($matches[0]);
if ( trim($matches[0]) == '' ) {
$matches[0] = NULL;
}
return array($matches[1],$matches[0]);
}
return TRUE;
}
/**
* Create output
*/

function render($mode, &$renderer, $data) {
global $conf;
if($mode == 'xhtml' && strlen(trim($data[0])) > 0) {

$renderer->doc .= '<span style="color: '.$data[1].'">'.$data[0].'</span>';
return true;
}
return false;
}

}


Saturday, February 16, 2008

Resetting mysql passwd

Last method did not work. But this did


Alternatively, on any platform, you can set the new password
using the mysql client(but this approach
is less secure):



  1. Stop mysqld_safe and restart it with the
    --skip-grant-tables --user=root options
    (Windows users omit the --user=root
    portion).



  2. Connect to the mysqld server with
    this command:


    shell> mysql -u root



  3. Issue the following statements in the
    mysql client:


    mysql> UPDATE mysql.user SET Password=PASSWORD('newpwd')
    -> WHERE User='root';
    mysql> FLUSH PRIVILEGES;

Resetting mysql password

  1. Ensure that you have stopped all running instances of mysqld


  2. Create a text file and place the following command
    within it on a single line:


    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');


    Save the file with any name. For this example the file
    will be ~/mysql-init.




  3. Restart the MySQL server with the special
    --init-file=~/mysql-init option:


    shell> mysqld_safe --init-file=~/mysql-init &


    The contents of the init-file are executed at server
    startup, changing the root password. After the server
    has started successfully you should delete
    ~/mysql-init.



  4. You should be able to connect using the new password.

(From site http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html )

Wednesday, February 13, 2008

Immediate ToDo List

1. Gain administrative knowledge of sipx
2. Gain knowledge of sip
3. Gain knowledge of sipx code


Powered by ScribeFire.

Tuesday, February 12, 2008

E1 PRI VoIP gateway

Today I had to get our sip proxy working with a PRI gateway of our own company. Needless to say this turned out to be a very painful exercise. PRI gateway had an issue and then it took us a day to resolve it. In the meanwhile everyone thought that our proxy does not work. Also, there were other issues w.r.t to analog lines. This made me conclude that, if we have a good RFC abiding product, we should bundle it with a few other RFC abiding products and first test it against them. So, I was looking for the price of an E1 PRI gateway.

When I looked for them, I found that prices are from $3K-8K for the kind of stuff that we were using. That is lot of money :(. I am still searching for a cheaper one!


Powered by ScribeFire.

Sunday, February 10, 2008

ELDK for ppc

http://www.denx.de/wiki/view/DULG/ELDKDownloadPowerPC

Getting this also for the real work.


Powered by ScribeFire.

Debian sarge for ppc

http://www.oszoo.org/wiki/index.php/Debian_sarge_ppc.tar.torrent

Well, I need to port asterisk to ppc. I am not sure how I am going to proceed. But I know, I will make a few ppc virtual machines and play around. And... Qemu + this distro seems to be the way to go.


Powered by ScribeFire.

What is this?

Yes, I have a few blogs at blogspot now. But, this one has a very different aim of being there. It only exists for taking notes. ppl might ask me about google notes or some other fancy application. I have tried a few and hate them all. Now I got ScribeFire and this looks like the most simple way to copy links and notes when I am browsing. Let me try this for a while!


Powered by ScribeFire.