Greg Roach

Software developer, sysadmin and all-round IT guy for the Open University in Milton Keynes.

2025-06-22

@ramsey - if the timestamps are generated by MySQL, then aren't they set to the start of the transaction, not to the actual time? So overlapping transactions would explain this...?

2025-02-06

@jdecool - I have about 2000 errors in my baseline for about 250,000 lines of code. (Down from about 8000 when I started using phpstan.)

AFAICT, most are caused by two things:

1) I have an error-handler so functions like file_get_contents() will throw exceptions instead of returning false.

2) Every SQL query (Laravel QueryBuilder) gives a return type of mixed, and I don't see a way to tell it what columns/types are returned.

2024-12-26

@paulshryock Using `FooInterface` frees up the name `Foo` for your implementation. If the interface is `Foo`, then I need to think of something else to call my implementation. One of the two hardest problems in computer science and all that... 😀

2024-12-25

@paulshryock IMHO, interfaces should always have names ending in"Interface". No preference as to implementation names.

2024-11-30

#webtrees 2.1.22 (PHP 7.4-8.4) and 2.2.1 (PHP 8.3-8.4) are now available for download. See webtrees.net/blog for the changelog.

2024-11-23

#webtrees 2.1.21 is now available for download. It adds support for PHP 8.4. See webtrees.net/blog/ for more details.

2024-05-18

@maccath @protonprivacy

I switched from Google to Proton when the former demanded my date-of-birth and threatened to terminate my account if I failed to provide it. They didn't, but I moved anyway. Initially, the offering was a bit incomplete (e.g. sync local filesystem to remote storage), but they update regularly and it now does everything I want/need. I can't fault them. If you do decide to sign up, here's a referal code. pr.tn/ref/NFVKJKEJQFG0

2024-04-10

#webtrees 2.1.20 is now available for download. Compatibility fixes for PHP 7.4, PHP 8.4 and PostgreSQL

webtrees.net

2024-03-19

#webtrees 2.1.19 is now available for download
webtrees.net

2024-02-16

@thomastospace The only thing I can remember from that time was a server crash, not a browser crash. bugs.php.net/bug.php?id=53632

2023-10-02

@dgoosens - Once - for a F/OSS project that had been MySQL for a decade, and now runs on MySQL/Postgres/SQLite/SQLServer.

2023-09-25

@grmpyprogrammer

`whois littlehart.net ` says 1998-10-07 (but I bet you knew that really!)

I've had subaqua.co.uk since 03-Dec-1997

2023-08-11

@osteel - Life isn't always about money. I have all those skills but earn 2/3 that. I work at a university with a great campus and facilities. I get 45 days leave, work-from-home, flexible hours, a great boss and no stress. I wouldn't swap it for double the money!

2023-05-04

@theshaunwalker - At least you got to vote. I was turned away. 6 forms of photo-id plus my ballot card. Not good enough.

Yes - I could have applied for a voter-id card last month - but if I was that organised then I would be able to find my driving licence.

2023-04-18

@Synchro - I was there too! I'll look up the video.

2023-03-27

@skematogafi - did you specify the username in the command line?

sftp username@example.com

2023-02-15

@emd

The PR seems to assume that anyone using expressions will extend the class.

github.com/laravel/framework/p

The upgrade guide says it "does not affect end user applications".

laravel.com/docs/10.x/upgrade#

So, I guess I must be missing something, like an undocumented ->pluckRaw() function...

2023-02-15

In #laravel 10, we can no longer pluck expressions from database queries.

->pluck(DB::raw('sum(foo)'))

The upgrade guide says we must now use:

->pluck(DB::raw('sum(foo)')>getValue(DB::connection()->getQueryGrammar())

This all seems rather "un-eloquent".
Am I missing something?

Greg Roach boosted:
2023-01-25

This is my first time submitting a PR to Laravel and I'm surprised no one among the eyeballs watching the huge framework has noticed this issue. github.com/laravel/framework/p

2023-01-25

@zonuexe Good spot! I think the `D` modifier might be a little more readable than `\z`. Either way, there's lots of code I need to review...

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst