« first day (2217 days earlier)      last day (2744 days later) » 

11:01 AM
@HamZa In retrospect simply using uuids for posts would be a better solution
 
@HamZa can an answer have multiple questions?
not sure why you're not using a simple fk there...
 
@FlorianMargaine Have you never seen Jeopardy?
 
Happy birthday @Leigh!! You cock!
 
@FlorianMargaine tricky, as how SO does it. No they don't.
 
lol
 
11:03 AM
@Jimbo this?
 
:P
 
@Gordon Oops, I definitely meant "rock", I'll just have to leave that there now...
^ PS this isn't true
 
@HamZa E_ENGLISH_PARSE_ERROR
 
!!urban cuck
 
[ Cuck ] Another name for the great "Onision" leader of the cuckolds. In the cuck fashion, Onision is a liberal feminazi vegetarian only he has millions of followers from all around the world. All bow before the cuck king, Onision, lots of the cuckold empire.
 
11:05 AM
lol
 
!!giphy cuck
 
Wes
@HamZa consultations, perhaps. i try to use names that represent the relationship between the tables, because otherwise you end up with almost infinitely long names
 
1 message moved to Orphan GIFs
 
Not sure if I should get an arch on the new laptop or again a mint or something else ugh
 
!!should @Ekin get Windows or something else?
 
11:06 AM
@⁠Ekin should get Windows.
 
@Ekin try arch, if it fails, try mint, if it fails install windows and cry while browsing your steam library
 
I'm used to mint but not sure now
 
@FlorianMargaine my bad. Let me reformulate: it's a tricky question. If we look how StackExchange seems to implement it. Then no, an answer may not have several questions. As such, I might just us a simple fk like you suggested.
 
Jeeves should automatically move a gif (from !!giphy) to orphan gifs after 2 minutes
 
@Ekin there you go. it's decided.
 
11:06 AM
@Wes exactly, thanks for the insight.
 
(sorry for triple)
 
lol I have a win7 installation already on another laptop
Where I play games only
This one will be the main now
 
the point still stands
 
Aye, will give it a go then
 
You should use Windows because it is Great And Does All The Things
It does most of them badly, but it still technically does them
 
11:08 AM
you might want to check which OS is acceptable to use since you moved countries
 
:D
I rather not let the country I'm in influence that as well
 
Just don't ask @Jimbo, he loves downloading Ubuntu torrents over and over
 
ahaha
 
>:)
 
11:10 AM
@Ekin btw, are you back in Uruguay or was the move permanent?
 
Nay, I have a win7 and a mint already. This one as of now has a win 10 an ubuntu which I'm about to change
 
!!google meme forbidden law
 
