@derickr@phpc.social
@derickr@phpc.social avatar

derickr

@derickr@phpc.social

Hi, I'm Derick.

I work on PHP as part of the PHP Foundation.
I am the author of https://phpc.social/@Xdebug.

I like #walking, #languages, #photography, #astronomy, and #space, and will post about these topics alongside #PHP.

#fedi22

This profile is from a federated server and may be incomplete. Browse more on the original instance.

derickr, to Eurovision
@derickr@phpc.social avatar

Sweden is so cultured, that they need Norwegians to do their song.

pjaspers, to Eurovision
@pjaspers@mastodon.social avatar

I don’t know if it’s possible, but it would be hilarious if Joost were the one submitting the scores for the Netherlands.

derickr,
@derickr@phpc.social avatar
jess, to Eurovision
@jess@blop.social avatar

Bambie not in afternoon dress rehearsal over an EBU incident - apparently something to do with the Israeli commentator. And France interrupted the song to make a stand.

If any more pull out they’re going to have running order issues…

derickr,
@derickr@phpc.social avatar

@BritishTechGuru @jess He was expelled, and Dutch news reports due to a frackas with a Swedish production staff member.

derickr, to photography
@derickr@phpc.social avatar

📷 NW10 56

🚩 Chamberlayne Road, London, United Kingdom

theshaunwalker, to random
@theshaunwalker@phpc.social avatar

Chance to see my first aurora in person, from my own home.

But thanks to national rail having a warehouse behind my house, and they desperately want to monitor their empty car parks at night, the flood lights pointing directly at my house are likely going to drown out any chance.

I love commercial being allowed to piss away energy and disrupt residential neighbours 🙃

derickr,
@derickr@phpc.social avatar

@theshaunwalker Where in the UK are you? No luck in London.

derickr,
@derickr@phpc.social avatar

@theshaunwalker City lights mute it though. Enjoy though! They're truly amazing.

mvexel, to random
@mvexel@en.osm.town avatar

EU Parliament ballot instructions: "How to print your ballot? Easy! Just go find some A4 paper and click print!"

Me: goes on a quest to find A4 paper in the U.S.

derickr,
@derickr@phpc.social avatar

@mvexel Haha. I got mine too today, but... we (still) use A4 in the UK.

18+ Edent, to random
@Edent@mastodon.social avatar

I feel the need… the need to bleed!

- register at https://blood.co.uk

derickr,
@derickr@phpc.social avatar

@Edent Only once every 12 weeks 😕

derickr, to photography
@derickr@phpc.social avatar

📷 Finger post in the snow

🚩 Boucle du Sommet, Montréal, Canada

#FingerpostFriday #Photography #Snow

dsp, to random
@dsp@nullptr.rehab avatar

New favorite sports: give random Brits unsolicited compliments and watch how they try to comprehend. You can clearly see how their brain reaches a state that it wasn’t supposed to

derickr,
@derickr@phpc.social avatar

@dsp Compliments are used sarcastically in British English. Like in: "good job!" or "that went well!".

JosephLeedy, to random
@JosephLeedy@phpc.social avatar

I’m at my wits end with Enterprise Car & Van Hire UK right now. Anyone got any suggestions?

https://maps.app.goo.gl/YpXPXEpQewLZ4Dhj6?g_st=ic

derickr,
@derickr@phpc.social avatar

@JosephLeedy Small Claims Court. Might be a pain from the US though :-/.

derickr,
@derickr@phpc.social avatar

@JosephLeedy I reckon it depends how much evidence you have. You write "They even gave me a discount for the trouble." And, wasn't their anything insured? Ask them for the proof that you caused this damage (I suspect you have though?). I would suggest you don't pay anything. I wonder how they'd even send you for collections... you being in the US. You might also want to have a look at https://www.themotorombudsman.org/consumers/make-a-complaint for an alternative.

edgren, to php

The more I'm thinking about it, the more I consider it.

I want to add a map for my bicycle rides, but I can't find any good PHP maps. The PHP versions of Leaflet on GitHub are no good. They don't work at all. They just gives you errors like "can't load class" or something like that.

So even if I am against it only to challenge myself, I consider using Leaflet in JS for airikr.me/biking.

Or do you have any solution in PHP that works out of the box?

derickr,
@derickr@phpc.social avatar

@edgren I've used leaflet (js) on the Web, pulling data in geojson from a PHP backend. It works great.

Select the Flickr layer on https://maps.derickrethans.nl/ for an example.

derickr,
@derickr@phpc.social avatar

@edgren How would PHP do that in the browser?

derickr,
@derickr@phpc.social avatar

@edgren I would just get the right osm map tiles and draw on that. I did that ages ago.

derickr,
@derickr@phpc.social avatar

@edgren I'll check tomorrow or I still have that code somewhere.

derickr,
@derickr@phpc.social avatar

@edgren https://gist.github.com/derickr/0e06c26835ff8ddcf3d62f10403adb8c — should do the job.

Tweak the zoom level in the generate-image.php file (try with 10 first, then make it larger).

Creates something like the attached file.

derickr,
@derickr@phpc.social avatar

@edgren composer require derick/gpx-tools (or gpx-utils, I forgot).

derickr,
@derickr@phpc.social avatar

@edgren Can't see your GPX file, but you might want to increase the zoomLevel parameter by one or two.

derickr,
@derickr@phpc.social avatar

@edgren I'd just do it... You do have the GD extension? Email me your GPX otherwise and I'll have a look (later this weekend). They can be fiddly.

derickr,
@derickr@phpc.social avatar

@edgren You can probably use https://www.php.net/manual/en/function.imagesetthickness.php before drawing any line.

derickr,
@derickr@phpc.social avatar

@edgren Show your results too! :-)

derickr,
@derickr@phpc.social avatar

@edgren An eclipse centred on your place isn't clever. Because if there are multiple traces going in different directions, I can still guess where its centre would be.

Your best approach would likely be to truncate your home's lat/long to less precision, and then calculate the min x/Y and max x/y around that truncated cords to the next one up. And then exclude any lines where the x and y of either side falls outside of that newly calculated box.

derickr,
@derickr@phpc.social avatar

@edgren It's just maths. Will have a look Monday. The weather is too nice for maths :-) 🍻😎

sundogplanets, to random
@sundogplanets@mastodon.social avatar

I am talking o a reporter about this in a couple hours: https://regina.ctvnews.ca/from-outer-space-sask-farmers-baffled-after-discovering-strange-wreckage-in-field-1.6880353

This is about an hour away from my farm, so this'll be a fun conversation, and yet another great opportunity to tell a lot of people about what a huge problem we have with unregulated commercialization of orbit. (Also I just redid my slides for my public talk next week, this is going in!)

derickr,
@derickr@phpc.social avatar

@sundogplanets @planet4589 I'm sad he's no longer posting here.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • thenastyranch
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • osvaldo12
  • GTA5RPClips
  • kavyap
  • megavids
  • InstantRegret
  • everett
  • tacticalgear
  • vwfavf
  • tester
  • normalnudes
  • modclub
  • ethstaker
  • khanakhh
  • cisconetworking
  • anitta
  • Leos
  • JUstTest
  • All magazines