« first day (1122 days earlier)      last day (3817 days later) » 

4:00 PM
@ircmaxell about what do you want to talk next?
 
I don't know 100% yet
 
@ircmaxell btw. the current post is a bit too long for having not so much to say.
 
@webarto did you send that email ?
afternoon all
 
vs7
Hi everyone
 
21 hours ago, by bwoebi
@JoeWatkins Can you give me write access to your phpdbg repo? There are a few things like compiler warnings etc. which want to be fixed ;-)
 
4:06 PM
Keynote talks for 2014 will include @rasmus @markjbrown @mwop @Crell and @CalEvans. What an awesome lineup! #keynotes
5 keynotes? WTF?
 
put in a pr, it's not only my project ...
 
vs7
I need help , i want to develop a crawler why which i can get the data like fb get from a url
title , image , description , link title etc ..
 
@JoeWatkins hmpf…
 
@webarto I just copy-paste C code and have others fix my shit ;-)
 
Can anyone explain to me why method visibility modification via inheritance is a feature?
Eg:
abstract class Foo {
    protected abstract function bar();
}
class Qux extends Foo {
    public function bar() { } // not an error
}
It makes sense that the reverse (public to protected) is erroneous, as that would change the contract, but the above being valid seems ... odd to me.
 
4:16 PM
@Lusitanian :P
 
@PeeHaa PHPOAuthLib IDE of choice is now Dreamweaver BTW
 
@JoeWatkins At live.co.uk? :)
@igorw Genius :D
 
@Lusitanian lol
 
@PeeHaa it has syntax highlighting...
 
Lusitanian, whoa.
and chained type hinting?! :o
 
4:24 PM
Yeah!!! It's fantastic!!!! :D
 
yea, Who needs those auto-completing comment function headers anyway =)
 
4:37 PM
@Lusitanian BTW have you seen codecoverage lately?
 
@PeeHaa no. but if you've improved it i will give you a cookie <3
lemme look
i've been busy with applying to university/college/whateveryouwannacallit
 
@Lusitanian gaaaaaay
 
@PeeHaa ya
" Lines: 71.55% (1059/1480)"
:D
yayayayayayayayayayaya
almost there :)
 
I WANT TO USE RECURSIVE process
for variable like
{
t = chekfunction();
}

function chekfunction()
{
t = randome no;
if(t==1)
return t;
else
chekfunction();
}
is this not correct how can i correct it
 
@Nileshpatel should be return checkFunction();
 
4:44 PM
ok i will try.
 
That's the strangest looking PHP I've ever seen.
 
@Lusitanian damn, my boss saw the cookie on the screen
 
Tell him someone is teaching you about cookies.
 
a programmer admitting they dont know everything about everything, hah :P
 
@Danack ... boss, it's not what you think it is. I really need 3 screens
 
4:45 PM
@happy did he ask for it?
 
@Lusitanian yes
 
@PeeHaa btw phpoauthlib.com finally redirects to github repo. for 1.0 we should throw up an actual website. if only we knew web developers...
 
@PeeHaa or Lusitanian - do you guys have a paid account with scrutinizer-ci.com? Is it worth it?
 
@Lusitanian it's funny because it is true :)
 
@Lusitanian aw noice
@Danack nope
 
4:50 PM
@Danack free. it's an open source project. and it's nice
 
@Lusitanian YAY COOKIE!
 
does quite a nice job
@PeeHaa good boy :)
 
Woof!
 
:P
 
@webarto krakjoe@php.net
 
4:50 PM
Hmm - so I'm just being blind and can't see the free plan on scrutinizer-ci.com/pricing
FAKR
front center.
 
@JoeWatkins Forward'ed. Let me know when you get it.
 
@Danack like the pricing presentation
 
@JoeWatkins you need a check in "step" command if something is in execution…
 
@bwoebi why ?
ta @webarto will get on it tonight
got it
 
@Danack " Open-source repositories are free, forever. Add Repository "
:)
 
4:53 PM
phpdbg> eval return 2+2;
Parse error: syntax error, unexpected 'return' (T_RETURN) in eval()'d code on line 1
@JoeWatkins What's going on there?
 
@Lusitanian It was cunningly hidden, right in the middle.
 
lolol
 
@bwoebi it's a parse error...
no?
 
@JoeWatkins Feel free do to whatever you want. I'm making something, but I'm sort of flooded now, and I don't want to present half-product. Keep up the good work :)
 
@Danack lulz
 
4:55 PM
@ircmaxell Show me in what way that isn't valid PHP? "return 2+2;"?
 
eval return 2+2;. Should be eval("return 2 + 2;"); :-P
 
