« first day (1508 days earlier)      last day (3426 days later) » 

9:00 AM
Bunch of Macfags in office...
 
Would be fawesome if I worked with @JoeWatkins :-P
 
booo, down with apple stuff and ithings ...
@webarto certainly ...
recv'd request to add contact on skype from warm_areola26
 
@webarto you guys work in the canteen/cafeteria??
 
@webarto same for me, 5.3 :(
 
9:05 AM
classy ...
@Naruto I'm a parking attendant ...
 
codeignitor cometchat chatroom not showing other users posts anyone ?
 
@JoeWatkins LOOOL
 
@JoeWatkins haha :)
 
9:23 AM
hehehe @PeeHaa because it is shouting?smh!
Is an sql query question acceptable here?
 
posted on December 02, 2014 by kbironneau

/* by donPeppe */

 
@PeeHaa I don't know why he wants that, I heard HTML is superior to PHP.
4
 
mornings
 
It is great and does all the thnigs
@DaveRandom yo
 
@PeeHaa Did you want some assistance with something? I was pretty busy all day yesterday
 
Hello BusyRandom
 
10:04 AM
@DaveRandom Do you have some spare time tonight. I am just cannot get my certificate to work for some stupid reason
 
@PeeHaa Should do from about 9.30-10 UK time
 
\o/
 
:-)
 
he means am
And it's 10:05
 
trollololol
 
10:10 AM
y u no blogpost?
 
@Fabor me?
 
Anyone who can :P
 
@Fabor I have created headings for a post at least :P gist.github.com/PeeHaa/b412a45caa8ee775e4b1
 
Nice
 
But then I screwed up my mailserver, and and I have been trying to get my new certificate to play nice with nginx, but I suck
Basically it all started with this. Pro tip; just fix the thing you want to fix and stay away from other stuff
 
10:19 AM
Morning
@PeeHaa I wonder I wonder, why can't I vote to delete it. Need 20K rep?
 
monring @HamZa
@HamZa yeah 10k users have to wait before they can delv new questions
 
I think I'll have 20k in ~6 months
or a year
(without answering any question, of course)
 
Go rep hunting during the hat season :P
 
I just need 11 days of rep cap...
 
I just got a bounty of 100 :D
@PeeHaa thanks for the clarification
 
10:24 AM
anytime
 
Hamza nice rep just 1 question and all those answers (y)
 
@Fabor I just remembered this video when thinking about your profile picture: https://www.youtube.com/watch?v=YGxbOFKvszY
Is that you?
@Gotalove I usually don't even ask questions since everything is almost there on the internet. Well except here in chat which does allow "opinion based" answers...
 
lol. How is your bar stuff going?
 
hehe true but at times the solutions are at times specific in nature and hard to fliter out
 
@Fabor Pretty neat. I can max 15 pullups, I learned the muscle-up, I can do a "crappy" human flag, and training for the front lever :D
 
10:28 AM
Nice
Good progress
 
Yeah compared to the 2 pullups I could do I'm pretty impressed myself :P
 
in this room I always feel like a toddler with my low level questions.Honestly I think there should be a php still struggling room. :-P
 
we were all noobs at some point
 
@FlorianMargaine We still are
 
no...
sure, we're still noobs in the grand scheme of things, but we're not noobs at php
 
10:31 AM
hahaha PeeHaa yea right!
 
Even the people who make me feel like a noob in here are made to feel like noobs by some other people in here.
 
one thing though is you guys dont even do websites the code you guys drop in here
I get it 0.00000001% of the time
so am limited to commenting on the silly video by hamza :-)
 
BTW @Fabor speaking of the blog. Are you whining because of you leg? You should have all the time in the world right now :)
 
@PeeHaa I am back at work.
 
Wow
That was fast
 
10:34 AM
Yeah, the boss was eager.
 
:)
 
speaking of anyone here who has worked with cometchat?
 
Pirates don't wait :)
 
I read different things about the surgery. Some people would still be in hospital at this point.
Either way, sitting at a desk doesn't feel great on my knee.
 
@Gotalove not me, sorry
 
