« first day (979 days earlier)      last day (4195 days later) » 

08:00
he he
I requires 152 for php gold badge
brb in 1 hour
mornigngi
@PeeHaa埽 You are sleepy or knurd
@YogeshSuthar cya
user895378
That can't be right ... I'm still too awake for it to be morning. Oh, wait.
@rdlowrey You are knurd too :p
user895378
08:03
These truths we hold to be self-evident.
I've never been not-knurd:p
@dragon112 Even am drinking* right now (In office)
I'm drinking too.
It's tea tho :p
It's water tho :p
@dragon112 Well, you get delete at 10k, and insta-delete at 20k
08:06
See I told that @PeeHaa埽 is knurd, he posted a message here and he fell down
So there is a point in getting more rep at your current point
(Not a point in my case for instance, which is why 90% of my rep is passive)
@MadaraUchiha I know there is a point, but it'd take 3 times as long to reach 10k
@dragon112 a thousand miles walk starts with one step.
@dragon112 The API is designed to support hash algorithm updates without the need to change code ;)
@NikiC Wut, that's pretty cool.. how'd they do that
08:08
@dragon112 as everyone does it, with crypt() prefixes
@NikiC do you have a bit of time?
the used algorithm is encoded in the first characters (e.g. $2y$ for bcrypt)
@NikiC Hmm I'll go and check that method then :)
@MadaraUchiha depends on how much a bit is :D But yes ^^
@MadaraUchiha a thousand miles walk starts with one step. claps claps
08:10
@NikiC I want to grasp my head around the concept of Iterators, what are they, and why they're needed
I'm not talking about implementing the interface, that much is obvious, but rather all the Iteratorish classes that PHP provides.
What can I accomplish with them that I can't accomplish using an array/foreach/other loops
Rep Whoring answers, see how many answers have the same thing
@Mr.Alien I'm really hungover
At least it's friday friday friday
@MadaraUchiha Iterators - unlike arrays - are lazy. You create the elements only when they are needed (and not all at once)
@PeeHaa埽 thought so...
I'm back
08:13
@HamZa Why?
@JesperJacobsen so ? how did it go ?
@HamZa I missed you sooooo much ;)
@NikiC You can do that with an array as well
@Mr.Alien I was a little while ago at home, now I'm at my internship
@dragon112 eh, is that PHP love :)
$a = array(1,2,3); $a[] = 4;
08:14
@HamZa JK :p @dragon112 that sounds yagish :p
E.g. consider reading a large file. Say 2G or 4G or whatever. You want to read all lines individually. So you can either read the file into a large lines-array (which will eat a lot of memory) or you use SplFileObject, which is an iterator that reads the lines one by one (and as such needs a lot less memory)
@Mr.Alien "yagish" = ???
@HamZa dragon got that :p
@Mr.Alien /me not
@Mr.Alien yagish wut?
08:15
@NikiC For reading a file line-by-line I would probably use some sort of buffer, which gets cleared after that line gets processed
@Mr.Alien No I didn't...
(Note I'm not trying to make it hard for you, I just don't get the idea xD)
@Mr.Alien ya mean "gay"?
@MadaraUchiha so you would rather write something using fopen, feof, fread/fgets/or_whatever_those_functions_were_called, wonder what the right buffer size is, etc, rather than just write foreach ($file as $lines) { ... }?
How can i see post question ban periods.
08:17
@Nileshpatel Question bans are permanent, unless you improve yourself.
Read the link you were given (if it's you)
@NikiC Mhm, I see. Well that's one use-case.
@HamZa Well more like guy love :p
4
A: First repeat value from array using php

GuillaumeTry that (or just do your homework) function do_your_homework($arr) { $seen = []; foreach($arr as $a) { if (isset($seen[$a])) return $a; $seen[$a] = 1; } return false; }

^Dat function name!
lol guys jus kissin :p anyways am off for lunch, btw love you all too
now I said love you all, so give me some rep
user895378
@MadaraUchiha I've gotten a lot of mileage out of iterators and their lazy functionality ... in my server I stream HTTP responses to a client socket in one process where the response is actually generated in another process. As data arrives from the other process I can dump it into the iterator (a reference to which I've retained).
08:19
@Mr.Alien lolz love 4 rep
ha ha no, seriously love, rep is bonus :p
user895378
Meanwhile the server keeps checking Iterator::current as long as Iterator::valid is TRUE.
@Mr.Alien CSS or PHP ?
@rdlowrey Who's the server? process A or B?
user895378
Server (A) -> receives request + creates an iterator -> tells worker Process (B) it needs to do some work.
08:22
@rdlowrey PHP supports multi-processing? :o When'd that happen (or how are you doing it?)
user895378
The specific example I'm speaking of is behind a private repo at the moment so I can't share it just now.
@rdlowrey Wut got that one in my bookmarks..
@rdlowrey Looks interesting, I'll have a look!
user895378
While the interface is fairly stable at this point I don't have any documentation so it's not very user friendly.
user895378
It is, however, very powerful. I'm using that to do serious multiprocessing in a way that feels synchronous.
user895378
And I have an adapter in there right now so you can delegate work to python functions from inside php userland scripts as well. At some point I plan to sit down and write adapters for other languages.
user895378
That's also what I'm using to power my crazy parallel HTTP client library
user895378
In the latest tests it fully retrieves google.com 100 times in ~1 second
@MadaraUchiha what question i have to improve? stackoverflow.com/users/1568236/nilesh-patel?tab=questions.
08:29
@Nileshpatel Do you have deleted questions?
@MadaraUchiha yes but is not show.
@Nileshpatel Those deleted questions count against you. Ask a moderator (like @Gordon) to undelete those questions for you, so that you may improve them.
Especially if you have downvoted and closed deleted questions.
I'll review over your questions now, make sure to take a look at the Stack Overflow question checklist and make sure all of your current questions have most of the details on it.
@Gordon Hi help me to undelete question and get out from post question.
@Nileshpatel The best (and quickest) way would be to go to any of your questions (not deleted), and flag it with a custom flag, explain the situation and tell that you want to improve the questions that were deleted.
ALSO READ THE LINK YOU WERE GIVEN!
211
Q: What can I do when getting "Sorry, we are no longer accepting questions/answers from this account"?

