« first day (2750 days earlier)      last day (2195 days later) » 

11:04 AM
Cool :D
 
> I'm a PHP developer in Uyo, Nigeria. I have always wanted to build some cool tools on the steem blockchain using PHP preferably with the Laravel Framework.
I believe this tutorial will help me alot on getting thee basic concepts. Thank YOU for this
 
Morgens
 
yo
 
o/
 
Also the font and the whole UX seems kinda sucky.
 
11:09 AM
OMG another one insecure without prepared statements
And this is revarded with $39
So it is possible to earn some money if writing good articles, yes?
 
any linux users here?
 
It sure does writing shitcode :)
 
need some help
 
@SohaibAsif just ask
 
this is not ubuntu support, @SohaibAsif , and what you are asking about is not even remotely related to PHP .. so, please kindly, fuck off
 
11:12 AM
@brzuchal Now finally a place where my code will be worth something. :P
 
@mega6382 Try it out :)
 
@tereško Your bedside manners always sway me.
:P
@brzuchal I just might.
 
why should I be polite to a spammer?
in some countries they get shot
 
True, dat
 
@jjok "always"
 
11:23 AM
@jjok blockchains and laravel .. awesome
 
@bwoebi fixed (for now, anyway)
unrelated @bwoebi thoughts? github.com/php/php-src/pull/3223 (specifically asking about my comment)
 
morning all
@Danack thanks
 
\o
 
o/
 
@tereško so, there is a discussion going on regarding the hostility towards minorities on SO, meta.stackexchange.com/questions/309513/…
@DaveRandom Did you not try my solution? :P
 
11:25 AM
oh ffs
@bwoebi I have just figured out what's going on
some fucking retarded web crawler is trying index the entire of lxr
SemrushBot
it is asking for the entire git history of every fucking file
 
@mega6382 I don not think that "ignorant haxzors" are a minority on SO
 
xD
 
also, according to that post, it looks like it's not a discussion
it's just users being somewhat baffled about the SO management's decision to virtue-signal
 
@tereško Of course ppl would be baffled, they haven't shared any relative data to correspond with their claims.
 
11:41 AM
> Semrush All-in-one Marketing Toolkit for digital marketing professionals
 
I fucking hate SemrushBot
I have that user agent blocked in IIS
that and Mj12bot
 
And ahrefs
 
too many people use it for malicious purposes and it's impossible to know when the bot is scanning my site, if it's a good web spider, or a bad web spider
 
All bots are bad. Some of them are just dicks too
 
who thougth that it was a good idea to name their bot "MJ12" ?
 
11:48 AM
@tereško good question
I also ended up blocking yandex because I've seen it ignore my robots.txt as well :|
 
@Tiffany I make my own scrappers, I don't like using some second grade shit. :P
 
@PeeHaa some bots are good. they kick spammers on irc:
memes in swedish
 
basshunter reminded me, there was this crazy campaign recently called, bullyhunters what happened to that?
 
@Danack Fine :) irc bots and jeeves are good
:P
 
Jeeves is not good, Jeeves is stupid.
 
11:55 AM
OK I have added a robots.txt to lxr, hopefully that will resolve the recent issues
 
I was just reading the last blog post about being welcoming
and reading tweets from people
Looks like downvoting is offensive now...
 
> SO Inclusion Manager & Senior People Ops Partner
 
@tereško ffs
 
it's a microaggression
 
12:01 PM
just treat people the same and properly then you dont need a manager for that
actually… having such a manager makes me feel excluded already
 
turns out people are not treated the same; what do you do?
just let it be?
 
/me is treated differently because he's different…
 
@salathe That's not true
Although you are ugly we also just don't like you
 
:)
 
"Too many people experience Stack Overflow¹ as a hostile or elitist place, especially newer coders, women, people of color, and others in marginalized groups. " this what I found to be really weird
 
12:07 PM
@salathe <3
 
Personally, I've never seen someone cast a vote because someone is a woman or a person of color
 
@hakre I think (hope) I have now actually, permanently fixed this
 
