« first day (1390 days earlier)      last day (3572 days later) » 

12:00 AM
you might be able to just get away with selecting the surrounding words and typing them out again and ... oh
wait
 
Jay
I need this to work on a cronjob
so no
 
that's serialized data, you're also going to need to adjust the byte count
otherwise PHP'll fail when trying to unserialize it...
 
Jay
Excuse me, i am going to go f- myself
 
Good luck with that. I'mma go drink myself into a stupor. Laters!
 
12:33 AM
PHP Town hall going on rightnow.
I'm in it, as is Andrea Faulds.
 
12:52 AM
hello should i not echo out in __autoload. getting the echo out if i do class_exists()
 
1:03 AM
@Danack the problem is just with the rights to do that. If I had the rights to do it, then you would already see a release of zf2.3.2 and d2.5
right now, the people that have those rights are swamped with other things, and I'm not going to ask them to give me the rights, since then I'll just have one more thing to do (I have enough :P )
As for the actual effort... I'd say between 1 and 10 man-days of work
 
1:36 AM
@rdlowrey PHP "7"
 
user895378
@LeviMorrison BEST PART OF THE EPISODE
 
user895378
I only caught the last 30 minutes or so
 
lol
I remembered my promise and had to back up.
 
user895378
It was a victory for all mankind and great numerical justice. A seminal moment in PHP history.
 
user895378
And I'm glad you were able to escape that panic room you were apparently trapped inside :)
 
1:38 AM
lol
In my office the webcam pointed directly at a light
So I moved.
But then I ran out of battery so....
Alright, well I haven't eaten dinner yet and all I had for lunch was a salad. Catch you guys later.
 
user895378
@LeviMorrison Cool. Good job on the town hall!
 
100% test coverage :-D
yay!!!!
 
user895378
All that green is such a great feeling
 
Now, to add support for more complex code
:-D
 
user895378
 
1:45 AM
:-D
 
 
2 hours later…
3:35 AM
Hey guys, this $data I get from : $data = simplexml_load_string($result);
Now I want to get the company name, I use : echo ($data->children('xs', true)->element[0]->COMPANYNAME);
but it said I get property from non object
u have any idea why ?
I find a similar question here, and I applied the answer but it not work for me: stackoverflow.com/questions/3165048/…
 
3:59 AM
... and I am at work already
I don't even know why I am doing it anymore
 
Im at work too
struggling with this issue
 
user895378
@tereško Bummer :/ I'm still working from the night before if it makes you feel any better.
 
only a little bit
 
I got solution, feel good now!
 
5:43 AM
i installed wamp on d drive while it has installed on C. now how can see database in wamp which was in C drive?
or is there any other way to enable wamp on C again ?
 
@tereško I should be on leave... I still work.
 
6:20 AM
.. the glamorous life of a developer
 
-3
Q: PHP Contact Form missing dropdown value in email

MoonNot getting value of dropdown in email while user submitting online contact form, i am using below script and allowing user to send their data to us, and my code just work like a charm except i am not getting selected drop down value in email WHY ? //First, check if the form's data has been prov...

 
posted on August 06, 2014 by kbironneau

/* by Cyrus McDugan */

 
6:36 AM
good morning
 
7:14 AM
mornmrong
 
roomroom
 
morning!
 
yay, two days I spotted interesting questions on SO (: that gives.. hope
 
7:34 AM
O.o Which ones?
 
> The mantra created by LinkedIn’s founder Reid Hoffman “if you are not embarrassed by the first version of your product, you’ve launched too late” quickly became an excuse for an anything goes approach.
 
Well, this and this
 
good mornings
 
Morning
 
7:41 AM
@AlmaDo Your answers are insane man.. :)
 
has anyone seen or heard from @Baba?
 
@iroegbu depends of "when"
 
recently...?
 
no. I believe I saw him around 1.5 month ago..
 
that's recent compared to me... almost a year.
 
7:49 AM
I've discussed his algorithm answer, so..
 
@Fabien @HamZa Naruto is out
 
that battle is dragging on too long... it's becoming boring
 
Does PHP use the keyword 'void'
And 'static'?
 
second yes, first no
 
7:55 AM
Like C#, Java?
l0l
 
Bah, where's DaveRandom :o I think I met him last night
 
I think I don't want to ask what you were doing together. at night
 
Pub
 
 
UK. What else do you expect than a pub?
 
7:56 AM
Tea?
 
nuff said :D
 
code
ofc
 
well, technically it was phpnw, so code and pub
 
Guys, I heard rumors of the release of PHP 6, is it for rel?
*real
 
lol
word on the street is..
php6 isn't coming out
 
7:57 AM
l0l
 
@Farkie No, there's PHP "7" instead.
 
Cheers @SecondRikudo
 
Shh, we don't mention that
 
LMFAO @SecondRikudo are you effing serious?
 