@Lusitanian This happens every time I'm in a supermarket and can't find something like the cheese. When I finally give up and ask a member of staff, they almost invariable point straight behind me where there is cheese as far as the eye can see.
 
@ircmaxell well, it's phpdbg => github.com/krakjoe/phpdbg
 
I am mostly just trolling
 
4:56 PM
@Danack sounds familiar to me
 
@JoeWatkins that still doesn't explain why this is an E_PARSE
 
look at the code, return return 2+2
 
@JoeWatkins return return?
huh?
I only wrote return once?
 
yes but if you look at the code I linked too ...
eval return 2+2 == return return 2+2
eval 2+2 == return 2+2
 
oh, you have the retval_ptr set…
 
4:59 PM
yes, for display
so that eval ini_get("whatever") or eval get_loaded_extensions() works ...
 
I just don't get now why we then would need to write eval("return 2+2;");
in plain php?
oh, I got it…
ZEND_INCLUDE_OR_EVAL is compiling the raw string and then executing it later without the prefix…
that really confused me now, because the command was called "eval"… @JoeWatkins
@JoeWatkins other problem: there's one opcode missing before the ZEND_RETURN when using eval:
phpdbg> eval 2+2*3;
[OPLINE: 0x10a9da3d8:ZEND_ADD]
    // Where is ZEND_MUL????
[OPLINE: 0x10a9da408:ZEND_RETURN]
[OPLINE: 0x10a9da408:ZEND_RETURN]
8
 
Kinda really want that cookie now.
 
And ZEND_RETURN is there twice…
 
@Fabien Could be worse. You could want ALL THE COOKIES
 
fixed
 
