« first day (2720 days earlier)      last day (2454 days later) » 
01:00 - 19:0019:00 - 00:00

19:09
user image
6
@tereško I have a feeling you'd like this one ^ :D
I couldn't find it by the way
me neither
@MadaraUchiha this is the end of civilization as we know it
me neither
19:12
The user doesn't exist on github
And google gives off 0 results
Was probably reported and removed
or is maybe fake
You think someone would do that? Just... go on the internet and lie?
Yeah, cause that never happens...
19:19
@MadaraUchiha D:
/r/creepyasterisks
@MadaraUchiha This is amazing though :D
I know :D
PS - Hi from 35,000 feet! mac-spoof every 10 minutes for free wifi ;)
lol
until they catch you
19:22
@Tiffany Then he'll be Jim-boned.
inb4 "this man is trying to hack into the plane!"
DUN DUN DUN
ThW
ThW
urgs
Wes
Wes
@MadaraUchiha this is a f______ disease
and it's spreading
Wes
Wes
didn't use asterisks, can't be creepy
the end
twerking
not that creepy, but that + the overall message
I'd find an example on the subreddit for you, but I'm hungry and my lunch is here
and SGA calls
hey guys a quick question how to convert 2018-03-28T22:37:45.000Z to a YYYY-mm-dd H:i:s
I do not know how to search this up :\
!!docs datetime::format
19:39
[ DateTime::format ] Returns date formatted according to given format
@KavvsonEmpcraft just feed it into DateTime class
it looks like ISO format
ThW
ThW
hmm?
19:47
had a brainfart
user1804599
20:08
Hmm
20:21
hmm ... @Shafizadeh, can you access this site: chenderghaz.ir ... it might be IP-locked
I was trying to find where you can locally get this PC case: fractal-design.com/home/product/cases/meshify/meshify-c-mini
@tereško When you have an object with more than one valid state you use a static constructor, right?
Obligatory I don't do DDD
@Allenph yes
I know that, but I'm pretty sure you're the one that told me that.
I think the accepted term is "named constructor"
Oh, okay.
So there's really nothing stopping someone from using the wrong constructor then?
Well, I guess then they would have to produce a valid object. Never mind.
20:26
hmm, @Shafizadeh, wrong link .. fractal-design.com/home/product/cases/meshify/meshify-c-bko (the previous was with a tempered glass side .. which is +40$ probably)
ThW
ThW
I am going to replace my home computer with an eGPU next week. :-)
finally got to looking at making that PC build, but the choice of available chassis is ... emm ... miserable
@ThW why?
you get a marginal improvement for a lot of $$$ spent
ThW
ThW
got a new 2in1 with TB3, so it is now possible - only one computer to manage a lot easier to just dock and work.
Good evening
ThW
ThW
@tereško Not as much I would need a TB3 dock anyway, just got the most powerful option.
20:33
Do I need to all these statements in my php file that is used to connect to mysql db kopy.io/WLmRk
@Webdev Don't use MySQLi. Use PDO.
why
@ThW I hope you are on a laptop and not trying to do this for a desktop PC, because if you are, I will find you and I will make you cry and I will make you bleed
342
Q: mysqli or PDO - what are the pros and cons?

PolsonbyIn our place we're split between using mysqli and PDO for stuff like prepared statements and transaction support. Some projects use one, some the other. There is little realistic likelihood of us ever moving to another RDBMS. I prefer PDO for the single reason that it allows named parameters for...

nice
ThW
ThW
20:38
I switched to the Surface Pro some years ago, using them for work (docked) and mobile. Now I got an EVE V, basically an optimized SP with TB3 - so I can now replace the KVM (gaming + dock) at home with a eGPU dock.
the small gaming system at home is a dual core mITX
kinda "mobile first" approach
:-)
you can put a decent GPU inside an mITX box
you do not need to add an external enclosure for that
Can you just take (much cheaper) server hardware and build a gaming beast with like 64 cores, multiple graphics cards etc?
ggs @Naruto @samayo
@Allenph no
@tereško Why?
ThW
ThW
20:45
The mITX has a gforce 1060 in it - I am going to put that into the eGPU case.
@ThW why ?!
ThW
ThW
Because having multiple computers in inconvenient. The 2in1 needs a dock anyway, so why not go with the most powerful option and remove the need for the mITX system?
@Allenph because games are not actually optimized for that type of multicore usage (majority use only up to 4 cores, then there are some who can utilize 8 core and very few can see all the cores). The PSU are not meant for these types of loads. You probably wont actually have 16x PCIe lanes, the memory is slower.
If you have an object with multiple valid states how do you make sure it stays that way sanely? The only thing I can think of is either...

1) Making them all separate objects.
2) A private function that checks if the state of the object is valid that each setter calls to make sure setting some property does not make the object invalid.

#2 seems remarkably similar to an `isValid()` method on an active record "model". Something I remember @tereško telling me specifically not to do.
ThW
ThW
@Allenph if in doubt 1
20:52
@Allenph too vague, short answer: it depends
ThW
ThW
separation wins most of the time (not all)
you can still define/implement an interface to allow generic handling
@tereško I have a class which represents a cart item. It needs specific properties set if it belongs to one category, and another set of specific properties if it belongs to a different category.
As far as the API is concerned though, they're all just cart items.
Which is why I originally opted for name constructors...but keeping that object valid seems like it would be nasty.
On the other hand separating it into several abstractions would make the service layer more complicated.
those objects would be immutable
I do not see the problem
and "discounts" are not part of the "products" in the cart
I'm not talking about discounts at all. Where'd you get that from?
You know what...you're right. I don't have to worry about this at all because these a CQRS write models. They're immutable.
I was just trying to think of a scenario, where you would attempt to change a products state
ThW
ThW
20:58
@tereško my work setup: photos.app.goo.gl/H08TkYBmU7aGjYd03
@tereško Meh. There actually is such a case. One property is mutable but should only be able to be set in one of the configurations.
I personally would design it such a way that a cart can contain products (which user adds) and discounts (added/removed automatically)
That is how this works.
There's a bunch of entities on the cart that when written could affect other entities in the cart.
That's why I used CQRS. The read model is updated whenever a write event on any of its entities is dispatched.
It's the CartItem write model I'm having troubles with.
I think I'm going to break it into 3 separate objects.
@Wes is that the "game journalist" mode?
Wes
Wes
:B
I was just having flashbacks to that one Doom gameplay video
@ThW nice. With the 3d printer in the background. I love it
ThW
ThW
21:31
@FélixGagnon-Grenier it can do a little more then just print plastic ;-) flux3dp.com/delta-plus
fun device
Oh nice :)
Mine is just a pla printer vOv
ThW
ThW
and it makes a stylish desktop decoration
Wes
Wes
22:03
hipsters
22:16
@FélixGagnon-Grenier Yours can print more than just PLA. o.O
22:42
user image
4
@Allenph it was what you'd call, an exaggeration ;)
I got mine to print a solder stencil the other day.
Saves soooooo much money and time.
user9387976
23:34
0
Q: `Uncaught exception 'Exception' with message 'DateTime::__construct()

Ben The Beast aka destructionfunction changedateformat($old_date) { $date = new DateTime($old_date); // line 19 $new_date = $date->format('d-m-Y'); // 31-Mar-2012 return $new_date; } This is the Error i get Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time s...

01:00 - 19:0019:00 - 00:00

« first day (2720 days earlier)      last day (2454 days later) »