Categories
WordPress

Adding a Mime Type to WordPress

WordPress doesn’t have .xml as part of its default mime-types, so we need to add it ourselves. How can you do that? Search for wp_get_mime_types() function in the WordPress core files. You will find it inside the wp-includes/function.php. In the function, you will find a filter called mime_types. We have an appropriate filter now, and […]

Categories
PHP

CUT SHORT YOUR URL : YOURLS

YOURLS: Your Own URL Shortener How about having a pet name for your website. A short, geeky, precise URL for a long webURL is what YOURLS is. YOURLS is nothing but a set of PHP scripts and the best thing is all the versions of YOURLS are named after (metal) music celebrity. The latest one is YOURLS […]

Categories
Programming

XML vs YAML vs JSON

XML is commonly utilized for web application messaging – sending information back to a browser from a web server, or sending information between web accommodations. It’s dead facile to do this and it works very well, hence XML has become the de-facto cull for data exchange for web applications. Alternatives such as YAML and JSON have […]

Categories
PHP

Spawn FCGI vs FCGI Wrap

Before  I make out the differences a summary on FCGI that is the Fast Common Gateway Interface. FCGI is a fast, open, and secure binary Web server interface protocol. It is actually a CGI only with some additional plugins. Speeds of the incoming requests to a web site or a specific application programme increases by […]

Categories
Drupal modules Drush PHP

Drush:Powered by Drupal

Before starting with DRUSH, lets have a flashback about DRUPAL. Drupal is an open source content management, web development platform. Having a high modularized architecture Drupal has already made its mark in the WhiteHouse.gov and data.gov.uk. With no licence, no purchase, no maintenance Drupal is all set free to download, modify and use. Its Scalable starting from […]

Categories
HTML Programming

MarkDown Syntax Cheat Sheet for HTML

MarkDown Syntax Cheat Sheet How easy it would be if you make out a doc file and converting the same with a tool to get the required website. This is where Markdown Syntax comes from.A tool that converts text file to HTML or(XHTML). In a search for easy-to-read, easy-to-write plain text format and converting it […]

Categories
PHP Engines

Next Generation PHP Engines: HHVM/PHP-5.5/PHPNG

HHVM: In looking for an infrastructure to comput more efficiently HHPM an efficient PHP Engine was developed by Facebook . Commonly know as HipHop for PHP. HHPM is an intermediate bytecode language which translate PHP to native code through JIT(Just In time Compiler).PHP is simple to learn, read, write, and debug.Through HHPM CPU usage can be […]

Categories
Drupal modules

A quick start to Drupal Testing for modules/themes

Drupal can be extended by composing your own module as per the needs.Before taking you through the practical guide I will be giving you a lime light of what a module is? What is a Drupal Module? A set of files with some special features and functionalities makes a module. The purpose behind this is […]

Categories
Programming

CSS Pre-Processors with Super Powers

CSS Pre-Processors with Super Powers … (SASS/LESS/Stylus) A program or software installed on developer’s computer that receives a set of input data to produce certain output that will be used as input by another process is what we call is as Pre-processor. In our case of CSS Pre-Processors, its one or several files in a […]

Categories
How To Javascript Node JS Programming

[How To] Implement Passport.js Authentication with Sails.js

Here we intend to demonstrate the procedure of local authentication i.e. by using a username and password. Step 1: Dependencies passport passport-local bcrypt List these dependencies inside application_directory/package.json  under dependencies.

Step 2: Create user model To create user model run the following command:

Now the user model will be created inside the /api/models/user.js […]