« first day (808 days earlier)      last day (4156 days later) » 

12:00 AM
@ircmaxell why can we not?
 
Will the short echo work?
 
because the short_open_tags directive is PHP_INI_PERDIR...
 
@Charles On 5.4 it will
@ircmaxell ah, crap
@ircmaxell I ran into that issue in my own test coverage too
 
yeah... So unless we want to switch out the tokenizer with our own...
 
ended up just skipping those tests ^^
 
12:01 AM
which at some point :-P
 
@ircmaxell easier to emulate that option
 
I think error handling and classes will get us to at least 60 to 70 percent coverage by themselves...
@NikiC famous last words :-)
 
@ircmaxell Not famous last words
Experience :P
 
Anyone know of, or want to build a userland implementation of `token_get_all()`?
 
why don't you ask me first :D
 
12:04 AM
Evening everyone.
 
@NikiC I did :-)
Ok, I'm out... BB tomorrow! Have a happy and safe New Year everyone!!!
 
complete?
 
no
 
;-)
 
12:05 AM
missing heredoc i think
didn't bother with that basically because it would make the lexer less pure ;)
 
Well, we'll pull it in at some point... By then end, I'd love to get to the point where we have nothing but low level operations...
@NikiC make it an interface, which defaults to the core tokenizer. But if you want a pure PHP or custom tokenizer, you can swap it out...
Laterz
 
@ircmaxell not sure how much sense that makes :D I think it always comes down to what the actual goal with this is ^^
 
Happy New Year everyone \o/ Hurray!
This year's resolution is to double my reputation points ;)
 
@fedmich Here here! Awesome resolution :)
 
@fedmich Aim higher. How about 10x?
 
12:07 AM
Thanks
If I werent working a dayjob, I could aim 10x
so lets take baby steps for now
 
My goals are to stabilize Ardent and prototype.php.net
 
@NikiC
 
1,300 * 2 = 3000 is my target :)
 
@fedmich: I wish my employee made annual salary raise by that formula
60$/hr + 5% = 100$/hr
 
@fedmich That sounds like PHP math, I like it
 
12:10 AM
hehe
 
Is there a standard name for a "segment" of a URI path? By which I mean /this-part-right-here/or-this-part/
 
@Bracketworks Perhaps our friend @rdlowrey will know.
 
@ircmaxell And re the emulation see this: github.com/nikic/PHP-Parser/blob/master/lib/PHPParser/Lexer/…
 
@LeviMorrison Perhaps he shall. He changed his picture back, man I've been gone a long time.
 
Happy New Year to everyone from the UST timezone
 
12:14 AM
Happy New Year!
15
here ya go
 
user1125394
that's actually the real GMT new year
 
tz wars?
@MarkBaker your name sounds familiar
 
user1125394
nah let's not
 
Happy New year
 
happy new year!! :) can I get a ★
2
 
12:17 AM
@Nikic - just a humble fan of yours, I've been having fun with your parser for testing code for deprecated functions
 
@Raymond ★ for you :)
 
:) thanks!
 
how about me too? ★ = NY hats right?
2
 
@Raymond ★ ★ ★
 
Thanks
Got my NY hat now :) will wear this for 4days
 
user1125394
12:29 AM
enjoy the new year ...........................
 
user1125394
requires Chrome
 
0
Q: Need to know if the magic __call() request is expecting a return result

David BaucumEssentially, I want to enact different behavior in the following two scenarios. <?php $foo = Bar(); echo $foo->baz(1); $foo->baz(1); I want to handle "echo $foo->baz(1)" differently because the call is expecting a return result. I am wiring up these calls to a pl/sql backend, where p...

Not a good way to start the year :)
 
user1125394
/me getting web css designer
 
@Baba I'll take a "WHY WOULD YOU DO THAT" question any day over a "give me the codes" / "these are my requirements" question.
 
@Charles funny enough ... i think its possible
 
12:33 AM
@Baba Returning an object with __toString may do
 
