« first day (1038 days earlier)      last day (3910 days later) » 

4:00 PM
saves the day sometimes :D
 
Not a PHP Related message but this was the best I could find, Is there a mod here or someone who can delete comments? Found a guy who's just posted all of his SSH info into a comment which should probably be removed
 
@JamieTaylor Flag it!
 
@JamieTaylor rofl...
Someone got hacked.
 
I have, and I do also believe in survival of the fittest, but the longest his info remains up there (which happens to work) the higher the chances of someone malicious finding it
 
@DaveRandom ah, that would explain it then :)
 
4:07 PM
@JamieTaylor We do have a pet mod but I don't know if he's about /cc @Gordon
 
/cc @Gordon
o
I'm still a chat noob ;_;
 
@JamieTaylor link?
 
@DaveRandom pet mod your mother ;)
 
D:
 
4:09 PM
I tried that once. Didn't go down well
@Gordon Evil overlord?
 
Thanks, @Gordon - I can go home now
 
:-D
 
@DaveRandom you betcha
@JamieTaylor I'll escalated it so it gets revision burned
 
@Gordon Can non-mods see comment revisions?
 
4:14 PM
ahh
 
you didn't know?!
problem is people put their credentials into question frequently and we cannot do anything except for escalating to someone with database access to really remove them. Hence meta.stackoverflow.com/questions/191121/…
 
@Gordon I thought you were talking about a comment, not a question
 
@DaveRandom ah yeah, that's @Jamie's fault. He actually said comments. There is no way for regular users to see comment revisions.
 
Evening
 
@PeeHaa Schevening
 
4:20 PM
@Gordon Or make those user have to go and change there creds. Ownness is on them for being dumbs.
 
@Pheagey given that it takes some time before it's brought to our attention they want to do that anyway
 
@Gordon :-)
 
valid.
 
4:31 PM
lol
 
Also doctrine's docs suck
EVERYTHING SUCKS!
 
@PeeHaa I won't talk to you anymore >.<
I'm not reading you
lalalalalalalalalalalalala
 
:P
 
Good ol' nohup.
 
4:37 PM
Sorry, but that's how I feel. :)
Do you also work on dbal? @Ocramius
 
Hmm, now I know inline css/js isn't always a bad thing.
 
Yay.
@PeeHaa Why did you have to ruin my dreams?
 
I keep hearing that rand() is predictable, can anyone please tell me how to predict rand() ?
Want kind of access do I need on the server?
@DaveRandom very odd
 
I don't get it whats wrong with this code, pastebin.com/Kub7Xpq5 . If i try question marks and then use bindParam twice it works properly.. any clues ?
 
4:46 PM
@MadaraUchiha afaik rand is seeded by time
 
Why does it mark the first but not the second?
@igorw system time, or ticks?
 
system time
 
@AkshayPatil Show us what works and what doesn't... i'm not sure I fully understand
 
@MadaraUchiha Because marking the second would be redundant. You don't need more than one link to the same thing in a given post, and it's a waste of markdown space - remember that the post length has an imposed char limit, and the markdown (including the link URL) contributes to that char limit. It's intentionally designed to do that. But it is buggy in other ways, v2 isn't far around the corner now
 
@DaveRandom But I like redundancy, redundancy...
 
4:50 PM
I'll add it as an opt
 
How's the current one going on? You haven't kept me posted :(
 
14
A: Predicting the output of PHP's rand()

CharlesThe ability to guess the next value from rand is tied to being able to determine what srand was called with. In particular, seeding srand with a predetermined number results in predictable output! From the PHP interactive prompt: [charles@charles-workstation ~]$ php -a Interactive shell php >...

Nice one @Charles.
 
hello people, what javascript mvc frameworks do you guys use? Just a quick survey on here :D
 
Laravel 4!
 
4:53 PM
assorry I mean PHP
 
Oh, Javascript, learn to read, me.
 
Here is the updated code, have a look: pastebin.com/dDmKKMmu
 
not javascript
lol
 
Well, then Laravel 4!
 
ZF2 (work, not my choice)
and crappy internally made one for older applications.
 
4:54 PM
@igorw time(0), miliseconds or seconds?
 
Laravel & ZF2 . Thanks Michael, Pheagey :)
 
