« first day (1642 days earlier)      last day (3324 days later) » 

12:00 PM
well, I'm quite pissed off right now maybe that's the problem
;D
 
hehe
 
Anonymous
was this even intentional? I fail to see the logic as to why they are created to take opposite needle/haystack the way they are
 
@MarcelBurkhard You could start using an IDE btw if this pisses you off that much just sain' ;)
@samaYo Because php sucks
 
yeah my eclipse is often not in the mood to show hints
 
Grab a phpstorm version
 
12:01 PM
I didn't like phpstorm tbh
 
k
 
yes I know... I tried it for a few days
 
hello , does any one here use postgre sql ?
 
@Bassem welcome back multi accounter
 
Anonymous
yes
 
12:02 PM
@MarcelBurkhard It's ok. I don't like it either, but that's just because of my general dislike of IDEs
 
@PeeHaa I want a really good IDE that is not built with java...
 
Anonymous
phpstorm eats my ram alive, I can't have it running along a vbox
 
@MarcelBurkhard Yeah I also freaking hate those huge java beasts
 
RAM is not an issue
 
Sadly I don't really know of any
 
12:04 PM
me neither
I'm going to try Visual Studio Community Edititon with PHP Tools though
 
@samayo
i setup postgre on db , create a php app that connect it , it works fine
but when i try to replace the connection string from localhost to another server ip
this error appeared no pg_hba.conf entry for host X.X.X.X(ip that i connect from)
i search and found that i should add host record to this file pg_hba.conf
did u face that before ?
 
I was about to suggest "we should build one!", but the last thing I need is more projects :P
 
@samaYo don't answer he's abusing stackoverflow with multi accounting
 
@Bassem it's on the web
Just search like the rest of us do when they face a problem
 
@PeeHaa I need to learn other things first, I consider my skills not good enough for such a project now
:D
 
12:05 PM
@MarcelBurkhard Getting better by failing is always an option :P
 
@peehaa , i already search
 
@Bassem or in other words: stop getting paid for something you are incapable of doing
 
Anonymous
@Bassem Nope, I didn't face that problem. But better listen to what you are being told here
 
hmmmmmmm , thanks @samayo any way
 
12:12 PM
@marcel , ok
 
Anonymous
postgres is the last software I installed by building from the source. I have now built everything :)
 
@Bassem Well it looks like you already have the answer so why ask this room?
 
@samayo , i think it is not good like mysql , i just use it because it hold an XTRF database which hold localization data
@peehaa , what do you need ?
 
ThW
@PeeHaa That's a lot of work - believe me :-)
 
@ThW Yeah it would be a huuuuuuuuge effort :)
And it will most likely fail :P
 
12:16 PM
I have an idea in my mind
 
Anonymous
@MarcelBurkhard I have one also
 
that I'm not going to share in specifics, but it would be a completely different, more efficient approach to coding in general :P
 
ThW
@PeeHaa Some of the stuff is really complex (syntax highlight, folding, code insight, ...) and difficult to implement
 
I would need like 15M$ to make it happen, maybe I make it a kickstarter campaign ^^
(so it's not going to happen)
 
@ThW Yeah I am fairly certain I would hit a roadblock just parsing the code for syntax highlighting
 
Anonymous
12:20 PM
@PeeHaa Why not create a web based IDE? That can fetch or simply display Github/Bitbucket repos as let's say ... sublimeText would. The benefit is that you can see github repos in a much better way, opening tabs, better file structure. And people can put this tag they use for tests, scrutinizer in their github page, to get a better view using your IDE
 
@MarcelBurkhard :P
 
There is plenty web based IDE's already
 
Anonymous
@PeeHaa Give it 10 seconds before you say NO :)
 
Anonymous
If you say yes, make sure to make me a co-founder
 
no :)
 
12:21 PM
@samaYo where do you store your database password, etc. ?
 
Anonymous
@MarcelBurkhard What database?
 
Anonymous
@MarcelBurkhard postgres?
 
@samaYo I've seen web-ides before and they're just so slow
 
@samaYo just saying that a web based ide has its limitations
 
12:23 PM
and that ^
 
ThW
@PeeHaa I had a components for that, thankfully.
 
