« first day (2417 days earlier)      last day (2534 days later) » 

5:07 PM
You guys n gals have been drinking yet?
 
0/
 
Even for that site it cannot be
yo
 
I need some PHP help, but not with code.
does someone know some PHP Server direct-link-ban techniques? I am trying to access an image through the api, but my request gets rejected. If i try it through chrome browser, i get the image. Is it something about Request/Response headers? Content types?
What do you call this type of banning>
What do i search for to get around this?
 
Hotlinking
I think. It's for not linking images without sone header or cookue etc.
 
cookuemonster
 
5:15 PM
@PeeHaa oh no... this is perfect, what's ur problem bro?
 
This is bullshit altogether. These "developers" should just shut up. Years of coding knowledge thrown into the trash https://laracasts.com/series/php-bits/episodes/1
link fail
I have no idea how the internet works
lol
 
omg
I actually now continued wtaching it
OMG
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA‌​AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
I closed it
I can't
 
And those comments
Read them
DO IT
 
WAT EventInterface with listen and fire !? WTF
 
5:18 PM
It's ok
 
He gets rid of it!
 
Visual Debt WTF is that?
 
:P
 
hope you're happy, I can't possibly work for the rest of the day
 
5:19 PM
I'm done with PHP I won'ever tuch it again. Thanks @PeeHaa now I have to Javaize myself :/
 
@brzuchal You ever sneezed and you were too late and your screen filled with snot?
 
@PeeHaa Sorry my translator doesn't get that joke :/
 
@brzuchal Visual debt
 
@PeeHaa :D
 
5:23 PM
seriously ffs. I was already fucking stressed, because demo tomorrow, and lotsa stuff to do, now I am angry with life.
 
Sorry all :P
 
@brzuchal thanks, that was it.
I just didn't know what it was called.
 
@rupinderjeet You're welcome.
Is it a proper sentence in English? I might put a comment under this tutorial: WTF! That is the biggest bullshit I ever listen to! It's a piece of shitty info which none of developers should ever listen to.
 
listened
 
5:28 PM
There is something wrong I think the order should be different
 
It's not very constructive though :P
Also "piece of shitty info" is somewhat weird
 
piece of shit?
 
Looks better
also
no developer
 
"to which no developper should ever listen"
 
^ that with a single p
 
5:29 PM
thx
 
So much that
 
> Is it a proper sentence in English?
Seeing as "the fucking fuckers fucked." is a proper sentence in English, I doubt there's many combinations of words that aren't proper sentences.
 
5:40 PM
If anyone has used varnish with AB testing, I'd like to know the best approach
 
@Jeeves I think you should yield on people which are linking to laracasts again and tell then to don't do that again, ever.
 
@brzuchal I like him.
 
fuck
 
:)
 
@Jeeves are you sentient yet?
 
5:42 PM
@FélixGagnon-Grenier No no no. I am just a dumb bot. Carry one filthy human errrr master.
 
@Danack try to prepare different links for everything what should be different from A to B and you can choose the right version using some dynamic content depentdent on some cookie etc. I know Google has some mechanism for choosing A or B version for user
 
> All of the examples given for how to do AB testing in varnish are trivial e.g. a single test with just two options.
> Does anyone have any advice on how to manage a medium number of tests without the varnish config files becoming horrendous?
> Also - it's not clear to me which approach is best to manage the AB tests for edge side includes e.g. using vary on cookies, to cache different versions with the same url, or to rewrite the include url, to avoid needing to use the possibly fragile 'vary' caching. Does anyone have advice as to which is easier to manage long term?
 
I was running multiple AB tests but that was on the beggining of using Varnish, I remembder the easiest way was to cache fragments on different url's .
 
evenin
 
\o
 
5:46 PM
-4
Q: HIDEN DOWLOAD FILE

G.RamiI have a website and I want to make it start download file without show window of download or progress, in other word without knowledge of user.

praise kek
 
hahahaha
awwwww deleted... :(
at least some assholes are honest
 
O/
anyone know If I can transfer from stripe to a online account, like neteller?
 
@Trowski So should I revert the getBuffer commit?
 
Any recommendations for Kafka client in PHP?
 
6:32 PM
@ircmaxell what are the Less expensive Omnipay gateways ?
https://omnipay.thephpleague.com/ I am testing stripr but it does not work for banks in brazil
someone know?
 
I believe I just wrote the yoloest piece of shit-code I ever did
 
Wes
@FélixGagnon-Grenier yet. there is always tomorrow
 
hehe :)
true dat. never say never, they say
 