exactly
 
@MarkBaker cool, do you have the code for that published?
 
@dev-null-dweller the main issue is $foo->baz(1); differently because __toString is called
 
does a HTTP header set via header() override a header set via <meta>?
 
user1125394
12:38 AM
it's different
 
@NikiC - 'fraid not - written purely for functionality, and pretty dirty code at that
 
@Baba Whole solution is not worth mentioning since OP wants to know it on __call level, and there is no way to know it here.
 
@cyril that's cool, I feel sorry to and dizzy for that guy there
 
I think it's an entire moot point given that he hasn't told us how he's intending to glue PHP into pl/sql.
 
@Baba - a debug backtrace, then parse the line where the function is called might tell you, but it isn't clean
 
12:42 AM
Sigh. The php manual generator puts everything in a .refsect1 except the header in a p tag.
That is very annoying. That means that if you have a table in there, Chrome (and other browsers) will close the p tag but leaving it non-empty because of whitespace.
 
@Baba - it's breaking SOLID principles though - creating a dependency between the method and the way that it's called that simply shouldn't exist
 
@MarkBaker yeah .. all possible methods looks like hack ... very dirty
@dev-null-dweller true ...
 
posted on January 01, 2013 by Derick Rethans

OpenStreetMap: A Year of Edits 2012 London, UK Tuesday, January 1st 2013, 00:04 GMT Just like last year I've analysed all the edits to OpenStreetMap and produced a visualisation. It was a bit trickier this year as I also wanted to visualize the work of the redaction bot as well as the "redaction period" and the switch to ODbL for Op

 
@MarkBaker i really think with more details on what the OP whats to achieve not how he wants it one can come up with a better solution ...
 
Actually, my last statement isn't true. SOME elements generate the p tag, not all the .refsect1.
 
12:46 AM
@LeviMorrison, are you actually able to change the generated HTML?
 
@LeviMorrison any reason why we are missing Doubly linked list
 
Hey guys
Anyone still here?
 
@Baba We aren't; it's called LinkedList.
@Charles It's possibly but not typically encouraged.
 
Happy New Year everybody! Wish you a good health and of course, this year -- tons of money, women and a Ferrari
 
12:53 AM
Does anybody know regular expressions/can help me out?
 
@LeviMorrison think you would separate Linked list from Doubly linked list ....
 
@ShaquinTrifonoff Lol I've seen it
 
@Baba I think it's a pointless distinction between the two. I used Pair to build singly linked lists in case you are wondering.
 
Happy New Year, all.
 
1:01 AM
@LeviMorrison looking through it again ... i see what you are trying to achieve
 
@davidethell Happy drunk to your year too
 
Happy new Year
@PeeHaa ............ Beery New Bottle to you
 
@Baba I beer you the best whiskey too
 
@PeeHaa Congratulations .. wishing you a better JOB this year :)
2
Q: PHP if statement: use "OR" or ||?

reformedif($foo == 0 or $bar == 1 || $baz == 2) { ... } Is it better to use "or" or || and is there any significant difference between them?

 
@Baba lol ty. But at least I got a pretty good bottle of champagne the last working day of the previous year, so thats gootta be worth at leat a couple of days iright? :)
 
1:13 AM
@PeeHaa lol
 
I'm going to meet some freiands talk to you all latedrs
^crap typing I know you get what I meant right?
 
No coding while drunk, ya hear?
5
 
Coding while high or on pain medication though, that's just fine.
 
1:30 AM
@LeviMorrison On pages like this, could you decrease the top & bottom margins on the "PHP Manual", "Function Reference", etc...
 
@Nile Probably. It's odd how once you start messing with spaces other things look really bad.
 
@LeviMorrison Yeah. And how would a toggle user contributed notes button look? I think it'd make pages look less intimidating
Plus shouldn't be hard
 
1:44 AM
@Nile You want a 'Hide user notes' option for side-wide? Or page-specific?
 