@DaveRandom How about adding a captcha to keep the bots out?
 
I can't modify the application itself sanely, but there was no robots.txt
 
Whooooooooo kept the bots ooout? Whoo? Whoo? Whoo? Who?
 
12:16 PM
:P
 
it will probably take a while before all of the crawlers that keep killing it actually start paying attention, but for now I've added a user-agent pattern match to return 403s
 
@Mehdi We're equally hostile and elitist to everyone, right.
 
except @JayIsTooCommon, he gets special access to that reserve of extra hostility that we keep for special occasions
 
@mega6382 ruuude, its family is here :p
 
@salathe Yes, I don't know how do you define hostile, if downvoting/closing a LQ post is considered hostile then yeah... I'm hostile af.
 
12:19 PM
@salathe Exactly, thats what I have been trying to say. :P
 
Anonymous
@DaveRandom is everyday a special occasion?
 
Anonymous
the main thing that upsets me is that @Gordon has never wished me a good morning.
 
Anonymous
not even a wave.
 
Anonymous
nor a mornidbdsd
 
@JayIsTooCommon in the least politically correct sense of "special" imaginable, yes
 
12:23 PM
@JayIsTooCommon never? can you back that up with data?
 
Anonymous
just pure abuse
 
Anonymous
I get it, you fancy me. But I'm not that hard to get mate.
 
Jun 24 '16 at 14:02, by Gordon
@JayIsTooCommon hello.
there. I said hello two years ago. Now GTFO :D
 
Anonymous
<3
 
12:32 PM
Nov 16 '17 at 10:01, by Gordon
@JayIsTooCommon boffwater
that is a wotd
 
Anonymous
5
 
Anonymous
ahahhaha
 
Anonymous
memories :')
 
is there a way to export the results from "Find Usages" in phpstorm?
nevermind, found it :D
 
12:59 PM
I dont dare to ask why you'd want to do that
 
that All method
I want to refactor it, but I need to make sure that I don't break where it's used
 
@DaveRandom you forgot your robots.txt? :-P
 
@Tiffany your tests will tell you. Also, when you use PHPStorms refactoring, it will change all the usages for you
 
@bwoebi it's a packaged java app, I just deployed it and didn't think about it
 
@bwoebi if it's a malicious person using the bot, they will ignore robots.txt
@Gordon I don't have any tests... those are something else I will have to write.
you missed the lovely conversation from yesterday
 
1:01 PM
@Tiffany sure, but then you can paste whatever user agent in there … if the person has malicious intents it will get through
 
@bwoebi true... I just block the user-agent in the server so I don't have to deal with it at all
filter out the lazy hackers anyway
 
The issue is, I think, legit but crappy crawlers that are attempting to index the entire site, which means they will end up trying to access the entire git history (every revision) of every file, with inadequate concurrency/back-off logic
 
@Tiffany refactoring without tests? Good luck then
 
@JayIsTooCommon wait... it's not a squid?!
 