Search for "meme forbidden law" (https://www.google.com/search?q=meme+forbidden+law&lr=lang_en)
• Russia's (non) war on memes? - BBC News - BBC.com - 16 apr. 2015 - Russia's tightening of the law on internet freedom is not as clear cut as it seems. (http://www.bbc.com/news/blogs-trending-32302645)
• Russia just made a ton of Internet memes illegal… - 10 apr. 2015 - Those laws now ban, per Roskomnadzor's announcement, memes that picture public figur… (https://www.washingtonpost.com/news/the-intersect/wp/2015/04/10/russia-just-made-a-ton-of-internet-memes-illegal/)
 
@tereško serps for your hating pleasure
 
@Gordon oh, I know about the russian thing ... the difference is that I see Russia as being a dictatorship
 
11:13 AM
@tereško semi-permanent. I found a similar house here in the west coast of the country and I will be here until I sot the hiring and visa stuff etc. I probably won't return to south america in the upcoming 1-2 years.
s/sot/sort
 
that kinda sucks
 
It does. But I might be in NL or FL for the next few years which is a bit exciting.
 
FL?
 
I have until xmas to decide where to go
Florida :/
The job is exciting so I am trying not to think about the rest for now
 
11:16 AM
are you in retirement age or do you have a special liking for gators and swamps?
 
or both
it could be both
 
Neither
 
@Ekin Mallorca's fun ;-)
 
@Ekin NL? Netherlands? Don't go there. @PeeHaa lives there. He might want to meet you. Don't risk that.
13
 
@Jimbo Irecently got an offer for malaga
 
11:17 AM
@PeeHaa I don't know where that is
 
@PeeHaa you mean the ice cream, right?
 
Oh, Spain, okay :-)
 
@Jimbo and here I was believing your were more educated than the average murrican :(
 
I heard the first decision Trump. "By the end of the year, each district has to choose its participant Hunger Games" translate.google.pl/…
 
Málaga (/ˈmæləɡə/, Spanish: [ˈmalaɣa]) is a municipality, capital of the Province of Málaga, in the Autonomous Community of Andalusia, Spain. With a population of 569,130 in 2015, it is the second-most populous city of Andalusia and the sixth-largest in Spain. The southernmost large city in Europe, it lies on the Costa del Sol (Coast of the Sun) of the Mediterranean, about 100 kilometres (62.14 miles) east of the Strait of Gibraltar and about 130 km (80.78 mi) north of Africa. Málaga's history spans about 2,800 years, making it one of the oldest cities in the world. It was founded by the Phoenicians...
 
11:18 AM
@Gordon When have I ever given that impression?
 
@Jimbo I hear Australia is fun. They have spiders who hunt small dogs.
 
lol
 
@Jimbo just by being british… though I agree it doesnt mean much anymore :D
 
lol
 
Malaga ist eine Speiseeis-Sorte auf der Basis von Sahne, Zucker und Eiern. Das Besondere dieser Eissorte ist die Zugabe von Rosinen, die zuvor in Malagawein, einem süßen Dessertwein, eingelegt wurden. Bei industriell bzw. kommerziell produzierten Varianten wird der Malagawein gelegentlich durch günstigeren Rum ersetzt. == Literatur == Christa Schmedes: Eis & Sorbets. Gräfe und Unzer, 2012, ISBN 9783833823893, S.13 Francesco Realmutto, Morgan Morano, Salvatore Potestio: The Art of Making Gelato: 50 Flavors to Make at Home. Race Point Publishing, 2015, ISBN, S. 88-89 Nika Scheidemandel: Oh, wie gut…
 
Wes
11:20 AM
Protesters marching through NewYork. #TrumpProtest https://t.co/MkTFok17ac
 
I hate cities. In all possible scenarios I end up in them. So, not much difference anywhere anyways...
 
Wes
this never happened with other presidents, right?
 
@Gordon you can have as much education as you like, but with that huge drag factor of natural intelligence there's only so much that can be done /cc @Jimbo
 
@Gordon That first image looks like vomit
 
/runs
 
Wes
11:20 AM
@PeeHaa looks already chewed
 
@PeeHaa stop staring into the mirror please
geez, I am so charming this morning :D
 
@Jimbo do you know when will the PHPUK speakers and schedules be announced?
 
@Gordon :P
 
Site still has nothing. Though it's still early I guess.
 
@Ekin Not a clue. I really shouldn't have said anything on here (although they didn't say not to lol).. conferences don't usually even stick to a proper schedule when it comes to announcements, they just do when they feel like it
 
11:23 AM
@PeeHaa you know I love you. And your mom. Well, maybe just your mom. Ah, nvm.
 
I see :-)
 
@DaveRandom At least I'm challenging my retarded brain
 
@PeeHaa you;ll stay in NL, right? Especially with the cold weather!
 
lol not sure
It's not just the weather though
 
@PeeHaa traitor!
 
11:30 AM
Hehe
 
E_SNOW
 
Isn't J_SNOW?
 
Wes
guys, i'm willing to (attempt) write an RFC about "namespace protected" class members, ie members that are available to call/reference in current NS and sub NS's, but not super NS's. do you think i should explain why we don't need overkill stuff like class friendship and similar features, or i should just go with suggesting the feature and leave people analyze alternatives themselves?
 
No matter how kind you are, German children are kinder.
4
 
lol
 
11:36 AM
lol
 
@Gordon s/k/K/
 
@Wes I think there's already a draft somewhere, at least a discussion.
 
Wes
can you find the link @kelunik ?
 
@Wes qool, I've got event added namespace struct yet, and there is protected classes PR somewhere in my prewious discussion on internals about namespace refactor so comparing class ranges is simply pointer comparison
 
