« first day (2248 days earlier)      last day (2691 days later) » 
00:00 - 15:0015:00 - 23:00

Anonymous
12:00 AM
@PeeHaa $title = yield $this->getTextFromCommand($command->getParameter(0));
 
Anonymous
do I need to do the same for the null response? or is null acceptable ?
 
you should.
You do not need to currently, but you will in Amp v2 at least.
 
PeeHaa's bad ass app design inc (tm)
@JayIsTooCommon What is a null response?
I should probably just get a real designer :P
 
Anonymous
@PeeHaa a response that's null :s
 
Anonymous
Looks alright to me?
 
12:04 AM
@JayIsTooCommon A response from what?
@Jimbo's mom?
@JayIsTooCommon okish, but a bit too minimal
 
Anonymous
I feel like this is a trap to expose my dumbness
 
It isn't. Promise :)
 
Anonymous
hahaha, wait for this..
 
Anonymous
my dog just saw my code
 
Is he ok? :P
 
Anonymous
12:07 AM
user image
2
 
hehehehehe
 
Anonymous
:P
 
Anonymous
12:25 AM
erm ok
 
Anonymous
so if httpClient->request() is returning deferred, am I doing something wrong :P ?
 
@JayIsTooCommon yield it
$response = yield $httpClient->request()
 
Anonymous
ah yeah my bad
 
Anonymous
12:46 AM
oh wtf
 
?
 
Anonymous
I swear class properties are being overwritten with null
 
Anonymous
will try get code
 
Anonymous
oh ahhaha, nvm
 
Sounds like you found a silly mistake :P
 
Anonymous
12:52 AM
that i've been trying to solve for the last 20 minutes. I was looking at the wrong line :>
 
:D
 
damn bears in Rust. I just got killed. Thought it was a pig -_-
 
Anonymous
Where i'm currently at is i'm assigning ($this->result = yield $this->httpClient->request($request);)
 
Anonymous
but result is just null
 
Anonymous
@Ekin :P story of my rust life
 
12:56 AM
@JayIsTooCommon How are you calling the method that is in?
 
Anonymous
@PeeHaa $this->createIssue($title, $description, $command->getId());
 
use yield from $this->createIssues()
@Ekin hahahhaha
 
Anonymous
ahhhhhh
 
Lost my gun and all the gun powders :'(
 
Anonymous
yes @PeeHaa, i was trying to just yield it originally. from makes sense
 
12:59 AM
@PeeHaa o.o
 
@Tiffany manbearpig
 
doesn't make it any less o.o
 
:P
 
ugh, I wanna do stuff but my migraine is coming back
time for another nap
 
@PeeHaa lol, yeah, that
at least I found the gun
 
Anonymous
1:15 AM
holy shit balls @PeeHaa, working \o/
 
\o/ !
Nice to the noice
 
is it !!issue?
 
Yes
Status: functioning player \o/
 
:-)
noice x2
 
1:37 AM
so I'm setting up my home dev environment, is xampp even necessary anymore if I'm just doing PHP dev?
I'm not sure that I need interaction with a database
 
@Ekin x3 because you found back your gun :p
 
I was reading that a version of php brought the ability to run php files without the requirement of a web server
 
You can just install php and apache yourself instead of using xampp
 
but then I have to configure Apache :/
I'd rather install xampp, rofl
Apache is a pain in the ass to configure
 
That's like 10 lines config
5 to set up the php handler and 5 for a vhost
 
1:40 AM
versus xampp where there are no lines to configure, unless I need to
I'm just having flashbacks of when I configured Apache on a computer at work, and it was fucking annoying
but I think part of the problem was configuring fucking oracle instant client too
 
Well yeah. You cannot spell oracle without anal probe
 
and the version of Apache I downloaded didn't agree with the version of PHP. 32bit versus 64bit
 
Was it a windows machine?
 
I think there are only four servers at work that are not windows servers.
or windows machines
that might actually be less now...
 
At least it wasn't IIS I guess :P
 
1:43 AM
from there to about 39:50
 
Okay, so does anyone here have any suggestions for how to handle large file uploads (could be several Gigs) on a 32-bit W10 XAMPP server? preferably using PHP, however alternative methods are welcome
 
@Tiffany :-D
 
Anonymous
@PeeHaa keyvalue in store is for reading config, yeah?
 