ArjanDo not repost the question you were about to ask until you have READ EVERYTHING WE ARE ABOUT TO TELL YOU. While trying to ask a question, one could get: Oops! Your question couldn't be submitted because: Sorry, we are no longer accepting questions from this account. See http://go...

Read it! ALL OF IT!
08:36
Nooo
@MadaraUchiha Don't shout, my ears are hurting =(
I am NOT falling for it today.
Not opening any links today
@dragon112 I was quicker :)
@MadaraUchiha i read that one and then i come here thanks a lot.
08:37
@MadaraUchiha hey!!
NOTHING!
@MadaraUchiha Now my message looks misformed...
@dragon112 :(
@dragon112 :D
Meh fixed it.
@MadaraUchiha You forgot to make it bold
08:38
@NikiC Rebecca Black shalt not enter thy channel!
@HamZa Too old to edit :(
@MadaraUchiha he, I think 2 mn is too short. Why isn't it 5mn like answers/questions ?
@HamZa I smell a meta post!
@HamZa Because the "edit" feature is only meant for typo fixes etc.
@MadaraUchiha I see
08:39
Remember that the chat's history is logged.
@dragon112 No, I'm sure it get's downvoted
What if you only notice the typo after 2 min? :o
@dragon112 too bad, add a new message with "hello*"
@HamZa after 2 minutes? there'd be like 20 other messages before it
08:41
@Nileshpatel Uhhh I don't think @tereško is a mod.. :o
@tereško ignore ...
@dragon112 how can find mod...
It seems you don't read the messages that people send to help you...
7 mins ago, by Madara Uchiha
@Nileshpatel The best (and quickest) way would be to go to any of your questions (not deleted), and flag it with a custom flag, explain the situation and tell that you want to improve the questions that were deleted.
am back..
you're pinging everyone for something trivial. You were already advised by Madara. Go do what he told you, I'm sure you didn't read the links he gave you.
So stop pinging, stop constantly asking for help. Go read, learn, search.
08:44
@HamZa gosh, y so angry and on whom?
@Nileshpatel And most importantly fix your current questions before you try and get your deleted questions un-deleted.
I guess we are firing this guy? -> Nileshpatel
No not angry, just giving some advice. If questions are not understandable then why should we even undelete them ?
Madara told him what to do, but he's pinging everyone instead of reading
@HamZa So now you understood how annoying it is to stay in India? :p
@MadaraUchiha Spoon feeding..
08:47
Probably, I was bored :D
@Mr.Alien More like funnel feeding :)
@MadaraUchiha LOL actually you already spoon fed him, that was lyk breast feeding, ha ha ha
@dragon112 LOL ^^^
@Mr.Alien It's not just in india. Help vampires is a global problem. But I've to say that the culture may encourage it.
@HamZa maximum are from our country
proud of my country
:p
@Mr.Alien I really don't understand why the problem comes from India in particular...
08:50
@MadaraUchiha culture, I have some algerian contacts, and they are also like that
Tells you "i've an error" and asks you where might be the problem ?
@HamZa Culture that nurtures zero effort and annoyingness? I bet that's successful :X
without code, error description etc...
@MadaraUchiha lol xD
@MadaraUchiha It's just like that, I think that people in 3rd world countries tend to help each other more than usual.
EVERY
SINGLE
08:52
But I might be wrong
@BoltClock Hmm?
(actually this is probably the first time I'm seeing this)
@MadaraUchiha I'm looking at you...r flag
What, @userx help @usery help @userz help?
@BoltClock m...y flag?
I don't think it's culture, it's lazyness of the people here, just in the morning I was talking with my mom, that in some countries, job less citizens are given few money every day, so my mom replied that if this rule started in India, everyone will stop working :p
08:53
@Mr.Alien algerians are also lazy (well not all)
@Mr.Alien Sounds like culture
so it's culture ?
@BoltClock can't say culture, cuz not everyones same here.. but nyways, can culture :p
@Mr.Alien Culture doesn't apply to everyone, just to the general public.
LOL I realized, the cv question was indian too, I think the amount of questions I've closed, 70% are from my country
@dragon112 Yea
08:55
Well... you know, based on the fact that they can return any generic object, that you are hiding the dependencies of a class, that you can violate SRP as you can return any dao as you want. I think this is a more correct way to do it: $user = new User(...); $this->daoUser->fetch($user); — Matthew 6 mins ago
internet makes me sad
Actually even we don't get some good tutors here....
lack of socialness is also a part of this
@tereško I think you should create a website "internet sadness". Every day you post one of those sad moments, could be a great hit !
Instead we should start a blog together.. bangon php
blogs are soo 2012 - parsererror - retry / cancel
wth o.O
idle timeout or something ?
@tereško in stackoverflow.com/a/11873920/871050 you're assuming that the name of the user is unique, right?
@BoltClock Yeah I know that site
Has anyone seen sn1p? Looks like github, any opinions? (Also if anyone signs up, could you use this link as I may get beta access, cheers)
Done :)
1 thing that site misses out is FUNCTIONS are CASE INSENSITIVE
Looks pretty cool
09:06
@Mr.Alien Not in PHP they're not?
function l() { echo 'hi'; } echo l(L()); - what do you think that does?
@Jimbo They are :-/
I was just reading that... Don't remove a message that I'm reading :<
@Jimbo echos hi twice
@Jimbo output "hi"
@Jimbo hihi
09:07
@BoltClock is right, it does it twice. Try it
Yeah, as proven here: 3v4l.org/iG7FG
@Jimbo So they are case insensitive
wrong message, http://stackoverflow.com/questions/17230692/regular-expression-for-url-which-not-containing-youtube#comment24965120_17230754
I wanted to ping phpnoob
ಠ_ಠ
Oh wait, case INsensitive
09:07
@BoltClock Functions are case insensitive, as well as variables
too early XD
why it echoes twice :O?
Certain key words are not.
@Mr.Alien Because it calls the l() function twice
@MadaraUchiha variables are case sensitive..
09:08
Because, in PHP, L() and l()` are the same function call
@BoltClock But it should be counted as param 1?
@Mr.Alien You can pass in any extra parameters to a function and they are ignored
@Mr.Alien No. That L() is being passed to l() is irrelevant - the echo will still happen
LOL never tried passing a func inside a func call
@Mr.Alien Yup, that's right.
09:08
how strange
@Mr.Alien Really? You should try it, it's great fun. Saves you dozens of otherwise unnecessary variables
@Mr.Alien You can have an argument of the callable type.
factories allow you to inject dependencies into a class, but they are often used as a service locator, as you showed in your example. Now if I would want to inject domain objects, then I would create an interface for a IUserFactory, and not a generic domainObjectFactory which could return any type of object and clearly hide the dependencies of a class. — Matthew 12 mins ago
@BoltClock I never did something like that, lol let me try on my local
i want the ability to downvote comments
12
09:10
@tereško meta post ?
@tereško They need educating, is all
Oh yes, ha ha it's fun..
@HamZa twas deathly discussed, probably not happening soon
@MadaraUchiha I see, I'm affraid they come up with "no, flag it"
09:11
Have you never done something like this?

function a() { return "a"; } echo a();
Something like that
I don't think it's necessary to down vote comments, if it's completely off topic, we can flag it any ways
@dragon112 that's basic
It's the same thing
@Mr.Alien But if it isn't? If it's just wrong?
What if it isn't helpful? But not enough to warrant a deletion?
@Nileshpatel @MadaraUchiha what's the matter?
09:12
@Gordon He wants to undelete his questions
@Gordon No longer relevant.
User started with a constructive conversation about getting himself question unbanned, which then turned into a pinging match try to get people to upvote his comments.
@MadaraUchiha ???
@BoltClock helped us by promptly removing him from the room.
09:13
@MadaraUchiha lol didn't know that. So that's why I don't see him around ?
@Mr.Alien What if someone posts a comment
> Don't escape your parameters to a query! It's a waste of memory and resources!
(Maybe that's a bit extreme, yes? But the idea is the same).
The comment is on-topic, it is informative, but it's just plain wrong.
I guess you could still flag it..
But that'd require the mods to go all over the place all the time fixing this
So downvoting would indicate that you think that comment is complete rubbish
@Jimbo Why is that off topic?
09:17
@tereško why is that even tagged MVC?
i have no idea
i get the impression that Orourkek tags all questions with "mvc"
@Jimbo No I reopened it. It's not half bad
@BoltClock I argue it should go to Server Fault
Either Server Fault / Super User?
@MadaraUchiha Well I do have to reopen it first before I can move it anywhere :P
09:19
That's true.
But I don't want the mods there crapping on me so I'll leave it for now
@BoltClock I've already asked on TL
@BoltClock no, it is completely non-constructive.
@MadaraUchiha Or superuser maybe..
"how to install X on linux" is pointless question
there are 1000+ different linux distros
09:20
OK then choose the right close reason. Maybe something like NARQ
@sta
@MadaraUchiha Thankyou .... :)
@tereško if you want to see how Service Locators and Factories can be similar, look @ http://blog.ploeh.dk/2010/11/01/PatternRecognitionAbstractFactoryorServiceLocator/
It is easy to use a factory as a service locator and a common practice
@MadaraUchiha hmmm
@NullPoiиteя Kuch bhi pic upload karneka
Hey anyone knows why the newly created column is not showing inside phpmyadmin when use browse, but it display when I view its structure?
@YogeshSuthar LOL still stuck at the same point?
09:28
@Mr.Alien Yeah, still not found its solution
But why don't you re install wamp?
the column number is 40 and its not showing
40 columns in a table?
@Mr.Alien gesundheit!
@Gordon I don't like potato :p
09:30
@Mr.Alien yes and the problem is in my office system
@mr. Alien :P
@Gordon Now potato salad turned to health
How? I see those topics but they are too hard to understand. — John Balls 9 mins ago
^ sigh
Nice surname...
@Mr.Alien what was the fun part in my comment?
$mapper = $this->dataMapperFactory->build('userMapper');
doesn't this obviously look like a service locator?
09:33
@Matthew What?
@YogeshSuthar My office has some vacancy :p
@Mr.Alien But here no one wants to switch. :P
@YogeshSuthar Is it an office or a big company?
@Mr.Alien @Mr.Alien oops I thought you were referring to teresko's comment above
@Matthew that article is completely wrong
@Mr.Alien Its small company with 50 employee. Now we can't hire anyone because there is no space. :P
09:39
@Matthew Thats what I thought that why this guy caught me and for what :p
@YogeshSuthar 50 is too much
for a small company
hi, can any one tell me how to write cron.php file for an php insertion webservice
@lalith458 Where are you stuck?
@lalith458 You need to make normal PHP script as you do it, than from cpanel, just browse the file you want to cron and set the time...
@Mr.Alien Small in employee size. In my first company there was only 3 employee.
@YogeshSuthar here we have 10
Ohh this Fast and the furious we own it is just making me speed up my work..
09:42
@Mr.Alien k.. can u tell how to execute that php file using corn job in localhost server
@lalit458 Google will help you .... and if it doesn't work come here we will teach you how to google
@Mr.Alien Small company, happy company. :P
@lalith458 Windows? Than answer is no
Small company ...more work less facilities
No pf no medical
Every frequent chat user should know this website: lmgtfy.com
09:44
But yes small company happy company :P
@NullPoiиteя Small companies, you get to work more is better, we get to learn so mych, not like other companies where we have to focus on a single task
@hamza also goo.gl
@NullPoiиteя In big companies lazy person is always blaming on other people and not doing work. Also as @Mr.Alien said.
@NullPoiиteя and php.net
:D
boss came wait.. :p
09:46
Have to admit I much prefer our 12 man dev team to my old 180 man dev team
wil brb
@Mr.Alien yes i want to execute that php file using corn job in localhost server on windows 7 OS
good morning
@tereško no you are wrong. and inject your dependencies the wrong way.
I tried a small company for 7 days .... and now I think why I wasted my 7 days of life
09:47
@lalith458 sigh have you searched ?
@NullPoiиteя Find any middle scale company where you can utilize your knowledge. Don't go in too big or too small.
@HamZa yes
@YogeshSuthar Big companies CAN be good, but most aren't
@lalith458 No you either haven't, or you haven't searched enough
09:49
for a developer
Random chat invites
@Jimbo lulz
@LightningDust We have to go in big companies when we have enough knowledge, but we have to start from small or middle scale company.
@MadaraUchiha as NC ? or NARQ ?
Smal question, when you guys put a website online, do you use a special tool for it, Im not talking about ftp client but I mean is there a tool I can easily say from 'commit this new edit online' ?
@HamZa NARQ
No formatting, not clear
@HamZa Did you just the same question?
I believe he did!
@Matthew what ?
@tereško lol
09:54
@YogeshSuthar working for company is really a bad rather worse
$user = $this->domainObjectFactory->build('user');
$mapper = $this->dataMapperFactory->build('userMapper');

$user->setName('Foobar');
$mapper->fetch( $user );
@BoltClock there were no cv's when @MadaraUchiha posted it. I then vote closed it and asked again
@Matthew , which is the line , form those 4 , that you think is wrong ?
which injects the dependencies "the wrogn way" ?
please ... elaborate
@NullPoiиteя I am not working for company. I am working fo myself to gain knowledge. :)
09:55
@lalith458 You can't, else you can try setting a task in task manager
yay 12oclock and I haven't had time do any shit yet :(
@PeeHaa埽 I told you, you are knurd
@HamZa What's the point of this?
@MadaraUchiha I love futurama
09:56
@BoltClock Make sure to close it ?
@BoltClock Seems like you are free today
lol
@tereško your $this->domainObjectFactory and $this->dataMapperFactory allow you to retrieve any domain object and data mapper, and they are hiding the dependencies of your class and can lead to SRP
@HamZa All s are logged in the backlog, there's no point asking twice.
@BoltClock Basically if I haden't, it wouldn't have reached 4 votes
@MadaraUchiha I know
09:57
@Matthew what ?
do you know what factory is ?
So is every posted here twice, once for the first vote and a second time for the rest of the votes?
I'm asking because although I'm not familiar with the , that just makes no sense to me
@tereško Your factories can make basically any type of object and because of that it can violate SRP.
@BoltClock no
@BoltClock I hope not
(That's his point, I think?)
09:58
@tereško yes, allow to delegare the creation of an object (the new operator) to the factory and make loosely-coupled objects
@BoltClock Not really
*delegate
@Matthew WHAT THE FUCK ARE YOU TALKING ABOUT ?!?!?
@bolt do you have any thoughts about: meta.stackoverflow.com/a/185107/155197 ?
@tereško Be nice.
09:59
i cannot
this person makes no sense
@tereško youa re not very cosntructive

« first day (979 days earlier)      last day (4195 days later) »