Archiv rubriky: Advanced programming tips

Fit image to box thumbnail in PHP

How to fit image to box in PHP. See sample of code. public static function fitToBox($image,$boxSize) { $box = imagecreatetruecolor($boxSize, $boxSize); $white = imagecolorallocate($box, 255, 255, 255); imagefill($box, 0, 0, $white); $origWidth = imagesx($image); $origHeight = imagesy($image); // Already box … Celý příspěvek

Rubriky: Advanced programming tips | Napsat komentář

How to make it MOV faster

Was, was not be… exists situation when is needed use MOV assembly instruction in faster form to reduce clock timing.For that reason is better use XOR instructions, because data are moved by ALU not over memory copy.Time is always expensive … Celý příspěvek

Rubriky: Advanced programming tips | Napsat komentář

What is need to be done for minitube 2.0 goes working on Linux

I was taired of downloading videos on the web browser then i found Minitube application and download sources for Linux distribution because of CentOS 6.4 Linux which i have installed. After pay donation found some issues which should be solved … Celý příspěvek

Rubriky: Advanced programming tips | Napsat komentář

Compare, what is faster MOV, XOR, ADD, AND, XMOV and their long operand instructions, updated

I was looking for comparation of speed MOV vs XOR instructions. In this case for NULL registers few time ago. But results do not satisfy me as well. Then i decide to make own experiment and measure speed of processing … Celý příspěvek

Rubriky: Advanced programming tips | Napsat komentář