@JayIsTooCommon yes
Or other stuff your plugin needs to persistently store
 
Anonymous
thank you
 
Well yeah. You cannot spell oracle without anal probe
 
Wes
morning/evening/whatever you like
 
whatever
lol!
#trololol HTTP page: "Don't mind the broken HTTPS. It's all good. We like, totally promise." https://t.co/pbzBgocrqa
 
I don't want to come across as needy and impatient, but I have a pretty short timeline for my project, so does anyone have any paths to follow that might help my previous question become answered?
 
@PeeHaa :-)
indeed
 
2:00 AM
@PeeHaa like it? :P
 
Yeah it's good
 
Larry Ellison is a lawnmower.
 
:)
 
Anonymous
@PeeHaa So if i add something to config.yml and then do an exists check on keyvalue, it should be returning true? there's nothing else I need to add it to? (currently getting false -.-)
 
@JayIsTooCommon keyvalue as in the keyvalue storage?
 
Anonymous
2:04 AM
yeah
 
nope the config stuff is only available at bootstrap phase by default. The keyvalue store is for storing data by the plugin. Different things. The kayvalue stuff are json files in /data
What do you want to store / access?
 
Anonymous
oh, i wanted to store github credentials
 
Anonymous
so it should go in data?
 
ah the credentials. Nope they belong in the config file
 
hmmmmmm
 
2:06 AM
Let me grab an example of how you can get them in the plugin
 
I'm having second thoughts about xampp.
 
Anonymous
ok ty
 
Anonymous
@Tiffany good.
 
thinking about setting up a virtual machine, then I can install Linux on it and learn about nginx
lol
 
Anonymous
very good idea :)
 
2:07 AM
you $injector->define them like twitter etc in run.php I think
 
^ that
 
Wes
@JayIsTooCommon watched the new ep? doing it now :B
 
suggestions of what I should use to set up the VM? Only one I'm aware of is VirtualBox, but I hate putting up with Oracle products
 
Anonymous
@Wes yeah it's quality, mostly un-scripted :)
 
Anonymous
@Ekin thanks
 
2:09 AM
$injector->define(Your\Class::class, [
    ':username'     => $config['github']['username'],
    ':password' => $config['github']['password'],
]);
 
yup, that
 
Which relates to the username, password constructor parameters
 
anyone used Vagrant?
 
setting up dev environment at home, worth it?
that's vague
 
2:15 AM
Totally
 
there are things I want to do that I don't feel xampp will suffice
 
Anonymous
So i need a separate credentials class now, right ?
 
Anonymous
Because the plugin class will be defined twice if I do that with plugin class, no ? @PeeHaa
 
I've heard/read about using vagrant to set up a dev environment
just trying to decide if vagrant is what I should go with, or if there's a better option
 
I'd suggest going with vagrant if you're new to dev vms and stuff. It sets up a few things for you.
 
2:18 AM
@JayIsTooCommon You don't actually need it, but perhaps you should do it either wat to keep that stuff the same as translation and twitter
 
alright. thanks.
 
Anonymous
@PeeHaa alright, ok if i put it in external/ ?
 
@JayIsTooCommon Do it in the same file
 
Anonymous
that's cray cray
 
Anonymous
okie doke :D
 
2:20 AM
oh wait
No do it in external :P
 
lol, one of my cats is laying right behind me in my chair, like a cat loaf. I guess I'm warm.
 
Anonymous
ok :p
 
I just noticed translation also being in there
 
Anonymous
@Tiffany Also once you move from xampp, get a dog :D
 
D:
 
2:22 AM
^^ lol
 
I'm a crazy cat lady
I have two cats, they're my children
 
lol, I visited a friend yesterday aaand she had cats... 9 to be exact
it was insane level.
 
oh geez
did her place smell?
 
That's proper crazy cat lady :P
 
oh, I'd have more, if I could @PeeHaa
 
2:23 AM
not really, she had a separate room for them
 
but one litter box is enough for me
it's impressive when a person has that many cats, and keeps the place looking clean and stink-free
 
indeed it is
ugh. now I miss my husky
 
