« first day (1640 days earlier)      last day (3308 days later) » 
06:00 - 15:0015:00 - 00:00

6:30 AM
good morning
 
7:08 AM
good morning all
@SergeyTelshevsky hi ..
are you russian?
 
yes, why do you ask?
 
morning
 
@SergeyTelshevsky ha ha just asking your surname pronounced like that ..that's why .. nothing else
 
that's a polish surname :)
mourn @PeeHaa
 
@SergeyTelshevsky just a concern
 
7:24 AM
no problem :)
 
mornin'
hmm ..
according to Witcher3 requirements, my current build is basically one iteration above "recommended"
this is kinda scary
 
7:39 AM
@tereško morning, as I've heard they're constantly exaggerating them
so I wouldn't worry much
 
Nope. Whitcher games are always badly optimized at launch
And even after optimization, they are really demanding
 
http://www.systemrequirementslab.com/cyri/requirements/the-witcher-3-wild-hunt/12446/?p=r
I don't see anything special here, pretty much standard these days
 
moin
 
@salathe what do you normally do with "bugs" like these bugs.php.net/bug.php?id=69432&edit=1. Just close it and explain notabug/wontfix/pebkac/thisisnotapersonalsupportchannel?
 
Mornin
 
7:54 AM
Morning @tereško @Patrick @fapore
 
@SergeyTelshevsky I was looking at "recommended" specs
it says "R9 290"
 
@PeeHaa close as not a bug, and direct them to the support page/channels.
Aaand, good Monday! :)
 
meh
 
@salathe Morning
 
8:03 AM
/me doesnt like "physics toys"
 
@salathe Will do. We have a support page/channel?
StackOverflow? :P
 
tnx
 
8:17 AM
moin
 
good mornngs
 
I'm so bored still ... and I've run out of things to do around the house ...
over the weekend and on friday, I jet washed all pathways and patios and the front of the house ...
 
Don't you have work to do?
 
morning all
 
yeah, but the moment I "make" the computer crashes ... so I'm pretty stuck ...
 
8:22 AM
Not ideal
 
PITA ... I had to say for the first time in forever last week "I can't do that right now" ...
 
can't work provide you a new computer?
 
Or fund you to buy one
 
didn't ask ... they won't fund the one I want ... it would be unreasonable to ask
 
They get VAT free though
 
8:30 AM
they aren't a registered uk company
(no vat no.)
 
posted on April 13, 2015 by kbironneau

/* by SynxS */

3
 
