Foxe Labs Foxe Labs

// Writing

From the studio

Notes on how we build — open-source software, expert advisor design, risk, and the occasional release.

A green terminal character watching a gold XAUUSD candlestick chart break out upward on a dark premium background, with a shield marking an early breakeven stop
Trading · 5 min

Gold Scalpel: a pre-tuned XAUUSD scalper EA for MT5

Gold Scalpel is our first expert advisor — a fully automated gold scalper for MetaTrader 5 that trades genuine XAUUSD breakouts, moves every trade to breakeven early, and ships pre-tuned with just eight settings.

Read more
A green terminal character holds a clipboard listing active users, each shown as an ID card with a green online dot, while it reaches out to sign one fading session out
Software · 10 min

How to view active login sessions on a WordPress site

WordPress lists every account that exists, but never the ones signed in right now. Here are four ways to see active login sessions — from a raw SQL query to a one-click admin tool — with honest pros and cons for each.

Read more
Illustration of a person and a green terminal character moving from hostility to friendship in four stages — arguing, puzzling it out, growing something together, and finally sitting side by side
· 5 min

From enemies to best friends

Programming and I started out as enemies. This is the story of how it became the thing I do best — a seven-year detour through mechanical engineering that never happened, hacking, and one very good teacher.

Read more
A green terminal character sifting a list of words through a magnifying glass, pulling out the ones that contain a highlighted substring
Software · 3 min

Partial string search in an array using PHP

There's no built-in PHP function to find every array element that contains a substring. Here's the small helper I wrote for it — and the two one-liners that replace it on modern PHP.

Read more
A developer at a desk contributing to WordPress, with a friendly green terminal character looking on and the WordPress logo glowing above the screen
Software

My first WordPress core contribution is live

WordPress 4.7 shipped today with my name in the contributor list — a small patch for a broken importer link that now runs on millions of sites. Here's the bug, the fix, and why giving back is worth it.

Read more
A green terminal character inspecting a WordPress plugin with a magnifying glass and shield, catching a hidden link that only appears to a search-engine crawler bot
Software · 3 min

What the 404 to 301 tracking incident taught me about plugin security

In 2016 my most popular plugin shipped a usage-tracking feature that a partner turned into cloaked ads for search-engine crawlers. Here's a level-headed account of what went wrong and the lessons that still guide how I build plugins.

Read more
A green terminal character watching a large countdown timer tick from 3 to 0, with a signpost arrow pointing to the destination page
Software

Countdown redirect using JavaScript

How to send a visitor to another page after a visible countdown — a clean, accessible JavaScript version, plus a no-JavaScript fallback and the setTimeout pitfall to avoid.

Read more
A green terminal character with the Laravel logo raises a hand to halt a row of validation gates — the first passes, the second is stopped by a barrier, and the later gates (including a database check) sit dimmed and never reached
Software

Laravel bail: stop validation on the first failure

A single validation rule kept firing every check on a field and throwing a database error along the way. The fix was a one-word rule called bail — one I ended up contributing to Laravel itself.

Read more