5:07 PM
Hey I have a form where are id wich is coming from db and then it had button called add cart, problem is when I add it to cart it allways have first element id, js here:
$(function() {
$(".button").click(function() {
var id = $("input.id").val();
var action = $("input.action").val();
var dataString = '?page=cart_open&action='+ action + '&id=' + id;
 
@JoeWatkins and fix the broken indentation here: github.com/krakjoe/phpdbg/blob/master/phpdbg_prompt.c#L550 (I have no write access…)
 
lol @Danack You have that bookmarked?
 
if i wanted to have a recreate a session and keep all the same session variables is it safe to just regenerate an id for that session?
 
@Fabien no - I have that blocked
 
@JoeWatkins better :-)
@JoeWatkins I'd suggest making the php functions always defined, just; if it's not used with phpdbg, doing nothing? so that it can be tested with multiple sapis without having to comment out all the debugging statements?
 
5:19 PM
how can I make it defined in other sapis ??
that sort of thing is taken care of in userland ...
I don't intend to rfc this
you must be crazy !!!
 
@Lusitanian have you seen this?
 
if php was going to come with anything like it, it would already have it ... it's not on their mind, at all ...
 
@reikyoushin no. i'll add it to the readme. is this your package?
 
@JoeWatkins well, that's beginning to become the best debugger I've ever seen for PHP…
 
@happy yeah one screen for SO
 
5:22 PM
that doesn't mean anything, apc is the best cache available, lots of things are the best thing available ...
 
@reikyoushin yes :) like I share my rendering and SO on one screen, the middle one for the source and the left one for doc
 
@JoeWatkins I don't know… maybe declare an ext which is only loaded if sapi ≠ phpdbg
@JoeWatkins opcache? made it into php…
 
@Lusitanian nope, i have just found it while checking for alternatives since i didn't get how to implement it (i'm such a noob)
 
I've got to admit, compiling against source is out of the scope of most people, and it would get more use ... but to be honest I'm writing it to code ... not much else ...
 
@reikyoushin regardless added to the readme
 
5:23 PM
Hey
 
opcache is new, it doesn't count ... and isn't a complete solution, it's optimizing ability puts it infront of apc in terms of performance, but it's no replacement ...
 
@JoeWatkins you mean you don't know what to do else?
 
@Lusitanian yeah.. figured you can put it too on the library ports part of your docs
 
@JoeWatkins no replacement?? aha.
 
if you had a stack relying on apc, all of apc, it still relies on apc ...
 
5:26 PM
@JoeWatkins well… okay but everything you can do with apc can also be done with the bundled exts (except maybe a bin_dump or similar cryptic things)
 
hhhuuuuh ?
you don't want to be too general ...
 
?
 
@Lusitanian thanks for the lib btw. ^_^
 
not everything you can do with apc can be done by anything else ...
why would it exist if that were true ....
no, there are extensions that enable you to share some memory, but they all use serialization or some other external library to support storage of the data ...
 
@JoeWatkins because it was the alternative to non-free ZO+?
 
5:29 PM
apc does not, or not always ...
 
@JoeWatkins shmop… you choose your own form of storing…
 
I know, maybe read apc ...
 
@JoeWatkins what do you mean?
 
well it doesn't work for objects, apparently it breaks some unwritten rule I don't understand, but for arrays (HashTable's), apc does not traverse or parse or sort or manipulate the data in any way, hashtables are bitwise copied, bucket by bucket, when you copy out they are just bitwise copied again ... however you do it, whatever form of storage you use, it's not going to be as performant as the one that everything around it is using, what's more, apc has quite a clever allocator underneath
 
@reikyoushin of course. thank @PeeHaa too because he's put in a lot of work while i've been lazy
 
5:36 PM
is more than just sticking strings in shared memory, if that were really a solution to the problems apc solves then it would not exist ...
 
@JoeWatkins what I'd like in PHP is manipulating arrays directly in shared memory…
 
@JoeWatkins undocumented feature are the best [those breaking unwritten rules :] all of this assume you have no memory corruption. What if the server wasn't using ecc ram...
 
not happening
 
@Danack Thank you, sir. $productivity--;
 
5:41 PM
@happy what are you talking about ?.
 
@JoeWatkins something like an ArrayObject class which is stored in shared mem.
an ext could do that I assume.
 
the zend mm prohibits sharing, it will never happen, it is the thing which keeps php serving requests or failing quickly ...
 
@JoeWatkins not the same as you obviously lol sorry about that
 
@JoeWatkins internal classes have getters and setters for their properties table… so, they just could fetch from shared memory…
 
5:43 PM
and what happens when you pass the value to the vm ?
and it tries to free it ?
 
@JoeWatkins the vm won't free that.
 
it will
 
It'll call the internal function ptr of the class
 
you cannot pass other than request bound memory into the vm as a zval, it always causes invalid pointers ... you can override the mm handlers, but this isn't something you should actually do, there are so many extensions that in production rely on the mm to free their leaks in order to keep serving
 
unset_property …?
@JoeWatkins really?! wut.
 
5:46 PM
you could wrap around it, you could make it so the vm never go the shared memory, but you would add so much overhead there would be no point
look at the opcodes when manipulating an object vs array or simlple type with same kind of operations
yeah it's the thing that keeps it safe, it has to be able to free whatever you pass it, and it will at some point try ... even if you think you have it all covered
 
@JoeWatkins well, it would, at least if you're dealing with huge arrays. copying there and there would have too much overhead.
Or how do you handle Stackables with ArrayAccess API in pthreads?
 
the mm is fast, optimized to copy zvals, it's what it "does" ....
you can only optimize calls to handlers so much
no memory is shared in pthreads
 
no, but you always serialize.
 
@DanLugg I suggest using the cheats straight away. Just google cookie clicker cheats - otherwise you may there for a while.
 
well… will maybe try…
 
5:49 PM
yeah but serialize lends itself to the purpose ...
 
@Lusitanian yeah, same with @PeeHaa..
 
Evening folks
 
good evening
 
I don't actually always serialize ... I did test bitwise copying in pthreads, it's no faster than just creating the objects around them until you get to massive data sets not really suitable for the vm at all ...
it's no faster because mutex are still held, it's detectable, but you have to push it so hard to make it be detectable, you cannot prepare for that, even if pthreads were suitable zend is not ...
 
5:51 PM
@Lusitanian if you have some projects which you are lazy about yet you think i can help, i'll be glad to do so.. but i'm still a newb so somebody needs to hit me in the head every so often.. ;)
 
@JoeWatkins but that's why you usually need threads and not just a few processes… to calculate and handle large data concurrently…
 
for sure, but we all work within the wrealms of reality ...
 
@JoeWatkins rewrite Zend! (joking)
 
oooh
there ya go ...
 
5:54 PM
There's an app … ext for everything :-D
 
I think really we're quite glad that everything is isolated, even in pthreads, especially in pthreads ...
it's not quite as isolated as I would like, nor in the right way ... but the isolation we do have we don't want to go tearing down ...
 
ya
 
@Fabien around?
 
6:03 PM
@Incognito a patch is an app? nice.
 
It's all apps, all the way down.
 
@hakre me gonna loose rep :D
 
it's a shame really, in another universe there might be a language with native concurrency with zend as a base, it could be a base, I don't know if they cared while writing it, or if it's incidental ... actually most the unsafe stuff is in php itself and extensions ... mostly php ... all extensions being thin wrappers, there are very few libraries left out in the wild that are not re-entrant or have the option to be, even if it's not being used by php ...
with another tsrm and better extensions php could have native threads ...
 
12 mins ago, by bwoebi
@JoeWatkins rewrite Zend! (joking)
 
@Incognito An operating system is an app?
 
6:05 PM
It's all apps.
 
still nevermind, pthreads is not bad and I can always write in another language :)
 
