« first day (3346 days earlier)      last day (1585 days later) » 

12:00 AM
3v4l.org/4nGnG trying to think of something less specific than name
which is cleaner? using a parameter in the make method of the interface Factory, or setting the value separately in the User class?
 
3v4l.org/PpmWd that shows both, but i just whipped it up so may be errors
So a PetShop is always going to return an Animal, but those implementing it can specialise and always return a cat or a dog.
Equally all animals can eat, and they can all eat AnimalFood... but dogs dont give a crap and they'll eat any food that's nearby
that shows parameter type widening
 
12:30 AM
something something adopt, don't shop :P
which is easy enough to jsut change Petshop to AnimalShelter
@MarkR I'm assuming Mavrick is a dog?
 
you dont know :-)
 
:(
 
maybe its a cat that likes to fly Tomcats
 
lol
reminds me a suggestion someone gave me for a painting I had done... add two planes onto it, paint my cats flying the planes, one of them being the Red Baron
enough code for tonight, I think I can indulge myself some PoE for an hour-ish
@FélixGagnon-Grenier THERE'S A NEW POE PATCH
 
12:47 AM
YES
OMG ALL THE HYPES
 
they updated bow gems :O
 
downloading it rn
and a lot of things apparently
like, atlas goes from the center out?
also I think I adopted the contagion build
 
I haven't looked at anything PoE in a few months ...
 
I tried DonTheCrown's impale cyclone but I really am not able to not be super squish with it
 
Swedish Felix nudged me today
 
12:49 AM
what's nudged?
 
> prod (someone) gently, typically with one's elbow, in order to draw their attention to something.
 
right
ty
their 8gb patches are getting old...
 
I dunno why it didn't download this morning :|
 
dat internet speed
I have like 1h47m :P
 
fiber <3
it's already at 4.1/8 GB
 
12:52 AM
stares
 
and done
 
I'm now down to 1h 42m!
I'm quite confused by all the announcements. is there a new league?
conquerors is the new league? they called it 4.0 but is it a new game?
 
4.0 is supposed to be "PoE 2"
I think Conquerors is like 3.8 or something
 
will... we keep our existing standard? will standard become the new thing? or there will be a whole new standard economy for eveyone?
 
I need to think of a name
 
12:57 AM
What about CharacterName?
 
there's a new league, metamorph
when I was playing last league, I combined my name with hangul (Korean), lol
Tylae네크로 lol
my account is full of characters
 
mine too
like, "T", or "c".
I have all the characters.
runs away
 
arc, necro or a bow gem? I'm thinking necro since it's off-meta now and should be cheaper ... and I didn't get to do as much as I wanted with necro last league
granted, I dunno how much time I'll spend this league either
 
I'd go for the bow
oh also, I dropped a 6L bow the other day
in standard...
 
lol
 
1:08 AM
I've been trying to find a bow build just for that, but can't make my mind
 
tornado shot
 
tornado shot is amazing
 
I really just want to use a build with a 6L :)
aight, I'll try that
 
1:33 AM
@FélixGagnon-Grenier youtube.com/watch?v=l3P3cTQL_qA .
 
necro was OP last patch
 
 
6 hours later…
7:51 AM
Why is $b and $c differ with and without braces??
3v4l.org/Na6pK updated one.
 
8:30 AM
You are making 22 an int - not the whole expression
@Linus So, ((int)22)/7 is what you are doing
 
@IROEGBU ah that make sense.
 
 
4 hours later…
12:28 PM
morning
 
o/
 
 
1 hour later…
Wes
1:46 PM
i might be slightly intolerant to peanuts. i am getting bellyaches if i ate too many of them (like 30g/day). who knew
mornings :B
 
2:18 PM
@IROEGBU good answer. I didn't know
Also, long time bro
I haven't seen you here in years
 
@Wes morning
 
Wes
yo
 
30g/day peanuts and bellyaches than surely you are, whenever i eat peanuts i eat like 200g (those salted peanuts \0/)
yo man, how are you, sire?
 
Wes
i'm ok, you? it's not huge bellyaches, just some.
 
2:34 PM
i am good, btw peanuts causes gas and bloating in many cases
 
3:22 PM
Another day of trying to improve this PHP web code. Painful painful painful.
 
@cmb yeah, /** var Foo|null*/ worked - but it's weird that the tool considers actual type hints that have a default uninitialised state, but doesn't consider that the docblock hinted properties can also have the same initialised (null) state.
 
4:06 PM
erm wait ... wat?
root@bobtop:~# php -r '$a = ""; var_dump(++$a);'
string(1) "1"
root@bobtop:~# php -r '$a = ""; var_dump(--$a);'                                                                                                                int(-1)
wtf is the one thing string, the other int???
 
I need a magic.gif except it says PHP instead
 