Apparently $year++, grats all on surviving another one.
 
@LeviMorrison What do you mean?
 
@Nile Do you want to each notes section to toggle or have an option in my.php to hide them site-wide?
 
@LeviMorrison Both would be good, actually. Defaulted to what's in my.php but users can toggle on the page anways
 
I wonder if Google would consider that to be content hiding.
 
1:49 AM
I doubt it.
@LeviMorrison I think it'd be a nice feature, you?
 
Unsure.
Something like that probably needs to be discussed.
That would be a significant content 'chopping' so to speak.
Some would say yes because lots of the comments are garbage.
I'd just say: cleanup bad comments.
 
Well a simple Javascript button wouldn't hurt for now, simply page-specific
 
At the moment I don't really have the time. I'm dealing with issues I consider to be critical to launching it in case I get outvoted in two weeks.
 
Okay. Are you working on it right now?
 
I'm working on the website actively, yes.
Committed several things today.
 
 
2 hours later…
3:40 AM
Happy new year beauriful PHP ppl! haha
PHP rocks
 
Happy new year to you too
 
4:26 AM
Happy New Year
 
haii all Happy NEW YEAR
 
C++ SUCKS!
I mean: evening all
 
3 hours ago, by Levi Morrison
No coding while drunk, ya hear?
 
damn you I was just reading that ±>
:D
CODE WHILE YOU'RE DRUNK AND LET THE UNIT TESTS HANDLE THE REST
 
Is this an appropriate ?
 
4:34 AM
there :)
@Nile As a matter of fact I even went through all the trouble to downvote it :P
 
Good, good. :)
 
@PeeHaa you're doing it wrong. you write the code while sober, then write the tests when drunk.
 
@igorw Eeeeeeeek! Haven't tried that one before. It sounds like a solid plan. That's what the mean when they say: "fool proof" right? REitgh?
 
yes, it works. scientifically proven
 
OMG. I left my test editor opener. Bad thing are going to happen for the person looking into what I am going to do now. Have fun "tomorrow @peehaa"
 
4:38 AM
trust me
 
Oh I truzt you
 
you will invent time travel to fix the mistakes you make tonight. all in all it's a win
 
I feel like it's going to be a win
 
Hi, has anybody used aws_sdk.
 
I'm glad I have created I drawing of what I was doing earlier today: uploader.pieterhordijk.com/download/32
Doubt it's going to help me though
I feel like trolling in [jquery]
 
4:43 AM
@PeeHaa you making a jQuery MVC framework? ^^
 
> Once a div is offed can it be onned?
1
Q: Switch divs off/on

JoseBazBazOnce a div is offed can it be onned? FIRST, $("#num-one").off(); $("#num-two").off(); $("#num-three").off(); THEN LATER ON, $("#num-one").on(); $("#num-two").on(); $("#num-three").on(); Because the divs are no longer responding to click event...

@igorw neh image is for the uploader
juqery is just trolling on so
 
.off such a bad API...
 
I thinbk I'm going to write a jQuery plugin to off somethign
 
the .on kind of made sense, ok
but verbing everything is an american thing
I guess it's the functional anti-reaction to the kingdom of nouns
 
@igorw Please, verb is a noun... Stop trying to verb everything
 
4:48 AM
@Nile hey, did you music lately? I totally potato!
 
@PeeHaa lol... why?
 
@PeeHaa LOL!
 
Wut??? I don't understand MD anymoar
 
@PeeHaa must... resist... upvote
 
4:49 AM
:-D
i tried, it doeznt work — Nile 35 secs ago
 
@all I am using AWS SDK. I would like to list all the resource available in a region in AWS. Currently am implementing this by calling the individual functions and taking the count but that is time consuming. Is there any single function call that returns all these count values. Would love if someone could point me in the right direction at least.
 
I lol'ed wd sire :)
 
@PeeHaa your answer is a bit offen-sive
 
1 sec
 
