« first day (2797 days earlier)      last day (2148 days later) » 

12:11 AM
will func_get_args() always return the arguments in order?
 
... damnit. Hex grids algorithms are not simple.
Actually, scrollable tile grid is an interesting challenge
 
morning
 
yes
you know wordpress well
 
12:17 AM
but gravity form???
could we discuss in wordpress room?
 
lol
 
I don't know WordPress
 
no problem as of now
 
Gods such messed synchronization
Lol
 
12:27 AM
@FlorianMargaine my personal pref for this is still to shove an nginx reverse proxy in front of it, if at all possible. It means you can easily replace static file resources with a simple try_files and it also makes SSL more practical, afaik there is still no sane way to automated letsencrypt renewal with tomcat without a full service restart, which in the case of opengrok means a minute+ of downtime (unless your setup manages to do faster warm-up than mine?)
 
@DaveRandom yes, that's the plan
 
oh, cool
then winner :-)
at some point that isn't now I will sit down and actually comprehend the indexer/tomcat setup you have built and see if there are any implications we haven't considered
btw does platform have any way to turn this into some sort of template that could be used to build other instances without all the setup faff?
would be good to revive lxr.php.net
 
PEAR installation fails with Phar extension enabled – #76464
 
1:36 AM
@Jeeves Just me and you, Jeeves.
 
2:26 AM
morning
 
3:17 AM
o/
 
Wes
3:40 AM
FélixGagnon-Grenier do you know wordpress?
 
4:03 AM
Trump admitted that he doesn't think he could ever admit that he's wrong, but come up with an excuse instead :O
 
Wes
that's so meta
 
Wes
\o
 
@Alesana \o
 
4:27 AM
How goes it
 
I am fine what's up with you??
 
4:43 AM
everyone, check this:https://wordpress.stackexchange.com/questions/305920/gravity-form-shopping-cart-making
i have no answer yet about this, so i gonna need your help
0
Q: Gravity Form shopping cart making

Jincowboyi have some issue in wordpress gravity form shopping cart anyone that could guide me? breakawayseminar.com/register/… I have already created gravity form with product and price but i don't display shopping cart items in step 5 i know that it have to be done by conditional shortcode and other ....

 
5:14 AM
morning
 
Nothing much, almost going to sleep now
 
6:07 AM
morning all :D
 
6:24 AM
o/
 
Wes
jelly
slash only or?
 
6:39 AM
@Wes nope. GnR.
 
Wes
who's singing?
 
@Wes Axl
 
axl rose
 
Wes
okay. i thought he was doing just one offs
is he still fat or is he losing weight?
 
I dunno what happened yesterday evening, I could have been serenaded by slash, but wouldn't remember ...
 
6:43 AM
@Wes compared to the gig with acdc two years ago I'd say he gained a little
@JoeWatkins that doesn't sound healthy
 
that's normal
it's okay, I can ask my wife what happened if I need to know ...
the last thing I remember doing was two days ago, I drove to the airport ... after that is blurry and before that is blurry, though I remember being on the beach recently ...
 
Oo
 
Sounds like a typical Englishman on vacation
 
morning
 
@Patrick lol. indeed. I remember that one trip on a catamaran on Mauritius. The english couple started drinking Gin the moment they boarded ship. They were totally smashed at the end of the day.
 
6:51 AM
yeah ... only I'm not on vacation and don't drink ...
 
Hi guys
 
@JoeWatkins I trust you know when to see a doctor
 
I have date value as 0000-00-00 stored in table .. How can I check if there is valid date stored in the table column?
 
@Exception it's a valid date. just very long time ago
 
@Gordon haha yes, indeed
but I want to get date except this date.
and need to check except this date every other date in this format is correct..
 
6:54 AM
@FélixGagnon-Grenier She-Haa, princess of power?
@Exception assuming mysql, 0000-00-00 is a dummy date, which is the equivalent of null.
 
yes I am using mysql
 
@Gordon they can't help me, it's just how my memory works ... I remember all the code I've worked on for the last week or so, with such high fidelity that I could reproduce it from memory, but I've only got faint memories of everything else ... and my normal memory doesn't improve when I'm not working ...
 
