« first day (2528 days earlier)      last day (2430 days later) » 
00:00 - 20:0020:00 - 00:00

@Wes I'm sorry Dave, I'm afraid I can't do that
 
Wes
noooo
 
12:47 AM
o/
 
Wes
12:59 AM
i quit with coffeine for 2 days. now i'm sleeping in small stints of 1-2 hours each
i feel like shit :B
 
(= it will pass soon
Too much coffee lately?
 
Wes
yeah :P
 
I'm streaming :O
but I can't do much yet... until I get a second monitor next week
I can't see chat and stuff :(
 
Wes
twitch?
 
yarp
on another note, I need ot use twitter more
 
Wes
1:09 AM
i first read it "i'm screaming :O"
 
or at least check twitter more
hahaha
to be fair, streaming is kind of scary... so I could be screaming
 
Wes
will you stream programming :B
 
I might at some point
I want to stream Path of Exile starting out at least
 
Wes
there are quite a few programmers streaming
 
yeah :)
I'm happy that streaming programming is actually successful
oh! @Wes
how good are you at making like overlays?
 
Wes
1:12 AM
dunno about that. but videos on youtube are ok
 
or like "starting screens"
I want to have like a starting screen for before I start streaming
 
Wes
pretty bad, especially i can't afford after effects anymore :B
 
and then an ending screen
it doesn't have to be animated
static image is fine
 
Wes
i can try making one, if i don't fall asleep on the keyboard
so strange waking up and be immediately tired
bah
 
you don't have to do it right now, I was just curious. and I will pay.
while I can do abstract art, I'm shit at coming up with something on the fly, and I doubt my ability in making something I'd like for my stream
 
Wes
1:19 AM
eh, i'm not really that good. not being modest, it's just a fact :B especially these days with flat design etc i rarely touch photoshop, so i'm getting worse even
 
hmmm
 
Wes
i don't have a good relationship with that part of my job :B i get anxious. with my clients i actually pretend i'm worse than i am, so i don't raise their expectations :B
dang i'm super tired again... wtf
also i'm drinking liters over liters of water for no reason whatsoever
 
but water's good for you
as long as you're getting enough electrolytes anyway
 
2:16 AM
MORNings
@Danack and I could do operations like strcpy(baz, foo); on it?
 
3:06 AM
@Allenph I just got an email from SO about this job posting in UT (allows remote it seems?), wanted to make sure you saw it
 
3:27 AM
🇱🇻
 
3:43 AM
yo
 
set_exception_handler callable not called on exception – #75215
 
https://stackoverflow.com/questions/46260434/laravel-attach-a-pivot-table-value-to-authuser-whats-missing-wrong
little help?
 
4:20 AM
@Wes ping
 
Wes
pong
 
:P
would you be kind as to try out this theme gist.github.com/SaitamaSama/879627d68528f590e1ee79281e3f920f
its for stylish
 
Wes
i haz no stylish
wait
 
<3 alright! I built it this morning, looks nice imo. would love your opinion.
 
Wes
i like the normal theme :B
 
4:27 AM
does it look bad?
 
Wes
no, it's ok
 
oh :|
 
Wes
but again the regular theme is not too bad
 
hmm, true :)
 
Wes
also, i'm used to it :B
 
4:41 AM
gist.github.com/SaitamaSama/879627d68528f590e1ee79281e3f920f ; Now with new search box style and flutter free message hover
could someone star that ^ :P
also, @Wes did you see the auto complete for username pings styles :B ?
 
Wes
i didn't :B i've already uninstalled it :B
not because i hated it.
 
oh okay, np :P
@Wes no worries dude
 
Wes
gas gas gas i'm gonna step on the gas
and be your hero
:B
watched 4 eps of rick & morty. it's ok but not very much
if you like that stuff you should watch south park
 
@Wes there is no such line as 'and be your hero' :P its genius.com/Manuel-gas-gas-gas-lyrics 'and be your lover'
 
Wes
how is it, be your lover?
 
4:46 AM
@Wes se 3 ep3 was very nice
 
Wes
> And I'll be your hero
it's in the page you linked :B
 
@Wes idk, I just ctrl-f'd 'and be your hero' don't blame me :P
 
Wes
such a fail
watch south park southpark.cc.com/full-episodes it's even free
click on season 1 and enjoy
 
woah 21 seasons?
 
Wes
longest running series ever
 
4:48 AM
would keep me busy for a long time. \o/
 
