« first day (2739 days earlier)      last day (2199 days later) » 
00:00 - 17:0017:00 - 00:00

12:03 AM
oh lord... there is a neighborhood kid outside repeatedly yelling "PIZZA" at who-knows-what
I'm assuming a parent or something, but ... -_-
 
their cat, maybe?
 
Ha! That makes sense
 
12:20 AM
ini setting to not empty opcache when php-fpm is reloaded – #76225
 
12:42 AM
@Gordon ^^ possibly one you might be able to help with?
Or we could just deprecate supporting shared hosting.
 
hi fellas!

I was wondering if someone knows of easy ways to setup a Apache-Pig ?

Need to play around with it and cannot hog the cluster all the time. i was going to do some test-scripting on my local machine.
 
 
2 hours later…
3:20 AM
@Danack still awake?
 
4:07 AM
morns
 
Wes
5:00 AM
mornrssidsh38
 
Wes
5:29 AM
it's still cold af here
might snow even
 
morning
 
5:46 AM
\o
 
o/
 
6:08 AM
good mornings
 
6:53 AM
\o
 
7:21 AM
o/
 
7:38 AM
morning
 
\o
 
Wes
o/
 
Hi I need advice. Is working in UAE as a programmer is good?
 
@Wes I love you very much ... thanks ...
most of the blog post I wrote last night is wrong ...
 
I tried to applied for overseas work and the company says I'm hired.
 
Wes
7:47 AM
because you changed it during the night? :D
 
upon research the salary offered to me is in the lower bracket as a programmer
 
@Wes just now actually ...
not most, just some of the pics are wrong now ...
 
Wrong Year for the last 5 Days of the year in fa_IR – #76226
ken knowledge, understanding, or cognizance; mental perception: an idea beyond one's ken.
 
!!dad
 
My wife is on a tropical food diet, the house is full of the stuff It's enough to make a mango crazy
 
8:37 AM
should we always repeat controls on the backend?
 
What does that even mean?
 
when you validate user input on the frontend with javascritp
you usually sends it to a server after some checks
 
Validation on the frontend is not actual validation. You must always validate on the backend.
 
okay thanks, I was wondering
what if you force your server to accept connections only from a given domain
and deny curl requests or anything else and only accept requests coming from your frontend web application
in that case how would someone be capable of sending data that didn't got validated by the frontend?
 
Look, if you are taking input from users, it doesn't matter if you only allow data from your frontend. The thing is that frontend validation can easily be bypassed. The only purpose of frontend validation is UX and not any actual functionality.
Backend validation is the only way to make sure you get sane data.
 
8:46 AM
okay thank you! Do you know some good way to use javascript regular expressions in PHP ?
without having to rewrite them?
 
@Nerva Just have a look at this stackoverflow.com/a/34134770/6998123 and change them a bit if required, they should mostly be the same.
 
Introducing CQL - CommonMark Query Language: http://blog.krakjoe.ninja/2018/04/an-introduction-to-cql.html #php #cmark #shiny
3
/me rests for a day or two
 
Wes
:D
 
finally a CQL that should be pronounced as CQL.. :P
3
 
9:09 AM
just use yaml
 
Wes
yo
 
abr
yo
 
yo
 
yo
 
Wes
9:12 AM
@bwoebi what is it? :D wonder bob likes doing in his free time
he bought a motorcycle, that's my guess
or a go kart.
 
@Wes no
 
Wes
:D
solved though
 
Anonymous
@Wes stamp collecting.
 
Wes
that's too obvious
maybe he has a girlfriend now :B
 
hi there
does anyone knows how to check manually, on button click, the "validate" status of an activeform with yii2? can't find anything working
 
9:29 AM
he's okay, he just mentioned he found stuff to do with his time other than programming ... which sounds mysterious ...
it's a good idea whatever ... it too easily takes over so that you miss big parts of life ...
who are you people anyway ?
 
@JoeWatkins now I'm missing parts related to programming instead :-P
 
morning
 
\o
 