11:39 AM
> But most importantly, Trump doesn't like to talk about his failures. So a lot of the time your code will fail, and it will do so silently. Just think of debugging as a fun little game.
 
Wes
@brzuchal if you mean comparing just "begin of strings" then yeah, it's just that. i don't know about internals but i imagine it would be a fairly easy thing to implement for those that do know :B
 
@Wes if you're going to compare just begins of string it would be slow
 
> Assignment can also be done via the make keyword. E.g. Make America great assigns the value of the variable great to America
 
Wes
then i have no idea
 
11:42 AM
also there won't be place for features like internal or extension namespace type (kinda protection - so there won't be userland impl in those namespaces availabel)
 
Wes
"private class" i don't think i like that. it should be
class Baz { namespace function __construct(){} }
ie, you are allowed to construct it only within the namespace
 
sounds applish
 
Wes
and same goes with other members, not just the ctor
 
well there are different approach
I've got working zend_namespace_entry struct here gist.github.com/brzuchal/e930ec7792e4efa3f7038cc1b65a4534
 
Wes
if you don't want instances to be used from other namespaces you don't pass them around
 
11:48 AM
I wanted to do the background for namespace modificators and other provate/protected/assembly/namespaced/package-private scope comparisons
that's not exactly
it's not protecting you from missusage in 80+ teams
where protecting some internal implementation is required
 
Wes
how so? :|
 
look at my discussion thread externals.io/thread/191
using IDE cause all your classes are visible to everyone even if something is quite internal usage only, maintaining such code is like a charm even in libraries
 
Wes
if you don't want people to get a "private class" instance, you don't write
public function getInstance(){ return $this->foo; }
but rather you write
nsprotected function getInstance(){ return $this->foo; }
which would be callable only from within the namespace
i thought about this a lot...
 
when you place @internal in the docblock u're not protected against missusage
 
@JoeWatkins github.com/php/php-src/compare/php-7.1.0RC6...php-7.1.0RC5 < No changes, so why not tag final release instead of RC6?
 
11:51 AM
It's not that, it's not protecting you as far as PHP allows you to create new instance
 
@Tom I'm working on arrow functions; what's up?
 
there are no ways to protect from this
 
Wes
@brzuchal class Baz { namespace function __construct(){} }
it can be created only from within the namespace..
 
well that's different approach I've never seen in any other language, rather using private/protected/package scope classes instead
 
Wes
never seen in any other language > how about java?
 
11:53 AM
@kelunik Because timetable wiki.php.net/todo/php71#timetable I would say
 
Wes
in java, protected means "available through package"
 
Although people will start to test once stable is released anyway :P
 
@Wes Here's the problem with that: most of the time when I want to "hide" things from the outside world, they are in a sub-namespace of the thing that needs to actually use them.
 
@PeeHaa Having a strict timetable for RCs doesn't make sense.
 
Wes
> current NS and sub NS's
 
11:54 AM
@Wes your idea might work, but I think in connection with my zend_namespace_entry struct it'll be faster because every ce then has (*zend_namespace_entry)ce->namespace poitner so comparing if your method is called from allowed namespace is like atomic operation then
 
Wes
eg stuff in \A\B\Class will be available to \A\B\C\OtherClass
 
@kelunik Imo it makes sense to have it one way
 
diff is wrong @kelunik
check news in tagged tree, and do git diff on command line ...
I dunno why it's wrong ...
 
11:56 AM
@Wes no it doesn't work like that most of the time. MyLib\ThingDoer needs to use and interact with and probably create a MyLib\Widgets\NippleWidget. If NippleWidget is protected, ThingDoer can't access it.
 
Wes
@DaveRandom or you mean that you have the sub-package accessing private stuff from the immediately super package
 
I don't want to have to have my protected things at a higher level than the thing that needs to use them
 
ha NippleWidget
 
In my experience, that is a far more common scenario
 
Wes
@DaveRandom it can access it, as long ThingDoer is a class and not a namespace
 
11:58 AM
@Wes What's the name of that show that's made all eps avail. online?
 
NippleWidget wonder what it does
 
Wes
@littlepootis south park
 
Ah, yes. Thanks
 
@Wes what if I follow the Vendor\MyLib pattern? Suddenly anything else within Vendor can access it.
 
