« first day (522 days earlier)      last day (4436 days later) » 

4:00 AM
Sounds like China
only
instead of culling
they're just left to rot in provincial villiages
 
user557846
but only girls right ? :-)
 
pretty even
likely more boys than firls
it's about 100/120 girls/boys
100/160 in some places
girls*
 
user557846
ouch, poligimay here we come
 
160 => 100. woops. girls - :( boys - :)))
 
4:02 AM
@Dagon I'm surprised this isn't closed yet stackoverflow.com/questions/9798116/debugging-recaptcha-php
 
Likely not, instead more rape
 
It means that for every x girls born, there are y boys born
so for 100 girls, 160 boys
 
1.6 boy for 1
 
And that's how that is done :)
 
4:03 AM
girl
 
user557846
Bracketworks, stop following me :-)
 
user557846
half an extra boy, what half? could be messey
 
@Dagon Haha. He's trollin, I think I'm gonna play along.
 
heyy guys any one here
 
user557846
im not.
 
4:06 AM
neither am i.
 
lol
need lil help guys
i have a form which is submitted to a php file
 
don't ask to ask just ask:)
 
user557846
wow samir looks hot in his 80's sunglasses.
 
thats ok but if i enter the php file name in the url then i get weird emails
 
@Dagon ))))
 
4:07 AM
code or it didn't happen
 
user557846
and leaning 45 degrees, very edgey
 
oh sorry
weird errors
how do i stop someone to see my source code and enter the php file into the url
 
your glasses, what brand are tehy
 
Alcott
 
how much?
 
4:09 AM
@MichaelRobinson <rofl>
 
user557846
do you chack the form was posted? $_GET\$_POST
 
i bought them like 6 months back
umm i ges for 80$
 
@Samir azeri?
 
no its ALCOTT
 
user557846
the 80's was 30 yreas, your out of date
 
4:10 AM
@Samir I mean, are you azeri (nationality)?
 
if 80's glasses cost 80$ ... hard to imagine what current glasses would cost in your country
 
fun fact, irrelevant to the flow of the discussion. My rep is 404.
 
@dagon ok thanx for letting me know that
 
u shud have a better view at the pic. if ur sayin these are 80's then i guess u dont have sunglasses lol
 
4:11 AM
@AnPel the holy number
No, I don't. I'm myopic, thus the wearing of sunglasses is not something I may ever partake in
 
guys okay now cn i get my doubt cleared?
 
@MichaelRobinson unholy I'd say.. I would be dreaded on serverfault.stackexchange.com
 
What am I, a priest? This is no confession!
nah
404's are fine
@AnPel 500 is the killer
 
@MichaelRobinson ahahahaha))))) priest roooffllll
 
@MichaelRobinson I'm afraid I will need some time and luck for that.
 
4:13 AM
@Samir Just post your question on SO lol.
 
Guys, look at this youtube.com/watch?v=P0Hn5BfYEhI pg 13 . Robotic violence
 
user557846
he cant, those sunglasses are blocking his view, and he keeps falling over from standing at 45 degrees
 
I guess he took your advice
Shame
 
@Dagon I guess, he's the one that dagon told us about))
 
user557846
4:22 AM
i deny everythign
 
@Dagon hehehe)))
 
Does anyone have suggestions on PHP doc-block parsing? I'm already reflecting, and have the doc string; given it is well formed following a "schema" (PHPDoc for instance) what's the easiest way to dump it to a structure? (key=>val table, or object)
 
Don't use it really
I tried, restored old version with markup+logic
 
4:38 AM
is <td width="X">
deprecated in chrome?
 
You'll get mess with phpdoc (html generation with php coding) nothing more
 
ah I see deprecated in html 4.01
 
@TuralTeyyuboglu Wait, what?
 
Are you trying to generate html markup with php?
 
@TuralTeyyuboglu No no, this is for something completely different.
I just want to parse a well formed doc-block into a structure, so that it can be used elsewhere.
 
4:43 AM
Ah. My mistake. I thought you're talking about dom php.net/manual/en/book.dom.php
 