9:46 AM
@bwoebi I'll ping you if anything happens, but nothing really interesting has happened for like 30 years ... there's so little to miss ...
 
Anonymous
9:56 AM
who even uses that
 
Anonymous
nerd
 
people who deploy things, keep working and maybe one day something you wrote will make it into production
 
Anonymous
..
 
Anonymous
touché
 
:-D
 
9:59 AM
@JoeWatkins haha - btw. I've observed you working on that common mark querying - what's the concrete use case of that?
 
it's mostly for masochists
3
 
^ that
 
Wes
the big problem with it is that it doesn't include the html tree
means that with serious stuff you gotta use dom anyway
 
you mean like, inline HTML within the md?
 
Wes
yes
 
10:05 AM
oh btw @PeeHaa I added line numbers to json.room11.org and fixed the accessor pop-up edge cases (ajax and var_export() instead of just assuming that JS strings will work in PHP)
 
Wes
did the collapse thingy work?
 
Wes
niiiice :D
 
quick question
does lastinsertid remember multiple IDS
 
10:16 AM
if you insert 3 items , does it remember 3 ids?
hmm
 
it's the last one
 
ye saw that aswell, is there an alternative for
 
use a better rdbms
:-P
 
xD
 
https://www.postgresql.org/docs/current/static/dml-returning.html
https://docs.microsoft.com/en-us/sql/t-sql/queries/output-clause-transact-sql?view=sql-server-2017
mysql doesn't have an equivalent because it is wank.
You can do some hacky-ass stuff like writing a SQL loop to do the inserts, inserting the last id into a temp table and selecting the contents of the table
I have listened to Gold Against The Soul all the way through 3 times already this morning and seriously considering doing it again
 
10:38 AM
or you can listen to Ocramius and use UUIDs
 
10:56 AM
@DaveRandom Is that the one with Motorcycle Emptiness?
 
@jjok no that's Gen Terrorist
which is also pretty good
but Gold Against The Soul and Holy Bible are better (imo)
 
@DaveRandom I thought developers were only allowed to listen to metal? o_O
 
Wes
WHAT HAPPENED TO SPRING
 
the Java framework?
 
Wes
mid april and i'm freezing
lol
 
11:06 AM
@jjok I don't like angry code, I much prefer angsty code
 
11:21 AM
hello guys, i need help on registering packages in laravel. any1?
 
@DaveRandom I could have used that one quite some times already...
 
@bwoebi honestly I'm pretty sure mysql has most of the necessary stuff to make that work, in particular it has old and new available in triggers, seems like OUTPUT new.* should be simple enough. But it's Oracle, whose raison d'etre appears to be to buy things in order to watch them burn.
 
How do I set a timeout to this crontab command: */5 * * * * wget -O /dev/null mywebsite.com/wp-cron.php?doing_wp_cron
 
@DaveRandom what about mariadb?
 
@DaveRandom My particular use case would be atomic statements - i.e. the value of a new row is computed via subquery and I'd like to fetch that data
 
Wes
11:34 AM
@DaveRandom isn't that what all IT companies do
nobody beats symantec though
they've killed like 100 companies
 
anyone knows how a raw header to set multiple cookies should look like ( i am using header("set cookie") but only the last one is applied ) ?
 
@mega6382 mariadb has DELETE ... RETURNING, but nothing else
@DaveRandom not discussing the horrible schema design, but the primary key is computed within a subquery. insert_id only applies to auto-incremented values though. Basically need to do another select query to fetch the id currently :-/
happened though that another similar row got inserted after that row, but before my next select, ending up with one id referenced twice and the if of the other row not at all
 
Wes
there's who is shocked by facebook's data scandal, and then there's my old teacher of middle school that just shared a picture of her in bikini (despite she is like 60) in "sexy" pose
 
@bwoebi sounds like you should be using uuids computed outside the DB (assuming that "use a better rdbms" is not an option)
 
@DaveRandom awesome \o/
 
11:41 AM
@Izopi4a use setcookie()
 