@MadaraUchiha I believe entropy is based on getpid(), seconds, microseconds.
 
@MichaelIrigoyen laravel sucks
@RandomJoe are you new to PHP ?
 
@AkshayPatil You cannot use the same named param twice
 
@igorw And, again, how's that insecure. How can you possibly know the system time on the server, or the PID at that time?
 
4:55 PM
Rename one
 
its been quite a while since I do any PHP. I just need a quick recommendation for frameworks to explore tonight
 
To each's own, it's a million times better than CodeIgniter, that's for sure.
 
@RandomJoe Silex
 
@RandomJoe Silex
 
Laravel :pukes:
 
4:57 PM
@webarto CodeIgniter :drinks your puke, then puke it again:
 
@MichaelIrigoyen if that's an endorsement, then you need to work on your reasons some more
 
@RandomJoe none
 
@MadaraUchiha s*'s, eat, and then puke it again!
Listen to @PeeHaa the Master of None :P
 
Never said I was endorsing anything, he asked what I'm using, I'm using Laravel.
 
@PeeHaa , I didn't get the impression, that he is willing to spend 3 month on stying OOP
oh .. it was survey
 
4:58 PM
:)
 
@MadaraUchiha you already know the time to the second. pid might be a bit harder to guess, but maybe you can get a server restart, or otherwise get that info. microseconds is probably quite hard, but at that point you're probably already able to brute-force.
 
@MichaelIrigoyen What do you like most about it?
 
@igorw "You"? How can the attacker know the time on the server?
 
@PeeHaa, is this a bug in php or my usage is incorrect ?
 
@MadaraUchiha header?
@AkshayPatil You usage is incorrect
PHP has nothing to do with it
It's the underlying db engine
 
5:00 PM
point being, none of those are secure sources of entropy. use something like openssl_random_pseudo_bytes, mcrypt_create_iv or /dev/urandom.
that will give you strong random numbers that are not predictable or guessable.
 
@MadaraUchiha That's because it hasn't really been going, I've not done anything for a while and I still need to finish up the server side (which is nearly done). As soon as that's good to go modifying the ext to use it should be trivial
 
@MadaraUchiha theoretically it's not safe, others are theoretically safe.
 
@webarto For me, it's just extremely easy to get a new app off the ground without a big time investment.
 
lol?
 
5:02 PM
@MadaraUchiha I'd assume most servers to be running the current time. try UTC or the timezone based on the IP. and getting a date out of a PHP app is usually quite easy.
 
@igorw Why not just inspect the http headers?
 
Anonymous
the dog looks thrown up
 
@PeeHaa or that, yeah
assuming that time will give you entropy is just wrong...
 
Thanks for that! , checked the documentation. Do you think php is doing a better job this way or it should allows multiple usage ?
 
5:05 PM
@AkshayPatil It simply can not do that
It just passes the statement to the db engine
And after that sends the params
The only way PHP would be able to "fix" that is by emulating prepared statements
Which is bad mkay
 
@MichaelIrigoyen You could say that for majority of frameworks, but yeah, comes down to preference. What's with all the statics?
Children, do not emulate prepared statements, that's bad, m'kay.
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, FALSE);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
m'kay
 
@webarto Real men don't need to tell PHP to disable prepared statements ;)
 
@PeeHaa no, I don't really work on DBAL
 
cough real RDBMS couch
 
@DaveRandom That's exactly that part I was supposed to help you with! remember?
 
5:09 PM
@MichaelIrigoyen frameworks are good for two things:
1. projects that need to be finished in less then 2 week and will be online for less then 3 month
2. team projects, where team has nobody with any experience in application architecture
 
