« first day (2481 days earlier)      last day (2691 days later) » 

15:00
if you start providing multiple lock files, you make it hard to predict what is going to be installed
if you lock the platform, you will never be able to see if your package works with newer versions
So basically there is no sane way to support multiple php versions and make sure the deps people are installing are the ones I want
Damned if you do
Yeah, the only sane version is "only the maintainer updates the composer.lock"
you can't really lock and hope to test also low/high boundaries :P
@Ocramius Which is also not sane because of the issue we had ealier
another solution is to test the locked version only with newest versions
so you run composer install only on 7.1, composer update on all other versions
15:03
But I am not talking about testing. I am also talking about distributing
When distributing, your composer.lock is completely ignored
Not when I am distributing a project
the project has fixed target deployment environments
so if you are providing a composer.lock, you are dictating it. There is no free choice on the consumer
Yes but that means multiple composer locks
@Ocramius yes I see
Yeh, but that is something composer doesn't do
15:05
@PeeHaa what is the specific problem?
lock files should be used in deployment, not distribution
So again the TL;DR is that this way I cannot distribute locks files for my projects
Usually not, if they are public
@DaveRandom Sorry I keep going on about this @Ocramius
I have a project. Peehaa/my-awesome-statuspage
15:07
It has a lock file because I want people to use my defined versions by default
But if there is a php version constraint I cannot do this because it targets the wrong version (I cerated to lock on 7.1, but supports 7.0 too)
@DaveRandom ^
what do you care what other people use as long as it's within the constraints set in your composer.json?
Known working versions
Because we live in the age of social pressure
@PeeHaa yeah, you designed the composer.lock in a 7.1 environment, therefore there is no guarantee that it will work in a 7.0 one
same goes for 5.6 local, 7.0 remote
Because of the version bump. That's why it's imo part of the public api
I can totally see what you are saying btw
15:10
@PeeHaa so when someone comes and says "your shit broke with thingy 0.8" you know your composer.json is incorrect and needs to exclude that
Not trying to be annoying
@PaulCrovella I don't want people to say your shit is broken when they do composer install
Instead of composer update
i'm saying don't distribute your lock file. use it for deployments only.
Again I see what you are saying :) Just weird I can't tell people "it will work if you do this with these versions"
I can only be sure it indeed keeps working if I keep track of all deps and test again on new version of deps (and deps of deps etc)
Wait wat, don't distribute the lock file?
What madness is this
Oh, lock versions in with composer.json instead... I get ya
So there's no other use for the lock file then?
The lock file is only for things you download and install on a pre-defined environment
As in "off the shelf, no changes at all"
If the environment does not match expectations, be it via composer.lock or composer update, an error is the sanest outcome
15:18
Let me ask one last question to all of ya
How can I make sure when people download Peehaa/my-project it actually works and some new version of a dep didn't break it?
Because that's what the lock file prevents for me
Well it breaks now too :P
if you're worried about that you can constrain it to only specific versions of the dependency that you've tested
That means having to manually keep track of deps again
And prevent others from trying out new versions if they are so inclined to whether because they are adventurous or are developing
@PeeHaa you do releases for various environments
Nobody does that
That's how you do it - PHP 7.0-7.1 version, PHP 5.3.2 - 5.3.3 version, PHP 5.3.4-5.5.0 version, PHP 5.5.1-7.0
right, but I'm telling you how to solve the problem from a mathematical point of view
either you provide multiple versions, or you set a low version platform and always have outdated deps
but you'll have wp-style stability ;-)
@PeeHaa I need a chat message link to tweet
but you'll have wp-style stability ;-)
Or, use composer.lock
@Jimbo we just discussed how composer.lock failed, and how it will fail again
Oh, what about hosting your own packagist effectively - that's an option
@Jimbo Read up :P That's what the entire discussion is about :-)
15:24
Then nothing can change
php is one of your dependencies and composer can't pick which one of those to run on, so even with a lock file it will not manage all of your dependencies for you
It will simply reject it, @PaulCrovella
Didn't @Danack do a talk on this too?
I added \intdiv() to PHP for doing, well, division. But I mostly use it for testing type declarations.
@Jimbo But it will break if the lock file is generated on a different php version (and some dep bumped a php version)
15:26
@PeeHaa Did I miss the part where you state the php version requirement exactly in composer.json?
@Jimbo I didn't. A dep did
@Ocramius I'm aware of the constraint you can set in it, I mean it won't install/use particular php versions for you as it would other dependencies
56 mins ago, by Ocramius
@PeeHaa don't be "that guy" plz
@Jimbo start there ^
@PeeHaa I would keep the legacy support in a lower-number branch
that way composer can pick the version, that matches with PHP version in the environment
FWIW for this specific thing I am more than happy to bump the entire project to 7.1 :P
15:30
keep 5.3 compatible version in v1.x.x, the php 5.5 compatible in v2.x.x, etc.
when new PHP version comes out, you just increment the package's version if you need some new feature
Funny you say that
:P
why?
That's what I would do
buuuut ?
15:32
Don't worry: nobody uses your projects anyway!
You can bump it :D
lol @Danack
@tereško But this issue is about the same "version" "^7"
@Ocramius I have a better methodology. I just abandon projects instead :P
works too - best semver
no upgrades ever
Anyway thanks all for all of the above. I love you all <3
Expect for @Jimbo
I don't like her
15:35
What a shit
:P
Also I just realized I should have been working this afternoon :(
Don't tell your boss.
@Jimbo she's right though
@Fabor Boss is half drunk already
heh
15:38
thx for the reply. I just found this note in the php.net docs:

If handle was fopen()ed in append mode, fwrite()s are atomic (unless the size of string exceeds the filesystem's block size, on some platforms, and as long as the file is on a local filesystem). That is, there is no need to flock() a resource before calling fwrite(); all of the data will be written without interruption.
does this mean that since my fwrite will be atomic I dont need locks for my readers?
I want to start work at 8 AM PST and end work at 18:30 CEST
@staabm mmmm, closing tags
@Dereleased ?
Commenting on the docs/examples, is all.
not sure what you are talking about
Unrelated @Ocramius, but are you coming to phpnw?
Anonymous
15:45
@Ocramius if so, we can have a fist up about wars if you're keen :p
Course he is
He's bringing his switch
Annoying @Ocramius in real life
That's been on my list for so long
are you trying to get him to go or not to?
@PeeHaa I think I forgot to submit
15:52
You can still submit to @JayIsTooCommon
so no... plus I hear the weather is cloudy with a chance of brexit
lame
oh well. Back to annoying you on twitter I guess
Next best thing
yeh, but if I start going to conferences and also pay for them, it's the end
I mean, I already paid for laser quest for you wankers
hey don't look at me
the laser quest part that is
Anonymous
o/
Anonymous
15:54
It was fun.. but I got too competitive and started calling people names
@JayIsTooCommon I wanted to join, but I was in Kiev, getting drunk at the Magento office
16:07
Ocramius is easy to spot at conferences too, what with the striking similarity to Mario.
Evening
@Fabor mario's viking cousin
😎
Anonymous
@Ocramius :p
lol
0
Q: Are there any source code for monopoly game online?

sardasakshamI have to make a monopoly game for a school project but since I don't know programming, I can't so I was wondering if there are any already made monopoly game source code on github or any other websites. Do you know any way to make game without coding or much hassle. i have only 15-20 days to com...

16:12
"I have to make a thing so give me the thing so I can make it"
@Ocramius heh yes, the hair matches viking more
@Fabor is there a TL;DR version?
It's mostly comments in there
> Let's take the simple example of exporting a model instance to a serializable format, such as JSON.
well .. here ya go, the premier "example" is braindead already
tl;dr skinny everything
Skinny issues, skinny solutions.
16:28
Well reddit comment is
> "Fat model, skinny controller" is the notion that business logic should reside in classes we call "models" (but maybe are better called "services"), which are unaware and independent of any views and controllers, and are often not coupled to any framework. In the context of web apps, it means isolating HTTP handling concerns from business logic concerns, for better maintainability and reuse.
This is what OP actually supports. But he's decided "fat model, skinny controller" means something else.
I wish they would fix that (see full text) when it is the full text bug
Did the last phpstorm make it slower / less responsive for everyone or just me?
@PeeHaa literally just you. There's a bunch of calls to sleep() that are only compiled for you
I knew it
17:00
Does PHP error on exceeding max post upload yet?
If not how do you detect?
@Fabor by file not appearing in $_FILES
@tereško Doesn't it have to reach max size to get there though?
@Fabor Do you need to detect or prevent?
Prevent isn't 100% last I remember, but I could be wrong on that. So both maybe.
17:13
@Fabor would that imply, that every user can bypass the limit by crafting a POST request?
@Fabor You can prevent it on the webserver level afaik
!!? nginx max body
Search for "nginx max body" (https://www.google.com/search?q=nginx+max+body&lr=lang_en)
• Module ngx_http_core_module - nginx.org - Sets the maximum allowed size of the client request body, specified in the “Content-Length” request… (http://nginx.org/en/docs/http/ngx_http_core_module.html)
• nginx - client_max_body_size has no effect - Stac… - 13 jan. 2010 - nginx keeps saying client intended to send too large body . … The backend is php-fpm… (https://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect)
I think that should work, but don't know
@tereško Doesn't it attempt the upload until it reaches max size then fail without error? I'm not sure how it works.
19
Q: Sunsetting Documentation

Jon Ericson We will stop accepting contributions to Documentation on August 8 On behalf of everyone who worked on Documentation, I want to thank all 15,451 users who contributed. We particularly want to acknowledge the 294 people who tested the private beta and the 2,361 who pounded on the public beta in ...

17:17
SO has more failed projects than me. Somebody should open a meta post to introduce a badge for them
shutting it down is the success part
True :P
Apache but possible, detect the return of 413 and handle I guess.
.. and what will send that status code?
Unshipset SO! \o/
17:32
i'm familiar with SOAP (as application/soap+xml), but this server only accepts application/soap+msbin1; does anybody know of a library that will subclass standard PHP soap operations to allow communications with a SoapServer that only accepts msbin1? This is the closest i've found to a forum post describing the issue/solution: php-soap.996275.n3.nabble.com/…
Both soap and a microsoft format
Not your day is it? :P
if msbin1 is keeping you from using soap it's doing you a favor
Soap 1.1 was text/xml. Soap 1.2 is application/soap+xml. application/soap+msbin1 is something Microsoft came up with. The way Microsoft wants you to fix this is by "upgrading" from PHP to .NET. Resistance is futile. — BareNakedCoder Dec 11 '15 at 3:38
:)
Have you tried requesting a sane format instead in your request @BenCoffin?
@PeeHaa no, not my week.
Can you try to pass the accept header for shits and giggles?
17:38
@PeeHaa i can try anything for shits and giggles, if you tell me hwo
Set the accept header to application/soap+xml in the soap request
And don't forgot to cross your fingers and pray to your god
i tried: $header = new SoapHeader($wsdl, 'Content-type', 'application/soap+msbin1; charset=utf-8;');
but your'e saying i can use "Accept" instead?
Yes
Kindly ask the server to serve you a format that is not msbin
[message:protected] => Cannot process the message because the content type 'application/soap+xml; charset=utf-8;' was not the expected type 'application/soap+msbin1'.
What is saying that? The server or the client?
hmmmm
14
A: content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'

CharlesPHP's native SOAP extension is an undebuggable binary blob of horrors. According to this comment in the PHP manual, it is hard-coded to send SOAP requests with the MIME content type application/soap+xml. Your SOAP server seems to reject this content type, expecting only text/xml. According to ...

17:47
What happens in apache when the rule upload_max_filesize is exceeded? 413 I hope.
i believe it's saying that the server's expecting something else.
@PeeHaa shouldn't you be able to extend soapclient, override __doRequest, and set the http headers as desired?
i tried using that MsSoapClient example
it's still telling me the same thing
@PaulCrovella ¯\_(ツ)_/¯
soapclient tends to be stupid
s/client//
> This document uses the following terms:
MultiByteInt31: ...
just nothing about a name like that I like
@BenCoffin might be worth a look github.com/casperbiering/dotnet-binary-xml
18:01
UnicodeChars32TextRecord, MultiByteInt31
i'm just wondering what part do i encode?
... well, since Android chat is locked and they won't give me access; I might be tasked with creating an android interface over a unity3d mobile app. the plan would be to communicate between the android app (native, not web view or stuff like taht) and the unity3d app so that unity can take care of managing the game server and stuff, and android can do a nice interface
can a unix socket be used to communicate commands between two distinct apps? is there a default protocol for app communication?
how do i lock this room and not give you access
private rooms?
but pls don't
fine. since you said pls
18:17
> you has php7.0.8
oh lol
hahahaha
swagcomposer
really all this is doing is teaching people how to use composer
The late-night hunger begins!
Kebab? yes please.
@PaulCrovella It's really not. Because I still don't have a solution for my lock file :P
18:20
Beer is the solution
beer and kebak
Dayum son that's nice
@PeeHaa lock files never were what you imagined them to be
> but Composer uses the exact versions listed in composer.lock to ensure that the package versions are consistent for everyone working on your project.
It's not me
> This is by design, it ensures that your project does not break because of unexpected changes in dependencies.
That's why people use it
yes, it ensures package versions - packages are not your only dependencies
lock files are useful for deployment where you already have control over the rest - i.e. php, extensions
I was asnwering your remark by telling me I am using the lock file wrong
While the actual docs agree with me
18:24
only if you're conflating deployment with distribution
It may not be how you are using it. Or other people. Which is fine
@PaulCrovella Nothing in the docs about that
do you need docs to tell you the difference?
I have all what you people are saying. And can see what you are saying. But I don't agree
@PaulCrovella I am using it for the exact reason that is in the docs
You can say it may be broken which is also fine
But I am using it like how it should be used
I don't think it's broken, I think it's somewhat necessarily limited
@FélixGagnon-Grenier you were Canadian, right? How legitimate is this video?
18:30
hmmm... tbh it started out promising, then it goes abysmal. The reasons cited for his election are pretty much bullshit
seen it?
As of now, I place the speaker a little above your average flat-earther in terms of intelligence
watching
@FélixGagnon-Grenier .. and this is why I like asking second opinions about foreign policy shit
Doesnt the symfony memcached session handler miss locks so concurrent request dont override each others session data?
lol 2 people actually downvoted the sunsetting docs post :-)
18:35
@FélixGagnon-Grenier basically, if you final verdict is "hyperbolic, but kinda correct", then it is worth subscribing (it's a "guest video" .. how youtubers do cross-advertising), if it is "hyperbolic, but also insane", then it's probably not
@PeeHaa I can only imagine what their doc rep looks like
That was my first thought too :D
shame they'll keep it
I think I need another glass of wine
@tereško right now, it's more like, "this guy arrives to the wrong conclusions when presented with fairly simple material"
yes, Trudeau speaks like a politican, well guess what
18:37
that's not all that good :(
Yeah. That would be so good if all those whores saw it removed
there's so much plagiarism and gaming of docs that rep really should disappear with it
I am fully agree
fuck
I will end up drinking the entire bottle
... oh well
<3
@tereško shit, such lack of ciutations to support all his claims of "population thinks like that"
I don't know about other material, but I am starting to really not like that. at least it got moderately low views
18:41
@FélixGagnon-Grenier .. hence, the "second opinion"
@PaulCrovella Do you scroll yet btw :P
afternoon/evening/morning
@PeeHaa no, you? also do your reply links also not work if the message is on the same page?
18:44
@PaulCrovella Nope also broken. I now right click -> open in new tab on replies
:D
@Alesana o/
@PeeHaa middle click. how have you not embraced middle click in all these years
I hate middle click
It feels so weird clicking the scrollwheel
... so .. I have been stuck on this song for two days now. But when you search it on youtube only the first result gives what you look for ... and everything else is "My Little Pony" shit
I need one of those old school three button + wheel styles mice :D
@PeeHaa you get used to it, i promise
18:45
I need to do something productive today
@PaulCrovella Fiiiiine. I will stop whining and try it]
I was going to be productive today
my mouse's scroll wheel can move side-to-side
But I decided I would try and make a song cover instead, I am hopeless
@Tiffany Waaaaat
burn it with fire
18:46
@Tiffany Is it a ball?
nope
scroll wheel
I'm trying to imagine how it would do that
Tilt'y'all.
@Tiffany I am making quite nice progress in getting drunk on cabernet sauvignon from 2009
18:47
@tereško hahaha
@Tiffany that's way too many thumb buttons
@Tiffany Now I'm having a harder time imagining
I recently bought 3 ebay.co.uk/itm/… - the last one lasted almost ten years, so I should be set for most of the rest of my life.
I wish I could drink something good, like a nice craft beer or a wine...
Ahh it doesn't roll it just pushes left and right
Now I get it lol
18:48
@Danack I know people who have those, they're pretty great from what I've heard, last quite a long time... of course you just stated that in your message so ... blah
@Tiffany meh, I bought mionix naos 8200 (not produced anymore)
it's good and doesn't look like a decepticon
@tereško I got what I have cause it was on sale for like 40 bucks
and I was playing a lot of WoW at the time
I have a tendency to send a lot of monies on gear
18:50
don't really use the buttons as much as I thought I would, but I still like the mouse
i'm still getting used to 2 on the side for back/forward history... years of mouse gestures is a hard habit to break
opera user?
was, that's what got me started
tried vivaldi?
@PaulCrovella Oh that I can NEVER get used to
18:52
@tereško for what it's worth, so do I. I already had a steelseries mech keyboard, and I bought a logitech g710 because I wanted cherry brown keys instead of cherry red
@tereško still haven't.. disappointed that it's a chromium skin basically
Instarage when I hit it by accident
@PeeHaa and it makes you go back a page? :P
Yes
@Tiffany well .. mine is Das Keyboard. And I am waiting for 5Q to be released
18:53
Like throwing stuff through the room rage
.. then again, in past 3 2 months I have spent like 700€on earphones
@tereško I've wanted a das, but from what I understand they're loud as fuck
@PeeHaa pat pat
nope, the MX Brown are quite
@PeeHaa the side buttons on mine are above where my thumb rests most the time, so I don't accidentally hit them
...so much for being productive... going to play minecraft with my boyfriend
18:55
:D
Yeah. I am motorically retarded though
> The First Cloud Connected Keyboard
what could go wrong
@PeeHaa Hey I was meaning to ask you, on a scale from 1 to 10 how bad is my coding style on that plugin? :P
Is 1 good or bad? :-)
18:58
Bad hahah
Wait no good
just say 5, make it easy
@PeeHaa in Latvian there is a term, which translated directly as "Topographical Idiot" .. commonly use as self-description of "skill for following directions"
Is there any way to pass the variables from one php page to another except jquery, ajax, form?
@PrakashPatil session
18:59
session doesn't seems to work here.

« first day (2481 days earlier)      last day (2691 days later) »