@HassanAlthaf .. yes
 
7:58 AM
Looks like we gotta fix the head's of PHP Authors, instead of $v += 1, they are doing $v += 2
l0l
 
?
 
firstly, your "lol" is annoying
secondly, there has already been a PHP6, an abandoned project. To avoid confusion, they're going for PHP7.
 
Never got released tho :(
 
Kakashi with the upgrade.
 
So, is PHP trying to claim that the number '6' brings bad luck?
 
8:03 AM
question: will php7 be referred to as "php7" internally? Or is "php7" just a name for the public?
 
"Version 6 is generally associated with failure in the world of dynamic languages. PHP 6 was a failure; Perl 6 was a failure. It's actually associated with failure also outside the dynamic language world - MySQL 6 also existed but never released. The perception of version 6 as a failure - not as a superstition but as a real world fact (similar to the association of the word 'Vista' with failure) - will reflect badly on this PHP version."
 
How is it even relevant?
@HassanAlthaf not serious if you are trolling...
or
 
I'm obviously not trolling.
-.-'
 
@iroegbu internally, the yes voters use 7, the no voters PHP NEXT or 6.
 
#define CURRENT_PHPVERSION 7
 
8:06 AM
'nin
 
it's still 5.7-dev
 
#define 7 6
6
morning @JoeWatkins
 
Good morning.
Maybe not directly php related question but when you have
www.yourdomain.com
But yourdomain.com is not used but:
yourdomain.com/site1
yourdomain.com/site2
yourdomain.com/site..12
How would you insert those ones into google analytics? Only the domain or... with the directory name in it too?
site1 and site2 are all different websites.
but on the same main domain.
 
Different sites, different analytics.
But I'd argue that if you're using different sites and services entirely, you want a subdomain
 
Awesome thanks.
 
8:15 AM
Good monringen
 
What makes it better to use site1.domain.com then domain.com/site1?
 
@salathe Good morinnegan.
 
@Duikboot the fact that it's a separated domain
 
gods below , this is so annoying
 
@tereško Another 42000 hour meeting?
 
8:17 AM
@tereško btw, are you CTO now?
 
Good morning Teresko.
 
I have a coworker, whos preferred method of debugging is "staring at the code" .. he has been doing for past hour and he hasn't touched keyboard ever since
 
@zerkms Ok. But in wich way is it better to use a subdomain then a 'folder'?
 
@tereško Haha, sometimes I'm doing that as well. Not for an hour though XD
 
@Duikboot you could run it in a different server
 
8:19 AM
^
 
ok :)
 
moin all
 
morning
 
@tereško that's not debugging, it's fucking about ...
 
@zerkms he's Chief Tereško Officer, right
 
8:24 AM
@AlmaDo that's how exactly I remembered the CTO abbr
 
yup
 
@tereško offer to pair with him or be his human rubber duck
 
hahaha
srsly though, call them on it, if you are in the same office and team then for every minute they sit there doing nothing, and they are doing nothing, you have to work harder to pick up the slack they left behind ... not fair ... "why hasn't your keyboard been touched for an hour?" is a good place to start I think ...
 
http://thecodinglove.com/post/93955819283
The coding love
when I've mastered the keyboard shortcuts in my editor
kbironneau
1407313844
 
we can all understand being stuck on something for >1 hour, but we are hammering the keyboard researching, looking for information in books even, trying to answer whatever question has us baffled, someone who isn't touching their keyboard or moving from their workstation isn't working at all ...
interested to hear answers to that ... mine sounds arrogant so want to see if anyone else has same answer ...
 
8:43 AM
Best jobs = come through another dev. Worst jobs = through a recruitment agent. Medium jobs = find on job sites.
 
@SecondRikudo you mean the manga is out?
 
You know what the worst kind of SysAdmin work is. Email related issues.
 
No. Exchange-related issues
 
mornings
 
8:52 AM
@Fabien my future job is through another dev, should be good!
 
@FlorianMargaine Oh moving?
 
yeah switching jobs in 2 months
 
What to?
 
commerce guys
 
@DaveRandom How long'd you stay for last night?
 
8:54 AM
editor of drupal commerce
 
@DaveRandom Sorry to bother you with this but we have an issue where mail is not being received by one of our clients from their website. If I change the address of the recipient to my own I receive it (albeit spam). They're stating it's only when coming from sales@domain.com but if they change it to something other than 'sales' it works fine.
Any ideas where I can start looking for what might cause this issue?
Their IT guy has told them it can't be a blacklist otherwise it'd be all of their emails not just that singular one.
 
@Jimbo Too long
I am not at my best this morning, let's put it that way
 
@FlorianMargaine Why make the move? Mo' money mo' money mo' money?
 
mo' money
and other private stuff
 
Well congrats
 
