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

9:05 AM
moins!
 
mornins
 
o/
 
@JayIsTooCommon :(
moin PeeMagaKinUs
@PaulCrovella In my previous work I had an example of "putting dangerous people in positions where they're not dangerous"
ie: manager
@Sean tbh I want a "Senior™" in my name just so that managers take me a little more seriously
 
9:24 AM
@Trucy if they only take you seriously because of your title, you shouldnt take them seriously
after all, what self respecting developers ever takes a "manager" seriously
 
@Gordon That'd work in a good workplace
 
there is a reason they are called "man agers". they make you grow grey hair.
 
yeah, but y'all also behead leaders
 
@PaulCrovella I think they kinda deserved it
 
9:28 AM
totes, I brought it up as a positive
 
Do you think I should go 1792 it my workplace?
 
it'd get your point across
 
Anonymous
@DaveRandom can't get Jeeves working to debug, but it is accepting a param, it just has to be either null or 1 :P
 
Off with their heads!!!
 
Anonymous
9:29 AM
Jeeves run seems to be swallowing an exception somewhere, maybe dns i'm not sure
 
```
We’re excited to announce the availability of the new Zend Certified Engineer 2017-PHP exam. This exam will test your skills on PHP up to PHP 7.1.

Since you’re already a ZCE, upgrading your certification is easy. Simply follow these steps:
Email certification@zend.com and provide your ZEND ID.
Receive a coupon code to purchase an exam voucher for $125.
Take the test at any of the 4,000 Pearson Vue testing centers worldwide.
Brag to your friends (after you pass) that you can now use the new ZCE 2017-PHP logo.
 
Cal works for Rogue Wave? TIL
 
Brag to your friends :|
So basically certificate is worth nothing except bragging to your friends?
 
Brag to your friends and seduce girls
 
@DejanMarjanovic it never was worth much
 
9:31 AM
I've seen too many terrible developers with zend certification. It's not even worth bragging about.
 
Anonymous
@PaulCrovella ikr, take a look at @Gordon for example
 
@Trucy Should send one of those to each nay-sayer in the binary string rfc :P
 
It's so cool
 
9:33 AM
@pmmaga :D
 
@JayIsTooCommon it's not my fault. it was the best your mom could teach me.
 
I met the guy at PHPNW who created the design for those hoodies
While I was wearing one :P
 
@pmmaga Wait, do you have PHP 6 hoodies? I want one
 
@Gordon don't skip them based on that
 
9:34 AM
@Trucy nope. just wishful thinking :P
 
@Trucy Pff, please
 
:D Old and ugly but cat (Also Leon has grown a lot)
 
@MadaraUchiha TI Pranks!
 
Tea Pranks
 
@Shafizadeh I went only through few of the files. Probably will check some more latter this week.
 
9:37 AM
How should I call some unique number of my database? "dbIdentity" or "dbIdentifier" ? sorry I'm not good in english
 
@marbel82 bob or id. with a strong preference for bob
 
if someone asked me to provide any documentation to prove that I know php, I would be at a loss
 
@Gordon Where is the acronym BOB?
 
@marbel82 it's not an acronym. it's a name. short for robert.
 
9:40 AM
moin
 
@Gordon Big Object Binary
 
@tereško tell them to phone me. I will confirm.
 
@marbel82 Robert.
 
9:42 AM
@Gordon yeaaaaah ... because that would work so well
 
@JoeWatkins check it:
!!lxr zval
 
@tereško ofc it will. I got 220k+ reputation points.
 
[ /Zend/zend_types.h#84 ] typedef struct _zval_struct zval;
 
!!lxr-5.6 zval
 
[ /Zend/zend_types.h#55 ] typedef struct _zval_struct zval;
 
9:43 AM
!!lxr-5.6 _zval_value
 
@JoeWatkins Nothing went wrong but I couldn't find a suitable definition
 
ugh
 
nobody outside SO gives a flying fuck about our fake internet points, @Gordon
 
@Gordon OK :) Can you answer me this seriously?
 
!!lxr _zval_struct
 
9:44 AM
[ /Zend/zend_types.h#179 ] struct _zval_struct {
 
@marbel82 I already did.
 
@JoeWatkins doesn't return any results, wrong name?
 
excellent @DaveRandom
@DaveRandom yeah wrong name
 
also
mornin
 
ah k cool
 
9:44 AM
@tereško well, not about your meager 43k…
 
:D
 
!!lxr zend_hash_init
 
[ /Zend/zend_hash.h#75 ] #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) _zend_hash_init((ht), (nSize), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
 
What is the difference between "identity" and "identifier"? Can somebody answer me?
- id column in database
 
@marbel82 an identity is something that an entity has, an identifier is the thing you use to identify something
 
9:46 AM
!!lxr debug_backtrace
 
[ /Zend/zend_builtin_functions.c#2807 ] ZEND_FUNCTION(debug_backtrace)
 
!!lxr php_ui_area_t
 
@JoeWatkins Nothing went wrong but I couldn't find a suitable definition
 
@DaveRandom ^
how do I choose another project ?
 
!!alias lxr-ui grok --project=ui --processor=php-src
 
9:48 AM
Command '!!lxr-ui' aliased to '!!grok --project=ui --processor=php-src'
 
!!lxr-ui php_ui_area_t
 
@DaveRandom Nothing went wrong but I couldn't find a suitable definition
 
ugh
close but no cigar
 
Anonymous
@DaveRandom do you mind ROing me in nothing to see here please
 
Oh that's a currently unhandled case anyway
 
9:49 AM
@DaveRandom thanks a lot
 
@DaveRandom aww
 
@JoeWatkins fixable
!!lxr-ui _php_ui_area_t
 
[ /classes/area.h#24 ] typedef struct _php_ui_area_t {
 
OK so that works
just need to handle the } <name>; case
 
hi developers
what is function closure in php
 
Happy Faustine's day (/cc @Wes)
 
!!docs closures
 
[ Closure ] Class used to represent anonymous functions.
 
@stalinwesley ^
 
@Jeeves thanks
 
9:58 AM
@DaveRandom excellent ... can you do all other projects an alias too
and is there a command to list lxrs, for when I've forgotten them ?
 
!!aliases nope, not that
 
@JoeWatkins well at the moment there's only the php-src processor, i.e. the thing that does a bunch of regex magic to try and find a sensible result
so it's fine for extensions but not really for hhvm or PHP projects
need to write other processors for those
!!help
 
Built-in commands (* indicates admin-only):
 admin - Manage the bot's admin list. Use 'admin help' for details.
 *alias - Add a bash-style alias
 *approve - Approve the bot for talking in this room. Room owners only.
 *ban - Ban a user from interacting with the bot for a specified period of time
 command - Manage command mappings. Use 'command help' for details.
 help - Alias of 'command list'
 invite - Invite the bot to join a room. This can also be done through the chat web interface.
 *leave - Ask the bot to leave the room. Room owners only.
 
Listed at the bottom, currently no command for just aliases but could make one
 
Anonymous
@DaveRandom nvm
 
Anonymous
10:05 AM
turns out OpenGrok isn't spelt OpenCrok, who knew
 
also turns out OpenCrok isn't spelled OpenCrock
 
Anonymous
crazy
 
!!lxr-ui php_ui_area_t
 
@DaveRandom Nothing went wrong but I couldn't find a suitable definition
 
ugh :-(
 
10:09 AM
is this dead or it's still good?
 
> This project is no longer maintained and its repository is only kept for archival purposes.
 
yeah, missed that part
 
@MadaraUchiha tbh we could make a "serious business" looking certification website and certifcy ourselves, it could work
"PHProfessional Certification: Advanced Level"
 
stackoverflow.com/questions/42246347/… <- Is this a clever attempt of spam or not? I'm a tad confused because of the link.
 
@Epodax it's not clever, but it is spam
 
10:16 AM
@Epodax that's because you are rusty..
 
@Naruto Properly.
@PaulCrovella Did flag it as such, and also realized it after checking the user profile.
 
!!uptime
 
╔══════════════════════════════════╗
║ [12 seconds] without an accident ║
║   since [2017-02-15 10:19:49]    ║
╚══════════════════════════════════╝
 
Hello, any reason php will skip a block of code when $value = NULL.
 
!!lxr-ui php_ui_area_t
 
10:20 AM
[ /classes/area.h#41 ] } php_ui_area_t;
 
@JoeWatkins ^
 
@DaveRandom speaking of ugh, the json results include markup :( that first line decodes as } <b>php_ui_area_t</b>;
 
19 hours ago, by DaveRandom
well predictably OpenGrok JSON API is anything but simple, it returns JSON-encoded base64-encoded HTMLified lines of code.
I will just process them as HTML fragments using the same logic we currently use for scraping the HTML
 
Hello, any reasor php will skip the "elseif" when $value = NULL; Example: if ($value) elseif (some other check) { }
 
@Dasj You mean if $value === NULL right?
 
10:24 AM
@Trucy yes
 
@DaveRandom the base64 encoding I can understand, but html makes me angry
 
@Dasj What's your some other check ?
 
@Trucy the real life code is from Drupal core: cgit.drupalcode.org/drupal/tree/modules/user/… Line 1268
 
@Dasj oh boy I can't help you there, I have enough legacy/shitty/spaghetti code to maintain here, sorry
 
I ran the code with XDebug and whenever $error is NULL it skips the elseif clause
@Trucy no need to bother understanding the code.. just wanted to know why PHP would skip an elseif statement
 
10:30 AM
@PaulCrovella I guess it caches it as HTML in lucene in order to make it more "wicked fast"
 
@Dasj well that would be because the some other check is false too
if $value is true, then do this. But if it's not, test if some other check is true. If it is, do this other thing
 
@Trucy XDebug should stop at that line before it runs but it is just skipping it as if it never checks it
 
@DaveRandom excellent
 
@Dasj Maybe your breakpoint is misplaced'
 
10:36 AM
@Trucy I place the breakpoint at the beginning of the function then step through the code .. step by step ... it never reaches the elseif line
I should note that the code makes an assignment in the if clause... like if($value = some_function()) {} and that function does not always return something
 
@Dasj That's surprising indeed. I don't know enough about PHP to help you here, maybe a true connoisseur could help you on this one
 
I heard xdebug can give you cooties
 
@DejanMarjanovic 3v4l.org/P0doA .
 
yeah, but not sure why is overwriting constants allowed from 5.6
 
@Epodax you are properly rusted? :D
 
10:47 AM
@JoeWatkins
 
@DejanMarjanovic overwriting constants? That's kind of an oxymoron
 
@Dejan
 
@Dasj xdebug can behave a bit unexpected with conditional statements. Sometimes it just evaluates the whole statement at once, so you have to place more breakpoints. Try to place a breakpoint inside a elseif block. Or better inside a db_select function that executes on elseif.
 
> use const true as false;
 
@MadaraUchiha yeah, but not sure why is overwriting constants not constants allowed from 5.6
 
10:50 AM
@MadaraUchiha this stuff
 
xdebug doesn't evaluate anything
 
@ksimka thanks for pointing that out.. I just took the db_select statement and I can see that evaluates to FALSE ... so it yields to a check like if(NULL) elseif (FALSE) ...
 
@JoeWatkins Yes, it's my english, sorry ) I mean if you place a breakpoint on "if" the next step can be outside that "if" despite anything.
 
so it makes sense XDebug skips it all together
 
I just ate nearly a whole box of chocolates ... I feel sick ... I blame @PeeHaa
 
10:53 AM
@PeeHaa is giving out chocolate?
 
golang is copy / paste from C, so why not :D
 
urm ... not really
 
i find it very similar, even in the tutorials they compare it with C, but as far as i know under the hood its very different
 
Anyone tried debugging w/ xDebug in PHPStorm? Keeps saying it can't connect to Chrome :<
 
11:05 AM
its a long story ...
 
@Sean I have set it up many times, and forgot how I did it last time. this extension helps chrome.google.com/webstore/detail/xdebug-helper/…
 
@Sean my tip is just to be 100% sure paths are correctly set in deployment ( if you are on remote server )
 
11:21 AM
@Sean It is tomorrow
 
@Jeeves what?
 
Anonymous
yesterday, by Sean
!!reminder It is tomorrow at 11:21
 
Was testing for #129
 
ah :)
 
11:52 AM
@JoeWatkins fail. you should have eaten the whole box
 
@JoeWatkins Had you eaten the whole box, you would have felt fine.
 
!!help
 
Built-in commands (* indicates admin-only):
 admin - Manage the bot's admin list. Use 'admin help' for details.
 *alias - Add a bash-style alias
 *approve - Approve the bot for talking in this room. Room owners only.
 *ban - Ban a user from interacting with the bot for a specified period of time
 command - Manage command mappings. Use 'command help' for details.
 help - Alias of 'command list'
 invite - Invite the bot to join a room. This can also be done through the chat web interface.
 *leave - Ask the bot to leave the room. Room owners only.
 
!!skeet
 
13 messages moved to Trash
 
Anonymous
12:03 PM
sweet
 
Other that me being unable to count, that worked fine
 
v-a-c-a-t-i-o-n
 
need to make the plugins track source commands now
 
Anonymous
@DaveRandom yeah... builtIn was 100+ instances of postReply || postMessage... Plugins will be fun..
 
lxr.room11.org is live! If you would like a project added, we will consider any request :-)
9
 
12:05 PM
https://lxr.room11.org/ is live! If you would like a project added, we will consider any request :-)
 
can I use this bot on slack or is it inherently linked with SO ?
 
Anonymous
@Vamsi SO
 
It is linked to SO, although there was talk of trying to decouple it
that's a decidedly non-trivial task though
I haven't even made it work properly with other SE sites yet :-(
 
Anonymous
as we point to chatClient for everything, it wouldn't be that much a ball ache though, would it?
 
Anonymous
12:07 PM
i.e., lots of shit to change but not shit spread out everywhere
 
Well I'd still like to abstract a lot of stuff away in such a way that we can run plugins in their own process space
That would make a lot of stuff easier/possible/more secure.
e.g. we'd be able to dynamically load/unload/update plugins without restarting the bot
 
Anonymous
that'd be nice
 
Anonymous
I'm gonna try and do some tests to keep that joe guy happy, i'll start with the builtin
 
Here's a weird one. If I try and debug now, it says it can't evaluate expression $_SERVER['PHP_IDE_CONFIG'], but I'm passing it through as an environment variable. If I just define it at the very start of the script: $_SERVER['PHP_IDE_CONFIG'];, it works.
$_ENV['PHP_IDE_CONFIG'] and $_SERVER['PHP_IDE_CONFIG'] are otherwise not defined, but getenv('PHP_IDE_CONFIG') returns the right value. Go figure.
 
@PeeHaa ask what?
 
12:16 PM
@DaveRandom make all plugins docker containers ;)
 
@Gordon that could work
 
@bwoebi I just renamed it to libdns (lower case) for consistency. Go back to the index page and try again
 
@DaveRandom oh okay^^
fine then
don't change thing just while I'm testing :-P
 
Well I'm doing real work now anyway :-P
 
12:24 PM
@Izopi4a Incorrect
 
Anonymous
:s
 
Anonymous
concerning
 
@JayIsTooCommon concern
 
Anonymous
what do you think of the new nav bar madame Madara?
 
12:33 PM
@JayIsTooCommon I've had it for a while now
Since it was available in the config
 
what config?
 
@DaveRandom how long does it take to import a project and generate its stuff?
(in lxr)
I'm wondering if this can be used "as a service", as in, put a github link, and you get the project
 
iirc @DaveRandom runs it on Docker, so it should be fairly easy to provide the GH link to the Dockerfile and then pull and install whatever into it.
 
HTTP/1.1 403 Forbidden
Server: nginx/1.10.2
Date: Wed, 15 Feb 2017 12:46:48 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
 
c'est broken
 
12:48 PM
Oh right, hsts
https works and my browser automagically uses it because hsts
@FlorianMargaine depends on the project
13 hours ago, by DaveRandom
We are now getting on for the 11th hour of indexing hhvm...
I'm not certain how long it took in total, it finished some time while I was asleep and I forgot to time it
php-src similarly takes a couple of hours
But e.g. Jeeves takes a few seconds
it depends on the volume and size of the files, and the size of git history
 
Anonymous
Does amp already have one, or are you adding that too?
 
That's only the initial indexing shot as well, after the first index it only updates changed files
@JayIsTooCommon I'm not sure what to do with amp, I was meaning to ask @bwoebi @kelunik @Trowski @rdlowrey
You have two choices: either add each component as a separate project or add them all under one
 
@DaveRandom yeah, but can lxr also correctly use fqns internally for indexing?
 
elaborate?
Basically the considerations are: if you add them all as one project then searches automatically get refs from all repos, if you add them all separately then you have to choose which repos are included in the search and I'm not sure if cross-ref links will work correctly
we might just have to experiment
I suggest we add them all under one project initially and see how that goes
 
Wes
^ ahaha and morning
 
@MadaraUchiha holy shit
now I just want to pwn some accounts
 
@Trucy Also see: github.com/…
 
hello everyone, are we allowed to ask questions here?
 
1:13 PM
http://i2.ytimg.com/vi/HSmKiws-4NU/hqdefault.jpg
 
Wes
utter fail
 
@MadaraUchiha mfw 7,680 PHP files
 
@IKeepForgettingAccsMail Read the room topic on the top right.
 
Also @Sean can you you burn the RFC::BULLET constant and move to using the one from that as well while you are at it ^
The RIGHTWARDS_ARROW there does this:
!!canon list
 
The following canonicals are currently supported:
• class → https://stackoverflow.com/q/2206387
• classes → https://stackoverflow.com/q/2206387
• errors → https://stackoverflow.com/q/845021
• globals → https://stackoverflow.com/q/5166087
• headers → https://stackoverflow.com/q/8028957
• html → https://stackoverflow.com/q/3577641
• json → https://stackoverflow.com/q/29308898
• mysql → https://stackoverflow.com/q/12859942
• operators → https://stackoverflow.com/q/3737139
• parse-html → https://stackoverflow.com/q/3577641
 
1:24 PM
@DaveRandom I mean that when I click "query" inside Amp\Dns\query() it shall not search for query but just where it's used in the context of Amp\Dns\query (i.e. where the fqn == "Amp\Dns\Query")
 
@bwoebi Oh I see. I doubt it.
I don't think it's that context-aware, and tbh that's not really possible in general without doc comments everywhere
 
@DaveRandom dunno, no idea whether you can put a parser behind it?
 
yooo
I know most here are 'developers' but are there people with social media knowledge?
 
In the average amp app/lib you lose inferred var types very quickly because yield has no way to document what it will return
@bwoebi I think that is what ctags is for (?)
 
@DaveRandom we write Promise<fubartype> in docblocks at times though
@DaveRandom dunno?
 
1:29 PM
@bwoebi I do that all the time, yes, but nothing understands it
 
yeah, you need to make the indexer understand it^^
 
@bwoebi If you wanna put some effort into figuring out exactly what github.com/universal-ctags/ctags does and how it works that may yield (ha!) some useful results
It uses a build of that directly from master
 
It has some config files where you can define stuff, but that readme doesn't even explain what it even does let alone how to use it
@bwoebi I guess, not really looked into it. It was listed as a dep for opengrok, so I did what they told me to.
 
:-D
 
1:34 PM
@DaveRandom how much space does it take?
 
83M /var/opengrok/data/historycache/PHP-MASTER
65M /var/opengrok/data/index/PHP-MASTER
115M /var/opengrok/data/xref/PHP-MASTER
459M /srv/sources/PHP-MASTER
So not loads
 
I guess the last one is the git repo?
 
yes
 
yeah, not bad
 
Those caches can grow though
e.g. the /xref dir is (gzipped) pre-generated HTML, but it doesn't generate everything initially I don't think
 
Anonymous
1:40 PM
@PaulCrovella what a jerk. @kelunik anything said after this?
 
I fell asleep at desk ...
feel like crap ... I blame @PeeHaa
 
I blame @PeeHaa for Joe overblaming @PeeHaa
 
@DaveRandom postman woke me up with letter from BT ... "you're £19.something in credit" ... fucking dicks ... I can't be bothered to sit on the phone with them today, will do it tomorrow ...
 
In credit?
 
yeah, I don't even know
 
1:46 PM
BT?
 
well fuck it for now, as discussed we can just manually update the records for nevis until this is sorted, hopefully the addresses shouldn't change anyway
 
You get letters by bluetooth?
 
Anonymous
@kelunik also, seen as he's being a complete wanker - tempted to go public with whatever it is?
 
wan1. and wan2. will always work anyway
 
@MadaraUchiha British Telecom yo
 
1:47 PM
That's the full company name
It used to be called British Telecom, Bitch
 
@kelunik why are you even trying with opencart, that kerr guy is a total prick ... don't waste your time on it ... and never ever use it ...
 
Anonymous
let's not forget this shit github.com/opencart/opencart/issues/5027
 
Wes
> Whoops, your session expired. Let's start over, sign up shouldn't take long.
literally 10 seconds...
 
New Ep Wednesday! 🎉 Contributing to #PHP with @krakjoe - http://threedevsandamaybe.com/contributing-to-php-with-joe-watkins/
4
 

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