Magento Quickies

Modern MySQL and User Authentication

6 hónap 1 hét ago
Given the date on the Stack Overflow post that saved me this is probably old hat for most of you, but it looks like the MySQL configuration provided by Ubuntu 18’s default apt-get repositories defaults to using “the auth_socket plugin”, which links your MySQL logins with your actual system login. Gave me a bit of the get off my lawn once I figured out what was going on.
astorm

Adobe Buys Magento

6 hónap 2 hét ago
I imagine it’s a narrow sliver of folks who follow this site and don’t follow the trades, but just in case: Adobe is going to buy Magento Inc. Right now there’s the usual sound and fury you’d expect from the usual places — Magento’s relentlessly on-message machine isn’t slacking off just because their goal is in sight. The sale doesn’t feel like much of a surprise although the buyer’s thrown folks for a loop. Sit with it a moment though, and you realize Adobe 2018 is a lot like the game company Steam — they’re innovating less in what the […]
astorm

Javascript Date Formatting

6 hónap 2 hét ago
File strtime-js under “Things I’ll need to try the next time I’m working on a javascript project”. Its a javascript library that appears to do a lot of “hey here’s something that might be a date make it look like this”, similar to PHP’s built-in date function.
astorm

DevilBox

7 hónap ago
Devilbox is another attempt to create an all-in-one PHP enviornment using Docker. This one caught my eye because it’s accuratly named.
astorm

Magento 2 and Travis Continuous Integration

7 hónap ago
Over the weekend I ended up doing some gardening in my astorm/magento2-travis repositoy. This repo has simple starter travis.yml file that builds and installs a simple Magento enviornment to run your tests in. Travis is an amazing free resource for running your projet’s continuous integration system — if you haven’t heard of it spend a day giving it a spin.
astorm

Laravel Noun

7 hónap 2 hét ago
This started out as a snarky post but then I realized how often I need a lookup table like this. What have I become? Product What it Does Laravel Passport A composer package to give your Laravel based API OAuth2 features and capabilities. Laravel Cashier A composer package to simplify Stripe and Braintree’s subscription services in your Laravel application. Laravel Dusk A composer package for interacting with a handful of browser automation tools (such as Selenium). Laravel Echo A composer package, npm package, and set of best practices for working with web sockets in your Laravel application. Laravel Horizon A […]
astorm

Homebrew Shuffles PHP Support

7 hónap 4 hét ago
Gripng PSA follows. Homebrew, the really great package manager and services system for MacOS, has recently shuffled around thier support for PHP. It sounds like the main PHP packages are being pulled into the core repository, but that extensions (mcrypt, memcached, etc.) are being dropped and users will need to install these via pecl. On its face this sound like “the right” thing to do — support the core language, as well as the platform’s tool for compiling extensions. In practice, I have meh feelings about how well this is going to work. Building things directly on OS X and […]
astorm

Design Patterns Failed. Why? Should we Care

8 hónap ago
I came across this talk video from Brian Marick at the Deconstruct software conference. It was a refreshingly candid take on why the classic software design patterns are generally considered burdensome chains instead of the pattern language they set out to be. And the question is why. I think you can have several reasons, but I’m going to focus on this one, which is that design patterns started out with not enough building blocks, that were at too low of a level. So if you look at all the design patterns, they’re basically composed of two things. There’s functions, or […]
astorm

More PHP Internals Resources

8 hónap 1 hét ago
It’s always nice when a late answer to a Stack Overflow question shows up with more information than you wanted/needed. The specifics here on dealing with the thread safe resource manager are worth it (if you’re looking for that sort of thing), but more important are the links to the two personal blogs covering random adventures in the PHP source code. These sorts of oral/informal technical writeups are invaluable when you’re learning to reason about any long running software project.
astorm

How PHP Runs a Program

9 hónap 1 hét ago
When I found the PHP Internals site a few months back, I noticed there was a small credit at the bottom. Built by Thomas Punt & Liam Mann Some Googling showed that Thomas Punt had written this How PHP Executes — from Source Code to Render article for sitepoint. While the article was accurate, like a lot of pro internet content it was a breezy, high level read that didn’t set out to get into the specifics of how all these systems worked. Fortunatly, my Where’s the php-src/PHP-Internals Main Entry Point question over on Stack Overflow got a great response […]
astorm

Understanding Git Rebase

9 hónap 2 hét ago
I first saw a version of this talk (from @ellotheth) at PHPPNW in 2015, and it’s the first thing that made git rebasing make sense to me. Too many rebasing tutorials are so busy selling you on the benifits that they gloss over what’s happening to repository. Gemma’s talk not only dives into what a git rebase actually is, but does in a straight forward, gentle way that avoids a lot of the computer science machismo overdoes (or outright bluffing) that you find from other tutorials/polemics on the subject.
astorm

Using a Magento 2 Theme for Transactional Email

9 hónap 2 hét ago
Given Magento 2’s enterprise ambitions, it wouldn’t surprise me if most stores are routing their transactional emails through a seperate (or a series of seperate) email systems. Because Enterprise™. However, if you’re sticking to Magento’s default email system for the password reset, order thank you, sign up, etc. emails, then you might want to check out Daniel Sloof’s Custom Email Theme extension. This extension allows you pick any installed Magento theme and have Magento use it (instead of the Blank theme) for transactional emails. It’s odd to see this sort of fuctionality missing from Magento’s core more than two years […]
astorm

Using “Not Quite JSON” with PHP

9 hónap 3 hét ago
One of the odd side effects of JSON’s wide spread success is how often you’ll run across data that’s not quite json A hello world example looks something like this {a: "Hello World"} If you look at that string, you might think Hey, it’s a JSON string! However, it’s not strict JSON — the a needs to be a quoted string. Consider the output of the following. $foo = json_decode('{a: 8531329}'); var_dump($foo); //NULL $bar = json_decode('{"a": 8531329}'); var_dump($bar); //the object “Not Quite JSON” exists because JSON’s elevator pitch is We encode everything using javacsript objects This means there’s a ton […]
astorm

Useful Magento 2 JavaScript Helper Functions

10 hónap ago
I had to fix a typo in it (thanks Vinai!), so why not squeeze a link out of my Magento 2: uiElement Standard Library Primer article from last year’s uiElements Internals series. I’m reasonably proud of that, and its predecesor UI Component series. I’m also diappointed (but not surprised) that frontend development in Magento 2 remains complicated, slow, and something most smart developers avoid.
astorm

New Docs Site for PHP Internals

10 hónap 1 hét ago
A new documentation site for PHP Internals (the pile of C code that’s used to build PHP itself) magically appeared a few weeks ago and it’s pretty great. While the PHP Internals Book tries to give you the context you need to work in the PHP source code, this new PHP Internals site is trying to document every symbol and the broad hierarchy of systems that make up PHP’s source. If you’re the sort of programmer who needs a plain english understanding of something in order to have it click, this new site looks invaluable.
astorm

Large Configurable Products in Magento 2

10 hónap 1 hét ago
Magento 2, like its forbearers, starts to fall apart when you push larger amounts of data through its systems. One example of this is Configurable Products. Configurable Products allow users to pick options for a product (size, color, etc.), and have each configuration mapped onto a single Simple Product entity. In theory, there’s no limit on the number of simple products you can link to a configurable. In practice, Magento’s UI rendering code starts to choke when the number of simple products attached to a configurable product starts getting into the thousands. Certainly not the standard case, but its not […]
astorm
Ellenőrizve
5 óra 2 perc ago
the professional weblog; because we have to
Feliratkozás a következőre: Magento Quickies hírcsatorna