10:36 AM
Fabien you fractured your leg?
alright thanks @FlorianMargaine
 
@Fabor You in a wheelchair or on walking thingies (don't know the nglish word)
 
haha walking sticks
 
I had (and am the only case of) perpetuating stress fractures. \o/. After 1.6 years of trying to figure out why it wouldn't heal they decided to just to the surgery they earmarked me for over a year ago.
 
hahah Peehaa you couldnt remember the word stick?
 
@PeeHaa I have crutches but I just limp instead. Again research on recovery is split on whether to weight bear or not. I've gone not and I am just trying to walk around like normal.
 
10:41 AM
@Gotalove Is it stick? :P
 
@FlorianMargaine if I may ask what is it you do at your company?@PeeHaa yes walking stick.
 
:)
 
@Gotalove drupal dev
 
okay.Is it much different from codeignitor dev?
 
I don't know codeignitor, can't tell
 
10:45 AM
:) okay hehe I am just meddling in it myself.Still havent done a project with any php framework
 
maybe you mean codeigniter though
 
hahaha dude I dint even notice that
and yes
 
@FlorianMargaine That's such a common typo that I can never even remember which one is correct any more
 
Question. Say I have the folder "http" which contains an interface for a client. Would you call that interface "Client" or "HttpClient" IE do you take the folder in to account for the name.
 
@Fabor there are 2 schools for that...
I'm on the side of not repeating
 
10:50 AM
@Fabor use Http\Client as HttpClient;
^ satisfies everyone
 
Ah cool cheers
 
A walking stick is a device used by many people to facilitate balancing while walking. Walking sticks come in many shapes and sizes, and can be sought by collectors. Some kinds of walking stick may be used by people with disabilities as a crutch. The walking stick has also historically been known to be used as a defensive or offensive weapon, and may conceal a knife or sword as in a swordstick. Walking sticks, also known as trekking poles, pilgrim's staffs, hiking poles or hiking sticks, are used by hikers for a wide variety of purposes: to clear spider webs, or part thick bushes or grass obscuring...
Doesn't seem like the stick @PeeHaa was talking about :P
@Gotalove and no that video is awesome. Do you even muscle up bro?
 
@HamZa Give it a few years :P
 
Now I just need a better name for my interface. I need a name for the interface and adapter for my httpclient.
 
hehe
 
10:54 AM
@Fabor Client interface and Curl or Stream adapter?
 
^ this
 
Why Curl/Stream?
 
interface names are the abstract concept, implementations are named after their underlying mechanism
class CurlClient implements Client {} class StreamClient implements Client {}
 
Ah gotcha
 
@Fabor Or whatever your adapter is adaptering
 
10:56 AM
Yeah cheers :)
 
hahaha @HamZa hehe definitely not that one.And I am skinny am 6 '1 and weight about 62kgs
 
hi
need help in IE issue
IE unable to read input type submit
in $_POST
 
You know this is the PHP room?
 
But ... $_POST!
 
$_POST is there
 
11:02 AM
Between some optimizations from @naderman and a tip by @schmittjoh about gc_disable, Composer now runs in ~half the time it did yesterday!
looks like https doesnt onebox
 
Ah yes.
 
any idea about IE issue?
 
@Shri This is the php room, not the microsoft support hotline
 
i know.
problem facing in php thats why m asking
is there any way in php to handle situation
 
Yeah, but only with IE ... and that makes it an IE problem.
 
11:07 AM
ok @Jack. thanks for opinion
 
It's certainly not a PHP problem; PHP is perfect, it cannot do anything wrong.
8
 
@Ja͢ck on the browser side - yes
s/browser/client/g
 
@Shri if(preg_match('/(?i)msie [1-8]/',$_SERVER['HTTP_USER_AGENT'])) { header('Location: google.com/chrome'); exit; }
that should work
 
@Patrick why would you use an inline modifier with php...
 
I was wondering about that too; it does work, of course.
 
11:12 AM
I just copied that from an SO answer... don't blame me :D
 
Also for safety/future maintainance I would just use [0-9]+
 