Wes
\NS1\NS2\NS3\ClassName can access anything within
|____________|
\NS1\NS2\NS3\*
which is, classes and classes defined in sub-namespace
 
12:00 PM
yes, but that limits for lower namespaces access to them
 
Wes
then your hierarchy sucks :B
 
none of this is very simple, and there are two conversations going on and it's too hard to pick one ...
 
It works in Java and C# and places like that because there are clear boundaries between packages/libraries/projects/whateveryouwannacallit
 
not really, in Domain driven app you keep your aggregates root in their own namespace for most of the time so not mixing entities with another aggregate
 
12:01 PM
It doesn't work in PHP because despite the fact that it looks like we have a similar system, we actually just have a big ball of loaded code
 
so in your approach there won't be access to related aggregate root
 
I would love the feature but based on how I have used it in other places, no implementation would be both restrictive enough and flexible enough to be useful
I have thought about it a lot
and I'm sorry :-(
 
I can propose introducint namespace struct first so it could open some space for such RFC's, what do you think ?
 
Wes
what are you saying to me are symptoms of a strange hierarchy. i don't do that, tbh :B
 
agree, at least nothing short of the whole nine yards (friends and so on) is enough ...
and the whole nine yards is horrible ...
 
12:04 PM
Now if PHP and composer were in some way integrated, such that we had a technical separation between "packages" and "namespaces" then it would be a different story. But we don't and that would be horrid in other ways.
 
we could have nested classes for much less pain ...
a lot of the use cases for namespace level protected classes are covered by nested classes
 
I used to think that but I've found it's not actually true in practice :-/
 
oh ?
 
I often write nested classes/structs/enums in C# at first and end up refactoring them out later.
 
@brzuchal Are you the one with the object rfc?
 
12:06 PM
Maybe I'm just doing it wrong, though
 
Sorry I gave you wrong link, I've got here working namespace struct with reflection implemented, missing tests and constants assigning a namespace entry poitner github.com/php/php-src/compare/…
@LeviMorrison yes, waiting for @Danack as he said will response in a thread
 
Did you understand my objection to adding variance to it?
 
what's your objection @Levi ?
 
Wait, they weren't on thread, It was on this chat right ?
 
Yeah, I'll respond on-list though.
Will ping you guys when it is sent.
 
12:09 PM
@LeviMorrison You wanted to waint until enums
 
@LeviMorrison ok
 
@brzuchal Yes.
 
how long would it be ?
 
Email sent. /cc @JoeWatkins
 
12:12 PM
the voting was going quite fine
 
@eve_mf welcome :)
 
@brzuchal Yes, which is why I suggested to leave it alone ^_^
 
Oh, ok, so you suggest leaving alone voting, put away variance and consider just variance when enums arrives, yes? @JoeWatkins what do you think about it?
 
@LeviMorrison interesting point
 
@JoeWatkins Will that be enought to push object typehint without variance? ^^
 
12:18 PM
don't just listen to me
I was only giving you an opinion, not telling you what to do ...
I'm not going to like it if it doesn't have variance, but I am one person, lots of people did like it ... I think it's a mistake, but I can be and always am wrong ...
 
However if it's a mistake it can be added later. It can't be reverted later because of the BC impact.
 
wait, just counting the number of years between getting support for array as param type and string as param type ...
 
@JoeWatkins I mean if that will push you to vote "Yes" ? :)
 
it won't
 
uhhh, ok
 
12:24 PM
Thank you Mark!
 
you don't need it too :)
 