I'm sure if there was investment for it, it would come from Google in regards to Chromebook
 
Anonymous
@MarcelBurkhard It could simply use the github API.
 
ping @ircmaxell give us money ^ :P
 
well there isn't that many Devs
@samaYo not everyone uses github
 
12:25 PM
15000000 in 10 dollar bills please
 
unmarked - and delivered by topless female models.
 
^ that
 
Anonymous
@Jimbo Yes, it has limitations, but I would chose to view github repos specially the large ones just as my editor would.
 
It would help if github would at least fix their horizontal scrolling issue
 
Anonymous
@PeeHaa So? Do you think it's worth a try? Considering it would be all-php project.
 
Anonymous
12:27 PM
And some JS + Prettify too.
 
Nope
On the web it's even more an effort
 
well JS is a PITA
so good luck with a web ide :P
 
Anonymous
@PeeHaa I doubt that very much, this is just a syntax highlighter. All you need is some Js Accordions, CSS and PHP ...
 
I know Atom isn't a web IDE but doesn't it work closely enough with github?
 
New discussion : How to create a facebook like image upload system with PHP,Jquery?
 
12:30 PM
New discussion: not that
 
Anonymous
@Fabor It was made by the github people.
 
Exactly
 
Anonymous
It uses sublimeText something something 90%, core something.
 
Anonymous
On a side note, something similar for reddit using MSOutLook appearance.
 
how is that a web ide? :P
 
Anonymous
12:36 PM
@MarcelBurkhard > On a side note, ..
 
You never used Outlook Express to write PHP? That's how CodeIgniter was born!
 
Anonymous
Just trying to illustrate the power of API'ying and grouping things and such way is not as difficult as it seems.
 
I edit my .html files with MS Word.
 
Remember frontpage?
 
@Jimbo I made a page with that when I was 9
You could click on a frog pic to get to next page
 
Anonymous
12:39 PM
@MarcelBurkhard I created my first HTML page in 2012 :\
 
@samaYo it's never too late :)
 
Anonymous
at the age of 24 :|
 
I don't think my Frontpage HTML page was worth anything ^^
it was WYSIWYG, no markup writing involved
 
why pdo using instead of mysqli? is there anything about security?
 
Anonymous
@saleemnfs Nope.
 
12:41 PM
@saleemnfs pdo is database independent
 
means?
 
of course, that also means your sql needs to be database independent to reap its full benefits.
 
Anonymous
@saleemnfs Meaning, that you can use PDO and PDO functions with any database like postgres for example.
 
inb4 @DaveRandom bums on about postgres
@saleemnfs You don't need to star those things ^^
 
Anonymous
@saleemnfs and if you want to know why use Mysqli over PDO read this
 
12:44 PM
thanks
 
@Jimbo whereabouts are the pins?
 
@Ja͢ck Can't see where the pins are, was there a decision to stop posting them?
 
well, i have not frequented the room for a while ... but it typically had a few shortcuts
 
@saleemnfs No need to start all the things everybody says. Thanks
5
- The janitor
4
 
@PeeHaa but how would they know what everybody is going to say?
 
12:52 PM
@salathe is always idle but when I am bitching about stars he is always right there to star it :P
9
 
Anonymous
Dear Janitor aka @Peehaa
> Please don't mistake my gifts for rubbish, they have sentimental values. for me.
 
See :P
4
 
*grin*
 
:D
4
 
Anonymous
You bought this on yourself mate :)
 
12:53 PM
I see some things never change in here ;-)
 
PeeHaa is the Batman of the room. He says something and BAM! stars
 
POW!
 
@PeeHee is taking over the ★ list :D
 
Someone photoshop his face onto batman plx
 
its PeeDay
 
Anonymous
12:54 PM
@PeeHaa Say something
 
@PEEHAA GET OFF MY STAR LIST
 
Anonymous
If I meet @PeeHaa on real life, I will shoot a star on him with a paint gun :)
 
Except that you can't shoot batman.
 
List of people not invited to my birthday party:
 
No-one.
 
12:58 PM
 
Dammit
 
Be careful or he may hit you will his PeeHaarang next
 
Anonymous
@Machavity Lei beats PeeHaarang everytime :)
 