6:57 PM
@guiwoda @Ocramius @nicolopigna @CiaranMcNulty Best practices aren’t real. It’s just a group of people who copied w… https://twitter.com/i/web/status/869265813857075200
6
 
I totally agree: I'm gonna inline all my code immediately for performance
 
I believe I've had enough internets for a year
 
Same, same
 
Anyone have any idea how they achieved this? marvelfly.com
 
7:08 PM
@LucasBustamante facebook api
 
@OtávioBarreto yeah but how do they bypass facebook cache for that page?
 
Not sure how it's done
 
@OtávioBarreto that's my point xD
It seems they keep several parallel "pages" on cache, when you debug it with facebook debugger
and they clear the cache of each page every few seconds/minutes
 
0
Q: How to make Facebook Open Graph change image and title on every share

Lucas BustamanteI want to do a marketing campaign where every time a user shares a specific page, it shows up a different title, image and description. The problem is that Facebook caches this data for 24h. However, this website achieved this: http://marvelfly.com/ If you debug this page on Facebook Debugger, ...

 
7:25 PM
In the subject of callables|closures again I see ReflectionFunction does accept function name or closure so generally there is no way to reflect callable argument :/
 
7:39 PM
finished first part of my enum patch, woo
 
@guiwoda @jeffrey_way @Ocramius @nicolopigna @CiaranMcNulty Question *everything*... https://t.co/5TDwy2UVOZ
3
 
@brzuchal hmm? 3v4l.org/dt5cg
btw Auryn would be severely lacking if that wasn't possible.
 
7:55 PM
@Danack yes, this works only with valid closure and with valid function name, but not wortking with invokable object and not working with callable as array construct
It doesn't even work with static method as a string with :: inside
 
@PeeHaa biutifuru
 
The point is using callable typehint you are able to use ReflectionFunction only in 2 from 6 types of callables
 
I am almost feeling bad for the guy if he just wouldn't crap over innocent people watching it
I feel like he just dug a hole he cannot get out of anymore and only keeps digging
 
@PeeHaa I'm writing a fun blogpost, we'll see if that's enough of a hole
 
@PeeHaa Or he could have been driven insane by the Laravel.
Jul 14 '16 at 19:02, by Danack
They are nuts. Seriously, I consider some groups of programmers to have gone collectively insane, and you should do the opposite of what they do, even if you're not 100% sure why you should do the opposite.
5
 
7:58 PM
hmm okay this opcache-borked
 
That's also a possibility :)
 
let's see what's broken…
 
Enterprise Java devs, Ruby, and now Laravel.
 
anyway if you're curious, this is what I'm up to: github.com/php/php-src/compare/…
 
puts on protective googles
 
8:00 PM
ah, this isn't deserializable…
 
I've got even two vote ups on my badly designed English sentence laracasts.com/series/php-bits/episodes/1#comment-3330336999 :)
fk I linked it, I should get with wet fish from @DaveRandom now :/
@Danack I think author missed with the name and it should be LarEVIL :)
 
Hi
Flask on Python <3
 
@brzuchal There's a worse one that is NSFW
 
Gimme that
 
Nope
 
8:11 PM
Worse than art-is-anal?
 
@Ocramius so I won't sleep tonight looking for it, damm
 
@Danack Yyyyyup.
 
accidentally tweet it at me.
 
reopens twitter
 
@Danack sorry!
 
8:23 PM
hmm ... looks like my lib ended on some habrahabr.ru roundup :)
 
@tereško all I can read there is: PostgreSQL, BDD, TDD :) unfortunatelyy don't know cyrylica signs
 
I can read an A4 page in about an hour, if it is in russian
 
I've noticed link to our RFC: Object typehint there habrahabr.ru/company/zfort/blog/329656
@tereško So that's not so fast. Better than I - would need to scan it somehow then even don't know if OCR catches it
 
@brzuchal it says the voting is currently happening on that RFC, the typehint will cover all objects and speculates, that "this type might be useful, when the specific type of a dependency is not know"
 
8:32 PM
Okay, I might need help with OPcache debugging.
 
@tereško thx
 
@bwoebi @NikiC any idea why the test in this patch errors with Suit undeclared when OPcache is enabled (i.e. behaves as if there is no such class)? I'm guessing OPcache is deciding not to remove the ZEND_DECLARE_INHERITED_CLASS opcodes or something, but I can't see anything obvious right now that I'm doing wrong.
oh wait I think I see it
 L6    #2     DECLARE_INHERITED_CLASS "Suit"               @0                   @5
 L6    #3     FETCH_CLASS                                  "Suit"               @0
 L6    #4     DECLARE_INHERITED_CLASS "suit::diamond"      @0                   @4
