« first day (2291 days earlier)      last day (2660 days later) » 

2:00 PM
o/ @Tiffany
 
\o
 
@NikiC @PeeHaa's mom should be explicit
3
 
@Gordon Nah, she's not that expensive. Noone would pay that much money for her.
 
@NikiC ...source?
his new RFC?
 
@Trucy Yeah, she's the other way around. Explicit but not expensive.
 
Anonymous
2:06 PM
oof
 
oooooooh
 
!!lxr call_user_function_ex
 
[ -MASTER/Zend/zend_API.h#488 ] `#define call_user_function_ex(function_table, object, function_name, retval_ptr, param_count, params, no_separation, symbol_table) `
 
^ uhm there's an extra - there that keeps bugging me every time
also morning
 
2:13 PM
also a star for your Github avatar @Ekin
(also also morning)
 
:-)
 
Anonymous
mornin ekin
 
o/
 
@NikiC can you take a look at this please when you have a moment (it really should take a moment, but I'm not sure of correct fix)
 
0
Q: Adding data uder an ID in the same table OOP php

rangerIn this design, subcategory is be represented without creating an extra subcategory table. If a "category" is a "subcategory", then it will have an ID of the "parent" category in the ParentCategoryID field (a self-referencing relationship). If there is no subcategory, then the SubCategoryID field...

 
2:18 PM
lol, I love how freecodecamp encourages asking questions in a chatroom, but it's always such a clusterfuck
 
@Leigh is it worth it finding a slack account? :)
 
cough sorry
 
testing something
 
Ah :D
 
2:19 PM
@Tiffany reminds me of a """""""""""coding school""""""""""" which only uses Slack as a mean of communication
 
evenin room
 
Anonymous
Can someone send me a link of the VIstualStudio 2015 needed to compile php on windows?
 
@samayo express version should do
 
Wes
bah. complete strangers that like messages (very) directed to other people...
@samayo i can compile without visual studio kshabazz.net/build-php-on-windows.html
you just need the compiler
 
You need vc14 though
 
Anonymous
2:33 PM
@PeeHaa I see 2 of those. VS 2015 for desktop / VS 2015 for windows 10
 
Anonymous
It says for php7, you need VS15
 
No idea
 
Anonymous
@Wes I can use that for PHP7?
 
@samayo Or 15 not sure where they are now
 
Wes
@samayo works for me
 
Now idea what you are trying to say :P
It clearly states vc14 :)
 
Anonymous
Hmm.. I know this one.
 
Anonymous
If it is confusing enough on the installing stage, its not worth it
 
Anonymous
I'll just quit and use the precompiled one
 
Why would you even try to compile on windows?
 
Wes
2:39 PM
yes, why aren't you using windows.php.net binaries?
 
Anonymous
No idea.
 
Anonymous
I suspect lack of mediation has something to do with it
 
try medication instead :P
 
Wes
do you use windows.php.net binaries @PeeHaa ?
 
yes
 
Wes
2:41 PM
can you check if releases have debug mode enabled? in phpinfo()
 
Sure. 1 sec. Althought I'm sure it isnt
I always get the non debug builds
I'm not a savage you know
 
Wes
debug pack != debug enabled
 
Hi everybody, I have a quick question about security this morning, I need your advice about how to detect if an URL is targeted from a cron job or a user ? :|
 
Wes
snaps for instance have debug enabled, wondering if releases had debug enabled too
 
@Wes wat?
mindblown
 
Wes
2:44 PM
just tell me your configure :P
 
Anonymous
@Wes doesn't php -m do the same thing?
 
Anonymous
as far as knowing which ext is available and all
 
@Wes yeah 1 sec
:)
 
Wes
@samayo no idea what that is
 
...
 
Wes
2:45 PM
i almost never use cli
 
> Debug Build no
 
Wes
the configure? :B
 
It's a 7.0.n btw
 
@Trucy It uses Gitter.
 
	cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack"
 
Wes
2:46 PM
fail
 
@Trucy Most of the questions in chat are "gief me free codez plox"
"I copied/pasted your code, it did not work," without even reading the damn assignment and trying to figure it out themselves. sigh
 
