« first day (1130 days earlier)      last day (3824 days later) » 

12:07 AM
@crypticツ could we spoil the footer with discrete "hosted by" ?
 
@webarto =oO
 
Is that :shocked:?
 
@webarto yeah go ahead, put it on the same line as the 2nd line in footer.
yes, it's the shocked emticon =oP
 
I am shocking :P
 
@webarto push to both master and 1.1 the changes. and target='_blank' same as the rest of links
 
12:12 AM
I have no personal interest there, I said I'd do that in return, we can skip your project if you want to :)
It's just keeping the word.
 
I have no problem with it
 
@crypticツ You've got mail.
 
@webarto ah login info. SSH right?
 
Yeah, SSH, port 22.
 
is it setup to accept keyfiles? I only use them.
 
12:23 AM
Pfffft, not sure really.
Just use the damn password for now >:)
Not sure how to setup that securely, sorry.
Will look into it, tho.
18
A: how do you create an ssh key for another user?

ncessh keys should never be generated for another user. The private key is called private for a reason. If you want to create a keypair for yourself you could do that with ssh-keygen. ssh-keygen -f username creates 2files in the current directory. username.pub is the public key, which you could ap...

 
@webarto I would give you my public key
 
@PeeHaa Nice, awesome.
I'm too tired to think, hope it can wait a bit...
 
Mooooooooooooooooooooooooooorning.
@webarto I read that in the original, semi-robotic female AOL voice.
 
12:39 AM
@DanLugg moaning
 
@PeeHaa I am, actually.
The pain of Composer is too much to contain.
 
@DanLugg Exactly :)
So, what's up people?
howudoin?
 
@DanLugg "The pain of Composer is too much to contain." Are you trying to force it do something it doesn't want to do?
 
@Danack I was, but I was just playing into what @PeeHaa said mostly.
;-)
 
ah - he sets them up, you knock 'em out the park.
 
That's the plan.
Actually, what's actually painful right now, is screwing with some code generation stuff I'm probably going to abandon out of annoyance.
Dynamic proxies, etc.
 
hmmm......you know the class loader in composer doesn't play well with code generation? If the class doesn't exist, and then you generate it, you have to load it by hand, as the Composer class loader caches the fact it doesn't exist...
 
1:02 AM
Yea, I haven't even introduced this to Composer yet.
 
But I can see that being a problem; thanks for the heads up.
 
@DanLugg Isn't code generation meant to be painful?
 
It'd be nice if PHP made it less painful.
 
Stop spamming and go to the sandbox
8 messages moved to bin
2 messages moved to bin
 
1:08 AM
i said thanks not the bot lol
@PeeHaa
 
0
A: How to create game video while playing?

MddfhjjjncffPoop your pants like a fatso would. Then go poop in you friends pants. Trust me it is fun. Just poop them. Go on do it. Im telling u it is fun.

 
@crypticツ u wot m8?
 
*tries it out*
it is fun! =oD
 
@crypticツ I hope your friend didn't need those pants.
 
1:24 AM
try/finally is awesome for AOP.
 
1:36 AM
class Foo {
    public function test() { $this->test(); }
}
class Bar extends Foo {
    public function test() { parent::test(); }
}
class Qux extends Bar {
    public function test() { parent::test(); }
}
$qux = new Qux();
$qux->test();
^^ weird recursion.
 
I'm having the weirdest issue. Im using a php-login script and it worked perfectly on localhost them when I transfered to server it stoped working. I checked and all the file paths are valid. I also checked all the configs
 
1:52 AM
@NoahHuppert "stopped working" is that an error message?
 
@crypticツ Nope. I debugged it to creating a new variable on one line. demo.php-pastebin.com/4NnYV8ee ~ code
stops working on this line $login = new Login();
 
@NoahHuppert It throws down it's tools, sends a letter of demands to management, and forms a picket line out the front of the factory?
That's what happens in England when people 'stop working'.
 
@NoahHuppert if you cannot write your own login code, you should consider other career alternatives
 
@tereško ?
 
2:06 AM
how do you feel about beekeeping ?
 
Love it! jk
y?
Don't reinvent the wheel.
 
@NoahHuppert You should know how a wheel works before using a wheel made by someone else.
 
@crypticツ I do. I just didn't feel like writing a bunch of db code for something that I might not use...
 
2:25 AM
Oh, FFS.
@crypticツ :D
 
@webarto I don't have room for my broom =oP
 
:P
 
just stick the handle to my head, the mane should be good enough for sweeping
oh but then I would look like a retarded unicorn
 
HAH
 
Well im just gona stop doing php :( My localhost is php 5.5 which has all the fancy new password stuff and my server is php 5.3 I forgot to include the compatibility library. I is smart smart ;)
 
2:48 AM
:-)
composer rocks
 
Thanks for reminding me that I don't know how to use it properly :P
Nice and clean :D
 
don't make me re-create that image
 
:D
 
3:05 AM
hi all, can some one tell me how to add 2d array?i know the have array_sum.but i did not know to apply in my case since mine is 2d and my array do not have key. here is sample array and the output needed. pastebin.com/PjPxGNUr
 
@crypticツ thanks cryptic.
appreciate if you can explain about the code so i can more understand and can edit to full fill my requirement. for example this line 'foreach ($arr as $key => $value) ' @crypticツ
 
header.php
<title><?php echo $title ?></title>

mypage.php
<?php include 'header.php'; ?>
<?php $title = 'Page title here'; ?>
why it doesn't works? =p
I think it's not working because the $title is being called further down on the page, so when I echo $title it still isn't declared, right?
any tips to bypass it?
 
3:43 AM
@NinjaEcho Who are you?
 
@Domecraft, Hey Dome, any ideas what might solve my problem? :)
 
No
 
 
1 hour later…
5:10 AM
Hello everyone.
 
user895378
Hmm ... is there a good reason why there's no first() or front() array function (besides that you can call reset($arr); $front = current($arr); ? Just find myself microoptimizing away some things and thought I'd ask :)
 
m59
5:33 AM
I'm instantiating variable controllers based on the request. My controller that deals with users will need to hash and check passwords. I have a class for that, so I want my controller to use that class, but the thing that instantiates the controller has no clue about that... (and therefore can't inject the hashing dependency)
@rdlowrey does this mean use Auryn? lol
I don't know how an IoC container could help here, though.
 
m59
lolz @Mr.Alien
 
haha :D
 
6:16 AM
If I have a indexed table in my database, and it never changes, do I have to update the index? Via the update commands when you're making a query in php?
 
user895378
Assuming MySQL, indexes are updated whenever a write query (insert/update/delete) is performed on the table.
 
hi everyone
i have doubt in cookie is cookies max size is 4kb.... i have different 4 cookie in my project... so my question is 4kb will be for each cookie or for all i can use 4 kb
can anyone answer pls
 
6:33 AM
@rdlowrey and at least one row is affected :)
 
@Jack can you pls clear my doubt?
 
@404NotFound If your cookies can get that big, I would seriously reconsider it.
I believe it's 4K per domain, so that includes all cookies.
 
@Jack oh thanks
 
hi all, i try to apply this code pastebin.com/6pJUPpTW but get error Undefined offset: 0 in this line "$array2[0][$key] += $value;"
can some one help me
 
pastbin link broken here
 
6:45 AM
Morning.
 
@404NotFound pastebin.com/6UPz23xS this one work
 
@Jack Gives what OP wants, includes warning. Answers on that question can't be any better. :)
 
It's like shooting downvoting fish in a barrel.
 
7:05 AM
@Jack Still trying to implement ** operator?
 
@bwoebi I haven't completely given up yet heh
 
I think pow does its job. Do we really need it?
 
Was doing curl fixes for allowing some options to be nullable.
 
@Jack and still failing at parser step?
 
@bwoebi That's where I stopped the last time ... the shift/reduce issues.
 
7:09 AM
@Jack maybe I could look into that at some point in next time…
 
@all could any one help me i am facing an issue??
 
@Yohan Don't try to ping all of us, that's just weird.
 
@Yohan Yes, just solve it. ;)
 
@Jack @Leri first of all sorry and i wanna change httpd.conf but i couldnt make it while i change it apache server nt turning on
 
@bwoebi Hmm, I've tried to find my earlier code, but perhaps I've left it on my laptop ;-)
Otherwise I could have pushed it to github to let you see it.
Not that it's much anyway.
 
m59
7:14 AM
ok, if my api's dispatcher is going to instantiate a controller it knows nothing about, could I use reflection to see what dependencies the controller has and create them to pass in?
 
@Jack any idea??
 
m59
For testing, the dispatcher doesn't lack anything, since it's not "required" to have those dependencies, since it can create them?
 
@Yohan Seriously, stop pinging random people here. Also it's impossible to help you unless some magician enters here.
 
You probably rubbed Apache the wrong way, that's why it's not turned on.
 
7:17 AM
k man am new to this room so only
i wanna change my virtual host to new address for push notification testing but i cant able to change any help
 
You may want to visit serverfault.com instead.
 
hmmm k thanks
 
@bwoebi I would add the new token to zend_language_parser.h right? But that file seems to get generated because it's in .gitignore. How does that work?
 
@Jack bison creates it?
 
@crypticツ i get an error Undefined offset: 0 in this line "$array2[0][$key] += $value;"
 
7:29 AM
It does? Then what does the numbering of the tokens?
 
bison.
off for now.
 
@Jack bison does as well. That's why you should never rely on the token id, but on its name
 
Yeah, thought I had to add #define's into the code ;-)
 
for very same reason token constants in php may vary between releases
 
morning
so I got a comment after 5 months -_-
yep this is what i Need thanks.. — Joshua Fabillar 2 hours ago
 
7:40 AM
just checked the room members list, it's really impressive
 
@HamZa E_TIMEOUT
 
@AlmaDo lol
 
@zerkms I guess that's about - how many people are there?
 
"there"?
 
@bwoebi I've pushed my branch here ... I mean, it seems so simple, but no dice =(
 
7:44 AM
@zerkms in list :D
 
:-S
 
good mornins
 
7:59 AM
so, "New features [to php] require an RFC and must be accepted by the developers." who are these "developers"? The PHP Interpreter | Readme
 
@iroegbu It's basically a voting process, so any contributor has a say.
 
So, if I added a new feature... am I considered to be a contributor?
 
Once you have Wiki karma basically.
 
moin
 
hullo
@JoeWatkins How long have you been working on that debug sapi?
 
8:09 AM
alright @Jack how goes
week or so
 
really? that's a lot of code for just a week :)
 
Hi room
nice to meet you all
i m trying to create slider on the page
right now i have like 10 img tags with hardcoded paths
i want to load the images from an array
how could i do that?
 
9 days github says ... yeah it is .. fun tho :)
 
sure looks like you had fun heh
I wouldn't even know where to start with a project like that ... well, mainly because I know maybe 10% of the core =S
@JoeWatkins Oh btw, could you give me a little hand with this? Can't get bison to process my token addition =(
It just gives me conflicts: 87 shift/reduce.
 
yeah that's going to be a problem
expr Token expr could be one of 87 things, I'm not sure how to work around that ...
hm
strange
 
8:24 AM
It looked easy on paper :)
 
I got it
%left T_SL T_SR T_POW
that will work ...
 
ah, yeah, i was wondering why T_SL and T_SR worked =p
What does %left mean anway? Left associative?
 
yeah
 
I see, so I basically left bison guessing what I meant heh
 
basically yes, stabbing in the dark at 87 different things ...
 
8:28 AM
@Jack nice
 
@HamZa Yeah, it should be hehe
 
what it should mean?
 
@JoeWatkins It compiles, but now gives me a parse error unexpected '*' in xxx heh
 
I only know of one escape and that's on my keyboard ;-)
 
8:31 AM
<ST_IN_SCRIPTING>"\*\*" {
return T_POW;
}
 
ohhh
okay, worth a shot.
 
[joe@fiji php-src]$ sapi/cli/php -r "echo ** 8;"
PHP Parse error: syntax error, unexpected '**' (T_POW) in Command line code on line 1
[joe@fiji php-src]$ sapi/cli/php -r "echo 8 ** 8;"
64
is the math bit right ?
 
yeah :)
ah, awesome!
But why the escaping?
 
because php
 
There's no escaping sequence for *=.
 
8:33 AM
(bison)
I just asked if basic maths was right and I'm being pestered to drive
school run ...
someone needs to talk to my misses about road safety and sleep ...
 
Btw, your phpdbg doesn't work well with make -j2 for some reason.
 
and I don't want to do school runs anymore ...
only -j2 ?
 
libtool: link: sapi/phpdbg/phpdbg.lo' is not a valid libtool object`
 
Then when I run normal make it will compile all the objects. ... owwww
I think it's a race.
 
8:35 AM
abstract class lol {
abstract public static function wut();
public static function rofl() { self::wut(); }
}
class omg extends lol {
public static function wut() {
echo "we're here!";
}
}
omg::rofl();
What am I doing wrong?
" Fatal error: Cannot call abstract method lol::wut() on line 3"
 
You're stuck rofl'ing?
 
so it seems
 
@Jack yeah it sounds like it ... it's not happened to me yet but has happened to me before when working on other things, parallel builds aren't all that reliable ...
 
@Hamster Change self::wut() to static::wut().
 
@Jack Ah. Thanks!
 
8:37 AM
Also, try to avoid static methods in that way.
 
it might be the rule that says clean first .. which is for during development mostly ... make clean doesn't clean /sapi dir properly
 
@JoeWatkins Ooh, I found out that I only have to escape the second * =D
Saving one precious character.
 
@Jack I try, but the alternative in my (practical) case is a bunch of quick singleton classes.
 
@JoeWatkins Anyway, thanks a bunch!
 
8:38 AM
I got lazy. :P
 
np
school run, back soon ...
 
cya
 
9:00 AM
anyone use kahona ?
 
kohana you mean?
 
yeah that ... not the Mafioso words for bollocks
dm told me how to upload docs but I completely forgot ...
something to do with markdown but can't see where to put it ...
@Jack what's is POW meant to mean ?
 
@JoeWatkins X to the power of Y?
 
8 to the power of 8 is not 64
 
You don't say :)
 
9:06 AM
sapi/cli/php -r "echo 8 ** 8;"
64
 
It is now, until I found a way to actually wire the opcode together :)
 
I said is the math bit right and you said yeah !!
 
@JoeWatkins Okay, I understood "it's the math bit, right?"
 
ah I thought so ... that really fucked with me, half way to school I blurted out "8 to the power of 8 is not 64" ...
 
hahaha
 
9:07 AM
** is pow ?
 
@AlmaDo Yup :) playing around with it.
 
how do you intend to implement the math ?
 
I've just introduced the new opcode =D
@JoeWatkins Well, not sure yet ... I think yank the code from pow() or sth.
 
have you seen how fast_add is implemented ?
 
Yeah, I'm not doing assembly just yet =p
 
9:11 AM
:)
it wasn't necessary to use assembly, I wish I could have been a fly on the wall when your face saw the assembly ...
 
Assembly doesn't scare me heh
 
for adding !!! ??
 
You want add to be fast, riiight? :)
The scary part is all those bloody #define instructions :)
And those /* LLVM bug #9164 */ for good measure.
 
indeed I do, but the year is 2013 ... I would be surprised if the same instructions are not generated anyway, try -S bet they are very very very similar
 
I wonder if there's an assembly instruction for pow() though ... hmmm
28
A: How to: pow(real, real) in x86

user434507Just compute it as 2^(y*log2(x)). There is a x86 instruction FYL2X to compute y*log2(x) and a x86 instruction F2XM1 to do exponentiation. F2XM1 requires an argument in [-1,1] range, so you'd have to add some code in between to extract the integer part and the remainder, exponentiate the remainde...

 
9:15 AM
@Jack add pow support for arrays :p
 
oh ... right
@AlmaDo and what would be the expected output of one array to the power of another?
 
@Jack only positive integer powers. That will be treated as decart's product (cortesian product)
it was a joke :p
 
hey, for all you know, it's something nobody had considered before :)
 
huh?.. it has sense in math
but in PHP arrays are hashes, so it will be ambiguous to work with them such way
 
Morning
 
9:21 AM
hi, @Fabien
 
moin
 
hurray .. my pow opcode now always returns int(42), which is the correct answer anyway :)
 
