browse the blogs

[ 1 Oct 2017 ]

Just Enough C for PHP: Running C Programs:

This entry is part 2 of 2 in the series Just Enough C for PHP. Earlier posts include Just Enough C for PHP. This is the most recent post in the series. In our last article, we promised to show you how to run a simple hello world program written in C //File: main.c #include int main() { printf(“Hello World\n”); return 0; } If you’re lucky, and your computer already has the tools you’ll need to work with C, all you’ll need to do is create the above main.c text file, and then run the following terminal commands $ cd […]

[ 17 Sep 2017 ]

Chrome to force .dev domains to HTTPS via preloaded HSTS:

TLDR; There’s a real .dev top level domain that Google owns (and Amazon previously tried to buy), and a recent Chromium nightly (Google Chrome’s browser engine) automatically redirects all .dev domain names to an HTTPs version of the site. Chrome to force .dev domains to HTTPS via preloaded HSTS

[ 16 Sep 2017 ]

Unofficial Magento Roadmap:

An Unofficial Magento Roadmap, pulled together from various promises, metions, and allusions made by Magento Inc. employees. (Glad I took Dr. Jones’ course at Marshal University (I thought about Kremlinolgy joke instead but too real)).

[ 4 Sep 2017 ]

Git Move:

When I’m working solo, (which usually means I’m doing the initial scoping and prototyping of some sort of feature and/or system), my “git workflow” is usually a shove it all into master affair. When I switch off to team work I often find myself in a situation where I’ve done a done of work without branching first. That’s where git move comes to the rescue. Okay, one more… Ever commit something only to immediately realize that you’re on the wrong branch? Use “git move ”. http://pic.twitter.com/fKpZTRkdRu — coderabbi™[for rent] (@coderabbi) September 4, 2017

[ 4 Sep 2017 ]

Regular Expression Cheat Sheet:

Real Talk: I mostly just split/explode strings down to the parts I need these days, but I’ll always have a palce in my heart for regular expressions. Regular expression cheat sheet. http://pic.twitter.com/C0PdZ5aNXx — Mike Kearney📊 (@kearneymw) September 3, 2017

[ 4 Sep 2017 ]

Just Enough C for PHP:

This entry is part 1 of 1 in the series Just Enough C for PHP. This is the first post in the series. The funny thing about the C programming language is, if you look hard enough, you can see how it maps out the next 40 years of professional programming. The syntax is the most obvious thing — functions, variables, nested braces, conditionals, loops, indexed lists (i.e. arrays), indexed dictionaries (structs), variable references (pointers), functions-as-variables (function pointers). These are things we all take for granted now, but in 1978 there was no clear consensus on what sort of base […]

[ 27 Aug 2017 ]

Calling them Home:

With all the Yahoo and Verizon shenanigans going on I decided to pull my Magento Quickies posts off Tumblr and hold them close again at my personal home page. You can find all the old posts in the Programming Quickies category. DNS is doing its DNS thing, but magento-quickies.alanstorm.com should eventually redirect to that same category page, and all the old URLs should be safely redirected to the right place. This post will be proof that the new IFTTT rule I’ve setup will make a link post to the remnant magento-quickies.tumblr.com, which I’m keeping around for folks who prefer getting […]

[ 27 Aug 2017 ]

Hello Tumblr denizens! Just a quick heads up – I’m migrating my writing off this blog and onto my main site in a new Programming Quickies category.

If you prefer to see the internet is through Tumblr, don’t worry. While I needed to move old posts off Tumblr I’m setting some IFTTT recipes to cross post excerpts and links from new posts. You’ll miss nothing as we sit here together, hoping Verizon doesn’t leave a trail of destruction in its wake.

I’ll have more to say about this shortly. Until then, be kind to each other.

[ 26 Jul 2017 ]

One thing I breezed by in my recent Modifying a jQuery Widget in Magento 2 article was the whole returns two widgets RequireJS module thing. We mentioned that modules like the mage/menu module will do this.

//File: vendor/magento/magento2-base/lib/web/mage/menu.js
define([
    "jquery",
    "matchMedia",
    "jquery/ui",
    "jquery/jquery.mobile.custom",
    "mage/translate"
], function ($, mediaCheck) {
    'use strict';

    $.widget(/*...*/);


    $.widget(/*...*/);

    return {
        menu: $.mage.menu,
        navigation: $.mage.navigation
    };
});

However, we never got into what it means for a RequireJS modules to return two widgets. We …

[ 26 Jul 2017 ]

One thing I breezed by in my recent Modifying a jQuery Widget in Magento 2 article was the whole returns two widgets RequireJS module thing. We mentioned that modules like the mage/menu module will do this.

//File: vendor/magento/magento2-base/lib/web/mage/menu.js
define([
    "jquery",
    "matchMedia",
    "jquery/ui",
    "jquery/jquery.mobile.custom",
    "mage/translate"
], function ($, mediaCheck) {
    'use strict';

    $.widget(/*...*/);


    $.widget(/*...*/);

    return {
        menu: $.mage.menu,
        navigation: $.mage.navigation
    };
});

However, we never got into what it means for a RequireJS modules to return two widgets. We …