@Gordon legacy code base :(
 
1:03 PM
@Tiffany add tests first? it's the best opportunity. if you refactor first, you'll never write these tests.
 
@kelunik i have also added https in url link but it's not working.
 
@Gordon that was my plan near the end of the day yesterday, I just don't know where to start with adding them. From what I've been told, and what I can tell, the code will be difficult to add tests.
 
@Tiffany you start with the code you want to change
 
Anonymous
@salathe :D
 
@Tiffany daedtech.com/characterization-tests skip to Getting Things Under Control
 
1:22 PM
so ... today I was told that referring to Locke, Rousseau or Machiavelli is bad, because they do not matter anymore, since they were more than 100 years ago
 
@tereško People still reference socrates, plato, Aristotle and they were like 3000 years ago.
and Jesus too.
 
well, I guess it depends on context.
All of them had an undeniable impact so referring to them cannot be bad per se. However, they did live in different times and a lot of people build on their thoughts and if we are talking about current times, it might indeed feel somewhat inadequate referring to them instead of current though leaders.
 
Yeah, I guess.
 
do you know any current "thought leaders"?
because I really can't name any
maybe Chomsky, but many would argue that he's not "current" .. and Hitchens is definitely not "current" anymore
 
1:34 PM
@Gordon so I have a method All that is defined in one class, and multiple classes extend off of that class, do I write tests for the parent's method, each child's overridden method, or both?
 
I believe any good thought leaders died off about 200 years ago.
 
@Tiffany you write a test for the parent class and override the test for each child
 
@tereško since you mentioned Locke, Rousseau and Machiavelli I assume en.wikipedia.org/wiki/Social_contract has some names you are looking for.
 
@FlorianMargaine the overridden child methods throw errors in 5.6 though... part of what I'm trying to fix
 
Wes
1:37 PM
@Ocramius wanted to know if it runs fast :B
 
@Gordon will go through that list in the evening
 
Anonymous
@Tiffany how does it throwing in 5.6 relate to tests?
 
@JayIsTooCommon because I want to fix (refactor) the method so that it will work in 5.6, but it has been recommended to me to write tests for the code before I start refactoring
I guess I would be writing a test for how it should work in 5.3
 
Anonymous
that's probably a waste of time in that context. Depending on it's complexity, i'd just refactor those methods without tests
 
@DaveRandom is the problem with lxr the software, or the hardware ? like if we scrounged a mega machine from somewhere would we have less issues ?
 
Anonymous
1:41 PM
@JoeWatkins the issue is Chris.
 
@JoeWatkins the problem was with the sysadmin
I forgot to put a robots.txt on it
 
oh so it was all google's fault
 
and there were crawlers that were trying to index the entire git history of every file in every project
 
Anonymous
ah that creased me up
 
@JayIsTooCommon the overridden method is in every child class, but it's not used much in the actual code
pretty sad, really...
 
Anonymous
1:43 PM
if it's broken in your current PHP version then you can't sanely write tests for it
 
@JayIsTooCommon live young, die fast, no fear ... other inspiring slogans ...
 
Anonymous
damn right
 
Anonymous
wing it and sing it sister.
 
however, you're totally wrong ...
 
Anonymous
definitely not
 
1:45 PM
@tereško my assumption would be that today's thought leaders have much less exposure than the likes of Locke or Rousseau though. They have groundbreaking in their time. But nowadays?
 
@Sarfaraj What does the browser console say?
 
let me ask this... if my goal is to refactor the code so that it works on 5.6, but the code currently works in 5.3, should I write tests for the code in 5.3 before refactoring the code to work in 5.6?
 
write the tests in whatever version of php the method still works under, changing the code to work on 5.6+ will likely not effect the result of the tests - you need it to work the same whatever ...
 
Anonymous
But @Tiffany has already upgraded?
 
Anonymous
no?
 
1:46 PM
@JoeWatkins lol... answered it as I was asking it, I'm guessing :P
@JayIsTooCommon no... I'm in a test environment
 
Anonymous
ah
 
@kelunik, there is not any error in console.
 
Anonymous
@Tiffany sorry thought you had a bunch of broken code you were trying to test on
 
@kelunik after considering that code more carefully, I think what's there atm is broken because it will essentially be a blocking busy-wait when it gets WANT_READ/WRITE. I'm not sure that patch is the right solution either, though.
This actually comes back to something that I have mentioned before (iirc) which is that non-blocking SSL stream abstraction falls apart a little when renegotiation gets involved, because afaik there's no way to sanely distinguish between fread() returning an empty string because EOF, and returning empty because there's a renegotiation in progress.
 
Anonymous
1:47 PM
@Tiffany looks like something @Wes would write
 
@kelunik , i have checked other answer in that they said if https you are using than other url should be https
 
@Tiffany yes
 
that's the worst thing I've ever seen @Tiffany
 
Wes
@JayIsTooCommon $jay->eat(new Bowl($dick, $dick, $dick));
 
@JoeWatkins you haven't seen my C code yet
 
1:48 PM
@JoeWatkins the child classes both override the method, and use it as a super method
 
Anonymous
@Wes We'll need to date for a bit first, sorry.
 
@tereško also, my impression is that the political and philosophical discourse back then was much more common and prominent than it is nowadays.
 
@Wes That doesn't look right, you are sending the same variable 3 times.
 
Wes
$jay->eat(new Bowl($dick, clone $dick, clone $dick));
 
thats better
 
Anonymous
1:51 PM
probably needs a DickCollection
 
but isn't cloning by reference?
 
Anonymous
i'll go to the js room and ask a few regulars to come.
 
so to speak
 
@Gordon Yes, nowadays everyone is too afraid of causing offense to discuss any thing real.
 
Anonymous
^.^
 
1:52 PM
@Tiffany please remove it ...
	static function All($class)
	{
	  $all = $class::$all;
	  if (!$all)
	  {
	    $class::$all =
		$all = self::findAll($class);
	  }
	  return $all;
	}
 
@Wes this might work $jay->eat(new Bowl(new Dick(), new Dick(), new Dick()));
 
Anonymous
looks smelly.
 
you can't just instantiate dicks
 
in general, you should test code before you refactor it ... however, if you see some code that is obviously stupid, you have a moral duty to change it ...
 
Wes
lol
 
1:54 PM
@JoeWatkins there will be several instances of that, I'm sure, as I go through this.
 
Anonymous
i'd fuck it and start again.
 
the unfortunate thing is I'll probably only have a few days I can dedicate towards this before I'm forced to work on something else
 
@DaveRandom Then how bout $jay->eat(new Bowl($dick[0], $dick[1], $dick[2]));
?
 
Anonymous
Oh I just got fucking pasta on my hoodie. What a shit Friday
 
...but that would have been fine if it were Tuesday?
 
Anonymous
1:55 PM
duh
 
@Gordon oh, it's common these days too .. only it happens on Twitter
making it the bad kind of "common"
 
that @JayIsTooCommon kind of common
 
@JayIsTooCommon wrong again ...
 
@Wes or ...$dicks
 
Anonymous
$dickCollection
 
Anonymous
1:58 PM
you apes.
 
room topic changed to PHP: Discussions around the most semantically correct way for @JayIsTooCommon to eat a bowl of dicks
9
 
Wes
pretty shit that #hash in github is hidden behind a overlayed toolbar
 
Anonymous
so the table that the Korean leaders used at the meeting today was exactly 2018mm wide
 
Anonymous
that's extra
 
@JayIsTooCommon You should use a priority queue, the best always first - you'll anyway never reach bottom.
 
Anonymous
2:08 PM
sounds like you've over engineered the dicks Bob
 
it took several attempts to upload ... but Friday was good ...
 
Wes
what does pending mean in github?
 
Anonymous
how can you even change the subject.
 
@Wes Pending CI?
 
Anonymous
Joe just posted a speedo pic and you both want to talk about Github
 
Wes
2:12 PM
comment on a line in a diff @PeeHaa
 
@Wes Link?
 
Anonymous
you both disgust me.
 
:P
 
Anonymous
@DaveRandom get in on this.
 
Wes
2:13 PM
 
Started a review?
 
Wes
maybe i have commented too much and got prevented to add more?
 
Don't think so
Also can't see the pending lable
Best gues is you started a conversation / review
 
Wes
ah
how dumb
 
@DaveRandom Correct.
 
2:20 PM
and as I'm digging through the directories and code... I am finding features that were never implemented in the final version that was released to us...
 
that's not surprising, whoever gave you the code hates you, and is out to get you ...
I wouldn't be surprised if they are behind you right now, with a big knife ...
 
Anonymous
@JoeWatkins it's america
 
being stabbed with a gun is going to hurt even more than being stabbed with a knife ... I'd get out of there ...
 
Anonymous
2:36 PM
creased
 
posted on April 27, 2018 by CommitStrip

 
PCRE Segmentation fault before PHP7 – #76276
 
3:00 PM
> If I use jQuery, which is part of CSS, I can solve this problem.
 
lol
 
it's fun browsing through SO again
 
Wes
@Jeeves works for me 3v4l.org/1bYJv
3
 
fu
 
Wes
:D
 
3:04 PM
new chrome killed the autoplay on that for me
rebecca's days are numbered
 
Wes
a sad day for the human kind
 
> We found a potential security vulnerability in one of your dependencies.

A dependency defined in ./package-lock.json has known security vulnerabilities and should be updated.

Only the owner of this repository can see this message.
Learn more about vulnerability alerts
Well that's nice.Fuck if I know what that dependency is doing or whether it's a problem for me
Welcome to npm dependency hell
 
@PaulCrovella And that's not even a comment. But an answer.
Oh lawd
 
amazing, isn't it
 
3:08 PM
Laravel is the worst framework – #76277
9
 
hahaha
@Jeeves Finally a decent bug claim.
Lets pin it.
 
gonna be one of those kinda days, huh
 
@mega6382 Too late. Deleted it :)
 