cmb
@bwoebi, yep, that's a nice one! And the answer is, of course, because PHP! At least it's documented: github.com/php/php-langspec/blob/master/spec/…
 
@MarkR do you care if I use a modified form of the example you wrote up last night?
in the doc I'm writing
 
Your adoption service? :P Nah go ahead.
 
4:21 PM
thanks
I removed the food part as well, because covariance can be shown through the Shelter interface
just to simplify it a little
now I just need to think of an example for contravariance, something I can mull over while I eat pizza
 
Contravariance was the food :)
It widened the type of what the dog could eat
 
doh
 
4:37 PM
Pizza isn't good for dogs though
 
@Derick neither are rubber bands, shoes, or remote controls...but dogs still eat them...
 
The method will just have to throw an exception in that case
 
@cmb but kitties and doggies...
 
I think I'm going to watch the PHP Barcelona vids tonight. How did that play out, was it a good internals meet up?
 
4:58 PM
@cmb @salathe Am I correct in thinking that only php-master has DB read access?
 
cmb
Dunno; possible.
 
What meet up? :-/
 
I thought I remembered reading on here that a large number of the active core devs were all planning on meeting at the PHP Barcelona meet. Perhaps I just missread or missremembered.
 
I think that was an idea, but that never transpired.
 
In that case my question is somewhat void xD
 
5:40 PM
not a php question: I'm helping a friend to download drivers, but the ZIP file on the website throws a forbidden error. Is there anyway around that? site that driver file is on, URL to driver file
 
6:07 PM
Anyone else getting a Warning: Undefined variable: argc on master?
 
"on master" ?
 
Yeah, after compiling the php-src master branch, it seems like $argc is undefined.
What's even weirder:
```
<?php
var_dump($argv);
var_dump($argc);
```
Produces:
```
int(1)

Warning: Undefined variable: argc in test.php on line 3
NULL
```
It's probably something messed up on my end, but wanted to see if anyone else was having the same issue. :)
 
What's the GIT hash for your master?
 
fdf45debdf
 
let me build
 
6:21 PM
Thanks :)
 
array(1) {
  [0]=>
  string(8) "test.php"
}
int(1)
With latest master
 
I get:
array(1) {
  [0]=>
  string(19) "Standard input code"
}
int(1)
 
php.net/ug.php does everyone else get 'unknown country'?
 
I do
 
Weird. Thanks for checking! I'm wondering if it's a macOS thing. I disabled a few things bc I didn't want to have to deal with the macOS dev env for them. Namely: dom, simplexml, xml, xmlreader, xmlwriter, iconv, libxml, pdo-sqlite, sqlite3. But I'm not sure how those could affect it. I'll keep digging and see if I can figure out what's going on. :)
 
6:29 PM
Won't bother with that one then
 
@MarkR Same, but php.net/ug.php?cc=DEU works, found via Google.
 
Operation: Waste of time. Proceeds a-pace github.com/marandall/web-php/tree/rework/lib/phpweb
There seems to be dozens of different redirect hacks each one with hundreds of options D:
 
7:02 PM
I've been playing about trying to combine multiple data sources, so the release data, branches, changelogs, sources to give a single page which isn't 90% repetition - php-web.markrandall.uk/versions/7.1.0
 
I updated my $PKG_CONFIG_PATH for libxml2 and openssl and added all the xml extensions back and php-src master builds without $arg* issues now. Not sure how things got wonky, but thanks for helping me confirm it was on my end! :)
 
7:15 PM
I like how we have line items in our crimbo spreadsheet for "sockmageddon"
 
Is that like armageddon, but with feet instead of arms?
 
no, just lots of socks :-)
 
death by socks
 
@samayo Hi... Been away for a bit. Trying to be more active now.
 
 
2 hours later…
9:03 PM
Oy oy
 
Sup
 
Not much
You?
 
Still working on this php.net demo
 
Ah, I need to get back to finishing the doc website lol
 
Might need to pick your brains at some point to work out how this stuff all integrates
 
9:05 PM
@Ocramius your introduction on your PHP Barcelona talk is golden
Well I'm not sure I'll be that helpful because I've made it standalone and not rely on anything lol
 
Works for me. Of all the 500 subdomains in existence, docs seems like it should be on its own subdomain
 
Also the only real thing missing is the translators list for every language, oh well
Maybe will have another go at building the documentation in another way by utilizing pandoc now that I know what it can't do
 
Can I have your opinion on these combined version pages? I'm trying to have a "one page to rule them all" for each version php-web.markrandall.uk/versions/7.3.1
 
I'd move the source file on top personally
Couple of typos on the documentation page
 
Think that's just a straight copy-paste xD
I was wondering how many people actually build from source vs using the repos
 
9:11 PM
Oh well then there are some in the source code lol
Except if you are coding an extension/maintaining source I don't think many other people would compile it themself
I do know some of my friends compile Firefox because why not but those I'd reckon are the exception
But those pages look clean to me
 
