« first day (2713 days earlier)      last day (2460 days later) » 

15:00
@Tschallacka Is this an automated response?
donkey?
what?
I'ts not automated, but if your question to me is an automated response, I need to ask you is it automated? so I can answer you if your question is an automated response
This sentence is false.
"if your question to me is an automated response, I need to ask you is it automated?" - but if it is an automated response, the you don't need to ask, because you know
15:04
@Tschallacka IllegalArgumentException
lol
but if I don't ask i'll never know for sure
but I could do a branch prediction I guess
i'll go for the branch that @mega6382 is a robot
will have to rewind if the branch resolves false :-P
@Tschallacka IllegalStateException
xD
@mega6382 what does this say? i.imgur.com/ggvXI5l.png
7
@Tschallacka UnsupportedOperationException
heh. I wonder if reverse turing tests are a thing. convice people you're a bot
15:11
@MadaraUchiha Just don't think about it
@Machavity This guy gets it!
@Tschallacka Hey, screw you man, I love breathing oxygen.
ah, I should have gotten that... I just finished that game 3 weeks ago
posted on March 21, 2018 by CommitStrip

@salathe Had a really interesting question about the password_hash docs you might want to look at. Docs might need a tweak but not sure
15:19
I hate it when i'm victim to myself. I wrote a new framework for rendering stuff because I had to integrate a static html frontpage site with the output of an aspx site whilst grabbing data from a framework. Right now I have so many layers of caching because my boss wants to see green above 85 numbers at google pagespeed that I don't even know anymore where to untangle it. When I try to untangle stuff breaks or stops rendering alltogether.

