by Cube Websites | Feb 29, 2016 | PHP
The Code // Inline Style Images $content = preg_replace_callback(‘/!\[(.*)\]\s?\((.*)(.png|.gif|.jpg|.jpeg)(.*)\)/’,function($match){ return str_replace(‘your_search_term’,’your_replacement’,$match[0]); },$content); // Reference...
by Cube Websites | Jan 14, 2016 | Development, Tools
I normally use PuPHPet to configure my Vagrant boxes. On my latest box using CentOS 5.6 the setup worked normally, but when trying to run my application I was getting the Class ‘Memcache’ not found error. Usually this is a simple fix, just go in and type:...
by Cube Websites | Aug 5, 2015 | Tools
I just came across an issue where I updated my vagrant config and tried to provision the box, but it kept erroring out with the following error: ==> default: Error: printf “\\n” | pecl -d preferred_state=stable install pecl_http returned 1 instead of...
by Cube Websites | Jul 27, 2015 | Guides, Technology
Over the weekend I was migrating several of my sites over to an nginx-based VPS. Whilst the migration itself seemed to go fine, I was getting a weird issue with the WordPress admin where the styles and javascript was not fully loading. After inspecting the requests...
by Cube Websites | Jul 4, 2015 | Guides, PHP
Telegram messenger recently released an API that lets you easily create bots for their platform. After deciding to have a bit of a play with it, I found that I had an issue where the webhooks would not send any updates to my server with no apparent error. The Problem...
by Cube Websites | Aug 27, 2012 | Concrete5, Development, PHP
Hi folks, I’m back with another freebie for you. This time it’s a Concrete5 package that lets you create, manage and display testimonials on your website. The following fields are available to you: Title Author Department Quote URL Display Order When...
by Cube Websites | Jul 5, 2012 | Ruby on Rails
I’ve just finished work on a Ruby Gem which provides an interface for the HotUKDeals (HUKD) REST API. This gem provides all the following search methods: hottest deals newest deals discussed deals deals by username deals by tag name deals by merchant name online...
by Cube Websites | Feb 4, 2012 | Extensions
Over a year ago, I released a free Magento Featured Products Widget which groups the featured products by category. Since releasing it I’ve had a lot of traffic, and a lot of pleasant feedback from users. Now I’ve finally been able to get round to...
by Cube Websites | Feb 1, 2012 | Magento
I’ve spent the past few days creating a more up to date version of my Category Featured Product module for Magento. NOTE: If you just want the solution, skip to the end of this post where I’ve written a quick summary One of the new features that it has is...
by Cube Websites | Jan 17, 2012 | Ruby on Rails, Technology
Introduction This year I’ve decided that I want to learn at least one new language and have decided that I’ll be learning Ruby. I’ve read great things about Ruby and Rails, all about how it’s made development fun again for devs, lets you actually get on with creating...