Steve Senkus

Software Developer living in 🌞sunny, 🌞sunny San Diego

Valid AngularJS Directives

Believe it or not, the following examples are valid AngularJS directives: It starts off as normal as can be… We’ll start off by creating a simple Angular module. var App = angular.module('awesomeApp', []); Usually, you will see Angular developers automatically placing the ng-app directive on the tag. In our case, we only want to manage what’s inside this particular element. <div ng-app="awesomeApp"></div> Angular is going to have control over the DOM elements contained within this div. Read more →

jQuery Dropdown Login Menu with One-Shot Collapse

One-shot event handlers are a very useful tool to have in your Javascript/jQuery toolbelt. In this post, we will see how to effectively add a bit of UI interactivity into our pages and applications using one-Shot event handlers to create a jQuery dropdown login menu. Program Flow: Anonymously invoke a Menu constructor function Attach event handlers for #trigger button & the hidden , setting an initial state for the drop-down form Read more →

DigitalOcean – There are some sharks out there!

I recently was setting up a quick proof-of-concept CodeIgniter prototype on a fresh DigitalOcean droplet and noticed quite a lot of activity in my log files. It seemed like someone (or some bot) was scanning my app for potential vulnerabilities and attack vectors! Yikes! The Log File Here’s a sample from the log file, with normal DEBUG log messages being omitted: ERROR - 2014-07-22 19:53:17 --> 404 Page Not Found --> _PHPMYADMIN ERROR - 2014-07-22 19:54:34 --> 404 Page Not Found --> _pHpMyAdMiN ERROR - 2014-07-22 19:55:51 --> 404 Page Not Found --> _phpmyadmin ERROR - 2014-07-22 19:59:35 --> 404 Page Not Found --> administrator ERROR - 2014-07-22 20:00:13 --> 404 Page Not Found --> adminmysql ERROR - 2014-07-22 20:01:30 --> 404 Page Not Found --> admn ERROR - 2014-07-22 20:02:15 --> 404 Page Not Found --> admin ERROR - 2014-07-22 20:02:45 --> 404 Page Not Found --> bbs ERROR - 2014-07-22 20:07:19 --> 404 Page Not Found --> cpdbadmin ERROR - 2014-07-22 20:08:41 --> 404 Page Not Found --> database ERROR - 2014-07-22 20:10:42 --> 404 Page Not Found --> dbadm ERROR - 2014-07-22 20:11:23 --> 404 Page Not Found --> dbsql ERROR - 2014-07-22 20:12:43 --> 404 Page Not Found --> forum ERROR - 2014-07-22 20:14:05 --> 404 Page Not Found --> httpdocs ERROR - 2014-07-22 20:18:48 --> 404 Page Not Found --> php-my-admin ERROR - 2014-07-22 20:20:08 --> 404 Page Not Found --> php /* ****************************************************************** NOTE: notice how 'phpmyadmin' is missing! Read more →

Online Code Editors – Essential tools for collaboration, prototyping, and development

Here’s a list of code editors you can use in your browser for fun, experimentation, and collaboration: jsFiddle – My favorite online code editor for Javascript/CSS. Embeddable, free, and built-in live collaboration. “Throw it in a jsFiddle” – my new catchphrase. CodePen – A front-end developer’s dream. Founded in part by Chris Coyier (the CSS-Tricks guru), CodePen is actively developed and widely used. The front page is filled with inspiration, and they support straight-up HTML/CSS/JS along with HAML, Markdown, Slim, Jade, SASS, LESS, Coffeescript, and many other front-end technologies. Read more →