« first day (2309 days earlier)      last day (2638 days later) » 

10:00 AM
Does #define have to start at column 0?
 
that pound sign is meant to be at column 0, however it's acceptable for every compiler that I know of to break that very old rule ...
mostly, you should keep it at 0 for humans
 
#if PHP_VERSION_ID >= MAGIC_NUMBER
    #define MY_MACRO
#else
    #define MY_MACRO
#endif
Nope?
 
it's fine, it was only required by pre ANSI-C compilers to have everything start at column 0 ...
while it will work, I wouldn't write it like that
 
I am agree with Joe
 
#if PHP_VERSION_ID >= MAGIC_NUMBER
#    define MY_MACRO
#else
#    define MY_MACRO
#endif
 
10:04 AM
I'll just not indent at all. :<
 
fwiw what Joe wrote is my first choice (over no indentantion), it is really very irritating trawling through .h files with huge conditional pre-processor blocks and trying to figure out which #endif goes with which level
#    if PHP_VERSION_ID >= MAGIC_NUMBER
#        define MY_MACRO
#    else
#        define MY_MACRO
#    endif
that would also be acceptable if you prefer
 
user6061856
So using github as a portfolio is good right?
 
Thanks @DaveRandom. I'm going with:
 
@Antono if your github is interesting ...
 
#if PHP_VERSION_ID >= 70200
#define ARGINFO_NONE_RETURN_BOOL(name) \
    ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_##name, 0, 0, _IS_BOOL, 0) \
    ZEND_END_ARG_INFO()
#else
#define ARGINFO_NONE_RETURN_BOOL(name) \
    ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_##name, 0, 0, _IS_BOOL, NULL, 0) \
    ZEND_END_ARG_INFO()
#endif
 
Anonymous
10:11 AM
!!wotd
 
whiffler: a person who frequently shifts opinions, attitudes, interests, etc.
 
user6061856
@JoeWatkins Define interesting . . .
 
yeah is fine, you really only want to start indenting when you have nested conditions @rtheunissen
 
^ also agree
 
10:12 AM
Or loads of #defines in each branch
 
@Antono not just a bunch of untouched forks of other peoples work ... some unique stuff, something that the interviewer won't understand is always good
 
@Antono ^ link above
 
user6061856
@JoeWatkins Oh, I've never used anyone else's work.
 
user6061856
@JoeWatkins I usually start off thinking of ideas for projects and I start them. Then it becomes a big testing field then I pitch it and do it over again. But I guess I should save my work. XD
 
oh it shouldn't be the only thing on your CV, but the portfolio part is better with links to real code, than just a list of stuff you done ... because you could just be making stuff up ...
 
10:15 AM
CV of DaveRandom
================

Google me.
(j/k, obv)
 
user6061856
XD
 
CV of Joe Watkins
==============

I am krakjoe
 
All the results for me on page one of Google are actually me except one \o/
 
Anonymous
When I google me.. I just get some bloke who replaced his thumbs with his big toes.
 
Anonymous
underwhelming
 
10:18 AM
heh
 
I haven't written a CV for more than 10 years ...
 
@Antono being serious: my CV would (not had to use one for a few years) include a link to my Github profile but it would also talk specifically about some projects. As an interviewer I would be put off a candidate who was not prepared to put any work into summarising what I might be look for if I did visit github on their CV.
I think I've only ever had one (tech) job ever that I actually used a CV to get, though
 
user6061856
Trying to grasp CV. (is only 15 0.0)
 
I have been extremely lucky...
 
read as "slept with the hiring dept"
 
10:21 AM
no that's not a good tactic
You have to sleep with directors
 
C level or why even bother
 
ugh forking VS projects is way harder than it needs to be
 
I don't remember what my first CV looked like, and think like Chris I only had to do it once ... I do remember the kind of language I used to land my first decent long term contract ... "I can write almost anything you can imagine"
 
I maintain a CV. I update it every once in a while to add specific achievements I did on the job. That always feels good.
 
