« first day (2196 days earlier)      last day (2743 days later) » 

12:16 AM
/me dumps a few gigabytes worth of data into file… just to debug a php app :-D
5.5 GB worth of opcode logging :-D
takes nearly a good 40 sec to read from disk :-D
 
why aren't you filtering it?
 
@Porlune Because I don't know yet what to serach for. Searching patterns about what's repeating
 
maybe just paginate the logs then, so they are a bit more manageable.
 
@Porlune I am using less to read them
 
12:33 AM
I'm confused, you're using the style sheet language "less"?
 
12:56 AM
pretty sure it's the pager command
still I wonder if that alone makes it easy
 
@Porlune no, the unix pager less
 
1:16 AM
@bwoebi Yes.
 
morning
I was reading what I thought was a DB table's content when in fact I was reading it's structure
80 fields.....
I am not sure how I feel about doing the admin managment page for that one
 
 
1 hour later…
Wes
2:29 AM
The last message was posted in the paleocene...
or it felt like that way. hey m59, how you doing? :D
 
!!? paleocene
 
Search for "paleocene" (https://www.google.com/search?q=paleocene&lr=lang_en)
• Paleocene - Wikipedia - The Paleocene or Palaeocene, the "old recent", is a geologic epoch that lasted from about 66 to 56… (https://en.wikipedia.org/wiki/Paleocene)
• Paleocene Epoch | geochronology | Britannica.com - Paleocene Epoch, also spelled Palaeocene Epoch, first major worldwide division of rocks and time of… (https://www.britannica.com/science/Paleocene-Epoch)
• BBC Nature - Palaeocene epoch videos, news and fa… - The Paleocene epoch was a time of dense forests and evolutionary experiments. (http://www
 
2:45 AM
colors... colors everywhere
 
Wes
if you remove some stuff you could think it's 2016, full of hipsters
 
it came to mind lastly, that hipsters have always been there, amongst us
 
Wes
illuminati confirmed
 
only we differentiate who they are
jesus was a goddamn hipster to his fellow romans
all about free love
 
Wes
@FélixGagnon-Grenier google says that that combination of words has never been used on the internet before
congrats
 
2:52 AM
nice :)
 
:D
 
Wes
since i realized that fields type must be invariant, i started to write crap
i could simply not care since fields have no type in php, but ocd doesn't allow me to do that
 
hmmm? define fields?
 
Wes
private $field;
 
oh
yeah I think some hipster have been naming that property, or something like that
 
Wes
2:56 AM
i was taught to name them fields, properties are get foo() set foo(v) instead
that's the difference
 
this has a javascript taste to it. "Oh we haven't changed the way we name things in too long, le's fix this" :D
more seriously, so instead of properties / methods, you use field / properties?
 
Wes
i call them fields and methods
properties (get;set;) don't exist in php
 
... ok you have to give me that dealer's number
 
Wes
i think yours is better :B
 
Wes
3:00 AM
in the oop world, fields is very used
any java course will call them fields
because java 8 has properties, and they are called properties
or c# just to mention some popular ones
 
o/
 
> Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object.
and /o
sorry was busy trying to contradict @Wes
I guess I've been living under a rock for the past three years...
 
Wes
lol
it's ok it's a common mistake
 
3:05 AM
> Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object.
:D
 
Wes
"and other members"
 
Wes
anyway, imagine pastebin.com/JWAkSZ2u this worked. does it look fine to you?
 
typed properties <3
 
Wes
basically, type can't be changed
because fields are both read and write
solution is using a field for each class or generics
i'm probably not very clear :B
 
3:11 AM
nah, it's starting to make sense
not sure how this is different from no setter injection along with type hinting everything in the constructor
 
Wes
it's the same reason function arguments can't be covariant to super declaration, and method return can't be contravariant
fields can't be neither covariant nor contravariant, so type must not be changed
 
this is starting to look like c++
 
Wes
and any workaround looks crap in php
 
Wes
generics are awesome
 
Wes
lol
Aug 9 at 9:37, by Wes
they just told me a funny thing. this guy i work for always sends email and writes docs all in uppercase. but he doesn't use caps lock, he holds the left shift key pressed with his little finger for the whole time he's typing
 
Wes
3:45 AM
@FélixGagnon-Grenier shouldn't this work? jsfiddle.net/0920b93k
 
are you like... trying to assign a's prototype to b?
or like.. trying to make a custom prototype?
 
Wes
i want to make a dict/struct ish thing
 
you misspelled horrible anti pattern class sry :D
 
Wes
and i want the child object to inherit from another one's members
 
simple typescript inheritance?
you want this to be vanilla?
 
Wes
3:49 AM
vanilla
 
'nin
 
hey joe
...it became impossible not to remember the song every time
s/time/'nin
 
@wes something like that? jsfiddle.net/0920b93k/1
 
oh how nice
 
@wes a little bit less ugly jsfiddle.net/0920b93k/2
 
it seems libui build is failing for osx
if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew upgrade cmake; fi
Error: cmake 3.6.2 already installed
hm, just that
 
the build does go ahead though, and complete
 
Wes
@FélixGagnon-Grenier did i mention that i hate js?
morning joe
 
4:02 AM
yeah
 
@Wes lol. that (function(){})(); thing is like the sanest thing in vanilla
you get actual var scope, limit name collisions, can augment objects
can "inject" dependencies
 
Wes
it's not that, it's the prototype madness
@FélixGagnon-Grenier this works jsfiddle.net/pwkfwonb i wish i know why
like prototype wasn't confusing enough, now there's also __proto__
 
because you are directly replacing the actual prototype, not the "proxy" that the prototype property is (as far as I understand)
be aware that this is probably extremely destructive of anything in terms of performance and/or normal DOM functions
 
Wes
why is life so hard
 
4:11 AM
:)
 
Wes
i don't get why it's necessary...
you would think that you understood prototypal inheritance in js.... but
i wish i didn't suck at everything
 
cheers mate. I don't think you suck
 
mornin
!!friday
 
@Linus Happy Prebeccaday!
 
not sure if I should carry all these books or just give out/sell
mornin linus
 
4:21 AM
I kept my really nice ones
PoEAA hardcover for instance
Books are heavy though :(
 
yeah some of them are coming with me of course
but some huge ones I have as pdf as well
not exactly sure why
 
i have kept all my school,graduations ones
 
English books are hard to find here, it'd help somebody for sure
maybe it's better if I leave them to some university library
 
Wes
jsfiddle.net/6sw2h2m2 @FélixGagnon-Grenier now i remember why Object.create was introduced
 
Wes
4:25 AM
aaaaaa
 
4:38 AM
pdfs are useful for me now
 
4:52 AM
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given on 407 this lis line 407 if (mysqli_num_rows($result) == 1) {
i get that error
 
read the words in it
2
 
Wes
lowl
 
honestly, it's as if you stopped reading at Warning:
 
It's hard to help people who don't want to help themselves.
 
Wes
js i wrote works
 
4:59 AM
someone flagged that @Fab
 
@Case check your database connection username and password
 
@JoeWatkins lol. The silently offended.
 
hehe
@Janzzdl don't guess, you're bound to be wrong ...
if you're going to guess, think about it for more than a second ... why wouldn't the call to connect raise a warning, how would you get as far as query, with no warning ?
the problem is written in very concise English in the error message, no more information than that is required to solve the problem ... literally just read the words ...
 
5:14 AM
So many juniors stop reading a warning/error at the first colon and go to @StackOverflow for help... just read the words after Warning: #php
@krakjoe @StackOverflow inb4 making an rfc to remove the: and making a junior edition of #php
haha
 
@PureRhymerOrganization URM ... NO.
 
1) you shouted
2) it has nothing to do with PHP
3) you shouted
 
:P
 
5:18 AM
im sorry
 
ha someone flagged kalles tweet ...
 
nonsense flags are nonsense
 
nonsense
 
Whoever flagged that: why?
 
5:43 AM
can i ask one more question?
how can I make a leverage browsing caching using codeigniter? or just native PHP
 
Wes
jsdoc is very hard, and despite that, it works in php/webstorm. it's actually incredible how good this software is (entering fanboy mode)
 
6:20 AM
@Wes you're drunk. clearly drunk. unless the fanboy mode is for phpstorm. then please go on.
 
Wes
not more than usual
yes, obviously
can't believe how good phpstorm is
 
ah, resolved the ambiguity
yeah, totally! phpstorm is really great and does all the things.
 
Wes
considering that the second place of php ides is a piece of turd that is barely useful
time for a coffee
 
6:34 AM
got my third already
and second toffee choc cookie
 
Wes
i beat you, i didn't sleep tonight
which means i had ten or so coffees :B
 
I have toddler, do I need to say more?
 
Wes
which year it was the last time you actually slept? :D
 
2014 ;)
 