My compiler is an app
 
@MadaraUchiha have you heard of chromebook?
 
my gf is an app
 
@JoeWatkins go, PHP6 or better Zend Krakjoe Engine 3. You said you want to have something to code :-D
 
6:05 PM
@JoeWatkins lol
 
@bwoebi I couldn't write Zend
I can read it ...
I cannot write Shakespeare, I can read it ... same :)
well I don't think I could, and wouldn't try ...
 
@Danack There's something oddly dissatisfying about infinity cookies.
 
@JoeWatkins quickly thinking, I think of the architecture, the vm etc. could most things remain, just the mm, tsrm etc. need to be changed.
because the grade of abstraction is pretty well for changing such things…
 
the mm in my head is part of Zend, and that's actually not bad, you can set those handlers if all the extensions above zend are going to behave themselves ...
it's not zend that needs changing, it's fine, it's everything else ...
also, the reasons php doesn't have threads are perfectly clear to me, this isn't a project I'd persue at all, it's fun to talk about ... but I'm not facebook :)
I never wrote pthreads with the intention of having it rfc'd, didn't even know what an rfc was at that time and had never signed into irc or read internals or anything like that ...
I'll never put it forward for inclusion, its where it belongs ... quite difficult to get at but not impossible if you are determined ... you have to be determined to succeed ... right @bwoebi :)
 
@JoeWatkins That framework's a beast. I used it just for AMF parsing and wanted to defenestrate afterwards.
 
6:20 PM
oh I'm not talking about the framework, I'm talking about the Zend Engine ... @Incognito
 
Ahhh
 
I don't think we're allowed to talk about frameworks are we ?
:)
right gonna do some of this explain.so thing ...
 
@JoeWatkins why does everyone talk about "I'm not facebook" when he tries to show that we don't need big scaling for our needs …
 
@bwoebi some new learned regex-powaaa :D
1
A: Preg_replace match on word boundery and not in link

HamZaYou could use some dark powers like the following: <a[^>]*>.*?\blorem\b.*?</a>(*SKIP)(*FAIL)|\blorem\b Let's break it down: <a[^>]*> # match an a tag .*? # match anything ungreedy until ... \blorem\b # match lorem with boundaries .*? # match...

 
@bwoebi they are the only people not able to see the obvious limits, or resources to ignore them ....
 
6:38 PM
<story>Today I had to code in AS3 ...</story>
 
@HamZa I've heard about it…
 
well I haven't ...
nor have I heard of a server without curl extension ...
 
@bwoebi I learned it from NikiC
 
haha
 
6:39 PM
actionscript
flash
?
 
@HamZa me too ;-P
 
don't tell people you are working with flash ... you come over all porn-site-designery ....
 
@JoeWatkins Yeah, it was a mess. I never coded in AS3 and suddenly we needed to create a class, methods, loops in it -- That escalated quickly
@JoeWatkins We had to make 3 balls (different colors) move and bounce :)
 
@JoeWatkins you need curl?! use Artax… :-)
 
uni ?
 
6:41 PM
@JoeWatkins wut?
 
@JoeWatkins hmmm sort of, it's not really uni. Here it's called HBO. A more "practical" study than uni
 
ah right cool
just so you know, nobody will ever ask you to make two balls bounce by 9am the next day ... nobody is wanting bouncing balls in a rush, or at all ...
it could only be during education that someone sets you the task of making some balls bounce ...
 
@JoeWatkins hahaha I know. It's not even mandatory for me, I just thought it may be interesting to go to that course "Simulation techniques"
 
@bwoebi I want curl ... because I'm a spoiled brat and the four lines I need it for are already written
ah so it sounds like it's working up to something interesting ...
 
@JoeWatkins haha :-D
 
6:44 PM
must be complicated if a good starting point is bouncing balls ... we all thought we had bouncing balls covered at age 22 months ...
apparently not !!!
 
unfortunately it's in AS3, JS would be cooler :)
 
@HamZa why not PHP in a ncurses+xterm terminal (lol)
 
@bwoebi /me hides from the challenge
 
@HamZa challenge? lol.
 
@bwoebi you want bouncing balls with PHP in a terminal O_o ?
 
6:47 PM
I think you could do it with directx and php if you were determined enough ...
(I know you can)
 
meh, would rather read a book ...
 
