« first day (4484 days earlier)      last day (450 days later) » 

12:28 AM
@brzuchal no worries. For the record, when I build my own chat system, one of the things it will have is a way for people to point out 'etiquette' things much less confrontationally than 'code-of-conduct' things.
Also, I'm trying to hold off doing the exact same thing....
 
Same same
 
@scorgn Auryn supports that.....because it would be too annoying otherwise.
@ArcanisGK507 What happened to your previous account?
 
Or previous 506 accounts?
 
 
14 hours later…
2:20 PM
Morning
 
2:52 PM
o/
 
3:03 PM
\o
 
3:16 PM
o/
 
3:45 PM
\o
 
I'm trying to compile ImageMagick from source.....I've installed all of the required libraries are installed through brew. It's not finding the appropriate header files:
configure:31544: gcc -c -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/fontconfig/2.14.1/include -I/opt/homebrew/opt/freetype/include/freetype2     -g -O2 -Wall -fexceptions -D_FORTIFY_SOURCE=0 -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16   -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 conftest.c >&5
conftest.c:266:10: fatal error: 'jbig.h' file not found
Is there a way to make some brew installed packages expose their header files like the freetype + fontconfig ones do?
And doing:
CPPFLAGS=-I/opt/homebrew/Cellar/jpeg/9e/include && \
LDFLAGS="-L/opt/homebrew/Cellar/jpeg/9e/lib -ljpeg" && \
./configure
doesn't seem to get passed through correctly....
 
@Danack usually you need to tweak config.m4 for that
or do you mean the imagick libraries?
 
ImageMagick
 
4:02 PM
that's too hard to type ;-)
does it have configure or something?
 
@Derick That would have been a perfect amalgamation of the two words. "Imagick"
 
@Danack I reckon you don't want to install imagemagick through brew?
 
@Derick not particularly.....I need to be able to switch between versions and particular compile flags a lot to investigate bugs. It has configure, and the docs say that CFLAGS are meant to be the way of passing in custom include directories... imagemagick.org/script/advanced-linux-installation.php It just no-worky.
 
@Danack The configure --help talks about jbib and jpeg being two different things:
--without-jbig disable JBIG support
--without-jpeg disable JPEG support
Can't really make heads or tails from their configure.ac
 
@Derick yeah, but the issue isn't on the options side. ImageMagick does the "loop through all possible header names, and try to find them" to figure out which libraries are available.
 
4:09 PM
Yeah, I saw that...
so it does find it, but then not add it to the include list? sounds odd
 
The issue (I think) is that only the fontconfig and freetype libraries have their headers exposed by Brew, and so ImageMagick isn't finding any of the jpeg libraries that are installed in Brew.
@Derick no, not finding it.
 
conftest.c:266:10: fatal error: 'jbig.h' file not found
jbig != jpeg
 
cmb
^ that
 
configure:31654: checking jconfig.h usability
configure:31654: gcc -c -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/fontconfig/2.14.1/include -I/opt/homebrew/opt/freetype/include/freetype2     -g -O2 -Wall -fexceptions -D_FORTIFY_SOURCE=0 -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16   -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 conftest.c >&5
conftest.c:266:10: fatal error: 'jconfig.h' file not found
#include <jconfig.h>
 
brew not exposing it could indeed be a thing...
 
4:15 PM
oh wait - I guess I can just symlink the directories to /usr/local....
 
4:27 PM
or no I can't because it's doing #include <jconfig.h>, not #include <jpeg/jconfig.h>
 
Strange setting LDFLAGS isn't working. This is how I compile PHP on my M1.
 
CFLAGS - it doesn't enable the code paths to use jpeg stuff.
Feb 24, 2022 at 22:45, by Danack
Oct 19, 2021 at 23:55, by Danack
Nov 23 '20 at 20:44, by Danack
It's a trick. They're trying to get you to look at m4 files. Get an axe.
 
4:49 PM
...
....
 
\o
 
5:05 PM
o/
 
echo "CFLAGS are: [${CFLAGS}]"
echo "echo \"CFLAGS are: [\${CFLAGS}]\"" > amagad.sh
sh amagad.sh
CFLAGS are: [-I/opt/homebrew/Cellar/jpeg/9e/include]
CFLAGS are: []
...do environment variables not get imported in scripts on OSX?
12
A: Setting environment variables in shell script OS X

Juan TomasWhen you execute a script, it executes in a subshell, and its environment settings are lost when the subshell exits. If you want to configure your interactive shell from a script, you must source the script in your interactive shell. $ source start-local.sh Now the environment should appear i...

That was four hours of fun: i.imgur.com/Hwd2JUo.gif
 
