what users need and not what they want?

If I asked people what they wanted, they would have said 'Faster Horses'. -Henry Ford Make sure that you focus on goals. Don't ask what your users want or need in terms of functionality or form. Find out what they need (or want) to achieve .. that way the parameters you use to define and ... Read more

WordPress cron

WordPress cron can schedule an action. The cron action will trigger when someone visits your WordPress site, if the scheduled time has passed. wp_schedule_event() wp_get_schedules()

cognitive load

In a nutshell, Cognitive Load is the amount of “Brain Power” required to understand something. This could be perception, problem solving or juggling things in memory. The term cognitive load is used in cognitive psychology to illustrate the load related to the executive control of working memory. Theories contend that during complex learning activities the ... Read more

WordPress MU

sync user roles across WordPress Multisite: Sync all roles with capabilities on all sites of the WordPress Multisite Network:

WordPress custom loop with pagination

query_posts() is overly simplistic and problematic way to modify main query of a page by replacing it with new instance of the query. It is inefficient (re-runs SQL queries) and will outright fail in some circumstances (especially often when dealing with posts pagination). Any modern WP code should use more reliable methods, like making use ... Read more

WebKit custom scrollbars

Works in Chrome and Safari. WebKit supports styling of the scrollbars in overflow sections, listboxes, dropdown menus and textareas. These are the pseudo elements - the actual parts of the scrollbars: The different states of scrollbars: :horizontal – The horizontal pseudo-class applies to any scrollbar pieces that have a horizontal orientation. :vertical – The vertical ... Read more

php - work with string

Remove Trailing Slash From String PHP Alternative way: ltrim - Strip whitespace (or other characters) from the beginning of a string rtrim - Strip whitespace (or other characters) from the end of a string trim - Strip whitespace (or other characters) from the beginning and end of a string