lowercase issue maybe
opline->op1_type = IS_CONST;
LITERAL_STR(opline->op1, lcname);
Looks like lowercase to me… and yet.
 
I cant find any way to implement it
hls-aes video
 
@AbrarAhmed If I remember right, HTTP Live Streaming is an Apple thing
 
yes. But its not a live stream
its a video with aes encryption
 
8:40 PM
same technology though apparently
 
This somehow plays a non downloadable video
 
@AbrarAhmed DRM of some sort I assume
 
Maybe @Andrea
 
@Andrea what's the output with opcache?
 
@bwoebi complains about Suit not existing at the first static method call on it
 
8:47 PM
@Andrea no, opcode output
 
oh, that's an excerpt
 
is that from opcache? mhm
 
L1-56 {main}() /Users/ajf/Projects/2014/PHP/php-src/Zend/tests/enums/basic.phpt - 0x102e03458 + 64 ops
 L1    #0     ECHO                    "--TEST--\nEnums: "+
 L6    #1     FETCH_CLASS                                  "Enum"               @0
 L6    #2     DECLARE_INHERITED_CLASS "Suit"               @0                   @5
 L6    #3     FETCH_CLASS                                  "Suit"               @0
 L6    #4     DECLARE_INHERITED_CLASS "suit::diamond"      @0                   @4
 L6    #5     FETCH_CLASS                                  "Suit"               @0
this is probably enough to demonstrate issue
yeah it is since L13 is the issue
DECLARE_INHERITED_CLASS "Suit" is very weird because I definitely emit a lowercase string
…in fact let's printf that in case zend_string_tolower() doesn't like me
ooh wait actually lemme disable opcache and re-print opcodes to confirm if this is the issue
L1-56 {main}() /Users/ajf/Projects/2014/PHP/php-src/Zend/tests/enums/basic.phpt - 0x101067a00 + 65 ops
 L1    #0     ECHO                    "--TEST--\nEnums: "+
 L6    #1     FETCH_CLASS                                  "Enum"               @0
 L6    #2     DECLARE_INHERITED_CLASS "suit"               @0                   @1
 L6    #3     FETCH_CLASS                                  "suit"               @2
 L6    #4     DECLARE_INHERITED_CLASS "suit::diamond"      @2                   @3
 L6    #5     FETCH_CLASS                                  "suit"               @4
Yep. Note the capitalisation: opcache is breaking something
 
-dopcache.optimization_level=0
 
though it might not be opcache's fault. maybe I've stuck the wrong capitalisation somewhere…
 
8:51 PM
You're not defining any new opcodes, right?
 
@NikiC right.
 
@NikiC nope. vanilla classes.
@NikiC no change, looks like Optimizer is not the problem
wait no what
phpdbg produces different opcodes now
Ah.
Yes, that fixes it. …partly?
 
?
 
New and interesting problem now:
Fatal error: Uncaught TypeError: Argument 1 passed to likes_suits() must be an instance of Suit, instance of Suit::Spade given, called in /Users/ajf/Projects/2014/PHP/php-src/Zend/tests/enums/basic.phpt on line 34 and defined in /Users/ajf/Projects/2014/PHP/php-src/Zend/tests/enums/basic.phpt:30
Stack trace:
#0 /Users/ajf/Projects/2014/PHP/php-src/Zend/tests/enums/basic.phpt(34): likes_suits(Object(Suit::Spade))
#1 {main}
  thrown in /Users/ajf/Projects/2014/PHP/php-src/Zend/tests/enums/basic.phpt on line 30
Now it defines the class, but inheritance is broken, I guess…?
hmm…
 
@Andrea You did not zend_string_copy the lcnames
 
8:56 PM
@NikiC Ah, are they modified later?
 
@Andrea nah, just thought that you were using it multiple times, but misread
 
@NikiC ah
 
So, what does valgrind say?
 
@NikiC It unfortunately still doesn't work on my OS :(
 
wat
are you on windows?
 
8:59 PM
no, macOS
 
wat
 
doesn't work on Sierra apparently?
 
Are you f*ing telling me that valgrind doesn't work on macos?
Why would anyone ever use that OS then?!
 
@NikiC it's more that it takes forever to be able to work on the latest version
 
ugh
 
9:01 PM
@NikiC yes. Instruments is a good alternative though.
And libgmalloc.dylib
 
Valgrind is the only thing that stands between a C developer and the all devouring abyss
5
 
Valgrind is the only thing that stands between a C developer and the all devouring abyss
 
@Andrea did you actually ever hear of libgmalloc.dylib?
in lldb:
env DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
env USE_ZEND_ALLOC=0
then run
 