@DaveRandom As said not discussing the horrible design … the actual values of ids have some meaning attached to them ...
 
@mega6382 they aren't (afaik) doing anything to improve the SQL dialect itself
 
set cookie works perfect yes, i am in a delicate situation and i need to make it work without setcookie
basically i need this

<?php

header("Set-Cookie: a1=b1");
header("Set-Cookie: a2=b2");
header("Set-Cookie: a3=b3");
die();

to set you 3 cookies
 
@bwoebi Use a transaction?
Morngins all
 
Wes
@Izopi4a why
 
11:43 AM
@PeeHaa My table engine is myisam and full table locks are not fine for thousands of selects and multiple hundreds of updates/inserts per second
 
well i am calling a curl, that returns cookies that needs to be created / deleted. And i want to apply those changes on the client browser
 
@bwoebi Just store it as json :P
 
Unable to subscribe to mailing list – #76227
 
@PeeHaa very troll-y :-P
 
@Izopi4a why? (i.e. what are you actually doing that means that you need to forward the cookies to the client?)
 
11:46 AM
yes, exactly
 
no... I asked why you need to do that
 
i want to hide an url call, that's why i am using curl, but now the problem is i need to forward cookie changes as well
 
can't you, e.g., create a server-side cookie-jar and associate it with a session?
 
@PeeHaa Stupid existing systems I cannot really change … which sort of work except sometimes.
 
oh joy
 
11:48 AM
or possibly should you just configure a web server as a reverse proxy @Izopi4a?
writing a reverse proxy in PHP is not going to go well
it's like 3 lines of nginx config
 
i am not familiar with reverseProxy i need to read about it and come back to you
 
@bwoebi can you convert to InnoDB?
@Izopi4a "Proxying" requests basically means having one web server forward them on to another web server
 
@DaveRandom I could. If you pay me two new servers. We tried that but the performance hit was too drastic
 
which sounds like what you are doing
doing it through PHP will be difficult, and slow
 
@bwoebi Careful. You will get two pentium II XP boxes
:)
 
11:51 AM
:-P
 
No I've run out of XP licenses, it's ME all the way now
 
lol
 
"The real Millenium Bug"
that's what the tag line for Win ME should have been
 
aha ok. I see what you mean and it makes sence, but the url i want to "hide" is an login.php file, i just want to prevent it from being known at all. That's why the curl and manual set cookies. I see its problematic .. maybe i will just redirect to "login.php" and screw it
 
@Izopi4a why do you want to do that?
if the answer contains the word "security" anywhere, you are doing it wrong
 
11:53 AM
I am thinking whether there is an actual valid answer there :P
 
Well it's either misguided security-through-obscurity, or doing something dodgy af
some kind of badly executed mitm
 
@Tiffany er, I am now.
 
12:17 PM
@bwoebi fast selective iterator
 
@JoeWatkins yeah, but what for? Is common mark really that useful for description and normative documents written in it, that it has actually real world use cases?
 
Wes
12:32 PM
contenteditable is a piece of shit, hence markdown
 
@bwoebi If you're rendering a document, but you want to add some CSS classes to some elements?
Actually, I've had that use case before. Rendering markdown that came from a third party API.
 
@bwoebi I think so ...
## Class

### Class.Method

  ```prototype
  function Class::Method(...);
  ```

  Description of method
<?php
$doc = \CommonMark\Parse(file_get_contents("doc.md"));

$findCodeBlocks = new \CommonMark\CQL("/children(CodeBlock)");

$prototypes = [];

$findCodeBlocks($doc, function($root, $node) use(&$prototypes) {
	if ($node->fence == "prototype" &&
	   !$node->next ||
           !$node->next instanceof \CommonMark\Node\Paragraph) {
		throw new \RuntimeException("prototype is missing description");
	}

	$prototypes[] = [
		"code" => $node,
		"description" => $node->next
	];
});