I'm probably going to have to sift through PHPDocumentor's or DocBlox's source, but I was hoping someone had already done this.
 
So you wanna tidy up?
 
@TuralTeyyuboglu No, I've got a framework I'm working on; its similar in structure to early Laravel, in that all of the "controllers" are merely anonymous functions, however, I'm actually using alot of the logic lately in CLI work. Since I was prudent in my documenting, I figured it would be useful to use them at CLI.
 
Ä° mean ouput with good indentation?
Ah ok
 
@TuralTeyyuboglu Sort of. If I have the doc-block parsed into a structure, I'll be able to query against it, so to speak. I can then do like:
>map.to.function --help:args
and get a dump of the arguments since they'd be parsed nicely in a structure of some sort
I've got alot of functions/"controllers" that do tasks worth having available for automation, but I hate having to jump between source and terminal to use them. Rather than having to refer repeatedly to the function signature, if I could parse the existing doc-blocks into CLI friendly help dumps, it would save alot of time (not to mention if someone has to come in and use this mess afterward)
 
5:06 AM
I think I'm just going to start doing C# style XML comments, and use DOM to parse it out.
 
5:21 AM
I understand that this question is not related to php, however, may be someone can share his ideas about my concern: now I'm doing some stuff in django, is it ok to put logic not related to the db into the model ? In zf for instance I would usually have service layer...
 
 
1 hour later…
6:37 AM
@bb3rn4rd , model is not a class
it is a layer which contains multitude of elements , mostly from 2 groups : domain business objects and data access object (usually implementations of datamapper)
the third group of objects are services , which consist of 3rd part components , and elements like authenticator and mailer
 
 
1 hour later…
 
1 hour later…
10:16 AM
posted on March 21, 2012 by Derick Rethans

New in Xdebug 2.2: Colours on the command line London, UK Wednesday, March 21st 2012, 09:43 GMT This is the first article in a series about new features in Xdebug 2.2. Besides support for PHP 5.4, there are a few that might be of interest. Xdebug has overloaded var_dump() with xdebug_var_dump() for a long time and the overloaded fun

 
11:13 AM
hi friends
 
Hi @spiderman
 
@Donut are you familiar with regular expressions in php
 
Pretty much.
 
please help me i need this very urgent
<!--[any number of any digits]-->
how can i get any number any digits from this
 
preg_match_all('#<!\-\-(\d*)\-\->#s', $stringToSearch, $matches);
 
11:17 AM
gr8 thanks friend
its working great thanks :-)
@Donut its working great thanks :-)
 
Probably what you want is $matches[1]
 
no i need all
 
11:37 AM
hi
every body
 
posted on March 21, 2012 by Qafoo - PHP

Last week, I gave an live webinar about "Writing Testable Code" in the PHP world, on behalf of Qafoo and Zend, for which the recording is now available online! You can watch the whole 1 hour session online on the Zend website. In addition, for example if you don't like videos, you can find the slides for download in our talks section.

 
lol @ feeds
i think most of regulars can already do a pretty solid Misko Hevery impersonation
 
11:52 AM
@tereško despite being a Zend Webinar this one should be good since tobySen held it
 
yeah
@NikiC: yt?
 
12:13 PM
good morning to most and afternoon/evening to few :]
 
12:34 PM
posted on March 21, 2012 by PHP Classes

Why is it better to develop in PHP with classes (OOP)? By Manuel Lemos Some developers code their PHP projects writing classes of objects. Others also write classes but do it just because they see others doing it without being able to explain why classes are a good thing. Others do not write classes but reuse other people code written in the form of classes. Others completely refuse

 
1:06 PM
http://stackoverflow.com/questions/5656987/export-mysql-to-csv-file-with-php
 
@Gordon I was just reading back through the chatlog here. There are some things which have male or female in English. Ships and boats are feminine (she sets sail, maiden voyage), and countries are generally feminine too (mother England). I can't think of anything considered masculine. Almost everything in English is gender-less.
 