Who did?
 
> OS: laravel
shudders
 
3:11 PM
@PaulCrovella source?
 
when using exec() to run async processes in php apache processes, does php limit the number of processes I can run?

https://stackoverflow.com/a/45966
 
@staabm Still having issues?
 
@kelunik different issues while testing different approaches ;)
 
@Jeeves This is amazing :D
 
3:16 PM
From:             no at no dot com
Operating system: laravel
PHP version:      7.2.5
Package:          *General Issues
Bug Type:         Bug
Bug description:Laravel is the worst framework

Description:
------------
it basically broke php ecosystem devs are terrible
^^ original, since it's marked as spam (thanks @PeeHee)
 
:)
 
Are we sure its not @tereško or @PeeHaa in disguise? Or someone else from r11?
 
@mega6382 it's too polite to be any of us
 
@mega6382 I am easily irritable, not juvenile
 
:D
 
Anonymous
3:18 PM
@mega6382 my guess is you.
 
and why would you report it to php.net
it's not php's fault that laravel is shit
 
@mega6382 neither of them would go out of their way to report that. if anyone here would it'd be @Jimbo
 
hell ... it's not even laravel's fault per se: the blame is on their community
 
@JayIsTooCommon What teresko said :P
 
@PaulCrovella Do you know how difficult it is to report a bug on php.net? /s
 
