Categories
blog

Enable gzip using htaccess.

Enabling gzip allows compression of HTML,CSS and other specified files. This saves a lot of file size, saving bandwidth as a result. When your site requires less bandwidth, it will load faster.

To enable gzip you must add the following lines of code to your .htaccess file.



AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json

Categories
blog

WordPress 4: New features & updates.

WordPress 4 is named “Benny” in honor of jazz clarinetist and bandleader Benny Goodman. It is not a major update in terms of features and functionality. However, it streamlines and improves WordPress.

New features & updates include:

  1. Embedding URLs now has previews. Accessible in both the visual editor and the Insert from URL tab. To add a URL in the visual editor, just add the link on a new line.
  2. Better Content Editing. The content editor intelligently re-sizes as needed. Keyboard and cursor interactions have been updated in TinyMCE.
  3. New accessibility features. The Add Media panel and links in the help tabs are now keyboard accessible. Screen reader support has been added for the Customizer and widgets.
  4. Better plugin installation experience. More information and details when searching and installing plugins, including thumbnail images.
  5. Language choice during installation.
  6. Media Library has a new grid view. Grid view displays additional details on clicking an item.
  7. Widgets now get their own panels within the Customizer.
Categories
blog

WordPress function to load jQuery from Google’s CDN.

Loading jQuery using Google’s Content Delivery Network(CDN) will lead to decreased latency, meaning faster load time for your site. Using this method eliminates a request from your server. In some cases the user may already have the exact version of jQuery cached from Google’s CDN, meaning they do not need to download it again. However, if you host jQuery locally from your site, the user must download it, even if it is the same version.

To load jQuery from Google’s CDN, add the following to your functions.php file in your theme.
Remember to change the version of jQuery with the version you want.


function load_jquery() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js', false, '1.11.1', true);
wp_enqueue_script('jquery');
}
}
add_action('wp_enqueue_scripts', 'load_jquery');

Categories
blog

Enable keep alive using htaccess.

Keep alive is communication between the server and the browser that allows getting more than one file.
Without keep alive enabled, it takes more time to download the page.
Enabling keep alive allows for faster downloads of webpages.


To enable keep alive you must add the following code to your .htaccess file.



Header set Connection keep-alive

Categories
blog

Easiest way to update URLs in WordPress.

  1. Install Velvet Blues Update URLs. Activate it.
  2. Go to the plugin and select Update URLs.
  3. Enter the URL you would like to change in old URL. Enter the URL you would like it changed to in new URL.
  4. Choose the places in which the URLs should be updated. Click  Update.
Categories
blog

The Killing Joke’s Joker explains what memories are.

Remembering’s dangerous. I find the past such a worrying, anxious place. “The Past Tense,” I suppose you’d call it. Memories so treacherous. One moment you’re lost in a carnival of delights, with poignant childhood aromas, the flashing neon of puberty, all that sentimental candy-floss… the next, it leads you somewhere you don’t want to go. Somewhere dark and cold, filled with the damp ambiguous shapes of things you’d hoped were forgotten. Memories can be vile, repulsive little brutes. Like children I suppose. But can we live without them? Memories are what our reason is based upon. If we can’t face them, we deny reason itself! Although, why not? We aren’t contractually tied down to rationality! There is no sanity clause! So when you find yourself locked onto an unpleasant train of thought, heading for the places in your past where the screaming is unbearable, remember there’s always madness. Madness is the emergency exit… you can just step outside, and close the door on all those dreadful things that happened. You can lock them away… forever.

Categories
blog

ICANN now requires email verification for domains.

ICANN’s updated rules(from January 2014) for domains now require email verification. This affects every single generic top-level domains (gTLDs) such as .com, .net, .org, etc. as well as all the upcoming new gTLDs.

If you register a domain, transfer existing domains or change your contact information, you will be required to respond to a verification link. This verification link will ask you to verify your email address, along with your first and last name. Failure to respond to this link within 15 days will take your domain offline.

Categories
blog

Photoshop Blend Modes are now in CSS Blend Modes.

Blend modes from Photoshop have made there way across to CSS. However, not every blend mode from Photoshop is available as of now. The modes that have been implemented include multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion,hue, saturation, color, luminosity and normal. Blend modes can also be added to Canvas or SVGs.

Blend-mode, background-blend-mode and mix-blend-mode are the three ways in which blend modes can be used.

As of now, like any other cutting edge CSS, browser support is limited, and has been only implemented in the latest versions of Chrome, Firefox, Opera & Safari.

 

Categories
blog

What is the MEAN stack?

MEAN stands for MongoDB, Express, Angular and Node.

MongoDB is a noSQL database that uses JSON-style documents for data representation, making it ideal for use with Javascript.

ExpressJS is a web application framework  written in JavaScript that is used with Node.js to help boost it up.

AngularJS is JavaScript framework  by Google that allows for complex client side applications and includes two-way data binding.

Node.js is a JavaScript framework that is concurrent and  built on V8’, for easily building fast and scalable web applications.

Combining all 4 of these allows for full-stack JavaScript development.

 

Categories
blog

True Detective’s Rustin Cohle tells us why humanity is doomed.

I’d consider myself a realist, alright? But in philosophical terms I’m what’s called a pessimist. I think human consciousness is a tragic misstep in evolution. We became too self-aware. Nature created an aspect of nature separate from itself. We are creatures that should not exist by natural law. We are things that labor under the illusion of having a self, that accretion of sensory experience and feelings, programmed with total assurance that we are each somebody, when in fact everbody’s nobody. I think the honorable thing for our species to do is to deny our programming. Stop reproducing, walk hand in hand into extinction. One last midnight, brothers and sisters opting out of a raw deal.