@Paul thanks. i was only interested in debt in this case though.
 
1:22 PM
stackoverflow.com/questions/9805368/… because its pretty much RTFM material
 
Hi @ircmaxell
 
Open window, nothing but cv-pls. Epic. :)
 
Hi
Kindly look on this question,
http://stackoverflow.com/questions/9802411/how-to-set-different-templates-path-using-zend-framework
 
What's the good word?
I wonder if @Nikic will swing by in the next 30 minutes...
 
2:14 PM
Hi
 
@Dinesh you will get better answers and avoid closing, if you write it as an actualy question. what is the problem, what doesn't work, what errors do you get or what design problems can't you solve with this approach, etc.
 
posted on March 21, 2012 by Evert Pot

I've at this for a bit, but now it's official: I'm now based in Münster, and working at fruux as a co-founder / tech-lead. The feeling of having this amount of control over a product is great. We've also recently got funded from High-Tech Gründerfonds and netSTART Venture and moved into a new office so things are indeed pretty serious. We have some flexibility to focus on making a great

 
@Gordon: I wonder what percentage of your posts have
 
@ircmaxell ha, yeah, just thought something along these lines too
kind of thankful to gordon for doing it
 
2:25 PM
1.8% of your posts @Gordon are cv-pls
 
@ircmaxell where did you find the total?
 
wow. ive made 25.7k messages here? never would have thought
 
Yeah, I'm at 38.4k, and that's fubar
 
really hard to believe
 
2:27 PM
Yup
 
Even if you say one post per 10 seconds spent in the room (which is low), that's 4.4 straight days spent in the room (posting once every 10 seconds)
286
this week
831
last week
625
per week
 
then again, 25700/283 per week is 90 weeks
 
yeah, it's a good amortization
 
and thats almost two years so that would be ok
 
@ircmaxell im not sure anyone but you and @nikic actively use troll forum
 
posted on March 21, 2012 by Anthony Ferrara

In this third post of the PHP's Source Code for PHP Developers series, we're going to expand on the prior posts to help understand how PHP works internally.  In the first post of the  series, we looked at how to view PHP's source code, how it's structured as well as some basic C pointers for PHP developers.  The second post introduced functions into the mix.  This time around, we're going to di

 
2:47 PM
@ircmaxell Reading it now, saw the tweet earlier. Good read so far.
 
:-D
 
@ircmaxell I also see you've monitized your blog. Think about adding something where I can subscribe to your series for updates via email or something... I didn't even know you released the 2nd one.
 
@Incognito RSS???
 
Yeahhhh, but I don't do rss.
I might just be a corner-case.
Are you promoting this on reddit?
 
2:53 PM
=/ Weird, I can't seem to vote today.
 
and trying to, but with only +2, not much going to happen
 
If you want your reddit to take off a bit more I can tell you about things I've found successful in the past.
 
@Incognito try it with RSS live links chrome extension, you might reconsider not doing rss
 
@markustharkun I'm actually not doing RSS simply because I have rss goto my outlook client and I'm changing jobs in a week.
Also, blah rss.
 
@Incognito outlook is that thing from the computer stone age where ppl used to download emails into a program, right?
;)
 
2:55 PM
@markustharkun Yeah.
What do real people use outside the microsoft webosphere of enterprise?
 
Hey all
Is there any reason why md5_file() would fail on a soft-link?
 
@Incognito gmail does everything and more outlook ever did... for normal use
 
@markustharkun Can I use gmail as an interface for my example.com exchange server?
 
@Incognito Oh?
@Incognito Google Reader
 
I need a few more +1's against that Reddit thread
 
@ircmaxell basically, the title is a huge attention grabber. Some words will help you more than others.
Graphics only if appropriate can help you a lot too.
People basically hit the page, scan up/down, if nothing caught their eye and made them say "cool!" they won't bother reading.
 
Sure
same thing with code samples
 
Right.
 
@Neal when you got an old PHP version you might be affected by bugs.php.net/bug.php?id=40092
 