3. to be discussed in room 11 why most of them suck
 
in case nr 1., the project will conclude before the technical debt hits
and in case nr 2. the alternative is far more terrifying
 
@PeeHaa I don't get it ^_^ MySQL sucky sucky?
 
@tereško including project built on silex?
 
@iroegbu you will not use Silex for anything that is no a "small mayfly project"
 
5:11 PM
 
ok, I get your point.
 
@webarto Glad you enjoyed it.
 
I think Frameworks are just good for people like me, helps me learn faster... Not using them.
 
5:13 PM
@iroegbu please, just don't learn programing practices from frameworks
 
@MadaraUchiha All the activity has been public, I thought you were watching the repo? You're welcome to do whatever you want, you have commit access ;-)
 
@tereško What do you recommend for a big project that will be online for years and will only have one person working on it? Homegrown MVC? No MVC? Just curious.
 
tbh it's still just a basic proof of concept anyway, it could use some major tidying up/more features
 
@MichaelIrigoyen MVC is a great tool to use in certain apps, sometimes it just won't do.
 
@tereško including symfony 2
 
5:15 PM
Related: The whole "bye-bye docbook" thread on the list is concerning me a bit tbh, markdown sounds like a bad plan
 
MVC allows you to separate input, output and processing from one another.
 
user895378
@DaveRandom Sounds awesome to me. What reservations do you have?
 
I really wish people would stop using the term "MVC" to mean "an application design featuring separation of responsibility." Most things calling themselves MVC aren't actually MVC and real MVC sucks for stateless webapps...
5
 
@DaveRandom Wasn't the point of docbook is to be able to compile it into different formats easily?
 
@MichaelIrigoyen depends. How good the person who making it is? How stable are the requirements? If you have seasoned professional as a developer, who is well versed in OOP and actually understands MVC, then custom made code is the way to go
 
5:16 PM
eih
@DaveRandom ReST is a far better plan
 
@ircmaxell Media Wiki format!
 
@MadaraUchiha docbook in general: yes. Docbook in terms of PHP, HELL NO
 
Did I win the internet for the day?
 
@MadaraUchiha hell no
 
5:17 PM
@Charles Amen!
 
I think the real solution would be a more user-friendly interface to docbook so you don't have to edit the raw XML for the most common tasks. XML is way more expressive than MD/rst could ever be, but I do see the issue with it as a barrier to people contributing (and doing it well)
 
@ircmaxell What's ReST?
 
@LeviMorrison no idea what OP is trying to say, but:
I really enjoy the new PHP web site :)
The design is very cool.

But, I guess that showd have a link to download the PHP documentation in the bottom of this page, or in some other place more easy to find. :P
I taked some time do discover where it is :P

Sorry if that is not the right place to post this ^^
is just a construtive critic :)

Ps.: Sorry about the poor english.

17-Aug-2013 05:57 otaviosoria@yahoo.com.br
Note id: 113008
php.net/manual/en/index.php#113008
Edit Note
Delete Note: integrated
 
But the majority of the time people or modifying pages that all follow the same skeleton format. I'm not saying I want wysiwyg but a half-way ground could be the answer
IMO
 
5:18 PM
The reStructuredText (frequently abbreviated as reST) project is part of the Python programming language Docutils project of the Python Doc-SIG (Documentation Special Interest Group). The goal of the project is to create a set of tools for Python similar to Javadoc for Java or POD for Perl. Docutils can extract comments and information from Python programs, and format them into various forms of useful program documentation. The term reStructuredText is most frequently used to refer to the reST markup format developed by the reST project. In this sense, reST is a lightweight markup langu...
 
@PeeHaa You showd, you know.
 
@iroegbu the DIC for symfony is a mess. The core idea is more or less tolerable, but the tutorials turn it into a bad case of service locator. And that is not the only case where SF2 fails. When we say that SF2 is "best that php frameworks can offer" it's as strong statement as pointing out the smartest kind in the remedial class.
 