:(
Well time to save for a super PC maybe
 
payday on wednesday ...
bits should be here before end of week I hope ...
 
Should ask @tereško for build advice seeing as he just bought his he probably knows a lot about whats currently good.
 
yeah, we spoke about it briefly ...
 
8:42 AM
my specialization is more towards gaming-related hardware
 
9:05 AM
Hello
can i have advise on whats the best thing using a php chat logic, i'm using a setinterval style but when the browsers stays longer , the sites will going so slow
i need to have a long polling style instead of intervals do you have any ideas just like socket.oi
 
best option would be to use websocket
 
9:24 AM
hi
While working on ajax call I have 3 tabs which loads their respective data from server using ajax. Now the critical situation is when I continuously clicks on 3 links (tabs) as per response div gets changed .
div is same for all 3 responses.
I want to restrict other 2 responses and make them clickable only after first content is loaded
making ajax call async:true is not working
 
are you using jquery/
as for me if using jquery i'll just use some callbacks then
onsuccess
$( document ).ajaxStart(function() {
// your condition here
});
 
ThW
@boyee that will not work
@John you will have to find some way to sync the different applications. With a server value (session) for example.
 
I have a DOMElement and I'd like to know the tagname, can't find anything with google..
 
ThW
@MarcelBurkhard $node->localName
or $node->nodeNamewith the namespace prefix
 
ok thx
seems to work
 
ThW
9:38 AM
@MarcelBurkhard php.net/domnode
 
had that page open, but I was looking for tagName
 
ThW
Actually DOMElement has the tagName de.php.net/manual/en/class.domelement.php
 
and thats why :D
also in simple_html_dom it was tagname
(which I'm now replacing cuz it sucks)
 
Can somebody help me wit this?
http://stackoverflow.com/questions/29595444/php-shopping-cart-gives-notice-undefined-index-error/29595577
 
@ThW what exactly do you mean?
 
ThW
9:44 AM
@MarcelBurkhard I might be a little biased, but don't use THAT library!
 
@ThW yeah well it was working fine, until like the last 5%
 
ThW
@John You could use a value on the server so that requests to the server know the current state for the user, browser local storage could work, too.
 
@ThW what are you saying ? Do you understand my query?
 
ThW
@John Syncing the state of one application in several browser windows
 
@ThW nope
that is not my query actually
the que. is 3 tabs suppose tab1| tab2 | tab3 in HTML page
 
ThW
9:47 AM
You want to block an action in a second or third browser window until an user action in the first window has happened.
 
not the browser window but the tab
 
ThW
tab/window/iframe makes not much difference each is an separate rendering instance of the browser.
especially tab vs window is just user interface
 
okay you refer it as window but for mine is tab ;)
so what do you suggest?
 
@ThW you sure know the answer to my next guestion too :D DOMNode::textContent
This attribute returns the text content of this node and its descendants.

I want: This attribute returns the text content of this node without its descendants
 
Hello everyone
 
ThW
9:50 AM
@John You could use a value on the server so that requests to the server know the current state for the user, browser local storage could work, too.
 
@ThW nevermind found it
 
I want to develop a REST application does anyone have any good tips for a starter
 
@ThW seems like difficult ..
 
ThW
@MarcelBurkhard foreach ($xpath->evaluate('text()', $parentNode) as $textNode) { $result .= $textNode->textContent; }
 
can we not manage at client side?
 
ThW
9:52 AM
@John browser local storage might work
 
@ThW can you help me with this?
I am still confused with your method
 
ThW
It a JS topic and not difficult, search for it
 
Anonymous
Has anyone worked with cURL's terminal command to read a txt file?
 
what should I search in google
 
ThW
@MarcelBurkhard or in my library foreach($parentNode('text()') as $textNode) { $result .= $textNode; } ;-)
 
9:58 AM
@ThW thanks
 
@ThW actually I got that part working now BUT now I have the same issue as before with simple_htm_dom
 
ThW
What exactly are you trying to do?
 
afk 15 min
 
10:24 AM
@StephenWolfe I'd recommend to check the book "RESTful Web APIs - Richardson, Amundsen" as place to start, they explain the designing steps there
 