I think I've got rid of 80% of the floating globals at this point.
The lack of an actual database is a real ballache
 
I mean going from the fact how bad we are with infra, I'm not sure if not having a db is kinda a blessing in disguise
 
Well the DB is apparently on web-master with a PHP 5.3
 
:(
 
github.com/php/web-php readme says code must support php 5.3, fortunately that's being changed xD
 
9:22 PM
I wonder if you can't statically generate some of the pages
 
That's pretty much what a lot of it is. Huge static PHP arrays and static HTML pages
 
jellow
 
So what is actually dynamic @MarkR ?
 
Mainly where it's dumping arrays.
 
Yeah but those could be changed to a build script
 
9:28 PM
True, but I think it needs more dynamic stuff, not less.
 
Oh, possibly, but I wonder how we can dissect it
 
For example, every release announcement duplicates entire paragraphs like download links... so I just regex deleted them all and had the controller add them instead
 
phpstorm doesn't recognize covariance/contravariance yet ...
unless I need to update
 
Are you on 19.3?
 
I guess I was on 19.2
I thought I was on latest
I'm beating my head into a wall... trying to figure out where I should echo values within these classes, and how I should go about it
 
9:31 PM
@MarkR that's a nice improvement but that can be part of the build script to generate a "one time" static page and you rebuild it at every release
Like the only dynamic thing that most users will see/use are the notes I feel
The rest is kinda static
 
Sure, but I think this site would benefit a hell of a lot if it had something like a sidebar on every front / community page which showed upcoming events and conferences, notifications of new releases etc etc etc
 
For sure
 
I'll put some more time into it over christmas, the hard part is going to be the politics.
 
I know this doesn't work, because it throws an error. Should I have the consume method return a value, or do nothing? echo doesn't seem right, and to be fair, returning a value seems wrong as well... I want the eat method to echo out that the animal ate the food.
doing something like
$catFood = new AnimalFood("Cat Food");
$kitty->eat($catFood);
 
I'd do:

echo static::class . ' nom nom';
 
9:38 PM
@MarkR I'm not sure it's that much the politics, more nobody took the time to do it
 
or get_class($food)
 
@MarkR in eat or consume?
 
In eat because that way you can do:
function eat(Food $food) {
echo "The " static::class . " at some " . get_class($food) . "\n";
}
 
:D
thanks
 
 
1 hour later…
11:11 PM
What are possible causes for this issue? I created a text box / form that sends a message to an sql database. The important part is HTML→ PHP. When I paste in the field a 10k even 100k letter filled string it works, the site saves the message to the database and displays it in a div field. But when I send a bit of ascii text that I wrote myself the php script receives the entire message but doesn't save it nor display it.
 
do you have errors turned on?
 
11:26 PM
do you get an error message? do you have it set to E_ALL?
 
I have init("display_errors", 1) on
But there's no real error
 
you need ini_set("display_errors", "1");
 
it's written correct in my index.php I just forgot the command here.
I am in front of my computer right now and started the XAMPP control panel. I can try everything you want
 
set ini_set("error_reporting", E_ALL);
or do it from your php.ini file
display_errors = On
error_reporting = E_ALL
 
Just did that, nothing appears when I submit. When I open the developer console → Network and click on my index php file I can see everything about the form. I can even see the form message and its written perfectly fine / nothing is missing but I feel like the issue is php→sql.
 
11:33 PM
have you tried running the SQL statement while logged in directly to your database?
 
Are there special characters that may lead sql or php to misinterpretation?
which SQL statement?
 
SQL can be picky about ` and '
 
Wait a sec
Yes it works now! It was indeed a '
 
😛 I've had issues with it before
 
I knew it must be some kind of character is possible escape sequence because I send the message partially to test / discover the line that causes the issue. THANK YOU so much, you can't believe how long I've been smashing my head into the keyboard because of this issue. Thanks again and have an awesome day!
 
11:39 PM
good luck :)
 
or possible escape sequence*
 
I remember having trouble creating a table in an SQL database a year or so ago, and it was due to some misplaced ``s
 
11:50 PM
@MarkR got the example working 😃 now I need to clean it up and put it in a markdown page for review before submitting it to docs
 
cool :-)
 
tried doing $kitty->eat($food); to verify that it'd error, and it did
 
I'd make it $generic_food just to make it a bit clearer :-)
 
$shoe or $bananaPeel
 
The thing I'd say is it doesn't make a whole lot of sense to use static methods for your shelters.
Because there's no way to refer to the underlying adopt() method in the animal shelter, so you're actually losing polymorphism
 
11:58 PM
I did it based on some sample code from php the right way on factories
 
I don't think that article will have taken covariance in mind
 
I could remove the factories, they do make it a little more complicated than necessary
 
Keep the factories, make them instance methods, not static
 

« first day (3346 days earlier)      last day (1585 days later) »