-
Open the Terminal
-
Use
mysqldump
to backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql
-
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
<?php | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |
Basic moves | |
============== | |
1. Move back one character. Ctrl + b | |
2. Move forward one character. Ctrl + f | |
3. Delete current character. Ctrl + d | |
4. Delete previous character. Backspace | |
5. Undo. Ctrl + - | |
Moving faster | |
============== |
<?php | |
/** | |
* This file is part of PHPWord - A pure PHP library for reading and writing | |
* word processing documents. | |
* | |
* PHPWord is free software distributed under the terms of the GNU Lesser | |
* General Public License version 3 as published by the Free Software Foundation. | |
* | |
* For the full copyright and license information, please read the LICENSE | |
* file that was distributed with this source code. For the full list of |
<?php | |
// This is code to return custom error message | |
// for Youtube tutorial: Laravel 5.4 Additional Login Conditions | |
// https://www.youtube.com/watch?v=Z8s6uhhD1Pk | |
namespace App\Http\Controllers\Auth; |
function decodeUtf8(arrayBuffer) { | |
var result = ""; | |
var i = 0; | |
var c = 0; | |
var c1 = 0; | |
var c2 = 0; | |
var data = new Uint8Array(arrayBuffer); | |
// If we have a BOM skip it |
put card.xml in your drawables directory, put colors.xml in your values directory or add the colors to your colors.xml file. | |
set the background of a view to card, | |
as you can see in card.xml the drawable handles the card margin, so you don't have to add a margin to your view | |
``` xml | |
<View | |
android:layout_width="fill_parent" |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
##Ruby on Rails Windows Troubleshooting Tips & Survival Guide
###Intro/Overview
The Ruby on Rails Windows Troubleshooting tips & Survival Guide is a random catalogue of issues I faced working with Ruby on Rails on Windows (Windows 7 specifically). This guide is not exhaustive, but covers many of the challenges that causes Windows Ruby developers to jump ship to Linux or Mac. If you're reading this guide then you're probably new to Ruby/Rails, so also included is more general beginner advice to help you get going.
####Personal Side Note
Before you follow this guide, I strongly recommend you consider using Linux or Mac OS X for Ruby Development instead. Reckless, and looking to prove a point; I ignored this strongly given advice while learning Ruby/Rails at a coding bootcamp. While I eventually did succeeed in getting Ruby on Rails to work in Windows, it was not easy, and I easily lost 40+ hours on StackOverFlow to Windows/Ruby configuration issues--time I could have devoted to lear