« first day (2052 days earlier)      last day (2909 days later) » 

11:00 AM
@NikiC Hmm, not sure what I've seen; perhaps I've understood it in context back then … Better have it marco explain with a complete example again…
@NikiC I absolutely agree. Only thing I've said:
16 mins ago, by bwoebi
I was saying that $a = new class { public string $p; } $b = new class { public string $p; } $a->p = &$b->p; could possibly be possible…
but just that particular special case of making a reference between properties of the same type
 
it would be so strange if that were the only thing that worked ...
 
I'm not sure how it's related to fluent interfaces at all, but I'd guess if you assume that public fields are a part of an interface of a class, then all the changes of proxied object's fields should probably be propagated to the proxy itself
 
I don't like it either. Just saying that this special case may actually be possible
 
@nikita2206 But why can't this by solved by holding to the proxied object?
And forwarding property access to it?
Unless this is purely a performance concern, which I don't think it is
 
Better just have @Ocramius explain it again in clear words
 
11:06 AM
afk a while, if marcus comes, ping me so I have a bookmark of conversation please
 
hello everybody
short question
not sure this is the best chat to ask this
usually when people embed an image in a webpage they use something like <img src="xxx"... so you can easily obtain the source link but what about this video: vier.be/theskyisthelimit/videos/aflevering-van-12-april/1840782 it looks there is no link for the entire video. By going trough the network console I found they use links to small parts of the video in order to buffer it. I fyou click on that link it downloads like 10sec of the video.
BTW: this is a belgian website, so some things might be blocked for you due to geolocation
 
It requires me to log in
 
I can give you my login credentials
one sec
you can login with:
xzekizva@sharklasers.com
helloWorld123!
@PeeHaa
 
11:22 AM
lol they don't allow dutch people :-)
 
really?
omg...
so basically what s happening
is that I can see small chunck of the video being downloaded
 
Isn't the video not just chunked encoded?
 
and every url ends with .ts
@PeeHa
 
FastRoute is really awesome!
 
@trilolil ts files are mpeg
 
11:24 AM
ok
how could I obtain the entire video all at once
instead of all these chuncks?
 
@trilolil Search the web. There is software that does it.
 
I have already searched and tried many
that s why I am asking this here
...
 
@bwoebi Well
He's not wrong :D
 
@MadaraUchiha that doesn't make it less wut
 
11:27 AM
@bwoebi I probably wouldn't PR it, but for consistency I would have also done it. Assuming the codebase uses strict every where
 
@PeeHaa nope
some places do, others not
 
poop
 
well so far I don t know..
how to download the .ts stream
 
!!google donload ts stream
 
11:31 AM
Search for "donload ts stream" (https://www.google.com/search?q=donload+ts+stream&lr=lang_en)
• Grab Any Media 5 | download video from .ts fragme… - (https://www.youtube.com/watch?v=qyvqVL25Jqo)
• Download TS files from video stream - Stack Overf… - You would need to download all of the transport stream (.ts) files, and concatenate them into a si… (http://stackoverflow.com/questions/22188332/download-ts-files-from-video-stream)
• Download and merge HTTP Live Streaming .ts files… - Raw. Download and merge HTTP Live Streaming .ts files … if necessary, convert the *.ts file with a… (https:/
 
The second result seems easy enough. As in download + concatenate
 
@Jeeves: 1)tried Grab Any Media 5: don t see how to run the program. there is no exe or installer...

2) they don t give a real solution. I mean they give the theoretical solution that I already knew as well....

3) yes ok and how do you donwload all these .ts files at once? The entire video is like 1hour, while every chuck is only 10 sec...
 
sunday!
 
The third link even contains php
 
the first issue is that they ask for a .m3u8 link
which I can t even find
they use flash and that complicates things
 
11:38 AM
Did you check the requests of the browser for the file?
 
I can see in the network window that every time there is something happening with the .ts files
that s it so far...
how would you recommend me checking these requests?
 
f12 -> network tab -> filter on m3u8
Alternatively check the source of the page
 
nothing
ctrl + u, ctrl+f for m3u8 = nothing
f12... : nothing
 
Well you can always decompile the flash file
 
this is what I get: imgur.com/mtb138T
nothing usefull right?
ooooh no
I see smth now
some m3u8
stuff
 
11:43 AM
...
 
Ok now I have the m3u8 link
what next?
 
I'm done holding your hand sorry
 
please! I have tried many things, I tried multiple tools from online
but this is just not my area of expertise
 
@PeeHaa :{P
 
this si why I am a litlle lost
 
11:45 AM
I already gave you everything you need. Hell I even fetched google results for you...
 
Technically that was @Jeeves
 
True :P
@Jeeves <3
 
@PeeHaa I love you too :-)
 
aww
 
@PeeHaa I looked at Jeeves(!) solutions...
and the 2 first didn t work
 
11:47 AM
I am rewatching Code Geass!!
 
!!imdb Code Geass
woops :P
 
I cannot find that title.
 
oh animecrap
 
Anime FTW!
just watch it!
 
Neh not my thing
 
11:49 AM
:/
!!import zen
 
Ekn
!!should PeeHaa watch Code Geass or not?
 
@PeeHaa should watch Code Geass.
 
YAY!!!!!!!!!!
 
@Jeeves you suck
 
@PeeHaa And you like it.
 
Ekn
11:54 AM
@Jeeves <3
 
@Ekn I love you too :-)
 