Any browser builder that puts /MSIE/i in their user agent is just asking for it.
 
@Ja͢ck Yeah sure, that's the whole point ^^
 
@NikiC So they're both reusable then?
 
yes
 
11:18 AM
Awesome :D
 
@Patrick So I guess the perf improvements you get when running composer via hhvm are probably just the lack of GC on their side ^^
 
@ircmaxell blog.mayflower.de/5008-secure-password-authentication.html might interest you. not about sausages though.
 
@LeviMorrison For 5.x I obviously recommend reading phpinternalsbook.com/classes_objects.html, but for 7.x the best way is probably looking through the implementation of some existing class (and preferably not an SPL class or you'll be copying crap code)
@LeviMorrison In 7.x the zend_object should be embedded after your custom members - unless you want to forbid inheritance and addition of properties.
 
needle, haystack -vs- haystack, needle?
 
@NikiC But then you need to use XtOffsetOf right?
 
11:27 AM
@LeviMorrison I think wiki.php.net/phpng-upgrading#custom_objects can probably help a bit too - it's some of the diff to 5.x, but it should also help writing new code.
@Ja͢ck yes
 
DO YOU LIKE WORKING ON REALLY HARD PROBLEMS? JOIN US AND TRY FIGURING OUT HOW TO MAKE THIS TEN YEAR OLD HEAP OF SHIT APP RUN IN THE CLOUD
 
@Fabor I would favor $haystack->find($needle)
 
@LeviMorrison What NikiC said, mostly. You could look at a simple class like Closure, or maybe CURLFile. Also, while phpinternalsbook.com is outdated, it's still worth reading first as it'll explain a bunch of stuff - PHP 7 has changed some things, but a lot is the same.
 
@tereško Is that kind of method named something in particular?
 
Yeah no, don't look at closure
 
11:29 AM
@NikiC Why not?
 
Closure does a bunch of things that your average class will not be able to do
 
@NikiC Such as?
 
E.g. it has an inverted zend_object structure (because it's final)
 
Ah, right
 
I prefer DOM as my paradigm of doing php-src stuff :)
 
11:32 AM
Oh god
 
@Ja͢ck eh...
 
:D
 
@Fabor not that I am aware of
 
Is it worse than SPL? Did I miss something?
 
(I think there just aren't any good example classes :P)
 
11:33 AM
How about UString? heh
 
Hah
UString has too many layers of abstraction
Way too many.
 
yay .. good that I didn't go to work today
 
UString is an onion ;-)
 
Like an ogre.
 
@tereško How come?
 
11:35 AM
health issues
details don't matter
but originally it was because I woke up just before 11AM .. which would place me a work some time after half-past-12
call in, said that I overslept and will be working from home
 
They didn't mind?
 
not like there is anything they can do about it
also the company has "yeah, it's ok to work from home from time to time" policy
 
12:07 PM
That's good.
 
My employment situation is not all-bad
it's just that I am stuck in a large, under-estimated and mis-managed project
.. and have been doing "frontend" for past 3 weeks for it
 
@tereško i remember you from past conversations, so good morning to you :)
@tereško i have a question if i may
 
mornin'
well , I am in relatively good mood, so go ahead
 
well
i will then
i have a function to clean my strings
@tereško whats the ctrl + button to send a code ?
 
ctrl+k
 
12:15 PM
thanks :)
function getPostVar($var, $default = null) {
	return (array_key_exists($var, $_POST))	? strip_magic_quotes($_POST[$var]) : $default;
}
that's my function
 
strip_magic_quotes()? o.0
 
yeah , well , magic quotes are gone since 5.3 (IIRC)
 
let me finish please :)
 
... this might take some time
I think I will go and make some tea in meanwhile
 
@Ja͢ck Can't criticise people for undoing stupidity, really
 
12:17 PM
Nope ... it's just a blast from the past for me.
 
wat, chat rendering is broken
 
C'mon Dave. We shouldn't use the "Can't" word. :P. You can do anything you like.
 
@DaveRandom not on firefox. Try turning it off and on again
 