@tereško Thanks a lot.
 
@MadaraUchiha ?
 
> But, I guess that showd have a link to download the PHP documentation
 
5:20 PM
ow lol. yeah that :P I thought you were drunk :P
 
Can you showd me the link, please?
[root@dejan ~]# showd
-bash: showd: command not found
 
lol somebody is banned on SO:
Can u help me guyz this is my this is my problem
How can i code this problem???

1. Write a program that display ten integers using array and inputted by the users in  ascending order . Using form ^_^
 
You usually want to code a solution, not a problem.
 
user895378
@DaveRandom FWIW the use of DocBook means I almost never submit doc fixes when I see them. The process is too much of a PITA.
 
hehehehehe
 
5:22 PM
Although many developers code a problem.
 
@PeeHaa it should be tagged with
 
@tereško Aaaah damn. I already deleted the post. Otherwise I would have tagged it properly :D
 
@PeeHaa Where? :D
 
@MadaraUchiha ksort user notes
 
you DO know that we have a lot of 10k+ users
so share to joy
 
5:24 PM
@rdlowrey Yeh I recognise that problem. But I still think that creating yet another markdown-or-whatever-you-want-to-base-it-on-and-call-it is not the answer, the answer is a cleaner editor in which you don't have to edit the XML unless you are a sadist or are doing something non-standard. That could also overcome some of the validation problems.
 
I can agree with ^
When trying to cram all that into some MD form it will suck
 
@tereško I had someone on IRC saying that he had to shard his database by country because it was "huge" (at 2000 rows per country). I face-palmed so loud that there was a net-split
3
 
Is cram a word? It looks stupid now that I have typed it
 
damn .. the world is still compiling
 
@PeeHaa yes
 
5:26 PM
tnx :)
 
Right I'm heading home, I'll catch y'all in a couple of hrs
 
user895378
@DaveRandom You're probably right. I just know that there have been many times where I otherwise would have submitted doc fixes or improvements but ended up saying, "screw it," because of the overhead involved. Something needs to change. Anything would be better than the current system.
 
laters @DaveRandom
 
user895378
@DaveRandom peace out
 
@ircmaxell the netsplit was caused by part of freenode trying to escape
 
5:27 PM
@tereško yeah, figured that was it...
 
Using DOE is a PITA, but with SVN access it shouldn't be a problem. But first you have to go through PITA.
 
@DaveRandom What we need is a thing that compiles rest or markdown to docbook! What could possibly go wrong?
 
@webarto Using SVN would still involve screwing with XML
 
@webarto I'm assuming that PITA stands for "pain in the ars"
 
@tereško yes
 
5:30 PM
@tereško He means a type of flat bread, goes well with Hummus.
 
@tereško Yes mate.
 
Why instead of trying hard to remove your ban on SO you don't try a use a user friendly Q/A site like Experts Exchange. There is no downvotes or Bans there. — S Nash 2 hours ago
lol
 
@PeeHaa It sure does, it's not "easy", but it's not that complex too. All I personally need is preview. Having said that, I should really involve myself into updating some of the docs.
 
@DaveRandom You forgot to mention kittens in your docs request YOU MORON!
 
5 mins ago, by ircmaxell
 
5:32 PM
hehe
 
.. well .. at least compilation of world has got to the lib/clang part
 
Ow nvm @DaveRandom sry
 
9 hours ago, by webarto
You need to say that you like kittens, god dammit!
 
:)
 
Anonymous
arghhh..
 
@Neal get out of our tag ;) stackoverflow.com/questions/18320020/…
 
@PeeHaa hmm? That is my tag. The answer is wrong.
 
@Neal No your comment is wrong
The answer is crap
 
No... no it is not..
> This function checks if the given property exists in the specified class
 
5:58 PM
@Neal read more than the first line of the docs please
Or you'll offend people who maintain the thing
 