8:58 AM
@Fabien Possibly spf, can you pm me the domain and IP of the server?
 
we can talk about it on gitter if you want :P
 
@Fabien sounds like a spam filter detecting sales@ as spam ... seems likely ...
 
@Fabien just change your reply address, make it an alias to sales, done
 
@DaveRandom The woman who was talking to us, she's been trying to poach me for the past 7 months
 
@JoeWatkins This is my assumption too. They haven't given us an email to test it either -_-
FTR this is going through Joomla too.
 
9:05 AM
@Gordon can you ban people flagging everything and their mother?
 
user2862309
Florain, you can't say a word of German, cause you are French, that's why
 
@FlorianMargaine I can ban people.
 
user2862309
And what you muted me for is totally uncalled for.
 
user2862309
@Gordon, I think you would make a mistake if you do that.
 
user2862309
I am a nice person but they are trolling me.
 
9:06 AM
what did you do ?
 
@Jimbo I know what you means but still sounds wrong
 
user2862309
I used the bot to replace someones words.
 
@Mr.Meshuggah I was just stating that I can. Not that I will do.
 
@DaveRandom Lol. Would expect no less than 35k though, but it's in liverpool :/ I'd have to move there
 
user2862309
Thank you, it is just that many people are quite prejudiced and I get a bit sad
 
9:07 AM
I didn't talk to gordon w.r.t that, but w.r.t the flag spam issue.
 
prejudiced ?
 
user2862309
Yes because no one uses the flagging system properly, it doesn't work at all.
 
user2862309
Yes, yesterday a room owner told me "fuck you" I flagged nothing happened
 
user2862309
I make a small joke, I get muted for a day, and then I am responsible for abusing the flagging system, that's so hypocritical.
 
what was the joke ?
 
user2862309
Btw how is the new house?
 
it's good, thanks for asking ...
top tip
 
@Jimbo There is not enough money in the world to persuade me to do that
 
you don't get to walk into a room and call everyone idiots
you don't get to do it in real life, you don't get to do it on the internet, you got a human response to a bad joke, suck it up ...
calm down ;)
 
@DaveRandom Well, knowsley. Like, right next to knowsley safari park
 
user2862309
9:13 AM
it is true, I admit, I am calm, it is just that people swear at me, I have to cope with it although I flag it, the next day I make a stupid little change, I didn't even say that it was the bot, and I get muted for a day
 
user2862309
why not an hour or two?
 
@Jimbo Oh yeh she told me
 
user2862309
I am sure I will have some JS things I have to ask them later and I will know I won't be able
 
(where she worked)
 
user2862309
So do I have to make a new profile and get some SO points just so I can talk with them for banning me?
 
9:13 AM
They do some really cool stuff with epos terminals, you can make HTTP requests to their API's to make them do stuff :P
Like, POST to a barcode scanner. I thought that was pretty cool
 
@Mr.Meshuggah someone who is offended by swearing shouldn't leave their own company ... let it go, adjust your behaviour, if you are here to ask questions then ask them, don't try to break the ice by calling everyone idiots and I don't see how anything can go wrong ;)
 
user2862309
Haha, they told me I have to earn the right to be an asshole, anyways, sorry for taking too much of your time.
 
user2862309
I actually had a question in regards to Traits
 
user2862309
What happens if you have the same function name in a class and in a trait but in the class it is static and in the trait it is not static
 
@Mr.Meshuggah that's kind of true anywhere, if you were among close friends and you called them all idiots, you wouldn't get the same reaction ... calling everyone idiots is the actions of an asshole ... just an observation ...
 
9:18 AM
@Mr.Meshuggah Have you tried it?
 
user2862309
Yeah
 
...
so what happened?
 
user2862309
Well I don't know
 
user2862309
it doesn't work for some reason I am trying to find out
 
user2862309
 
user2862309
9:26 AM
and I am using the PHP website example
 
user2862309
do you see the error?
 
@Mr.Meshuggah so... 3v4l's editor seems to be broken today
 
user2862309
ah
 
Which is the documented behaviour, btw
 
user2862309
How did you fix it?
 
9:30 AM
A method definition in the class always overrides the definition in the trait
@Mr.Meshuggah I just rewrote it in my editor and copy pasted it
It was inserting nbsp instead of spaces on the editor
which was the cause of the syntax error, even though it looks fine
 
user2862309
 
user2862309
interesting that even if you use the static method
 
user2862309
it uses the one that is not static defined in the class
 
Although also you wrote function static instead of static function
@Mr.Meshuggah There is only one symbol table of methods, you can't define a static and non-static method with the same names
However you can call static methods as instance methods, and you can also call non-static methods statically, for historical reasons
It will complain if you call an instance method statically, and obviously it will explode if that method uses $this
So in that case, it's just following the precedence rules defined in the manual section on traits
 
user2862309
I see
 