user6061856
SO you use resumes? @JoeWatkins
 
10:24 AM
not any more, without wanting to sound like a dick head, if you don't know who I am, I don't want to work for you ...
 
I once read a suggestion to add quantifiable achievements. that really did it for me. before that I would just keyword bingo technologies and basically said "developed a software for X" in every position
 
@JoeWatkins "oh yeah you're that guy that complained about BT"
 
haha, that would do ...
 
I just add moar CVE's
 
user6061856
Interesting. Honestly I don't consider you a dick head. WE can't trust anyone can we? IDK IF I CAN TRUST YOU. OR YOU. dies in a box
 
Anonymous
10:26 AM
The interviewer brought up Jeeves in my last interview :P
 
user6061856
I need like a coding buddy. O.O
 
@JayIsTooCommon "Yeah I saw you developed an elephant bot… what's its purpose?"
 
Anonymous
:P
 
@Trucy "throwing feces, mostly"
 
@PaulCrovella "… when it works"
 
Anonymous
10:28 AM
@Jeeves Ignore them
 
@JayIsTooCommon What is it that you do pay attention to?
 
@JayIsTooCommon next time let it do the talking! now that would be impressive :P
 
Anonymous
:B
 
user6061856
@pmmaga Yesh
 
Oh for fuck sake I was debugging the wrong instance
 
user6061856
10:30 AM
hmm
 
user6061856
I need to go to bed. It's 1:31 AM. O.O
 
user6061856
I probably see you guys tomorrow.
 
user6061856
Unless I get busy. XD
 
@DaveRandom royal mail suck balls
 
10:32 AM
They do indeed, why specifically?
 
@JoeWatkins you've just got to phrase it well "One of the reasons I'm looking for a new position is that I think testing is very important, however the senior developers at my current company don't really know what a unit test is, so it was hard to get the time to write them at my previous company" /cc @JayIsTooCommon
 
user6061856
Night guys!
 
still not on my island
 
wut, according to the tracker it has not left Manchester :-/
 
yeah :sadface:
 
10:33 AM
I hope that is just not updating, otherwise wtf have they been doing for 48hrs
 
> package status: chillin'
 
@JoeWatkins are they worse than UPS?
 
I believe it's currently coolin' out and maxin'. Not certain about relaxin'
 
they're not the worst in the delivery game
user image
5
hermes
 
rofl
One of the benefits of living in a small village is that noone will stole your parcel, so the postman can leave it in front of your door and nobody will touch it
 
10:36 AM
I wish I was kidding but I have a christmas gift I ordered from the US still stuck in customs...
 
@DaveRandom usually lots of activity when they cross the water ... it must not be as far as coast yet, so isn't coming today ...
 
Anonymous
@pmmaga is it drugs?
 
@JayIsTooCommon You would think so, but it's actually just a plush toy..
 
