« first day (984 days earlier)      last day (3969 days later) » 

11:00 AM
@Mr.Alien yeah sure, when I will have time :P
@NullPoiиteя sev puri also
 
Mutton seekh rolls.
Sirloin steak
And to top it off, triple cheeseburger
 
@NullPoiиteя rainy season... no pani puri
 
Because of ganduls?
 
@YogeshSuthar yea, I forgot, mr.celeb
nah, dirty water
 
@Mr.Alien pani puri is for season
 
11:02 AM
@NullPoiиteя bhajiya pav is for this season, lol
 
@Mr.Alien ha jese k baaki season me vo log mineral water use karte he
brb in 15 min
 
rofl
 
all mumbaikars ?
 
@Vamsi I read that as "mom bikers"
 
0
Q: Possible duplicate banner appeared witout casting a single close vote

NullPoiиteяI have asked this question on MSO it doesnot have single close vote but it shows possible duplicate banner

 
11:06 AM
@Vamsi men n suthar from mumbai, @NullPoiиteя from rajasthan
 
lol
@Mr.Alien good to know .
 
@NullPoiиteя I forgot to tell you that I can't see that notice "possible duplicate"
so maybe it's just for you, so that you may reconsider yourself
 
@HamZa awww ..... its pretty confusing
 
Please try this one seems like he is the needy person here
 
11:09 AM
@Mr.Alien he may needs rep :P
 
sounds like please, please, try this, and accept my answer...
 
user1125394
may I ask you the equalent php way for sql's UNIX_TIMESTAMP() ? ( reading this '2013-11-11 12:12:12')
 
we all are kids who die for rep
 
You are, we know that, but I really don't care too much
 
11:11 AM
rofl
 
@dragon112 :O
 
user1125394
hmm strtotime if my memory works
 
guys whats the demand for php devs in North India ? In Bangalore its increasing day by day.
 
11:13 AM
@Vamsi I choose business over job
 
you mean real developers or wannabes with some college paper ?
 
PHP devs in North India?
 
user652649
morning
 
@Vamsi north .. here more businessman then developer while demand is low
 
For the dutchies in this room - This just makes me so sad: tweakers.net/nieuws/89923/…
 
11:14 AM
There are a bunch of companies.
 
@Wesツ morning
 
Which hire
@Wesツ morning
 
@Wesツ "I don't know how to star messages properly. I should be banned from the PHP room and Stack Overflow chat in general. I am a disgrace to myself, and my fellow PHP programmers." <-- self loathing?
2
 
@tereško : you wont believe how recruitment works out in some colleges in India. In the college I studied , its Bulk recruitment , 125 students gets selected in a single company, don't even know what they do with that kind of manpower.. 99.9 % of students with gpa about 6.9 get selected if they know how to swap 2 variables in "C" ..
 
11:17 AM
^ insta-nuke please, user self-duplicates question that got marked on hold so education has been done how to proceed.
 
user652649
yes, i hate myself
 
what hr thinks in north India about php developer is vvvvvv(group of php developer )
 
@Vamsi oh .. i am quite aware of how recruiting works in India, and the quality of developers that are produced by the scores of "information technology colleges".
 
@NullPoiиteя ROFL
 
<?php
print sin('15');
print sin('0xF');
var_dump(round('15'));
var_dump(round('0xF'));
?>
Epic win PHP
 
11:22 AM
@Vamsi 1 of my colleague got selected in a bangalore company, gt a ctc of 7 lakh, vooop
 
@Mr.Alien : must be a good college :D , in ours it will be usually 3.5-5 max
 
since you are using ?> , i will assume that this is spam
4
 
@Mr.Alien A month?
 
@dragon112 CTC .. year..
 
What does ctc mean?
 
11:24 AM
@Vamsi he will be trained for .. I forgot... what is the thing for business custom software starts with S
 
Becaus 7 Lakh INR = 8.9k euro
 
@dragon112 thats right
 
@dragon112 fr a year...
hw can I forget the name
 
7 LAKH INR / Year is a very good salary for 2-3 years experienced guy in India
 
