Author: Robert jackson

  • Things that I don’t like about Ansible

    Things that I don’t like about Ansible

    Ansible does make automation easier, but with some caveats and quirks you have to slowly discover

  • Linux cp command how to copy files to a directory excluding current directory name

    Linux cp command how to copy files to a directory excluding current directory name

    So you want to copy files from one directory to another including all sub directories and files. It sounds simple at first. Say you have a directory with files named /directory1 and you want to move the files and directories within that directory to another named /directory2. How do you do this with the cp […]

  • Why are they doing this to us?

    Why are they doing this to us?

    This is part of the dreams series. Eventually these will be turned into a series of novels about the world pre-apocalypse, during the apocalypse and after. In this particular dream I find myself in the middle of a road, running… lots of people are running. There are explosions in the background. The location reminds me […]

  • How to install git-lfs to push large files to github

    So instead of running software on the github servers to do WTF ever github has to have done to large files, THEY FORCE YOU TO DO IT. What is a large file? A WHOPPING 50Mb!!! Yesterday it was actually 100mb, today it is now 50mb. Soon it will be 1mb FFS.  That isn’t the bad […]

  • PHP how to use values from outside an anonymous function

    In php you can create an anonymous function as a parameter to any other function that requires a function as the input. But you run into a small problem pretty quickly. When you create an anonymous function in PHP it has no access to variables outside of it’s curly braces. So what do you do […]

  • How to add a fulltext index in Doctrine with Symfony 5+

    I had to google to find this answer on Stackexchange because I can’t find anything in the docs. Apparently this is something new so you don’t have to jump through the old circus hoops of the past. Apparently you can add a flags section like this to one of the index definitions of your Entity […]

  • Symfony 5+ how to view dump output with AJAX requests

    Symfony 5+ how to view dump output with AJAX requests

    So the idea is to be able to use the Symfony VarDumper component to be able to dump values when sending an AJAX request and view them for debugging while in development mode, but not in production mode. Create a new directory To do this you will need to create an event subscriber and listen […]

  • AT&T THE NOWHERE NETWORK

    AT&T  THE NOWHERE NETWORK

    CAN YOU HEAR ME NOW???? Would you the shittiest network coverage possible? Do you enjoy important dropped calls? Do you like a noisy background when you talk? Do you like missing lots of calls and text messages only to get bombarded once your POS phone actually finds a signal good enough to communicate with the […]

  • How to update Symfony minor versions

    How to update Symfony minor versions

    This is a work in progress. I’ll keep updating it with time.  Most of my articles are for me so I can remember what I did and the problems I had and how I solved them. I’d suggest updating your composer packages more often than just when you are moving to a newer version of […]

  • How to set application values for easy reuse in Symfony 5+

    How to set application values for easy reuse in Symfony 5+

    This article is a work in progress and will be further updated much more in the future. I don’t feel it is complete yet, I’d like to cover more details, more screenshots etc.. So how do you set/configure a value like an upload directory in one location in Symfony so that you can easily use […]