@ThW I convert basic html to PHPExcel RichText Objects
@ThW It all goes well until I actually retrieve the text of the dom nodes (wether it's DOMNode or the other thing makes no difference) I end up with a corrupted excel file where it tells me it needed to restore somethings
 
ThW
That sounds like a job for XSLT
How do you write the target XML?
 
PHPExcel library
as in, I don't
 
ThW
Maybe it is an encoding/escaping problem - $textContent returns the unescaped utf-8 value.
Or a problem with html named entities
 
it must be, if I hardcode return "FooBar" it works
 
ThW
10:31 AM
How large is the test - file, can you var_dump() the text content?
To check for named entities...
 
This is my "testfile" pastebin.com/tSt2tA41
 
ThW
Try without the named entity
 
where is the named entity?
do you mean ä ?
I tried that, also utf8_encode, utf8_decode etc.
 
the excel error log tells me something about newlines (x000d__x000a__x000d__x000a"><repairedRecord>)
$testHtml = "<h1>Titel 1</h1>" still fails
 
10:42 AM
@zerkms you mean object calisthenics?
 
@Ocramius bah
 
@Ocramius you use __get to initialize public properties in Doctrine right?
 
@NikiC counter-bah
@nikita2206 yeah, usually
Depends on context, but I want it __get based only at some point
so we stop adding useless stack frames
 
but do you unset them in order to make php trigger __get instead of getting them from the table?
or how does it work?
 
@nikita2206 I unset() them, yes
 
10:47 AM
@Ocramius mhm okay thanks
 
Anonymous
@HamZa do you know some awk regex commands?
 
11:06 AM
I am getting some odd problems with codeigniter dropdown.At times it picks the value and at times it picks the item
anyone ever faced this?
 
@samaYo nope but this should get you started? math.utah.edu/docs/info/gawk_5.html Otherwise maybe Avinash Raj could help you (ping him in the regex room)
 
@Gotalove Have you actually looked at the rendered html?
 
no I havent let me check it out
it only surprises me that it changes all on its own
 
wow I think I found some sort of php bug
 
11:17 AM
Hii
Can u provide your comment on stackoverflow.com/questions/29603713/…
 
any thoughts on why that might happen?
 
@PeeHaa the rendered html appears the same
 
Disable javascript and try again
 
@PeeHaa I am using jquery modal
I am also using jquery ajax post
If I disable won't it simply fail
 
@Ocramius yep :-)
 
11:27 AM
Well if you do ajax posts: have you checked / debugged that part of the code?
 
how so?I have captured the form data from the ajax posts using the network developer tools in the above images
this is the rendered html
oh sorry @PeeHaa for this particular one I don't use ajax or the modal
let me disable and try
 
@Ocramius When pulling date from db using doctrine I get a datetime object, how can I specify just to give me the string? Or nay an option?
 
@Fabor map it as string?
 
@PeeHaa even with js disabled it still does the same thing
 
@Ocramius Guess I shouldn't auto-gen entity classes then :P
Okay will do cheers.
 
11:36 AM
@Fabor you just got ignored
 
heh
 
@PeeHaa could it be the way I pass data to the view in my array?This is my mvc pastie pastie.org/10089695
 
@Gotalove Suggest you read through @tereško's answers regarding MVC
 
@Fabor he's using CodeIgniter
 
Even more reason to do so.
 
11:51 AM
what Teresko said Fabor
 
Why are you using CodeIgniter?
 
coz the project is in CI and I think it will take more time trying to redo it
 
ThW
@MarcelBurkhard It looks more like a PHPExcel Bug
 
@Gotalove Personal project?
 
work project
 
12:03 PM
Is there any way to programmatically click on a link on my page ?
 
Anonymous
@AhmedZiani yes
 
@samaYo how i can do that ?
 
Anonymous
@AhmedZiani through the magic of asking a clear question
 
@samaYo I just want some thing like auto click
 
ThW
12:09 PM
sorry forgot the document parameter eval.in/private/fadf853bb4e6b5
 
Anonymous
what would the click produce?
 
ThW
@MarcelBurkhard The result can be an empty string - maybe that breaks it.
 
@samaYo Just redirect od my website without popUp
 
Anonymous
show us some code
 
Anonymous
your problem has probably nothing to do with php if that is the case
 
12:19 PM
I tired with this but doesn't work
<head>
<script>
document.getElementById('#lient').click();
</script>
</head>

<body>
<a id="lient" href="http://www.google.com">Google</a>
</body>
 
@AhmedZiani The id doesnt exist
(yet)
Move the script to after the link
 
Anonymous
but the script at the bottom of the page
 
Anonymous
before </body>
 
Anonymous
plus, use events instead of the draconian click/onclick ...
 
@PeeHaa I tired but doesn't work
 
12:22 PM
@AhmedZiani What are you trying to do because what you have doesnt make any sense
 
@PeeHaa I want redirect to google when i enter to this page
 
Anonymous
@AhmedZiani what browser are u using? check the console message also
 
@AhmedZiani Why are you using javascript for that?
 
@samaYo Google chrom
 
@ThW Thanks for the snippet.
 
Anonymous
12:25 PM
correct the script and let us see again
 
@samaYo How i can correct the script ?
 
Anonymous
remove #
 
Anonymous
i'm on mobile, so i cant make it for u
 
@ThW it's not a phpexcel bug from what I see, https://eval.in/private/8c5c29027a0430

I return the same content in the function on different location and it only breaks in the inner loop, for some reason.
I write the excel to a file, so It can't be error messages that corrupt the file or smth like that.
 
@samaYo That's work but i want redirect afer 10 secand , how i can do that ?
 
ThW
12:29 PM
@MarcelBurkhard are you sure that you can work with an empty string returned from the method?
Try return '';
 
@ThW that doesn't work
same corrupt excel file...
 
ThW
So if the result from the method is an empty string - it breaks
 
yes, but I return "FooBar"?
hmmm
 
Anonymous
setTimeout(redirectFunction, 10000); @AhmedZiani
 
ThW
@MarcelBurkhard only if it iterates the loop, aka if it has text child nodes
 
12:32 PM
that helped
thx a lot @ThW
note to self: it's never a php bug, If you think you found one, go home.
 
ThW
@MarcelBurkhard the method is strange btw, what are you doing with some like <p>foo <strong>bar</strong> foo</p>
 
@ThW should return empty string
 
@samaYo thanks that work but time dosn't work how i can redirect after 10 second ?
 
ThW
with p as the parent node
 
@ThW then foo foo
 
ThW
12:35 PM
it would return foo foo
 
yeah sry that's what I meant
<li>Lorem <strong><em>Ipsum</em></strong></li>
 
ThW
But that sounds really wrong
 
Anonymous
12
Q: time delayed redirect?

SOLDIER-OF-FORTUNEI have a website which slides to a "section" called blog in my HTML. I want the user to simply see the page for a brief second or 2 then redirect to my blog engine. Please suggest a time delayed redirect? If i can redirect with a time delayed based on the click of the blog li: <li data-target=...

 
Anonymous
@AhmedZiani ^^
 
I need to make a PHPExcel TextRun for Lorem, and one for Ipsum (which I apply formatting one)
$li4a = $expectedOutput->createTextRun("Lorem ");
$li4b = $expectedOutput->createTextRun("Ipsum".PHP_EOL);
$li4b->getFont()->setBold(true);
$li4b->getFont()->setItalic(true);
 
ThW
12:37 PM
@MarcelBurkhard but for <p>foo <strong>bar</strong> foo</p> that should be 3 text runs imho
 
@ThW point taken
 
Anonymous
@tereško whats the correlation b/n building your custom pc, and using/not using vbox?
 
Anonymous
u still awe me an explanation :p
 
@samaYo Thank you very much
 
Anonymous
@AhmedZiani np
 
Anonymous
12:39 PM
no problem ^
 
@samaYo I actually have completely forgotten about what you are talking about
 
@ThW I guess I need to restructure my code now :(
 
Anonymous
@tereško u said u don't use virtualbox, and your reasoning was the reddit sub for building-your-own pc . I am trying to connect the two. In other words, if you are not using vbox, then what are you using?
 
lol
 
Anonymous
u know me, always a noob
 
Anonymous
12:45 PM
ain't no shame in that :)
 
I wonder, how one could have misunderstood my "VPS master race" comment more ... and whether it would cause a space-time paradox
 
@samaYo This is not a "u" chatroom
 
Anonymous
@NikiC sorry, i'm on mobile ...
 
what I was trying to say is that "have a VPS" is better solution than running local vBox
and that the phrase itself was inspired by "pc gaming master race" meme
 
12:51 PM
@ThW I bookmarked that, it should still available tomorrow right?
@ThW I'm too frustrated now :P I'll work on smth else now
 
ThW
@MarcelBurkhard bookmark/copy that one eval.in/private/9e0638cb59ef49
 
I'm wondering if I should switch to Linux as my primary OS
 
For hosting?
 
No, for my computer
 
@NikiC fuck no
 
12:53 PM
@ThW done, thanks.
 
My wife's old laptop was running Vista, which was crap, so I loaded Mint on it (Ubuntu flavor) and it works great
 
The reason I'm even considering this is that virtualized environments do not expose hardware performance counters
That's basically the one thing I can't get with linux running in virtualbox
 
but my main desktop is still Win7
 
@NikiC imo get your hands on another box instead of having to use linux as desktop or dual booting
 
Anonymous
 
12:54 PM
@PeeHaa What's the reason why this would be so horrible?
 
@NikiC Proper applications mostly
 
@NikiC it would highly depend on what you use your PC for
 
although not really proper but better than libre/open office ms office, photoshop etc
 
Not gaming
 
@PeeHaa Depends what you consider proper. I was pleasantly surprised that Ubuntu flavors have so many native apps now. I mean I was able to get a native build of Skype and Chrome
 
12:56 PM
I'm using libre office on Windows as well. I have opened it maybe once in the last year ^^
 
@Machavity open/libre office is crap
so is gimp
 
what do you guys use office for?
 
Quotes
 
quotes?
 
I send screenshots in word files.
 
12:58 PM
I use google docs more than office
 
@NikiC The money ones ;)
 
@PeeHaa oh
 
@NikiC, @peehaa has customers who use windows.
 
Also I use excel to handle import and export files for cilents
 
So it's not a single task. it is a multi task. any way i will ask more money from my client from your answer. — Ramesh Rajendran 51 secs ago
 
12:59 PM
@Fabor Yeah me as well. Either google docs or latex, depending on required quality of the result
 
ThW
@MarcelBurkhard And a little more optimized: eval.in/private/16ad9997fc56d2 - I will stop now :-)
 
