« first day (2043 days earlier)      last day (2921 days later) » 

12:00 AM
@bwoebi I'd rather I didn't need $$what and the by-reference capture
@bwoebi great! (link to it in the implementation section of the RFC :p)
 
@Andrea just put it in global scope, then you can use $GLOBALS :-D
 
actually, I'll do it
 
@Andrea okay, fine
 
hey all
 
done
["a" => $b, "b" => $a] = ["a" => $a, "b" => $b]; // verbose, PHP 7.1-style swap
now we can do this
huge improvement over list($a, $b) = [$b, $a];, clearly :p
 
12:08 AM
@Andrea lol
keyed swap
lol
 
:D
what's the most succinct and useless demo of all PHP 7.1 features I can make, I wonder
 
:-D
 
the 7.1 feature I'm most excited for is honestly void
I've used /* : void */ a lot in my code so far
nullables are cool but I haven't actually needed them all that often
 
@Andrea and you should not need to.
but sometimes you do
 
some kinds of data structures
    public function getOperand1()/* : ?Operand */ {
        return $this->operand1;
    }

    public function getOperand2()/* : ?Operand */ {
        return $this->operand2;
    }

    public function getResult()/* : ?Operand */ {
        return $this->result;
    }
 
12:13 AM
yeah, and sometimes where's no point in some sort of a null-object
 
 
4 hours later…
4:11 AM
Hello everyone, I am trying to get a JSON and parse its data from phpunit tests, and possibly pass this json to other tests, how can I achieve this?
I tried with CrawlerTrait's dump function, but it seems to stop the test in the middle of the testing instead of returning the page response to me
 
4:31 AM
Guess I could just use curl inside phpunit test, nvm
 
o/
Morning
 
5:33 AM
'nin
 
Ekn
mornin
 
@Trowski ...
1
Q: Returning a value from asynchronous PHP

Algy TaylorI would like to return a value from an asynchronous function in PHP ... I use icicle.io here, but I'm happy to use whatever, provided it does what I want to do! Anyway, this is some code below <?php require __DIR__ . '/vendor/autoload.php'; use Icicle\Coroutine\Coroutine; use Icicle\Loop; fu...

 
5:53 AM
o/ happy friday!
 
@JoeWatkins Thanks.
 
6:19 AM
o/
 
Happy rebecca day!
\o/
 
morning
 
Morning
 
6:30 AM
@MattPrelude so ... I gut it partially working
but the steam is still not starting
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
 
@tereško yo, you're in office?
 
nope
and I wont be there till 11:00-ish
 
@tereško I had that issue
 
I got to go and pick up my SSDs from warranty
 
6:36 AM
oh
 
cd $HOME/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
cd $HOME/.steam/steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
I think that fixed it
 
@MattPrelude I am currently reading wirejungle.wordpress.com/2015/01/09/…
 
(Steam's version of libstdc++ doesn't recognize the driver)
 
@tereško Alternatively just specify LD_LIBRARY_PATH on command line when you start Steam
So Steam can see your native libstdc++
 
6:42 AM
^ that worked
 
Wes
morning
 
o/
 
o/
 
!!rfcs
 
Anonymous
o/
 
Wes
\o/ \o/ \o/ \o/ \o/ typed props vote! \o/ \o/ \o/ \o/ \o/
 
yes, not sure how it will go ...
 
Wes
is it correct that targets 7.1 ? or it's 7.2 now?
 
7.1
but running out of time, I don't like the idea of merging /Zend features after alpha 1
 
Wes
6:57 AM
what you ended up doing with private Foo $foo, $bar, $baz; ?
 
Anonymous
Why need type properties?
 
Mixed Declarations section
 
Anonymous
we already have type hinting ..
 
are you serious ?
 
Wes
@samayo public Foo $foo; no need for get/setters
 
7:00 AM
!!friday
 
Wes
also even for privates, type safety is always useful to spot errors
 
you should view it as part of the same feature, type safety ...
what is the point in type safety is a silly question ...
!!commands
I'm never going to remember how the thing works
I need a usage thing @DaveRandom
if it starts with !! and is invalid, remind me what is valid ...
 
:P
Did you mean !!peehaasucks ?
 