@Trucy They used to be reasonably good, then all the profitable bits were sold off for parts and now it sucks. Guess what people blames for that? A tangentially related but in no way causal EU directive! Actually it was just the government try to make an extremely short sighted quick buck, and hiding behind an EU directive (from a decade earlier, mind) when the shit hit the fan.
@JoeWatkins Well yes but I would assume it would have at least hit the Manc RDC by now, which makes me wonder if the web site is just not updating.
But also :-(
 
@DaveRandom I'm afraid I don't follow you. Were UPS part of some official government service (I don't have the english term for "service public")
 
10:40 AM
@Trucy No I mean Royal Mail/Post Office
 
@DaveRandom Oh, right, I got it now
 
they can still do remarkable things for the price of a stamp ...
but the package side of things has really got progressively worse since the selling started
 
Anonymous
hey Joe, you going to phpSC ?
 
I think they acquired parcel force now, or some of it, or they have their finger in the PF pie
when is it @Jay ?
 
Anonymous
9-10th june
 
10:43 AM
unsure
I'll show up for drinks after if I miss the conference ...
 
Anonymous
it'd be cool to get 11ers there again
 
who is confirmed ?
 
Anonymous
Chris and Daniel I think? I may have made that up. I think poopHaa was considering too
 
Anonymous
 
Wes
10:46 AM
mornin
 
ta :D
 
I haven't got a ticket yet but I am planning on getting one
 
Anonymous
jo jo weswan
 
o/
 
10:47 AM
\o
 
even though they are reasonably priced, and even though it's only a few miles away ... it still turns out to be pretty expensive ... staying in a hotel a few miles from home doesn't make much sense, and getting home over night is +£100 at that time of year ...
stupid water ... I need a jetski, anyone got a jetski ?
 
Anonymous
 
Anonymous
:D
 
Anonymous
oh ended.
 
yeah
 
user4962466
10:52 AM
Hey dudes
 
user4962466
a question
 
user4962466
why having optional parameters/dependencies would be a code smell
 
user4962466
eg.
 
user4962466
````
 
user4962466
function drinkBeer($quantity, $type = null)
 
user4962466
10:54 AM
does it always make sense to avoid it and use specific use case functions?
 
user4962466
function drinkBlondBeer($quantity)
 
it does not have to be a code smell
but if its a boolean value it probably is
drinkBeer(Beer $beer)
 
Anonymous
Doesn't seem too smelly to me, depends on how much type changes the logic
 
Hi
i have some issue in crul request
when passign header

Content-Type : application/json
Transfer-Encoding: chunked
on the other end we have not getting any data in request
 
crul? create read update lelete?
 
11:04 AM
*curl
 
passign
 
tnx
 
@Ekin I have two guitar amps if that helps anything
 
:35592674
 
11:05 AM
ugh damnit
 
@RonniSkansing definitely if it's a boolean, because there's no context for someone reading your code.
 
Yes I already knew that was a problem
Forgot to fix it
wp vulnerability scanners and non handled invalid urls :(
 
Curl Request
>>>>>>>>>>>>>>
when passign header

Content-Type : application/json
Transfer-Encoding: chunked
on the other end we have not getting any data in request


Curl Response
>>>>>>>>>
file_get_contents('php://input')

Blank , i have not recived any data
 
@Gordon it would for coming up with a 'fix it fix it fix it' song ^^
 
Damn you
 
Now I want a 'fix it fix it fix it' song
Hey @Rovak did you see my ping yesterday?
 
haha ye
that was a really late reply of jeeves
 
You utterly confused me with that one :D
Well done
 
@rtheunissen =)
 
can you please any one help me
about my problem in curl request and response
 
11:10 AM
what is the problem?
 
url Request
>>>>>>>>>>>>>>
when passign header

Content-Type : application/json
Transfer-Encoding: chunked
on the other end we have not getting any data in request


Curl Response
>>>>>>>>>
file_get_contents('php://input')

Blank , i have not recived any data
 
@JigneshPrajapati POST request?
 
@RonniSkansing also if there are optional nulls like function_name('hello', null, null, $something)
 
Are you specifying Content-Length?
 
11:11 AM
nope
 
sounds reasonable
 
Do that ;)
 
still not working
 
How do I show timcodes with milliseconds in this format: 00:00:00 like so: 00:00:00,5 ?
or with a dot ? 00:00:00.5
 
Yea you definitely didn't have enough time to add a content length header with the correct value and test it
 
@JigneshPrajapati make a php script and use something like https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop to make the request

<?php
echo file_get_contents("php://input");
 
@Rovak, i have using same
 
did you try postman?
 
yes but same issue
this is request from curl

SERVER: Array
(
[CONTENT_TYPE] => application/json
[CONTEXT_DOCUMENT_ROOT] => /home/telexicon/home/universalcallcenternetwork.com/public_html
[CONTEXT_PREFIX] =>
[DOCUMENT_ROOT] => /home/telexicon/home/universalcallcenternetwork.com/public_html
[GATEWAY_INTERFACE] => CGI/1.1
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_HOST] => api.universalcallcenternetwork.com
[HTTP_TRANSFER_ENCODING] => chunked
[HTTP_USER_AGENT] => runscope/0.1
[PATH] => /bin:/usr/bin
 
did you include data in the body of the request?
 
11:14 AM
"universalcallcenternetwork.com"
Ah you work for microsoft :P
 
@PeeHaa for a second you made me say "wow... that was a fast fix" with the \o/ :P
aaaaand it's a new bug
 
:D
 
@PeeHaa should probably notify jolly roger ;)
 
