« first day (2687 days earlier)      last day (2277 days later) » 

1:06 PM
TIL appveyor supports windows builds
 
I thought that was all it does
that's all I've ever used it for
 
Idunno. Never actually looked into the thing, but stumbled on it just now
That's kinda cool
 
why is that cool? because its so much more fun to maintain a windows version of your extension in addition to the php 5 and 7 versions?
 
extension?
 
what else are you building on appveyor?
 
1:10 PM
Whatever you want?
It's just a CI
 
yes, but what are you integrating?
 
Nothing because I only just noticed it does windows
But I am going to use it for php libraries and projects
 
yagni :)
 
?
Why not?
 
because php on windows is meh
 
1:13 PM
Why?
 
I agree, it is meh.
 
Why?
 
because quirks you dont have on linux
 
Like?
 
like path resolutions. I remember to have fixed quite a bunch on some qa tools
also, lack of extensions
 
1:14 PM
I don't need extensions
 
also, license cost for the windows
 
Nothing to do with php
ANd what's that about path resolutions?
Path delimiter?
 
yes
 
That's a non issue
Windows supports nix delimiters just fine
 
It used to be an issue in some qa tools
phpmd, phpunit,…
 
1:16 PM
In that case the qa tools are poop
Or your are doing paths wrong
 
RoOAWR
 
The only real problem with php on windows is that the filesystem is really, really, really slow
 
That is something I am agree with
 
like doing a recursive directory walk is 100s vs 100ms
 
But all the rest is just fud
@NikiC I tried to do a very naive file change notifier once. It was bad :P
 
1:18 PM
 
lolwat
The point :P
So Windows is actually better according to your own metrics :D
And obviously macos is the best there is :P
 
I didnt say it has anything to do with the numbers. you said the issues are all fud
 
I said your arguments are fud
There are things... less optimal on windows for sure
But none of them relate to what you said
 
the path resolution was an issue in the past
it might be solved nowadays but I clearly remember tools not working on windows because of that
and yes, it might have been the tools. but only because no one bothers with php on windows
as a matter of fact, I've been developing for years on windows. and all these little quirks like slow fs, or fs case sensitivity issues or tools not handling paths correct add up
I also remember setting up pear was usually a pita. it either worked out of the box or took way too long
 
pear is a piece of shit regardless of OS
 
1:26 PM
that might be.
 
Our client: We need a working app in 8 weeks time.
Us: What exactly is it meant to do.
Our client: all the things we promised it would do.
Us: ......Is there a list of those?
Our client: why would you need that?
ugh
 
At least they gave you 8 weeks
 
I suggest to write a web interface to busybox
I might not be all the things they promised but quite a lot to start with
Though I am still not sure why anyone would use busybox over just installing the individual packages
 
There's also a legacy code base that kind of almost does some of the things they want, but it has no tests, and there are almost no functions. e.g. the controller methods that perform the more important bits are 300 to 600 lines long.
 
Slight annoyances with PSR-2. function () instead of function() for closures and (int) $var instead of (int)$var for casts.. :( Nothing I can't live with but those spaces... are wrong.. :P
 
1:32 PM
hmm, then how about a simple webform where users type in what they want and then this text gets made into a contract on the blockchain and the form text mailed to your client to fulfill.
 
I do spaces with casts :)
 
Something for the weekend sir?
 
!!booze whitley neill
 
