Linux in nepal

Posted by yalamber on June 20th, 2008 under Uncategorized, linux Tags: ,  •  No Comments

As we all know. Most of the people in developing country like ours In Nepal are using the pirated version of the Operating system(particularly windows). Which is both illegal and not secured. We get OS in around Nrs 40 from any software dealers, We are also used to using the pirated sofwares that we get around same price. Although there are other Operating systems(Linux) around available for free. We just don’t give much attention to it as we are used to of So what caled windows. As of funcationality is concerned I find linux is much more capable and better than windows.

Many people thinkn that linux is too hard to learn. But there are many Linux which offer same desktop environment as that provided by windows. You will also get the office packages for free. There are many softwares available for free to Linux users.

At this point i would suggest you to get yourself Ubuntu linux. If you can install windows on your own. You will also be able to install this on your system. With latest ubuntu 8.04 you will be able to install it directly from your wondows environment too as you would do any application. This won’t even make you to uninstall the wndows form your system and while booting you have choice to select your operating environment.

Get your self free from viruses and be leagal. Go with linux.

Best tutorials site for web development

Posted by yalamber on June 9th, 2008 under Tutorials Tags: , , , ,  •  No Comments

Today I am going to post some of the best available tutorial sites for web development and designing.

1. www.tizag.com

I find this site very useful for starter. It has tutorials on html, css, javascript, php, asp, xml, mysql etc. I refer this site if you are beginner and want to get some fundamentals on any of the language above.

2. www.w3schools.com

This site provides tutorials on most of the web languages. It also has some quiz to test your skills. Get in to this school before you get ready for web arena.

[ad#yalamber]

3. www.tutorialized.com

Offers wide variety of tutorials categorized in various category. It actually doesn’t provide it’s own tutorials. What it actually does is provide links to various site that are providing tutorials. The links are opened in the iframe within the site. It will be very useful if you once follow the sites I listed above and then use this site to get some practice.

These should be enough. If you want to add any please comment. It will be useful.

Mundhum.com released

Posted by yalamber on June 6th, 2008 under php, phpizabi Tags: , , ,  •  No Comments

This is a phpbb3 based site. In this site, I have disabled the default registration and account management system of phpbb3 and provided access to users from kiratisaathi.com which is a phpizabi based site. I have changed some theme of default prosilver to match the look of my site.

The tutorials i got useful for developing this site are linked below:

How to integrate phpbb3 template, session and other system to your site.

and Integrating with phpbb3 forum system

These tutorials were helpful for me to integrate the users from kiratisaathi.com(phpizabi) to mundhum.com(phpbb3). As it provides a useful class aswell. Since the password hashing is different in phpizabi and phpbb3 it was difficult to integrate both system, but thanks to this tutorial it got me working someway out.

visit this site at www.mundhum.com

socialengine

Posted by yalamber on May 31st, 2008 under Uncategorized Tags: , , , , ,  •  No Comments

I have been working with socialengine script for few days now. It should be really considered as a powerful solution for your community. If you are serious about your community site and thinking for any platforms I would suggest you to go with socialengine. It’s not free though but is totally opensource and comes no branding out of the box. You can find more about it at www.socialengine.net

Tcpdf a pdf generating php class

Posted by yalamber on May 9th, 2008 under Tutorials Tags: ,  •  13 Comments

I needed to generate a pdf dynamically from the website for one of my project. On my search for a good library i came across TCPDF . It is a Free Libre Open Source Software (FLOSS). You can see more about it here. What today i am going to write is to how quickly use tcpdf for your pdf generation need on the fly.

First download tcpdf and extract it.

Upload the extracted tcpdf folder to your site.

now set the variable according to your site in tcpdf/config/tcpdf_config.php file.

Now after you have successfully installed tcpdf. Now you can see examples to generate the pdf in examples folder or follow following steps. I had to generate pdf from html text so i did following.

Create a new php file Let’s call it pdf.php

In that file include the required library files.


require_once('../../tcpdf/config/lang/eng.php');
require_once('../../tcpdf/tcpdf.php');

After that create a new pdf instance


// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true);

After that set some pdf properties


// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor("Your name here");
$pdf->SetTitle("Give your pdf a title");
$pdf->SetSubject("set a subject here);
$pdf->SetKeywords("put, keywords, here, seperating, with, commas");

// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);

Below are some settings for header footer fonts, page breaks, etc


// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));

//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);

//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

//set some language-dependent strings
$pdf->setLanguageArray($l);

This will initialize your document


//initialize document
$pdf->AliasNbPages();

Adds a page in your pdf document

// add a page
$pdf->AddPage();

Set a desired font here

// set font
$pdf->SetFont("vera", "", 9);

This is the variable containing html content.

$htmlcontent = "Put your html conent here";

This will write html content to your pdf document

// output the HTML content
$pdf->writeHTML($htmlcontent, true, 0, true, 0);

// reset pointer to the last page
$pdf->lastPage();

Finally output the pdf document.

//Close and output PDF document
$pdf->Output();

After you call this page from your web browser. you will get a pdf file with the content as described.

here is full source code


<?php
require_once('tcpdf/config/lang/eng.php');
require_once('tcpdf/tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true);

// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor("Your name here");
$pdf->SetTitle("Give your pdf a title");
$pdf->SetSubject("set a subject here);
$pdf->SetKeywords("put, keywords, here, seperating, with, commas");

// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);

// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));

//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);

//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

//set some language-dependent strings
$pdf->setLanguageArray($l);

//initialize document
$pdf->AliasNbPages();

// add a page
$pdf->AddPage();

// ---------------------------------------------------------

// set font
$pdf->SetFont("vera", "", 9);

// create some HTML content
$htmlcontent = "put your html content here";

// output the HTML content
$pdf->writeHTML($htmlcontent, true, 0, true, 0);

// reset pointer to the last page
$pdf->lastPage();

// ---------------------------------------------------------

//Close and output PDF document
$pdf->Output();

//============================================================+
// END OF FILE
//============================================================+
?>

starter’s tutorial for php

Posted by yalamber on May 1st, 2008 under php Tags:  •  No Comments

Here are the link to the best php tutorials available for starter.

tizag.com’s php tutorial

-Indeed a very good tutorial. Will help you learn faster with clear examples.

Php manual

-What else can be better than the well documented manual itself. Visit the manual page or download it from here

These two can be enough for you to start of with. If you want to do more advanced stuffs, make content sites with php you will need to know about mysql databases. I will try to include best links for mysql in my next posts.

Loved new wordpress (version 2.5.1)

Posted by yalamber on May 1st, 2008 under Uncategorized Tags: ,  •  1 Comment

It is really to be mentioned. The new release of the wordpress is superb. I iked the admin panel. lot’s of things are improved. If you haven’t yet tried it. give it a try. it’s wonderful….

chumlungusa.org

Posted by yalamber on December 13th, 2007 under Uncategorized Tags:  •  No Comments

Visit www.chumlungusa.org

My recent joomla project.

Gurkhasonline.org

Posted by yalamber on December 13th, 2007 under Uncategorized Tags:  •  No Comments

Visit www.gurkhasonline.org

This is my recent joomla project done.

kiratisaathi.com in new look and features

Posted by yalamber on December 4th, 2007 under phpizabi Tags: ,  •  1 Comment

Kiratisaathi.com is updated with new look and features check them out.

www.kiratisaathi.com