@igorw I'll have you know "offed" is an actual verb.
 
4:51 AM
offed. past participle, past tense of off
Verb
Kill; murder: "he was hired to off her stalker".
 
"Onning" and "onned," however, are not.
 
seems legit
 
> To go away; leave: Off or I'll call the police.
> To murder.
 
 
Like the update @PeeHaa
 
4:53 AM
yea, especially the parse error
 
But you can't do that in Javascript
 
good stuff!
 
@igorw stackoverflow.com/a/14107889/508666 better ? I implemented deffense
 
function(element, deffense = 'up') {
No default values in Javascript
 
@Nile shut up! php sucks!
 
4:53 AM
@Nile fuck you too :)
 
why is anyone writing new PHP in 2012?
 
=)
 
I just implemented websocket server in node.js!!!
 
You can always say:
 
Fun thing is I took measure aka typeof just my brain is making fun of me
crap
-e * 99
 
4:55 AM
if(typeof deffense === "undefined") deffense = "up";
 
@PeeHaa s/deffense/defense/g
 
What are you???????????????????? Get of my fucking back will ya!!!!!!!!
:_D
 
whahaha
@PeeHaa just trying to ensure quality on SO, you know
 
hehehehe
Now I want to write a demo just to ensure quality
 
write a test for it
 
4:57 AM
take a shot first
 
every time your tests fail, you take a shot
2
but apply this patch to PHPUnit first: github.com/igorw/phpunit/compare/fuuuuuu
 
Have you done a PR? This is really a critical missing feature bug IMHO
k. I give up writing a demo. Lazyness == tigerblood
WIN!
 
Just looking through @PeeHaa's answers, and is this one (not his) stupid or is it just me?
4
A: How to validate an email address in PHP

Cameron MartinYou can use filter_var for this. function validateEmail($email) { return filter_var($email, FILTER_VALIDATE_EMAIL) }

 
@PeeHaa I'm afraid my lawyers advised me against a PR, it could have legal and political implications
 
Besides the missing semicolon, who would write a function for such a thing?
 
5:02 AM
@Nile the question is, why would you look through @PeeHaa's answers?
 
@Nile That's kinda pretty fucked yesah
@igorw Dragons be here :D
 
> You can even give your pony the same name as any of the functions.
 
I'm proud of that carefully selected answer. It took my some time to research and realize. But once I got it... FUCK YEAH PONY!
 
function rainbow_dash() { goto finish_line; }
 
my = me.proof reading like a pro
 
5:04 AM
HAPPY NEW YEAR anyone in eastern time zone :D :D :D
 
@ShaquinTrifonoff Heya!! Happy new year :D
 
@igorw goto is not used enough IMHO. I don't know why because it is damn useful. goto ALL THE THINGS
 
@ShyamK hi :)
 
@Doorknob Happy drunk to your newsful too!
 
@PeeHaa somewhere I heard that lambda was the ultimate goto
 
5:06 AM
@Shyam Happy New Year
 
:)
 
@Akhil Happy new year to you too :D
 
lambda is just a silverbullet no question asksed
-s + punctuation
 
so anyone got any new year resolutions?
 
λ‎
 
5:07 AM
@ShyamK Start finishing projects I have started
Yoiuz
 
If at first you don't succeed, that's one data point.
3
 
^ That is you? in my language
@Nile true story bro. Reason I don't do it :D
I'm kinda somewhat ultimately hungry. Not african hungry, but still
I feel the need to plunder something
Yes victory!
 
@PeeHaa Stop wasting time I would say. But then I'd end up doing just that. :(
 
Damnit I can't find my phone #notagoodsign
 
@Nile I would not call that looping, but recursion
 
5:11 AM
Better drink my own piss
 
but then again, according to "lambda is the ultimate goto" it does not matter
@PeeHaa yes
 
Hydtration is importantz
 
@PeeHaa alcohol dehydrates your entities. u must drink water then read ze doctrine, I tell you.
 