@HamZa No
I want bouncing balls with Mindfuck.
Problem?
 
@HamZa why not … LOL
 
@MadaraUchiha You could use tsukiyumi :P
 
@HamZa Sure why not. I have rick rolls in ascii. Muahahaha.
 
6:50 PM
@Incognito lol
 
Let me find it...
 
That would be epic if implemented in a console in a product xD
 
@HamZa good question why the GUI was ever invented…
 
My webserver's broken, where do you want the file?
 
pastebin ?
 
6:53 PM
@Incognito What kind of file is it?
JS?
 
Terminal codes.
Basically cat filename gives you the animation.
 
@Incognito ohw ...
 
@JoeWatkins phpdbg.com :)
 
sweeet :)
 
@webarto 403
 
6:59 PM
@webarto forbidden :P
 
Clone it from here:
https://gist.github.com/7418419.git
Then cat the file.
 
403 means it works fine :P
 
@bwoebi Clone it, then cat it.
 
pfff I've catted worse :P
 
7:04 PM
@Incognito I did cat file >/dev/zero … Nothing was shown
:-D
 
derp
just cat it :P
fullscreen
I should expose it as a telnet site.
 
@MadaraUchiha It'd be a little fun no?
 
@Fabien I still don't understand the project
 
@MadaraUchiha Just a PHP Go board.
Using REACT
 
react is the name of far too many projects.
it should just be blacklisted.
 
7:11 PM
@Fabien Why do you need react? Don't you believe a JS/ajax solution would fit better?
(You will by definition need JavaScript whether you want it or not)
 
Just to take a more PHP route is all
Not a full fledged ranking thing. just a go board, some stones etc.
for fun
 
@Fabien We could try. I'm not very good with REACT and the such though :P
 
@MadaraUchiha I'm not roping you in :P You've got lots on your plate already.
Unless your particularly wanting to
 
I'll check it out regardless :P
 
problem outputting constants it seems
with explain
 
CAM
7:23 PM
Is anyone familiar w/ composer + puppet + github enterprise ?
I am having some issues provisioning and setting up a Symfony App, using both github and GH Enterprise, (Host key verification failed. on my enterprise.tld composer install ) is my issue, I have added the /etc/ssh/ssh_known_hosts requiorements for both URLS (github.com & enterprise.tld)
 
@JoeWatkins explain?
 
@CAM Yes, but I don't use it.
 
CAM
Darn
thx @Incognito
 
@CAM Do you use HTTPS and have a certificate error because you have a custom tld?
 
CAM
No
we use git @
 
7:31 PM
Is your git server using HTTPS behind the scenes?
 
CAM
should I change the vcs repo types
 
I think composer might make its request via http.
 
CAM
well it works if I ssh in
but provisioning via puppet it craps out
 
Did you switch IP addresses or machines or something recently?
ie. 'warning someone might be doing something nasty'
(bad known_hosts values)
 
CAM
Nope
I am new to the team and I am improving provisioning a bit
So ... ie composer install via vagrant
 
7:38 PM
I'm not sure what you mean by composer install via vagrant
You have a vagrant with some of your specific deps?
 
CAM
Oh
yea so we have vagrant provision the box w/ puppet manifests and I just added a stage to do the composer install and then run the assetic stuff so front end does not have to worry aboutr it
 
Do you mean installing composer to the machine or the part where composer installs the deps for your product?
 
CAM
Yes
oh
and yes
 
oh, is the time on the machine valid? That can goof a lot of security sometimes.
 
CAM
both
Hmm
good call
/I mean git installwell
 
7:43 PM
I've run into that with NPM a lot in the past when I was goofing around on a raspi
 
CAM
from the git repos
time is way off
So you are saying that if the time is off on the VM the git clone to my private server will fail
 
PHP sucks.
 
I'm not sure, but I've seen issues before because time is way off and a lot of security depends on it.
@BenjaminGruenbaum Yo mama.
 
@BenjaminGruenbaum Word
 
@BenjaminGruenbaum JS sucks.
 
7:50 PM
@bwoebi Yeah, but at least it's not PHP ^^
 
guys, why is it that I have to call e.g. phing, with php phing after installing them via composer? instead of just phing.
 
@BenjaminGruenbaum Yeah, but a least it's not JS ^^
 
@markus Because phing is just a php script rather than an application?
 
@Incognito thx
 
@Danack no?! becaus it's a php bin, it starts with #!/usr/bin/env php
so it should switch context by itself
it's a shell wrapper and it's there exactly so I can call phing and not php phing
so why won't it listen :) ?
 

« first day (1122 days earlier)      last day (3817 days later) »