Search for "whitley neill" (1 results)
• Whitley Neill Gin - User Rating: 4.3 ★★★★☆ (https://distiller.com/spirits/whitley-neill-gin)
 
The yellow one is nice but very sickly sweet. The normal one, (not pictured) is very pleasant. The red one actually kind of tastes like meths.
 
1:35 PM
so we are not the only ones having gin in the office
 
Tragically, it is at home. I shall be joining it presently.
 
Wes
do we have a booze search in jeeves? you guys are such hipsters
 
!!booze ophir
 
@Danack No results for: ophir gin
@Danack No results for: ophir
 
Anyone that's good with PHP-to-HTML/CSS processes?
 
1:42 PM
What is a php to html process?
 
Basically "co-existence"?

But honestly, I just have a HTML/CSS/PHP question that's mostly CSS.
 
Not helping...
:P
 
3 messages moved to Trash
 
@PeeHaa You free to help out with a CSS question? :O
 
@Californium If it's php question just ask. If it's css question we might make it worse
 
1:44 PM
I'll try my luck, lol.
So I'm just basically wondering as to why a div with height: auto; expands further than their child? Like, the div doesn't contain anything else than the child. But yet, the div's height is greater than the child?
 
Isn't auto just the size of the content?
 
Anonymous
@Californium replicate it in jsfiddle, better chance you'll get the help you need
 
> Basically "co-existence"?
 
It's deep right?
 
@PeeHaa I tried with inherit as well but that didn't make any difference at all.
 
@Californium That didn't answer my question
lol @Danack :P
 
I had it right first time......but that new line...
 
@PeeHaa Yes. So you'd think that the parent would stretch no further than the height of the child, right? But somehow, the parent can still expand even without no designated height other than the height of their child.
?! :dead:
 
Make a fiddle
 
^
 
1:49 PM
One sec!
 
is there a PHP part to this question, or was that just bullshit?
 
@Californium I thought "basically wondering why" is what CSS was invented for
 
any laravel student here ?
 
@Californium And what is the issue?
 
1:53 PM
So, there's basically a few pxs beneath the img, I've added height: auto; to all parents, but yet, it goes beyond the img?
The img has no margin or anything, just plain height?
@Gordon LMFAO
 
12 mins ago, by Californium
Anyone that's good with PHP-to-HTML/CSS processes?
not how any of that works.jpg
 
@KashifSaleem we are all proud Uncertified Laravel Developers in here.
 
Oh no Laravel is no fun
 
hahaa..
 
@Californium display: block
Images are inline by default
 
1:54 PM
i'm new on laravel, created project for my university
is there normal to code simple, mean i don't use any extra packages etc..
 
Today has taken a dark turn
 
hahahaha
 
@KashifSaleem yeah, extra packages add visual debt. dont use them.
5
 
@DaveRandom dude
 
thanks, btw how to upload image here ?
 
1:58 PM
@KashifSaleem There is an upload... button right next to send, use that.
 
--------------------------------------------------------------------------------------------↓
 
No, there's only send button..
 
I think we should starting marking our jokes very clearly. People take us seriously :P
 
orange send button :P
 
get more points then probably.
 
1:59 PM
yeah, maybe
 
Oh I see, thank you @PeeHaa
 
np
 
In case you didn't know: 1. Canada has a Strategic National Maple Syrup Reserve 2. It was stolen 3. Netflix has a documentary about the theft 4. I've discovered what I want to be when I grow up
I have no idea if any of this is true, but eh, that's amazing
 
!!? Strategic National Maple Syrup Reserve
 
Search for "Strategic National Maple Syrup Reserve -site:w3schools.com" (https://www.google.com/search?q=Strategic+National+Maple+Syrup+Reserve+-site%3Aw3schools.com&lr=lang_en)
• Why Does Canada Have a Strategic Maple Syrup Rese… - 1 sep. 2012 - On Friday, news broke that thieves had stolen $30 million dollars worth of Quebec's s… (https://www.theatlantic.com/business/archive/2012/09/why-does-canada-have-a-strategic-maple-syrup-reserve/261869/)
• Federation of Quebec Maple Syrup Producers - Wiki… - Spring naar Strategic reserve - The Federation of Quebec Maple Syrup Producers is a governme
 
.@Darkcoder1 yeah, extra packages add visual debt. dont use them.
 
> Federation of Quebec Maple Syrup Producers
<3
 
@FélixGagnon-Grenier looks legit - he's got the canadian lawyer haircut
 
> the Federation of Quebec Maple Syrup Producers has been managing warehouses full of surplus sweetener since 2000. The crooks seem to have made off with more than a quarter of the province's backup supply. (I personally suspect these guys.)
lol
 
@DaveRandom Where do you get your Lego-related information?
Or did you Google "heavy lego brick"?
 
@jjok out of my Lego box, my (red) one of those bricks had that code on the underside
seems to be a bit hit and miss
 
@DaveRandom :)
 
I'm not sure where that particular one came from, I don't remember ever having a set with it in, I may have inherited it from somewhere else
 
I emptied out the attic at my mum's house at the weekend, so I've now got an entire carful of Lego.
 
2:10 PM
> 549 puzzles solved
I've run out of regex crosswords
 
@PaulCrovella Maybe learn piano or something?
 
@jjok if you don't want it, I take it.
 
@DaveRandom I feel like it might be from a train maybe?
@Gordon I might get rid of it. I'm going to play with it first though.
 
@jjok does that black one actually have 'lego' inside the circles on top?
 
@PaulCrovella time to create your own puzzle.
 
2:13 PM
@Leigh do you have any notes on how to deprogram laravel programmers?
3
 
back then I gave away my four large boxes of lego to be sold at a flea market for an apple and a dime. I didn't even get the profit. Now that I have a toddler and know what new Lego costs, I regret that decision
@Danack feed them their own mantras. tell them to apply "question everything" to everthing laravel.
 
@Danack I think it does, but not all of them.
 
@Linus I might make a solver
 
@jjok if you ever intend to have kids, I strongly suggest to keep it
 
@PaulCrovella WOW I've only solved like 50 yet.
 
2:16 PM
Where's the upload button on mobile? ->
 
@jjok it's described as a "boat weight" bricklink.com/catalogItemIn.asp?P=73090b&in=S
I don't think I ever had one of those sets
 
the boat weights I know from lego usually look like these: ebay.com/p/…
 
@Gordon I've never seen those before.
 
you attach them to the bottom of the boat to prevent it from capsizing when playing your lego in actual water
 
@DaveRandom I think it may have come with a train set.
 
2:19 PM
I always reeeeally wanted the train set with the two-track contact rail that ran up the middle of the track
I imagine it's insanely expensive
 
@DaveRandom I've got it in my lounge if you want to come and build it?
 
bbiab driving to @jjok's house
 
:P
 
Wes
@FélixGagnon-Grenier that's so funny eh
 
2:21 PM
@Gordon Monoraaaaail...
mono
 
 
Anonymous
tried to click on github ended up on lego train sets.
 
You can see the weight in steps 5 and 6.
 
Anonymous
2:26 PM
@Ekin nice
 
@PaulCrovella this looks like a nice resource also
may you document it like that too if you end up writing one :P
 
@Ekin I sorta want to use it as an excuse to write my own regex engine. Curious how much I'd be able to implement without backtracking (ala swtch.com/~rsc/regexp/regexp1.html)
 
sounds cool, hope you do see how far it goes
and that's another nice read
 
they will be Paul compatible regular expressions (pcre for short), and will not support octal notation because fuck that one puzzle
 
ha :)
last 22 minutes...
 