@JoeWatkins sounds like mad hatters disease, just with php-src or c instead of hats
 
@Gordon How string '0000-00-00' be compared with null ?
 
@Exception there is a flag you can set to disallow 0000-00-00 as dummy value. check the docs for that please. I think Mysql handles this transparently and you can just query it as if it was null, but I am not sure. If you want to change the value, just update to null where 0000-00-00
 
7:03 AM
@Gordon I like hats also ...
 
wtf did they do the main site????
the removed the horizontal nav for some ugly sidebar
21
Q: Live: Left nav, new theming and responsiveness

Joe FriendWe have released left navigation bar, our new theming and a our initial responsive design work on Stack Overflow and Meta Stack Exchange (it's been live on MSO for a week). This work has been in progress and being discussed with the community for several months. The motivation for the work is cov...

Uuuuugly!!1Gordon 2 mins ago
 
I haven't got an old window open, I see the left nav thing ... it looks pretty useless ...
was that same stuff in the horizontal nav ?
all of the stuff I click looks like it's still in the same place ...
 
you can turn it off
 
ah it was probably turned off ...
but I'm with you, I hate change, and they are terrible people ... even if I'm unsure of the exact nature of the change, it's bad ...
 
narf, apparently hiding it will not bring back the old nav
 
7:16 AM
@Gordon that is the quick hack.. But I am working on legacy code ..I don't know at how many places I need to change and add respective condition ..So let it be, I am using-
if($finalDate != '0000-00-00') {
                $finalDate = date('m/d/Y', strtotime($finalDate));
            } else {
                $finalDate = '';
            }
 
you're going about it wrong
if your data or it's schema is corrupted, then fix it once, don't write code to deal with the broken schema or data ...
 
@JoeWatkins No, it's not corrupted
 
yes it is ...
code has inserted invalid values into a date column
first fix the data, then fix the code so it can't do that ...
or vice versa, but don't write code to deal with corrupted data ...
 
Why do people think inheritance is the answer for everything >_>
 
because everything extends anything ?
they should be letting everything be Collection<T> where T is anything ... amateurs ...
generics are the one true answer ...
 
7:25 AM
@JoeWatkins let me tell you scenario.. there is no field over form .So which value you are expecting in finalDate column?
 
Wes
@Sean easy cheap solution
like using statics aka global state
 
I don't understand, but what I do understand is that 00-00-0000 is a result of an invalid value being inserted into a date column ... so you do have corrupted data and bad code, and I'm just advising you not to write more bad code to fix the problem that was created by bad code ....
there is no other way that value is in a date column, other than you inserted something wrong (probably a 0) ...
 
@JoeWatkins it's not exactly invalid. It's what MySql uses as dummy value when no value is given
 
no it doesn't
it uses null
a Date column not inserted is null ... check it ...
 
this is my column schema -
`finalDate` DATE NOT NULL DEFAULT '0000-00-00',
 
7:27 AM
well why on earth have you done that ?
 
so I guess we can set null as default value
 
> MySQL permits you to store a “zero” value of '0000-00-00' as a “dummy date.” This is in some cases more convenient than using NULL values, and uses less data and index space. To disallow '0000-00-00', enable the NO_ZERO_DATE mode. Source: dev.mysql.com/doc/refman/8.0/en/date-and-time-types.html
 
I didn't .. I already told here ..it's legacy code
 
gut moaning
 
@Gordon that's really stupid ...
> This is in some cases more convenient than using NULL values, and uses less data and index space.
I don't understand why ... but whatever, we know why the silly values are in the column now ... it was chosen as default ...
 
7:30 AM
@JoeWatkins mysql ¯\_(ツ)_/¯
 
I would still fix the schema/data, and review the code to make sure it only inserts valid dates ...
I wouldn't handle the bad value ... it is a bad value ...
 
my impression is that MySql handles this transparently, e.g. it will treat 0000 dates as null.
I dont know for sure though. @Exception have you checked that? Maybe you dont need to write that code at all
 
only the Connector/ODBC driver for java converts it to null, it says right there on that page ...
 
and why do you think its bad value..? it was date very long ago though..
 
don't be silly
was that a serious question ?
because you said yourself ...
> I don't know at how many places I need to change and add respective condition
if it weren't a bad value you wouldn't need to take additional steps to avoid it becoming part of your data set ...
and I still say you shouldn't be taking those steps whatever, fix the root cause of the problem, don't code around it ...
I've actually not come across this before ... so til ... googling "mysql 0000-00-00" shows what a stupid "feature" this is ...
 
7:59 AM
@Gordon not really, no
 
so alter and update column to make it null instead
 
0-date is what you get for invalid input as a "silent error" and it not being picked up in WHERE date IS NULL
 
antigodlin lopsided or at an angle; out of alignment.
 
I've faced with a strange problem
I was codding on file1, and an error occurred inside page2
 
why would you edit files in /vendor ?!?!
 
8:10 AM
I never touched that file .. it's a library which is installed using composed and it was without error until today
noted that I removed vendor directory and executed composer install to fix the problem. but still it exists
 
looks like phpstorm has changed dome docblock parsing rules
 
morns
 
@tereško and what should I do now?
 
I have no fucking idea
it's some phpstorm crap - try asking in their support forum
 
emm, you know, my codes works well apparently. So can I ignore that error which is generated by phpstorme?
 
8:14 AM
@Shafizadeh What error does it show when you hover over the red-underlined text?
 
@Shafizadeh Yeah, you can ignore it.
 
did you faced with that error already?
 
this is just a phpdoc error, it hardly matters for a file inside vendor
 
ah ok, thx
 
8:32 AM
@mega6382 Isn't it possible I say so to phpstorm too? (I want to ignore that error for phpstorm too). That red line bothers me
also, if those errors are inside comments, can I remove those comments?
 
@Shafizadeh You can remove those comments, but when you'll push to live ir update the libraries, it will come back.
 
Wes
no axl singing
 
I was actually happy that he didnt try to sing wish you were here
the guitars are crying… what else would you need?
 
posted on June 13, 2018

New Cyanide and Happiness Comic

 
@Wes check the second link. 9 mins in is november rain with axl singing
 
 
9:02 AM
olalalala new layout for SO
 
Great deal
 
how nice he played comfortably numb as well
 
@Duikboot I hate that new layout, there is just so much wasted whitespace on the left.
 
@Ende sounds like an "everyone wins" scenario: California gets communism while escaping the second comming of Hitler, Trump gets lock on electoral college, Kim gets territory and Russia becomes the sole nuclear superpower
 
Valid point. It's focussing to much on teams, maybe some option to turn it off as individual user would be nice
 
Wes
9:04 AM
@Gordon eh. not great. or maybe it's just the recording
 
@tereško I hope its a meme.
 
it is
 
@Wes true. not great. he cant do great anymore. but decent. I was fine with decent. I was scared he'd fuck it up.
 
or AP has got their twitter hacked
 
@tereško well, you never know. :P
 
9:06 AM
Don't think Trump would ever agree with this
 
"Assocaited" Press
 
ah
 
guys, learn to read :)
 