@igorw I don't need waterz. I needz bacon!
Yo Levi!
 
:) Happy New Year everyone.
Still isn't New Year for me yet.
1 hour, 40 minutes to go.
 
5:20 AM
@LeviMorrison Your in the wrong timezone man ;)
 
@LeviMorrison hurry up dude
 
your = you are correctly spelled and you know it
 
@LeviMorrison Same
 
5:53 AM
CV at this hour? :)
 
'night, enjoy your belated newyear whenever it may occur!
 
 
2 hours later…
8:02 AM
Happy new year, PST style!
 
@Charles happy new year you too
@Charles ohh i did knew that its in wordpress ..not kinda wp lover
now i feel my answer makes no sense ...
 
8:31 AM
posted on January 01, 2013 by Lorna Mitchell

A few people have told me it's their New Year's resolution to become a ZCE this year, and I'm sure they're not the only ones. I regularly help developers and teams prepare for ZCE, so I thought I'd make up a mini package of tips, tricks and a full set sample questions with solutions and explanations, for anyone who won't be taking a whole preparation course. The package costs 25 USD (that's a

 
user1125394
^^ no thx
 
8:53 AM
I use two salts for hashing password. One is user specific data and another is application specific data.
like hash('sha256', "PASSWORD:APPSALT:USEREMAIL");
Is there any better way ?
 
user1125394
9:08 AM
3 salts
 
10:11 AM
it might be newbie question but how to access a variable to included file ... like

i have created `$page =1`
include'includes/tpl_function.php';
but when i can not able to access value of $page in tpl_function.php .... why ?
 
10:25 AM
but when i do this by function its works like a charm ..
 
hi every1
I need help in magento
1
Q: I new custom tab for specific product type only not for all product type

Pragnesh ChauhanI want to add new custom tab like in image "Price - Size" for my custom product type only I have try code from this link-1 and link-2 but it show tab on all product type add/edit my question is same as this but want to do this using coding mysql4-install-0.1.0.php $installer = $this; $insta...

 
user1125394
@NullPointer in a context of a class or not? then maybe it's $this->page
 
@cyril i am even not using class ..... just like pastebin.com/3auAE0K8
i tried also making variable .. global
 
user1125394
try with $page=2 after include, else idk
 
i want to access this $page in tpl_function.php if i include after include i wont be able to use value in $page ...
 
10:44 AM
@NullPointer Happy New Year
 
@Baba you too baba ....:)
 
@NullPointer any plans for 2013
 
@Baba gonna learn c programming ... want to work in research center
how about you ?
 
@NullPointer C cool
@NullPointer I plan to develop my own payment system this year
 
10:47 AM
looks like a cool project..
 
Yeah .... it should be challenging too
 
Hey everyone
 
I have this error... Call to a member function prepare() on a non-object, can someone please help solve this? Code is @ pastebin.com/MZhWxuvk
 
10:50 AM
how to pass variable to included file ? pastebin.com/hQ5sAjfq
 
@NullPointer are you the one having this issue ?
 
@Baba not sure ... but probably not ..
 
@BrendonMcBain var_dump($this->options['db_handle']) what do you get
@NullPointer ok ... let me just ignore it then
 
@Baba confused
 
@Baba Hmm, I got int(0), found my problem
 
10:54 AM
@NullPointer I wanted to know if you need help with that code ?
@BrendonMcBain good
 
:6946803
// demo.php
<?php
  include'includes/start.php';
  $page=2;
  include'includes/tpl_function.php';

//tpl_function.php
<?php
        die($page)
and its get me nothing when i run demo.php
 
@NullPointer there is no error
die has issues with integer
use $page="2";
you would see the output
Have seen it before but just ignored
 
yey ..its working now
 
It a BUG ... 100%
 
11:01 AM
just because i am using 2 its not working
@Baba man ...you made my day
 
@NullPointer it would not work with any Integer .. just use string
 
@NullPointer or better still die((string)$page);
 
