« first day (2781 days earlier)      last day (2177 days later) » 
00:00 - 15:0015:00 - 00:00

3:00 PM
Currently all mail is held within memory so if you a fuck lot of mails or mails with huge attachments you may hit some mem limit
 
also, any vague estimate for when will be next time, when you work on it (I assume you have made it for use in one of your own projects)?
 
Hi all!
Does someone know the reason for using UUIDs as constant values?
Just found that in Symfony constraints.
 
@tereško Yeah. I run it at two clients and on my local environment. Actual bugs I will be fixing as soon as they are found. I will be starting on features again somewhere this week depending on the weather here and actual workload of job
 
@PeeHaa ah , some what you are trying to say is "some time in june-ish"
 
@VictorToulouse someone is an ex-windows or Java programmer.
 
3:04 PM
Yep basically. I don't have any work specifically atm for a couple weeks unless clients have a problem / something urgent comes up
 
I will maker it down for "end of august" then :D
 
:P
 
@PeeHaa regarding github.com/PeeHaa/mailgrab/issues/13 + sqlite, I looked at this once for jives and concluded that a worker proc with an operation priority queue would work there, where write operations automatically block pending reads and a processed first. It obviously wouldn't work in situations with a large write:read ratio, but I concluded it would be OK for jeeves and I suspect it would be OK for that as well.
 
@Danack you mean this doesn't achieve anything in PHP?
 
@DaveRandom I started work on it in a local branch here using amp/process
Why a priority queue?
 
3:06 PM
@VictorToulouse it's not solving any php problem - it's a personal style thing
 
@VictorToulouse I believe it comes from a time before the people used the internet, when applications needed to be able to register items with a unique identifier so people used UUIDs. So, yeah, I don't believe it achieves anything in PHP.
 
Huh. Ok, thank you :)
I'd be interested to read more about that specific use, if you have any references.
 
@PeeHaa I would assume (but could be wrong?) in that app that in the general case atomic reads - i.e. ones that are not wrapped in a txn - should generally reflect the latest data, thus a pending write should be processed first. If not then yeh you can just have a straight queue and it would be fairly trivial
otoh I would also argue that you should just write a pgsql adapter :-P
 
I would rather go for redis instead of pgsql I think
But I kinda like the idea of not having the dependencies and just be able to run it
 
well sqlite is still a dependency, it's not like it's pure userland
 
3:11 PM
@PeeHaa or you just provide an interface and mark it as "not part of the problem domain"
 
The thought of writing several adapters crossed my mind, but that I suddenly remembered it is work
@DaveRandom True
@tereško Could also do that
 
New blog post Tell, don't ask
Upvotes on /r/php, /r/programming and hackernews are appreciated :)
 
@tereško +1, with the caveat that imo you can't do that without writing at least one implementation, simply because you may find that the interface is wrong because of something you didn't think of until you tried to implement it. And when I say "you" I mean "me" because I would say that happens with ~25% of the interfaces I design.
 
yeah, and if it's an example, then SQLite is a good tool for that
 
I will grudgingly accept that argument, although I will also argue that including a layer to make it actually async makes it less useful as an example
I have never used sqlite and not rapidly regretted it
 
3:17 PM
@Patrick shouldn't it be $invoicedAmount->equals($paidAmount, function () { /* callback logic here */}) ?
because you are still asking for boolean response otherwise :P
 
Wes
youtube.com/watch?v=tPuKyeVsfZY corgi races + commentary
 
also, @Patrick, how this new enlightenment of yours affects the way you write your data mappers?
 
fwiw @Patrick contrary to what you might expect. He is actually fun at parties
 
also ftr I think that "stock" is a bad example because a product does not have stock, but rather some sort of container as stock associated with a product
 
@DaveRandom you really are an english nerd, arent you.
 
and also I think it should be noted that it's a short leap from "->equals()" to comparison operator overloading, and that way madness lies. I'm all in favour of named methods for that stuff, but that shit needs to be visible and explicit, hiding magical custom routines behind $obj1 == $obj2 is a quick route to having a bad time
@mega6382 somewhat, although I am decidedly not an expert :-P
also ftr I did that only because he has specifically asked me to check his english for other stuff before now, writing completely unsolicited nitpick corrections for people on the internet generally ends badly...
 
I am working on typescript code nowadays and the testing framework used has methods like expect(obj).to.have.property(whatever) and expect(val).to.not.equal(whatever)
 
Wes
4:00 PM
youtube.com/watch?v=hm8f5Kj_CrY guy eats 70 years old food, from a us military ration of ww2
 
posted on May 28, 2018

New Cyanide and Happiness Comic

 
4:25 PM
@mega6382 That's the assertion library
You can also opt for the more traditional expectEqual(actual, expected, message) style assertions
Most testing harnesses can work with any assertion library
@DaveRandom I'd go for "this document explains" rather than "is explaining"
 
