Magento Quickies

Feliratkozás Magento Quickies hírcsatorna csatornájára
the professional weblog; because we have to
Frissítve: 8 óra 13 perc

Modern MySQL and User Authentication

v, 06/03/2018 - 13:37
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.
Kategóriák: IT Hírek

Adobe Buys Magento

cs, 05/24/2018 - 13:45
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 […]
Kategóriák: IT Hírek

Weird PHP Operators

sze, 05/23/2018 - 13:36
This one came across my desk last week. Dangers of using a kitchen sink language I suppose.
Kategóriák: IT Hírek

Javascript Date Formatting

h, 05/21/2018 - 13:21
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.
Kategóriák: IT Hírek


k, 05/08/2018 - 13:23
Devilbox is another attempt to create an all-in-one PHP enviornment using Docker. This one caught my eye because it’s accuratly named.
Kategóriák: IT Hírek

Magento 2 and Travis Continuous Integration

h, 05/07/2018 - 14:48
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.
Kategóriák: IT Hírek

Laravel Noun

cs, 04/26/2018 - 13:30
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 […]
Kategóriák: IT Hírek

Create PHP Extensions in Go instead of C

h, 04/23/2018 - 13:07
This is more of a “I would like to check this out later” than “I endorse this” link, but this project looks like an interesting way to get your go code running in a PHP enviornment.
Kategóriák: IT Hírek

Why Does “=” Mean Assignment?

cs, 04/12/2018 - 13:11
My favorite part of this too-brief foray into the history of = as an assignment operator is how crazy keyboards were in the 60s and 70s were.
Kategóriák: IT Hírek

Homebrew Shuffles PHP Support

sze, 04/11/2018 - 13:03
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 […]
Kategóriák: IT Hírek

Design Patterns Failed. Why? Should we Care

k, 04/10/2018 - 13:55
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 […]
Kategóriák: IT Hírek

More PHP Internals Resources

v, 04/01/2018 - 03:42
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.
Kategóriák: IT Hírek

How PHP Runs a Program

h, 02/26/2018 - 13:21
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 […]
Kategóriák: IT Hírek

Understanding Git Rebase

sze, 02/21/2018 - 13:49
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.
Kategóriák: IT Hírek

Using a Magento 2 Theme for Transactional Email

h, 02/19/2018 - 13:05
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 […]
Kategóriák: IT Hírek

Using “Not Quite JSON” with PHP

k, 02/13/2018 - 13:55
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 […]
Kategóriák: IT Hírek

Useful Magento 2 JavaScript Helper Functions

k, 02/06/2018 - 13:57
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.
Kategóriák: IT Hírek

New Docs Site for PHP Internals

cs, 02/01/2018 - 13:16
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.
Kategóriák: IT Hírek

Simple Command Line Image Manipulation is OS X/MaxOS

k, 01/30/2018 - 13:45
File this one under old-but-new-to-me tech: OS X/Mac OS ships with a simple command line application named sips that lets you perform simple image manipulations like resizing, rotating, image flips, crops, etc.
Kategóriák: IT Hírek

Large Configurable Products in Magento 2

h, 01/29/2018 - 13:39
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 […]
Kategóriák: IT Hírek