MainelyDesign.com Blog

Showing articles 11 - 20 (145 total)

Change View File from Controller in CakePHP 3

Posted on 01/27/2016 at 10:37 am | Viewed 3,663 times | 0 comments

You can change what view.ctp file you want to use in your controller with the following line of code.  I place it at the bottom of my function definition.  Useful for having a simple admin interface or a different view template for each language.  This doesn't change the layout of your page, just the view template the controller uses when...

Loading Model/Table Anywhere in Cake3

Posted on 01/13/2016 at 03:56 pm | Viewed 2,532 times | 0 comments

I'm finally off on upgrading to CakePHP 3.0.  I'm sick of typing out CakePHP 3.0, so from now on it's just cake3.  I'm going to post about my experiences upgrading a large application to cake3. First thing: it's so easy to get access to a model... ANYWHERE (love it!) use Cake\ORM\TableRegistry; $this->Articles =...

CURL PHP 5.5 Issue on Windows (Using Twilio SDK)

Posted on 10/06/2015 at 09:29 am | Viewed 4,289 times | 0 comments

You need to install cacert.pem. http://curl.haxx.se/docs/caextract.html Thanks to: http://snippets.webaware.com.au/howto/stop-turning-off-curlopt_ssl_verifypeer-and-fix-your-php-config/ You need to add thawte premium CA to cacert.pem for Twilio http://stackoverflow.com/a/28545924/5317538

Javascript Charting Library Research

Posted on 07/16/2015 at 10:36 pm | Viewed 4,399 times | 0 comments

I'm getting ready to roll out some new graphing functionality and wanted to take a look at the state of JavaScript graphing libraries. Goals: Beautiful Charts - there are a lot of hokey looking charts out there Fast Avoid sending data to a 3rd party No license fees.  MIT License is always ideal. Current JavaScript graphing Tools / Approach...

Command line: Start, Stop and Restart MySQL Server on Mac OS X

Posted on 02/26/2015 at 03:18 pm | Viewed 7,646 times | 0 comments

It's easy to manage mysql from the command line in Mac OS X.  Just make sure to remember to run as sudo! Stopping, Restarting and Starting MySQL Server Commands $ sudo /usr/local/mysql/support-files/mysql.server restart Password: ********* Cheers, -Kevin Wentworth

CSS Tools for Web Designers - Best of the Web

Posted on 02/17/2015 at 11:44 am | Viewed 5,409 times | 0 comments

Here are my go-to resources for making all those fancy CSS3 effects on pages: CSS Border Radius Tool CSS Border Radius - http://border-radius.com/ CSS Background Gradients Ultimate CSS Gradient Generator - http://www.colorzilla.com/gradient-editor/ CSS Box Shadow Generator CSS Matic Box Shadow CSS Generator - ...

GeoTrust Quick SSL Premium Intermediate CA for SHA-2

Posted on 01/02/2015 at 09:23 am | Viewed 6,713 times | 0 comments

I just tried to use my handy GeoTrust Intermediate CA cheat and it didn't work.  As of today, you'll need to use the following links to get your GeoTrust Intermediate CAs: Intermediate CA Certificate for GeoTrust QuickSSL Premium SHA-2 (under SHA-1 Root) CA Bundle ...

Performing a Speed Test on Linux Server over SSH

Posted on 12/19/2014 at 10:18 am | Viewed 6,576 times | 0 comments

There have been many times when I've wanted to find out the speed of a server's connection.  Running a ping from your workstation to the server accomplishes nothing when you need to determine the speed of your server's connection to the outside world.  I came across a post with the perfect recommendation. Use CURL and download a large file...

jQuery: Checking If An Object Is Visible On The Screen

Posted on 09/12/2014 at 12:03 pm | Viewed 7,648 times | 0 comments

In the ether known as the internet, people have been going from a static built and styled website, to much more responsive and interactive designs. Knowing this, I felt that it was important to be able to check if an element is currently displayed on the screen. What Is This Useful For? Currently, being able to detect if an element is visible...

jQuery Object getClasses System

Posted on 08/29/2014 at 11:04 am | Viewed 6,357 times | 0 comments

After having to create a list of classes on an element, I decided that it was time to have a method to pull all of an objects classes into one returnable array. This is extremely useful for class-based tagging and object finding. Requires jQuery v1.2+ The getClasses Method jQuery.fn.getClasses = function() { var classes = []; var objClass =...

    1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9   

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design