2023/08/11#p1
Happy Friday!
And a very happy 50th birthday to Hip-Hop!
August 11th 1973, when DJ Kool Herc held a party and used the 'merry-go-round' technique of playing the breaks from records, is the symbolic birthday of the Hip-Hop movement. It is seen as the moment when everything came together and a new culture was born.
2023/08/11#p2
There are two more features I want to add to SPARKS:
- search, and
- file export
Once they are done it will be a viable v1.0 rather than a MVP.
2023/08/11#p3
I'm so used to working with the linear flow of PHP and primarily using JavaScript to animate and manipulate the DOM.
SPARKS is making me work! 😆 It's good, though, because I'm learning.
With multiple AJAX calls within the same workflow I was getting caught out by them not completing in sequence and a file which should have been there getting deleted before it could be accessed.
I've ended up having to nest the calls so that the second only starts after the first completes. I could have started messing around with async functions and await but that would make things more complicated than they needed to be.
Still, I've ironed out some kinks and the file export feature is done. Just search to go and I already know how I'm going to do that repurposing code from elsewhere.
2023/08/11#p4
Something has changed on my host.
For over a year I've had the option of blocking the IP address of failed logins – normally spam bots checking for vulnerabilities. This was working fine until overnight.
I received an email of a failed login attempt at 11:26pm last night with the correct IP address of the host trying to log in. This morning, however, all notifications reported the IP address of the server.
I have been using $_SERVER['REMOTE_ADDR'] but our host seems to be forwarding the original IP address – I'm assuming they've implemented a new proxy or something. I've switched to check for $_SERVER['HTTP_X_FORWARDED_FOR'] instead as that seems to be giving the correct result and I can properly block those evil bots again.
@colinwalker Thank you for a fascinating morning. I was going to say that such things are rarely happen in isolation - which led me down the Jamaican (from whence Kool Herc came) sound systems of the late sixties early seventies rabbit hole - I had forgotten that Big Youth was on Prince Buster's The Message.
I do love getting lost in a good musical history lesson. I was just reading about how Peter Frampton discovered the Talkbox via Austin Kleon's newsletter.