Page MenuHomePhabricator
Feed All Stories

May 9 2023

cspeckmim updated the diff for D21862: Addressing some PHP 8 incompatibilities.

I jumped the gun and updated my local arcanist to using php 8.2 which introduced the UT errors

May 9 2023, 2:28 AM
cspeckmim updated the diff for D21862: Addressing some PHP 8 incompatibilities.

Remove changes to profile menu files

May 9 2023, 2:16 AM
cspeckmim planned changes to D21862: Addressing some PHP 8 incompatibilities.

Thank you for the thorough explanation. Yesterday I tried searching for how to dynamically add functions to classes but apparently my searching today is better~

May 9 2023, 1:36 AM
cspeckmim updated the diff for D21862: Addressing some PHP 8 incompatibilities.

Made suggested changes except I haven't pulled out the profile menu stuff yet.

May 9 2023, 1:29 AM
cspeckmim added inline comments to D21862: Addressing some PHP 8 incompatibilities.
May 9 2023, 1:21 AM

May 8 2023

epriestley requested changes to D21862: Addressing some PHP 8 incompatibilities.

The relation between AuthProvider and AuthProviderConfig and AuthAdapter confused me a bit

May 8 2023, 5:07 AM
cspeckmim updated the diff for D21862: Addressing some PHP 8 incompatibilities.

Be consistent with usage/checks

May 8 2023, 2:22 AM
cspeckmim added inline comments to D21862: Addressing some PHP 8 incompatibilities.
May 8 2023, 2:22 AM
cspeckmim retitled D21862: Addressing some PHP 8 incompatibilities from Addressing PHP 8 incompatibilities to Addressing some PHP 8 incompatibilities.
May 8 2023, 1:53 AM
cspeckmim published D21862: Addressing some PHP 8 incompatibilities for review.
May 8 2023, 1:32 AM

Apr 30 2023

epriestley added a comment to T13588: PHP 8 Compatibility.

I think the string typehint isn't supported until recent-ish PHP, so its availability will depend on your minimum supported version.

Apr 30 2023, 3:41 AMInfrastructure

Apr 29 2023

cspeckmim added a comment to T13588: PHP 8 Compatibility.

As an example, given this code

private $name;
Apr 29 2023, 8:33 PMInfrastructure
cspeckmim added a comment to T12071: Require "E" be defined in variables_order so $_ENV is correctly populated.

I was ready to suggest that after further investigation was made, recalling the "recent" refactor work of the mercurial command-with-extensions changes we looked at 馃槃

Apr 29 2023, 7:46 PMInfrastructure
epriestley added a comment to T12071: Require "E" be defined in variables_order so $_ENV is correctly populated.

For https://we.phorge.it/T15281, consider modifying DiffusionGitCommandEngine->newFormattedCommand() to pass explicit configuration to Git (as we do in Mercurial) rather than requiring administrators correctly configure Git via .gitconfig via $HOME.

Apr 29 2023, 7:39 PMInfrastructure
cspeckmim added a comment to T13588: PHP 8 Compatibility.

Gotcha. I'm going to take a swing at updating past 8.0 and see what crops up. Also thanks for the tip with PHPAST. I haven't looked too much into it other than trying to get it working on Windows a year or so back

Apr 29 2023, 4:49 PMInfrastructure
epriestley added a comment to T12071: Require "E" be defined in variables_order so $_ENV is correctly populated.

With the caveat that I mostly dig holes in the dirt now and no longer remember how computers work:

Apr 29 2023, 2:45 PMInfrastructure
cspeckmim added a comment to T12071: Require "E" be defined in variables_order so $_ENV is correctly populated.

Would this be reasonable to address with a new server-side setup check, similar to the checks for post_max_size and op_cache values?

Apr 29 2023, 2:04 PMInfrastructure

Apr 26 2023

epriestley added a comment to T13588: PHP 8 Compatibility.

I favor dealing with them on a case-by-case basis since they don't seem especially pervasive and I think in most of the cases where I've fixed the issue, the fix I chose wasn't just to swap the call. I think these strlen() errors are often a correct/useful symptom of undesirable slop in type handling.

Apr 26 2023, 7:29 PMInfrastructure
cspeckmim added a comment to T13588: PHP 8 Compatibility.

