Blog

Caching Module

تعليم تداول الخيارات الثنائية أفضل موقع لعرض أسعار الأسهم مباشر
Caching Module
Loading menus and rendering content in Drupal can be slow, especially if your menus are large, you have allot of entities on a single page or the rendering causes allot of database lookups for getting path aliases or similar.  Below is a simple module that aloows you to cache both menus and rendered content by using a the "caching_cache_render" function instead of "render" and "caching_cache_menu_tree" instead of "menu_tree".  There are then controls for you to set whether the caching takes place or not and the duration the items are cached for in the admin area at "/admin/config/development/performance/caching". 

Recursive Image Viewer

خيار ثنائي لنا وسطاء
Recursive Image Viewer
If you have ever wanted to see all the images in your files directory or from a package that contains multiple directories, each with multiple images or subdirectories that may or may not contain images more images then this may help you.  This is a very simple script that recursively scans a directory for images and then makes a HTML page displaying all these images on a single page to make browsing as easy as possible.  To save your browser from crashing the images are lazy loaded as you scroll down and to fit as many on the page as possible there is a max width set on each image and I am using CSS Flex to give a little order to the chaos. 

Best UK Business Banking Website?

Best UK Business Banking Website?
Does any bank that offers Business Banking have a usable intuitive website for doing online banking ? HSBC & NatWest are both awful in different ways! If anyone has the time to comment on which Bank they use for their business in the UK and what their website is like I would appreciate it. I moved from NatWest to HSBC but am regretting it already and do not want to have to deal with another few months of mistakes and an awful website. Are they all rubbish? there are so many options and so little information to help you choose :( As a PHP developer this probably annoys me more than it would most people but there is no excuse. 

Remove Windows 10 Reminder

Remove Windows 10 Reminder
This is the 3rd way I have tried to hide the Windows 10 update marketing from my Win 7 machine and by far the easiest and so far still working.  Create the 3 files below and then run the BlockWindows10.bat script as administrator.  When that has finished reboot the computer and then run the BlockWindows10.reg file.  BlockWindows10.bat    ECHO OFF REM --- remember to invoke from ELEVATED command prompt! REM --- or start the batch with context menu "run as admin". SETLOCAL   REM --- (as of 2015-09-07): REM KB3035583 - GWX Update installs Get Windows 10 app in Windows 8.1 and Windows 7 SP1

Drupal JSON Node API

Drupal JSON Node API
To help with a content migration project I have recently made a module that exposes all published node types, node IDs and the nodes via a very simple JSON API. There are only 3 custom functions needed to give the requesting user a list of the types that are available, the node IDs of any given type and then finally the nodes by ID. I have set this up on here as an example. Node Types NIDs of type blog This node as JSON This was just intended to be used locally when importing content to a different site with another custom module I made for easy content migration but may be of use to someone so I made a Drupal 7 version as well, they are both available for download here: Toms GitHub:/modules

Pages