Had to revert a days of work because the de-entanglement failed. was hoping a quick remove this and replace by that, a lot cleaner solution, only to fi
(see full text)
oh well, somewhere this summer I get to rewrite everything.
15:33
@PeeHaa how'd someone get that?
git question, I'm trying to stash a few files so I can checkout another branch. I'm doing git stash branch dev iOS/Mobile.xcodeproj/project.pbxproj and git says iOS/Mobile.xcodeproj/project.pbxproj is not a valid reference. I'm typing the exact file path of the file I want to stash. What's wrong?
(I'm typing what it says from the Mac because I'm logged into SO on PC, but I'm 99% positive there isn't a typo)
*What's wrong, or what am I doing wrong?
oh... ... :| nevermind
@Tiffany Isn't it just git stash save "My hands are typing words"?
@Machavity it looks like I have to name a stash, I think that's what I'm doing wrong.
maybe
15:47
@FélixGagnon-Grenier dirname(__DIR__) isn't the same as dirname(__FILE__) ;-)
@FélixGagnon-Grenier equivalent to dirname(__FILE__). I assume that is to go up one level
right, my daily reminder that I can't read
thanks ;)
dirname(__DIR__) renders /foo/bar/baz/ to /foo/bar
@Machavity I figured it out
15:51
@FélixGagnon-Grenier dirname(__DIR__) is like dirname(dirname(__FILE__))
sorry for multiple pings. :)
that's ok. I get how hard it is to let markdown win ;)
I was going to pile drive you also @FélixGagnon-Grenier, but it appears the others have done it enough.
knock yourself out
I'm not quite sure I got it yet ;)
@FélixGagnon-Grenier for good measure, the description of dirname function: dirname — Returns a parent directory's path
15:57
hehehe. ok, I believe my thick skull finally got pierced :)
@kelunik iiuc extending response so that it generates json instead of adding the application/json centent header?
@FélixGagnon-Grenier Calling json_encode and setting the header, yes.
ok... I never felt the need to extend responses or requests. for json, I manually set headers and content and I like it that way.
@Danack It happens somewhere in larevil's querybuilder
@kelunik Isn't it weird to want a JsonResponse object? I mean, you're trying to abstract HTTP. Creating multiple abstractions for what was a pretty defined standard seems like a bad idea.
Also, I have no idea what I'm talking about, I'm just asking for my own sake.
16:02
@kelunik What about adding a method for json? instead of having to extend the class or whatever.
@Allenph The only reason to use new JsonResponse is because people are used to create things with new.
That doesn't seem like a good reason to me.
@mega6382 You can just create your own factory. The class won't care about JSON or any other type.
@mega6382 Then you're carrying a method around which may not get used.
Well it will be like 4 lines or so, but sure.
16:04
Yeah, but why break the rules for no reason?
I was going to comment on that repo but you're all actually contributing to GitHub. I need to start doing that.
... shit. I misdirected the thread. Users should not be able to modify the behaviour of Request and Response object, as they are critical to the function of the server. I think.
alternatively, maybe there could be a Response interface, a proposed default response, and leave the possibility of specifying a custom Response object when creating a server?
I feel like the abstraction for different requests should be higher than that.
Because at the end of the day the output is HTTP. The response object should represent an HTTP response.
user924016
You could make a request/response class without final... extends them on a implementation and make that final
user924016
leaving the core class to anyone who have a use for extending
user924016
16:12
=p
good morning all. In the PHP docs for php.net/manual/en/gettext.installation.php, it says that to get the functions (e.g. dcgettext) one must compile PHP with the correct flag. However I'm using the official PHP docker images which allows you to install extensions, but not change compile arguments. Any idea how to get gettext working? It's debian based
@RonniSkansing I don't see a reason, as it's mostly just a value object without behavior.
user924016
I agree, I do not see a reason either, but if you want to leave it open but final by default, that's a option. But meh just sounds boilerplate weird
So, its going to be final?
hello
16:17
oh wow, master is far from 0.7.4 ;) I was wondering why I don't have the Amp\Http\Server\Response classes.
@kelunik Why do you want to make it final to begin with?
!!welcome Tsea
Welcome @Tsea, please read the Chat Guidelines
@mega6382 thank you
16:25
No, don't final all the things
If you final all the things, you'll have to interface all the things
And that's stupid
Why? So you can mock the interface and not the concrete in your tests
Wat @Jimbo??
@Sjon Somehow 3v4l.org/QM4ao#output is broken.
Has the time come?
Do we agree @Jimbo?
I must be wrong
@Jimbo No, VOs don't need an interface and can be final.
@Jimbo Yes, final all the things.
Final vs non final is like gpl vs mit
- Pieter, just now
16:31
The fact still stands - everything I final I have to have an interface for. I'm not going to interface everything. Fully auto DI goes out the window for one thing
@Jimbo You interface VOs?
@kelunik Should be used as 3v4l.org/WqlTl
@mega6382 I know, but wanted to see what PHP outputs in that case.
Value objects can contain very simple logic
Like all capitalising that string you're passing in, btw
@Jimbo That's fine to be final then, no?
16:37
@kelunik Ah, I tend to make them immutable as they're super easy to. So sure, no problem with them being final
But that's not "all the things" though :D
@Machavity It could well be wrong (or right, but confusing). I've pointed out that the docs are editable in the comments for that question, or if you want to take a stab at it? :)
@salathe I would, but they raised a good point: is the parameter in seconds or milliseconds? Neither the docs, nor the RFC make that clear
16:54
Do you have the problem, even when you have a basic project with only a few things in it?
You solved it.
I think so
Woop!
I had got this error ... last week, and fixed it Monday by staging changes and committing to git. I just noticed that I have unstaged changes... so going to take care of that first
Finals and me don't get along. Sometimes you just don't want to pollute a component with a ton of unnecessary interfaces, but you can't mock final classes.
@everybody is there a theme for netbeans like this? img.devrant.com/devrant/rant/r_314526_9xsiw.jpg
16:56
!@#$ errors are still there
Man, Facebook and YouTube are getting real censor-ee.
my fuckthisshit-meter is almost full
@Tiffany Xcode still?
17:17
yo phomies
!!urban phomies
whatchoo talkin bout willis
Is that not the right command?
I guess he meant homies
I thought maybe it was some weird British thing.
17:21
It just might be cause @JoeWatkins is a weird British guy ))))
you're weird ...
phomies => php homies
Some guy at work was making a joke about buying a domain in Slack.
He said he wanted to buy it.
So I bought it.

thisisnotthelongestdomainnameintheworldthisisjustatribute.com
hey guys, any experience with Drupal?
Great people in php are set but is php better than java (for example), python, or javascript for web development?
17:37
What are you asking?
@EliaMelfior YEAH, DEFINITELY. ;) ;)
@Allenph "Creating multiple abstractions for what was a pretty defined standard" - the abstractions can be simpler....
@Allenph As a career path, is Drupal viable? and also, is php dev as a career better than the alternatives..
People who are great with php will have great careers i'm sure, but on average
@FélixGagnon-Grenier doesn't that get boring, doing it in every place where it's needed?
Yes. I'll then create a getBuildJsonResponseStep($content, $code) or something
17:41
@EliaMelfior Its all relative.
@kelunik if someone can put a bit of code somewhere to convert/copy from their own response type to the real response object, then sure why not.
that function will encode the content and set the header
@mega6382 indeed
@FélixGagnon-Grenier meh. I like the specific type as it makes it trivial to test.
17:43
Well this should go well
3
Q: What security risks are there in allowing someone to upload PHP?

Michael dLet's say that a partner wants to upload PHP to my apache server. What kind of mayhem could be caused by this? Which PHP parameters pose threats? If those PHP parameters are fully disabled, would allowing PHP to be inserted on my servers then be safe? These are some PHP parameters that I know o...