yes, that was the third option: parody account
 
Wes
the timbre sounds intact though @Gordon maybe he just need more aerobic training
 
9:07 AM
@tereško But you think Trump is the second Hitler?
 
@Ende no, but a lot of people in California do
 
Too much latins there
 
no, too many vegans
 
Is there a way to force delete a file with unlink() if it was busy?
If there is a process using it, kill it. I thought about using fuser to get the PID and kill the process, but is there a better way?
 
@someone "if it was busy?" - I think possibly you've misunderstood something. What problem are you actually seeing? Have you tried just unlinking it?
 
9:13 AM
Unlink will show error 'Text file is busy'
 
What operating system is this?
 
linux ubuntu.
I'm surprised you never seen this error :)
 
Can you show the code you're using - I don't see how unlink could show an error message like that.
 
The code? unlink("path/to/busy/file")
its an error from the OS
 
@someone and that's PHP code?
> This occurs when you try and write to a file that is currently being executed by the kernel, or execute a file that is currently open for writing.
Yeah, somehow I've managed to avoid getting into those scenarios.
 
9:20 AM
Yes, I use PHP to run a gradle but sometimes after the build finishes the file will stay busy the 'java' process keeps a handle to it for some reason so I want to delete it from the temp directory.
 
So, is the real problem that the 'gradle' is still running, and if you either stopped it running, or investigated why it was continuing to run after you think it's done the useful work, that would solve your problem?
Trying to force unlink a file that the operating system things shouldn't be deleted sounds like kind of a bad idea.
 