2:42 PM
@Danack I don't think it's possible, they're like religious zealots
 
@PaulCrovella The Paul Crovella Regex Engine...
 
@Leigh if it's possible to convince high level scientologists...
 
step 1: convert the laravel enthusiast to scientology
 
a laravel scientologist... is that like a lesser demon?
 
Anyone has a guide on how to use LAPACK on windows 10 with xampp?
I downloaded the files from the website, but where do I move them in order to include lapack in my php files
 
2:55 PM
@Tiffany Hey, don't curse scientologists with Laravel
 
@Tiffany Did you ever see the movie dogma?
 
@Leigh not all the way through
 
lol, I used to play a mobile game with a dude named Golgothan, now I know where he got his name
 
Yea, anyway, I think "a shit demon" sums it up
 
3:00 PM
@Leigh I'm just about to do a code review for one of them. They seem to have a habit of adding a 'helper' getter/setter for things that have been dependency injected into the class......................................for reasons.
 
Anonymous
@Danack wat
 
3:15 PM
@Danack They also like to create interfaces that are used only by a single internal class
And they like to make "query builders" and chain endless shit together so you can't see at a glance what you're going to be running against the DB
 
3:29 PM
Frydai frydai gotta get daown on fryyyydaiihay
 
Wes
@Tiffany one of the cheesiest movies ever made. you should watch it :B
 
@Wes yeah, I need to
I still need ot watch Guardians of the Galaxy 2
 
Wes
like evil dead? same genre, ish
@Tiffany that is meh
i can't say i loved it
 