Yes, the codebase is using chai.js which provides this kind of assertion style
Anyway @MadaraUchiha so apparently the work pc where the chat was working previously, is also doing the same thing. Now I can only access chat from my phone, which i don’t really like a lot. And I still havn’t heared anything from SO staff
 
:/
Lemme check again
 
Thanks
 
@MadaraUchiha maybe, there is a slight ambiguity in using "this document" to refer to one document from another. Looking at it again, it could maybe be structure better by moving the information that the linked document is describing using ORM to the previous sentence, before the code block, but tbh I cba thinking about it rn because my brain is now broken due to being in direct sunlight :-P
@mega6382 context?
 
@DaveRandom I am unable to login into SO chat. Whenever I try i am shown the same “you must be logged in to talk” message. I have tried different devices, browsers etc. Its been going on for about 2 weeks and I have sent SO team 2 emails and haven’t gotten a reply yet.
Thats the gist of it at least.
 
4:37 PM
@mega6382 what auth method do you use for SE?
 
@DaveRandom I'm suspecting his account underwent a merge
Which left him in some dirty state which causes the database to bork
 
I have configured google and email/pass both. And I have tried logging in with both methods many many times.
 
I'd normally try to invalidate all sessions, but I'm fearing it might destroy his current status quo and leave him unable to access chat at all
Wait, your phone, was it already logged in, or did you manage to log in with it?
 
It was already logged in from ages ago. I usually never access chat from my phone.
@MadaraUchiha yes, my account did undergo a merge, which left me with a different id for my chat account and different id for my mainsite account. And I am sure that, that is somehow related to this.
 
I'm pretty certain you should carry the same ID everywhere throughout SE
 
4:42 PM
@DaveRandom Unless the merge, which is supposed to be an atomic operation, wasn't so atomic.
So he's left with the old ID here in chat, and the new ID on SO
Or something
 
Reading the section on ORM in Martin Fowler’s Patterns of Enterprise Application Architecture makes me realize how much I don’t know or utilize. Identity maps, serialized lobs, metadata mapping- may not be needed for my smaller applications but there are so many patterns I’ve not ever even glanced at in large applications.
 
@MadaraUchiha right, there was some data centre migration drama a couple of wks ago as well IIRC
 
@mega6382 I've refreshed your chat profile from the parent account, can you try now?
 
Sure
 
It was nice knowing you mega
 
4:45 PM
@MadaraUchiha :/. Still not working
@PeeHaa :p
 
:-)
 
Hmm, I'm not even sure invalidating all sessions would work
 
@mega6382 just to sanity check, I assume you determined that in clean env?
 
It might be the case that the chat profile need to be manually migrated by a dev, or removed completely and started again
 
i.e. new pr0n mode session, and invalidate all caches/hard reload
 
4:47 PM
@DaveRandom yes, in incognito
@MadaraUchiha :O
Or maybe they can give my old id for the mainsite back
And maybe that will fix the problem
 
@mega6382 you burned caches as well though? google in particular do some weird shit with cachable user-specific JS resources
 
If my sense of smell of the problem is right, invalidating all sessions would simply lock you out completely from any existing device you might have
 
although maybe gdpr has put a stop to that, idk
 
@mega6382 That's even less likely to happen, I guess.
 
@MadaraUchiha yeah, i know. When i first asked them abou lt that they said not gonna happen.
@DaveRandom no, i just opened incognito and tried logging in.
 
4:51 PM
it's a long shot but no point in not trying it...
 
The entire idea of automatic merging of accounts is just retarded
 
@PeeHaa It isn't think of users trying to avoid suspension and the likes
But automatic merging of accounts with over 5k rep, is.
 
Yes but it get so many non malicious users
 
Add the fact that merging is a buggy process and you get lots of fun.
Not to mention irreversible.
 
It's also based on nothing than same ip
Which is like wtf level wtf
 
4:55 PM
it must be based on something other than that, surely
otherwise shitloads of uni students in accom with shared internet would randomly get their accounts merged
 
The only possible other thing could be being in the same room
As in chat room
 
like surely it uses ga IDs or something
 
I have seen too many merges of accounts in chat
 
Wes
5:11 PM
that doesn't work for me... a second search replaces the old one
must be a new feature...
i'm using 2017.1
 
@Wes This one is hilarious! m.youtube.com/watch?v=jZoHuMwZwTk
 
Wes
lol
 
He’s like “smells like meat, dirt, and metal... nice! Let’s have a bite.”
 
@Wes try this: do a find, go to the find window, I'll take a screen shot in a mo, but jsut to the left, at the top of the panel, there is a find settings box. I just found a "open in new tab" setting in there.
 
I literally just did the same thing
once you do one search like that, it becomes the default behaviour
 
5:19 PM
> "Oh Dave, you're so quick." - She.
 
Wes
it works \o/
@DaveRandom did you even add the labels "check this box and hit find button"
that's dedication :B
 
