« first day (2354 days earlier)      last day (2597 days later) » 

11:00 AM
@Mjh you should totally start a thread about it on Meta. This badmouthing of PHP by these modraters cannot got undiscussed! — Gordon 12 secs ago
 
@Gordon Gods no
Poor guy would humiliate himself 😬
He might actually do it...
 
that's some top level trolling
 
@MadaraUchiha hey, you didnt have anyone complain about you on MSO yet or did you? You know you are not a real mod unless someone complained about you on MSO. So get real ;)
 
@Gordon I did
Second most downvoted post on meta :D
 
 
11:02 AM
That's why I'm afraid for him
 
Cc @DaveRandom ^ my life is so much harder
 
@Ekin is that @PeeHaa's place? it looks dutch.
 
Hotel... and does it really look dutch? :p
 
@PeeHaa where are you?
 
Izmir
 
11:04 AM
@PeeHaa sure, you appear to be just one leg
 
@PeeHaa totally
 
-174
Q: Request for community attention on a moderator's behavior

NoobleIt has come to a handful of people's attention that at least some of the newly elected moderators might not be exactly up to challenge. Here's a message that very clearly demonstrates this incompetence, that was a result of a particular argument that appeared in one of the SO chatrooms: Madar...

 
@Gordon no, not enough empty rizla packets
 
:D
 
@MadaraUchiha bwahahahahaa. you froze the Lounge, too? BWAHAHAHAHAHA
 
11:05 AM
@Gordon Yup
It was a fun day
It was like, 3 days after I was elected
 
this is hilarious
 
It is :D
They're trolling and to no end trying to get on my nerves, and I'm just sitting there laughing
 
I am offended that the entire thread doesn't mention me
 
@Gordon Should it?
It was after you retired
 
sure, but I would think they kept me in "good memory" :)
 
11:09 AM
fuck bag is going to be my new insult ...
 
@JoeWatkins I like ass cactus better
 
@Gordon What did you do to them?
 
Anonymous
@JoeWatkins I still like pickle tickler.
 
Yeah @Gordon, What did you do to them?
@JayIsTooCommon lol
Swears used to be so creative
Thanks @DaveRandom
Only bro here who has my back
 
@NikiC lol … looks like beginners trying to understand inherited code
 
11:24 AM
@NikiC lol
 
@NikiC LGTM. Also, I agree, use jmptable for >= 2 strings and >= 4 ints.
 
I don't want to do code reviews anymore :(
/**
 * @throws UnderflowException
 */
public function authenticate()
 
HUH?
 
Anonymous
@MadaraUchiha @DaveRandom suck up
 
btw, guts, does PDO's lastInsertId() make a request to database?
 
11:27 AM
@tereško no
@tereško At the very least mysql sends the last insert id back within the OK packet reply to the insert query itself.
 
> int<lenenc> last_insert_id last insert-id
 
so, basically, I should use a transaction, every time I need to insert an entry and then update the entity with it's given id
@Leigh lemme guess, it also has superglobals :D
 
It has a service locator
 
and functions that may have - (2^63)-1 valid return values, by the looks of things ...
-2 would raise the underflow, obviously :D
 
PGSQL also sends the insert id back in it's CommandComplete message - postgresql.org/docs/9.3/static/protocol-message-formats.html (scroll down to CommandComplete)
 
11:41 AM
@tereško driver (or, more specifically, RDBMS network protocol) specific
e.g. TDS doesn't include the ID in the response message, you have query the server for it
postgres and mysql both return in it the response message
dunno about anything else
actually I think a new-ish version of the TDS protocol added an extension to return it directly, not sure if PHP implements that or not
 
Tabular (Extended Return) Data Stream
 
Yup, terds is a pretty good description of it.
Or you good go with Tabular (Augmented Return) Data Stream which would be a pretty good description of the designers
That protocol is specified in like 50 documents, each one the size of RFC2616
 
@Wes I can't see anything except the parrot-fish-walrus
 
@tereško as other said, no, there isn't any new request to database.
 
Are using globals at some point okay?
What are your opinions about that?>
 
11:51 AM
@MikeM. Short answer: No.
Long answer: It depends
 