Cost to Company = CTC (just looked it up)
 
11:25 AM
@Vamsi he is a fresher
@dragon112 yes, includes allowances, bonus etc etc
 
Ah ok
 
oh well, Indian Rupee is degrading on daily basis these days..
 
LOL I was saying, yes it's SAP, he will be trained for SAP and he is getting 7lakh..
 
@Mr.Alien start business and you will found 770k INR] very less
 
mhm.. SAP as programmer ( ABAP ) or some Module ?
 
11:27 AM
@Vamsi there's a logic behind that, they want the black money to get in india again
@NullPoiиteя that's why am working hard :p
@Vamsi not sure, just training and lil work
 
@Mr.Alien : I see, its a valid argument ;)
 
@Mr.Alien and very very less if you are either IAS/IPS
 
PLB
@Mr.Alien Are costs low as well?
 
11:30 AM
Hi guys... Are there any PHP OOP experts here?
 
@NullPoiиteя That is a hell of a degree... @PLB Living? nope, it's rising expenses here... things are getting costly
@PeterFeatherstone yes, many, currently online -> @hakre
 
@PeterFeatherstone echo strrev('oop');
 
> Don't ask whether someone is here to help you. If someone is around and wants to help they will.
 
PLB
@Mr.Alien Interesting. In that case why do people choose to work as a developer?
 
11:31 AM
I haven't asked for help yet...
I just asked if there are any experts here...
 
no , all the experts are in the RubyOnRails room
 
So just post your question, maybe someone will respond
 
Maybe I want to give them a hug
 
@PeterFeatherstone Guy-on-guy hugging is strictly prohibited
 
and you already wasted your introduction question
 
11:32 AM
now you have to pay.
 
@dragon112 that sounded vaguely inappropriate
 
Maybe I am a girl with a mans face then is it allowed?
 
@tereško But I said hugging..
 
Named Peter?
 
@PLB didn't got you, what should he chose than?
 
11:33 AM
@PeterFeatherstone That makes it even creepier..
 
@hakre ping
 
@dragon112 I agree
maybe a handshake instead?
 
4 mins ago, by Peter Featherstone
Hi guys... Are there any PHP OOP experts here?
 
I shall allow a handshake
 
11:34 AM
this is where you went wrong ... you asked stupid question and nobody is taking serious anymore
 
PLB
@Mr.Alien If I get salary that is below living costs, I'd think that my choice of profession is bad and I'd find something new.
 
@PeterFeatherstone sorry but have you tried SRS :P ?
 
@PLB Or the country you live in is broken.
 
No , where I went wrong was by offering @dragon112 a hug
 
@PLB No, I'd say the choice of company was bad - not profession
 
11:35 AM
@PeterFeatherstone I totally agree to this.
 
I remember you @tereško... Did you ever get improvements on your work situation?
 
@Jimbo while supply is more then demand you are helpless
 
PLB
@Jimbo I thought that too but there was mentioned whole region (north India).
 
PLB
There should not be only one company there.
 
11:36 AM
@PLB No, it depends on place to place, India has a strong economy, the thing is there is much exploitation out here, people need jobs, say 1000 people - 1 company ratio here, you get less vacancy, so in this scenario, people are happy to work even at low salary, only few earns more(if they have some talent and are unique with their work)
 
Can anyone help me to get rid of question ban.Actually i am not able to post anything here.Can anyone help me pls
 
@PLB have you thought why many company outsource to India ?
 
LOL^^^
 
@PeterFeatherstone i handed in my resignation ... i will be free on 17th
 
@PLB Like I said, your country/region is broken
3
 
11:37 AM
@Amith create a new account, nothing to lose
 
@tereško... congratulations! Do you have anything else to go to?
 
@NullPoiиteя because they have gullible project managers
 
@hakre Hey hey. You ever messed around extending DOM? Specifically, have you ever managed to find a way to sensibly make an extended DOMDocument inherit from an extended DOMNode? Ref: stackoverflow.com/a/17317711/889949
 
@tereško I hope it makes you feel free
 
Also its desperation that drives some people here to sign contracts for 2-3 years
 
11:37 AM
@PeterFeatherstone yeah , i have planned a 2 month vacation
 
@tereško and price is cheaper then you imagine .. you can get developer at 300 Euro /month
 
PLB
@Mr.Alien Oh, got it. Thanks. I am not really familiar with that culture.
 
@tereško nice, where do you plan to go?
 
hey i have it already @Mr alien
 
@PeterFeatherstone "not at work" seems like a good start , but mostly anound the countryside
 
11:38 AM
@PLB ;) @Amith what you have?
 
I feel like I'm not fully understanding how DOMDocument::registerNodeClass() should be used, it seems to only do a quarter of the job you would expect it to. But at the same time, I can see it's a bit of a chicken and egg problem, you don't really want to globally set PHP to always create DOM related objects from some lib, because it adds a global state that might break other bits of an app
 
@tereško congrats... I've been to Riga, its lovely... Will you be staying in Latvia?
 
@NullPoiиteя , lets put it this way - i have quite extensive experience with indian outsource
 
i have an account in stackoverflow
 
@tereško in what way do you deal with india?
@Amith create another one or contact the team to lift up the question ban
 
11:40 AM
problem is that i cant ask any question
 
@Amith congress ... you have we have every one have .. :P
 
@PeterFeatherstone yeah .. some boating is planned and several weekends with traditional sauna
 
@NullPoiиteя ROFL, I remember that dialogue.. mere paas bank balanace hai, bungalow hai, car hai, tere paas kya hai?
 
you are making fun with me @Nullpointer
 
@tereško nice... away from the computer for a while... Sometimes you need to switch it off and enjoy life
 
11:41 AM
i am discussing serious matter
whats so funny
@Nullpointer
 
@Amith why did you get a question ban?
 
yap
rit you are @peter
 
@NullPoiиteя Please don't do that, he is stucked and as a high rep user you should help him -> @Amith
 
@Amith I said why...
 
11:42 AM
For my wrong question
 
@DaveRandom yes I messed with that. And I know some tricks. Let's see... :)
 
@Mr.Alien now one can help hem to get rid of ban except himself
 
@Amith If your question(s) are wrong you should fix them and ask for unban
 
How can i do this @Dragon112
 
@Amith Also accept correct answers..
 
@Amith Go to a question and edit it keeping in mind the rules: stackoverflow.com/help/how-to-ask
 
@Amith read the page above
@amith How can I get out of a question ban?
Stack Exchange cannot lift question bans by request.

The only way to end a posting block is to positively contribute to the site; automatic bans never expire or "time out". Begin by fixing your existing posts;
 
@Amith ask mod to undelete your deleted question .. then improve those question
 
11:48 AM
@NullPoiиteя sleep();
 
I just cant understand whats so funny if anyone ask something to gain knowledge,there are some people who discourage those whowants to learn.There is nothing funny if someone wants to learn anything from you @ Mr. Nullpointer.If i can help myself,i wont ask it from you.
 
i am back
 
@Mr.Alien crap internet :(
 
@Amith did you read what I sent you?
 
@Amith : this is the only help you can get stackoverflow.com/contact/quality-blocks
 
Rao
11:50 AM
Hi all, I am trying to display a welcome message on my website's landing page, I want it displayed only once on page load. How do I achieve this?
 
@Mr.Alien 20k rep user are high rep user imo
 
@Rao... Can you elaborate a little? Just type it once...
 
@Rao set cookie and check weather cookie is set or not
 
@Rao Have you ever heard about cookies or sessions ?
 
and if you are showing after user login ...then store status in database
 
PLB
11:51 AM
@Amith There's nothing bad in learning but questions as they are formatted in most cases does not fit Q/A format. E.g., if you ask: what's the best way to do X? There won't be any correct answer. If you ask somebody else to do your job, you won't get anything and so on. That's why most of the so called "noob" questions are closed/deleted here.
 
Rao
yes, will try them
never used either of them before
 
Yes i read it @Peter
Now what should i do?
 
@Amith do what it says...
 
@Amith as i told flag and request mod to undelete
 
Guys in an MVC system or something like Zend Framework... does each page have it's own physical html/php file or is this all handled inside the classes/objects?
 
11:55 AM
@Amith : also all the questions you asked appear to be same ?
 
@Vamsi circular dup :P
 
@NullPoiиteя LOL I was pulling your leg re, that's why I told you ignore and sleep();
 
I made some changes
@ Vamsi
 
my ISP do this for me ... :D
 
@PeterFeatherstone the short answer is : both, kinda
 
11:58 AM
haha @tereško thanks :p
 
basically what you have are one or more templates, per page. Some variation of this: codeangel.org/articles/simple-php-template-engine.html
 
@tereško how are these pages loaded in the browser in terms of the URL... is it done using .htaccess rules or does it load a different page pased on the URL...
I've looked at Zend Framework and things like this but I want to try and build my own just to understand how it works from the bottom up @tereško
 
the recommended way is to funnel all the request to some bootstrap/init file, that will do the routing based on regular expressions
thing is, you cannot relay on .htaccess, because not every server is an Apache
 
@tereško can you recommend any books or online tutorials for this... I don't expect it is something you can fully explain on here... for example bootstrap/init file examples
 
Guys, SEO-wise, is it easier to find SO posts via google if, for example, the tag 'PHP' is in the title of the question, or not? If you're search involves the keyword "PHP"
 
12:01 PM
@tereško are the regular expressions based on the REQUEST_URI or some internal magic
 
@PeterFeatherstone : if I may , check out this tutorial fabien.potencier.org/article/50/…
 
@Vamsi of course you may... the more help the better! I'm just trying to get my head around the initial set up of the pages, in terms of building pages that don't actually 'exist' as physical files
 
@PeterFeatherstone they looks something like this:
'/(:?(:?\/(?P<controller>[^\/\.,;?\n]+))?\/(?P<action>[^\/\.,;?\n]+))?/'
 
@Vamsi for example example.com/friends may not be an actual directory or file on the server but will still be loaded up once that page is requested...
 
basically, this patten, if matched, will produce you an array with two non-numeric keys: "controller" and "action"
you go thought the list of such patterns till you match one
 
12:04 PM
I am a Symfony2 fan boy, but I am pretty sure Zend2 also has a decent router
 
@tereško but if I visit example.com/friends/edit/ and this doesn't actually exist on the server how does the site know to look for my bootstrap file? would it not throw up a 404 error
 
you might also want to add some "default values" for each matched route
well ... the router does not care about what exists and what not
 
Can some 1 help me use GitHub? Im trying to create a file that downloads (.zip) but i dont know how to even start
 
it is responsible for parsing the URL, not executing commands
 
@tereško but how do I get the bootstrap to load on any page load if a page doesnt physical exist if you see what I mean? Instead of getting a 404 error.
 
12:05 PM
when you get the list of criteria for your executable, you try to load class, try to create instance and check if method, that you want to call, exists
if any of these fails, you trigger some error response
 
@tereško but how do I include this init on any URL request to my domain?
example.com/fasdasg/casdf is obviously not going to exist so how would the boostrap pick that up
 
@PeterFeatherstone : it will be under a example.com/some_app.php/fasdasg/casd , but by using URL rewriting they hide it
that some_app.php is the bootstrap file @tereško told about
 
@Vamsi so is this done with .htaccess rules? Is this possible without .htaccess? What you have mentioned makes sense now... So basically every page request goes through the bootstrap file
so example.com/friends/add/ the controller would be friends and the action would be add..
 
yeah..it goes through a bootstrap file
I really cannot recommend codeigniter any more but Codeigniter is definitely the easiest way to understand this concept
 
and then you create classes based on these controller and action names?
I think may be I will try that.. ZF2 didn't seem too easy to pick up quickly
so when the bootstrap recieves the url example.com/controller.php/friends/edit do you just check the $_SERVER['REQUEST_URI'] and use a regex value or is it done some other way
 
12:12 PM
@PeterFeatherstone it will pick it up the way you tell it to pick it up
it is not magic
you write the code, and it does what you tell it to do
 
or use a decent framework which is thoroughly tested ..
 
Hi @tereško no not magic... I just wondered what is the typical way to do it...
@tereško there are lots of people that have done it before, I was just looking for some help... whether you just use the REQUEST_URI value or some other method
 
the typical way is "take a paper and start doodling while you figure it out"
 
ok... anyway... @Vamsi I'd rather talk to you
it seems as though teresko was born as an expert and never recieved help from anyone to get where he is
@tereško this is me doodling... I'm just asking for advice, why be on SO if I cant ask advice?
 
@PeterFeatherstone takes a while to get used to @tereško in chat :P
 
12:15 PM
i already told you how to perform the routing itself
 
@Vamsi evidently... Well I think I have the concept now so I can probably work the rest out myself... thanks guys
 
is it really so hard to write 10 lines of code that check if class with that name and method with that name exists ?
 
@tereško I just asked if I am checking against the URL value that was all... if I know that is correct then yes I can perform all these actions
@tereško I was just looking for the concept
 
16 mins ago, by tereško
the recommended way is to funnel all the request to some bootstrap/init file, that will do the routing based on regular expressions
14 mins ago, by tereško
@PeterFeatherstone they looks something like this:
14 mins ago, by tereško
'/(:?(:?\/(?P<controller>[^\/\.,;?\n]+))?\/(?P<action>[^\/\.,;?\n]+))?/'
13 mins ago, by tereško
basically, this patten, if matched, will produce you an array with two non-numeric keys: "controller" and "action"
11 mins ago, by tereško
when you get the list of criteria for your executable, you try to load class, try to create instance and check if method, that you want to call, exists
 
@tereško I know this and thanks for the responses... I was just asking what I am to do with it... for example to I create a __construct in my bootstrap file that checks the URL request... thats all I need to know
 
12:18 PM
so , what you really want is "plz gimme da codez"
 
@tereško no I dont want the codes... I just want to know if im checking the URL.. I know how to check a URL, I just need to know if thats what im checking
never mind... ill check the URL if it doesnt work ill try something else
 
@PeterFeatherstone : just check out some existing implementations of routing libraries , you might get an idea..but they have evolved too much to actually understand them at one go.
 
also, why the fuck would you have __construct() in the bootstrap ?!? Bootstrap is not an object, it does no hold a state. It is a linear process.
 
thanks @Vamsi and teresko for your help...
 
12:21 PM
@tereško these are my questions... But you seem to not want to answer so I will go and make mistakes myself
 
helloworld !
 
Is there any option to uploading both data and file in one form in codeigniter?
 
@PeterFeatherstone : also check out stackoverflow.com/questions/16356420/…
 
look who answered that question @Vamsi... seems quite ironic
 
12:23 PM
@darshan submit a form and do var_dump( $_POST, $_GET, $_FILES );
when you have do that, see what abstractions for those are used by CI
 
Questions are getting just worser stackoverflow.com/q/17319958
 
@dragon112 Should be required for someone frequenting room 11
 
My messages are just crap, that's why it took so long for me to get that badge :)
 
12:35 PM
@dragon112 mine too
 
@HamZa It's not a competition... (mine are worse!!!)
 
@dragon112 I can't argue further lol
 
Hehe
 
12:36 PM
@tereško okey thnx...:)
 