9:34 AM
Traits. Bahaha.
 
user2862309
So if I use $this in a non-static method
 
stupid electrician ...
lost my train of thought ...
 
user2862309
but try calling it statically
 
user2862309
it would cause an error (and it should, Java would never allow you do that)
 
user2862309
However, I can also call the static method from the trait using the trait name.
 
9:36 AM
@Naruto Yes
 
user2862309
@DaveRandom 3v4l.org/BR08n
 
user2862309
so strange, it tells me that $this is null.
 
@Mr.Meshuggah Yes, but in that case it's probably not a particularly good use of traits...
 
user2862309
Yes I know, if you want to do that, you can always make a normal class with static methods.
 
@Mr.Meshuggah that's what hhvm says, PHP gives you a more descriptive error
@Mr.Meshuggah ideally you would just not have a static method at all ;-)
 
9:39 AM
Morning
 
user2862309
Why aren't compilers smarter to give you suggestions for bad design (For example if you use traits with static function to give you a Warning: Possibly a bad design, put all the static methods in a class)
 
Because its not the compilers job to enforce best practices
 
user2862309
@DaveRandom how do you handle utility functions for parsing then?
 
Which change all the time
 
user2862309
@AlulaErrorpone But it would be good to have it as an option for people to have some idea
 
9:40 AM
@Mr.Meshuggah ...with functions?
 
user2862309
Yeah but you said not static
 
user2862309
what about
 
user2862309
absolute value
 
user2862309
let's say you want to parse -1 to true and 0 to false
 
user2862309
9:41 AM
You make a function function toBool($value) { return $value == -1; }
 
There's no benefit whatsoever in making those into static methods. Like, at all.
 
user2862309
Why shouldn't this be static?
 
@Mr.Meshuggah why does it need to be a member of a class at all?
 
user2862309
Yes but then I have to instantiate an Object to use them from the object
 
user2862309
@DaveRandom because I don't like mixing non OOP with OOP
 
9:42 AM
Don't use non-oop then :-)
 
user2862309
Yes but then I should make them static, otherwise I have to instantiate
 
what is an OOP?
 
we all are mixing "oop" with "non-oop" each day we write code
 
@Mr.Meshuggah Well you could do that, and there are benefits to that approach for testing and swapping things out and all the other good stuff, but if you have a bunch of hard-coupled shared utility functions, there is simply no reason for them to be members of a class
@Mr.Meshuggah static methods are not OOP anyway
They are procedural programming with classes
Which is not OOP
 
user2862309
Yes but I come from a Java background
 
9:44 AM
Well that explains a lot :-P
 
user2862309
And I agree with you that is the way to do procedural programming.
 
user2862309
I just find it a bit lousy when I have some files with classes and other files with plane functions, I don't know why
 
That is not the way to do procedural programming, if you want to write a procedure you probably don't want classes at all... (that's the whole point)
 
user2862309
My colleagues have the same opinion
 
@Mr.Meshuggah function autoloading (or lack thereof) does make this suck a bit, I accept that
 
user2862309
9:45 AM
@DaveRandom I know but I have mostly Object Oriented approach so sometimes I need some utility functions like the parsers
 
user2862309
and some constants
 
user2862309
Furthermore we work with Zend (unfortunatelly)
 
1 or 2?
 
user2862309
1
 
user2862309
1.12.7
 
user2862309
9:46 AM
That's why I said unfortunatelly
 
All is lost, the end is nigh, the <center> cannot hold, etc etc
 
user2862309
so in order for the framework to find them it doesn't have Namespacing
 
user2862309
so they use "_" notation
 
user2862309
and it's horrendous
 
you can put function in namespace? Yes?
 
9:47 AM
@Mr.Meshuggah that only needs to be true of the framework entry points though
it doesn't mean you can't use namespaces at all...
 
user2862309
I can
 
user2862309
I know
 
user2862309
we use PHP 5.4
 
Well I guessed since you are using traits
 
user2862309
But the point is the team doesn't agree to mix them both so I am with tied hands.
 
9:49 AM
@Mr.Meshuggah Well that is a fair argument.
Although obviously you should make sure you fight your corner when the team does something you disagree with...
 
user2862309
I just wanted to put some parsing functions in traits because I see them used all over the place
 
user2862309
@DaveRandom yes I try to but it is a bit complicated to explain right now.
 
@Mr.Meshuggah Well if you are calling them statically, why bother?
 
user2862309
well the thing is they are not called statically
 
user2862309
cause currently they are all in an abstract class extended by >100 files
 
user2862309
9:51 AM
so I can move them just to traits and use them in those 100 files instead of putting them in a static class because I have to refactor much more
 
user2862309
Maybe my point is not valid, I don't know
 
user2862309
What do you think about it Dave?
 

« first day (1390 days earlier)      last day (3572 days later) »