hi
any 1 can help me
i am starting new project previously left by my developer
 
@falak Then how it's new project ? :D
 
for me its new
:)
 
@MikeM. no
 
For E.G I have an temporary loop function that requires files from an array, (thus $load = function load($arr) {.......... LOOP ......... REQUIRE ......... END LOOP };

then these files contain variables and configurations for these variables / objects (thus each loading of their object using a configuration file, will be put in it's own file so the configurations are clear to anyone opening the project.
and not a mixup of object loading with their respective configurations.

However these variables for e.g db is limited to the function scope (as the require is set in the function)
It's a weird mark-up I agree
 
12:00 PM
> At this point I could choose to use a custom build class assigned for variables and lookups
aka a Registry which is basically the same as using Globals
 
indeed but then with lookup functions like "startsWith" "endsWith" and a few other funcs
The class is there already btw.
 
all static I assume
 
The registery is indeed a static.
couldn't get on the word, thanks btw
 
yeah, so the only two benefits you get are that you can put lookup methods into it and that you have the values at least somewhat scoped (every scope smaller than global is better), so they cannot clash with vendor globals. But since it's all static all your consuming code will depend on the registry and depending on your application it can still get messy and be subject to spooky action at a distance. the prettier solution is to keep vars scoped to where they are used.
 
I understand, but the var in this case for E.G is sort of auto loading files which loads and configurates a classes and these classes are global classes are for E.G databases, template parser, language/configuration file readers (both contain a self made mark-up to the desires of how they would like to write their language and configuration files)
as the load variable which contains the loop and require to load these files (through a method) will be destroyed, and thus destroys all the variables scoped with that function.
 
12:17 PM
So it's a ServiceLocator?
 
!!canon list
 
The following canonicals are currently supported:
• class → https://stackoverflow.com/q/2206387
• classes → https://stackoverflow.com/q/2206387
• errors → https://stackoverflow.com/q/845021
• globals → https://stackoverflow.com/q/5166087
• headers → https://stackoverflow.com/q/8028957
• html → https://stackoverflow.com/q/3577641
• json → https://stackoverflow.com/q/29308898
• mysql → https://stackoverflow.com/q/12859942
• operators → https://stackoverflow.com/q/3737139
• parse-html → https://stackoverflow.com/q/3577641
 
Hmm, no SL canon
 
@MikeM. just call it "facade" and you will be set
 
lol
 
12:25 PM
69
A: If Singletons are bad then why is a Service Container good?

GordonService Locator is just the lesser of two evils so to say. The "lesser" boiling down to these four differences (at least I can't think of any others right now): Single Responsibility Principle Service Container does not violate Single Responsibility Principle like Singleton does. Singletons mix...

not necessarily canon material but maybe a good starting point
 
pastebin.com/epWdEhbU <- tried to explain it a bit beter using pastebin.
 
12:57 PM
@JoeWatkins is APCu process scoped (I assume)? If so, with fpm is it scoped to the child or the parent?
 
the parent and children share the same cache, if those children are forks of the parent (not unique processes)
 
cool, ta
 
Why does the developer story not have anchor points for each section >_>
E.g. recommended reading
Oh I'm dumb it does
 
1:15 PM
@Trowski I think we should rename Listener to StreamIterator
And I think Iterator shouldn't have getResult, but if it has getResult, it should probably also have drain?
Also, should we auto-wrap generators for LazyPromise?
 
1:32 PM
@FélixGagnon-Grenier I have found a guy who collects exceptionally rich sources of concentrated stupid: youtube.com/watch?v=AylF03lg-ss
 
Anonymous
is there any way of keeping find in path window open after opening a file in stormy?
 
@JayIsTooCommon it does that by default?
 
the entire channel is filled with crazy, but that one video should be somewhat gentle introduction
 
Anonymous
@PeeHaa :/ mine closes and removes my search
 
I think
Wat
 
1:34 PM
proceed at your own discretion
 
Can you click the tiny expand button?
 
Anonymous
where's that?
 
S/button/icon
Right bottom iirc
 
Anonymous
:s
 
Not sure. Don't have pc in front of me now and about to pick up drinking again
 
Anonymous
1:36 PM
lol, enjoy :P
 
Surely that would help me remember
 
Anonymous
9 x 10 inline block notes make code less readable.
 
I'm working through some algorithm challenges. Is it bad that I'm having to google for the answers because I don't know how to approach the problem? The answers I find aren't just "here's the code" but they break the solution down, explaining how and why something's done.
I feel bad, but I don't know how else I'll learn. :/
 
Anonymous
I don't understand why you would feel bad for Googling something in order to learn
 
@JayIsTooCommon Guessing you double click files in the "live" list?
If you hit the search button, it puts the results in a new pane
 
1:50 PM
@JayIsTooCommon I feel like I should be able to figure these out myself.
 
Actually I think they renamed it to "Open in Find Window"
 
Anonymous
@Leigh oh you beautiful man. Thank you
 
I think PH was trying to explain the same thing tbh :p
@Tiffany If you don't know, you don't know. Have a stab at it first, and if you don't make progress look it up. You don't want to drive yourself to the point of frustration because that will make you more likely to give up.
 
Anonymous
@Tiffany Well you can't figure it out for yourself so there's no point in feeling bad about it, as long as you're trying to learn you're doing all you can :)
 
You could also come back to the challenges another day, and try and do it again without looking it up
(after having looked it up the first time)
 
1:53 PM
@Leigh I think I might do this. Only way to know if I've retained the info.
 
Anonymous
That's how I used to study for tests.. If I have to look up just one answer, look it up and start the whole test again, repeat
 
Wew lad, systems went down for 2 minutes
 
I was one of those people that didn't have ot study much for tests, EXCEPT calculus tests.
 
Turns out the system spiked in cpu usage, traced it to a particular method, opened up the code
First thing I see: while (1) {
 
:D
 
there were way too many things, I didnt agree on that video
 
like?
 
Cruelty to cats
 
why? we had: 1 + 0 cats before and 0 + 1 cats after
 
2:34 PM
the person on the moon should just take the fucking cat with them
 
@AlmaDo I will re-watch it at home and then answer you
 
@kelunik There needs to be some way to get the result of the Stream, so I'd like to keep that. drain I'm not sure about… I left it out because Message doesn't have that method, as it would always throw or return an empty array. The method is a little weird IMO.
 
Then let's remove drain completely?
 
@kelunik Rename is fine if you think that's better for clarity.
@kelunik Fine by me.
 
hello
 
2:41 PM
@kelunik Should I merge github.com/amphp/amp/commit/… into master?
 
@Trowski Well, it's again the "Should a Stream extend Promise" discussion.
@Trowski Looks fine, yes.
 
@kelunik What's the best way to indicate a stream has ended then?
I don't necessarily disagree, but that question needs a good answer then.
 
@Trowski onComplete / onEnd, but without a value.
 
@kelunik Would onComplete callbacks have the same signature as onResolve callbacks?
 
But we can just use Rx then.
 
2:45 PM
No, I prefer our simpler abstraction for things like Aerys.
 
@Trowski Emitted values have two properties (or three)
->value, ->done (and optionally, ->error)
 
@Trowski Why does that behavior in #84 ever show up? It's two different loop instances, no?
 
That's how Rx does it, anyway, if I remember correctly.
 
@bwoebi No, same instance.
 
@bwoebi No, Loop::run always uses the same instance.
 
2:47 PM
@Trowski uh … what?
 
@MadaraUchiha Rx has 3 callbacks defined on an observable, on-emit, on-complete, and on-error.
@bwoebi run has always been able to be recursively called.
 
@kelunik I thought that was the suboptimal amp v1 behavior?!
 
user3956566
@Machavity wow I've entered the twilight zone :D
 
@bwoebi v1 doesn't allow recursive runs. @Trowski
 
@Trowski … isn't run() just another name for execute() from async-interop?
 
2:48 PM
No. execute doesn't exist any longer.
 
@YvetteColomb shhh they can hear you in here :P
 
@bwoebi It's always been Driver::run, even in async-interop.
As far as I'm aware, run was always able to be recursive.
 
@Trowski uh … that typically is an accident though?
 
user3956566
@Machavity lol but I'm a .net developer, they can't understand what I'm saying.
 
@Trowski yeah, Driver, because nobody directly interacts with it!?
 
2:49 PM
@bwoebi wait can make it happen, and a shutdown function might (if it doesn't replace the loop).
 
@bwoebi Otherwise there will be issues with shutdown functions?
 
well, that should be then a dedicated API … like continue() or such
I do not like allowing the general run() API (aka start the loop) being called twice
 
We always had it that way, also with Loop::execute.
 
@kelunik with execute you had to explicitly pass the Loop::get() as second parameter
 
I'm fine with adding Loop::potentiallyRunRecursive().
 
2:52 PM
you don't do that accidentally
 
@bwoebi You do that with every wait.
 
Actually there's little reason to run a loop recursively.
Why call wait in a running loop though?
 
@kelunik you do not run wait() within an already running loop
 
@Trowski It's 99% a mistake.
 
We should just forbid it then.
 
2:53 PM
@kelunik 100%.
 
@bwoebi Nope, 99%. If Aerys wouldn't allow config files to return a promise for example.
 
@kelunik that's why it does allow for that.
 
How was that done in v1 then?
Run the loop when loading the config file, then stop it, then start Aerys.
 
@Trowski in v1 you got a logicexception in Aerys … [oh, you aren't talking abou shutdown]
 
@bwoebi It does now, yes. But it's still not documented and other places might not allow things like that.
 
2:55 PM
Morning.
 
Partially uploaded files are not deleted – #74318
 
@bwoebi @Trowski We should just fix PHP to expose whether it's currently in shutdown or not.
 
@kelunik because essentially you can just use classical blocking ops in startup…
 
@bwoebi Just like you can in shutdown functions.
You don't want to write an API twice.
 
Both of those are good points… just block during those times.
 
2:57 PM
@kelunik sure, but you want to continue the loop…
 
Shutdown functions usually make their own loop, correct?
 
not necessarily (that's the issue)
 
I think shutdown functions should always use their own loop.
 
I need help naming a variable, it's essentially a boolean, it'll be used in a loop and conditional and will be set true or false. There's a word I usually use for this type of variable, but it's not coming to me.
 
Solves the problem.
 
2:59 PM
So, how do you then properly cleanup?!
 
What do you want to clean up?
 
sending close frames, 503 unavailble answers etc.
 
I think that shouldn't happen within a shutdown function.
Provide a dedicated shutdown API.
Or use another loop to send those, which is also fine?
 
@kelunik I cannot choose when my app ecounters a fatal…
@kelunik uh, but handlers are all attached to the other loop… uh, that's going to be too complex
 
@bwoebi Which fatals execute shutdown functions?
 
3:03 PM
nearly all.
 
Hmm... even OOM runs it.
 
right.
 
Just leave it as is then (with that commit merged)?
 
I guess, yes.
 
@bwoebi @kelunik How about the issue of Stream implementing Promise. IMO, it's a little weird and may be better if it didn't.
I've never used the final value of a stream for anything actually useful.
 
3:15 PM
@Trowski You do not use the value of a bunch of Promises for anything useful, except knowing that it succeeded at all
 
@bwoebi What?
All the streams in Amp right now resolve either with null, or some value obtainable in another way (like the total row count in a query result in the postgres lib).
 
TBH the total row count does not need to be obtainable in another way
@Trowski also why does it matter whether the value is actually used or not?
 
Really the issue with streams implementing promise is that you cannot fulfill a promise with a stream.
That's the core problem.
 
why would you?
 
@bwoebi The important point is that a Stream is not a Promise. It's not a placeholder for the result of one operation.
 
3:19 PM
@Trowski just return the Stream directly.
 
@bwoebi Then you have to create the stream directly.
Also, you almost never want to yield streams.
 
@kelunik which is totally fine?
 
@bwoebi Sometimes, yes.
 
@bwoebi Hmm… thought I ran into an issue with that, but maybe I was just doing it wrong :-D
 
The issue is that our Streams are actual Streams now, not progress-emitting promises.
 
3:21 PM
@kelunik it depends on what you do with it. You do not have to consume the value / act upon an eventual exception/whatever
@kelunik There's no reason to distinguish there
 
@bwoebi There is. A stream is always focused on the emitted things. A promise is always focused on the eventual result.
 
However with the current impl. they can be used both ways.
 
@kelunik That's just wording, inherently it's completely interchangeable.
 
Literally the only case where we use promises + streams as one thing is in Artax.
 
@kelunik We do in general not use Streams much. And obviously, not every stream can have meaningful end values.
But still, the failure (exception) value is used more often
Just like many promises also return null, but may sometimes throw an exception
 
3:29 PM
Evenings o/
 
Ugh… I can logically argue this both ways… so therefore I have no idea which is the correct way.
 
@Trowski Same here.
 
If both ways are correct, I like to choose the simplest way giving the most possibilities.
 
I do like the way streams are used in Artax and Postgres, so we should probably leave them as is. Gives more of a separation from Rx anyway.
 
right
 
3:44 PM
how do you add tags to a room in SO Chat...?
 
room tags, I mean..
 
[ tag : blahblah ] without spaces
 
:P
 
Oh yeah without symbols
 
3:47 PM
@Saitama room info > edit > tags
 
yup got it ^ ^ thanks!
 
I hate Laravel
 
welcome to the club
 
@Trowski The only thing that bugs me is Iterator being more than an iterator.
But hey, Generator has getReturn as well. :P
 
flagged as offensive
 
3:56 PM
mrnn
 
@tereško marked as invalid.
That was sarcasm, isn't that obvious?
 
> You have already voted, but the voting has been cleared by a moderator
:-(
 
@bwoebi not to the 14 year olds who stumble in this chat room
 
i am just joking sorry...
 
What was flagged?
 
3:58 PM
Please only use spam/offensive flags for things that actually violate the site policy.
 
@NathanOliver I found it to be deeply offensive
 
@tereško Someone loving laravel offends you?
 
Sep 27 '16 at 9:35, by PeeHaa
Please don't flag stuff that hurt your feels. Just grow a pair m/f. Or notify one of the room owners. All 10k+ users in all rooms thank you.
 
@tereško please calm down i am just joking sorry if it really hurts you..
 
@Linus I already told you - I flagged it because the fucking newbies, that stumble in this chat room, will not know the context
especially since some people thought it was fitting to be stared
 
4:02 PM
Thats not a flag reason. That is something you ask a RO to move to trash if you feel it adds nothing to the room. Please only use the flags for things that a really spam or really offensive.
 
and since I am not a RO and can't do anything about it, what should I do then, oh wise one
 
@tereško ask a RO.
 
@tereško See the quote above.
 
4:03 PM
@kelunik you probably missed the context of that quote
 
@MadaraUchiha please can you remove this ?chat.stackoverflow.com/transcript/message/36332066#36332066
 
@kelunik it was written in response to someone flagging chat.stackoverflow.com/transcript/11?m=33112403#33112403
 
@tereško The context doesn't matter. The second half of the quote matters.
A flag notifies all 10k users in chat.
 
and .. so .. what?
get of your high horse, the air seems to be a bit thin up there
 
@tereško well, nobody outside this room will ever take offense, it's just pointless^^
 
4:08 PM
 
@bwoebi hence why the flag would have been dismissed instantly
 
@tereško exactly… and why would you pointlessly flag things?
 
when people bitch about the noise flags cause, this is what they're talking about
 
@kelunik Right, Iterator is like an async generator without send and throw. Producer is essentially an async generator with send and throw controlled by the coroutine.
 
4:40 PM
@bwoebi @kelunik Should generators as onEmit callbacks be run as a coroutine?
onResolve and onEmit are the only places where that doesn't happen.
 
@Trowski I'm not opposed.
 
How about onResolve?
That one is weird because it's a circular dependency.
 
@Trowski But it only happens if we return a Generator
 
@bwoebi Right. The purist in me would have a fit over it, but from a practical standpoint it makes sense.
 
Makes sense for consistency reasons.
 
5:04 PM
Anyone know what the PHP request is for logging into StackOverflow?
 
Why do you want to do that? There's an API.
 
Is there?
 
!!? stackexchange api
 
Search for "stackexchange api" (https://www.google.com/search?q=stackexchange+api&lr=lang_en)
• Stack Exchange API - Stack Exchange API. Currently; v2.2 … API V2.2 Released · API V2.1 Released · Deprecating The V1.x… (https://api.stackexchange.com/)
• Stack Exchange API | ProgrammableWeb - Stack Exchange builds libraries of high-quality questions and answers focused on the most important… (https://www.programmableweb.com/api/stack-exchange)
• support - API "Hello World" code - Stack Apps - The Stack Exchange API is based on HTTP and URLs, just like the web page you're browsing now. Excep… (
 
@kelunik @bwoebi Should there be a Loop::error(\Throwable $e) method that forwards an exception to the loop error handler, so we don't have to use a defer to rethrow the exception?
 
5:09 PM
I'd probably use Loop::panic.
 
does PHP read the entire page and then execute functions
or does it go top to bottom
the server I mean
 
@kelunik A panic sounds like something uncatchable
 
!!> foo(); function foo() { print "Hello"; }
 
^ @Hello That should answer your question.
 
5:11 PM
ArgumentCountError error not included – #74319
 
5:22 PM
@kelunik I agree with @bwoebi, panic sounds uncatchable.
 
@Trowski what's the problem with the defer?
 
@bwoebi More verbose. Loop has to be running (generally not an issue though).
The defer delays handling the error until the next tick. That could have side-effects.
 
@kelunik huh :(
 
lol
 
@Trowski well, I'd then vote for invoking all exceptions at the same time at the end of the tick
 
Anonymous
5:42 PM
Think I'm about done with LinkedIn i.stack.imgur.com/9U7X9.png
 
what took you so long? linkedin has pretty much always been horrible
 
Some fun for 10k+ people
 
@bwoebi Those submitted through Loop::error you mean? Because it's the watcher causing the delay.
I think immediately invoking the error handler is fine.
 
Anonymous
Aye, it seems that every PHP group on there is just full of these genius artisans
 
Anonymous
@Machavity that's repophobic
 
Anonymous
5:47 PM
At least screenshot
 
@JayIsTooCommon That's pretty typical of any PHP group.
 
Anonymous
@Trowski it's disheartening
 
> I have heard my friend talking about javascript. All I was hearing is javascript...javascript...javascript. I am very curious to know what javascript is. I guess it is a movie, but I am asking here to make sure. Thanks in advance.
 
Anonymous
Haha, thanks :p
 
Anonymous
Almost kissed you there :/
 
5:50 PM
@JayIsTooCommon It's ok. We know your lips are only for Daniel
 
@Machavity it's just a troll, probably this guy again
 
Can a user see the values of the parameters sent via POST from my PHP code ?
 
@JennaSloan Considering their client sent it, they can see anything you have them POST
 
6:11 PM
unless your are sending post data in PHP, since it is server side...
/s/your/you're
 
I'm trying to figure out how to do this: api.stackexchange.com/docs/authentication
 
evenin
 
@Trowski hm. yeah.
 
oAuth is a standard web service or REST authentication process.. if you are not familiar with making such calls, I assume someone has written some online tutorial etc for you learn how to make REST API calls and how oAuth works..
basicly after the client confirms the requests by the application, the remote side will deliver a payload of data, being an access token, and some times a refresh token (not sure about stackexchanges oAuth API).. you will use this access token to make calls on behalf of this client.
 
@corey not really.
I oAuth is more like an approach for providing authorization
 
6:35 PM
@corey OAuth is a standard to provide authorization to third parties.
 
6:48 PM
@tereško @kelunik that is what I was trying to say, guess I did not describe my point clearly enough.
"you will use this access token to make calsl on behalf of the client" meant third parties..
 
Should I be using a variable to store an unchanging value?
Or one of those constant things?
 
oAuth seems to be pretty standards these days for rest web services user authentication. I've used it with box, dropbox, google cloud, aws, box, all google services etc..
even smaller internet services..
jenna depends on what this value is. Would the value be something that would be used application / system wide ?
 
guys what is the best place for declaring functions, is it before or after script, or it doesnt matter?
 
Wes
lol, samsung sent a software update that will brick every note 7 in the world, because of the exploding batteries
 

« first day (2354 days earlier)      last day (2597 days later) »