Increasing memory allocated to PHP

Increasing memory allocated to PHP

I needed to do this when I got blank screens after installing Buddypress

source: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Also released with Version 2.5, the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of xxxxxx bytes exhausted”.

This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 40MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 40MB. Read More

CSS tricks

Vertical align anything with just 3 lines of CSS

source http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/

.element {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

It is a similar technique to the absolute-position method, but with the upside that we don’t have to set any height on the element or position-property on the parent. It works straight out of the box, even in IE9.

To make it even more simple, we can write it as a mixin with its vendor prefixes:

@mixin vertical-align {
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
 
.element p {
  @include vertical-align;
}

Web Development – Tools of the Trade

What is what and why should I use it?

Javascript Frameworks

  1. Node.js Node.js (Node) is an I/O environment built on top of Google Chrome’s JavaScript runtime — essentially, a server-side implementation of JavaScript. Node’s asynchronous, event-driven I/O model makes it easy for developers with JavaScript knowledge to build high-performing, scalable, and highly concurrent web applications rapidly and run them in the cloud. Node.js uses an event-based server execution procedure rather than the multithreaded execution in PHP.Beginner’s Guide to Node.js Read More

Develop an Information Architecture for a complex website

Information Architecture

From: Information Achitecture Resource Pack

Information Architecture involves the organisation of information into a structure that helps people find the information they need. To achieve this on a website, the designer needs to consider:

  • The purpose of the website
  • How the website content can achieve this purpose
  • How to organise the content to ensure it is easy to navigate
  • How to ensure that the website content can be easily maintained

Developing website Information Architecture is an important early step in the overall design and development process. Read More

Don't make me think (Kruger)

Don’t make me Think

Steve Krug’s ‘Don’t make me think’  is a classic in the world of web design. I recently pulled the 2006 print from my book shelf to give it a (first) read. And it was worth it!

This is what stayed with me the most (ordered by chapter):

  1. Don’t make me think

    – Remove as much as possible the ‘question marks’ (Where am I, Where can I find, What does this mean
    – Make things self-evident, or if this is not possible, self-explanatory

  2. How we really use the web

    – We don’t read, we scan. (I like this analogy: web users tend to act like sharks: they have to keep moving or they’ll die)
    – We satisfice (choose the first reasonable option)
    – We muddle through
    Read More