PHP 8.1 disallows strlen(null).
...
Broadly, Phabricator likely will not pass the empty string as a constraint in these cases...
...
D21762 introduces phutil_nonempty_string(), which is like this test but slightly stricter (it raises an exception for wonky values) and easier to revisit later (i.e., use of this function is a hint that the code can be made more strict about value types).
...
Upshot:

  • if (strlen($maybe_null)) may be replaced in all cases with if (phutil_nonempty_string($maybe_null)) to work in PHP 8.1 and not break any code which wasn't already extremely suspicious (...stringlike() may be required if the value may be an object, usually a URI object).
  • This is usually not the most desirable replacement, but probably 95% of these aren't realistically worth being surgical about.
  • In new code, prefer increasing type strictness over these more-flexible tests.
Apr 26 2023, 7:05 PMInfrastructure

Apr 25 2023

cspeckmim closed D21861: Fix support for pk-zip compressed figlet font files.
Apr 25 2023, 8:30 PM
cspeckmim committed rPbc6f4786a2e3: Fix support for pk-zip compressed figlet font files (authored by cspeckmim).
Fix support for pk-zip compressed figlet font files
Apr 25 2023, 8:30 PM
epriestley accepted D21861: Fix support for pk-zip compressed figlet font files.

Aha! Looks good, then. Thanks!

Apr 25 2023, 8:08 PM
cspeckmim retitled D21861: Fix support for pk-zip compressed figlet font files from Remove support for compressed figlet font files. to Fix support for pk-zip compressed figlet font files.
Apr 25 2023, 7:34 PM
cspeckmim updated the diff for D21861: Fix support for pk-zip compressed figlet font files.

smoosh the commits?

Apr 25 2023, 7:27 PM
cspeckmim planned changes to D21861: Fix support for pk-zip compressed figlet font files.
Apr 25 2023, 7:22 PM
cspeckmim added a comment to D21861: Fix support for pk-zip compressed figlet font files.

I am messing something up with git and arc?

Apr 25 2023, 7:21 PM
cspeckmim updated the diff for D21861: Fix support for pk-zip compressed figlet font files.

Fix the implementation of using pk-zip compressed figlet font files

Apr 25 2023, 7:20 PM
cspeckmim planned changes to D21861: Fix support for pk-zip compressed figlet font files.

Okay I figured out what was happening.

  1. We observed the issue with using {} as index operator on our production server
  2. I updated the Figlet.php on our production server to fix the indexing issue
  3. This resulted in getting the zip_open issue, which this error result was cached (return raiseError() vs. a 500 php error)
  4. I applied the index issue change and the zip_open change to our test environment and was able to load the diff that was failing in production
  5. Someone had previously installed a bunch of figlet fonts on our production server but it was after the last time we duplicated production to our test server - so the tests I was running in our test environment never hit the zip issue directly.
  6. On the production server many of the fonts are PK-zip compressed however have the .flf extension. I had been looking for .zip or .tar.gz files so I had assumed none of the fonts installed were compressed.
Apr 25 2023, 6:52 PM
epriestley added a comment to D21861: Fix support for pk-zip compressed figlet font files.

I'm a little confused about how we ever hit the test for zip_open() (or whatever prompted the original change in D21860) if you don't have any custom compressed fonts and Phabricator doesn't ship with any custom compressed fonts? This change looks good to me, but how did we run into a problem in the first place?

Apr 25 2023, 5:13 PM
cspeckmim added inline comments to D21861: Fix support for pk-zip compressed figlet font files.
Apr 25 2023, 4:24 PM
cspeckmim added a comment to D21861: Fix support for pk-zip compressed figlet font files.

I'm not sure why the change D21860 did not work to decompress the tar/gzip figlet file

Apr 25 2023, 3:54 PM
cspeckmim added a comment to D21861: Fix support for pk-zip compressed figlet font files.

Sorry for jumping the gun on landing that previous one. To my surprise we didn't even have any custom figlet font files installed previously. I did some more thorough testing with this change to ensure that custom figlet font files still work properly, unless they're compressed. I'm not sure why the change D21860 did not work to decompress the tar/gzip figlet file but if it's not worth supporting I prefer to remove the complexity.

Apr 25 2023, 3:46 PM
cspeckmim requested review of D21861: Fix support for pk-zip compressed figlet font files.
Apr 25 2023, 3:35 PM
cspeckmim added a comment to D21860: Update Figlet implementation to be PHP8 compatible.

Oh whoops. I didn't realize figlet font file format wasn't compressed

Apr 25 2023, 3:04 PM
epriestley added a comment to D21860: Update Figlet implementation to be PHP8 compatible.