I won't argue that MS is still the gold standard in Office. And they are heavily invested in keeping it that way
 
@ThW That looks weird. Why are you doing the foreach/yield there?
 
ThW
You're right - I can remove the function now: eval.in/private/15e80f9e9b8f25
 
@PeeHaa @Fabor found my problem I was adding the selected item to the dropdown instead of setting select.
 
1:06 PM
Oh I thought you might've moved away from CI.
 
almost did
 
Maybe next time...
 
lol
 
@ThW thanks, I'll try it tomorrow :D
 
1:25 PM
Doctrine sure is teaching me a lot about what I should/should not have done making this database -_-
 
New blogpost: #doctrine2 (and #orm in general) hydration performance and tips explained - http://goo.gl/TNP1sC #php
 
btw @Ocramius, the two younger guys from your project who were at phpsw said that they had missed out on your ORM performance presentation, and the communication line of how they were meant to get that knowledge had broken down.
 
1:40 PM
> No, it's not "don't use an ORM", you muppet.
Bahaha
 
@Ocramius great article
 
> Generating hydrator code - solves constant overhead issues, performs better with JIT engines such as HHVM
This is every reasonable JS implementation for node, ever.
 
@Jimbo I had to
@Danack yeah, it's a mess
But this article pretty much sums up whatever I had to tell them
 
