Category Archives: web development

PHP Performance: Bitwise Division

Recently I wrote about binary search and then I said that in some languages, like PHP, bitwise division by two is not faster than the typical “/” operator. However I decided to make some experiments and here are the results. … Continue reading

Posted in PHP, web development | Tagged , , , , , , | 1 Comment

OOP JavaScript: Accessing Public Methods in Private Methods

As you know in JavaScript when you define a variable with the special word “var” the scope of this variable is within the function. So when you simply wite “var a = 5″ the variable named “a” has a global … Continue reading

Posted in javascript, micro tutorial, web development | Tagged , , , , , , , , , , , , , , | 2 Comments

Object Oriented JavaScript: Inheritance

Objects and JavaScript JavaScript, being a functional language, differs from most of the procedural/object oriented languages we know. The object oriented approach in JavaScript is rather strange. However there is much power in making objects! The syntax is really odd … Continue reading

Posted in web development | Tagged , , , , , , , , , , , , , , , , , , , | 10 Comments

Scroll an IFRAME Content to a Predefined Position

IFRAME Source Usually when you use an IFRAME tag to link an external source the page that’s referenced by the SRC attributes is loaded at the top left corner. This is the default behavior, but sometimes you’d like to show … Continue reading

Posted in css, micro tutorial, web development | Tagged , , , , | 7 Comments

How to Collect the Images and Meta Tags from a Webpage with PHP

Meta Tags and the Facebook Example You’ve definitely seen the “share a link” screen in Facebook. When you paste a link into the box (fig. 1) and press the “Attach” button you’ll get the prompted cite parsed with a title, … Continue reading

Posted in micro tutorial, PHP, web development | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments