« first day (1282 days earlier)      last day (3666 days later) » 

4:00 PM
woo?
 
@Leri Yes, as many other Nginx'ers do. What do you use to overcome this problem?
 
yup now it works
 
@needaname I don't program in php. :D
 
@MikeM. Also, stop using @ to suppress errors.
 
@MikeM. not, not related to you.
 
4:01 PM
Fix the errors.
 
@Leri haha then let's rephrase it. What would you use then?
 
oh I always use @ in vars idk why
 
evenin'
 
Hey @tereško
 
I have to go
 
4:02 PM
morning T
 
See you
 
@needaname Use apcu to increase number of processed requests.
 
need to go to our horse jeez
 
@Leri Didn't know about that. But I even used HipHop for a last resort. I got 110 req/sec at best, and that's the JIT approach, which I think is better than using apcu.
 
4:05 PM
@needaname or that can mean you're better at Python than at PHP.
 
@TOOTSKI How so? :) I began using it this week.
or maybe Python is better at me.
 
Benchmark results without benchmark script are useless*er*. :)
 
@TOOTSKI You can recreate that script if you want :)
20 mins ago, by needaname
@Leri It's a simple script which loops through a FOR statement 2000000 times, calculating the MD5 hash of N + N, N where N is the number of passes.
It's very trivial actually.
 
Seriously, python works with datasets better than many other language out there. So looping might be bad comparison
 
holywar
 
4:13 PM
@Leri Consider the scenario where you have to pull items from the database and show them in a ordered div/input/or both list. That's what a FOR LOOP is for, there's no way around it and till today many apps employ datasets (working with the database, manipulate its results etc..).
you have to have data for an usable application.
But well I'm not saying Php is totally useless. It shines in some aspects and sucks in others.
 
@needaname Usually, you use foreach loop but, yes, you do lots of looping.
 
@Leri It seems so.
 
@nick Don't use frameworks just because. If more of your functionality lies on the frontend, then you may want to use an MV* framework on the frontend and a super light MVP framework on the backend. However, the decision is a subjective one. If you are comfortable writing your own miniature framework, then go right ahead. Else use one of the existing ones.
 
@needaname if you thing kat PHP is htat useless, then use something else and getthe fuck out of this chatroom, instead of flaming here
 
@needaname You can say the same for every language. Every language will set you back in some way or the other.
 
4:24 PM
he has NOT come here to discuss merits of different languages .. instead he has come to proove to himself that his language is the best
 
@tereško You like vertical shooters?
 
@Achrome Of course, every language has his own good and bad things as I outlined few messages back.
 
what was the link to you.can.be.better.than.. ?
 
there is a Python chat room .. if you are not aware
 
4:34 PM
@JoeWatkins When did I say that a JIT isn't different from a user cache? transcript please.
 
30 mins ago, by needaname
@Leri Didn't know about that. But I even used HipHop for a last resort. I got 110 req/sec at best, and that's the JIT approach, which I think is better than using apcu.
 
oh.. as I've guessed.. the holywar
5 messages moved to recycle bin
 
@JoeWatkins I think you got it very wrong. What HipHop does is converting Php code into high level bytecode, which is then translated into machine code by the JIT compiler at runtime.
 
dude, spare me the lecture ...
 
It's not like I'm not informed before I use a piece of software.
@JoeWatkins Dude, understand that I know what I'm talking about.
 
4:44 PM
>python formd5.py
0:00:03.557000

>php formd5.php
10.175581932068
 
@needaname please. We all here respect @JoeWatkins because of his significant participation & contribution to PHP & it's community. So unless you'll proof & show something, it's near useless to argue with he. And - from me personally - there are few guys who can say "@JoeWatkins, Dude" . Please, respect others
 
PHP sucks, right?
 
@TOOTSKI ah, well.. just another holywar. Nothing interesting
 
Opcache does not really goes hand in hand with HipHop.
 
In PHP it's 3 lines, in Python it's 6 (not very good with it).
 
4:46 PM
@TOOTSKI show teh code.
 
Also, it's useless benchmark.
39 mins ago, by needaname
@TOOTSKI You can recreate that script if you want :)
 
@AlmaDo I'm not disrespecting nobody like someone else swearing did. He said "dude", I did too. That's the law of "givetaking".
@TOOTSKI At least an explanation of what it does would have been nice.
that's for MD5?
 
for x in range(1, 2000000):
  hashlib.md5(str(x + x)).hexdigest();

for ($i = 0; $i < 2000000; $i++)
  md5($i + $i);
 
@needaname Caching OP is completely different thing, you understand, right?
 
So, yes, it's 3 times faster, but that hardly explains your 1:20 (or such) request ratio.
 
4:51 PM
@TOOTSKI Your comparison is pretty wrong...
 
@JoeWatkins why did you remove step and quiet from help overview? github.com/krakjoe/phpdbg/commit/…
 
moved to set subcommands
 
@TOOTSKI If my server reaches in your country do an ab benchmark to confirm my claim
192.168.1.159
 
That's a local IP
 
@Leri So? We still haven't seen his.
And I don't know Python, by the way.
But it seems that the same is accomplished.
 
4:54 PM
@JoeWatkins no? at least not step…
 
@TOOTSKI foreach (range(0,2000000) as $n) {} should be used instead of for, if python behaves as I remember it does.
 
@JoeWatkins what? no.
 
what?
 
why did you do this?
 
5:03 PM
I did say I wasn't intending to remove the current way of doing things, was moving it out of the way
 
I meant you should introduce some mode for stepping opcode-by-opcode
 
why did you change the current way of doing things, you remember me saying it should not be removed ?
we already had that model and I said it wasn't to be removed ...
plus how do you turn stepping off ?
 
you use c or s
s for stepping one line
n for continuing until it's broken.
just like in gdb.
 
but you removed the current way of doing things
 
2 hours ago, by bwoebi
@JoeWatkins find your todo in irc, it's what I haven't yet done. And find a good (=user-friendly) way to make opline-by-opline breaks and steps (instead of line-by-line).
I removed it temporarily… I want a method (like set) to restore current behavior
e.g. set step 0/1 for current or old behaviour
 
5:10 PM
well I didn't read it properly ... I think I've said before that I we don't need to chase after how gdb works, and I remember saying don't remove the way things currently work, and it looks like you've done it anyway ...
 
Back :)
 
@JoeWatkins actually I think the gdb is the only true way in this case.
 
well it isn't
 
/me just ordered a metric shit ton sushi \o/
 
Son @PeeHaa
 
5:18 PM
@JoeWatkins it is. current way sucks.
 
no it isn't, what we have now is confused, step does not step one line, step enables stepping or disables it and you still have to continue, so it's not like gdb and not like what we had ...
 
Step really should step one line.
Ask @NikiC if you don't believe me.
I wan't something I like to use and not just use because I have to.
 
but it doesn't does it, it does exactly as it done before, you haven't actually done it, all you done is the one thing I told you not to do ...
 
but I told you I will.
 
 
5:26 PM
Can anyone answer to this question
 
@bwoebi that doesn't matter, I told you not to
 
lol
 
user895378
@JoeWatkins there are lots of things I need to change about artax (time is the issue) but private accessibility is not one of them.
 
user895378
IMO protected visibility is almost always synonymous with bad design.
 
5:32 PM
@rdlowrey Can you elaborate/link? :)
 
user895378
It comes down to unnecessary static coupling. Composition means you can't break things. Objects should communicate with one another, not know about and modify one another.
 
user895378
But I'm out of town until tomorrow ... Typing on the tablet is kinda slow :)
 
@rdlowrey Inheritance has its place. You can't and should not delegate everything.
 
That's deep :) I sort of get it, but now I feel bad I used protected almost always ^^
 
user895378
That's why I said "almost always" and not "always"
 
user895378
5:38 PM
Anyhow, happy "possibly religious but likely pagan-in-origin holiday" to those who are into such things.
 
Happy sun day, @rdlowrey
 
Happy Rabbit Day :)
 
@Leri Where would you favor inheritance over composition?
 
@JoeWatkins So you are always right?
We really should listen to other peoples feedback.
 
I did, and said it was fine to change the default and introduce a new mode ...
 
5:48 PM
@SecondRikudo When relationship between two classnames is is a I prefer inheritance.
 
0
A: PDO Login Script always returning false

Jimbo I'm going to post something that is hopefully a little more useful than those posts above. There are several best practices that can be employed here to make your life easier when coding; after you've wrapped your head around them of course. First and foremost, this looks like your attempt a...

I wrote that after writing out this comment.
 
@JoeWatkins no. I mean to always have to toggle stepping is bad.
 
Also tried posting it earlier but SO was throwing a hissyfit with posting answers
also,
 
@rdlowrey you got some pings in A* room…
 
so develop the idea @bwoebi, don't just ignore what I say and do whatever and expect it not to piss me off ... now I've had to spend my time doing the thing you said you had already done rather than on things that are still waiting to be done ...
 
5:54 PM
@JoeWatkins huh? I had the things done. You're just blatantly reverting it… wait shortly
 