You generate function code once and then let the JIT do the rest for you with a super normalized function. It performs as fast as native
 
Anonymous
/me still don't understand how doctrine works :/
 
1:50 PM
@samaYo Doctrine is one big __ method ;-)
 
@samaYo it's simpler than it looks like :)
 
@Ocramius k - I was going to say why not invite them to the Wellington and give it there.
 
@Danack we could actually do that
But today I slept 1 hour, so I barely have the energy for the next meeting and then I'm fainting -.-
 
Coffee, lots of coffee
 
Anonymous
Yeah, I'm sure it's simple thank it looks ... although, I think it makes heavy use of some/many design patterns that I have to familiarize myself with first, and it'll do the trick @Ocramius
 
1:52 PM
Keep both your objects, and yourself, hydrated.
 
@Ocramius I promise I will read the full article, but am I correct to assume that at 5-table join in doctrine would perform like shit ?
 
Anonymous
@Jimbo one big constructor? lol
 
I'm on the 4th red bull
@tereško it would perform like shit on any mapper
just with different constant overhead
 
@Ocramius you probably should sleep a bit
@Ocramius s/any mapper/any universal mapper
 
Anonymous
@NikiC time for 1 moronic monday q?
 
1:55 PM
@samaYo sure ^^
I didn't know we have a moronic monday in here as well ^^
 