3:20 PM
I don't
I have never actually reported one
 
He posted it by using no at no dot com email, how hard could it possibly be.
Only @PeeHaa and people who don't know that basic questions about php should asked on SO, report bugs there. :P
 
Was there an RFC for making the heredoc (or whatever >>>doc) allow it to start not at the start of the file?
So basically, like normal inlined code?
 
Yes and it's accepted
Also start of line*
 
Time to upgrade the wiki...
 
@kelunik ?
 
3:29 PM
@PeeHaa there was a new version of dokuwiki released last week
 
ah
 
3:43 PM
o/
 
@salathe @PeeHaa And I clicked your link and saw the reminder on the wiki. ;-)
 
Ahh, I only log in to the wiki in order to vote. :P
 
That does remind me I still want to finish up two rfcs for session defaults for 7.3
 
are they mandatory?
 
Both mandatory and uhmmm there was a new word he liked to use
sec
 
Wes
3:49 PM
@Ocramius babe
 
@PeeHaa he's distracted by validation; quick, change sessions!
 
@PeeHaa CORDING (sic) STANDARDS
 
@salathe Yeah :P
@Danack I think it was something else
 
Wes
that class does the same thing as nodevisitor, but does not use as many function calls. the tree is traversed in its entirety unless you tell it to not do so
with that i mean that it's 100% compatible with the code you had before
 