@Machavity Nah, his Peehaarang isn't very long ;-)
 
user895378
@samaYo What's your point?
 
Anonymous
1:05 PM
Nothing, I didn't ping you.
 
user895378
Are you suggesting error suppression should never be used?
 
user895378
Why is it relevant?
 
@samaYo Imagine you're doing a file_get_contents() and you want to, instead of getting a shitty fatal, throw a nice, custom exception for your library instead.
That's when @ is useful
 
fatal? o.0
 
user895378
There are a number of places where error suppression is not only useful but necessary.
 
1:06 PM
@JoeWatkins uh dunno, I'm the wrong person to ask
 
If a fatal is silenced with @ you've got bigger problems to think about
 
she lives
 
user895378
E_WARNING: Success
 
user895378
^ the best example from openssl socket code
 
@JoeWatkins Nice. Now you can spend the day trying to remember what you haven't installed :P
 
1:07 PM
@Ja͢ck Well, you know what I mean haha.. stops the application from being able to continue.. so flow control I guess?
 
surprisingly, ubuntu is booted
gfx are strange ... figuring it out ...
 
Anonymous
@Jimbo I was constantly told to never use @ for suppressing errors here. So, I assumed @rdlowrey just decided to use one without much care.
 
@rdlowrey Maybe another one for you? bugs.php.net/bug.php?id=69461&edit=1
 
@Jimbo i'm well aware of the relative sadness that necessitates the operator ;-)
 
@rdlowrey never cares.
 
user895378
1:09 PM
@samaYo well whomever told you that was wrong.
 
user895378
But you need "rules" like that to keep noobs from doing stupid things.
 
Noobs just need dogma until they can think for themselves :P
 
Anonymous
@rdlowrey I guess you are right, but if it was up to me, I would use a custom error handler to deal with it. If it needs to throw an exception, I would also do it inside the error handler ... but then again, what do I know. I am just another noob :)
 
So technically error suppression is advanced coding...
 
It is
 
Anonymous
1:11 PM
@Ja͢ck Nah, dogma is what let me to this recent blunder.
 
Anonymous
I say, stick to the fact from day 1
 
Yeah, it was meant to convey that idea
 
user895378
@samaYo fwiw that particular error suppression is no longer needed as of PHP7 because you could just hint the incoming parameter
 
user895378
but in general error suppression is bad, yes :)
 
when in doubt, always add a comment why you think the @ is necessary
 
1:14 PM
Guys , in a server side jqgrid call, we have predefined variables like these :
$_GET['page'];
$_GET['rows'];
$_GET['sidx'];
$_GET['sord'];

but say i want to create my own and send them, how can i achieve that ?
 
Anonymous
1:24 PM
PHP chat, why you no work :)
 
user895378
@NikiC Thanks. Anytime you see reports that you think may be in my purview please continue to pass them my way as I don't always stay up-to-date with the latest from the bug tracker.
 
Anonymous
@Ja͢ck +1 for that. It would've done the trick for me.
 
user895378
@NikiC related: the http stream wrapper is a horrific abomination.
 
Anonymous
@rdlowrey I was going to say, how? But I realized that PHP7 supports scalar type hinting. \0/ one good use-case.
 
hi to all
 
1:25 PM
@Joseph They're just get parameters... so $_GET['test'] would require ?test=hello added to your url
 
<?= statement ?>
how to do comment
 
@Prashant No, <?= expression ?>
 
in that code
yes
 
Use /* ... */
 
@Ja͢ck
not working
i tried all php comments
 
1:27 PM
<?=$variableToEcho/** This is an expression not a statement **/?>
 
@Jimbo ok
i dont know difference between them
 
@rdlowrey lol I know. It has that one function with 1500 lines of code right? or was it just 1000?
 
Ever tried this one @rdlowrey? I reckon you could pull it off.
 
You could do <?/*= expression */?> @Prashant
 
user895378
@Fabor lol this is amazing
 
1:29 PM
@Ja͢ck @Jimbo : i got this error
PHP Parse Error – yii\base\ErrorException

syntax error, unexpected '?>'
 
Are you using PHP 5.4+?
 
user895378
@NikiC to fix that bug I need to modify ext/openssl/xp_ssl.c to be aware of the http context options in streams. It's horrible.
 