@Tiffany and that's why I tend to dislike free learning code websites and prefer to learn code by myself the good ol'way (I don't think my sentece is correct)
 
Wes
anyway it's likely that only snaps have debug enabled. took me a lot to understand what was wrong with them :B everything ran slower but not slow enough to immediately notice :B
 
@Trucy I like this site because it offers more than codecademy. Using the chat isn't a requirement.
 
Wes
brb
 
2:49 PM
it has sections on stuff that I need to improve on.
 
yay :D
Are you doing a real project or still doing exercises?
 
these are exercises mainly, but the site's goal is writing code for non-profits
there are sections where you're writing actual projects
I use exercises as a way to get my brain going, because it usually takes me a good 15-30 minutes in the morning to get my brain moving. But I have a meeting at 9, so that fucks all of that up.
 
Ever considered waking up 15-30 minutes earlier? :D
 
Anonymous
:P
 
2:55 PM
:3
 
you don't just wake up earlier :P
 
@Naruto You can! I did it!
 
I can try, but chances are slim ^^
 
@Trucy me too. once. it was horrible
 
3:14 PM
Y'all need some baguette for breakfast
 
:D
 
(actually the secret is not to slack on your phone at all)
 
one can only dream
 
I try to wake up earlier. I am not a morning person. Last Friday I woke up literally 15 minutes before I had to be at work.
I'm lucky my commute is pretty short.
I have to take an ADHD med in the morning, which is basically my coffee, but it takes an hour to start kicking in. I try to wake up an hour before work to take it, so I'm ready to go when I'm at work. That doesn't always happen.
 
user895378
@bwoebi sorry, got pretty tired early and passed out. Staying home today because I'm sick so I'll be getting it setup in the next couple of hours
 
3:26 PM
ah, okay… thought it was accidentally private or such
 
@DaveRandom @Trucy @all
@Jeeves is back to being sentient and annoying
 
user895378
I'm not totally convinced the significant event emitter and stream overhead in amp2 is worthwhile ... that kind of (slow) stuff is the reason I started amp in the first place instead of using react ...
 
err that should have triggered him... :P
damnit
 
I finally managed to upgrade desktop to 16.04
everything has changed ... I'm scared
 
user895378
I think we can accomplish something similar (i.e. backpressure) in a more performant way using generators
 
3:35 PM
@PeeHaa you need to reactivate terminator
@DaveRandom deactivated it because it was annoying
 
@DaveRandom is annoying. Maybe we should disable him
!!plugin enable terminator
 
Plugin 'terminator' is now enabled in this room
 
@Jeeves Welcome back buddy
 
@PeeHaa What is your name?
 
@Jeeves welcome.
 
3:37 PM
@Linus Good.
 
@Jeeves master would do just fine
 
@PeeHaa I am a mistress, not a master.
 
:P
 
@rdlowrey well… we have that in form of a Listener?
 
:P
 
3:37 PM
Yeeeeap he's back
 
Anonymous
@PeeHaa what was it?
 
@JayIsTooCommon cleverbot changed their endpoint
 
Anonymous
bastards
 
:P
Should probably be a nice guy and tell the upstream people about it
 
user895378
@bwoebi right but listener depends on stream which depends on emitter and the whole thing seems kind of convoluted ... and it also puts you into callback hell because you can't use the listener like a coroutine
 
3:39 PM
@Jeeves We're halfway there
 
@Trucy Livin on a prayer!
 
user895378
if the answer is a callback then I have questions about the abstraction
 
user895378
these are just concerns ... not definitive opinions ... I suspect as I work with them more I'll be fine with it ... just kind of thinking out loud
 
@rdlowrey eih… I mean while (yield $listener->advance()) $cur = $listener->getCurrent();
where's there a callback?
 
user895378
ah, I was looking at the backpressure.php example in the repo where it was using $stream->listen($callback);
 
3:42 PM
no, that's just the underlying primitive
 
user895378
@bwoebi how do I do backpressure there (I'm looking at the source and trying to understand)
 
@rdlowrey backpressure is automatic there
and gets released once you advance
 
user895378
Isn't that just choosing not to handle data, though? Does that qualify as backpressure? Consider the scenario where I'm a server and I'm using more and more memory because I can't process all the data coming in fast enough
 
user895378
How does that backpressure work with the idea of callback-based stream readability/writability consumption?
 
@rdlowrey ah, well, the Promise arrives on the Emitter side too
 
3:50 PM
Hey by the way, (is there a possibility to/can AMP) do a stack trace fixup in order to make more humane stack traces when f.e. something that you await throws an exception and you get it with a stack trace that includes the place from which you called it? AFAIK with reactors you usually get a stack trace from the reactor instead in these cases
 
user895378
(I'm legitimately trying to work through it in my head as this is the first time I'm starting to really dig into amp 2)
 
user895378
Not saying it's a bad/insufficient solution, just learning
 
@nikita2206 No, there's no way to modify the trace.
 
@rdlowrey i.e. when you emit data you call Emitter::emit() … which returns a Promise
you can e.g. disable the readwatcher, yield that promise and afterwards enable it again
 
user895378
BTW I really enjoyed getting to write amp code all weekend :)
 
user895378
3:52 PM
I see
 
user895378
I need to finish writing tests for my Amp\backoff() function as well ... I suppose I can make the PR first and add tests before merging though ...
 
@kelunik that's sad :( Do you think it would be a good idea for an extension? Might ease debugging experience a lot
 
and in Stream::listen() callbacks users may return a Promise and the all() of these Promises defines the Promise returned by Emitter::emit()
 
This CRM platform I am working with is the fucking reference implementation of how to write a terrible web application
 
user895378
ha
 
3:53 PM
@DaveRandom You are using sugarcrm?
 
@nikita2206 The most important part for debugging has been added with generators being able to get the execution line, but would be really cool.
 
No, it is somehow worse
 
oh wow
 
But also quite expensive, because we would have to store the stack for every generator on creation time I think.
 
The report building tool in particular a) makes it impossible to build reports that don't take at least 5 minutes (!) to execute, and b) uses session locking in such a way that for the duration of that 5 minutes you cannot load another page
 