Damnit nope. Cannot find it anymore :(
 
Wes
3:53 PM
you weren't manipulating the ast but only looking for nodes... that's optimized for that specific goal rather than being generic like the visitor thingy
 
What logging library do you guys use? Monolog?
 
@Allenph PHP's mail() function.
:P
jk
 
Wes
apache logs
i'm not joking :B
 
nevermind
 
stdout
because that gets picked up by the docker logs, centralised in graylog
 
4:00 PM
I hate my fucking code base
 
Wes
@Tiffany not sure, but on the left of the find usages window you can order/sort/group the output
 
@Wes I took the time and actually looked at the code that the report was referring to... there's a method under a class, where the method name is the same as another class.
@Wes I had to print the report out so that I could highlight stuff and make notes on the paper. Makes it less practical in phpstorm's context, but easier for me to digest what's where.
 
I've got a question about zend_object and custom objects like datetime etc., most of the custom struts have a field named std for zend_object strut and reaching for the custom strict needs offset calculation. But as I can see in Python they have a #define PyObject_HEAD with defined all fields from PyObject so the custom objects include that at the beginning so there is no need for offset calculation. And now what are the pros and cons of both ways?
 
Wes
given that code base, you are going to need a forest of trees for the paper :B
 
I just need an error log for a mass import. :p
Apache seems like the wrong place to do that.
 
4:05 PM
@Wes we use a program called papercut which will track how many pages a person prints. I'm on the low end. Coworker probably has killed a forest with how much she prints.
 
Wes
don't do that :P
 
@Tiffany Btw, I would suggest that instead of refactoring the existing codebase. You can start afresh and just copy the functionality across. What do you say?
:P
 
ask me how my day is going.
 
19 hours ago, by Tiffany
I don't think I'm skilled enough to write something entirely new, which is part of why I'm choosing to try and improve what I have, to learn how to write better code, and maybe reach a point where I could write something that would replace it.
 
hey @Danack hows your day going?
:P
 
4:13 PM
still using abp instead of ublock origin. noob.
 
@Tiffany Oh, I see. Well best of luck then I guess.
 
BitBucket is throwing a fit that I'm using Composer and wants me to authenticate...WTF?
 
@mega6382 it turns out that there is a bug in some of the software used in provisioning kuberneters in Google cloud engine, and correcting that bug takes over 2 hours to propagate, during which time the website is not on the internet.
 
@brzuchal As of PHP 7 std objects have variable length (due to embedded properties), so they have to be located at the end, rather than the start of a custom object.
 
4:15 PM
@Allenph composer supports keys for github and presumably BitBucket.
because otherwise you get api rate limited really fast.
 
? Why is it asking me to authenticate in the first place? All I want is to require a package.
 
@Danack WAT. Is there a backup site that the DNS can point to in that time?
 
@Tiffany hmmm, I see. Yeah, sure it might end being some sort of learning experience.
 
@Tiffany yes. That change will take 2 hours to propagate.
 
lol, that sucks
 
4:17 PM
@Danack Why did you choose google anyway?
 
Wes
travis ci is much nicer now
 
@NikiC so this is connected to hack zval properties_table[1];??
What is that [1] stands for? It is a one dimensional array with length=1?
 
seriously though, they had better support for kubernetes 9 months ago.
 
4:35 PM
assuming I understand the functionality of this method correctly, is Site() a method that could be refactored using dependency injection? it seems like its purpose is to access a global state, which if I remember correctly, is better done through dependency injection...inversion of control and stuff
 
@Wes 😃 I wanted to make sure I was on the right track of thinking. I haven't wrote anything that used dependency injection and my understanding is still rough.
 
Wes
There must be exactly 1 whitespace between closing parenthesis and return type colon.
frigging code style
 
@Wes huh?
 
Wes
not related to your issue
just complaining about the stupidity of code style that is popular these days
> Use statements should be sorted alphabetically. The first wrong one is PhpParser\Node\Stmt\ClassLike
Y U NO COLLATE
 
@Wes you're not allowed to complain about things until tiffany finishes her refactoring project
 
Wes
4:58 PM
right
 
lol
probably will be never... but I can dream
 
Wes
i fixed 40 code style issues.... created 80 more
 

« first day (2750 days earlier)      last day (2195 days later) »