0
Q: Malicious Website URL

CHANistRecently I found out that there are malicious websites that do not have a domain name on its own. For example, 94.247.2.195 as in http://googleonlinesecurity.blogspot.hk/2009/06/top-10-malware-sites.html Other malware domain list site also shows that there are multiple malicious url that do not ...

 
user895378
There's no reason why the openssl extension should know about weird http context options a stream might have. The whole idea of the http:// wrapper is a bad one ...
 
LOL...
 
1:29 PM
@Jimbo phpp 5.4.3
 
Wheels up, later!
 
@ircmaxell
To people complaining about the rise of “marketing” to promote OSS projects — you are living in a dream world that meritocracy exists
Not sure if in response to you
Also, laters
 
£1300 later, she lives ... all 8 cores, liquid cooled at 3.7ghz http://t.co/V3yazCBK2J
 
@Jimbo @Ja͢ck : will u help me?
 
Anonymous
@Prashant If you don't understand the difference between statement and expressions read this
 
1:31 PM
@samaYo : thank you so much
 
btw anyone who has a windows server needs to be patching - ma.ttias.be/…
 
@Jimbo bad grammar prevents me from appreciating that statement.
 
@samaYo:
<?= statement ?>
how to do comment
PHP Parse Error – yii\base\ErrorException

syntax error, unexpected '?>'
<?/*= expression */?>
i used
 
user895378
@Ja͢ck E_PRETENTIOUS_EM_DASH_USAGE
 
lol
 
Anonymous
1:34 PM
@Prashant what do you want the = for?
 
Anonymous
You want to echo something?
 
Anonymous
If so, then <?/*= expression */?> is wrong.
 
no i just want to comment expression
@samaYo what is the correct method
 
Anonymous
@Prashant In other words, you do not want to script inside the <? ?> to run ?
 
@Prashant you maybe have short tags turned off for your server? php.net/manual/en/ini.core.php#ini.short-open-tag
 
1:36 PM
yes@samaYo
 
@samaYo If there's already a = and he just wants to comment that whole thing, it's the right thing to do.
Unless, of course, short open tags are disabled.
 
Oh wait.
 
Anonymous
@Prashant Is your expression all in one line?
 
@samaYo yaah
<?= /*= $form->field($model, 'smallimage')->fileInput()*/ ?>
 
@Prashant my point of having the = inside the comment is because it causes a parse error if you leave it outside.
 
Anonymous
1:39 PM
I have no idea what the second = is doing in there.
 
He copied it wrongly.
 
@Prashant "This directive also affected the shorthand <?= before PHP 5.4.0, which is identical to <? echo."
Your code is actually <?php echo /* stuff */ ?>
Change the <?= to either <? or better <?php
 
Anonymous
<?php /* echo $form->field($model, 'smallimage')->fileInput() */ ?>
 
Anonymous
@Prashant copy/pasta
 
Or, you know, just remove the whole thing lol
 
1:40 PM
@samaYo mmm, pasta
 
Anonymous
@Ja͢ck he needs a year from now to realize that :)
 
@samaYo sorry i dont want to do that
i want solution not
shortcut
@Danack i dont want to do that becuase this is not solution
i cant do that at all places
 
@Prashant "<?= which is identical to <? echo."
 
i change ini file to
short_open_tag=On
but no used
if both are identical
 
Using the tag <?= has an implicit echo. You need to give it a value to echo if you use that tag.
And it can't be commented out (apparently).
 
1:45 PM
then both sholud work for // and /*....*/
 
Short open !== short echo
 
Anonymous
Why don't you try to do <?= /**/ > and maybe you'll realize something. @Prashant
 
@Fabor :what
 
I'm trying to compile a short list of horrifying vulnerabilities that exist in PHP 5.2 (or anything earlier than 5.last, really). Does such a list exist?
 
Just it's worth noting there's a difference.
 
1:47 PM
@samaYo i tried alll
 
There's the CVEs, but those aren't by version
 
/html/body/ul/li[3]

how do I get the number out the cleanest way?
 
copy + paste?
 
Wait, nevermind, they are by version
 
Anonymous
@DanLugg Why not check the paches from 5.2 to 5.6.7
 
