Archive for November 2009

How to get/kill process in ubuntu

For example if process name is php, you can get a list of jobs by using the command bellow

ps aux | grep php

Result

root 7749 0.0 0.1 3236 796 pts/2 S+ 16:09 0:00 grep php
root [...]

Howto enable ssl and create self-signed ssl certificate

Enable ssl
In my case it was simple. I just ran this line

a2enmod ssl

Generate self-signed ssl certificate
Solution: http://www.akadia.com/services/ssh_test_certificate.html
Just follow instruction carefully. Make sure that i step 2 you need to enter a correct “Common Name”, ie your domain. Step 5 and 6 also different for different distributions and installation …
Summary in case link above is not [...]

How to set default OS in boot.ini

This is a boot setup for Microsoft Windows XP Professional and Ubuntu (wubi) where we have Windows XP as default and will be preselected on start of computer. This content can be found in c:\boot.ini (be aware this is a hidden system file).

[boot loader]
timeout=15
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
 
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
c:\wubildr.mbr="Ubuntu"

If we wish to start with [...]

Howto use vnkeys with TextField

vnkeys is originally designed to work with flash.text.TextField and you can feel it when typing. The replacement happens smoothly. It is easy to use and the code bellow will explain how to…

package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldType;
 
import org.vnmedia.vnkeys.KeyConverter;
import org.vnmedia.vnkeys.mapping.VNIMap;
// define swf dimension
[SWF(width=160, height=60)]
// this is an application class
public class vnmedia_vnkeys extends Sprite
{
public function vnmedia_vnkeys()
{
var textinput:TextField = [...]

How to bootstrap, autoload modules and classes with Zend framework

This post is for you that have read this quick start from Zend and our goal is to create a bootstrap like this one. We assume that you know how to create a project, layout, module, controller and action by using zf.bat, zf.sh or manually and further that you are able to create a helloworld [...]

How to install a .deb file

To install package called package.deb type the following command (make sure that all dependencies are installed)

sudo dpkg -i /path/to/folder/package.deb