^ nuke please, self-duplicating on-hold question
 
@hakre Yeh read and upvoted 15 mins ago :-P
tnx
 
I'm not sure if this it was OP asks about (or in total), there is also an issue keeping the own type for the document. But it was not asked specifically about that.
@DaveRandom ah kaysen, yay :)
 
@hakre Reading between the lines, I think what he wants is true multiple inheritance, both inheriting members and type satisfaction, which is just not possible. Something I still don't understand is why traits aren't typehintable.
 
@DaveRandom luckily traits aren't. You can't also (luckily) make a trait implement an interface ;)
 
12:41 PM
Why would that be such a bad thing? I mean obviously it's extremely open to abuse, but isn't everything?
 
@DaveRandom Well, it's easy to do like I showed in my answer. This is also something abusive you could say, however in it's own domain. I would rather like to see types and traits separated from each other.
Which is how we have it currently.
 
But the thing is, a trait is just like a portable interface implementation. I see no reason why it shouldn't be treated as such from a typing point of view. Although I can also see that if I got my own way there I may live to regret it, it would quite possibly result in a whole new approach to spaghetti code.
 
@tereško <input type="file" name="userfile" size="20" /> i used this tag and i got the file in $_POST METHOD i want to upload that file what to do pls help me....
 
^ quick for that one, we can make a huge difference educating that user to think twice before posting question 239.
 
