« first day (2412 days earlier)      last day (2536 days later) » 

Wes
12:01 PM
i mean for sure everybody wanted to do new things, but they only needed that push to start doing them
 
ah fuck
no idea
I have not had time to try it
wasted most of my free time on palladium
 
:p
 
!!dad
 
Last night I dreamt I was a muffler I woke up exhausted
 
Anonymous
12:09 PM
@DaveRandom you seen any troops yet?
 
what's going on in Manchester?
 
@DaveRandom you have any thoughts about github.com/PeeHaa/AsyncTwitter/issues/12?
As in: just pull the comopser requirement or drop the ints?
 
Anonymous
@Tiffany it's country-wide really. Our threat level is at critical which means the army will now be guarding areas of interest
 
@JayIsTooCommon All that crowd around @Jimbo's mom
2
 
Anonymous
hahahaha
 
Anonymous
12:16 PM
get it @Jimbo? Because your mum is an area of interest. Why? Because she's hot, that's why.
 
@kelunik and uh … can't signals interrupt the sleep in a way that a same process may end up generating the same uniqid twice?
 
@PeeHaa IMO they should be explicitly treated as strings
You are never going to do math with them, they are identifiers, not numbers
 
Valid point
Also trust me I have done meth with weirder things
 
dat typo
 
I am not sure it is
 
12:30 PM
You sure? :P
Looks like your streaming work is at phptek @DaveRandom github.com/aenglander/amp-twitter-bot
Great. I can blame you if it blows up \o/
brb writing a disclaimer blaming dave
 
> The Twitter Stream Portal will start a website that serves up a Twitter feed to multiple browsers through the magic of Web Sockets.
Nice they have Aerys in there too
 
It was way too much work to build a 5.6 Twitter client for streams. So I went with requiring PHP 7.x.
That just fills me with pride of my work :P
@Jimbo what are you running at trivago?
 
Shit tonnes of Kafka streams, rabbit, firebase shit, you name it
 
I meant what php versions are in use currently?
Oh wait! I can name it? Really?
Can I name it pleeease?
 
7 everywhere
 
12:39 PM
\o/
 
@PeeHaa /me goes dark
 
Too late. Gave them your mail
 
Visiting us1.php.net/manual/en presents the php.net home page – #74644
 
@PeeHaa With Amp v2 you only need a normal HTTP request and a request factory for that. :D
 
What do you mean?
 
12:50 PM
@JayIsTooCommon I'm living under a rock. What happened?
google to the rescue, just search "uk" and it tells me
 
Anonymous
how on earth do you not know this xD
 
muricans... :P
 
I don't watch TV, and I've stopped browsing reddit regularly
 
I support this policy
 
Wes
you don't read news? :B
 
12:54 PM
but I live under a rock now.
not regularly
 
I am unable to ask questions so I will have to ask here
 
Reddit's actually where I got most of my news. I haven't used a TV in seven years.
 
Thanks for throwing in your 2 fake uk cents <3
 
Anonymous
@Tiffany just so you know. Obama isn't there anymore, I'd suggest you carry on hiding rather than see the replacement.
 
That's partially why I've chose to live under a rock.
 
12:56 PM
:D
 
Anonymous
:P
 
Apparently we're trying to go to Mars within the next decade or so?
 
Anonymous
@Tiffany *escape to, yes
 
@OtávioBarreto Pass the page / offset
 
Anonymous
12:57 PM
1 message moved to Trash can
 
Anonymous
@OtávioBarreto pastebin pls
 
Wes
by the way. we have a word that not even americans have. it means literally "land on moon" and it has only that one only meaning. isn't that cool? :B
 
or gist.github.com
 
Anonymous
^
 
Anonymous
12:58 PM
@Wes is it 'Moonlanding' :B ?
 
:B
 
Probably munlandi or something like that :P
 
Anonymous
hahaha
 
Wes
@JayIsTooCommon that's a cheat
 
But it only works with the correct gestures otherwise it means fuck off
 
Anonymous
12:59 PM
munlandimeatballintoyouface
 
Anonymous
also means fuck off
 
Wes
you should know that we don't know the word "moon". it's luna
 
lunaland
 
Ah damnit
I knew that
 
