ltscom
u/ltscom
Reusable OpenAPI Classes: Eliminating Boilerplate in PHP API Documentation | LTSCommerce - Bespoke PHP Development
ltscommerce.dev/articles/reusable-openapi-cla...I had an idea that learning gendered words might be easier if I can get a background colour in there
Anyway, a few hours and a lot of AI later I have this little tool
Please have a play with it
https://ltscommerce.github.io/learning-french/vocab/
If anyone has great ideas on how I can generate words lists that would be great, or any other feedback
I read someone who mentioend that if you don't use SCREAMING_CASE then you have zero chance of accidently overwriting important environment variables. Also I find camelCase a lot nicer to read.
For that reason, I always use camelCase for my own variables, but will continue to use SCREAMING_CASE for environment variables
What's your thoughts?
To create a Christmas-themed bash prompt, you can use the PS1
variable to customise your prompt. For example, you could use the following bash code to create a prompt that includes a Christmas tree, some snowflakes, and the current time:
PS1="\n🎄 $(date +"%T") \n☃️ "
This code sets the PS1 variable to a newline, a Christmas tree emoji, the current time in 24-hour format, another newline, a snowflake emoji, and a space.
You can also add additional elements to the prompt, such as the current working directory or your username, by using the \w and \u escape sequences, respectively. For example:
PS1="\n🎄 \u@\h \w $(date +"%T") \n☃️ "
This code adds the username and hostname t
Anyone know of anything in PHP that helps working with Microsoft Dataverse web apis?
I've done some digging around and found a few things but they look a bit abandoned
I had a bash at getting a remote development system working for someone
Unfortunately it failed, though not where I thought it would. I wrote up my notes here:
https://ltscommerce.dev/general/jetbrains-phpstorm-remote-development
In a nutshell:
- plugins - you probably have some that are basically required, though actually getting these installed and working seems flakey at best
- running commands - ssh agent forwarding did not seem to work well, but without it things seem OK
- connecting from a remote mac - unknown issues just causing it to hang and nothing in the logs indicating what might be going wrong.
I'd rea
It's long enough ago since I wrote my first book that I've forgotten all the pain and now for some weird reason I'm getting the itch to do another one.
I'm curious about self publishing as opposed to going through a publisher. I found the publisher route really helpful but also constraining - particularly with how code is presented in the book. The next book I will self publish, pretty much just to see how it goes and so I can compare. If anyone has any particular advice on self publishing I'd appreciate it by the way :)
So if I was going to write another book, what should it be about?
I quite fancy writing something with a deep focus on one particular thing - had thought about focusing o
Just spotted this. bummer, whats the best work around (other than switch to a supported OS ffs)?
I've written a blog article about the process of writing my first book, and introducing the tooling that I used to make the process a lot nicer than it could have been
https://joseph.edmonds.contact/writing-my-first-book/
The tooling is here https://github.com/LongTermSupport/php-book-markdown-tools - it allows code snippets to be automatically embedded and updated within markdown files. It can also execute the code and capture the output and embed that as well.
Any aspiring authors, check it out and let me know if it helps you!
I've decided to put together a public fedora repo that does some basic configuration for me. Currently its quite minimal, and I intend to keep it as minimal as possible
I thought people might like it though as something they could use as the basis for their own personal config repo
You can see it here:
https://github.com/LongTermSupport/fedora-desktop
It uses a simple bash script for basic configs and then switches to Ansible for more indepth configuration.
Of course, the precise configurations are likely to differ quite a lot from person to person but I think the basic structure is hopefully quite useful as a starting point for someo
Inspired by another, now removed, post - I thought I'd highlight that the PHP docs are one of the best things about the language. Have you ever actually read them?
I don't mean the whole damn docs site, which is huge, but in particular I think you should have read this section: