Coding

MongoDB Mac Cheat Sheet

Install MongoDB with brew. To start mongodb: brew services start mongodb To stop mongodb if it’s already running: brew services stop mongodb Tools Robomongo / Robo 3T Commands MongoDB Statistics – To get stats about MongoDB server, type the command db.stats() Currently selected database, use the command db Databases list, use the command show dbs …

MongoDB Mac Cheat Sheet Read More »

MySQL Best Practices

Database operations often tend to be the main bottleneck for most web applications today. As programmers need to do our part by structuring tables properly, writing optimized queries and better code. Table Names By convention, the “snake case” in lowercase (no PascalCase – we’re not using Microsoft SQL Server here!), plural name of the class will …

MySQL Best Practices Read More »

Welcome Laravel!

After much trial and error we’ve selected our future framework for all projects: Laravel! It has great documentation, a good community, lots of plugs and a steady update path. Plus it’s fun to code!

Summernote Image Upload

NOTE: This only applies to Summernote 0.6.* and not to newer versions. $(‘#summernote’).summernote({ height: 850, toolbar: [ [‘style’, [‘fontsize’,’fontname’,’bold’, ‘italic’, ‘underline’, ‘clear’]], [‘color’, [‘color’]], [‘para’, [‘ul’, ‘ol’, ‘paragraph’,’hr’,’link’,’picture’]], [‘src’,[‘fullscreen’,’codeview’]] ], onImageUpload: function(files, editor, welEditable) { sendFile(files[0], editor, welEditable); } }); function sendFile(file, editor, welEditable) { data = new FormData(); data.append(“file”, file); $.ajax({ data: data, type: …

Summernote Image Upload Read More »

Connecting to Ubuntu Servers With RSA Keys

I manage a bunch of internal servers and for those that aren’t part of the wider web I like to use key pairs to speed up my sign ins and maintenance. Key-Based SSH Logins Key-based authentication is the most secure mode of authentication usable with OpenSSH. Key-based authentication has several advantages over password authentication, for example …

Connecting to Ubuntu Servers With RSA Keys Read More »

Aloha Goodbye Kohana Framework

It’s with a heavy heart that we must begin to phase out Kohana Framework from our projects. We will be migrating all current project and all future projects to a newer, more supported framework. That is all. Alan