Wes
ever wondered what's "lunar" from? :B
 
Anonymous
1:01 PM
lunaDeLandi
 
Sounds like a Disneyland knock-off for the moon
@Wes Latin? :P
 
Wes
indeed
 
Anonymous
 
Wes
@Tiffany that's still a cheat. the literal translation would be "i to-moon, you to-moon, he/she/it to-moon"
allunare is the word tho
 
I was more or less saying it just to say it. I like how it rolls off the tongue.
 
Wes
i don't know how these verbs are formed but they are so beautifully efficient. we have a lot of those. for instance "afferrare" means "grab the ferro" ferro is ancient "slang" for weapon/tool and means "iron". in english would be something like "i gettiron, you gettiron"
today you learned :B
even if you didn't want.
 
:P
 
I'm reminded of WH40k so much. Mainly because the nobility's language is Latin.
 
Wes
:B
 
sounds like I need in ajax to retrive the next 10, not the first 10 but I am not sure how it's done
 
1:13 PM
I gave you the answer...
 
anyone can help with woocomerce?
simple question
 
Can anyone recommend a DDD consultant that is not Mathias Verraes (he's booked out :()?
@Ocramius?
 
Yeah he's here right now
Give him a shot, his ES + CQRS workshop has been pretty epic so far
Basically, he can google shit and bullshit for the planet
Which is why he's a consultant!
 
I'm just scared that he'll try to sell us on doctrine :D
 
Nah he already told us that it's a load of shit and to avoid it at all costs
 
1:27 PM
WannaCry update! The number of blog posts about WannaCry now exceeds total infections. I've registered a ton of domains to make it stop.
 
@Jimbo doing consulting/a workshop?
 
@DaveRandom urgh, same with the Kotlin hype
 
that has passed me by entirely, apparently, no idea what that even is
 
@DaveRandom a lang developed by jetbrains (jvm compatible), Google has announced that it will add it as an official first-class language for android development.
 
can someone reccomend good rooting package for composer
 
1:36 PM
routing?
 
yes
 
+1
 
Because I don't think metasploit supports composer :P
 
i tried it, but cant make it work for some reason
always 404
 
1:36 PM
@PeeHaa hahaha
 
@BrightSun i doubt thats the problem of fastroute ;)
 
i know, but mmy apache looks fine, cant figure out problem
 
Not fishing for upvotes here people, but you know what to do reddit.com/r/PHP/comments/6d20cg/…
 
@BrightSun its used in this tutorial, maybe that helps?
 
wink wink nudge nudge
 
Anonymous
1:38 PM
nice, I like the site
 
@PeeHaa from one upvote to "THIS POST CHANGED MY LIFE", what are you looking for? :D
 
@PeeHaa what you are really after, is get honest people in trouble by showing Pornhub's icon on their browser.
 
Anyone knows a good article/tutorial/walkthrough for setting up proper development/homologation/deployment environments on a agency?
 
@PeeHaa marketing tip: you should link to /r/php and ask people to upvote from there. Reddit will think votes after coming right on the link are suspicious.
@FélixGagnon-Grenier how do you know pornhub icon?
 
@Patrick :D
 
1:39 PM
@FlorianMargaine are you sure? seemed to work on my last post
 
@FlorianMargaine oh. TIL /me is reddit noob
 
@FlorianMargaine I don't know what I wrote, I had a moment of absence
 
@LucasBustamante didn't gitlab have such a post?
 
@LucasBustamante depends if you want me to spam or not.
 
.... shit, that might actually have been the only time of my life I could have pulled a "out of professional interest", and it would actually have been truthy. I failed.
 
1:41 PM
@HamZa @FlorianMargaine git flow, perhaps?
 
@FélixGagnon-Grenier you work for mindgeek?
 
@FlorianMargaine nah. I was taking a stretch with "exploring for a job"
tbh, I start to miss php
 
a stretch
 
exploring
 
1:43 PM
@LucasBustamante you might like this: about.gitlab.com/2016/11/14/idea-to-production
 
well, tried to copy entir thing, this is what im getting
method - string(3) "GET" string(20)
Path - "/my-site/hello-world"
and output - 404 - Page not found
 