@Fabor Including your mum
Oh yes he did
 
Yo' mamma is so fat she threw on a sheet for Halloween and went as Antarctica.
6
 
12:20 PM
This reminds me of an ad agency award ... one of the nominees was actually described as MILF, and people were wondering why that would be offensive ... ;-)
 
grow up, will you
 
Weird, Chrome has eaten the space between "for" and "undoing", but it's there when I inspect element and it's there when I copy/paste out
 
@tereško so as i were saying i am looking to replace the strip magic quotes with htmlspecialchars , can this in any way have a negative effect on how my application works ? or is it totally legit ?
 
What don't people find offensive these days.
 
@Fabor I lol'd
 
12:21 PM
@Joseph stripping magic quotes and htmlspecialchars are inverse concepts
one removes, the other adds
 
@Joseph Yeh you don't want to do that
 
I've been rewatching Fresh Prince of Bel air. There's some good Yo' mamma's in there too.
 
@Joseph so what you want to do is only escape things when they need to be escaped. Escape output, not input.
 
@Fabor Eddie Murphy too :)
 
@Joseph that function of yours is for gathering user input. But htmlspecialchars() is used for escaping he output. It would be the wrong place to use that function.
 
12:23 PM
@Ja͢ck @DaveRandom but what if i wanted to keep my html tags and store them safely in my DB, wouldn't be btter to use the htmlspecialchars ?
 
@Joseph No, HTML can be stored raw in the DB just fine
 
@Joseph Nope, when you store things in a database you use database escape mechanisms; one of those mechanisms is prepared statements.
 
store raw, escape the output
 
@tereško i should use htmlentities then ?
 
@Joseph no
 
12:25 PM
Hey, I'll probably be putting my ZPP Failure on Overflow RFC to a vote sometime soon. Please have a look over it.
 
@Ja͢ck if you use prepared statements it can store html tags in the db with no problem,yes? it will avoid sql injections but enter tags as they are,yes.
 
Yep
 
I dont know why I used so many yeses in my statement
thanks.learnt something new right there
 
12:34 PM
you're welcome :)
 
and you dint tell me that pic is that the guy from soul society who taught Ichigo his bankai? @Ja͢ck
 
It's Urahara Kisuke.
 
A chill guy
 
@DaveRandom Oh uh, Abstract final classes became Static classes and isn't in voting any more, back to discussion
^star pls
 
yes that guy!damn think I need to rewatch bleach again
 
12:46 PM
Or, read the manga!
 
@tereško what's safer , doing this htmlspecialchars($string, ENT_QUOTES, 'UTF-8') or simply this htmlspecialchars($string) ?
 
definitely the first one
otherwise you are dependent on the current encoding that php is internally using (correct me someone, if im wrong about this)
 
@tereško are you talking about the char set ?
 
yeah
 
12:55 PM
@Jimbo Monring
 
I feel like a fish today..
 
Morbo
 
hello guys
 
hello sir
 
guys if you were to hire people for your company as programmers
what IT questions would you ask them
 
1:09 PM
What superhero do you want to be?
 
Which Harry Potter character are you?
 
Oh yes, that too.
What does the number 9 smell like?
6
 
Also, I would show them an VHS tape and ask if they know what it is.
 
lol
yup, age criteria.
 
@ziGi if they know or know of SOLID
As a fore warning though, when the answer is most usually know it's a confidence knocker.
 
1:14 PM
do you think
knowing data structures is important
 
@ziGi what resources does he/she use for staying up to date
 
for example heaps, linked lists
graphs
 
SOLID .. bunch of things you do to make your code feel good.
 
For some more serious suggestions: how do you keep up with the latest development trends. What do you do to get better at your job? What was the last book you read or name a development book that had an impact on you and why.
 
@tereško that is interesting, I myself don't have a good answer
@Gordon that is a good one
 
1:15 PM
Staying up-to-date is easy; room #11 \o/
 
@Gordon what would qualify as a good answer to your questions Gordon?
 
@ziGi what are the most annoying part of making a PHP web project
 