no you didn't
you removed the old way of doing it ...
that's what I told you not to do ... the only thing I told you not to do ...
I've already fixed it ...
or preserved both moves
it is annoying to have to type step on/off ...
if you want to change that .. fine ... but don't remove anything ... anything
 
@JoeWatkins I just tried to push… ^^
Let me have a look at how it's now…
 
so step on/off should be changed now for a next command
set stepping should become set step ...
 
All I want is to have step the gdb way.
 
but wait, next when stepping through oplines means what ?
 
5:59 PM
How is everyone doing today
 
does it really apply, do you ever need to step through assembly instructions in gdb ??
 
@JoeWatkins It means nothing. stepping through oplines just affects step. not next.
@JoeWatkins I sometimes need stepi
step instruction it means or similar
 
I'm aware it exists, have never used it, or been advised to use it, or read a blog post about using it ... I don't think it's used ... the point was I don't know why you are focused on gdb, we are not writing gdb ...
I have to go out a couple of hours @bwoebi, taking everyone home ... be back in a while ...
 
@JoeWatkins I'm not focussed on gdb. I just see that it sucks to use that feature in phpdbg and see an usable alternative in gdb.
 
6:18 PM
Guys very urgent git crash. Giving 250 bounty reps for resolving problem. stackoverflow.com/questions/23159417/…
 
good evening everyone .. didnt know this place exists :-) so stepped by to check it out .. so impress me :P
 
Meh.
 
git clone room11
 
@Maggz check the starred messages :)
@MikeM. good! It was a nice day, worked out, and now I'm chilling behind my computer
 
@JoeWatkins pushed something… github.com/krakjoe/phpdbg/compare/… looks fine now I think?
and please don't force push if you're not okay, discuss first.
btw. there are some old commits in history now, ignore them… it's because you force pushed and I pulled...
 
6:25 PM
@HamZa huh?
 
ugh workout too lazy for that xD
 
@MikeM. man, it's hard to start. But if you start and keep up it feels great!
@Maggz you said "impress me", I told you to check the starred messages
 
Ye but uhm I am just too lazy xD
 
@ham
oops
@HamZa yup .. rly impressed -_o
 
6:41 PM
@Maggz impress me
 
@JoeWatkins Furthermore I suggest to introduce step [<integer>] for stepping at least <integer> lines.
 
Someone is trying to convince me that CodeIgniter is pure MVC
 
my thoughts to your thoughts,
.. no srly no idea ^^
 
7:01 PM
@HamZa lolwut
shold we call a doctor ?
 
@HamZa Try to convince them that global warming is a hoax and dino bones were put by God 5000 years ago.
 
@tereško for @HamZa who must be seriously injured by now?
 
wait, this person also says that laravel is the fist in the world and that CI is better than Sympfony
 
Nice
 
@HamZa all these frameworks are real PITA.
 
7:03 PM
but but but @Achrome globalwarming is a hoax and dino bones were put by god...
 
We should have some canonical on why one should never ever touch CI
 
lets just hope that this is jus nother case of "someone being wrong on the internet" and not a person he has to interact with on a daily basis
 
I always thought dino bones were made in the twentieth century by people who then claimed to have made a sensational discovery!?
 
I've been working with Ruby lately. It's quite interesting.
 
I chat with this person regularly but I ended the discussion since it wasn't going nowhere
and I'm touching C++
 
7:06 PM
C++11?
 
I'm reading cplusplus.com/doc/tutorial I guess it's C++11 compatible
ah "These tutorials explain the C++ language from its basics up to the newest features introduced by C++11."
 
:)
 
^ mvc and wordpress sounds like true and false
 
How does PHP handle sessions per request? Does it lock other requests touching the session?
 
What do you mean Benjamin?
 
Let's say two requests come in and both need to access the session at some point , asp.net defaults to (for god knows why) locking the session until a request is complete, and then giving it to the other request. Lucky for you, you can do read only mode and other helpful stuff to solve it.
Wondering what PHP does here.
 
@BenjaminGruenbaum Yeah it does. There were some recent RFC's to change the behaviour.
"for god knows why" Concurrency problems are hard to abstract.
 
7:36 PM
Someone suggest me an interesting tag? I've given up watching plain .
 
@Danack oh cool.
@salathe probably just blacklist things with or . You can watch but you'll just end up being pissed on a lot of people using it for not knowing what it means.
I wonder if @tereško automated replacing questions tagged with both [tag:asp.net mvc] and with just [tag:asp.net mvc] yet?
 
Yeah I don't think I'll be watching ; beating a dead horse isn't my idea of fun. :)
 
@BenjaminGruenbaum and blacklist everything with these frameworks: laravel, ci, symfony, zf2 … these should be the worst
 
@salathe lol :P
 
7:56 PM
Guys very urgent git crash. Anyone familiar with git. Giving 250 bounty reps for resolving problem. stackoverflow.com/questions/23159417/…
 
seems nice isn't it
I guess it's too big for a captcha though
 
wut !?
 
This captcha seems too big isn't it
 
@MikeM. That's not a captcha
 
@heron and... downvote
 
8:01 PM
how so?
 
@MikeM. that's rasterized red text, not a captcha
 
How it isn't a captcha? (it's the image I use for the verification and to show...)
 
@MikeM. A captcha is supposed to be hard to read for machines
 
help
 
@MikeM. Every OCR recognizes it.
 
8:02 PM
I am going to make the bg diff
It's just a randomizing test...
gona change the bg later...
I am just asking if this size of text would be too big or perfect rofl
 
it's not the bg. It's the text.
the text is too easy to decipher.
 
the font will be changed aswell
 
@MikeM. The point is that your "captcha" poses no problem (repeat: not even the least bit of a problem) to a bot. As such including it serves no purpose and only inconveniences the user.
 
I am just asking if the size would be good enough jeez
 
@MikeM. Don't frustrate, what they are saying is true
 
8:09 PM
I am not it just bothers me that I am just asking something and all are bitching about something else.
They don't know if I am done with it or I am still working on it no they just go and say stuff I am not even done with rofl.
 
what frustrates us is that you obviously have no idea what's the problem-domain of captchas
and no, the size is no good
even is it was implemented in a way, that is not completely pointless, it still would be too large for people to use
 
finally an answer what would be a better size like max chars..
 
it is not the length of text itself which causes problem
instead it is the length of nonsense, which makes it counter-productive
 
well I actually get bored if I'd had to do 22 chars
maybe 10chars max would be better...
 
"bored" is not the word that I would use in this case
 
border?
 
more along the lines: "fuck that"
 
:15954458 start here wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers and stop spamming your question
@SecondRikudo damn, did you do that?
 
So I shouldn't give a shit either it's 10 or 22 chars long or if the user gets bored filling them out or not...
 
@HamZa My last flag did, yeah.
 
8:15 PM
.. oh, and ofcourse he is from india ...
 
@SecondRikudo I see (y) spamming is bad
 
@MikeM. please, pay attention. When you ask users to enter 22 random symbols, they will not get border. They will get annoyed, frustrated and (by the time they reach 8 symbol) angry. Essentially, you will get more "guesses" from bots then from real users.
You "random string of X symbols" is not human readable. It is machine generated and best understood by other machines. Did this nugget penetrate your cerebral cortex?
 
@MikeM. Limit your users to a minimum character length password, not for a max.
 
@SecondRikudo we're talking about captchas...
 
Ah
Well @MikeM. from experience, even the most trivial captcha will stop spammers.
Even silly stuff like "what is the name of this site?" or "what's 40 plus 2?"
In 99% of the cases, it's not worth for the spammer to make a bot especially for your site.
 
8:20 PM
@SecondRikudo meh, the one he posted was useless and could be readed by a very simple OCR program
 
@HamZa 99% of the spammers do not use a very simple OCR program.
Practically speaking from experience here.
Even a very trivial captcha will stop most of the spammers.
 
well it's not for "my site" its for a script I am updating
 
@SecondRikudo you can get the same effect by using <input name="name"> for email address and <input name="email"> for the name
 
@tereško Yup, exactly.
However, that will confuse various password managers etc. So that one might not be such a good idea.
 
if your password manager is dumb, so be it
 
8:23 PM
@MikeM. Use a trivial captcha, add some lines and shapes with it using some image library, and that'll take care of most free OCRs.
No need for more than 5-6 characters
 
I will limit the chars to 6 and I am working to add some lines and dots into it
 
You can also spell out a number and ask them to write it down in number form (i.e. display "Forty Two" in the captcha, and have the user type "42")
That will increase the captcha's complexity while reducing the characters the user has to type
@tereško Why would you think a "non-dumb" manager won't fall for it?
Actually, now that I think of it, it wouldn't matter this way or another.
 
because password manager would save only form which contains .. emm .. like a password
 
Because if you enter your name in the field named "email" and vice versa, that's how it'll be kept, so I think it's good.
@tereško The point is your registering is it not?
 
that was not specified
 
8:28 PM
@tereško There's maybe one more usecase I would think I need a name, an email and a captcha.
Which is adding comments to something without authentication.
 
also, do you really REALLY think that all the forms for which you have saved passwords contain only fields that are called "username" and "password", instead of "nome" and "passvorte"?!
 