var_dump($prototypes);
array(1) {
  [0]=>
  array(2) {
    ["code"]=>
    object(CommonMark\Node\CodeBlock)#4 (2) {
      ["fence"]=>
      string(9) "prototype"
      ["literal"]=>
      string(29) "function Class::Method(...);
"
    }
    ["description"]=>
    object(CommonMark\Node\Paragraph)#5 (1) {
      ["children"]=>
      array(1) {
        [0]=>
        object(CommonMark\Node\Text)#3 (1) {
          ["literal"]=>
          string(21) "Description of method"
        }
      }
    }
  }
}
how useful the format is for description depends on the tools you have to some degree ...
 
12:54 PM
@DaveRandom "if the answer contains the word "security" anywhere, you are doing it wrong" can you give a bit more details. So if I am doing something because of "secutiry reasons" I am doing it wrong ? if so why
 
Because you don't actually secure anything
@Wes you know of any way I can tell whether an iframe is loaded in chrome? I create an empty iframe and append it to the dom. FF and friends fire the event, but chrome does not jsfiddle.net/apk8t0am
 
i dont get it .. if i want to make something "more" secure, why wouldn't I do it
 
You should
 
@Izopi4a Why don't you enlighten us, how this will secure things?
 
Wes
first attach event, then load :P
 
1:00 PM
OMFG
:D
\o/
 
i tough its a global thing. In my current case, its difficult to explain and perhaps you are right, i am jsut making my life more miserable than it should be
 
@JoeWatkins hmmm :-)
 
1:44 PM
very much lol :D
didn't see that gem before
 
Wes
2:02 PM
wonder how they ended up with 15
10/2*3 ? lol
 
Maths
 
Wes
forget intuition, just do the maths :B
 
I hate math. I just implement machine learning and tell it which result is true and let it figure it out for me.
 
evening room.
 
\o
 
2:20 PM
@JoeWatkins you have a kitty now? nevermind, it was just the angle
 
:P
 
I miss the kitten he had that slept on his cable modem
 
o/
 
@Wes "teacher" used s proportion I guess. "if it takes 10 min for 2 pieces - it's 5 mins for 1 and thus 5*3 = 15 for 3, 20 for 4 etc"
which is pretty much lol :p
 
But it should be counted in cuts not pieces. :P
 