3:08 PM
@Incognito good question, I guess with the pro google stuff it might be possible but I don't know
 
@Incognito No, but you can have your exchange server forward off to your gmail account (and have it send as the exchange account as well)
 
@Neal Beware that md5 collisions between files have been proven to be just a few chars different. I'd stick with ca3.php.net/sha1_file
 
@Incognito Depends on what you're doing
 
Is it ok to include a test for the existence of a file in a unit testsuite?
I mean, does it go against some testing paradigm
e.g.
+ /**
+ * @param string $jsFile
+ */
+ protected function checkPrepareViewAddsExistingJsFile($jsFile)
+ {
+ $headScriptMock = m::mock();
+ $headScriptMock->shouldReceive('appendFile')->with("/$jsFile/")->once();
+ $viewMock = m::mock('Zend_View');
+ $viewMock->shouldReceive('headScript')->andReturn($headScriptMock);
+ $viewMock->shouldReceive('resourceDir')->andReturn('');
+ $viewMock->shouldReceive('jQuery->addOnLoad');
+
+ $this->object->prepareView($viewMock);
sry for the pluses, copy pasted it from a svn diff
 
3:26 PM
@ircmaxell What are the use-cases for md5 over sha1?
 
idk..
 
hi guyzzzzzzzz
 
opinions, anyone? on the test question...
 
user895378
@markustharkun I don't know why you'd test for the existence of a file. Testing that an exception is thrown if the file doesn't exist makes sense to me, though.
 
@Incognito MD5 is fine for a lot of uses. Just not digital signatures
 
3:40 PM
@rdlowrey yes, I think I agree
 
user895378
The interactions that code has without outside influences (the filesystem) should have no bearing on whether the actual test passes or not. What should be tested is that the code reacts correctly if the file doesn't exist.
 
user895378
If that makes sense.
 
user895378
I usually use VFS to mock the file system when testing code that interacts with it ... here's a link ...
 
@rdlowrey yes, I smelled it but couldn't pin it down, thanks!
 
user895378
vfsStream, rather: github.com/mikey179/vfsStream
 
3:43 PM
@rdlowrey thanks, added a watch, seems interesting
and it's nice that more and more projects are using composer
it's such a convenient system, especially when you want to customized your build for testing on and off travis, etc.
 
user895378
@ircmaxell Nice. It seems there's no ground you can really cover that hasn't been covered before.
 
user895378
I love vfsStream.
 
:-D
 
@rdlowrey if my team agrees, we'll integrate it into our testing env too
 
I definitely agree, it's just about the best there is for filesystem interaction
 
> doesn't work is not a valid MySQL error message
 
++
@tereško :%s/MySQL//
 
totally
though i might start use it as exception message
 
lol
I have used the exception YourDoingItWrongException() in the past... :-P
 
3:55 PM
an make sure to use the original doesn't wortk, not just doesn't work
 
4:16 PM
@ircmaxell isn't your post missing a link to the second article @nikic's blog?
 
Good point
I wrote that part before his was published
 
@ircmaxell :-)
 
