Quick Tip: Conditionally Including JS and CSS With get_current_screen | Wptuts+

“A good WordPress citizen only loads their files where they’re needed”. This principle applies both to front-end and back-end (admin). There’s no justification for loading CSS and JS files on every admin page when you only need them on one single page you created. Thankfully doing things the right way is only one function call away.

via Quick Tip: Conditionally Including JS and CSS With get_current_screen | Wptuts+.

Aspect-Oriented Programming in PHP | Nettuts+

There’s a new player in town, and he brought new toys: The PHP World welcomes FLOW3, an enterprise application framework written and backed by the community of the TYPO3 CMS. FLOW3 can be used as standalone full-stack framework for your applications. It’s interesting, because it introduces some concepts of software development that haven’t been adapted to PHP before.Among these new concepts is “Aspect Oriented Programming”. We will have a look on the theory of the pattern, and will set up a basic FLOW3 Application and weave in our own aspect!

via Aspect-Oriented Programming in PHP | Nettuts+.

Grocery Crud for CodeIgniter

Grocery crud is probably one of the easiest ways to build your database calls for CodeIgniter and its just been updated.

The version 1.2.2 is mostly a maintenance release so it is more about bug fixes.
However, as each version new features has been added:

  • The button “Save and go back to list” that lot of users where expecting . It simply redirects you to the list after saving.
  • The “unset_list” . This functionality does not only unset the list (or else the datagrid), it is also disable the user to access to the list, so this means that any button “go back to list”, “Success go back to list”… e.t.c is not there.

For more you can also take a look of the changes that has been made below:

  • Adding Dutch language.
  • Adding a new method “unset_back_to_list”. Unsets everything that has to do with buttons or links with go back to list message.
  • #28 – Change the hardcoded JavaScripts and CSS with variables.
  • #25 – Adding a new method “unset_list”. Unsets the first list and the ajax_list and gives an exception error for the user that tries to access it.
  • Adding a new button/feature “save and go back to list”. When a user press the button “save and go back to list” it is automatically redirect you to the list page when a successful save is done.
  • Adding the default_per_page at the config file. This specifies the first visit per page that a user should see at the list page. For example 25 rows per page.
  • #13 – The list search and ordering is not working with the n-n relation columns.
  • Small bug fixes:
    • #20 – Pressing tab and enter after adding a date or a datetime field it clears the date.
    • #21 – By default the texteditor transform the utf8 to html entities.
    • #22 – Doesn’t recognize that a tinyint 1 or int 1 can just take a numeric value more than 1.
    • #23 – When we use $crud->where() method it doesn’t work as expected with the flexigrid search.

You can download the new version here.

Best Way to Learn About Exposure: Exposure Modes and Metering

Most cameras with the exception of some semi-professional and professional models have a range of fully automatic exposure modes. These are indicated by various icons and have names such as portrait, landscape and night.If you use any fully automatic exposure mode, now is the time to stop. These modes are quite restricted and don’t give you much, if any, control over the shutter speed, aperture and ISO settings.Why does your camera have so many exposure modes? The fully automatic modes are designed to help people who don’t know much about photography to use the camera right away. They are not aimed at photographers who can decided for themselves which aperture, shutter speed or ISO to use.In my view, the fully automatic exposure modes clutter up the dial and create confusion. In practice, you only need four exposure modes. They are Aperture Priority, Shutter Priority, Program and Manual. Here’s how they work:

via Best Way to Learn About Exposure: Exposure Modes and Metering.

Sublime Text 2 Tips and Tricks Updated | Nettuts+

Sublime Text 2 is one of the fastest and most incredible code editors to be released in a long time! With a community and plugin ecosystem as passionate as this one, it just might be impossible for any other editor to catch up. I’ll show you my favorite tips and tricks today.

via Sublime Text 2 Tips and Tricks Updated | Nettuts+.