Gradle fails quite often it is very unreliable especially if I'm trying to automate a build process so it is usually better to start over in some cases.
 
9:35 AM
Okay, but force killing gradle so that it's not running sounds better to me than allowing it to continue to run, and deleting a file that the OS would prefer not to delete.
 
this does not sound like php problem
 
I'm using PHP to delete the file so it is a PHP problem now
:)
 
@someone Try to free the file from the OS and then try to delete it, but I've no idea how you would do that.
 
@tereško i) there is no-one else talking. ii) You apparently feel free to talk about video games in here; you would like me to give you shit when you do that?
@mega6382 killing the java process that has apparently failed to exit would be the correct way.
 
Yea, I think I'm going to use fuser path/to/busy/file and see if the process is Java kill it and try to delete the file
 
9:40 AM
@Danack odd, how you always decide to pick the most uncharitable interpretation of what I write. When did I say anything about him not asking it here? Or could it be that all I said was "it is not a php problem"?
 
@Wes maybe DDD Distilled as a starter?
@Patrick :+1: glad it did help :-)
 
@someone can't you just make sure that OS has killed that Java process?
 
"how you always decide to pick the most uncharitable interpretation" - because you're constantly rude to people, so I'm on the watch for you being dick. Perhaps if you weren't rude all the time, people would be more charitable with regard to your intentions.
 
@Danack and you are rude to me all the time. To the extent that every sentence you direct at me is dripping with the disgust. Do me a favor and add me to your ignore-list.
 
Alright, people lets stop it here, before this gets out of hand.
 
9:43 AM
lol I have been here before like two years ago and I remember seeing you arguing. This seems to be a normal thing here.
 
@someone Yeah, we argue here often and a lot, but I am sure an argument between these two, will surely be catastrophic. :P
 
Oh fuck, what have SO done to their main page
"Let's take a tone of unnecessary screen real estate for something that used to fit perfectly at the top"
I think I'm maybe late to the party
 
44 mins ago, by mega6382
@Duikboot I hate that new layout, there is just so much wasted whitespace on the left.
 
@Jimbo they are trying to push their "teams" thing
 
^ yeah, that
 
9:49 AM
Yeah the left sidebar is terrible. I couldn't recognize SO and thought it is just some website copying SO's answers before checking the URL.
 
@Jimbo hmm, seems to fit find for me:
 
@Ekin Thanks :)
 
tbh, I wish they'd use more width....
 
Hello, experts of php
 
9:53 AM
@DaveRandom do I recall you mentioning an ip manipulation library in PHP?
 
I have issue
Could you help me???
I want you help me
anyone?
 
hey @Jincowboy
 
> Don't ask to ask, just ask
 
Don't ask to ask, just ask :)
 
could i ask here about php?
 
9:55 AM
you read my mind @Danack
@Jincowboy that's the php room, where else could you :)
 
i have issue for gravity form conditional shortcode usage
so i had already asked question in wordpress stackexchange.com
But yet i had no answer
 
Got me some tickets to see TesseracT /cc @tereško
 
@Leigh I hate you
 
Nothing changed there then
 
i cry impatiently
help me
 
Wes
9:58 AM
can someone kick pls
 
@Jincowboy You're normally a lot more coherent than this. Perhaps come back when you're clearer headed?
 
@Jincowboy You've written "help me" 3 times, and you've not yet asked the question.
 
@Jincowboy i have yet to see any question... ?!
 
yes
I am trying in step5 of this site
 