Mark, it works much better now! One more little thing.... In the form, for editing the chef, why do I need to echo the values for the name and country as $theChef[0]['country'] instead of $theChef['country']? I see the value for $theChef with print_r, but, why it creates the position 0 instead of ['id'], ['name'] and ['country'] being the position of the array? I know I am awful explaining myself.... :(
 
hey guys, my android app is sending a json object, how can I get the data on the server side? most SO threads have suggested file_get_content()
 
@JoeWatkins every positive vote counts
 
but that doesn't seem to work: pastebin.com/hZyCicjB
 
12:30 PM
@SamIbraheem what does var_dump(file_get_contents('php://input')) give you? How did you send it from the client side?
Also, what errors do you get?
 
@DaveRandom do you know android? I'm using volley library, and not sure how it sends
 
@brzuchal well sure, but you were nearly there anyway ...
 
@DaveRandom and I'm not actually getting any error
@DaveRandom var_dump(file_get_contents('php://input')) is giving me string(0)
I've just tried it out
 
@SamIbraheem OK then please show the output of var_dump($_SERVER);
 
how does file_get_contents behave with regard to open streams ?
 
12:34 PM
@JoeWatkins meant s/counts/matters/ you may be right, but you never know how it end
 
I think it is correct to use stream_get_contents, though I doubt it will change the outcome
 
@DaveRandom hang on, thnak you for your help
 
@JoeWatkins php://input is specifically for this, the stream handlers give you an fp to the message body. However you cannot consume it more than once
stream_get_contents() needs an open resource, so you'd just have to fopen(php://input) and it would be effectively the same
 
oh I see, so it can be closed and re-opened and doesn't drop connection or actually close stream ?
STDIN ?
 
Well it's not 1:1 with stdin e.g. in the apache sapi
 
12:36 PM
I'm not sure if that's usable ...
 
it's specifically for the HTTP message body
 
well it is
 
@DaveRandom You can
 
oh oh
stream suck
 
I think that was "fixed"
1 sec
 
12:36 PM
@PeeHaa sapi dependent
Maybe some places you can
unless there's now some global buffer
 
@DaveRandom it's giving array(37)
 
I hope not
 
So this is a lie?
> 5.6.0 php://input was made reusable.
I assume it's like that
Or my code is utterly broken
 
@SamIbraheem yes it will, I want to see the values in it though, can you pastebin the whole output?
There shouldn't be any sensitive info in there, it just shows how the script was invoked
 
Could you verify I am right on you are wrong for me please @DaveRandom?
 
12:38 PM
If there's anything in there you don't want to show then blank it out and I will ask if there's anything missing that I need
 
I'm scared now
 
that's what chris said happened, php://input is reusable STDIN is not reusable
 
> Note: Prior to PHP 5.6, a stream opened with php://input could only be read once; the stream did not support seek operations. However, depending on the SAPI implementation, it may be possible to open another php://input stream and restart reading. This is only possible if the request body data has been saved. Typically, this is the case for POST requests, but not other request methods, such as PUT or PROPFIND.
hmm note
 
There must have been some universal (i.e. outside SAPI) buffering layer added
 
oh so it didn't used to be reusable
streams themselves do magic buffering
 
12:43 PM
@SamIbraheem I'm mostly interested in the REQUEST_METHOD key and everything that starts with HTTP_
Also, how large is the data you are trying to send?
 
@DaveRandom it's just that I'm now trying to encode the $_server array itself
 
@SamIbraheem at the top of your script, do ob_start(); var_dump($_SERVER); file_put_contents(__DIR__ . '/dump.txt', ob_get_clean());
that should create a file called dump.txt in the same directory as your script
 
@Danack Are you around ?
 
Bah… wanting to pay online and then this certificate expired… bah.
 
@DaveRandom the problem is that I don't know how to do var_dump when I send data from my app
@DaveRandom is there anyway I can monitor the results dynamically?
 
12:52 PM
6 mins ago, by DaveRandom
@SamIbraheem at the top of your script, do ob_start(); var_dump($_SERVER); file_put_contents(__DIR__ . '/dump.txt', ob_get_clean());
What that does is basically var_dump() to a file
7 mins ago, by DaveRandom
that should create a file called dump.txt in the same directory as your script
 
@DaveRandom thank you but how can I create a file based on an android app request?
@dave
@DaveRandom oh sorry I just got it
 
:-P
 
@DaveRandom IT JUST WORKED!!! And I have no idea why?
THANK YOU SOM MUCH FOR YOUR TIME
 
@SamIbraheem OK well you need to figure out why it worked ;-)
 
LOL
I will
 
12:57 PM
A good candidate is the size
There is a size limit (iirc default is 2MB?) for message bodies
 
yeah ... or someone lifted a curse ... which seems more obvious to me ...
 
moo
 
morning nikita
 
o/
 

« first day (2217 days earlier)      last day (2744 days later) »