:(
 
2:49 AM
night all
 
iterable_filter(
    function ($node) { return $node->hasAttribute('name') || $node->hasAttribute('id'); },
    $inputs
)

iterable_filter(
    |$node| ($node->hasAttribute('name') || $node->hasAttribute('id')),
    $inputs
)
 
you haven't decided on a syntax yet?
 
Perhaps not the most compelling example but it's one I just wrote for real code.
($inputs here are actually nodes with a tag name of input)
 
I give fairly minimal fucks about the syntax next to get getting short lambdas.
 
Hey sara:
 
2:56 AM
Though not Python's syntax please
 
$name_type_map = pipe(
    $inputs,
    function ($inputs) {
        return iterable_filter(
            function ($node) { return $node->hasAttribute('name') || $node->hasAttribute('id'); },
            $inputs
        );
    },
    function ($inputs) {
        return iterable_reduce(
            function ($array, $node) {
                $type = $node->hasAttribute('type')
                    ? $node->getAttribute('type')
                    : 'text'
                ;
                $name = $node->hasAttribute('name')
 
Hey Levi
 
^ That sucks to write. It'd sure be nice if someone could propose an RFC for something that looks like this instead:
$name_type_map = $inputs
    |> iterable_filter(
        function ($node) { return $node->hasAttribute('name') || $node->hasAttribute('id'); },
        _
    )
    |> iterable_reduce(
        function ($array, $node) {
            $type = $node->hasAttribute('type')
                ? $node->getAttribute('type')
                : 'text'
            ;
            $name = $node->hasAttribute('name')
                ? $node->getAttribute('name')
                : $node->getAttribute('id')
            ;
 
That sure would be nice.
 
Know anyone who might be up to the job?
 
2:58 AM
AFAICT that's my RFC with _ instead of $$, no?
Nevermind that _ is a valid constant name?
 
Well... yeah personally I'd like to nevermind that, yeah.
But it's actually two features, not one like yours.
 
Yeah, I recall our discussion
Pipe with single-arg callables, plus enclosables or whatever you called it
 
So $$ or _ would be partial application and |> would be piping.
 
Partial Application, that was it
 
When used in combination we can elide the actual closure generation for the partial application.
 
3:00 AM
To be fair though, with partial application closures, you don't need pipe op, that pipe function does the same thing.
Not as efficient, sure. But functionally.
 
I mean... like... way less efficient :D
 
:D
Preachin' to the choir, bro
 
I mean if you can get $$ or _ into core then I can live with pipe... which probably needs a different name anyway... callable_pipe?
 
Would you co-sponsor such an RFC at least?
 
Yeah.
Actually, what co-sponsoring activities would you want me to do?
 
3:03 AM
I'm super busy with the new gig and the move atm, so can't defend on list as well.
 
Anonymous
@PeeHaa hmm you around?
 
Argue for the feature
 
So you write the RFC, I review it, you propose it, I defend it. And you write the impl, yeah?
Sound good?
 
Sure
 
Alright. I'm game.
 
3:05 AM
Wanna prototype first, and I probably can't spend a ton of time on it this week. Will dig in though.
Huh.... I could do this as an extension..
Leave _ parsed as a constant, then post-process the AST
When CONSTANT "_" is seen in an FCALL, translate to CLOSURE function (${0}) { return {fcall}(..., ${0}, ...); }
Better to bake right in, but at least there's a backup option if the RFC fails.
 
3:36 AM
@LeviMorrison can we please just use temporary named variables which document what's contained in them?
 
@bwoebi I'd prefer not to have that as the only tool.
$filtered_inputs after running iterable_filter($fn, $inputs) is not helpful name and in some cases a succinct name cannot be found.
Plus it makes re-ordering (which is sometimes necessary) more painful because you have to also change variable names.
 
@LeviMorrison when you use iterable_reduce you do not need a separate filter step either
 
@bwoebi I don't need to.
We don't need filter or map at all because we have reduce.
Everything is just reduce.
 
@LeviMorrison I meant a filter plus a reduce.
 
I know what you meant.
 
3:43 AM
And I do not consider it more elegant either, TBH.
 
I didn't claim it was.
It's not like I'm proposing this feature for this exact code.
I actually had a filter -> map -> join until I rewrote a bit to keep the key.
 
@LeviMorrison No, but there's the issue; I've seen many codes it could be applied to, but never something where it actually improved something.
 
That was more elegant. It just turned out in this case I wanted a key after all.
For sake of example though here is the inlined filter:
iterable_reduce(
    function ($array, $node) {
        $type = $node->hasAttribute('type')
            ? $node->getAttribute('type')
            : 'text'
        ;
        $name = '';
        if ($node->hasAttribute('name')) {
            $name = $node->getAttribute('name');
        } else if ($node->hasAttribute('id')) {
            $name = $node->getAttribute('id');
        } else {
            return $array;
        }
        // hope it is unique??
        $array[$name] = $type;
        return $array;
 
I prefer that TBH
 
And honestly... I will end up claiming the separate filter was indeed more elegant in this case.
@bwoebi Yeah, I definitely disagree then.
 
3:49 AM
I.e. the filter looks more stylish, but inlined version looks more readable/easier to follow
just one function block to analyze.
 
It's too much in one function, honestly.
 
I dare to disagree…
 
I'm not claiming any code of that size or complexity is too much.
But I will claim that if I had better tools I would definitely not write this code this way.
 
I think you need to write code in declarative languages, Bob. I know separate tools for separate jobs but basically all C-like and derived languages are moving to support some of the basic algorithms and features of declarative programming because they are useful even in imperative languages.
Even if I had all these features I wouldn't write all my PHP code this way; not even close.
But if I had a fiilter -> map -> join in my program I would much prefer to write it the declarative way. It's less error prone and more understandable. But right now we have so much closure boilerplate and other nonsense it's actually just more understandable to write some foreach loops.
 
3:56 AM
@LeviMorrison Well… I've ended up reading and writing a bit of code in Haskell… I found it incredibly hard to reverse engineer what was happening. Code is just a chain of maps, filters etc. without much help what's going on (e.g. by variable names or such) without reading every single line of code in absolute detail.
 
Yeah, read some of Hack's OCaml stuff. Yuck.
 
It's "looks nice, nice to write" … but I don't want to maintain it :o
 
I know what you are saying.
 
Too much expressiveness at the cost of maintainability
 
But i'd argue it's not the filter and map that is bad. It's dealing with io, side effects and other things that these declarative languages tend to suck at.
Which is my point: write declarative code when it's better and write it some other way when it's better that way.
But right now our declarative and functional tools are WAY verbose.
 
3:59 AM
@LeviMorrison well, they really suck at the latter. But the former is still bad IMHO.
@LeviMorrison short closures would be helpful… but removing too much verboseness will IMHO do more harm than good.
 
It would definitely help.
It's why I picked that RFC above the others to actually try and author and go with.
 
@Levi Maybe you are right and I'm wrong, but I prefer to slowly try that out instead of a revolution which turns out to be a mistake.
First short closures and then re-evaluate.
 
There are plenty of times we end up evaluating things "inside out"
That's what the |> is designed to help with: write the code in the order we actually want to read it.
Sure maps and filters and stuff tend to be this way but there are other times as well.
 
I know about its goal, I'm just not sure whether |> is a good solution
At least currently I'm not ready to support |>.
In two years maybe, given that we can get in some nice version of short closures…
Dunno.
 
I can live without |> if we have partial application and better closures. Better closures alone are not very good in some cases. As demonstrated above I can just write a function pipe and use that everywhere. It'd be less efficient but functionally the same without much difference in what is actually typed.
 
Wes
4:10 AM
@LeviMorrison yes, and it's terrible. imho even just two nested pairs of parentheses are hard to read, but we still write them because we want to avoid temporary variables as they are verbose and because it's actually hard to find a name for them
 
We have no real ability to do so with partial function application or shorter functions since we don't have macros.
 
Wes
sometimes, without abusing the thing, |> would be just nice to have
 
morning
 
Wes
\o
 
@Wes There are probably some string function examples that would not be too difficult to find that show this.
 
Wes
4:14 AM
yeah often would be useful, but at the same time i agree with bob that should not be abused
variable names document what's in them, and that's useful when needed
 
o/
 
6:04 AM
Hi
I have a modal box in javascript
What I want to do is :
I want to click in the content of modal for example in "Some other text"
And I will get this text in javascript
Is it possible ?
 
Wes

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
There is no one in javascript group chat
 
There are 36 peeps there.
 
Wes
Nov 17 at 23:55, by Wes
asking jquery questions here because the js room is sleeping is like pooping in the kitchen because the toilet is occupied
:B
 
Ok Bro . I have posted my query in javascript room
Relax
:P
 
6:14 AM
posted on December 11, 2016

New Cyanide and Happiness Comic

 
6:32 AM
@Wes lol
 
Hi guys, I was wondering how to post on Facebook
Pages
using PHP
 
26
Q: Simple example to post to a Facebook fan page via PHP?

nmartiI've done a lot of searching and I've found outdated tutorials that don't work... I have a site made with PHP and when I submit a particular form in my admin area, I want to publish to my Facebook "fan page" There is no RSS available, so do you have any example to directly post to the Facebook ...

 
 
2 hours later…
8:49 AM
.
 
@Tiffany woa... this guy haz to slow the fork down
 
9:08 AM
Growing a Language <- Great talk
4
 
9:38 AM
Growing a Beard <- Great talk
 
Growing Up <- Great talk
 
10:28 AM
lol
 
 
1 hour later…
11:34 AM
@JayIsTooCommon yo
 
Anonymous
11:48 AM
@rabbitguy ping
 
11:59 AM
o/
 
12:18 PM
o/
all good?
super sunday coding
 
Wes
12:31 PM
@Ekin you in Istanbul now?
 
@Wes Are they at it again?
yes they are
 
12:54 PM
@Wes No I'm safe on the west coast. But terrible stuff as always, yeah
Also mornings11
 
Mornings
 
@PeeHaa 144M -rw-r--r-- 1 krakjoe krakjoe 144M Dec 11 12:31 rpi3.img
\o
 
ooooooh nice!
 
also, will be able to update operating system without touching user files
and boot partition ...
also, the user can't break anything
 
Dayum \o/
 
1:01 PM
if they add a file that broke something, just delete it ...
the file that was there before will magically appear ... with magic ...
 
I like magic
 
it's pretty good ...
these are just advantages, there are good technical reasons for doing it this way ...
 
1:13 PM
why can't I used void for the constructor return type? Isn't the whole point of void that it returns nothing?
 
constructors are not normal methods
 
Doesn't __construct return the object by default?
 
1:37 PM
and evening all
 
Anonymous
2:06 PM
@PeeHaa hoi, pretty much done. Wanna test?
 
yo. I'm just about to go out snowboarding. Will have a look later tonight or when the level of booze doesn't allow it tomorrow
 
Anonymous
You lucky bastard, have fun, get a pic
 
It's indoor so it's not that lucky :)
Will ask people to make a pic either way if I am going over a ramp / rail so you can all laugh
 
If someone feels like proofreading... :D
And I think the font is a little big? Design suggestions? (I suck at designing...)
 
Anonymous
@MadaraUchiha ping
 
2:14 PM
@PeeHaa indoor snowboarding? wat
 
Hey guys i have a problem
`ratings = parseInt(ratingnow,10) + 0.50;`
when ratingnow is `int` e.g. -> 5 then its giving me 4.5 should be 5.5
when ratingnow is 5.5 then it is giving me 6 which is right
It is in java-script
 
@Patrick This may come as a shock to you, but not all countries have mountains and snow :P
 
@Patrick At about 928px wide, it goes bollocks.
 
@PeeHaa so you build an indoor mountain? :o
 
@Patrick yes
Well... more a hill
 
2:17 PM
must be a big building...
 
1 sec
 
@littlepootis hmm I see what you mean... :(
@PeeHaa cute
 
@Patrick uggggh stop it
I want to go somewhere this year, but not sure if times allows it :(
I may end up in winterberg again for a long weekend instead
It sucks, but at least it's something :)
I assume you also do the snowboarding thing?
I mean, how else do you people get from point a to point b :P
 
Yeah been snowbaording since like 7 years old, tried skiing a year ago but I suck at that
 
I hate little kids who do all kinds of crazy shit that I either don't dare to do or just cannot do :D
Super annoying
I'm out. Cya all later o/
 
2:24 PM
After hitting my butt on a metal rail and breaking my glasses by landing on my face after a jump, I stopped doing crazy stuff too :D
 
hehehhehe
been there done that
 
Enjoy your "hill" o/
 
alcohol helps in the decision whether you should do something or not :P
@Patrick :D
 
2:45 PM
TIL: You can apply too much deep heat to your shoulder.
 
2:55 PM
> 114M -rw-r--r-- 1 krakjoe krakjoe 114M Dec 11 14:31 rpi3.img
can make it sub 100mb but would be stateless by default ... which would be annoying ...
that is small enough I think ...
 
00:00 - 15:0015:00 - 23:00

« first day (2248 days earlier)      last day (2691 days later) »