5:37 PM
@Trowski Are there any special considerations to make when accessing environment variables within AMPHP? I tend to use this library and want to make sure I'm not using a blocking action packagist.org/packages/vlucas/phpdotenv
 
@ramsey I assume that package will do a blocking file read for .env, but probably only once on the initial read. That's perfectly acceptable in a non-blocking app.
Yes, that looks to be precisely the case - the file is read and the vars cached. In a similar way, we use a blocking read to load /etc/resolv.conf in the DNS package. A blocking read to the local filesystem for a small file is rarely a problem, and especially so when it only happens once.
@Danack Oh… well that's good to know, thank you.
 
@Trowski btw, do you normally compile stuff through sudo?
 
@Trowski I'm thinking about adding spawn foo(); to Ara, similar to async foo(); ( ref ara-lang.io/expressions/async-operations.html#async ), can you point me to which Amphp lib should i use to spawn threads? and is there a way to configure a global thread pool?
 
@Danack No. In the past I've had to use sudo make install, but now I change the install directory to one I own under /opt and added the bin dir to my path.
 
5:52 PM
cool.
btw:
echo "print 'testing'" > amagad.sh
source amagad.sh
sh amagad.sh
ImageMagick uses 'print'.............
 
@azjezz amphp/parallel There's a worker pool for executing Tasks. If you want something more general, you'll need to use ProcessContext to create PHP processes.
amphp/process can run any process, the one in parallel is tailored for PHP processes and takes care of some edge cases for you.
 
@Trowski hm, this looks promising, we could dump the expression into a separate child processes file in an anonymous function, and send it whatever variables it uses over the channel github.com/amphp/parallel#child-process-or-thread
but that requires everything to be serializable, so i might hold on to that for now.
 
@azjezz Just pushed an update to the readme I had locally.
You can also communicate via a channel to a Task run in a Worker. If that could fit your needs, the worker pool takes care of spawning more workers for you.
It might be useful to have a generalized pool for custom processes, but startup and shutdown might depend on the child process itself, which I guess is why I avoided trying to write something general purpose for ProcessContexts.
 
yea, i will need to think more about it
i also discovered a threading bug in psalm last night, with 1, 2, or 16+ threads, it works as expected, with 3-15 threads, it fails :D
 
6:40 PM
@Trowski btw, this is apparently a shit show. So the thing is that source`ing a script does bad stuff, including modifying your existing shell. It looks like just setting CFLAGS in ~/.bash_profile or ~/.zshrc is the least troublesome way of setting them.
 
7:05 PM
@Danack I set a number of vars using ~/.zprofile, and usually set session vars with export. Seems I got lucky and was doing it the "correct" way by accident.
 
7:27 PM
@Girgias github.com/php/php-src/pull/7099#event-8358022484 - why that review request?
 
@TimWolla Because I'm going through old PRs, and somehow thought this was about randomness...
 
Ah, no it isn't and I feel I won't be of much help there, not really my area of expertise at all.
 
@Trowski Thanks!
 
Talking about randomness, though. I've recently looked into the old tracker and came across this: bugs.php.net/bug.php?id=71365 (funnily I even commented back in 2016 :-) ). I believe that can be closed. The remark about the fallback to a non-CSPRNG is nonsense (what's true is that the randomness shortly after boot might not yet be perfectly great on older systems)
and I believe the error cases of the CSPRNG is appropriately explained in the manual (the difference between an unavailable source and a failing source is irrelevant).
Is Edit -> Status -> Closed -> Submit the correct thing for that?
 
@TimWolla Yes, hopefully with an explanation
 
7:38 PM
ack, I'll have a look later.
 
8:32 PM
@StatikStasis imagick is the name of the PHP extension for imagemagick
 
9:20 PM
What a big issue and what a small fix.
Fortunately, size of fix is measured by size of issue.
 
9:35 PM
Received four emails from three different recruiters for a job that wants 8+ years in PHP dev, using PHP 7.x. PHP 7.x came out ... 2015. Eight years ago.
 
I'm sure some PHP devs were using PHP 7 before it came out so... they're just extra selective!
 
Yeah, perhaps they're trying to recruit Bwoebi, but are trying to make it not too obvious.
 
10:32 PM
@ramsey Building what we were discussing the other day with AMPHP?
 
10:59 PM
@Danack heh
 
Hey! I'm trying to convert a m/d/Y formatted date string to a y-m-d formatted string, I tried using DateTime::create
Hey! I'm trying to convert a m/d/Y formatted date string to a y-m-d formatted string, I tried using DateTime::createFromFormat('m/d/Y',$date)->format('Y-m-d'), but createFromFormat is returning a boolean so I assume its not interpreting it correctly
 
Smart, I should've thought of that, thanks!
 

« first day (4484 days earlier)      last day (450 days later) »