Wes
and it's still as good as it was 21 years ago
unlike simpsons
 
:P
> cartman gets an anal probe
such ep names, much wow
 
Wes
the first ep is a bit poorly made because it's the pilot
then they got the money :B
 
Wes
not as much as i use :B
 
4:57 AM
omfg, chat.stackoverflow.com/… 95 pages...
I need to step up my game
 
5:25 AM
morning
@Wes ping
 
Wes
\o
 
I want a thing from you, you cook your own meals right ?
 
Wes
yeah. i'm not great tho :B
 
there are one hundred thousand million squillion lasagna recipes, I want one from you, an italian that cooks their own food .. got one that you actually eat ?
 
Wes
i used to own a recipes site, my ex gf was a decent chef
 
5:29 AM
orly
 
Wes
ya :B anyway
it kind of depends on where you eat, food in the south is very different from the food in the north. but ultimately what matters is quality of ingredients
what kind of stuff you had in mind? like fast food?
 
I suggested to the chef that we do lasagna and he showed me some prepackaged sauces and minced beef ... this sucks, and is not what people pay for when they go out to eat ... I've done it before a bunch of times at home, but I thought I'd get it from an actual italian so that we can authentically call it italian ...
@Wes no, that's what he has in mind, stuff from a freezer or can ... what I have in mind is mass production, but freshly made food every day ... lasagna is in principle simple to mass produce in portions ...
 
Wes
all the italian food should be cooked at the moment imho. even lasagne that is quite complex shouldn't take long to make
 
all food*
 
meh, Italians and their food fetish
 
Wes
5:34 AM
maybe lasagna is hard to get right. not many can do it properly
 
the base will be prepared on a separate line, but used on the day of production, then the portions produced and consumed within 2 hours ...
anything is hard to get right 45 portions at a time :)
it comes down to the recipe, if I get something out a jar, and empty ten jars into a pan, I'll have ten jars of stuff in a pan, if I have a decent recipe, I know enough to make it work on a large scale ....
 
Wes
for instance a common mistake that i notice (even here) is that they make way too many layers. that ruins it, because it's crunchy outside and watery inside
should be pretty crunchy everywhere
 
three layers is right ?
 
Wes
as long the meat/tomato layers are thin you can go up to 5-6 i think
 
I've gotta go out the door, breakfast service, if you could spend a little time writing down how you would do it at home, every detail you can think of about cooking it, and the recipe, I'll love you a little bit more ... I'll be back this afternoon sometime ...
 
Wes
5:39 AM
and tons of this en.wikipedia.org/wiki/B%C3%A9chamel_sauce. nobody wants to eat raw tomato
in fact tomato is even omitted in some lasagna recipes (we call it "white")
 
@JoeWatkins are you trying to become a chef from a hardcore C programmer?
 
Morning room
 
Wes
also boiled eggs in slices in it are important. not many add them, but they are traditional and imho very good
 
@Saitama actually I worked as a chef a long time ago ... my wife is manager of a hotel, they nearly failed their last inspection because the chef isn't qualified (or smart enough to be qualified) ... so I done the qualification, and will probably take over at some point ... right now I'm just focused on them not closing down the hotel ...
I'm not going anywhere, I'm a programmer ...
 
Wes
 
5:42 AM
lush
 
Wes
this seems a well done lasagne
 
I really have to go, will you spend some time writing about it for me please @Wes ?
 
Wes
the recipe? i'm not great with lasagne tbh :B i can ask a friend that has a restaurant
 
the whole thing, methodology, recipe, any detail you can think of ... if it came from a chef that mass produces it (on any scale), that's even better ...
before I cook it, I have to conduct hazard analysis (allergens, microbiology and so on), production process and so on, so the more information I have about it, the better job I can do of that ...
must go, lata all
 
Wes
\o
ok will try
 
5:46 AM
thank you, appreciate the time :)
 
Wes
5:58 AM
@JoeWatkins asked the friend if he can link me a recipe that looks legit to him, or to give me his
 
@JoeWatkins <3
 
6:32 AM
posted on September 17, 2017

New Cyanide and Happiness Comic

 
6:46 AM
Okay guys, if I don't need URLs in the form- mysite.com/controller/method, do I need to use one of the routers available in the internet?
 
Wes
people in here use fastroute, but you can build your own
 
@Wes My situation is that when I need to a specific url, it will be in the form of mysite.com/controller, and it runs default on the main function which does everything else in that controller. I don't need to do add the methods in the url for my case. How do I implement this with fastroute?
 
7:26 AM
.
 
 
1 hour later…
8:48 AM
\o
 
9:09 AM
!!lxr stream_select
 
[ /ext/standard/streamsfuncs.c#756 ] PHP_FUNCTION(stream_select)
 
9:24 AM
Hi all ! do someone know where to declare new discoveries ? and should be safe and no one will say thats mine or so
 
9:51 AM
Mail them to littlepootis [at] outlook [dot] com
 
10:10 AM
@JoeWatkins so the takeaway is - hiring competent people is hard in all professions
 
who knew
 
:P
 
Wes
10:28 AM
 
is that the matrix guy?
 
Wes
it's mickey mouse
 
no its kaneki ken
 
Wes
e cu cazzu è
 
!!google kaneki ken
 
10:30 AM
@Saitama kaneki ken
Search for "kaneki ken" (https://www.google.com/search?q=kaneki+ken&lr=lang_en)
• Ken Kaneki | Tokyo Ghoul Wiki | FANDOM powered by… - Ken Kaneki (金木 研, Kaneki Ken) is the main protagonist of Tokyo Ghoul and Tokyo Ghoul:re. Formerly,… (http://tokyoghoul.wikia.com/wiki/Ken_Kaneki)
• Afbeeldingen van kaneki ken - No description available (/search?q=kaneki+ken&lr=lang_en&dcr=0&tbs=lr:lang_1en&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwiOzffwgazWAhUCLlAKHYNuBsAQsAQINg)
• Kaneki's New Transformation, Sasaki Haise in Toky… - IMPORTANT PLEASE READ. The new form of Kaneki Ken, in the next season, T
 
gawd, I think I love this theme
 
11:17 AM
agh fuck, I the pain of changing password manager
 
Can anyone give me a nice nikic/fast-route documentation?
I seem to be lost
Or if someone could explain how I could integrate into my framework.
 
Have you read teh github readme? github.com/nikic/FastRoute the doc is teh readme.md
 
Yeah, I did.
 
and I am sure someone in here can help you with it
 
Doesn't seem to be something that can very easily be understood.
 
11:21 AM
Any specific area you think benefit from improvement?
 
@RonniSkansing $dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
    $r->addRoute('GET', '/users', 'get_all_users_handler');
    // {id} must be a number (\d+)
    $r->addRoute('GET', '/user/{id:\d+}', 'get_user_handler');
    // The /{title} suffix is optional
    $r->addRoute('GET', '/articles/{id:\d+}[/{title}]', 'get_article_handler');
});
Do I have to define every controller this way?
 
@CoderDudeTwodee It's up to you how you connect routes with controllers.
 
yes, you have to attach each route to a action, be that a function or a method
how you do it, is up to you as kelunik says.. its says it right there on the doc
The $handler parameter does not necessarily have to be a callback, it could also be a controller class name or any other kind of data you wish to associate with the route. FastRoute only tells you which handler corresponds to your URI, how you interpret it is up to you.
 
All my controllers have a main() function which is usually supposed to be executed.
 
Foo::class . "@main"
 
11:25 AM
Can you give me an example of how would be a route for something like mysite.com/{username} look like?
 
and what should it dispatch to?
$r->addRoute('GET', '/{username:\w+}', UserProfile::class.'@foobarMethod' ); // something like that
 
It goes to a Userprofile controller which looks up the username from the database.
Okay! Got it! Thanks @RonniSkansing!
 
cool, happy hacking (=
 
Also is there a way to load the routes from something like yaml?
 
yea
but will have to write it yourself (=
 
11:29 AM
Ahh, so I will work with the PHP version for sometime then.
 
I found for me, often the easiest format would just be PHP
like you could do stuff like
routes.php
<?php return [
   '/route' => controller::class
]
and then in another file loop over the values with $r->addRoute( ..
depends on how simple the dispatching is
 
So I am building this tiny little framework by assembling pieces from other places, so do I need to have a separate router.php in the src/ dir or maybe just put it in the public dir?
 
keep it out the public dir
the public dir only needs like the assets such as css/js/images
 
router.php being the route definitions for FastRoute.
 
and one index.php
nothing else needs to be exposed to the public
I would put it in either app/routes or just routes.php
 
11:33 AM
So index.php will include the ../bootstrap.php and bootstrap.php will include vendor/autoload and router.php?
 
depending on the size and complexity
yea you got it
 
Sure, thanks!
 
No problem
 
Another thing (noob question), other frameworks don't seem to have a public dir in their github, so does that mean public is only for testing and when implementing the framework and should not be a part of the framework itself?
 
Not sure on that, I think most frameworks have a public dir?
 
11:39 AM
Well I looked at Symfony, it didn't.
 
(= okay.. I am not totally sure about it, it's been a while sinced I PHP'ed but as I remember it, most frameworks has a "public" dir with a index.php which often loads up some bootstrapy thing
someone else in here might have a better answer
(looks at peeps in room)
 
Ahh, so I will have it. @RonniSkansing
 
(=
what password manager do you guys use? atm I have lastpass (yubikey had a yubi + lastpass for 1 year offer)... and I not feeling good about lastpass anymore.. so any feedback on what you tried/using would be really nice
 
keepass or rather keepassx
 
@Saitama yes. char *foo and char foo[5] are both pointers to char
 
11:52 AM
@Gordon thanks (= I would like something that syncs between devices and has 2FA with yubi though
was thinking about 1password, but seems it has no 2fa
 
12:04 PM
posted on September 17, 2017 by kelunik

- Made `ReactAdapter`'s constructor public so it can be used without Amp's global loop.

 
12:16 PM
One last dumb question, how should my public/.htaccess look like to implement fastroute?
 
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule . /index.php [L]
apparently.
@CoderDudeTwodee Though it might also need the script_filename passing through somewhere.
 
Ah, fast-route works for me!
 
Wes
@PeeHaa championship over
ferrari sandwich at turn 1 -__-
with verstappen in between
 
@Danack does that match root requests?
Also use [END] over [L], pretty much always
You also probably don't want/need RewriteCond %{SCRIPT_FILENAME} !-d
which costs you a lot of stat()s
oh and also, use nginx :-P
 
12:38 PM
@DaveRandom Aerys. :P
 
@Wes ugh
 
 Deprecated: Non-static method GreenTea\Controller\Home::show() should not be called statically in /var/www/GreenTea/bootstrap.php on line 33]
I am following patrick-louys/no-framework-tutorial.
Why is show being called statically?
call_user_func($handler, $vars);
Line 33
 
split the handler by :: => $controller->$method();
sorry I dunno what the tuts says
 
@Saitama What is it?
 
12:54 PM
a theme for SO Chat
 
Why does it have a -moz root element?
 
idk, that's what stylish gave me :/
 
@RonniSkansing uhh this is in my routes.php
 ['GET', '/', ['GreenTea\Controller\Home', 'show']]
 
or rather if you wanna directly in console, you can use gist.github.com/SaitamaSama/a3a56556792bc7bb70ab7df3fa3d253d
 
@DaveRandom ping
 
2:07 PM
did you see it? (please tell me if I'm being annoying)
 
2:34 PM
@PeeHaa pong
on the way out but I got 5 mins
 
suppose I have int foo = 1; outside a while loop like int foo = 1; while(baz) { ... }
now I tried doing foo++; inside of that while loop, but it results in it not being incremented...
ideas?
oh maybe not
prolly its something to do with strtok, nvm what I just said previously
 
@DaveRandom Will ping you later. First getting my poc to work
 
2:54 PM
!!urban poc
 
[ poc ] people of color, as in everybody except caucasians
 
:-S
 
proof of concept :P
 
@tpunt The indentation rules are weird imho
 
yeh I know I just suddenly realised that urban dic would define it differently, in a way that looks bad in the context of "First getting my poc to work" :-P
 
2:57 PM
Especially the parts about mixed tabs & spaces and the text not being sufficiently indented
 
:)
 
I would make all of that an error
The indentation before each line and before the ending delimiter should be the same
@tpunt The example in the BC section is incorrect, or at least the before + after code will not give the same string
 
3:29 PM
i.stack.imgur.com/5gW8p.png @Wes look what I am working on again :)
 
4:00 PM
@bwoebi Could you check out github.com/amphp/process/pull/15 and debug the segfault, please? :)
 
4:12 PM
Hi, I have a code like this - pastebin.com/YPyFh78w
I've been trying to Step Over the usort() function in NetBeans, but it does not work
I start the debugger but I cant get access to the Step Over and all these other things like this, I am not sure what I am doing wrong, but it does not work
I would be trying to see how this function behaves (I mean, are there steps of sorting this and I can see it, or does it get done in some kind of background and I am only able to see the final result, at the best case)
I am trying to understand the example 100%, somebody told me to Step Over it with a debugger, but I cant get it to work. I also have phpStorm, but I am new to this
simple code, simple thing that needs to be done, I've been stuck on it for like an hour and a half
The "Step over" icons in NetBeans just will not show (are not clickable), I started a whole new project and it still does not work
I did not want to ask here, I've been trying, but for some reason it does not work
I would like to see the steps of sorting, I am not sure if this is a possible thing
$a = array(3, 2, 5, 6, 1); - we are sorting this
it takes - 3-2, 2-5, 5-6, 6-1, and then it sorts based on -1, 0, 1
$a and $b pairs these are, $a stays the same, and $b gets moved down if the function returns -1, stays in the same place if it returns 0 and it moves it up when it returns 1
I am not sure if I can see this moving
every step of this, to see how this works
does the $a array change, temporarily, or does it get done in the background and I am only able to see the final result?
 
4:27 PM
gmp-sign parameter must be integer string – #75217
 
never knew that 'shoegaze' was a music genre
 
4:41 PM
@NikiC I agree these cases seem rather odd. I simply opted for a forgiving syntax in the end, though, since introducing arbitrary limitations didn't seem that appealing to me (plus these semantics are what I am familiar with from Elixir). So you would emit an E_WARNING instead?
@NikiC Very true. I've updated it now, thanks! (The example actually looks better for it, as well.)
 
5:00 PM
evening room
o/
\o
 
@bwoebi What does uv_poll_init_socket(): unhandled resource type detected. mean?
 
You are a PHP dev or Frontend Dev. You want to work in Switzerland. Talk to me, I know a great company that's hiring.
@samayo ^
 
5:22 PM
@Gordon do you happen to know which company it is?
 
@kelunik you're trying to pass a resource to uv_poll_init_socket() it doesn't know how to handle… what type of resource are you passing?
@kelunik travis-ci.org/amphp/process/builds/276562235 < where's the segfault?
 
do you think there is a way to get "under the hood" of usort ($array, value_compare_func) - see how it works / does the sorting?
step by step
within the php level, or probably no way?
debugging / stepping into could show the steps?
 
5:44 PM
@MadaraUchiha you like my widow play? xboxdvr.com/gamer/TandemMeerkat62/video/36578098
 
@AaronSmith you should be using "step into" or "step through" not "step over". Also put a breakpoint in the function you're passing to usort.
 
thanks, this will be the first time when I will be doing that :)
I am looking at one of the examples from the w3resource.com, still
it is a good / not bad one, I think
the code never gets to the $b == $value comparison, I think
it looks like the "break" in the "$a == $value" part of the code gets applied 100% of the time with these values
I am wondering what is the purpose of the "$b == $value" now
but this is ok, this is my work and what I personally need to figure out
but the php exercises from the w3resource.com are good
I was trying to see if I can break down the usort() / get under the hood
possibly with this debugging part
step by step, does it move the pairs after every comparison, or does it wait until the end and outputs it all...
this is what I am not sure about
 
Have ever thought about thinking things through in your head, to form complete, coherent sentences, rather than just brain dumping each line?
 
it actually gets to the "$b == $value" comparison a couple of times
yes, I do that, but I spend like two hours or more with no results, so then I would come to here
I am not asking right away
 
Anonymous
@Gordon thanks
 
5:54 PM
I am understanding this aspect and what people have been saying here
too me this is like 3 days working on this
some reading about phpStorm and then figuring this out
3 or 4 days at this point
 
Anonymous
I was half a asleep when I read what it was about and my brain just switched to full attention mode in one second @Gordon
 
im so confused my site downloads the page twice
 
6:17 PM
@bwoebi No idea, the error message should probably say that.
 
finally fixed it
 
And pattern matching is booted up :)
 
$r->addRoute('GET', '/{username:\w+}', UserProfile::class.'@foobarMethod' ); // something like that
How do I retrieve the username variable?
FastRoute ^
 
check the doc
case FastRoute\Dispatcher::FOUND:
        $handler = $routeInfo[1];
        $vars = $routeInfo[2];
        // ... call $handler with $vars
        break;
check the $vars
 
6:35 PM
Ahh, silly me
Turns out, I love FastRoute
 
7:36 PM
!!lxr proc_terminate
 
[ /ext/standard/proc_open.c#244 ] PHP_FUNCTION(proc_terminate)
 
00:00 - 20:0020:00 - 00:00

« first day (2528 days earlier)      last day (2430 days later) »