Tag Archives: command line

this sqldump file is too big for a text editor to find and replace without crashing, HELP

this helpful tidbit is for readers with perl installed on their computers that need to perform a find-replace on entirely too large of an SQL file. on a mac you can find out if you have perl by checking for the version:

perl -v

if something shows up like “This is perl 5, version 18, subversion 2, etc. etc. etc.”, congrats, you have perl!

the other day i was exporting a monster wordpress site and needed to do a find-replace on the entire database before importing again. the sql file was a tad large, and by that i mean it crashed my Sublime Text Editor. it also crashed a regular text editor and Coda. so i did what i always do when my programs fail me: to the command line!

Continue reading this sqldump file is too big for a text editor to find and replace without crashing, HELP

CoffeeScript Beginner Beginner’s Guide

 Introduction

Hey there! You’ve found my intro to CoffeeScript page. You can learn CoffeeScript at the same time I do! I’m no expert, but I’ve learned a few things and thought it would be good to share. This is my beginner beginner’s guide.

CoffeeScript is a self-described “little language” that compiles to Javascript.  I’ve also seen it described as a Javascript pattern-handler, in that it takes common Javascript patterns and gives the developer easier and shorter programming alternatives to write the pattern. For example, and I will get into this is more detail later, CoffeeScript allows you to use classes in a similar way to Ruby or Python, while actually using prototypal syntax behind the scenes. This saves the developer a lot of writing, as we will see.

This tutorial will include written explanations and demo videos. They will be divided into sections based on themes in CoffeeScript. This was my first time uploading videos and I couldn’t figure out how to edit them without majorly decreasing quality, so unfortunately to strike a balance they’re a bit blurry. Any helpful hints would be appreciated!

Continue reading CoffeeScript Beginner Beginner’s Guide