Some advices for common programmers problems

This is full prof style guide for designing web pages.

http://www.webstyleguide.com/wsg3/index.html

Snapshot from web style guide

And here’s additional for tutorials more on graphics:

http://sixrevisions.com/web_design/40-useful-photoshop-web-layout-tutorials/

http://www.good-tutorials.com/tutorials/photoshop/web-layouts

If you need to create page with background (i.e. some kind of certificates or smth) and want to use html2fpdf that officially doesn’t support this feature, you can do the simple trick, and after AddImage just reset the x and y coordinates.


$pdf = new HTML2FPDF('P','mm','A4');
$pdf->SetDisplayMode(100);
$pdf->SetMargins(32, 35 , 32);

$html = iconv("utf8", "ISO-8859-2", $outputData);
$pdf->AddPage();
$pdf->UseCSS(true);
$pdf->Image('templates/cert.png', 0, 0, 210, 295);
$pdf->x = 0;
$pdf->y = 40;
$pdf->WriteHTML($html);
$pdf->Output("pdf_with_bgrd.pdf", "D");

Przy upgradzie z Etch do Lenny pojawił się dosyć poważny problem - brakowało ldconfig. Przy apt-get update, install i nawet dpkg -i wywalało ze nie ma ldconfig w ścieżce PATH.

Rozwiązaniem ostatecznym było pobranie paczki libc6.deb i ręczne skopiowanie pliku do /sbin/ldconfig