Out of interest, how are people passing authentication details on to controllers when using auth middleware? (I'm using a custom Request object and injecting details into it before passing it on - do other people do the same?)
 
10:00 AM
i am using conditional shortcode of gravity form for shopping cart
forexample code is this:
[gravityforms action="conditional" merge_tag="{singleproduct:57.3}" condition="isnot" value="0"]<li class="por_2"><label class="gfield_label"></label>
<p><span class="price">$ </span> X <span class="qa">
</span></p></li>[/gravityforms]
But this is not working.
 
@Leigh I pass an Account instance as a dependency through DIC
though, I think I misunderstood what you are actually asking about
 
@Leigh Are you using any framework or something?
 
yeah, when people use the word "middleware", they actually mean that laravel abomination
 
For context, it's a mobile API, from the API token we get a user/device ID, and every controller will care about these values, but doesn't need any more than a pair of ints
 
Wes
twitter.com/JamesMelville/status/1006651535114186752 . hilarious bit from trump + kim meeting
 
10:05 AM
Well, this is PSR-15-like, I wrote it before PSR-15 was a thing but it's almost literally the same thing
 
@Jincowboy "it's not working" is too broad, include logs, errors, something ...?
 
result
 
@Leigh do they really care about it or do they actually just need the identity?
 
is same with not using shortcode
 
@Wes lol
 
10:06 AM
Shortcode is is same with empty
 
@tereško they depend on the values, access to resources and logging require them
 
@Jincowboy you've lost me there.
 
But I guess an "identity" can be passed to the logger etc. and then that can care about them
 
@Jincowboy I don't think you're going to find an answer here. This might help docs.gravityforms.com/enable-conditional-logic but wordpress stackexchange is a better fit.
 
@Leigh logging is not initialized by the controllers .. and I am not sure what you mean by "access to resource" - I thought it was the API code, which would mean that user is already accessing a resource that is handled by your controller
 
10:10 AM
@Leigh OK, I did something similar in Node.js(typescript) recently and I was using JWT. So, the logic for validating the token was written in the bootstrap and if successful an object of "user" was set globally inside the "app" variable. Which was then passed to every controller's constructor.
 
lol
 
@mega6382 it's not JWT, not that kind of token (legacy system, we have to look up the tokens from memcache to get the device details)
 
Wes
removing anything that could get myself in trouble :B
 
This is a thing I've been migrating away from Laravel for a long time, it's still pretty shitty.
 
what did you mean by "access to resources"?
 
10:14 AM
@Wes I didn't see it in time, damn.
 
mogorings
 
\o
@PeeHaa hey sis, how you've been? :P
 
Drunkish
 
@tereško Oh, if a user requests details of a resource they created (or a resource someone else created), the details of their identity is required by the services.
 
as I said, you actually need user's identity (as in, specific instance) at point and not raw tokens and/or hardware ID
 
10:21 AM
@FlorianMargaine can you elaborate a bit? There are a couple of bits and pieces I have done in the past, one being more about interop (which I haven't really pursued) and one being some somewhat horrible old code which I have been meaning to turn into something decent, and doesn't require much work to do so, around IPv4 subnetting and scope resolution
 
@Leigh Even still, you can use a similar idea, just be sure to extract the ids from the token before it gets to routing. And then just inject those in to controllers via constructors.
 
@mega6382 At the point the controller is constructed, it doesn't have those values
 
We have composer install command which the composer installs mentioned libraries into the composer.lock file and put them inside vendor directory. Do you know what's the same command for npm? (which the npm installs mentioned libraries into the package-lock.json file and put them inside node_modules directory)
 
@Shafizadeh npm install?
or npm update?
 
ah ok, I just wanted to know
thx
 
Wes
10:27 AM
@mega6382 i failed :B
 
:P
 
I guess the X to my Y is that I want the identity to be immutable when it reaches the controller, but at the point in time when a controller is constructed the users identity is not known
 
Anyone aware of what Laravel does to queues? they seem to run jobs painfully slow. Is there a way to disable the magic and let them run in one process. first come first serve.
 
Then use setters, I guess.
 
which makes it mutable
:p
 
10:32 AM
Quite a conundrum huh, :P
 
(function () use ($userID) {
    $this->userID = $userID;
})->call($identity);
whistles
 
@Leigh Can it not be made to be known before then?
 
@Sean would have to alter more of the app than I want to, I guess this refactor just has to come later
 
@Leigh instead of depending on the identity you could depend on an identity provider. and then just ask that for the identity whenever you need it
 
Loop variable confusion – #76466
 
10:36 AM
without looking ^
Idiots using references
/me clicks
lol nope
even worse
hmmmmm not a bug? or opcache
 
opcache
 
yeah, probably bogus bounds checking when determining the range of possible values
 
to be fair, if cmb is reporting a bug it's probably an actual bug, he seems to do quite a lot of triage work so I doubt he's going to report shit that isn't legit
 
oh lol
Didn't see OP. Thought it was some rando
 
although I can't repro on centos7/7.3.0a1 after 20 runs via fpm so must be some complicated interplay of edge cases
 
10:42 AM
@DaveRandom I'm going to do some php work and I'll manipulate some IP addresses (like starting from a subnet and iterating on the IPs), so I wanted to check if you had something
 
@DaveRandom this at least after a few tries is weird
usually optimizer bugs show on first run...
 
@Jeeves I can't reproduce on windows 10, PHP 7.1.12
 
@bwoebi Not second run?
 
@mega6382 the version requested is master
@PeeHaa that's opcache bugs
but opcache itself shouldn't alter the op_array
 
Ah I see
 
10:44 AM
@FlorianMargaine code is old == code is horrid but most likely does the needful stackoverflow.com/a/13612479/889949 will eventually get around to turning it into a proper lib (but not right now)
 
backtrace for "Maximum execution time" – #76467
 
in particular you can do e.g. foreach (new IPv4Subnet('192.168.0.0/24') as $addr) and it will give you an IPv4Subnet object for each individual address
and can deal with stuff like $subnet->contains($otherSubnet)
 
@DaveRandom woo, perfect, as an iterator, exactly what I wanted
 
:-)
/out for an hour or two
 
@DaveRandom hmm how do I get the IPv4Address?
 
@FlorianMargaine there isn't one atm, that's a thing that needs to be fixed, although tbh it would probably be better done as an interface. For now a single address is represented as a subnet with a /32 cidr
 
which is logically correct, albeit somewhat horrid
 
I'd expect the iteration to yield IPv4Address instead yeah
 
somebody wtf so I can move on ... I mean ... 202 methods on a single class ...
what the fucking fuck
 
10:50 AM
@JoeWatkins wtf?
 
@JoeWatkins looks like it solves all the problems, missing only some CliInterface :P
 
@JoeWatkins But I believe its expected from such an unorganized group of developers and contributors.
 
I wanted someone to tell me I was reading it wrong, and in fact there isn't 202 methods on that single class, and I'm seeing things ...
 
u are wrong!! laravel is the hot shizz!! but haters gonna hate!!
 
@JoeWatkins Actually it worse
They also have a __call in there
 
10:56 AM
I just .. I ... just ...
 
@JoeWatkins welcome to my current hell
 
@JoeWatkins half of them come from traits.. I guess they were trying to hide something.. :D
 
what the fuck is wrong with people, why do they use this shit, it is actual shit ...
 
You're just not artis anal enough @JoeWatkins
 
number goes down to ~100 as you go towards 5.6 github.com/laravel/framework/blob/5.6/src/Illuminate/Database/… but still... wtf
 
10:57 AM
Imagick has 354 for the main Imagick class......but yeah. That at least has justifications as there are that many things you can do to images.
 
@Leigh I've been here a while ... just every so often I see something I have to squeak about ...
 
I deal with this abomination on a daily basis
 
yeah me too, but don't tell anyone, it will ruin my reputation as a reasonable human being ...
 
@JoeWatkins You are right there aren't 202 methods in there there are more like 210, and 40 of them are static. github.com/laravel/framework/blob/5.3/src/Illuminate/Database/…
 
@Danack and history, I'm sure you could write it better if you were starting it today ...
this isn't code from 10-15 years ago ...
 
10:59 AM
@JoeWatkins when I've got time, I'm really interested in the C binding code that Dmitry(?) proposed......moving it all to PHP would be wünderbar.
 

« first day (2797 days earlier)      last day (2148 days later) »