Dojo vs JQuery vs MooTools vs Prototype Performance Comparison

Son Do's Blog

As part of my Mootools lecture at Codecamp I showed a brief speed comparison between the most used Javascript Frameworks running in the major browsers. Now as the Mootools team has extended their performance test tool (slickspeed) it is time to revise my benchmarks and extend them over more browser/platforms.

Test results (Lower is better):

*For example FF (XP-NA) is Firefox with no addons (extensions) enabled running under Windows XP

You can check the actual numbers (in ms) and the full browsers information in the table bellow:

Dojo 1.0.2 JQuery 1.2.3 MooTools 1.2beta2 Prototype
Mozilla Firefox – no addons – winxp 128 266 115 259
Mozilla Firefox – winxp 144 290 127 260
Mozilla Firefox – linux 253 438 255 384
Opera 9.26 – winxp 32 136 148 194
Opera 9.26 – linux 110 188 238 364
Internet Explorer 7 –…

View original post 152 more words


Syntax highlighting for Drupal module files in Notepad++

Code Caravan

Notepad++ does not recognize Drupal module code files (.module) as php source code files, so php syntax highlighting is absent for these files. In this post I will show you how to configure Notepad++ to recognize .module files as php source code files.

Open Notepad++ with root / administrator privileges. This is because the configuration changes will involve indirectly editing Notepad++’s core system files, which require root privileges to edit.

Go to Settings -> Style Configurator.


From the top portion, of the dialog box, select the theme for which you want to apply your style.

Select php from the language selection pane.

In the lower part of the dialog box is a list of the extensions that this theme recognizes as php source code files. Go ahead and add module as another extension. Save. If any module file is already open in Notepad++, close and reopen it.

Happy coding!

View original post

PHP, MySql Experienced Interview Questions and Answers.

LD Opensource

Q. What are magic functions or methods in php?

The function names __construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __toString(), __invoke(), __set_state() and __clone() are magical in PHP classes. You cannot have functions with these names in any of your classes unless you want the magic functionality associated with them.

__sleep()   and __wakeup()

serialize() checks if your class has a function with the magic name __sleep(). If so, that function is executed prior to any serialization. It can clean up the object and is supposed to return an array with the names of all variables of that object that should be serialized. If the method doesn’t return anything then NULL is serialized and E_NOTICE is issued.


It is not possible for __sleep() to return names of private properties in parent classes…

View original post 28,072 more words

What does “The provided host name is not valid for this server” mean?

I am running a Drupal 8 website, and when I browse to any page, I am getting a plain white page with just

The provided host name is not valid for this server.

on it.

What does this mean? How do I fix this?

Link: Company:

View original post