@PeeHaa ...
 
You are struggling. Let me help you:
 
@PeeHaa FFS, it has 3 upvotes
 
> The class name or an object of the class to test for
 
is the filled with retards ?
 
5:59 PM
well yeah
:)
 
@tereško is that a rhetorical question?
 
Now bow your head in shame and return to @Neal :D
 
This has 3 upvotes ?! Do you people even understand difference between class and object!? Or stackoverflow is now outsourcing to 4chan? — tereško 53 secs ago
 
I must stop reading the incoming question stream while I still have some remnants of soul left
 
@tereško C'mon we both know you are enjoying this ;)
 
6:04 PM
No, that's it. I cannot stand the stupidity that radiates from it.
 
@tereško This is a ton of stupid that radiates from the stream.
 
@tereško May I suggest reading the fig mailinglist to get your mind of things? :P
 
@Gordon are the mods in general aware of how horrible the quality if new questions is in the popular tags? Are there floating around some ideas how to fix it? Or has the management decided that this is the best thing that can happen and let the help vamps swarm.
 
@Gordon Just wait till the next elections so he can tell everybody he stopped doing shit like that :)
echo @$keywords[$i];
wtfness
 
6:08 PM
... i dont even
 
user895378
Someone should compile Kolink's greatest hits into an 80's-style montage with music.
 
that repfarmer has 100k rep
i bet he is convinced that he is "doing good"
 
@tereško I think we are aware but I am not sure they are ideas to fix it. we basically still believe that community moderation wins the battle
 
have they checked the /review ?
 
user895378
At 100k rep I'd say Kolink is winning the battle ;)
 
6:09 PM
do you remember when it was "a bit over 50k questions pending"
will they start thinking when it reaches 100k ?
 
Is there some data.se query to check the tags in the close queue?
 
user895378
I'm thinking I'm going to switch from src/ to lib/ in my project directories for storing classes since they are, after all, libraries. Anybody have thoughts on this?
 
it's almost 70k now
(it will be over that by the 1st of september)
 
6:12 PM
@rdlowrey I've switched from lib to src couple of months ago because all the cool kids were doing it
But I still kinda agree
 
@rdlowrey I use both
 
@ircmaxell Any specific reason when you use what?
 
user895378
I've used src/ for awhile ... maybe I should just KISS and not worry about it.
 
lib is classes and reusable (potentially) code. src is procedrual wiring and one-off code
 
@tereško there is some topic about it on mso
 
6:13 PM
@tereško I'm wondering what percentage is tagged [php]
 
@rdlowrey will likely conflict with existing directory schemes. For instance phppw creates src folders and I wouldnt be suprised if you there wasn't a PSR recommendation for src.
 
@ircmaxell Sounds reasonable
 
@PeeHaa Possible to compile a query like that?
 
it's what I've been doing lately, and I think I like it
 
@Gordon not yet, I don't think :P
 
6:15 PM
@MadaraUchiha I think it should be possible
 
Start with questions with at least one close vote, and imply from there?
 
Haven't done really that much with data.se because I always get offended I have to prove I'm not a robot
111001010101010000101001
 
@tereško One word, Neal
 
I like python
 
6:18 PM
Everybody likes Python...
 
except those that don't
 
There are very few people who dislike Python, it's like disliking Haskell
 
ummm
yeah.........
 
I dislike some parts in Python, as do many people, but as a language it's very well thought out
 
6:21 PM
I learned Python because of Sublime Text... I wish I would have learned it much sooner
 
It pretty much replaced using bash in 90% of cases
 
What's the value of: public function doSomething($value) { $value++; } $this->doSomething($this->property); echo $this->property;? Does passing in a property result in a change of that property?
 
@Stephane This appears to be offtopic, because it is about hitting random keys on your keyboard trying to form a question.
 
@Stephane hmmm why don't you try it out ?
@PeeHaa lol
 