user895378
mor(onic)ning
 
something something .... php doesn't need a special day for morincing.
 
General question but if something of yours goes through a lot... of different steps how do you neatly separate out the processes without creating a god function which handles too much. Example

Get this thing,
Do this with it
Do this with those results
Do this with the results for that
Save that to this place
Send return to here
and send return here.
 
Anonymous
@NikiC I just wanted to know, that once I am able to understand/code with C at the basic level, would I then, be able to understand the Zend Engine/Interpreter asap? or is it something that takes months/years to feel comfortable enough to contribute to the php src?
 
Anonymous
Kinda silly question, but I'm totally clueless so .. I can't help it.
 
2:00 PM
@samaYo depends on what you wanna do :) but for e.g. I was able to fix a simple variable by ref bug in a few minutes on the first time I cloned the repo
 
posted on April 13, 2015 by kbironneau

/* by Matt */

 
moiring
 
Hello guys,
How could I write on session of another php instance ?
 
@samaYo The worst is understanding all the implications when you change something in a a bit more important struct or in execution flow...
 
Anonymous
@marcio so you were able to do that, just with your C knowledge? Not reading/learning about the Zend .. ?
 
2:04 PM
You might think you've understood the ZE at its basics… but then you really realize how clueless you are.
Even I am periodically bitten by that.
 
I run command "php phpfile.php" from ssh access (root user) and php-fpm run on admin user, and I want to write on php-fpm session ?
 
user895378
@LeviMorrison a generator function always returns Generator
 
@samaYo I had to do a quick read about the zval thing and dig to know what all these ZVAL_ macros were doing, but nothing sooo complicated. But of course, I'm talking about a first bugfix. Implementing new big features is another story.
 
Anonymous
@bwoebi I know everything is a learning process, and will/should take time. But, I would be happier and motivated if I can create a function, alter a function/class behavior, and simple trivial cases like that, say ... within a year. :)
 
@samaYo that's definitely realistic. :-)
 
2:10 PM
@samaYo extensions api is pretty easy, you'll be able to do it much sooner than in a year
 
Good morning
 
morning :)
 
Anonymous
Hm, in those cases, I should feel pretty optimistic and give it a go asap.
 
@samaYo one tip is, once you start to understand a few things, to go read the pull requests implementing the accepted RFCs, it's a fun way to learn :)
 
2:19 PM
@marcio It is far too late for April fools jokes marcio.
 
user895378
"fun"
 
I feel weird now. Maybe I just have a strange concept of fun.
 
Anonymous
@marcio Thanks.
 
@samaYo Always depends. Bugs in library functions are often easy to fix. Making changes to the VM itself is often much more tricky, because changes have some very non-obvious consequences
I've spent a lot of time in the last two days tracking down a GC bug - and I still haven't figured out what exactly is wrong...
Whenever I think I finally found the right solution a different test starts leaking or crashing ^^
It's one of those moments where I start to seriously doubt my own competence...
 
user895378
I have lots of those moments.
 
2:30 PM
yay! finally got the and badges...
 
you should get next
 
@ircmaxell hehehe
 
you also could get badge
 
Anonymous
@NikiC I'm not necessarily aiming to improve the core, I only want to feel comfortable knowing on how PHP works behind the scenes. If this allows me to fix bugs, then that would be awesome. But, understanding the implementation of PHP is my main motive.
 
@tereško I am more than half way there sadly enough
 
2:35 PM
I know the feeling
 
> Linux 4.0 "Hurr durr I'ma sheep"
...
 
If I was going to doubt my "competence" every time a test fails because of leaks... pfff rm -rf ~/projects/php/
 
@samaYo best way to understand something is by writing code for it :P
 
Except women.
 
@Fabor Especially women.
 
2:48 PM
heh
 
06:00 - 15:0015:00 - 00:00

« first day (1640 days earlier)      last day (3308 days later) »