1:49 PM
@MarcelBurkhard The cleanest way depends on how much you wish to compromise in terms of correctness.
 
A regex that gets me the value between the first occurence of [ and ] in a string starting from the end
 
Sure, you could do that.
 
user895378
@samaYo because that's an enormous list
 
Anonymous
@MarcelBurkhard Couldn't you do that, using DOM?
 
@samaYo Couldn't find anything, the above is a xpath node path
foreach($xPath->evaluate('.//*') as $node) {
echo $node->getNodePath();
}

Output:
/html/body/ol/li[1]
 
1:51 PM
@DanLugg I might know someone who could give you a list of everything they backported into 5.2. Shoot an email to scott at atomicorp dot com
 
damn chat
 
@MarcelBurkhard so what's the problem? use a regex if that's good enough.
@rdlowrey did you follow the thread about "DateInterval" on ML? I thought Peter's retort was quite amusing :)
 
user895378
@Ja͢ck I haven't read the thread, no. Should I?
 
user895378
@NikiC do you have any general idea of the performance characteristics related to generator resumption so I don't have to benchmark it myself? e.g. would you say that each time a generator is resumed it's roughly equivalent to an fcall (I'm just wildly guessing here)?
 
@NikiC I'm not sure but I fear I need to increment and decrement reference counter for every single leaf… Or do you have a better idea? :-(
 
2:01 PM
@rdlowrey Not really, but here's the message in any case :)
 
@Ja͢ck The DateTime stuff needs to be re-written from scratch...
 
posted on April 15, 2015 by kbironneau

/* by Steffen (stffndtz) */

 
user895378
Dates are hard because humans have created all sorts of asinine ways to handle them
 
Yeah
 
user895378
In summary: we're tiny organic inefficiency machines
 
2:05 PM
Crazy problems need crazier solutions.
 
@rdlowrey You need to benchmark it yourself
 
user895378
Regular entropy isn't enough; we, as humans, are hell-bent on increasing the universe's natural entropy.
 
I'm not up to date on that front, especially with PHP 7
 
user895378
@NikiC okay. I'll let you know if I do something concrete.
 
@rdlowrey And if it's super slow, just blame it on @bwoebi :P
 
user895378
2:07 PM
lol
 
@rdlowrey yes, it's a bit like an userland fcall I think. You basically have the internal Generator method ->next() call which resumes the generator having approximately an overhead comparable to an userland fcall I think.
but as Nikita says… benchmark it yourself ;-)
 
user895378
@bwoebi I have a sneaking suspicion that this massive aerys rewrite that uses generators to filter output (and thus allow middleware) is going to be significantly slower than the old approach.
 
user895378
But I'm not sure there's any good way around it. I can either do things directly and not allow for middleware or expose transformation "hooks" on the stream and add lots of fcalls that wouldn't otherwise be necessary.
 
@bwoebi I didn't look at it
 
@rdlowrey well, what costs most is instantiating gens
 
user895378
2:14 PM
@bwoebi is it significantly more expensive than instantiating a regular userland object implementing an interface?
 
Significantly? Depends what's significant for you. But there are things going on with allocating a new stack frame… which is faster now with 7, but well… I don't know perf characteristics compared to an userland obj.
 
Ahh Aerys, the good old days
 
user895378
Well, I think I'm just going to go ahead with using generators to do this for now because it's the nicest approach. If it turns out to be prohibitively slow I can always try something different.
 
yup
 
user895378
Seeing 80k r/s is really sexy though :)
 
user895378
2:17 PM
Would be a shame to give a lot of those back.
 
nice :-D
@Jimbo even if it was, I'm not complaining about marketing. I'm complaining about people using marketing techniques as technical justification
 
Right. I feel insulted, as a Dev, when marketing techniques are used to try and pull me in
(when it should be the tech stuff)
 
marketing techniques being the "it does all the things"?
 
@Jimbo You mean bean bag chairs don't cut it?
 
@Fabor I don't work for Google ;-)
Standing Beanbags
 
2:27 PM
on treadmills
 
With a picture of rdlowreys face at the front
(of the treadmill, not the beanbag)
 
heh. Sign me up!
 
@NikiC I'm trying to find where you ensured that the Generator object isn't freed during it's execution…
 
