I’m working on a project with live reload and I found myself scratching my head over the issue of live reload not working in firefox.

First thing I checked was another browser, where it was working fine. This I followed with a quick search on live reload, docker and firefox, which returned a few setups that were close to my own, so nothing to see there.

At this point I was willing to sleep on it as it’s already late, but I realised that I have recently added a custom dev domain to this project. NoScript was blocking JS.


I had to print out a return label, so I plugged my dusty old Epson DX4050 printer to a new pc, only to be welcomed by a non-working printer.

Most information I could find was talking about manually adding the printer via CUPS web admin panel. Before you do that though, try this as it worked for me.

This will install gutenprint drivers (v5.3.3 in my case). Then go to settings -> printers and remove your printer. Once removed, add it back, this time make sure the driver is the newly installed gutenprint one. For me it was picked automatically and voila, the printer now works as expected.

Hope this helps :-)


Flip between non xdebug local dev (much fast) to xdebug local dev (not fast but much insights) at the flick of a cookie (single click via xdebug browser extension)

— by @jenko

This article is updated for xdebug v3, if you are using xdebug v2, head to the old one.

All code examples can be found in a demo repository on github: https://github.com/strayobject/php-xdebug-docker

For some projects, developing with Xdebug running on every request is an acceptable solution — especially on Linux, where there are little to no performance penalties for running Docker. …


TL;DR;

I have rebooted mylaptop for the first time in weeks, but rather than booting up as usual I was presented with a BusyBox shell and no extra info.

Thinking nothing of it, I’ve typed exit in hope that it would just go away.

It did not…

Instead it run a check and asked me to run an fsck on a particular partition (I guess)

It may be different depending on the situation, however, in my case it was /dev/mapper/ubuntu--vg-root

After fixing all issues it was a case of another exit to be presented with a normal boot sequence. Phew!


Flip between non xdebug local dev (much fast) to xdebug local dev (not fast but much insights) at the flick of a cookie (single click via xdebug browser extension)

— by @jenko

All code examples can be found in a demo repository on github: https://github.com/strayobject/php-xdebug-docker

For some projects, developing with Xdebug running on every request is an acceptable solution — especially on Linux, where there are little to no performance penalties for running Docker. In most cases though it is better to be able to enable Xdebug selectively.

In a typical Docker PHP setup we would have 1 Nginx/Apache container
and…


Every time I try to reflash a board I stumble upon this error and it gives me a pause. It’s obvious that the issue is of permissions, but as I don’t do it often I forget what the solution is. And since searching for one returns a lot of over the top ones. I hope this helps a lost soul somewhere out there :-)

sudo setfacl -m u:<your_username>:rw- /dev/ttyUSB0

After that you should be able to flash the board.

Note: This is most likely only a linux solution (though it’s most likely only a linux problem too)


Backstory

I’ve recently started working with a multi-4k-monitor setup on Ubuntu 18.10. Everything was working fine until I’ve decided to upgrade a cable for one of the monitors to up the refresh rate from 30Hz to 60Hz.

The cable I bought was a miniDP to DisplayPort (before I’ve been running miniDP to HDMI).
Swap was uneventful, but as I came back after a while the monitors went to sleep and when they woke up it turned out that the DisplayPort 4K screen was showing ‘No Signal’. …


Recently I’ve started getting an error on the login page of my ubuntu laptops (16.04 and 18.04), both running Unity.

Whenever the laptop is put to sleep or the screen turns off it wakes up with the error saying:

There is an easy fix for it that has worked for both Ubuntu versions:

Hope this helps :)


Jumping between different ubuntu laptops may mean that the mouse has a different acceleration/movement speed even though both setups have it at the fastest possible setting, but fear not, you can tweak it and make it go beyond the max speed :-D


Have you ever added a new query on the model and everything broke?
If your log contains Scanner: Unknown opcode 58 then it is quite likely you have simply forgot a trailing colon in your “where” clause.
For example:

instead of:

Hope this helps.

Mike

@glasgowphp co-organizer. Winter swimming at Loch Lomond. I enjoy music | sailing | skiing & a good drive.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store