12:48 PM
Is someone familiar with the script Adaptive Images+ ?
 
PLB
@darshan Make sure form has correct enctype and $_FILES will be holding file information unless server is misconfigured.
 
someone tell me how can we use asp.net webservice in php
if anyone know then give me answar..........stackoverflow.com/questions/17317276/…
 
@PLB okey...:)
 
PLB
@Hamender Why do you ask javascript related question in PHP chat room?
 
^^ Just about to do that
 
@Hamender I've left a hint with the close-vote, if the question get's closed you can read it.
 
PLB
@Hamender Also have you tried to google: javascript soap client?
 
because i want to access this webservice in php using jquery
thats why i m asking in php chat room
hello @PLB i am also php developer and i m getting this problem
 
Good morning
 
a good one everybody ;) closing makes more fun today!
 
@ircmaxell Howdy
 
1:15 PM
morning!
 
good evening....:)
 
> This question appears to be off-topic because it is a Tutoring Request for Using a Software named Magento.
wut?
 
It amazes me that PHP Internals takes such hard stands on "best practice" without realizing that the term is subjective and non-absolute...
 
it's a best practice because it's not subjective? :|
either it's best-practice or it's my-practice
 
1:21 PM
it's all relative
best practice depends on what you believe, and which camp you fall in
 
yes, but it's not for a single subject
 
@Ocramius sure it is
 
that's my suggestion, not a "best"
 
What is a better function to use (performance wise) preg_replace or str_replace?
I'm guessing str_replace
 
1:23 PM
it's always subjective. All best-practice is, is a point-in-time concensus among a group of respected people. It's relatively arbitrary, and it's always going to change over time. That makes it subjective and volatile in the long term...
 
PLB
@dragon112 How about profiling?
 
@dragon112 str_replace
of course preg_replace has more options
 
Yea well I already did a preg_match getting the matches matched string
So this should work
 
@dragon112 preg_replace_callback !!!
 
1:29 PM
is there any api to all get the social media accounts from email address
is raplets helps to do this
 
@HamZa Hmmm let me see if that works with my particular use case
 
@gowri you sir are dangerous
 
@dragon112 I love it, especially with anonymous functions :p
 
Lets see what happens when I use it
 
1:32 PM
@HamZa: why you say that
 
So basically the callback will be called for every match of the regex in that string?
 
> is there any api to all get the social media accounts from email address
 
I mean details :)
 
@gowri Ask the NSA for login info to PRISM
 
I'm just asking for a sample code. — Mark Joseph Diamzon 1 min ago
 
that's actually exactly what I'm looking for. Can't believe I've never come across it yet..
 
@dragon112 rapportive.com providing the plugin to get
 
@DaftDev you should maybe read this kunststube.net/encoding
 
@HamZa Too bad we can't 'on-hold' chat messages :)
 
@dragon112 lol, that would be a "hack" to edit them even after 2mn :D
 
1:45 PM
@HamZa Haha you have to start thinking about hacks tsk
 
@dragon112 hehe :D
 
I've never made my own regular expression before (usually googled one but this one is too specific). Was pretty easy using regular-expressions.info
 
If ya need help with regex don't hesitate to ask me
Also, don't forget regex101.com
 
Nah I got it already (isn't that complicated, just not something you need every day), but thanks for the offer.
The preg_replace_callback is pretty awesome
 
gotago
 
1:50 PM
bye bye
 

« first day (984 days earlier)      last day (3969 days later) »