:-D
:-( Reddit's not being as receptive as the last time. And I'm waiting until 3 more hacker news people come by before posting there, so it can get on the front page (with luck)...
 
@ircmaxell maybe that's a reflection on the article? :P
 
Quite possible
 
user895378
4:33 PM
@PeeHaa My extension is currently still 0.11.0. Would you like me to click "Update Extensions Now" ?
 
@rdlowrey :'( I thought so. What happens if you click update now?
 
user895378
@PeeHaa still sitting at 0.11.0 ... Shall I restart my chrome?
 
@rdlowrey hi...with what language did you start?
 
Perhaps GitHub send some wrong content type header. I'll need to investigate a bit further
@rdlowrey the strange thing is I see the extensions are downloading the update file, but for some reason it looks like they cannot find the new download of the extension: github.com/PeeHaa/cv-pls/downloads
@rdlowrey yup
@rdlowrey I've still 11 open issues before going to v1.0.0 and the update stuff is also one of the issues. However it isn't really 'sexy' so I tend to move it to the last item I'm going to look at :)
 
user895378
@user705339 I started fooling around with Python when I was at university. Once I became fairly confident with that I picked up PHP so I could hack my wordpress blog. And the rest, as they say, is history. I've been lately working on learning C to upgrade myself.
 
user895378
4:41 PM
I was introduced to Python to create financial applications
 
@rdlowrey so, I'm guessing Python, PHP, MySQL, MSSQL, Oracle?
 
I love Python, but financial applications? Reall?
 
user895378
No Oracle
 
@rdlowrey what about Java?
 
user895378
@ircmaxell Not heavy duty calculation stuff, more basic things
 
user895378
4:43 PM
Python is awesome
 
reddit.com/r/PHP/comments/r6pm3/… man, I feel like a troll now...
@rdlowrey Yes it is
 
user895378
@user705339 I mean, the C-family of languages are all similar enough that it's easy enough to understand what's happening, but I've never done any real work in Java.
 
@PeeHaa cool, just installed it
 
@rdlowrey so, what do you use for your mobile applications?
 
@markustharkun tnx
 
user895378
4:45 PM
Is this interview hour at PHP chat? :)
 
lol.....nope...just a PHP programmer trying to learn from the superiors
there's a wide array of languages and frameworks that it's extremely easy to go off in any direction
 
@rdlowrey @user705339 JAVA sucks monkey balls IMHO
 
user895378
I work with PHP pretty much all day every day. I think platform-specific applications are a waste of time when you could write a web application that works on any device.
 
@LeviMorrison "Error: Needs more cowbell." :-)
 
4:48 PM
@rdlowrey how about taking advantage of phone-specific capabilities e.g camera, bluetooth, etc?
@PeeHaa lol....why do you say that?
 
@LeviMorrison want my opinion?
 
@rdlowrey Sure, why not?
 
@rdlowrey evaluated that for quite some time and came to the conclution (as many others have) that it is indeed a waste of time to develop native apps but in order to leverage the hardware abilities like camera, vibration, sounds, etc. it's good to wrap your app with a native wrapper in the end @user705339
that's why we're trying out phonegap as well as Titanium Studio
 
user895378
@user705339 My real work revolves around mashing up financial data and packaging it in the form of APIs that financial professionals subscribe to. I haven't had any need to date for hardware like cameras. I'll probably eventually do what @markustharkun suggested and provide device-specific wrappers
 
@markustharkun I've read about PhoneGap, but haven't had time to try it out yet
 
4:52 PM
@rdlowrey e.g. if you want to provide a notification feature with sound or vibration you'll need that
let's say if it's fast changing financial data and could be important for a trader to know certain things fast
 
@markustharkun currently learning Java(and Android) though
 
@user705339 sure, can't hurt I guess
 
user895378
@LeviMorrison My favorite is the check and radio buttons. The title in the datepicker is all muddled in my browser ... I'll upload a screenshot so you can see what I mean
 
@LeviMorrison It looks liek the sliders are working the other way around
@LeviMorrison when I click somewhere I expect the slider to go to that point and not that point on the other side of the slider
 
user895378
@LeviMorrison I'm with PeeHaa -- I expected the sliders to work in reverse of how they actually do
 
4:56 PM
I afk'ed too long.
The only things I've worked on are buttons, radios and checkboxes.
@rdlowrey @PeeHaa Thanks for the 'bug reports' though.
 
user895378
@markustharkun I'm with you, and one of these days I'll get to it (or pay someone else to get to it), but the main thing people pay for is API access right now
 
@LeviMorrison the sliders also never reach 0% nor 100% (visually at least )
@ircmaxell what's with those slashes at random places in the PHP code? E.g. lxr.php.net/xref/PHP_5_4/Zend/zend.h#733. Well I know what's it for, but why does it look so ugly (with seemingly random tabs)?
Unrelated: I hate tab characters
:-)
 

« first day (522 days earlier)      last day (4436 days later) »