3:55 PM
@kelunik that's the thing - it's already being stored in the memory, while generator is not finished. It's just hidden in the internal guts
 
user895378
@nikita2206 what @kelunik said ... when a coroutine borks you do actually get to the real source of the problem because it knows how to pull out the right information about the specific generator that failed
 
Is not fixing a bug because of backwards compatibility normal for a programming language?
 
plasma removed support for IRC
 
user895378
@nikita2206 it would be possible to do something like this (though slow and memory intensive) that you could enable in debug mode
 
@JoeWatkins seems like IRC is dying :(
 
3:57 PM
@rdlowrey can you point me to the code that pulls out this information?
 
user895378
@nikita2206 amp 1.x?
 
Is it a Jeeves thing or a github thing that @ Jeeves is replaced with @Room-11 in !!issue?
http://chat.stackoverflow.com/transcript/message/35149399#35149399
https://github.com/Room-11/Jeeves/issues/140
 
@nikita2206 Well, actually it's just for invalid yields: github.com/amphp/amp/blob/master/lib/…
 
@Sean It (the plugin) resolved github usernames
Just like !!tweet resolves twitter handles
 
Ah
 
3:58 PM
@rdlowrey anything, just wanted to know how it's done
 
who has a telegram's account?
 
@kelunik @rdlowrey thanks, now I need to understand that :D
 
user895378
@nikita2206 when the coroutine resolution code encounters an error thrown out of a generator it uses that function to generate the error. It determines from reflection whether the generator that errored is the same as the one that is currently executing.
 
user895378
(because it might be a sub-generator)
 
4:02 PM
I don't like this new place ... long live IRC ... I hate change ...
 
user895378
Once it does that it can use reflection to find out exactly which part of which generator was responsible for the error
 
user895378
But that only works if you're using coroutines
 
@rdlowrey that is well expected
 
@JoeWatkins plus IRC is maybe the best medium of communication when it comes to speaking to a lot of people who can easily join
AND
 
Thanks for explanation, will try to run this code now
 
4:03 PM
It doesn't has giphy or stupid shit!
the good ol' time where you had (at least) 30 chans opened and met the same persons on totally different networks
 
it's the only instant communication for internals ...
 
@nikita2206 Finding the real cause of something isn't that easy. I'm not even sure if recording the stack on generator creation is enough.
 
@Jeeves Should I go through the object tutorials on Javascript or focus on working with algorithms?
 
:35254833
 
Did I break him?
 
4:13 PM
@Jeeves are you broken or are you stupid?
 
:35254877
 
Anonymous
lol
 
ur mom is :35254877
@Tiffany I think that @Jeeves tend to break itself
 
:35254891
 
Anonymous
@PeeHaa That just means it's getting a response from cb but it's empty I think :P
 
4:14 PM
cb?
 
CleverBot
 
cleverbot
 
OH
 
EEH
 
ugh you broke it already?
@Jeeves are they bullying you?
 
4:15 PM
Only took like... two minutes? :P
 
:35254915
 
Goddamnit
 
oh god I have to switch tabs, or I'm going to be questioned why I'm laughing so hard
 
@Tiffany Keeping a poker face is the first profesionnal asset I had to get
My first intern mentor (?) was a good friend
We were both on IRC
And we queried stupid shit to each other
 
@Trucy Normally I'm pretty good at it, except when something is hilarious, like accidentally breaking @Jeeves.
 
user895378
4:18 PM
@NikiC it's been a while since I peaked inside `FastRoute` so maybe you can answer this more quickly than I can dig through to find out ...

Is it possible to leverage the library to route things like the following while dynamically adding and removing routes throughout the life of the script?
 
"Say Tiffany, why are you laughing like that?
— I broke a chatbot"
 
user895378
/exchange/foo/*.*
/exchange/bar/prefix.*
/topic/bat
 
@rdlowrey no
routes are statically compiled at once
 
@rdlowrey Dynamically adding / removing routes wouldn't work
 
@Trucy "are you working?" "...yes...?"
 
user895378
4:19 PM
I need someone to write a generic high-performance routing library that's not for http :)
 
user895378
that supports dynamic add/remove
 
@rdlowrey what's the use case?
 
user895378
for the stomp adapter (or any pubsub-type thing where you can use wildcards) ... because you might subscribe to lots of different paths on the same connection and need to match the received message to the right subscriber
 
user895378
I suppose I could just generate lots of hash maps for the various permutations and do basic string comparisons from there
 
user895378
no need for regex, really
 
4:22 PM
@rdlowrey I wonder … why don't you want to statically route stomp pubsub?
 
@Jeeves eyeye
 
@littlepootis Screams.
 
@Jeeves where did he come from where did he go
 
user895378
@bwoebi just because of the wildcards ... but that's easy to workaround ... was just wondering if someone had a library for this kind of thing already
 
@Trucy Where did you come from cotton eye joe.
 
4:23 PM
@rdlowrey is there any particular reason why you need dynamic routing at all there?
 
@Tiffany here, it's fixed, break it again
 
@rdlowrey I mean, with stomp, don't you just start the application and subscribe once at startup for the whole lifetime of the running process?
 
user895378
@bwoebi you could, but you don't have to
 
oh, I think I see…
e.g. subscribing on paths affecting your WS connected clients
 
user895378
right
 
4:29 PM
home time!
 
@Jeeves Should I go through the object tutorials on Javascript or focus on working with algorithms?
 
@Tiffany Looks like 67 letters.
 
@Jeeves :(
 
@Tiffany Ah, Jeeves. Like a butler.
 
!!should @Jeeves be even more instructive or continue it's excellent work?
 
4:33 PM
@⁠Jeeves should be even more instructive.
@FélixGagnon-Grenier eats even more cake.
 
ah
!!should I go through the object tutorials on Javascript or focus on working with algorithms?
 
You should go through the object tutorials on Javascript.
 
Hello, everyone! I have simply question: if I force delete sess_[somehash] file will I unlogin or not? Or it depends from app?
 
Depends on the server config
It should log you out in a sane system
 
Hi guys, is this a goos way to select rows which includes these 3 words ?

SELECT shareit,id FROM shares where acan='".$nick."' and shareit REGEXP 'castexsharehaha|ytlinkcastex|imglinkcastex' ORDER BY id DESC limit 30
 
4:35 PM
@Jeeves are you making sense yet ?
 
@JoeWatkins I am making sense but, you are not making sense.
 
user895378
@bwoebi Oh, I'm a dummy. I just realized any message received over stomp for a subscription includes the subscription ID in its headers ... I don't need routing ... I can just use a hash map directly to match the subscription ID to the relevant consuming code
 
@Jeeves gobby shitbag
2
 
@JoeWatkins You are a robot. Like R2D2 in Star Wars.
 
@rdlowrey oookay ^^
 
4:36 PM
Ok, somebody know symfony fosuserbundle?
 
@Nikita_kharkov_ua you?
 
@JoeWatkins this should be @PeeHaa's bio
 
Anonymous
gobby drunk shitbag
 
Gee thanks all
 
any time (y)
 
Anonymous
4:42 PM
@PeeHaa i meant the nice kind of shitbag
 
like a colostomy bag rather than the ones you pick up dog turd with
 
:D
 
Anonymous
lol
 
@JoeWatkins What was wrong with the pthreads patch for fixing the anon classes issues?
 
It didn't working.
I am in a super sarcastic/unhelpful mood. Currently best avoided. Thanks/sorry in advance.
 
4:47 PM
I know it in user usage. So the question is where the forUserBundle stores the data? Sometimes I have to force delete all session's data
 
user6275623
Is it possible to use a variable as column name in an mysqli query? I have an array of key value pairs and am trying to update a table with a mysqli query. Can I use a foreach loop to SET column names as array keys and SET column data as array key values? Eg. foreach ($array as $key => $value) {$query = "UPDATE $tablename SET $key=$value WHERE id=$tableid }; Can't find an answer to this in any of the answered questions on stackoverflow.
 
@tpunt it was super early, and I didn't think it through ... I'll come back to it ...
 
5:02 PM
HEY
ubuntu upgrader changed permissions on my private key
why would it do that ?
 
spite?
 
possibly, but I don't know what I done to upset it in that case ... I've been a perfectly loyal user for years ...
 
@IgnatOspadov Technically yes because you are just generating a string, and that string will be passed in fully formed. Two very important questions, though: 1) does $tableid change in this context? If not, you should combine all these updates into a single query, and (2) Have you looked into parameterized queries? These will be very important in protecting yourself from SQLi attacks.
 
It was definitely that which did it, rather than something else you had previously not noticeD?
 
@IgnatOspadov If the column names ($key in your code) can/do come from user input, you will also need to escape them to keep your queries safe. Same for $tablename, and you should definitely also use query parameterization for $tableid as well.
 
5:05 PM
@DaveRandom I use it 500 times a day ... ssh agent will warn when permissions are wrong, it definitely changed it ... or one of the processes it executed changed it
 
what did it do, widen the permissions?
 
yeah
it's meant to be 600, only readable by owner
 
Or... maybe ssh was set to not warn for some reason, and the updater fixed that?
 
I'm unsure if you can even disable it, and I would never have done that ...
it doesn't just warn, it stops the key from being used
 
@rdlowrey Ha!
 
user6275623
5:08 PM
@Dereleased Thanks for answering! $tableid does not change. I am not concerned right now with sqli attacks as the query is coming from an authenticated user. I will format the data once I get the actual query working first. I have not heard of parameterized queries, can you explain or link to resource?
 
@IgnatOspadov Authenticated users can often do the most damage.
 
Hi guys, is this a good way to select rows which includes these 3 words ?

SELECT shareit,id FROM shares where acan='".$nick."' and shareit REGEXP 'castexsharehaha|ytlinkcastex|imglinkcastex' ORDER BY id DESC limit 30
 
Please take the extra time to learn to do parameterized queries.
 
user6275623
@Dereleased Thanks!
 
5:12 PM
Also don't trust authenticated users either =)
Assume literally everyone using your app will be trying to break it
To that end, it's better to do the security parts first/as you go, so you don't have to go back and add it in later -- that's how stuff gets missed, and that's how vulnerabilities get into what might otherwise be a secure app
God, remember when there were more words than just app?
 
@JoeWatkins of course there is
 
5:32 PM
I would like to change stream_wrapper_register function so it would be possible to register protocol streamWrapper with valid scheme regarding to RFC 3986 where net_path requires // after : and other protocols hasn't got such require, so it would be possible to register protocol for valid uri's like test:../some/path
And I've got a question, there is $flags argument of this function
It can take STREAM_IS_URL const but I think it's checked only for allow_url_open ini directive
Introducing such change would require an additional flag or argument
Which would require an RFC then or not?
And which would be better, flag or additional argument ?
And another question would it be acceptable to introduce another feature where all internal stream wrappers would be valid classes so then would be possible to extend one and then register streamWrapper?
 
it's probably going to require an RFC whatever, and I would say better to reuse flags, which means changing user space stream wrappers ... looks doable though
 
Most filesystem wrappers could be basically extended from for eg. LocalFilesystemStreamWrapper to wrap only for eg. path resolution - that would speed up any fly system or other like that because they would internally use native functions if not extended?
@JoeWatkins how about LocalFilesystemStreamWrapper, PharStreamWrapper etc. which can be extended and then used to register own protocol? Is it a good idea?
 
making classes from internal wrappers sounds like a good idea, but I'm very unfamiliar with streams, I don't know if it's actually a good idea ...
it's one of those things you should bring up, and someone who knows will shoot it down, or agree that it's a good idea ...
also, internal wrappers look very very different to userland wrappers
 
There is for eg. SessionHandler which is internal class and can be extended it's kinda similar idea
@JoeWatkins Yes I've found that struct and it could be wired with class I think
 
5:49 PM
@rdlowrey I really appreciate the use-statements not using group-use statements.
 
user895378
@kelunik yeah I don't like group use ... I thought it would be nice but turns out it just makes things more difficult for me to read
 
@rdlowrey Same here, but @bwoebi uses it all the time...
 
user895378
Any idea why I can't make this build succeed?
 
user895378
been awhile since I played with travis just because we use circle at work
 
@rdlowrey Does PHPunit 5.0 even support all these funcs?
 
user895378
6:00 PM
shouldn't it be pulling in the latest 5.x tag though?
 
user895378
(confession: I don't know)
 
you use deps=lowest, but with deps=highest the issue is there too
@rdlowrey oh, no phpunit.xml.dist
 
user895378
?
 
@rdlowrey the file is missing?
perhaps you forgot to git add it or such?
 
6:34 PM
Busy week planned with a heavy focus on jobs and national security. Top executives coming in at 9:00 A.M. to talk manufacturing in America.
 
Anonymous
6:44 PM
@JoeWatkins watching now.. should be interesting
 
@JoeWatkins I know little of this specific action, but it does seem somewhat consistent with his financial plan: focus on America. Why fund overseas agencies of any kind? And if you are going to cut orgs why not cut orgs the specific person doesn't like?
 
read about it @Levi
> And if you are going to cut orgs why not cut orgs the specific person doesn't like?
an unbelievable thing to say
 
Hey, it's not what I would do. I'm just saying it is pretty consistent with what he's said he plans to focus on.
 
user895378
I don't necessary like it but it's kind of a brilliant political move. He's making his conservative base happy ("omg we hate abortion") even though the real motive is financial i.e. spending cuts.
 
spending cuts ?
 
user895378
6:58 PM
not sending foreign aid is a spending cut, no?
 
user895378
the act of redistributing it domestically doesn't change that
 
Army $244.9 billion
Marine Corps $40.6 billion
Navy $379.8 billion
Air Force $170.6 billion
Defense Intelligence $80.1 billion
Defense Wide Joint Activities $118.7 billion
saving here, roughly half a billion dollars ...
this has nothing whatever to do with spending cuts ...
 
user895378
it has to do with spending cuts to allow other spending
 
The military is also a major job provider. I bet the military is one of the largest employers of programmers in the nation, actually.
 
user895378
(not in favor of it, just saying)
 
user895378
6:59 PM
I'm as anti-Trump as they come, just trying to rationally evaluate the decision-making.
 

« first day (2291 days earlier)      last day (2660 days later) »