Wes
:P
 
6:37 AM
but people in syria didnt sleep without coffee or toddler
 
Wes
7:06 AM
@JoeWatkins any chance to get typed properties revamped for 7.2?
morning pieter
 
mergen
 
http://stackoverflow.com/questions/40137649/how-should-the-view-display‌​-on-mvc-in-php
mornin PeeHaa
 
@Wes not by me, no time
 
Wes
iirc it nearly passed, so there is hope. what was the problem with it again?
problem was: it was a nice thing
 
We don't take too kindly to nice things over here
 
Wes
7:18 AM
:B
!!rfcs
 
poor Jeeves, trying too hard to find nice things at the moment
 
Wes
i always break jeevs
 
:P Still not sure why it takes him this long
 
Sorry, but we can't have nice things.
4
 
Wes
yay!
 
mouning!
 
hey narotu
 
o/ Peepee
 
@PeeHaa maybe I should call you PePe? You know, from the muppets?
 
7:22 AM
github down
 
!!github
 
ha! not for me this time
 
@Naruto I don't know that one
 
!!is github down
 
I think so.
 
7:23 AM
A bit
 
minor: We are investigating intermittent connection issues to GitHub.com as of 2016-10-20T07:15:05Z
 
keep hammering =)
 
@Naruto Pretty sure I haven't ever seen him
 