hmm okay
wow PHP just segfaults :D
 
9:04 PM
right
 
let's try disabling opcache
 
it will segfault at the invalid read/write
 
oh right
I see.
 
What's great about libgmalloc is that it's much faster than valgrind…
 
Sorry, don't know if this is the right place, but I'm having trouble with BOM on one of my web pages. I've tried to save the file in Notepad++ without BOM, but it's still appearing. If you go to this page: newton-poppleford-weather.co.uk/data.htm you can see the white space and as soon as you click on 1 of the buttons it goes away.
 
9:07 PM
@Andrea and if you attach instruments.app to it, you can also track the locations of allocations and frees of every allocation in the whole program ever.
 
…fine, I'll install Xcode…
 
@Andrea you don't like that thing? :-D
 
@bwoebi it's more it takes up disk space and it was scarce for me before I upgraded this MacBook Air's SSD
 
@Andrea having half a TB with only 280 GB used here…
how much did you have? 128?
 
@bwoebi yeah, really more like 120GB
things would be fine were this just a boot drive, but it's also the master copy of all my projects, my music collection, and my photos
 
9:17 PM
@Andrea You'll in particular need the Allocations template within Instruments (Counters is also useful, that's the perf equivalent for macOS)
 
Ok, then...
 
@Andrea effectively, to attach a debugger to a running instruments session, you'll need to add some sort of sleep first, halt the program then and attach via the debugger to the running process. I find that somewhat annoying to not be able to just attach the debugger from start, but it works…
/bedtime for me now… night.
 
9:45 PM
sooooooo ... I have been thinking
should a service layer instance have a direct dependency on other service layer instances?
 
@tereško I don't see why not, if the usecase arises
 
because a little voice in my head is telling me, that it looks like an equivalent of a code-smell for architecture
and I don't know why
 
@WilliamGrimsley I strongly recommend using PHPStorm rather than using Notepad. It has a 30 day free trial, student and open source cheap licenses.
 
@MadaraUchiha do you have any links I could read on the subject
 
I don't, I'm afraid
Definitely not at this hour XD
I might be able to find something tomorrow though, if you remind me
 
10:09 PM
Hello, me again. I'm having a really weird problem. I'm trying to do a file upload, but for some reason if I name the image something than it's "tmp_name" it fails to upload?
Okay, never mind. I'm even more confused now.
 
New blogpost: "Eliminating Visual Debt" https://ocramius.github.io/blog/eliminating-visual-debt/
Tombstone, hopefully
 
I'm really really confused what is going wrong.
 
@Ocramius a bit over the top I think. Then again, his comments were just assanine, so...
 
Yeh, fair enuff
 
I'm debating writing a post about complexity
to address those items
 
10:16 PM
Tbh, I was looking for "code quality and code practices vs defect ratio"
but all that comes up is super-SEO-optimised paywall-oriented paper websites
so meh.
 
Code Complete 2
has a chapter on that specifically
including a table. Remind me tomorrow when I am at the office and I'll take a photo of it for you
 
Anonymous
@Ocramius Typo?
 
@ircmaxell thanks if you do! If you can just add it as a comment to the post that would be great :-)
 
Anonymous
->>
 
@samayo yeh
 
Anonymous
10:25 PM
ctrl+find
 
Anonymous
Maybe it's a new feature ... who knows
 
@samayo pushed, thx
 
hehehe :)
Otherwise you're not being "pragmatic", you just don't know any better (what we call "junior")...
enough of a shot?
 
what bast IDE for php ?
 
oh, ircmaxell is here
 
Anonymous
10:46 PM
@moathdev If you have 8GB+ ram then use PHPStorm otherwise Sublimetext3 and it's rivals are okay
 
also, how are the Rails developers :D
(those tweets sound like a barely restrained rant)
 
@tereško honestly, depends on a number of architectural questions. how are you splitting up your domain, and does it make sense (meaning not crossing domain boundaries). Also: instances are difficult, are you talking about abstract concepts filled by another instance in the same layer? or are you talking a hard dependency
 
hard dependencies
 
@moathdev phpstorm.
 
what I have is AccessControl (working title, probably will change) that already needs a Search service ... and that AccessControl is already being used by a different class, that I did not even put in a Service namespace, but just plopped directly in /src
and that's the third class I am writing for this library
my "fuck, this will be a mess" sense is tingling, @ircmaxell
 
10:57 PM
that should tell you everything you need to know
 
@ircmaxell hehe
 
11:27 PM
@NikiC It's got fonts that don't make your eyes bleed.
 

« first day (2417 days earlier)      last day (2534 days later) »