@Danack I'm reliably informed that particular individual prefers to be addressed as "the cat's mother"
@Wes it seemed like less work than describing the things I was talking about in that screenshot, there's a lot going on in there :-P
 
Wes
<3 :D thanks
 
5:34 PM
@bwoebi I'd leave hydration to consumer libraries, and limit the adapter to just providing correct async facilities
@bwoebi you can already do that via (array) ["\0Foo\0bar" => 'baz']. It has no real use-case...
 
Hi guys
I am showing list of records where admin can download those list of records in pdf or excel file
Shall i do this on client side or server side?
 
@Learning-Overthinker-Confused server side....I'm pretty sure that trying to do it client side would be terrible.
@wes My city keeps having lots of Italian tourists in it..............do Italian tour operators lie habitually?
You can tell it’s summer by how bright the gray is. #bristol
 
But why it will be terrible?
Sorry to ask this but i am trying to understand
 
Wes
@Danack doesn't look bad
maybe google images cherrypicked all the best photos :B
 
@Learning-Overthinker-Confused because downloading a library that is comprehensive enough to generate excel files will be a big download.
 
Wes
5:46 PM
would totally visit
 
Arent there are pdf plug for client side which will do this for me?
 
@Learning-Overthinker-Confused You're in a PHP room asking people for indepth knowledge of client side libraries. What are your expectations for this conversation?
 
if such a thing does exist it would most likely be horrifically complicated, buggy and absolutely enormous, with poor/non-existent legacy browser support
 
so you're saying there's a chance.jpg
 
Actually i am trying to say that there might be such pdf or excel plugin which can do this on client side saving my round trip to server
 
5:49 PM
@Learning-Overthinker-Confused yes, and we're saying you'd be better off either googling for that info, or asking in an appropriate room, rather than asking here.
Anyhoo, I made a thing, which we're using in production, and you should too:
 
Ok.i was just trying to get opinions on this problem :)
Thanks for your valuable time and inputs:)
 
Wes
and all the fans of my cabinet died. it's 3/3 now
 
github.com/Danack/Params - a library for validating parameters and returning sensible error messages for APIs. (The error messages aren't really appropriate for end-users, though PRs are open.) Encouraging feedback welcomed.
 
Wes
they ran almost continuously for like 10 years
 
@Ocramius hm, could you please explain why?
 
 
1 hour later…
7:26 PM
@tereško I don't use data mappers, just repositories. No setters and getters on my entities. Or do you mean something else?
@DaveRandom Completely agree. I'm allergic to magic (I always use toString() instead of __toString() as well...)
 
ThW
@Patrick I like using general APIs - even with __toString() you can still define/implement it as an specific interface.
 
 
1 hour later…
8:59 PM
@DaveRandom @Wes yes, SharePoint lets you checkout a document, so no one else can make changes to it, then upload the new document (must have the same name as the original document), then check document back in. SharePoint also keeps something like 50 versions of a single file, but it has to be manually turned on, I believe.
but this is SharePoint Online, and I dunno how older versions of SharePoint work
@Danack thanks
 
2 lagaet – #76384
 
There are html tags that break text ... <p>, <li>, </br> ... what is the name of this group of tags?
I've spent the last 30 minutes to find an extensive list. Thanks!
*<br/>
 
9:19 PM
block level elements?
though that wouldn't be right, divs are block level, but don't break text
shrug, you might have some luck reading the W3C spec
 
Wes
divs do break text?
but ultimately depends on the css
any tag could break text
 
@Tiffany block level elements was the term I was looking for. Thanks!
 
@Wes You got me started watching these videos today by Steve1989- I’ve been watching them all day!
 
Wes
lol
they are insane
@ArcoBast <br> is not a block level element
 
@Wes thanks for the hint
 
Wes
9:31 PM
well, it kinda is
it is a block element of width and height 0
 
Yeah I am a bit confused
 
Wes
css is a mess
what are you trying to say?
 
I've been confused about the <br> tag ...
 
ThW
@Wes mostly, except inline elements can not contain block elements
 
Wes
with "block level" they usually mean a container whose text wraps in a single rectangle - as opposed to inline, where text wraps in multiple rectangles
but the term is used loosely
while <br> is display:block, it doesn't fulfill that definition, as it has no content
 
ThW
9:48 PM
@Wes not sure that <br> counts as block element: developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
 
Wes
as i said, "block level" is used loosely
 
10:42 PM
@Wes I was thinking in terms of having a line break. AFAIK divs don't have that unless you set it in CSS
@Wes inline-block maybe?
 
Wes
that would be span @Tiffany
from a css perspective there is no difference between <p> and <div>
i'm referring to the default style applied by the browser
 
I wanna get the game, saw it on oculus store, but i don't have enough room to be swinging around so wildly lol
 
00:00 - 15:0015:00 - 00:00

« first day (2781 days earlier)      last day (2177 days later) »