(It would also probably be fine to just remove support for compressed figlet fonts, they're probably saving like 5KB?)

Apr 25 2023, 3:03 PM
cspeckmim closed D21860: Update Figlet implementation to be PHP8 compatible.
Apr 25 2023, 3:03 PM
cspeckmim committed rPd5c63c86e7e4: Update Figlet implementation to be PHP8 compatible (authored by cspeckmim).
Update Figlet implementation to be PHP8 compatible
Apr 25 2023, 3:03 PM
epriestley accepted D21860: Update Figlet implementation to be PHP8 compatible.

Thanks!

Apr 25 2023, 2:59 PM
cspeckmim added a revision to T13588: PHP 8 Compatibility: D21860: Update Figlet implementation to be PHP8 compatible.
Apr 25 2023, 2:53 PMInfrastructure
cspeckmim requested review of D21860: Update Figlet implementation to be PHP8 compatible.
Apr 25 2023, 2:53 PM

Apr 6 2023

sekimura updated sekimura.
Apr 6 2023, 12:34 AM

Apr 1 2023

cspeckmim added a comment to D21859: Update the arc-hg.py extension to work with mercurial 6.4.

Thank you it鈥檚 very appreciated!

Apr 1 2023, 6:37 PM
epriestley added a comment to D21859: Update the arc-hg.py extension to work with mercurial 6.4.

I also cherry-picked this to stable, since I don't have any specific plans around when I'm going to cut the next release right now.

Apr 1 2023, 1:59 PM
epriestley committed rARC60446ec65cfa: (stable) Update the arc-hg.py extension to work with mercurial 6.4 (authored by cspeckmim).
(stable) Update the arc-hg.py extension to work with mercurial 6.4
Apr 1 2023, 1:58 PM
epriestley added a comment to T13688: How do you reasonably plumb a 1/4" drain line into a 1-1/4" drain pipe?.

If the small pipe needs to drain into the big one, how about taking a large pvc end-cap, drilling a 1/4" hold and forcing the smaller pipe in it?

Apr 1 2023, 1:58 PMHardware
avivey added a comment to T13688: How do you reasonably plumb a 1/4" drain line into a 1-1/4" drain pipe?.

If the small pipe needs to drain into the big one, how about taking a large pvc end-cap, drilling a 1/4" hold and forcing the smaller pipe in it? Maybe seal the whole thing with some silicone.

Apr 1 2023, 10:14 AMHardware
cspeckmim closed D21859: Update the arc-hg.py extension to work with mercurial 6.4.
Apr 1 2023, 3:28 AM
cspeckmim committed rARC0fc22183e796: Update the arc-hg.py extension to work with mercurial 6.4 (authored by cspeckmim).
Update the arc-hg.py extension to work with mercurial 6.4
Apr 1 2023, 3:28 AM

Mar 31 2023

epriestley added a comment to T13689: A Considered Review: 3D Printing.

I've been using Fusion 360, which I'd say is "not bad". (See also T13697, perhaps.)

Mar 31 2023, 10:41 PMHardware
Korvin added a comment to T13689: A Considered Review: 3D Printing.

I'm curious what 3d modeling software you use, I've had success making simple boxes and things like that with sketchup but I've been a little intimidated by more advanced modeling software.

Mar 31 2023, 9:11 PMHardware
epriestley accepted D21859: Update the arc-hg.py extension to work with mercurial 6.4.

Thanks!

Mar 31 2023, 1:25 PM
cspeckmim requested review of D21859: Update the arc-hg.py extension to work with mercurial 6.4.
Mar 31 2023, 3:17 AM

Mar 2 2023

epriestley added a comment to T13693: Address various issues with Bernina B740 Sewing Machine.

...I suspect that's a difficult geometry for FDM in PLA.

Mar 2 2023, 5:46 PMHardware
epriestley added a comment to T13693: Address various issues with Bernina B740 Sewing Machine.

These sewing machine shaft collars are kind of tricky: thread unspools around them, so the inward face must have a completely smooth edge that can't catch or snag. This rules out a simple clamping-style shaft collar with a slit in it.

Mar 2 2023, 6:33 AMHardware
epriestley added a comment to T13693: Address various issues with Bernina B740 Sewing Machine.

Spool Cap (Small)

Mar 2 2023, 6:13 AMHardware

Feb 17 2023

epriestley edited the content of Changelog.
Feb 17 2023, 6:49 PM
epriestley renamed 2023 Week 7 (Mid February) from 2023 Week 7 to 2023 Week 7 (Mid February).
Feb 17 2023, 6:47 PM
epriestley created an object: 2023 Week 7 (Mid February).
Feb 17 2023, 6:47 PM
epriestley closed D21858: Fix file PHID extraction in Pholio.
Feb 17 2023, 6:36 PM
epriestley committed rPa83cb99e856a: Fix file PHID extraction in Pholio (authored by epriestley).
Fix file PHID extraction in Pholio
Feb 17 2023, 6:36 PM
epriestley updated the task description for T13682: Improve Remarkup file reference attachment behaviors after removal of "attach by default".
Feb 17 2023, 6:35 PMRemarkup
epriestley requested review of D21858: Fix file PHID extraction in Pholio.
Feb 17 2023, 6:30 PM
epriestley added a revision to T13682: Improve Remarkup file reference attachment behaviors after removal of "attach by default": D21858: Fix file PHID extraction in Pholio.
Feb 17 2023, 6:30 PMRemarkup

Feb 7 2023

epriestley closed T13697: Stop Fusion360 from arbitrarily stealing focus on MacOS as Resolved.

ADPClientService is a (currently) non-essential background service that collects juicy user data to send to Autodesk, since there's no way they could be expected to make ends meet on just $545/year licenses alone. You can find lots of threads about how to disable it in various Autodesk products, but none of these instructions appear to work in the current version of Fusion 360.

Feb 7 2023, 5:36 AMHardware

Feb 5 2023

epriestley added a comment to T13697: Stop Fusion360 from arbitrarily stealing focus on MacOS.
...
Focus taken by Safari.
Focus taken by ADPClientService.
Focus taken by Safari.
...
Feb 5 2023, 3:54 PMHardware

Feb 4 2023

epriestley added a comment to T13697: Stop Fusion360 from arbitrarily stealing focus on MacOS.

It stopped doing it as soon as I started watching it. But just wait, I'll catch it in the act. >_> <_<

Feb 4 2023, 10:03 PMHardware
epriestley triaged T13697: Stop Fusion360 from arbitrarily stealing focus on MacOS as Low priority.
Feb 4 2023, 3:49 PMHardware
epriestley updated the summary of D21857: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()".
Feb 4 2023, 1:56 PM
epriestley updated the summary of D21857: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()".
Feb 4 2023, 1:55 PM
epriestley closed D21857: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()".
Feb 4 2023, 1:54 PM
epriestley committed rARCd87d5f0e02e2: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()" (authored by epriestley).
Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()"
Feb 4 2023, 1:54 PM
epriestley added a comment to D21857: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()".

An easy optimization here is likely to avoid calling phutil_utf8v(...) on very long strings using a strategy like this:

Feb 4 2023, 1:53 PM
epriestley updated the diff for D21857: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()".
  • Slightly smaller diff.
Feb 4 2023, 1:51 PM
epriestley requested review of D21857: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()".
Feb 4 2023, 1:50 PM
epriestley added a revision to T13588: PHP 8 Compatibility: D21857: Remove call to PHP "utf8_decode()" in "phutil_utf8_strlen()".
Feb 4 2023, 1:50 PMInfrastructure
epriestley closed D21856: Correct a PHP8 compatibility issue when running "arc diff" with no active branch.
Feb 4 2023, 1:16 PM
epriestley committed rARCc39ab20eb371: Correct a PHP8 compatibility issue when running "arc diff" with no active branch (authored by epriestley).
Correct a PHP8 compatibility issue when running "arc diff" with no active branch
Feb 4 2023, 1:16 PM
epriestley requested review of D21856: Correct a PHP8 compatibility issue when running "arc diff" with no active branch.
Feb 4 2023, 1:03 PM
epriestley added a revision to T13588: PHP 8 Compatibility: D21856: Correct a PHP8 compatibility issue when running "arc diff" with no active branch.
Feb 4 2023, 1:03 PMInfrastructure

Jan 23 2023

epriestley added a comment to T13689: A Considered Review: 3D Printing.

They sell "broken" Ender 3 printers on eBay for like $75 shipped. I ordered two. One had a bad board (a $40 part); one had a bad Y limit switch (a $3 part) -- so the actual cost per printer seems to be around ~$100 if you're familiar with how they work and can identify which parts aren't working.

Jan 23 2023, 7:36 PMHardware

Dec 22 2022

epriestley updated the task description for T13696: FAQ: Pocket Hole Joinery.
Dec 22 2022, 9:02 PMHardware

Dec 21 2022

epriestley triaged T13696: FAQ: Pocket Hole Joinery as Normal priority.
Dec 21 2022, 9:37 PMHardware
epriestley closed T13694: Create a "BRK/First Alert" smoke detector connector adapter as Resolved.

I traced the alarms back to Breaker #8 in Panel #2 (the detector tool actually worked okay this time). I disconnected the breaker and verified that killed the circuit. I swapped the alarms and updated the map of known breakers with this new information:

Dec 21 2022, 4:42 AMHardware

Dec 20 2022

epriestley added a comment to T13692: Build a portable motorized vehicle for a 3 year old.

No great surprise, but the blue boards seem about the same as the red boards and have the same problems:

Dec 20 2022, 5:29 AMHardware
epriestley added a comment to T13694: Create a "BRK/First Alert" smoke detector connector adapter.

The genuine article is not a JST-VH 4-pin connector -- the connecting clip is a little different, and there's no hole in the housing for (unused) pin #2. However, the pin size and spacing is right, so you can cut the connecting clip off a JST-VH and melt one of the pins out and the connector will fit well enough.

Dec 20 2022, 12:46 AMHardware

Dec 16 2022

epriestley added a comment to T13692: Build a portable motorized vehicle for a 3 year old.

I bought an oscilloscope and tested the speed signal of one of the new red boards once it arrived. The scope showed the perfectly sensible signal I expected, and the signal came off the board fine once I hooked it up. So maybe the first couple boards were legitimately bad?

Dec 16 2022, 10:35 PMHardware
epriestley added a comment to T13694: Create a "BRK/First Alert" smoke detector connector adapter.

This connector has a 4mm pin pitch, but I had a great deal of difficulty finding a likely-seeming bare connector with a 4mm pitch. After resigning myself to a Digikey quest for a connector that will fit a board on T13692, which also has a "4mm" pitch I realize the pitch is probably not 4mm but 3.96mm -- a wonderful pitch for which many connectors are readily available.

Dec 16 2022, 10:13 PMHardware
epriestley closed T13695: Improve performance of "MAXX Action Police Pursuit" vehicle as Resolved.

Here's the updated lightbar:

Dec 16 2022, 1:19 AMHardware

Dec 14 2022

epriestley added a comment to T13694: Create a "BRK/First Alert" smoke detector connector adapter.

Here's my nice safe smoke detector power adapter:

Dec 14 2022, 11:23 PMHardware
epriestley added a comment to T13695: Improve performance of "MAXX Action Police Pursuit" vehicle.

There doesn't seem to be anything mechanically wrong with the toy, although the motor and gearbox don't seem to be accessible without breaking something.

Dec 14 2022, 12:46 AMHardware
epriestley triaged T13695: Improve performance of "MAXX Action Police Pursuit" vehicle as Normal priority.
Dec 14 2022, 12:06 AMHardware

Dec 13 2022

epriestley triaged T13694: Create a "BRK/First Alert" smoke detector connector adapter as Normal priority.
Dec 13 2022, 11:46 PMHardware

Dec 5 2022

epriestley added a comment to T13692: Build a portable motorized vehicle for a 3 year old.

The capacitors on both boards arrived pretty banged up.

Dec 5 2022, 8:05 PMHardware
ggodlewski updated ggodlewski.
Dec 5 2022, 10:48 AM

Dec 3 2022

epriestley added a comment to T13693: Address various issues with Bernina B740 Sewing Machine.

String Shelf

Dec 3 2022, 7:36 AMHardware
epriestley attached a referenced file: F11291992: Screen Shot 2022-11-03 at 4.23.07 PM.png.
Dec 3 2022, 7:07 AMHardware
epriestley added a comment to T13693: Address various issues with Bernina B740 Sewing Machine.

Turny Thing

Dec 3 2022, 7:07 AMHardware
epriestley triaged T13693: Address various issues with Bernina B740 Sewing Machine as Normal priority.
Dec 3 2022, 6:52 AMHardware
epriestley added a comment to T13692: Build a portable motorized vehicle for a 3 year old.

Motor Drivers

Dec 3 2022, 6:18 AMHardware

Dec 1 2022

epriestley triaged T13692: Build a portable motorized vehicle for a 3 year old as Normal priority.
Dec 1 2022, 4:02 PMHardware