42 is an answer for all
 
I still don't know why there's not a single decent job-site out there.
 
what do you mean?
 
9:33 AM
The information is always so inconsistent.
Half have salaries in titles half don't. location are wish-wash
thank you @Jack :) yes
 
@Fabien if it will help me to find new job - I'll be happy. btw - did you created careers profile?
 
Funnily enough I started one a couple of days before redundancy but I've yet to update it.
tbh I updated my normal CV and thought if I was a prospective employer "Meh"
 
I've created mine, but very few views there :\
 
Like "level" would be nice. No point me looking at any "senior" stuff.
 
user652649
morning
 
9:36 AM
Which would be easier if I could choose a salary range
 
@Fabien may be for me too
 
Trying to figure out why $o = new ${!${''}=f()}(); works :)
crazy madness ..
 
it will not work since f() is undefined
 
yeah yeah
f() can either return an object or a classname
and this works (was something that was discussed here yesterday
NikiC came up with the answer.. the question was from DanLugg
 
could you give sample of f ?
 
9:41 AM
function f() { return new stdClass(); };
function f() { return 'stdClass'; };
both can happen
 
$ sapi/cli/php -r "var_dump(4 ** 4);"
float(256)
progress =D
 
@DamienOvereem phhew..
easy cake :p
 
bits are simple
 
@DamienOvereem I was wondering about that as well ... multiple tricks tied together :)
 
@DamienOvereem its
var_dump(!${''}=f()); // false
var_dump(${''}=f()); // object(stdClass)#1 (0) { }
clear now?
 
9:45 AM
The strangest one is still the use of ${!${''}}
 
The ! is clear yes, but why would new ${false} work ..
${''} isnt that strange.. thats just like $a
except that it wont be "remembered", so wont take any memory
 
@DamienOvereem That's not what I wrote though.
 
wasn't answering you, just pondering :)
 
Combined with the outer ${ ... }
ah okay hehe
 
im indeed most curious about why "new ${false}" would work..
or actually, why it will return the object instead of a boolean value
 
9:47 AM
Well, the ${ <something> } would cause <something> to be cast to string, no?
So false => ''
And so it would retrieve the value of the magical empty variable.
 
indeed
thats part of the magic indeed
 
@DamienOvereem try ${true} and you'll get that :D
I though that part is obvious (i.e. bool to string conversion)
 
hi, @Jimbo
 
never thought of that :) don't use {}'s often.. but yes
 
9:50 AM
I used them rare.. and always had feelings that there was a smell about that
 
But woulnt that make new ${''}() for an object ?
 
Yep
That's the other trick ... $a = 'hello'; new $a(); makes new hello()
 
morning
 
Ohhhh.. and because we stored the value in ${''}, $ = ${''} = "stdClass"
 
@DamienOvereem :p
 
9:52 AM
Yeah :)
 
wtf
;P
holy shit
freaking madness
 
that's another trick with assignment by expression..
 
i have to find a reason to implement that in my code
 
it's as eval() as it gets in my book.
 
just to fuck up co workers
 
9:53 AM
@DamienOvereem do that with your whole code (i.e. when instantiating any object) - when you'll change your job :p
 
then, change the f() to _() to make it locale dependent.
@AlmaDo No, you need to write this from the start, otherwise they can just git reset HEAD~1 on your code =D
 
@Jack bts, why can't we do define(true, false);? (I know why, just complaining about impossibility of great way to screw entire code) :p
 
@AlmaDo Oh, but you can :)
 
@Jack it will not work
 
But not in the global namespace.
 
9:55 AM
hell yes..
 
Curiosity,.. what happens if the passed class has a toString method ..
 
@DamienOvereem just check :p
 
Being able to do it within a namespace is good enough for me though >D
 
later.. i already have a headache.. thx @NikiC ;p
 
@Jack by that you'll spoil only your own code
but much greater will be if that could affect whole codebase :p
 
9:57 AM
Not necessarily.
But yeah, the impact is somewhat diminished for older projects.
 
anyway.. C++'s #ifdef is much more advanced code-spoiling feature :p
 
For sure. That's why we all love C(++)
 

« first day (1130 days earlier)      last day (3824 days later) »