blah
 
blah?
 
2:36 PM
ya
 
no, I'm sitting on a plane right now
 
Flying where?
 
Texas, ultimately for lonestarphp.com
 
user895378
If it's somewhere in the south pacific please use your inflight internet to periodically broadcast your location so we know where to look when the plane mysteriously disappears. nevermind.
 
user895378
I don't love flying. The slightest bit of turbulence ruins the whole experience for me. I exhibit no outward signs of panic but rest assured my blood pressure is off the charts.
 
Shikata Ga Nai @rdlowrey
 
me as well
and today's flight as started as a fairly rocky one (mostly mild, with a few patches of moderate so far)
I love traveling, this flying thing is for the birds
 
aren't you a pilot -_-
 
user895378
Hurtling through the air at hundreds of miles per hour in a pressurized metal balloon? Seems legit.
 
2:42 PM
@Fabor that's different
 
Flying is incredibly safe. You're more likely to be killed by lightning, bears or a segfault in your pacemaker than by a plane crash
 
@rdlowrey Well… When they tried with hydrogen…
 
> I am trapped in a tiny space in an over-crowded detention facility. There appears to be no way to escape without falling to my death. The noise is deafening. There is not enough air and what there is, is stale and unhealthy. The guards give us barely enough liquids and food to survive.
> The warden makes announcements on the PA that are incomprehensible. I have no way of defending myself as upon intake, we were all stripped of any possible weapons. There are windows (tiny windows, that do not open), but I have no idea where I am -- all I see is some sort of dense fog.
> I really hate flying
:-P
 
user895378
@bwoebi The Skytanic :)
 
hehe
 
@bwoebi We fill them with helium now, so your last moments before the crash you sound like Alvin and the Chipmunks
 
@ircmaxell You'll probably better understand this than I. Pilot caught in a Turn Flat Spin. Pulls himself out of it very close to the end.
His quote at 1:03 too :-/
 
yeah, flat spins suck
 
@Machavity I know. But are you as fast with them than with the metallic cage?
 
How do you get into a flat spin?
Just your propellor stops going?
 
2:47 PM
you get into a normal spin, and then you progress it with alerons
 
@Jimbo Beer
 
@Jimbo no, the engine is fine
 
Just watched the video and looked like his propellor stopped working
 
it's where you descend rotating around your vertical axis, with your directional vector pointed straight down
 
I read the ACL articles on PhalconPHP framework, and it doesn't seem to show how the ACL sets the active role, anyone specializes in phal?
 
2:48 PM
can tell I'm not an aviation expert, what I just said is probably equivalent to "the internet won't connect"
 
the engine stalling is a side problem
but that's normally pretty straight forward to deal with
 
@BenBeri why are you using phalcon?
 
> "Well this is it now."
 
@Patrick Is that another question leading to "Why are you using a framework" or directly to why i am using phalcon?
 
@BenBeri does it matter?
 
2:55 PM
@Patrick Well yes.. if it's about why I am even using a framework, it's just my liking, but if it's directly to why use phalcon, I am interested in knowing what's wrong with it
 
krakjoe@fiji:/usr/src/php-src$ time make -j16 2>&1 >/dev/null
In file included from /usr/src/php-src/Zend/zend_compile.c:30:0:
/usr/src/php-src/Zend/zend_compile.c: In function ‘zend_try_ct_eval_magic_const’:
/usr/src/php-src/Zend/zend_virtual_cwd.h:292:39: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
 #define VCWD_GETCWD(buff, size) getcwd(buff, size)
                                       ^
/usr/src/php-src/Zend/zend_compile.c:5378:5: note: in expansion of macro ‘VCWD_GETCWD’
 
http://t.co/bnM2Tc6RwE
 
hehe
 
Joe, what does your T-shirt say? "Respect ..."
 
@BenBeri seems like you are stuck with a component that either does not suit your needs or has bad documentation. If you were not using a framework, this could be fixed easily by using another component
 
2:57 PM
@ziGi the double claw ...
 
@ircmaxell IE fear mongers I tell you!
 
@JoeWatkins the last three letters look more like DIE
 

« first day (1642 days earlier)      last day (3324 days later) »