6:24 PM
@HamZa You do seem to know what the question is though :P
 
@HamZa I am. realized that it was easy to try after I posted. @PeeHaa if I could be a monkey writing shakespeare that would be awesome.
 
@PeeHaa The question is " what's the value of value" lol
 
ah I see kinda
 
@PeeHaa I think he wants a downloadable PHP manual?
 
The answer is no! pastie.org/8250947 I was trying to be succinct in my original question.
 
6:29 PM
@LeviMorrison That makes sense. Your translation that is
 
@LeviMorrison Doesn't that already exist?
 
I knew that passing in an object changed an object, but I didn't know about properties.
 
Surprisingly there has a been a lot of interest in the CHM manual (which was recently removed because of a long streak of failed builds).
I would never use something like that, but I'm hosting an unofficial PHP mirror, so maybe I'm not a representative user >.<
 
@LeviMorrison CHM is webscale
 
6:31 PM
@MadaraUchiha oh fun! I figured something like that existed. Thanks
 
@Ocramius Do you know whether doctrine dbal provides a platform independent way to create a database?
 
@Stephane You aren't assigning the value to the property, so basically you aren't doing anything there : eval.in/43858
 
@HamZa thanks. I changed it to a reference. I hope that's not bad form.
 
@Stephane unless you know what you're doing
 
@Stephane Why would you need to pass it in in the first place?
It's a member of the object
 
6:38 PM
yeah exactly that should be like doSomething(&$value) {
 
guys is this really a valid edit ? stackoverflow.com/q/18320424
 
@DaveJust Insert "Friends don't let friends pass information by reference" meme here
 
@Stephane $tryIt->property; <- it breaks encapsulation, you should use a getter instead
 
I'm breaking up a large procedural Excel creating page into an object. I'm breaking up some of the row creation for a sheet into a separate method. I can either pass in the composition of the sheet (like doSomething($identifier1, $identifier2) or I can just pass the resolved sheet and row by reference. I'm not sure which is better, but this seems to be making my code cleaner.
 
@PeeHaa hmm..
 
@DaveJust it was just a test, not real code
but thanks for helping
 
@Stephane The property is already part of the object. Why would you need to pass anything in?
 
@PeeHaa no, not really. DB creation varies a lot
 
@Ocramius :( I thought I would get that answer
tnx
 
@PeeHaa it's actually not. I was trying to pass this: doSomething($this->sheet[$department][$row])
so I have to identify it somehow
 
6:42 PM
@Stephane that is part of the object
Or are you talking about the dynamic indices?
 
@PeeHaa yes, but in the other method I have to rebuild where we are in the sheet. I think I want to say yes to your question.
I'm building it
cell by cell and I'm trying to make it easier to maintain
(and practice my oo)
 
@Ocramius hmmm that doesn't look very flexible in terms of how the database actually gets created :P
Let me try it out and see what is created :)
 
well, depends on the platform
some platforms create files, other create a schema, others a db
others assume that the DB was created with a different connection (fire-whateveritscalled)
 
Well yeah. But the only thing I see that can passed is the name. No encoding or stuff like that
 
6:47 PM
@PeeHaa is that to me? What would you do to resolve $this->sheet[$sheetName][$row] in a method?
 
Nope that was to mario
 
@PeeHaa that comes with the connection
 
@PeeHaa at the end of June there were 6046 questions with waiting review of the total 56917 questions.
 
@Ocramius aaaaaaaaaaaaaaaah
@tereško hmmmm not as bad as I suspected
 
it only indicates that closing queue represents a fraction of the bad questions
 
6:50 PM
10% of the whole site's question closures are ?? That's really quite sad
 
@ircmaxell lol at the top comment
 
@PeeHaa exactly
 
-3
A: Can the Gmail password be recovered from the Android Gmail app?

zidaneforget pasword plzz recover my pasword

 

« first day (1038 days earlier)      last day (3910 days later) »