Coding

MySQL Best Practices

Reading Time: 4 minutesDatabase 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!

Reading Time: < 1 minuteAfter 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!

Welcome Laravel! Read More »

Summernote Image Upload

Reading Time: < 1 minuteNOTE: 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

Reading Time: 2 minutesI 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 »