In my last company we would use jenkins, gitlab and docker
 
$dispatcher = \FastRoute\simpleDispatcher(function (\FastRoute\RouteCollector $r) {
$r->addRoute('GET', '/hello-world', function () {
echo 'Hello World';
});
$r->addRoute('GET', '/another-route', function () {
echo 'This works too';
});
});
 
@HamZa I'll take a look, thanks
 
@BrightSun well... compare this string to your routes...
 
1:46 PM
$r->addRoute('GET', '/hello-world', function () {
 
that's what you get for using xampp
 
it should work
 
no
 
where is the problem?
 
Path - "/my-site/hello-world"
Route - "/hello-world"
why are you developing in a subfolder? will your app be in one?
 
1:48 PM
well, its weird, worked, ty
though it should remove base path by default
 
Btw am I the only one who kind of hate being contacted by recruiters. I get the feeling they know only some words about some technologies. You tell them yeah I know Java but I'm not looking for a job in Java but they still insist because presumably they have a client/company that needs java devs.
 
i still dont get it, how am i supposed to put out my routes, it should by default remove site name
 
@HamZa What you are saying is you are not a rockstar ninja 10x devloper?
 
lookg like package need some tinkering
 
@BrightSun no. you should stop using xampp...
 
1:50 PM
its not xamp, my-site its a name of site
 
what is the problem in

$sql = "SELECT * FROM follow WHERE following = :user ORDER BY follower ASC LIMIT 10 OFFSET :offset";

$stm = $conexao_pdo->prepare($sql);
$stm->bindParam(':user', $userpage);
$stm->bindParam(":offset", intval($offset), PDO::PARAM_INT);
$stm->execute();
 
@HamZa It's really flattering though
 
off set notworking
 
3 messages moved to Trash
 
@BrightSun its a subfolder, don't use a subfolder - probem solved
 
1:50 PM
3 messages moved to Trash
 
Bot abuse FTW \o/
 
what is alternative to xamp?
 
I saw that!
 
lamp
lol
 
1:51 PM
i use wamp actually
 
well I probably am compared to the average student at my university :P
But I feel like I can manage to find a job on my own. I don't need a recruiter who's only looking to make deals (which is understandable)
 
Yeah I know. I was trolling :P
 
I got my current job through a recruiter. He actually knew stuff about PHP :o
 
you bad boy :P
Btw, I'm almost done with this HBO shizzle. Hopefully will finish this summer :P
 
Unlike the other hundred who tried to sell me on jobs
 
1:53 PM
@Patrick was he a member of room11 :D ?
 
@HamZa And then what?
 
hm, i used laravel before and routes were exactly like this, just gonna add base url to a package, should work fine
 
Full on work?
brb smoke
 
@PeeHaa probably, not really motivated to do a master
 
@HamZa no
 
1:53 PM
Today and tomorrow, @Ocramius is giving workshops to the @trivago_ES @trivago_tech team on DDD, Doctrine and Event Sourcing / CQRS! #php
 
@HamZa Yeah get that
 
someone can help? my pdo offset is not working
$sql = "SELECT * FROM follow WHERE following = :user ORDER BY follower ASC LIMIT 10 OFFSET :offset";

$stm = $conexao_pdo->prepare($sql);
$stm->bindParam(':user', $userpage);
$stm->bindParam(":offset", intval($offset), PDO::PARAM_INT);
$stm->execute();
 
@OtávioBarreto you might want to read the chatroom guide first...
 
can someone make sense of this?
"The declaration of variable is helping jquery to differentiate the libraries as most of the libraries using $ sign and by assigning a unique variable system working with unique variable instead of jquery libraries which might have similar functions."
 
@OtávioBarreto I believe OFFSET by itself is not actually valid syntax dev.mysql.com/doc/refman/5.7/en/select.html
 
1:56 PM
@PeeHaa for some reason, I expected a working php example. Not sure why
 
it seems it is in the same optional group as LIMIT, and comes after, so you would first use LIMIT 10 OFFSET 5
or, use the shorthand syntax LIMIT 5, 10
 
@Jimbo and tomorrow, you will be euphoric to implement all the things he talked about. and the day after everything will be broken ;)
2
 
@Gordon Actual genuine concern. All makes sense, as soon as we hit a problem, we're fucked :P
 
@HamZa I am working towards "use amphp and use it like this" so it's coming
 
@FélixGagnon-Grenier What do you mean?
 
1:57 PM
Nice!
 
@OtávioBarreto I mean that I am stupid and did not read correctly your post
3
 
@Jimbo grab a copy of IDDD for reference, nice reference if you don't know how to do something
 
@OtávioBarreto random thought: add explicit type for ":user" if it's an int?
 
user is a string
 
also define doesn't work? Have you tried to see if you get an error? Which one?
 
2:00 PM
@OtávioBarreto what does, "not working" mean..?
do you get a error, wrong result .. ?
 
no errors but the OFFset simply not select the next 10
 
does it return anything?
 
@NikiC In a php extension, I want to open a unix domain socket for communication and and save this descriptor for writing to it. Since it is going to be a SOCK_STREAM, I'm protecting it using pthread_mutex. So in this case, can I use it as a pure global variable or should I use it as a ZEND_MODULE_GLOBALS_ACCESSOR
 
@Patrick I actually bought it, haven't read it yet
/me lazy
 
2:05 PM
@JAamish doesn't the streams layer deal with this stuff for you?
 
@DaveRandom I'm having a separate go binary to which I'm sending all the details from my extension, which will be listening on the unix domain socket
 
Hello, can anyone help me for member position in query using CodeIgniter ? I tried with my query but my query does not gives position/rank.
 
I don't know what is wrong
 
@JAamish fine, but you can still use the streams layer to create that unix socket. Look at php_stream_xport_create()
 
Wrong information on the german page – #74646
DateTime::format() and DateTimeInterval %i %s Leading Zeros and Documentation – #74645
 
2:11 PM
@OtávioBarreto do you even have enough rows?
#just random guesses
 
only 2 rows
but it should load the next 1
 
so, after reading correctly, I think, a few guidelines, as it's hard to tell just with that code:
- Why bindParam? it doesn't change anything in this particular code, as the execute is right after, but it could/should be bindValue if you have no specific reason to use bindParam
- no need for intval(), the PDO::PARAM_INT will cast the value to an int already
- are the values really defined, and contain values? if they were not, or if they're null, it could result in the query executing, but not returning anything
 
@DaveRandom Nice. Let me check this. I suppose it will also work with unix sockets.
 
@JAamish yeh, you just pass unix:/path/to/sock
check out the stream_socket_client() implementation
!!lxr stream_socket_client
 
[ /ext/standard/streamsfuncs.c#93 ] PHP_FUNCTION(stream_socket_client)
Specific Type generates fetch error – #74647
 
2:19 PM
> Me: Please could you also point me towards the documentation that describes the data that would be delivered to the hook end-point?
> support person: Not at present, but if you use a service such as https://pastebin.com/ and set up a hook to it, you'll be able to check the payload and also see exactly what's sent in the context of your own account and events.
 
@Jimbo did you guys already do DDD before the workshop or are you starting from scratch?
 
@Danack wat
 
@Patrick Some people tried to do DDD, which they thought was just a directory change in your code. I learned loads, which I don't like yesterday. Like the aggregate root has everything below it
No more service layer operating on anaemic domain model (parameter bags as entities basically)
Even though I got a perfect SoC that way
Problem is, most people do a lot of CRUD, with a tiny bit of business logic, so this stuff is only seriously useful when there's a lot of business stuff and not just a simple CRUD app
 
What I always wondered. Are there really that many plain crud apps out there?
I can't imagine them being much useful for just about anything
 
@Jimbo yeah that's just procedural programming. it can work too I guess
 
2:29 PM
Thanks @DaveRandom and @Jeeves. I will check it out
 
@JAamish You're welcome!
 
@PeeHaa where the app is basically just adding a little validation to the db tables? yeah seen lots of those
usually agency work
 
@PeeHaa Lol. CRUD apps, actually apps that should have been desktop CRM, have been what I've been learning from, and living off, since I started "programming". Every shop, that actually does work, having a payroll, selling stuff slightly more complicated than toilet paper, has need of an CRUD app.
 
@FélixGagnon-Grenier huh? I would say they need more than a simple crud app
 
@Patrick Well it's OO until you basically leave what the FW gives you and then sure, procedural in a class
 
2:31 PM
Maybe it's just me having done different jobs
 
@Jimbo i like to think of ddd as oop done right
 
@PeeHaa a crud app can be not simple? Maybe I mixed stuff together and called that crud app.
 
@PeeHaa yeah I avoid those jobs like the plague
 
@FélixGagnon-Grenier I think of a crud app basically as what we used to do with msaccess
 
like, for me a crud app is a custom cms
 
2:31 PM
user image
2
This is an amazing exchange
 
I don't even know what msaccess is
 
:P
 
but old people in some companies have been referring to that during development, with some kind of love in their eyes
 
Think a broken database and VB
Their child would be msaccess
 
@FélixGagnon-Grenier if you just store some data in the db, I guess. if you have lots of business logic like what happens when you publish etc, then it's not crud anymore
 
2:33 PM
Basically that ^
 
ok, yeah, the business interactions between different content creation were essentially the app
 
just use a hook system on CRUD like wordpress does :_)
 
@HamZa It's spelled CUNT what WP does
 
hahaha
 
Now I want to make that acronym work
:P
 
2:34 PM
me too
do it!
 
@FélixGagnon-Grenier I've seen apps that started out as CRUD and then added pieces of business logic in between -> horrible mess
 
I suck at naming though :(
 
DDD puts the business logic first
 
zend_read_static_property returns &NULL for extending classes – #74648
 
would that I could have had the experience I have today when starting on that job.
I am somewhat fond of the code though, it features my first terribad god object that mixes every concern there was in the app
It was basically a ViewControllerServicingModelFactoryEntity
 
2:37 PM
@FélixGagnon-Grenier :P
 
@kelunik pgsql was the original v1 lib that @DaveRandom was working on, while postgres is started as a port of the lib I wrote for Icicle. postgres is the v2 compatible lib that should remain, the other should be removed.
We can call the lib either pgsql or postgres, makes no difference to me.
@kelunik Yes, that's much better. :-D
@kelunik I'm with @bwoebi… I just can't take that font seriously. It's got a comic sans quality to it I can't get over.
 
If I may make a suggestion
Sheer awesomeness cc @Wes
 
Funny … Wingsdings… right?
 
yes
think about it
Those kids with their pictures in texts nowadays will love it
 
meh … E_NOT_ENOUGH_EMOJI
 
2:45 PM
!!should I but a 600$ dual socket new motherboard and screw money so that I can update the workstation in the future, or go for the least expanse build?
 
You should but a 600$ dual socket new motherboard and screw money so that you can update the workstation in the future,.
 
also, maybe a bit zalgo please @PeeHaa
 
I knew something was missing
/me calls cthulhu
 
@any chance you can do it in #hireoglyphs from the ancient egypt? :p
 
I thought that was what emojis did
 
2:50 PM
!!issue Oxford commas are not stripped before periods in !!should-like commands
 
@bwoebi Is that what you really want?
 
@kelunik @bwoebi Can we agree on either using or not using combined use-statements?
 
@Trowski What are combined use-statements?
 
@Trowski I don't think we can… I'm strongly in favor, while Niklas is strongly disliking them...
@PeeHaa group use
 
Ah
 
2:54 PM
@PeeHaa Yes, sorry, s/combined/grouped
 
never seen those been used in the wild
 
@Trowski No need to be sorry :)
 
@bwoebi We have a mix of using/not using in amp libs right now… I'd like to have one agreed upon CS rules file for the whole project.
 
I know my opinion doesn't really matter. But I favor burning them with fire
:-)
 
+1
 
2:57 PM
PhpStorm doesn't get along with them… so that's why I was fine with killing them.
 
@Trowski if you can convince Bob.
 
@kelunik you mean, if he can convince you.
 
I do appreciate the space saving of group-use, but it requires I manually manage them…
 
@Trowski and I really don't want to do that
 
@Trowski A small price IMHO.
I think it's totally worth manually managing it.
 
2:59 PM
@bwoebi What is the gain?
Honest question
 

« first day (2412 days earlier)      last day (2536 days later) »