3:47 PM
@ircmaxell So... it's obviously not in development (last commit 2015-10-23) but in your heart is it dead? github.com/ircmaxell/Tuli
 
4:10 PM
I just realized if we can use functions by symbol then function piping with | is a possibility. Right now it's not viable because $normalize = trim | strtolower; would do bitwise-or on two constants.
 
@LeviMorrison I think so. I've seen github.com/phpstan/phpstan which was what I was aiming for, but is well further executed
 
Someone surely pointed this out in the past already.
 
@LeviMorrison $normalize = trim |> strtolower;
 
@ircmaxell Well... based on other languages that would pass trim the function to strtolower, not pass the result of calling trim to strtolower.
@ircmaxell We are currently evaluating Phan, PHPStan, and Psalm.
I think the best solution would be for all three projects to merge together and collaborate on a single product. Competition can be good but honestly taking away choices and putting more effort behind a single product would be better in this case, or at least I think so.
 
I wasn't a fan of Phan
 
I'm a fan of CFG based analysis, which none of the three are (which Tuli was). But PHPStan and Psalm are both AST based at least, which is good
 
Wes
what i was doing at the time is changing the tree of phpparser, so that every expression had types, innermost expression would receive types from e.g. phpdoc, then outer ones would get return types too according to the inner expressions. but i gave up almost immediately because it was getting quite messy
didn't have objects, i was using phpparser's attributes as storage
i would love to give it another try... but no time...
 
is there a way to \DateTimeImmutable::createFromFormat('Y-m-d-G\hi', $dateString) with optional parts in the format string? namely that last -G\hi could or not be present.
I would like to not have to check first if it's present in the date string, but will do it as a last resort
 
@FélixGagnon-Grenier If it were possible, you wouldn't have had to pass the format to begin with
 
4:29 PM
@ircmaxell I am also a fan of CFG-based analysis. It's a shame we only have so much time in the week, eh?
 
So unlikely, although I'm hardly an expert on the matter.
 
hmmm... fair enough ;)
 
Wes
you need
try{ }catch(Exception $e){
    try{ }catch(Exception $e){
        try{ }catch(Exception $e){ }
    }
}
from the most complete format to the most incomplete
 
oh, I can also abuse conditionals
 
Wes
it's the same yeah
 
4:32 PM
I'm already imagining a tiered recursive function to do that
 
lol no
if ( ($date = \DateTimeImmutable::createFromFormat('Y-m-d-G\hi', $dateString))
     || ($date = \DateTimeImmutable::createFromFormat('Y-m-d', $dateString)) ) {
    // fite meh
}
there. perfect. damnit
 
function createDateFromFormats(array $formats, string $dateString) {
  if (count($formats) === 0) { throw new Exception("Nope."); }
  try {
    return DateTimeImmutable::createFromFormat($formats[0], $dateString);
  } catch (Exception $e) {
    return createDateFromFormats(array_slice($formats, 1), $dateString);
  }
}
Monstrosity.
 
Wes
i'd use a for if you have a list :B
 
@Wes i.e. try and ignore the error, and throw at the end? Also doable, yeah.
 
Wes
4:36 PM
yeah
 