@Machavity It's really secure, no problems at all
@Machavity LUL
@Danack What do you mean?
@EliaMelfior Pure Drupal is a bad idea. JS and PHP are both good bets.
@Machavity Using an application server solves that problem.
More JS right now. If you're not planning on going to college.
@Machavity Rofl.
“many client-specific interfaces types are better than one general-purpose interface type.”
17:52
Are there any good ways to approach transaction management in the service layer?
Probably thinking into it too much, but DAOs could be from multiple sources, some not inherently transactional - that seems like a pain to even consider
In reality everything is stuck in a transactional DB.
- Installing amphp/http-server (dev-master f8bfc00): Cloning f8bfc00099 from cache
What does that mean? I don't think I've downloaded it yet. what cache?
I mean, I'm aware of the local composer cache, I just thought it was.. a local composer cache.
@Allenph the bane of me, apparently. But I just finished reading book 3 of Phantom Blood (JoJo's Bizarre Adventure), so I'm in a better mood.
@FélixGagnon-Grenier Should be, right? Always assumed it's a global cache for that device
hence, my confusion. I guess I did run the install somehow before.
@Danack I suppose, but I don't think this really applies to that case. You could say the same thing about any domain object configuration.
18:04
@Tiffany We sometimes call this room JoeJoe's Bizarre Adventure (Book 8: JoeJoe vs UTF8)
@Machavity not JoeJoe vs PHP?
or somethingsomething timezones
Has anyone ever attempted CQRS in PHP before? I have some conceptual questions about the write model.

It seems the write model will need both setters and getters so the mapper can read it, but I want to avoid the user being able to use it as a CRUD model because it's definitely not.
Or maybe that limit is imposed by the data mapper...hrmm.
@Tiffany That's only when he fights against Apache, the tarot card of eminent pain and segfaults
rofl
then in part four, the whole tarot card idea goes out the window
and hamon is mentioned maybe once or twice
Yeah, the series can't settle on a mechanism for anything
18:10
the arrow is retconned for part three
shrug, objectively, it's not the best, but I still love it, even with its flaws
@Allenph if you're interested: stackoverflow.com/company/work-here/995870/…
Wes
Wes
18:36
need to buy a new car was running out of oil again
as my car literally runs on oil
i am bit tired of the maintenance. need something normal :B
for some reason, I can't see you wanting anything normal
Wes
Wes
i always had weird or ridiculous cars yes
@Jimbo good suggestion on trying a brand new project, I get the same errors when I try to build it
so now I'm getting somewhere
Wes
Wes
or maybe i should try buying a new oil sensor
@Wes like your car runs out of oil in between changes?
and how frequently do you change your oil?
Wes
Wes
18:50
my car literally burns oil as it burns fuel. the oil is injected (or sucked i don't know) in the actual combustion chamber
o_O
wat
Wes
Wes
i don't change oil, i burn it
ah... o_O
isn't that like, so destructive for the environment even government officials agreed to make it illegal?
Wes
Wes
it's probably impossible to make new engines like this these days, because emissions yeah
18:52
@FélixGagnon-Grenier Trump probably has overturned it... or probably will overturn it... at least for the US
Wes
Wes
afaik, the oil is sucked in the combustion chamber alongside the fuel
ftr i don't pollute the world, i don't drive the car much. i have everything in like 10-15km radius
@Tiffany Rofl. I'm no where near good enough to get that job. I might apply though.
Wes
Wes
new cars are not ridiculous enough
the new mx5 looks like shit
19:08
@Allenph ...I was considering it, and I'm far less qualified than you
Wes
Wes
@NikiC how does resolution to "false" and "FALSE" actually work in a namespace?
does it follow the same rules of any other constant or something special is going on?
@Tiffany No harm in trying.
Wes
Wes
maybe they should be reserved words too cc @LeviMorrison
use const true as false; // disallowed
use const false as true; // disallowed
use const true as yes; // ok
use const false as no; // ok
20:01
anyone familiar with phpmyadmin?, just want to know what is the best collation to pick for phpmyadmin?, online i keep reading utf8mb4 is the best choice, but not sure if I should pick utf8mb4_bin or utf8mb4_general_ci?
@SShah If you don't understand the difference, I'd suggest using _general_ci - that will most likely act as you expect. You can always change it later.
user9107868
Heads up. He posted this in several rooms.
@sshah ok all that i understood from the discussions online were, using utf-8 makes the encoding compatible globally, and utf8mb4 supports emojis, over simply using utf-8, i am using an old wamp stack which i got from my Uni to work on a project, and there I noticed we used latin_swedish_ci, so I hope using the utf8mb4 will not result to any issues.
@SShah difference is mostly with case sensitivity... if you want to find SShah when you search for sshah then use a _ci suffixed collation
@SShah why the fuck are you using phpmyadmin ?
20:09
ok thanks
its the only database I know xD
and again reusing an old wampstack, i got from uni to create a new personal project
phpmyadmin is not the database - it's a client. MySQL (or MariaDB) is the database
phpmyadmin isn't a database, it's a UI for a database
@SShah phpmyadmin is not a database, it is a client (and a very shitty client)
ohh
if you're on MySQL, download Workbench
20:10
^ that
I think phpmyadmin is not a database @SShah :P
... I think he has that one down, by now
I have used workbench to create the tables and relations
then keep using it
and just as we did in uni, i exported the sql, and will now import to phpmyadmin
20:11
now that I think about it, I haven't used phpmyadmin since I started using workbench. ... probably should delete it off my web server
@SShah mysqldump to export
and something else I always have to google to import
wait is there a web version of work bench?
I know how to import
you jsut connect workbench to the database on the server
all is ready from workbench side, just looking to upload to the phpmyadmin
20:12
you might have to fiddle with the permissions to get it to work with workbench, I had some trouble with it, and it turned out to be really stupid shit on my part
but I am using a pre made wamp stack
you don't need phpmyadmin at all
which came with phpmyadmin, so dont know how i would link it to my wampstack
you just link workbench to the mysql database
you could delete phpmyadmin from the server and it wouldn't make a difference
user9107868
in HTML / CSS / WebDesign, 14 mins ago, by SShah
anyone familiar with phpmyadmin?, just want to know what is the best collation to pick for phpmyadmin?, online i keep reading utf8mb4 is the best choice, but not sure if I should pick utf8mb4_bin or utf8mb4_general_ci?
user9107868
20:14
in SQL, 17 mins ago, by SShah
Anyone know whats the best collation to pick for phpmyadmin?, online i keep reading utf8mb4 is the best choice, but not sure if I should pick utf8mb4_bin or utf8mb4_general_ci?
user9107868
Grrr...
ThW
ThW
I still use it, it is convenient because it is maintained by the server admin.
... you seem to be experiencing some .. emm .. "problems to penetrate" his brain-sponge, @Tiffany
@TheOneWhoMade fairly new to this chat room so wasnt really sure where to ask?
user9107868
@SShah just don't do that again.
20:16
@TheOneWhoMade Ok sure, but would prefer if i am not being attacked, and just informed instead.
@SShah Read the rules first then.
user9107868
^^^^^^^^^^^^^^^^
@tereško I use PHPMyAdmin all the time.
I'm on Ubuntu. Never did find a good port.
@Allenph you do a lot of stupid things
@Allenph what port? Workbench is available on linux.
Who pissed in your Irish coffee this morning?
@tereško Wuuuut? Have I been blind this whole time?
20:19
@Allenph hence, my earlier statement
I think the biggest concern with phpmyadmin is security, if updates aren't consistent, it can be vulnerable to exploits. And I guess something about it being a web interface directly to your database can be problematic.
@tereško Why were you messing around with that electron based client then?
@Allenph because I like new things. And it supports 6 different RDBMS, not just mysql/mariadb
user9107868

today/this week just hasn't been in my favor. decided fuck it, Xcode wants a damn iOS device, I'll give it a damn iOS device, using the department's iPad. It was recently updated and needs to be activated. Except that it can't connect to the activation server.
can I call it a day?
20:30
@Tiffany Thanks alot I am sorry not sure, how to link the mysql workbench to my wamp stack, so may just use phpmyadmin for now as I am more familiar with how to use it.
@SShah make sure to download updates for it
honestly though, if I can figure out how to do it...
I honestly dont even know how myself :D, Since I used this wampstack at Uni, I am just trying to reuse it.
ya know,@SShah, wamp is for complete newbies
It's amazing you were able to connect to the DB but don't understand the concept that PHPMyAdmin is a client.
@sshah oh I guess i fit in that category
20:33
it will for for playing around, but if you are just now starting out to learn PHP, you should be ditching wamp in .. emm ... about month or two
@tereško I've seen a couple of your mappers use a single store method and switch off creating and updating based on the lack or presence of an ID.

Do your data mappers fill the ID property on a create?
@teresko I meant for the above*
@SShah you can edit your messages. mouse over your message, click the little down arrow on the far left, and click edit
@Allenph they, the pull last-insert-id, if there has been a "create" operation
there are several ways to set it up
And they populate the property?
20:35
@Tiffany thanks noted
I'm not interested in the mechanism, but wondering if the property is set by the mapper.
I'm being forced to adopt that kind of paradigm by the API in this case.
@Allenph yes, after successful insert, the ID is being set
lol @ "forced"
Well, I'd prefer to be able to set the IDs. I like that way better.
well, my approach has a lot lower "maintenance & development cost"
as in - it's a lot faster to set it all up and a lot easier to grasp later
I think that's up to debate. :p
Especially when you're in a situation where you need a repo.
20:37
repos are what you build on top of mappers
different layer
Yeah, but really you're changing whether or not the domain object gets an ID at instantiation or persistence.
Which is a change that will affect multiple layers.
or are you concerned about how it affects the identity map in the repo
@tereško Yeah. This.
I would on save just update the map
only part that is actually affected is the "map lookup"
if entity does not have an ID, it does not need to be in the map, because it is entirely new
at least, that's how I look at it
I guess that's true. Seems like you'd have the have some kind of event system to do that though, right?
20:41
the point of identity map is to prevent additional SQL queries
You know now that I think about it I'm not sure I'm currently catching my writes.
@Allenph you can optimize later
make it work, mate it clean, make it faster
in that order
Well, it never will be relevant because of restrictions I have to use a CRON to refresh the cache other than the method I designed and showed you a week ago.
Plus the largest bit is CQRS anyway so the cache does automatically get refreshed on write by an event.
Is it normal to use the actual entity to unit test persist methods in the mapper?
@Allenph depends. I never use and instance in a different test, that does not have a 100% coverage
the point is, that all the parts, that you use in a unit test, have to be completely trusted
that's why you would often use various test-doubles instead
if I have a full coverage of an entity, I see it as acceptable to use it in a test
20:57
@tereško But you unit test the Identity entity right here?
yes, that is a separate test
Oh I see. If you've unit tested the entity you say it's acceptable to use the actual entity in another test.
I could have made a mock, but it would not actually make the test for the mapper any better and instead make the test just harder to comprehend
your unit test also have to be readable, when possible

« first day (2713 days earlier)      last day (2460 days later) »