Apr 26

TCPDF is an Open Source PHP class for generating PDF documents. It continues where FPDF stopped, and contains all its goodies plus support of UTF-8 Unicode and Right-To-Left languages! Especially the missing UTF-8 Unicode support in FPDF is a problem for everyone living outside the English language only countries.

* Go to www.tcpdf.org and download the latest version of TCPDF.

Main Features:

* no external libraries are required for the basic functions;
* all ISO page formats, custom page formats, custom margins and units of measure;
* UTF-8 Unicode and Right-To-Left languages;
* TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;
* methods to publish some XHTML code, Javascript and Forms;
* images, graphic (geometric figures) and transformation methods;
* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index – Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, QR-Code;
* Grayscale, RGB, CMYK, Spot Colors and Transparencies;
* automatic page header and footer management;
* document encryption and digital signature certifications;
* transactions to UNDO commands;
* PDF annotations, including links, text and file attachments;
* text rendering modes (fill, stroke and clipping);
* multiple columns mode;
* bookmarks and table of content;
* text hyphenation;
* automatic page break, line break and text alignments including justification;
* automatic page numbering and page groups;
* move and delete pages;
* page compression.

Check the default TCPDF Examples.

Apr 2

Ai doi roboti care cad cu parasuta pe o axa orizontala infinita Robotii cad la distanta d unul de altul si sunt pe parasauta cocotati Tu trebuie sa scrii un program care se executa simultan pe cei doi roboti si ai urmatoarele intructiuni
gl = go left
gr = go right
if(parasuta) do something
go to linie

Trebuie sa scrii un program care sa faca ca robotii sa se intilneasca cumva if(parasuta) = daca sunt cocotat pe parasuta
Fiecare instructiune dureaza un ciclu ca sa se execute. Momentul cand incep robotii sa execute programul tau:
O               O
|                |
x                x
————————–

Mar 30

Pentru a loga in aplicatia wiki fara a intra in pagina de login, din alta aplicatia trebuie setat cookie cu username si parola care exista in wiki, si path URL catre wiki.

ex:
$expire = time() + 30*24*60*60;
$credentials = serialize(array(“test”,”test”));
setcookie(“gloobal_user”, $credentials, $expire, “/wiki/”);

in pagina \inc\auth.php
functia auth_login

dupa instructiunea list($user,$sticky,$pass) = auth_getCookie();
citim din cookie username si parola utilizatorului care exista deja in wiki

$credentials = unserialize(str_replace(“\\”,”",$_COOKIE["gloobal_user"]));
$user = $credentials[0];
$pass = PMA_blowfish_encrypt($credentials[1],auth_cookiesalt());

Mar 2

Daca aveti un Apple iPod Touch mai vechi (prima generatie), care au 1.xx versiunea de firmware ca sa puteti face upgrade la Firmware 2.xx este necesar sa platiti o taxa de 9.95$, prin intermediul iTunes Store, dar ………mai exista o varianta :) .

Atentie! update-ul va sterge toate datele de pe ipod-ul dvs.

1. Descarcati si instalati cea mai recenta versiune de iTunes.
2. Descarcati si salvati iPod Touch Firmware iPod1,1_2.0_5A347_Restore.ipsw (aici gasiti cam toate firmware-urile http://www.felixbruns.de/iPod/firmware/ ).
3. Conecteaza iPod touch la calculator si lanseaza iTunes, versiunea dvs. de firmware va fi afisata in feastra de iTunes.
4. Cu Shift+butonul restore selectati versiunea salvata anterior, si da-ti open.
5. iTunes va porni procesul de restore.
6. Nu deconectati în timp ce iTunes face restore aparatului dvs. iTunes va reporni aparatul dvs si noua versiune de firmware va fi afisata in iTunes cat si in meniul Settings-General-About.

Mar 1

Data security is important and often undervalued by designers, developers, and clients alike. Since PHP 5.2.0, data sanitization and validation has been made significantly easier with the introduction of data filtering. Today, we’re going to take a closer look at these filters, how to use them, and build a few custom functions.

Source : here

Mar 1

In this article I will explain how to create a PHP Class that will encrypt and decrypt any data with a given password. It is object programmed and uses existing PHP algorithms.

Excerpt :

Think about what we might need a class like this for? We want to encrypt important data with a password for security reasons. We also want, as already mentioned, to be able to decrypt that data when necessary. Why should you use symmetric algorithms? It’s easy; when you’re offering a password sent via email or something like that, you need the password to be sent in plaintext. The hash algorithms are not reversible. Once you have hashed a string you can’t decipher the original text from the hash.

Source : here

Mar 1

One crucial part of PHP development practice is always keeping in mind that security is not something you can simply buy off the shelf at your local convenient store. Ensuring the security of your web applications is a process, which over time, needs to be constantly evaluated, monitored, and hardened.

Source : here

Mar 1

cURL is a tool for transferring files and data with URL syntax, supporting many protocols including HTTP, FTP, TELNET and more. Initially, cURL was designed to be a command line tool. Lucky for us, the cURL library is also supported by PHP. In this article, we will look at some of the advanced features of cURL, and how we can use them in our PHP scripts.

Source : here

Feb 2

Mai intai setam header pentru formatul UTF-8

$headers[] = 'Connection: Keep-Alive';
$headers[] = 'Content-type: application/x-www-form-urlencoded';
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
$headers[] = 'Accept-Charset: utf-8;';
$headers[] = 'Keep-Alive: 300';

dupa setarea aray-ului cu header-ele, acesta trebuie integrat in CURL

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://www.google.ro/search?&q='.urlencode($val['keywords']));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFilenameLogin);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFilenameLogin);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true );
curl_setopt($ch, CURLOPT_HEADER,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
$data = curl_exec($ch);
curl_close($ch);
Jan 29

Screenshot of an Entire Page

Captured Using Page SaverPearl Crescent Page Saver is an extension for Mozilla Firefox that lets you capture images of web pages, including Flash content.

These images can be saved in PNG or JPEG format. Using Page Saver, you can capture an entire page or just the visible portion. You can control the image capture process via a wide variety of settings, including the image file name and scale (e.g., save at 50% of original size).

Source: here

« Previous Entries Next Entries »

Powered By Wordpress - Theme Provided By Wordpress Theme - Credit Loan