2:29 PM
(:
 
1 cut = 10 min so, 2 cuts = 20 min
 
Wes
sherlock!
 
^ or rather, "1 piece = 0 minutes because it takes NO CUTS" :p
 
Wes
:D
 
:P
 
2:30 PM
I liked the comment regarding "our level of education" there
or stuff like this .. also a gem
 
lol
 
.. was amazed how many people actually started to scratch their heads
 
Wes
that is quite amazing though. in a physical kind of sense that is not that incorrect :B youtube.com/watch?v=kFjq8PX6F7I
 
2:47 PM
it is incorrect in any sense, math or physics Oo
you just approach area, not an arc (i.e. curve). you'll have constant length curve with a different area which is indeed approaching circle area
but that's not what defines pi
 
Wes
if you measure the circumference of anything resembling a circle at an atomic level, it will not be anywhere closer to diameter * pi
check the video i linked.
 
yeah and sadly, there's no such thing as infinity in real life :'(
 
Wes
:P
 
otherwise I can easily get ALL digits of pi in, say, 2 minutes
like it's shown here
 
Wes
!!google pi calculated up to planck length
 
2:52 PM
Search for "pi calculated up to planck length -site:w3schools.com" (https://www.google.com/search?q=pi+calculated+up+to+planck+length+-site%3Aw3schools.com&lr=lang_en)
• units - Is there any relation between the Planck… - 8 mrt. 2017 - There's no connection I know of and as the Planck Length has a dimensional value (len… (https://physics.stackexchange.com/questions/317171/is-there-any-relation-between-the-planck-length-and-the-infinite-decimals-of-pi)
• Given the Planck length, is it possible to use pi… - 16 mrt. 2016 - If we're talking physics then yes, we can use an approximation of pi to
 
Wes
disappointing results
 
...because the request makes no sense? :p
the "precision" here will depend on the length of the circumvence, which could be the one of the entire Universe - the one which we could only suppose to know relative size, but no hard evidence supporting the fact that it's even finite
 
@AlmaDo look its just like that folding paper problem. It just the more you keep cutting the smaller it gets, even to the subatomic levels and beyond etc
 
3:14 PM
@mega6382 .. or you upscale it
either way it's an infinite process which can't exist in reality
 
3:26 PM
is it just me, or Reddit has changes their "landing page" algo at some point in past couple months?
I have been getting a lot of crap from minor subreddits
 
@tereško I actually put myself on restrictions from Reddit. I'm 6 days shy of hitting 3 months from being off the site.
I just found myself wasting so much time checking for new links.
 
ah, they have added the "best" as the default landing page :(
... and what reddit thinks to be "the best" is pointless crap
 
@tereško curiously, that algo was originally written by the xkcd guy. redditblog.com/2009/10/15/reddits-new-comment-sorting-system Dunno how much of it is still the original
 
Anybody with a steam account wants to have a copy of FTL?
 
what's that?
 
3:35 PM
a good game
 
I actually have a copy on both steam and gog
 
It's fun
 
I got an extra copy because I bought into the breach
 
user379888
3:36 PM
Hi. Is PEAR PHP's Package manager?
 
My account name is "fractalesque"
 
user379888
Confused between Composer and PEAR
 
sec @FélixGagnon-Grenier. I have no idea how steam works
 
me neither. take all day
 
:)
 
3:37 PM
:)
 
Send a friend request
Can you accept?
 
@FélixGagnon-Grenier I hope you don't have any plans for the next week
 
@PeeHaa hrm... you see, I'm at work, I'll try and connect on the site to see if I can from there
 
kk
No stress :)
 
... meh screw this, how un-legit can having steeam on my work computer really look?!
 
3:39 PM
Are you working for valve?
:P
 
Your IT dept will understand. =)
 
@FélixGagnon-Grenier Also fun little game
 
@tereško well, one of the project on which I'm working is "on hold", so yeah, I have time :)
 
@FélixGagnon-Grenier you don't have an app on your phone?
 
3:40 PM
... what a good point
@PeeHaa I accepted one "*****" person invite, that you?
 
Yep
That me
 
@PeeHaa I sent you an invite too (azazul) :P
 
Done and done
 
@PeeHaa sure do
but last I heard FTL was not multiplayer
 
@Leigh Too late sorry :(
 
3:43 PM
nope, it's a singleplayer
a rogue-lite
 
Misread, "wants a copy" as "has a copy"
 
ah :)
yay
 
It worked! Thanks a bunch @PeeHaa!!
 
\o/
 
It makes me sad to see a job description for a full stack developer with a minimum of 8 years of experience..... offering 50k a year.
 
3:57 PM
$?
 
Yeah
Oh my god I misread that
Scratch that I am a bad reader
 
xD
 
I'm tired haha
Good morning PHP o/
 
\o
@Alesana So, what part did you misread?
 
It was per hour not year haha
 
4:04 PM
So, $50K/hr, now I want that job? :P
 
Haha now I am bad at understanding and explaining
 
Customize exception analysis for your needs: choose the exceptions to ignore and set the desired analysis depth level. https://blog.jetbrains.com/phpstorm/2018/04/configurable-unchecked-exceptions/
 
Anonymous
@Danack No sorry, I was asking about where to carry out validation not so much the library. Came to the conclusion that VO based properties with an isValid() method is a good approach
 
shut up, I was awake the whole time ...
 
Wes
4:44 PM
@DaveRandom do you know if xpath works well as alternative to css selectors in chrome/firefox? was wondering if i can use xpath as alternative to querySelectorAll
 
ThW
4:58 PM
@Wes yes, document.evaluate()
 
Wes
i suck with xpath
 
00:00 - 17:0017:00 - 00:00

« first day (2739 days earlier)      last day (2199 days later) »