@Jeeves neat. I didnt know you can do that.
 
7:28 AM
@PeeHaa never seen the show, only had a race game, that's how I got to know them all ^^
 
Anonymous
morn
 
james o/
 
@JayIsTooCommon s/m/p
 
peter o/
 
james I + james II
@Jimbo You are tanned yet?
!!? weather mallorca
 
7:33 AM
Search for "weather mallorca" (https://www.google.com/search?q=weather+mallorca&lr=lang_en)
• Weather in Majorca, Spain | 14 Day Weather Foreca… - Latest weather report Majorca, Spain. Majorca 14 Day Weather Forecast, Historical Weather, Weather… (http://www.worldweatheronline.com/majorca-weather/islas-baleares/es.aspx)
• Palma de Mallorca, Spain 10 Day Weather Forecast… - Be prepared with the most accurate 10 day forecast for Palma de Mallorca, Spain with highs, lows, c… (https://weather.com/weather/tenday/l/Palma+de+Mallorca+Spain+SPXX0061:1:SP)
 
22 not too bad
Holy... 32°c
 
Right this second it's 17
 
Anonymous
5°c here...
 
:D
 
Same here 5ish
 
7:34 AM
34°c
 
Anonymous
fuck sake
 
Fuck off
 
13°c
humidity %81
 
:P
 
keeps raining and raining
 
Wes
7:36 AM
@Linus i hate you :B
 
:P
 
TBF @Linus just got rid of the monsoon IIRC
 
Wes
12°c here, and guess what... it's raining
 
@Linus Is in like a desert and sitting next to a pyramid right now right
 
@PeeHaa yeah :)
@Jimbo correct my city is near desert areas
 
7:39 AM
I heard @PeeHaa's mom is cheap to rent over there
Eh, she's cheap to rent everywhere what am I saying
 
it's 0°C here (humidity 82% ... the app says "feels like -3°C") ... so .. stop bit competing, I win
 
hi guys good noon
when i am try to load my php project using wamp server then my project not open and it send me error
 
Wes
every time i complain about weather i remember that i'm old
but how can you not complain about weather when it's always fecking raining
 
my error like this
ERR_NAME_NOT_RESOLVED
 
@PeeHaa Why do I want to do what?
 
7:44 AM
please any one can know about this error ?
 
@ShaileshLimbadiya have you looked in the webserver's error log?
 
Also thanks a bunch for the feedback. Buan is an old unsupported framework but we still use it so ¯\_(ツ)_/¯
 
@Sean Magically set $viewVar[] = 'something';
 
Oh the __set?
 
@Linus gave my 2c
 
7:46 AM
I added a ->share($key, $value) method into the views as a helper because I hate it, but it's not reflected there
 
sorry but i am new in php so where i can show the web server'e error log @tereško
 
@Sean Yes an more specifically to solve the imo backwards casting of arrays to arrayobjects
 
@ShaileshLimbadiya dunno, depends on your OS and your webserver
 
@ShaileshLimbadiya That isn't a problem with PHP, it sounds like a problem with your server
 
@ShaileshLimbadiya tail -f /var/log/apache2/error.log // if you're on Unix. If you're on Windows, spaghetti monster help you
 
7:47 AM
@Jimbo s/Unix/Ubuntu
 
Yeah, on windows it'll be wherever you installed the server most likely
 
@tereško Same on OS X
 
i have windows
and browser is mozilla
 
And yeah I don't normally have an Interfaces namespace, one of our devs is new so I'm showing him what they're used for
 
Byeeeee
 
7:49 AM
okay @Jimbo
 
@Jimbo on BSD's the folder is /var/log/httpd on CentOS I have seen logs directly in /var/log
 
noice
 
and you are assuming that it's Apache, btw
 
Who goes straight to nginx?
 
morning
 
7:49 AM
@PeeHaa ew I didn't actually spot that conversion going on
 
I haven't even done nginx yet :P
 
just find some locate equivalent
 
@Jimbo you should try
 
@Jimbo Skip right to Caddy. :P
(haven't tried that yet)
 
centos nginx - /var/log/nginx/error.log
 
7:51 AM
also, everyone, keep in mind that it is the "default location"
 
morning
 
For measuring how much memory a single test (in PHPUnit) uses, would it be "good enough" to call memory_get_peak_usage(true) before and after the test and use the difference?
 
it is quite handy to have logs in /var/www/project-name/logs for each of your projects
 
@tereško :P just trying to help
 
Morning Afternoon Evening, anyone use Amazon S3 here? I need to talk about direct uploading file...I see this designedbyaturtle.co.uk/2016/… I assume it's perfect for my needs but in this case I cannot editing files before upload (eg. if I need to use fmpeg to convert wav files to mp3). Am I missing something? (I have an EC2 instance running LAMP with Ubuntu 14.04)
 
7:56 AM
Anyway thanks a bunch for having a look @PeeHee, I get pretty nervous about writing totally new code. It's why I love @Dave's feedback on PR requests.
IOU a beer.. or tequila.. or lemon cocktail :P
 
:P
 
@SebastianBergmann No. Once the peak is high, it will stay high.
 
@kelunik So I would only find the first test that increases the current peak at the time, of course.
 
But abs(memory_get_usage(true) - $before) might work. You just have to be careful with side-effects like storing results which also consume memory, but it's a good estimation I think.
 
0
Q: How to get the shorten version of url?

Alex StaneseI'm taking part in an interesting project where I need to parse some URL's and find contact details on them. I'm extracting the links from linkedin group for example: http://prntscr.com/cvpnp9 You can see that the url here is very long and somehow obfuscated: https://www.linkedin.com/profile/vie...

 
7:59 AM
@kelunik Thanks!
 
@SebastianBergmann Wait, that would only be the leaks... nevermind. Yeah, memory_get_peak_usage(true) at least gives you the first one that needs significant memory.
 
Thanks :-/
 
Well, I have an ugly hack in mind that might work: Register a tick function and record the memory every tick...
 
user image
13
 
haha
 
8:05 AM
@kelunik Or rather PHP 7.1's async signal handlers instead of a tick function.
 
@SebastianBergmann They're fine for handling signals, but you don't want to handle signals but execute custom code?
 
@kelunik Right. Just because I can do pastebin.com/0bQN3ZCC for timeouts does not mean I can call arbirtrary code on each tick, of course. Damn it.
 
@SebastianBergmann Maybe xhprof can do something you need?
 
I was hoping for something in standard PHP.
And honestly, I lost track which fork of XHProf is "the one".
 
@SebastianBergmann the tideways fork
 
8:12 AM
Ticks are the best thing that comes to my mind currently, but they will slow it down.
Would be cool if we could just reset the memory peak. Maybe we just need some profiling built into PHP.
 
@kelunik if you start someting like that, pls ping me
 
@tereško in my project i don't have directory name "home/installer" but when i try to open my project then it's url like this "http://localhost/themehandler/home/installation:
 
I could maybe write a RFC, but I have hardly any C knowledge, and no PHP internals knowledge.
 
@kelunik Yes, something really simple. Call start(), call stop(), and get the amount of memory allocated in addition to what was allocated at the time start() was called.
 
Can't you just suggest xhprof when composering?
 
8:17 AM
I don't think xhprof will be bundled.
 
Nope. Hence the suggest suggestion :)
 
well, php has native dtrace support. would that work?
 
@Gordon Getting dtrace to work is much more effort than installing XHProf.
 
@ShaileshLimbadiya I have no idea what you are talking about
 
when i run my php project then its path like this
http://localhost/smartsmsmanager/home/installation/
but in my project no any directory that is home
 
8:23 AM
@SebastianBergmann yes, but you asked for a native way not for least effort
 
@Gordon :-)
 
//i.stack.imgur.com/eblcm.gif
 
Sorry
 
Wes
:B
 
8:26 AM
Hey at least I started at fixing it :P
 
Wes
is this elvisphpant
 
!!undo
 
So happy to have original elePHPants that are blue and not branded.
 
@Wes WTF? where can I get this?
 
8:28 AM
at zendcon apparently
:33597158 are you at zendcon? can I bother you to get one for me?
 
@Gordon I am not at ZendCon. I still have to build a reputation as a speaker at local usergroup events before I am ready to present at ZendCon.
4
 
hahahaha :D
 
Actually that is what Zend told me the last time I proposed a talk. Since then I don't bother submitting.
 
moin
 
Anonymous
o/
 
8:38 AM
chris cross o/
 
@Ocramius you are at zendcon. can you bring me one of the elvisphpants pls? I'll pay.
 
@Sean The gif was / is also used for the site logo
Not sure if @LeviMorrison killed that
 
I don't trust tesla
 
Anonymous
8:43 AM
oh it would be sketchy to trust.. but still, awesome
 
mornings!
 
Anonymous
\o
 
o/
 
I am really annoyed that I can't mock final classes since all the libraries seem to work by extending. I want to make everything final by default and not everything has an interface. Am I doing it wrong or would it be worth looking into a way on how to mock final classes?
 
@JayIsTooCommon they would be sketchy to trust. They have proven they have no idea what they are doing / don't care they are doing shit
 
Anonymous
8:45 AM
@PeeHaa What have I missed?
 
^ Indeed, also curious
 
Calling features auto pilot while everybody tells them that is a full retard thing to do, their own camera supplier telling them to not use it for self driving cars and still doing it
ignoring people in general
ignoring the industry advice (volvo) telling them they are doing it wrong
 
15
Q: PHP Mocking Final Class

DanHabibI am attempting to mock a php final class but since it is declared final I keep receiving this error: PHPUnit_Framework_Exception: Class "Doctrine\ORM\Query" is declared "final" and cannot be mocked. Is there anyway to get around this final behavior just for my unit tests without introducing an...

 
@Patrick Depening on who you ask: I would hate you for making things final for one
Don't tell me what I can and can't do
 
^This is also very valid
 
8:48 AM
@Patrick I suggest to ignore final exists
 
@PeeHaa i don't want you to extend my class that was not designed for extension
 
morninininings
 
if final was the default, we wouldn't have as much extension abuse I'm sure
 
Hey fine by me. I would either ignore the thing entirely or wait until it becomes a problem
As said it heavily depends on who you ask
@Patrick That may be true but you are raping me to force something I try not to do either way
 
SOLID
 
8:52 AM
@pmmaga open/closed is not about the extend keyword
 
brb trying to do work work
4
 
Wes
final can be used only by clairvoyants, they know for sure as they can predict the future
 
well actually it seems like Meyers original was, but the one in SOLID is not
@Wes i don't want any extend in my code where the parent was not designed for it. I can predict that.
 
Wes
more seriously: stuff should be wrapped rather than be extended, eg
final class A implements X{}
final class B implements X{ function __construct(A $wrappee){...} }
but that means hard work, [unless...](https://github.com/Netmosfera/PHP-automatic-method-delegation-RFC/blob/master/using-field.md)
i hate md
@Patrick you cannot
 

« first day (2196 days earlier)      last day (2743 days later) »