@Ekin Sorry for dissapointing you like that
 
11:16 AM
@Leigh :D
 
@JigneshPrajapati try using requestb.in to see if your request is working
 
@JoeWatkins these leaks/errors are frustrating. Keep having to update my travis.supp
https://travis-ci.org/php-ds/extension/jobs/200306843
 
not your leaks
 
While I am distracted I found yet another fucking mail of you know who on internals
Even I am fucking annoyed now and I missed / dev nulled most of them
Just let him rfc something so I can blindly vote against it
 
@PeeHaa being annoyed is mandatory
 
11:22 AM
@Rovak , not recived data yet
 
Can't he just start he is own project together with those other two idiots less than useful guys please? :P
 
@rtheunissen the problem is that arginfo are copies without refcounts, it's an internal thing that I don't see an easy solution too ...
but does need solving ...
 
So it has nothing to do with the way I've written things?
Also strange to not see them locally, only on Travis. Probably just different env.
 
are you running locally with valgrind and USE_ZEND_ALLOC=0 ?
@rtheunissen no, look carefully you can see mysqli in the stack trace
and spl, and a bunch of others ...
 
I am yeah, same command exactly.
 
11:36 AM
and same branch ?
and opcache settings (dunno what they are on travis)
 
Anonymous
just had a golden "but Laravel is the most popular framework" meeting.. pooed on my Friday.
 
you can see by reading zend_function_dtor that there is no way that arg info structures are being free'd, and you can see by reading zend_register_functions that arg_info is malloc'd
 
@JayIsTooCommon and mcdonalds has the most popular hamburger
 
what is the most prolific STD ... should probably get some of that on board @JayIsTooCommon
 
Haven't looked into it too much tbh, @JoeWatkins. Wasn't seeing them locally and they weren't mine so went with the lazy and suppressed them all.
 
11:38 AM
it's definitely a core thing
 
!!remind push irc server at 20:00
 
Reminder 35593528 is set.
 
Anonymous
@PaulCrovella ah I see tests, nvm
 
@DaveRandom hahahahaha
 
Don't laugh at chris
he can't help it
 
Anonymous
11:44 AM
he was born that way
 
:D
 
hallowed be thy name
 
heh
nice
 
11:49 AM
when i print array... output displays like this: Array
(
[1] => bob
[value] => bob
[0] => 0
[key] => 0
) how to print that values only???
 
@abdul Looks like a broken pdo fetch style to me
 
$var['value']
 
Can someone give me feedback to this code kopy.io/g3IF3
 
Sir Joe, Lord of Watkins,
Hallowed be thy name.
Thy code has come.
Thy tests be done
in PHP as it is in heaven.
Give us this day our code review,
and forgive us our trespasses,
as we forgive those who trespass against us,
and lead us not into temptation,
but deliver us from laravel.
12
 
@JoeWatkins :-P
 
11:54 AM
@JohnDoe2 It's horrible
switch abuse and unreadable
 
@PaulCrovella hehe
@DaveRandom we'll setup this evening, also, yay, and thanks again (muchly) :D
 
@PeeHaa how would you change it?
 
brb food may look after lunch
 
I actually prefer this to the original, I'm sad to say
 
> Log in to listen for free
 
11:58 AM
Yea I also consider having to register a "non-free" action
You can find it on Youtube, but the quality is poor
 

« first day (2309 days earlier)      last day (2638 days later) »