But these sorts of solutions remind me that time we asked a candidate to solve the balanced parenthesis problem
(given an input consisting of as string of only ( or ), determine whether or not the parentheses are balanced or not, () is considered balanced, (()()) too, )( or (() are not.)
 
+/- 1 for each open / closed parenthesis?
 
Wes
would traverse by char, and have $openParens to increment decrement as i encouter new ones
 
That is indeed the expected solution
What we got was "I know the classic solution is to use a stack or a counter, but I thought this one would be more fun:"
in JavaScript, Dec 31 '17 at 14:59, by Madara Uchiha
const input = `(((())((())(()()))((())))((((())))))`;

function isBalanced(input) {
  const curlies = input.replace(/\(/g, '{').replace(/\)/g, '}');

  try {
    eval(curlies);
    return true;
  } catch (e) {
    return false;
  }
}

console.log(isBalanced(input));
 
lol
I do hope you hired them?
 
4:39 PM
Which I think is absolutely amazing
 
Wes
lol
 
@FélixGagnon-Grenier Never got the chance to even speak with the guy 😬 Signed off with someone else.
 
I know
 
Wes
they could've done it with regexps too @MadaraUchiha
(((())((())(()()))((())))((((())))) is a valid pattern (right?) :P
 
4:40 PM
@Jeeves So you could say that Putin is rasputin?
@Wes Ha! That's right
This problem is easy though (as it's meant to be)
The more interesting portion is when I introduce more than one type of parenthesis to the mix
<{[()]}> is considered balanced, {[}] is not.
 
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'2028-10-38-22h36'
+'2028-11-07-22h36'
well, technically
 
Can't solve that with a fancy eval or regexp :D
 
I'm almost surprised it actually computed the 38 days correctly
 
function areParanthesesBalanced(input) {
  try {
    return !!(new RegExp(input));
  } catch (e) {
    return false;
  }
}
@Wes
 
Wes
:P
 
4:50 PM
@LeviMorrison Weird how this winter wen't from being so tame to kicking our asses in like a week.
 
Yay, snowing!!!!!!!
 
@LeviMorrison most definitely. Php-CFG was pretty far along, only missing a few cases like try/catch, etc.
 
@LeviMorrison ewwwwwww
 
Only a couple of months late this time, now running PHP 7.2 in production \o/
At 16:55 on Friday
Time to go to the pub
 
@ircmaxell What about throw?
 
4:57 PM
@LeviMorrison nope, not that either
nor generators
 
@Danack Summary execution? Much kinder than learning from Teresko.
 
@Tiffany snow is nice.
 
@Allenph the main problem usually is the glorification of Twatwell
 
Unable to annotate more specific return types in PHP 7.1 – #76000
 
or any "public face" of a framework
 
5:07 PM
@tereško Reading that dude's stuff it seems to me that he knows he's wrong.
And that he can't admit it.
 
well, tens of thousands of followers can get to someone's head
 
@FélixGagnon-Grenier we've been getting either snow or ice like once a week... it's frustrating, because it'll just get warm, like 10-20C, then next day... -2C
 
heh... also very dangerous. thawing then minus 0 temperature makes for nice ice everywhere
 
Tuesday or Wednesday, can't remember when, but it was like a nice 2-4C in the morning/afternoon, raining... then by night it all froze and turned into freezing rain
:|
 
I hadn't been higher than -10°C here for at least a week
 
Wes
5:12 PM
@Jeeves welcome back :P
i've seen this bug several times appearing in the room
cc @LeviMorrison
 
let's get higher
 
@Wes I thought it was fixed / somebody was fixing it?
 
Wes
maybe levi
 
Yes, I am hoping to work on it as an approved class project for my university.
I need a faculty sponsor, which I thought I had but they declined, so I need to find a new one.
 
5:24 PM
Did they tell you why they declined or don't they do that generally?
 
It's not their area of expertise and they were uncomfortable. Trouble is it's not anyone's area of expertise here.
 
k
 
Wes
generics though have way fewer uses than return type variance, and they are much more complex
 
@Wes Not sure about that statement
 
Wes
5:37 PM
well, but they are for sure much more complex than return types :P
 
No argument there :)
 
Wes
@rlemon i am giving another go at the css ui framework thingy, using css grids
maybe i'll have better luck this time
 
@Wes Generics without return type covariance and parameter contravariance have highly limited uses.
 
Wes
i'm saying that we should start with plain return type covariance, without generics
basically the bug report
 
Sure. Parameter contravariance and return type covariance with some new reserved types such as mixed and hopefully something like mixed that doesn't accept null would be a great stand-alone RFC.
 
Wes
5:51 PM
i didn't agree on having mixed as actual keyword, but i guess it's going to be needed for generics
 
mixed without additional variance is mostly pointless.
 
Wes
new Triplet<Foo, Mixed, Mixed>()
otherwise is (if you really want to avoid having mixed)
new Triplet<Foo,,>()
which is quite shit
right now mixed is not needed, but it will be for generics
 
I will add you to an Asana (a online task manager) project. Don't worry, we never asingne task to you, I just want you be there (probably sometimes my teammates want to know your idea about a code). Anyway, please accept that invitation which will be sent to you @tereško, ok?
 

« first day (2687 days earlier)      last day (2277 days later) »