@tereško Probably not, but I'm guessing it has some sort of dictionary of words acceptable for "username" and ones acceptable for "password"
I'm not an expert though. Never made such password manager.
 
then think this through .. how would you store authentication details for a login form, with unspecified number of fields?
 
@tereško Well, either by JSON (or some other string format), or some sort of many to many relationship relational table.
 
Anyone here want to try out my solution to this?
2
Q: Browser extension to hide all the activities of a given user on Stack Exchange

Franck DernoncourtI am looking for a browser extension (preferably Chrome) that can hide all the activities (namely questions, answers and comments) of a given user on Stack Exchange, just like when blocking someone on Facebook will hide most of his activities.

You know, break it and complain to me about all the bugs it has?
 
8:32 PM
@SecondRikudo would you parse the document and look for all the fields, that have names "username" and "password" .. or would you, when a form with type="password" element is submitted, store the name of the fields and their respective values for the whole form?
 
Seriously considering a new bike on PCP...
 
@tereško @PeeHaa @DaveRandom this is for you ^ chat.stackoverflow.com/transcript/message/15954814#15954814
@tereško Well, since I wouldn't know which are relevant, I'd probably keep them all and create a blacklist of items that I don't need to save.
Which are likely never to be needed in a login.
Like "Age"
Would you use a dictionary to try and determine which fields are your username and password fields and only save those?
 
here is a hint: if it contains two type="password" elements in a form, it's probably not for authentication
 
What about two passwords that must match?
 
@Jimbo How do you determine that they must match programmatically?
 
8:36 PM
@SecondRikudo Fair point, I have no E_CONTEXT and just jumped into the convo. I shall remain silent. For now... :-)
 
@Jimbo if there are two passwords, it's likely to be a registration ... so ... why are you trying to store it ?
 
@tereško Because you'd want to know how to log in?
 
emm .. what
 
We're still talking about a password manager here, right?
My password manager detects registrations too, not just logins.
 
17 mins ago, by tereško
@SecondRikudo you can get the same effect by using <input name="name"> for email address and <input name="email"> for the name
ya know, I have better things to do then to convince you that this wont bake a password manager
don't like to use it .. well ... I really cannot make myself to care
there is really important Civ5 game that has been waiting for me
 
8:40 PM
@tereško How is it so far?
 
I sucked at the very beginning (two ruins got take right before my nose by bots) and I got a shitty starting location =/
 
@tereško I'm currently into Factorio (which is nice) and Gemcraft Chapter 2: Chasing Shadows (which I'm pretty much done with)
Although I don't play as much
 
my gaming options are currently limited to only weekends and , unlike this week, I usually have only a 3 year old netbook for it ... it kinda sucks ... I probably will get a real PC before end of June
 
Gah, how much repwhoring do I have to do to get to 10k. I feel like I'm selling my soul.
 
8:50 PM
@PeeHaa Wow, you managed to find a language that not even Google Translate knows.
@Jimbo Remember what I told you the other day?
 
@Jimbo 160 to go! Easy!
 
@SecondRikudo Oh damn, I remember you telling me something useful... but not what it was. It was dirty, and I liked it.
 
@SecondRikudo I thought it was arab
 
@Jimbo Write something exceptional, and you'll get a nice fat bounty from me.
@PeeHaa Doesn't look the arab I know.
 
2
A: PDO Login Script always returning false

Jimbo I'm going to post something that is hopefully a little more useful than those posts above. There are several best practices that can be employed here to make your life easier when coding; after you've wrapped your head around them of course. First and foremost, this looks like your attempt a...

 
8:52 PM
 
@SecondRikudo I don't know any so it all looks the same to me :)
 
That's arabic ^
 
It looks more like thai thai-language.com
 
Yep looks the same :D
 
@PeeHaa lol
 
8:52 PM
;-)
 
@Jimbo That is very good, but the question isn't 2 days old yet, so I can't do anything more than upvote for now.
In the meantime:
 
@SecondRikudo Downvoted! You're welcome
:D
 
@PeeHaa That was a low hanging fruit.
 
@SecondRikudo Thanks, I just got really annoyed at that Your Common Sense guy. Seen his answer? It really riled me up - how unhelpful is that
Also, I had no idea you were Madara!! :D
 
@Jimbo dude how can you not know our Madara :O
 
8:59 PM
I know, I am ashamed. Honestly, I thought it was some guy from the JS room who felt bad for choosing such a rubbish room to hang in and wanted to chill with the cool kids
Not as bad as the C++ guys though
 
@PeeHaa I fully agree! Looks as bad as C++.
 

« first day (1282 days earlier)      last day (3666 days later) »