yes I did, @PeeHaa, you suck ...
 
:D
 
7:03 AM
!!help
 
!!version
 
!!plugin list
 
Currently registered plugins:
[X] Canonicals - Posts links to canonical resources on various subjects
[X] ChuckSkeet - Posts a random Chuck Norris/Jon Skeet joke on request
[ ] CodeFormat - Asks users to format their code when unformatted multi-line code blocks are posted
[X] PHPDocs - Searches the PHP manual and displays links with a summary of the result
[X] 3v4l - Executes code snippets on 3v4l.org and displays the output
[X] Google - Retrieves and displays search results from Google
[X] HTTPRequester - Sends HTTP requests and displays the headers of the response
 
!!command
 
7:04 AM
Syntax: command [map|remap] <command> <plugin> [<endpoint>]
        command unmap <command>
        command alias <new command> <existing command>
        command list
 
!!plugin command
 
@Gordon Syntax: plugin [list|disable|enable] [plugin-name]
 
!!plugin list command
 
@Gordon Invalid plugin name
 
@Jeeves your momma is an invalid plugin name
 
7:05 AM
!!command list
 
Commands currently mapped:
 > - Executes code snippets on 3v4l.org and displays the output (3v4l # Eval)
 ? - Retrieves and displays search results from Google (Google # Search)
 @PeeHaa - Implements the Lickable interface (Lick # Lick)
 canon - Posts links to canonical resources on various subjects (Canonicals # canon)
 chuck - Posts a random Chuck Norris joke (ChuckSkeet # Chuck)
 docs - Searches the PHP manual and displays links with a summary of the result (PHPDocs # Search)
 eval - Executes code snippets on 3v4l.org and displays the output (3v4l # Eval)
 
:P
 
I'll never remember any of that ... someone should do a !!help and show that when we fuck up ...
 
Anonymous
@Wes how do you not need getters/setters? Or in other words, how will you get/set properties with this feature?
 
Wes
7:09 AM
class Foo{ public Crap $crap; function __construct(Crap $crap){ $this->crap = $crap; } }
$foo = new Foo(new Crap);
$foo->crap = new Crap;
$foo->crap = new Crap;
$foo->crap = new Crap;
if this passes we'll need a readonly kind of thing... yum
 
@Wes errm, I dont see why we'd need a readonly thing if you can just make it private and provide a getter
which would also follow uniform access principle then
 
afk, school run
 
Anonymous
@Wes So, that is what it's useful for? So, you won't assign another class by mistake to $this->crap = new Bar ?
 
how would someone save (log) the state of the application on a fatal error? (I've got error_handler catching) but want to log some business info (user id, some other ID's the current process is related to) would it be storing in cache per process>
 
7:25 AM
!!friday
!!command alias friday rebecca
 
Command 'friday' is now mapped to Rebecca # Friday
 
!!friday
 
\o/
 
7:26 AM
!!rfcs
 
Who owns the code for Jeeves plugins?
Like, is there a GH project?
 
!!version
 
@Sara ^
 
Wes
7:27 AM
@samayo yes
 
Also morning yall
 
@PeeHaa nin'
 
good morning! and heppi rebecca day!
 
!!help
!!about
 
@Sara !!help currently is me :)
 
7:33 AM
!!wotd
 
inspissate: to thicken, as by evaporation; make or become dense.
 
Is all you ever need
 
Ah, github.com/Room-11/Jeeves looks likely :)
 
Wes
@Gordon all i know for now is that i have mixed feelings. we discussed the same thing with joe just the other day
 
7:33 AM
Jynx
 
Inspissate -_- hope they don't do that in my beer.
 
Hmm, is there any programming language that enforces private-only visibility on object/class members? That would force me to use a method to access/mutate it. I think I'd like that.
 
Wes
iirc in python you can call $foo->prop = $prop; on any function that takes one parameter only, am i right? so $foo->prop->bar(1); would be equivalent to $foo->prop()->bar(1)
 
7:36 AM
@PeeHaa she is ignoring you you ignorant dutchmen ^^
 
Yeah apparently :P
 
He has that affect on a lot of people.
 
:P
 
@Fabor :D
 
not suprised :)
 
7:37 AM
!!plugin
 
@PeeHaa Syntax: plugin [list|disable|enable] [plugin-name]
 
Wes
@Gordon it's the overhead of the function call. just that... i don't mind using parens()
 
Anonymous
Morniin
 
Looks simple enough. Expect a PR :)
 
@Wes that could be inlined by a compiler though, couldnt it?
 
7:39 AM
morgdsgdfs
 
omgrotrmgfn
 
@Gordon but 5.*... and I wonder if the state of the app is available in the shutdown function in p7, as it's not in PHP5*
 
@Sara that's the spirit
 
7:39 AM
morning
 
o/
 
\o
 
@SergeyTelshevsky dunno
!!command alias help plugin list
 
@Gordon Command 'plugin' is built in and cannot be altered
 
how does that work
@PeeHaa pls alias !!help to !!plugin list
 
Wes
7:42 AM
@Gordon maybe
 
we need a !!delegate command. When I type !!delegate make me a sandwich it should ping @Peehaa with the task
 
Glad to see we're all getting things done.
 
hello everyone
i have GoDaddy cloud server and i want to off firewall.but there is no option for that if you have any idea plz tell me
 
Why would you want to do that
 
7:45 AM
!!google GoDaddy support
 
Search for "GoDaddy support" (https://www.google.com/search?q=GoDaddy+support&lr=lang_en)
• GoDaddy Help en Support | Kennisbank voor klanten… - GoDaddy Help en Support beantwoordt al je vragen over GoDaddy-producten, … (https://nl.godaddy.com/help)
• Wereldwijde support | Contact met ons opnemen – G… - GoDaddy klantondersteuning is gratis. Beltarieven kunnen verschillen wanneer u van buiten het gebi… (https://nl.godaddy.com/contact-us.aspx)
• GoDaddy.com Chat: Live Support - GetHuman - When GoDaddy.com's chat support is open, you can talk to somebody quickly, but it still can take l… (h
 
Push Notification does not work ?
 
Turning off the firewall is probably not the answer. And if you're on a shared server, they will never turn off the firewall.
 
yes i have cloud shared hosting
 
@PeeHaa why does @Jeeves return results from nl.google.com?
 
7:46 AM
then you will probably never be able to get it turned off :P
 
Thanks @Buttle Butkus
 
And you probably don't need to turn it off either.
 
@Gordon because peehaa is nl, and he probably said so ^^
 
I've never had to turn off a firewall.
 
ugh
github is dead ._.
 
7:48 AM
what!?!?
 
I get unicorns for every page I'm going on
 
any idea that how could i connect ssl port2129 for pn(push notification)
 
@FlorianMargaine joop.
 
Ekn
"klantondersteuning is gratis .." that's like dutch, english and spanish alltogether.
 
7:49 AM
@GorakhYadav You're not even asking the right question. Your real question is probably "how do I send a message on this port to my server behind a firewall", or something like that
 
of course, status.github.com is saying "everything's fine"
 
@FlorianMargaine yep. all unicorns
 
But the unicorn is pretty fast, even if it says the page is taking way too long. ^^
 
I wonder if push/pull is working
 
7:50 AM
1 min ago, by Florian Margaine
of course, status.github.com is saying "everything's fine"
 
@FlorianMargaine It says, but it's clearly not.
 
Status shows "all systems operational" and yet the graphs show complete failure on the far right
 
@kelunik hah, fun
 
yes @Buttle Butkus thanks to getting my point you have any solution ?
 
!!@PeeHaa
 
7:51 AM
@DaveRandom At least buy me a drink first.
 
@JoeWatkins All you need to remember ^
 
@FlorianMargaine Everything fine just changes when there's a manual entry I think.
 
But yeh I will implement !!help soon
 
@FlorianMargaine but you didnt link it, you lazy person
 
@GorakhYadav I doubt you are able to configure any ports on a shared server. Do you have cPanel?
@GorakhYadav ^^^^^
 
7:52 AM
@kelunik looks like so
 
Interesting, Web goes up, API goes down:
 
@Gordon Google have an IP geoloc that I have yet to figure out how to disable
 
API meaning git push/pull is working?
 
@kelunik it's web response time
oh, it's also API response time
hm
 
Works again, partially.
 
7:54 AM
The load on the API server dropped, so of course it can respond faster. :)
 
I was going to push something
 
!!? google/ncr no country redirect
 
Search for "google/ncr no country redirect" (https://www.google.com/search?q=google%2Fncr+no+country+redirect&lr=lang_en)
• Google NCR (No Country Redirection) Feature Stop… - Google keeps pulling away search features, but the removal of the google.com/ncr feature might be a… (http://searchengineland.com/google-ncr-no-country-redirection-feature-stop-working-but-google-may-bring-it-back-239381)
• NoCountryRedirect (NCR) - Chrome Web Store - Goog… - Makes sure you stay on google.com and blogspot.com by automatically adding 'no country redirect' ('… (https://chrome.google.com/webstore/detail/
 
push/pull might be working, try it
 
Push works not that fine. That's how I noticed.
 
Anonymous
7:55 AM
@Gordon What does '?' do?
 
@DaveRandom not sure how to do that nowadays either. one could use google.com/ncr in the past
 
@DaveRandom anything left before I release pecl/pq?
 
I'll just wait till tomorrow. Hopefully they haven't nuked the github github master repo.
 
@JayIsTooCommon alias for !!google
 
yes @Buttle Butkus i have GoDaddy server cPAnel
 
7:56 AM
^ Didn't ever get that.
 
@m6w6 nope, not that I'm aware of
 
Anonymous
@Gordon .. Probably should of worked that one out by myself
 
> 09:56 CEST "We're investigating some issues with our databases".
 
@DaveRandom Cool, thanks. ParkFramework is already waiting =]
 
@kelunik Got that once or twice before, but it's rare.
It's usually the unicorn.
 
Anonymous
7:58 AM
Maybe we could have new tweets from this twitter.com/githubstatus?lang=en-gb auto post in room
 
"We're investigating some issues with our databases".
 
@GorakhYadav http://www.google.com/search?q=open+port+cpanel+firewall
:D :D :D
 
@JayIsTooCommon That's actually a nice idea. Maybe it can be added to the Feeds bot.
 
Oh my goodness. Stackoverflow converts lmgtfy links to regular google links!
My sarcasm is ruined.
 
8:00 AM
because lmgtfy is frowned upon
 
Our primary database is now recovering.
 
I smile upon it occasionally.
 
@Oldskool For @Feeds we need a RSS feed. But we could use @Jeeves
 
@kelunik I thought Twitter API supports RSS output?
 
@GorakhYadav I don't think there's any port SETTINGS access for the "cPanel" interface, but there surely is in the "WHM" interface. But you only get that interface with a dedicated server, I think.
 
8:02 AM
Not sure though.
 
@Oldskool Dunno.
 
@m6w6 any idea how long it takes for builds to make it into Remi's repos? I'm hoping to give @Jeeves a db layer soon and he runs on Remi's php70 repo
 
@DaveRandom IIRC immediately, usually he pokes me within hours if a build has problems ;)
 
Appy aiiiday!
 
Ah great :-)
 
8:04 AM
I still don't think I'll remember those things ...
 
@Buttle Butkus you are absolutely right thanks for help :D :D :D
 
@GorakhYadav Maybe try a REST API or something like that.
You're welcome.
Looks like github is working again
 
@DaveRandom SQLite?
 
@JoeWatkins I'm going to write a help for the built-ins today. !!command and !!plugin can get you info about anything else. Any idea how to implement something like git's "did you mean...?" in a sane way?
 
of course
 
8:10 AM
@kelunik We have the JSON storage for now, I'd rather just get by with that until we have proper DB support, can't do async sqlite
 
@DaveRandom The nice thing about the current solution is that it's easy to setup. If you choose to use a more complex storage, we should think about using Docker.
 
@kelunik well I figure that the Storage interfaces are a winner, we can provide DB schemas with alternate back-ends
But they can still just implement the same storage interfaces
@JoeWatkins (by which I mean something that is not O(scary), obviously just hitting every command and levenshtein is simple but would like something more elegant ideally)
soundex or something possibly
 
oh I was just thinking of the scary way ...
tiny words ...
 
yeh the pool is not huge atm, that's probably sufficient
 
8:15 AM
agree, do it that way ... it's scary to levenshtein whole paragraphs, or books, or pages, or whatever ... but 5 and 7 character words ...
 
anyone have setup nginx
in wp
 
it's also not that useful
for tiny words
DIY ...
command -> gorilla ... pretty low score ...
 
@winresh24 Windows Phone?
 
wordpress :)
 
you want something like levenshtein, but adjusted to account for presence ... so that ^ would yield 0, but something like cmd, would yield a useful score (3) ...
 
Wes
8:18 AM
is there a way to get cachegrind outputs from phpdbg?
 
or forget the blackjack and hookers, and DIY, on the basis of presence alone may be good enough ...
@Wes nope, not profiler
 
If something has a current value of 4 and you are told to change the setting with > 4, are you told to increase or decrease the amount? my brain is being a potato today
 
@JoeWatkins levenstein + soundex maybe
 
@Gordon Don't think alias worsk like that (yet)
 
Wes
@Epodax increase
 
8:19 AM
never used it ... sounds hi tech ...
cmd and command don't share phonetics though
 
similarity of sound basically.
 
the former doesn't have phonetics
 
@Wes Thanks!
 
@DaveRandom :P
 
TBH I think the string comparison (similarity) functions and libraries around PHP are pretty meh.
 
8:20 AM
@Gordon Because we I @DaveRandom cocked it up
 
@JoeWatkins stripping vowels and double consonants, then levenstein that?
 
I wonder if they are really general use anywhere @Fabor
 
Probably correlation by causation. Lack of use lack of good tools.
 
@DaveRandom maybe, I think levenstein should probably be a last resort ...
because for tiny words, I think it will always yield non zero
I think for anything it always yields non-zero, but for tiny words it's really not useful, is it ?
a clever algo would use the distance on the keyboard ... that's what you want to catch ...
 
@JoeWatkins Tell that to those non qwerty assholes
 
8:25 AM
I hate those guys
 
hey.. Dvorak is nice...
... lol jk
 
a clever bot could learn/store layouts ...
I think most people in here are actually non qwerty?
 
Because I am hungry.
 
Most are qwerty
 
Qwertz
 
8:27 AM
Germans and @FlorianMargaine are just different
I assume the rest is sane
 
And @bwoebi
 
He's Belgian?
(I thought)
 
Yeah @bwoebi is that strange mix of languages because he's from a fake country
 
@bwoebi isn't german. Luxemburgian.
 
oh no that ^
 
8:28 AM
oh
he speaks german, right ?
 
@PeeHaa It's a real country, only the laws are fake
 
yes
 
I'm sure I've seen him doing that
til ...
 
@JoeWatkins That fake country speaks french/german/and thiur own little retarded dialiect which I assume is a mix of both :P
 
@Fabor Hello hungry, nice to meet you. I am Gordon.
 
8:29 AM
The ultimate Dad joke
 
indeed
 
I've never heard of Luxembourgish
 
@Fabor I want that so much
 
@PeeHaa It's not just a dialect, it's its own language
 
@DaveRandom If you should head over to /r/gifrecipes if you're feeling peckish.
 
8:31 AM
Yeah that's what we all tell them, but we know better right? :)
 
They also speak French and German because you can throw stuff from France into Germany over Luxembourg
 
only half a million people
that's really very very tiny
 
@Fabor oh, it has sausages in it. do you want me to tell you a joke about german sausages?
though I have to warn you, it's really one of the wurst
 
It's Friday so ... sure.
Oh my
 
:D
 
8:33 AM
@DaveRandom here you are: github.com/m6w6/ext-pq/issues/18
 
I knew it
 
@m6w6 I wonder if he ever does any actual paid work? :-P
 
I just knew you weren't coming up with these and must have a book of dad jokes or something ...
 
@DaveRandom I think that is paid work
 
8:34 AM
@JoeWatkins it's a mixture tbh ;)
 
He works for RedHat
 
oh right, awesome :-)
 
yeah, it's his job to find and fix all our mistakes ... lucky us :)
he's my personal release manager for pecl stuff :D
 
:-D
 
8:42 AM
!!friday
 
@Jeeves ♥
 

« first day (2043 days earlier)      last day (2921 days later) »