@ziGi depends on your domain. if they are required to crunch it, then yes. Most PHP developers never need them through their career cause we got our beloved arrays.
 
what was the last "awesome new thing" you learned in JS or SQL (not in PHP)
 
@ziGi anything that shows they actually do take self improvement into their own hand. It's not about giving a specific site or book. It's just about showing that they do this at all.
 
1:17 PM
Actually, the way arrays are applied will tell you whether somebody knows their data structures :)
 
@Gordon yes, that is a good one
 
@Ja͢ck is there any overlap with synesthesia and talent in development ?
 
@tereško haha PHP constantly changes
 
@ziGi and if get an answer to that, you'll likely have something to followup on to keep the conversation going.
 
that was not the point of the question. It was aimed to see, whether candidate willingly expands his/her skillset
 
1:21 PM
I usually check repositories of people that write code
ask people around
read articles on different topics
mostly I use articles
and check if someone can recommend me a book or just related books with high ratings in amazon
 
Some can be more role specific. IE use of (if at all) Frameworks
 
I guess if the company is having its product(s) revolving around a framework then it should be a good thing to ask
I got asked about Zend when I applied
and I haven't worked much with it
but I knew how to program
so it did not take much time to learn how things work
although to be honest I don't like how some things work
especially because we are using ZendFramework 1
and currently there is no Namespacing
 
@tereško a pretty tough question. I would say unicode in ES6
 
emm ... then the followup would be "what was the last project that you used it for"
=P
 
What about Unicode in ES6?
 
1:27 PM
@tereško hahaha never
@Ja͢ck I meant regex...
 
ooh
 
To be honest
I find people in this room to have a good knowledge on a lot of topics
and I think that also communicating with people that know more is inspiring and productive
 
Would angularJS be a proper answer, and that I used it to see it's potential?
 
@tereško how are you expanding yours?
 
@DaveRandom From you php build script. How should I remove PHP?
 
1:31 PM
@Fabor XY: what are you actually trying to do, install from yum/apt-get or something?
read: why do you want to get rid of it?
 
@ziGi answering question on SO, watching lectures on youtube (is subscribe to several conference-channels), /r/programming (sometimes /r/php .. if bored) on reddit, RSS feeds from various authors, a bit or HN and some random links from JS newsletter
 
@DaveRandom Going to use Remi's now it's updated.
you=your*
 
@tereško you mean cleaning bad questions from SO :P
 
@tereško quite extensive, I didn't know about /r/programming
 
@Fabor OK no problem. So you just need to unlink /usr/bin/php (should be linked to /opt/php/bin/php from memory, check with ls -l) and then you just need to remove the service entry for php-fpm, exactly how you do that depends on the OS
 
1:34 PM
Furry muff cheers
 
And then you can just delete /opt/php
 
@tereško I use StumbleUpon where my IT and CS interests are as interests and then just drill on different topics to find more info
 
@Fabor check those paths before you do though, that's from memory, might not be exactly right
 
Will do
 
1:36 PM
Actually if I am not wrong, there was a really good video of Anthony about learning how to learn, which was really good, I even recommended it to some people
 
Also, back up the php.ini/php.d/php-fpm.conf/fpm.d config files before you start @Fabor, and you'll probably want to remove them before you install remi's as there may be conflicts
 
@tereško to come back to our previous discussion, why is it discouraged to use strip magic quote
 
@Joseph because it is discouraged to enable magic_quotes to begin with
read up on the subjects
it was called "worst decision in PHP" by various people
 
@tereško alright.
 
On a side note, has anyone used aspect oriented programming
I have read about it as a concept
but I still don't understand in what cases it might be useful, it seems a bit hacky to me
 
1:40 PM
it's mostly an academic subject
I have never seen it used in production-stage code
 
Well, from what I have read, it usually applies to larger projects. For example if you have logging and it has to be used it multiple classes 10-20+
then you have the aspect of logging
so the idea is that if the project is sophisticated then it is easier to avoid errors when implementing a new aspect
but as you said, I have never seen it in production either
 

« first day (1508 days earlier)      last day (3426 days later) »