@Baba sounds a good idea ...
 
11:03 AM
@NullPointer Cool
 
Happy new year ya'll.
Belated if you're in the other part of the world.
 
@JaredFarrish Same to you ...
 
@hakre - You persent and accounted?
 
@JaredFarrish Good mornings! What do you mean by accounted?
 
hi
 
11:28 AM
For. Forgot the for. Haven't had my coffee.
@hakre, have you worked on systems that were built primarily on Symfony components and vendors?ed
 
@JaredFarrish Ah the Symfony question in chat you removed yesterday. I only saw it in notifications.
And yes I did. By primarily I think you mean that it was used as the framework component in the project, right?
I even have the one or other bugfix in Symfony2 ;)
 
Yeah, somebody else has a really similar avatar.
Right.
Is it a framework you would recommend for a medium-sized, mufti-faceted project?
 
what is a multi-faceted project?
 
Well. How can I put it.
I hate calling parts of an app a "module". Grates on my nerves.
 
Generally I'd say it's the best PHP framework so far. But that must not mean it is fitting your business perfectly. If you develop in a team you might have some benefit using it. Both for the project as well as for the team members.
@JaredFarrish Well the vendors/components part of Symfony2 is pretty nice. You can't stretch it into oblivion but you can go pretty far with it. If you use it to interface with libraries you keep even more apart you should have a nice ride.
 
11:36 AM
Well, I'm hoping to get at least one other dev interested and maybe a company that sells software in the same space, if you will.
 
I would also point out that, when we are using term "best PHP framework", it has the same weight as praising someone for being the smartest kid in a remedial class.
 
ut I'm not going to sell it.
 
@tereško Yes, that was not intended as anything authorative. Just in context of the discussion.
 
i know that you know it .. but there might be some impressionable people reading it all .. and said "impressionable people" tend to not read the whole conversation.
 
Whwtever.. The vendorss/components is the part that really excites me.
 
11:38 AM
Okay, for the log: If you use a PHP framework for your website, starting coding the app with it, you've already done it wrong.
You either have a standard scenario, then use standard software, or you have your own application, then focus on the individual part first for which no standard solutions exist.
 
@JaredFarrish if the 3rd party components for SF2 are well written, you will be able to uses them without the framework too. If they aint .. well ... i wouldn't bother in first place
 
What the heck is up with my typing.
There's a la lot of community stuff. I'm sure it's not all great or useful.
@hakre, I don't know I'm following that . Whose log are we talking about?
 
@JaredFarrish The global one here in chat :) Not that my sentence that some framework would be the best one is put out of the context that you first should be aware if and for what you would need a framework.
 
I've always been a solitary developer, just working on my own stuff. So at least the option of reusing code that's small enough to incorporate into a project and not have to overtake and manhandle is really exciting, for me.
I've been working just to "get" it for a little while, and a blog where Fabien Portencier stated that Symfony was not an MVC, for some reason that made it click.
 
that's only partially true
 
11:51 AM
It was in the context of the talk he gave; it wasn't his blog, either.
 
there is a bundle in main repository, which claims to be "MVC"
 
Is there?
 
i think that the whole "not an MVC" line is design for peaching to the part of community that actually pays attention to design patterns
 
Good morning
 
@hakre i am writing tutorial for pdo here could you make question more constructive stackoverflow.com/questions/14110188/…
 
11:54 AM
yeah, that's what he was getting at. The "web", HTTP, the inter tubes o info, aren't built to match MVC.
 
@JaredFarrish this is why we are not using classical MVC on web ... instead we have MVC-inspired patterns: Model2, MVP, MVVM and some others
hell .. noone is actually using the classical MVC pattern as it was defined for smalltalk
the concept has evolved
 
Sure. I understand that. It wasn't about looking for kool-aid, it was just the frist time I turned sideways in my thinking and saw tSymfony as builder of parts and not of systems.
 

« first day (808 days earlier)      last day (4156 days later) »