Ekn
^^,
 
hello everyone. can i ask you about json parsing in laravel?
 
Ekn
I think this time I got a working set of bash scripts for a quick php7+pgsql+cli+fpm install
 
yum install -y php70 php70-fpm php70-cli postgres-server postgres-devel?
 
Ekn
12:01 PM
might have done stupid things there.. I'm still not awake..
I just needed it to make sure other devs also do a correct install and don't call me this often for this kind of stuff
 
Ekn
12:23 PM
lol.. I forgot phpize. it works now
I might try adding pthreads and apcu to install.sh too
 
HTTP/1.1 200 OK
Server: nginx/1.6.3
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/7.0.7
Cache-Control: no-cache
Date: Sun, 29 May 2016 12:30:19 GMT
Strict-Transport-Security: max-age=15768000; includeSubdomains; preload
Public-Key-Pins: pin-sha256="MqRIBGp3ha+CsWQmLSUWjt8VNpPUZRZVJel089OJbQM="; pin-sha256="eFBvkQ4t//OSjQE3fiTZIo8tP/UEVw3jJ4kc+ZWBon4="; max-age=15768000; includeSubdomains
 
no reply?
!!command list
 
Commands currently mapped:
 > - Executes code snippets on 3v4l.org and displays the output (3v4l # Eval)
 ? - Retrieves and displays search results from Google (Google # Search)
 are - Should I write a description or rather not? (Should # Is)
 canon - Posts links to canonical resources on various subjects (Canonicals # canon)
 chuck - Posts a random Chuck Norris joke (ChuckSkeet # Chuck)
 do - Should I write a description or rather not? (Should # Is)
 docs - Searches the PHP manual and displays links with a summary of the result (PHPDocs # Search)
 
There is no such thing as options. Just head/get/post
 
12:32 PM
!!plugin
 
@bwoebi Syntax: plugin [list|disable|enable] [plugin-name]
 
!!plugin list
 
Currently registered plugins:
[X] Canonicals - Posts links to canonical resources on various subjects
[X] ChuckSkeet - Posts a random Chuck Norris/Jon Skeet joke on request
[X] CodeFormat - Asks users to format their code when unformatted multi-line code blocks are posted
[X] PHPDocs - Searches the PHP manual and displays links with a summary of the result
[X] 3v4l - Executes code snippets on 3v4l.org and displays the output
[X] Google - Retrieves and displays search results from Google
[X] Github - Displays Github status, profile, or repo information
 
!!plugin list HTTPRequester
 
Command endpoints for plugin 'HTTPRequester' (enabled):
[X] GET - Sends HTTP GET request and displays the headers of the response (Default command: get, Mapped commands: get)
[X] POST - Sends HTTP POST request and displays the headers of the response (Default command: post, Mapped commands: post)
[X] HEAD - Sends HTTP HEAD request and displays the headers of the response (Default command: head, Mapped commands: head)
 
12:32 PM
hmpf
I thought I could dynamically map that
 
You can map aliases, but it still needs backend changes :)
 
I meant map !!options to HTTPRequester # OPTIONS
 
yes but the endoints are hard coded because it needs logic
 
right, that's the issue
 
How would you see it any other way?
It's not real AI like it knows what you mean by dumping arbitrary commands :P
!!giphy ai
 
12:35 PM
well, obviously dynamic endpoints which can be mapped to a generic fallback function
 
@PeeHaa !!http method url and then map !!get to !!http method, but that's currently not possible I think.
 
@kelunik yeah, something like that
 
1 message moved to Orphan GIFs
 
Maybe it's possible with alias, don't know, but it's not possible with !!command map
 
we could add something like !!learn of the JS room...
 
12:36 PM
@kelunik Nope
@Saitama It's somewhere in the todo list iirc
 
@Saitama What does it do?
 
oh...
 
Nope. It's just in my head :P
@kelunik You can add simple custom commands at runtime
 
@kelunik it adds new commands, and specifies the logic for the commands afaik
^ that
 
Not so much logic. Or at least very limited
 
12:38 PM
yes.
 
!!learn poop 💩
Stuff like that
 
It's useful for some things, but usually a simple plugin is fine, too.
!!canon
^ that's something for !!learn
 
You mean to add canons at runtime?
 
Things that don't change often but are pinned regularly.
 
runtimes changeable welcome message would also be nice
 
12:43 PM
yeah.
 
Also room specific cough @DaveRandom cough
 
!!should I continue improving my space invaders or install security updates?
 
You should continue improving my space invaders.
 
:P
@Jeeves s/my/your
 
@Jeeves MY, not YOURS.
 
FINDING DORY IS COMING!!!!
 
in JavaScript, 53 secs ago, by Caprica Six
@towc learn: Teaches me a command. /learn cmdName outputPattern [inputRegex [description]]
jeeves > cap either way :-)
 
@PeeHaa is that just text transformation?
 
yeah
 
meeeeh
 
12:51 PM
in JavaScript, 36 secs ago, by Awal Garg
@PeeHaa simple command mapping mostly, with a printf like support for some special words in the output
 
Wes
hodor
 
'nin
 
Does anyone know a good wiki / documentation system? If not, I think I'll build one.
 
1:34 PM
Is that inner ORDER BY useless in this query? (because I have an outer ORDER BY)
(SELECT id, event, seen, time_stamp
 FROM notifications n
 WHERE id_user = :id AND seen IS NULL
) UNION
(SELECT id, event, seen, time_stamp
 FROM notifications n
 WHERE id_user = :id
 ORDER BY (seen IS NULL) desc, time_stamp desc
 LIMIT 15
)
ORDER BY (seen IS NULL) desc, time_stamp desc;
 
@kelunik None that don't suck that I know of. Depending on what's it going to be what you are going to build I might have a use for it though :P
 
Well, currently using MediaWiki for one thing and Jekyll for amphp.org
Both not really what I want.
MediaWiki missing easier backups / upgrading / skins (especially of extensions and the like) and Jekyll gets really complicated if you want to program something using the template language.
 
I never understood jekyll. Like at all
 
posted on May 29, 2016 by gourabnagDev

*BTW, Still no CGI support... :(*

 
@kelunik backup is just cp -R on the mysql table?^^
 
1:42 PM
@bwoebi Backup is mysqldump + image uploads + skins + extensions
 
and upgrade is pretty easy or am I missing something?
 
@bwoebi it is?
 
@kelunik It's like executing a single php file
 
for the main thing, yeah.
 
@Feeds Whoever you may be ... you just committed your vendor directory
 
1:45 PM
lol
I think it's @Saitama if I'm not mistaken
@kelunik well, for upgrading you just need a database backup and for everything else normal backups (full-disk, like on LVM snapshot basis) should be done.
 
@NikiC it was me... I forgot to add it to the gitignore :P 😞
 
@Saitama simple… just do not use git add . on root…
 
@bwoebi I always do that. :-D
 
git add --up and git commit -a ftw
 
I never do that … as I usually have a bunch of test files residing in my git roots after a while
 
1:52 PM
@bwoebi yeah, that
Where "a bunch" is "a few hundred" in the worst cases
 
@NikiC What does up do?
 
especially true for my main php-src working dir
 
@PeeHaa Adds everything already in the index
That is only modified files, not added files
 
Oh nice
 
@NikiC I have a lot of files named a.php, b.php, ... etc.
then there's a file named _
one named __
 
1:54 PM
@bwoebi I use tNNN.php files ^^
 
one named ex.php
@NikiC that sounds more ordered than I have ^^
 
Though at some point this will overflow and I'll have to switch to tNNNN.php
 
hehe
and then tens of callgrind and cachegrind files there
 
@bwoebi true ... and various outN files for stderr redirections...
 
hehe
 
2:02 PM
krakjoe@fiji:/usr/src/php-src$ ls -lash *php
4.0K -rw-rw-r-- 1 krakjoe krakjoe   36 Apr 26 17:48 a.php
4.0K -rw-rw-r-- 1 krakjoe krakjoe  174 Apr 22 08:06 array.php
4.0K -rw-rw-r-- 1 krakjoe krakjoe  188 Apr 25 05:40 attr.php
4.0K -rw-rw-r-- 1 krakjoe krakjoe  285 May 20 12:53 b.php
4.0K -rw-rw-r-- 1 krakjoe krakjoe   70 May 28 17:18 bug.php
4.0K -rw-rw-r-- 1 krakjoe krakjoe  416 Apr 15 08:05 called.php
4.0K -rw-rw-r-- 1 krakjoe krakjoe   32 May 15 10:47 clo.php
4.0K -rw-rw-r-- 1 krakjoe krakjoe  111 Mar 30 21:33 crash.php
hehe
krakjoe@fiji:/usr/src/php-src$ find /usr/src -name bug.php 2>/dev/null
/usr/src/pthreads/bug.php
/usr/src/autostrict/bug.php
/usr/src/php-src/bug.php
/usr/src/concurrent/bug.php
/usr/src/uopz/bug.php
/usr/src/apcu/bug.php
/usr/src/pecl-networking-ssh2/bug.php
and those ...
 
@JoeWatkins that's not many
 
yeah, every so often I delete all of them ...
actually I'm trying to use bug.php, then turn into phpt when whatever the thing I was looking at is fixed ...
 
ok ....
Hello
 
Anonymous
2:38 PM
Yo
 
3:03 PM
!!rfcs
 
@bwoebi Just use a directory like sandbox or local-test and add it to your global .gitignore.
 
that's not practical
 
Or *.t.php
 
I don't have consistent names
 
3:10 PM
Then use consistent names. ^^
 
Nah, I rather don't do git add .
I really don't miss it ^^
 
3:32 PM
Hi guys, is it possible that file_get_contents returns null if the loaded file's encoding is wrong?
 
3:42 PM
!!imdb perks of being a wallflower
 
[ The Perks of Being a Wallflower ] 2012, Stephen Chbosky
 
Guys, how to get value in hashtag in URL, like this: localhost/GetHashValue.php#q=Get Me , Example Code: if(q != ""){echo q;} else {echo "Hashtag value is empty!";}
 
@CharlesCraft50 You don't serverside
 
Ok
@PeeHaa What do you mean?
 
#foo is never send to the server
 
3:46 PM
@PeeHaa How Google do that? like: google .com/#q=139821938 ???
 
where do you see that url?
 
google
browser
when you search
 
You can parse_url the request uri
 
@staabm That doesn't contain the fragment though
@CharlesCraft50 Doesn't for me
 
Check the _SERVER vars.. There should be a antry with the full url
 
3:49 PM
It's never send to the server to begin with
162
Q: Can I read the hash portion of the URL on my server-side application (PHP, Ruby, Python, etc.)

JarvisAssuming a URL of: www.mysite.com?val=1#part2 PHP can read the request variables "val1" using the GET array. Is the hash value part2 also readable? or is this only upto the browser and JavaScript.

 
google.com.ph/#q=PHP - Hashtag works in google
 
That's because they have a JS script which handles it
 
They use hashtag instead of question mark
 
@bwoebi Mediawiki update nearly done, after fixing the search extension manually to be compatible with 1.26 ... still missing a fix for the default syntax highlighting.
 
@kelunik well, sure, that's the same with every thing … don't upgrade if you cannot upgrade your deps
 
4:07 PM
@MadaraUchiha can you confirm stackoverflow.com/q/37512018/508666 is another team ibm bluemix sockpuppet?
 
What are differ ways to create a chat application in PHP
One I know is using Ajax call
What are other ways?
 
Search for "ratchet" (https://www.google.com/search?q=ratchet&lr=lang_en)
• Urban Dictionary: Ratchet - Ratchet. A diva, mostly from urban cities and ghettos, that has reason to believe she is every man… (http://www.urbandictionary.com/define.php?term=Ratchet)
• Ratchet - Wikipedia, the free encyclopedia - Ratchet may refer to: Contents. [hide]. 1 Device; 2 Film and television; 3 Music; 4 Other uses; 5… (https://en.wikipedia.org/wiki/Ratchet)
• What does ratchet mean? ratchet Definition. Meani… - This Slang page is designed to explain what the meaning of ratchet is. The slang word / phra
 
!!package amphp/aerys
 
[ amphp/aerys ] A non-blocking HTTP/Websocket server
 
@Exception You most likely want to use websockets
 
4:10 PM
did you guys watch the CL final?
 
Wes
noon
 
'n
 
Wes
'
 
Ekn
o/
 
@Wes o/
 
4:13 PM
@peeHaa thanks for your reply but can you explain it a bit
 
@bwoebi Syntax highlighting is a core extension, they just removed that option as it seems. And search, well, dunno why they used a pre-1.17 API.
 
What is better, Node.js or PHP?
I use php alot
 
@Exception Ratchet?
 
@CharlesCraft50 Don't forget to ask this question in the JS room.
 
@CharlesCraft50 Depends. If you want to be hipster, use Node.
 
4:16 PM
@Saitama sorry selected you by mistake
 
!!should CharlesCraft50 go with Node.js or PHP?
 
@CharlesCraft50 should PHP.
 
@Jeeves <3
 
^ There you go.
 
Yeah I love PHP, I use it always
 
4:17 PM
@bwoebi Huh? Why didn't it chat back?
@Jeeves you dead?
 
@PeeHaa Nope. Not that I know of...
 
@PeeHaa Because reply.
 
@PeeHaa perhaps because of direct reply
 
hmmm odd
oooooh
Why didn't I implement that?
@Jeeves ^
Same here. No idea...
 
!!did @Wes finish the logo yet?
!!command map did should is
 
4:18 PM
Command 'did' is now mapped to Should # is
 
!!did @Wes finish the logo yet?
 
God, yes!
 
Where is it?
 
Wes
you wish
 
:P
 
4:19 PM
!!is @Jeeves always right?
 
I think so.
Yes.
 
Wes
!!is @Wes an idiot?
 
Let me think about it … wait … yes … well actually, no.
 
Wes
you are wrong jeev
 
Anonymous
!!wotd
 
4:22 PM
metanoia: a profound, usually spiritual, transformation; conversion.
 
!!do you?
 
Let me think about it … wait … yes … well actually, no.
 
Anonymous
!!fuge
 
@Jeeves your dumb
 
@PeeHaa @bwoebi @Trowski So what do we need for a good doc / wiki system? Custom skins, (versioned) API reference, autoupdate on push / release, normal pages, tutorial series, what else?
 
4:25 PM
@kelunik autoupdate on push/release??
@kelunik and a proper navigation
 
search
@bwoebi Of the API reference / latest version information.
 
@kelunik you mean a generated API reference from signatures and docblocks?
 
@bwoebi yes
 
ah okay
 
Anonymous
4:28 PM
@kelunik which of the projects are you guys working on the most? Arya, Ayers, amphp?
 
Anonymous
I want to see if I can test/contribute
 
@kelunik I think you can just use mediawiki for that…
just needs a script to put docs in a mediawiki compatible format
 
@samayo Arya is pretty much dead / unmaintained.
Mostly Aerys and Amp v2 currently.
@bwoebi Good luck with that ...
The API reference is fine for many things, it can be separate. People are familiar with this format of documentation.
 
@kelunik it's just about creating the proper templates
@kelunik java devs, yes… php devs, not so much.
 
@kelunik I used MkDocs for icicle.io/docs. It was alright, but I don't think it supported autoupdate on push or versioning.
 
4:34 PM
@bwoebi Needs updates more or less frequently, especially annoying with the current extension system.
Doesn't have a code aware search, the default search is not usable, sphinx isn't maintained enough to be compatible with the latest version.
Docs need a small proxy for /latest redirects at docs.engine-alpha.org
 
Anonymous
@kelunik why is Arya dead? Isn't anyone using it for something? If given the chance I could commit the hell out of it, but I'm not sure if anyone agrees with my ideas.
 
@bwoebi Mediawiki templates?
 
@kelunik no, templates for phpdocumentor returning mediawiki syntax
 
@samayo Yes, we still use it for a small side-project. But just because that's a legacy project.
@bwoebi and the same for at least javadoc.
Have fun with XSL.
 
why xsl?
 
4:42 PM
Because phpdocumentor.
 
??
it's twig templates?
 
@kelunik wrong path
 
@kelunik automatic api docs generating, a proper editor
 
@PeeHaa Why a proper editor? Using git and something like markdown should be fine for most things?
 
Uploading images is one
pdf generating
 
Who needs a PDF? :P
But yes, offline support is a thing it should have.
 
Dunno. Just yelling things that pop in my head :)
 
Markdown in phpDoc maybe with an @example etc. tag that links to example usages.
 
4:49 PM
@bwoebi A much simpler implementation: github.com/amphp/observable
Observable is also an Awaitable, so if you only care about the resolution value you don't have to subscribe. subscribe() returns a Disposable that also is an Awaitable, but can fail if the subscribed function throws. Awaitables can be emitted, but if the observable resolves before the awaitable resolves, then the value isn't omitted. Yielding to back-pressure can ensure a value is fully emitted/handled before emitting another.
Observer is an iterator that can be used within a coroutine instead of subscribe.
An observable can emit another observable, in which case the observable will emit values from the emitted observable.
Calling dispose() on a Disposable immediately fails the disposable with a DisposedException, but does not fail the observable or any other subscribers.
 

« first day (2052 days earlier)      last day (2909 days later) »