« first day (2858 days earlier)      last day (2086 days later) » 

6:10 AM
@JackJohansson sessions generally should not be used. In the end they are being translated to cookies IIRC
WC just store "session" info in the DB, if you have some internals you do not want to expose this is probably better way to do it
 
 
6 hours later…
12:25 PM
@JackJohansson authentication mechanisms
we have cookies and TLS for sites
SAML/OAuth2 for inter server connections
and PHP sessions doesn't work so well with most servers caching mechanisms
especially considering WP already comes with a cookie based mechanism so why not piggy back
 
1:21 PM
@TomJNowell I'm not using this in WP, it's a pure PHP script
@MarkKaplun Sessions are stored on the server so users don't have access to them. I was thinking, that I use sessions if the 'Remember me' checkbox is not checked, since the session ends after browser is closed and use cookies if the box is checked
 
1:56 PM
@JackJohansson if for nothing else, sessions will not work when your configuration has mutiple servers. Caching might also be a problem, depending on what you exactly do. For something like remember me just handle it like wordpress handles, longer cookie expiration time and store the user/password as a salted hash value
 
Hmmm that multiple server was a good point
 
I learned two months ago that you can use redis to store sessions but I have illogical bias against such a solution, maybe because redis requires extra installs and config
 
why add complexity when you can just use salted cookies
 
You are against redis or against caching sessions with it?
 
caching sessions
 
1:59 PM
you can store your sessions in marker on the leaves of a potato plant if you put enough interns in a field
 
no loggical reason except for added complexity of the setup
 
@TomJNowell I was also thinking of that, but I hate simple solutions :P
A final question, do major shops with millions of users use some kind of special engines like elastic search for their listings? Because they have tons of products and they're still super fast
 
1. good software engineering
2. up until a user logs in you can serve cache
 
Do they also cache their search results?
 
I think amazon serves mostly cache
best way to handle search results is to not let the user do "random" search ;)
 
2:05 PM
Free country, free search term :)
 
if you have enough users there will be value in caching searches as they will most likely repeat
 
Yea I probably will just cache the common search phrases and clear them only if a published product has that search term in its title or tags
 
if a user feels like he needs to search, something is wrong with the site, unless it is really a huge one
 
Yes it's a huge one...
 
2:07 PM
Also we have always lazy users :P
wp can't handle 5k products for sure, it's slow even on their official storefront theme
 
the thing I always say to people that wants to make money from their sites is that they should never use algorithms to show things like "recent post" but decide in advance what is it that they want the user to buy
all the meta queries
 
The 'New arrivals' is a common section in most shops though
 
and how is it ordered by default?
 
Since I'm write the db tables too, I know how to handle the metadata situation so I'm not stuck with the meta queries again
 
in asos it is "our recomendations" ;)
 
2:11 PM
By publish date?
 
you are so naive :)
 
Thanks man I love you too
 
:)
there are all kinds of possible strategy, profit, least popular, most popular, and probably others. each might make sense in some context and all of them make more sense than publishing order
 
Yes a major website will have dozens of dozens sections, and the "New in SOME CATEGORY" is one of them
checkout jd.com for example
 
the order is very important especially when you have many results. people are less likely to scroll to the end of the page
that is the main problem with sliders btw, if you have many of them no one is likely to see the last ones
Back to search, I see that in asos they recommend search terms which are probably tags/categories they use for their products
 
2:25 PM
for a moment I thought u mean ASUS
Most advanced searches nowadays offer also categories too
 
minimize the "free will" without actually saying that :)
 
Chinese sure know how to make huge websites
Websites like amazon or ebay can't even remotely compete with their chinese rivals
In case of design, ofcourse
 
@JackJohansson it's the difference between 2 input boxes for a lower and a maximum bounds on price in a filter, versus predefined ranges. The input boxes will never scale
 
 
1 hour later…
3:44 PM
meanwhile in the world of gutenberg, not supporting undo with CTRL+Y is officially a feature and not a bug lol
 
4:03 PM
talking about naive people... people that 1 star guttenberg think that anyone cares about their plea of leaving it as a plugin. Their naivety is heart warming.
 
4:39 PM
I've never seen ctrl+y for undo, is it not ctrl+z?
where's the github issue?
 
Windows guy here, CTRL+Z = undo, CTRL+Y = redo
 
hmmm so it's redo that's not supported?
 
5:11 PM
oh sorry, yes
but the fun part is that it is called enhancement github.com/WordPress/gutenberg/issues/8921 instead of bug
 
cmd + z and cmd + shift + z work
 
even if you decide it is not important for 5.0 this is a bug
 
perhaps ctrl + shift + z?
 
except no one heard of it on windows, and it is much harder
 
have you considered that perhaps this is an overreaction to an initial tagging of enhancement? Nobody has responded to that issue yet, nor has anybody said it will never happen, or that it won't
 
5:15 PM
but we know the rich people of automattic use only macs and do not care about the miseries of the common people using windows ;)
lol obviously I am over reacting
 
that's not true at all, there are Windows users at Automattic, and non-Automatticians working on Gutenberg
 
seriously, who?
 
there's even a vocal contingent of Linux users who refuse to buy Macbooks
as if I'm going to share a full list, though I can reveal that I myself recently sought out Windows licence keys
 
I mean who in the community which do not work for automattic has any voice for the direction GB is heading?
 
and we have an MSDN subscription
Chris Van Patten the guy who marked it as an enhancement?
Matt? ;D He doesn't work for Automattic and he has a say
 
5:18 PM
and what is it his position in the project? can he say that it is not ready to merge in 2018 and will anyone listen to him?
 
well he said it wasn't ready to be merged in 2017 and people listened to him
 
can he say it should be a plugin for another year?
sure, because he said
 
that too
 
GB is not going to be ready before 2020, as its design is very broken both on the DB and API level and UX level
 
the DB is the same as it is now?
 
5:20 PM
DB was broken from day 1. what is it with the stupid html comments?
slow regex all over
 
backwards compatibility
 
seriously? the last thing you can say about GB is that it is BC with anything
 
you can't store it all in a custom table or a JSON structure etc and retain the ability to use the classic editor, or deactivate the gutenberg plugin
 
it should have been separate table
 
or use any of the REST APIs or existing XMLRPC etc
that would have broken every plugin in the entire ecosystem
as well as a lot of WP core, and most tooling
 
5:22 PM
than you would have actual independent blocks
xmlrpc is broken with GB as you can not add the stupid comments with it
once edited with GB you can not edit with xmlrpc
 
have you raised that as a bug?
 
first day of 1.0
 
did you try escaping the html comments?
 
what for? it is not a problem with them per se, it is the problem that no editor has any reason to show them or preserve them
even if it will preserve them, it is unlikely to much "block types, or at least you will need to be lucky for that
*match
 
 
1 hour later…
6:49 PM
@TomJNowell ctrl + shift + z is the Redo for adobe products too
 
7:08 PM
ok, you guys know better, and the reason to not support both is?
in atom on windows only ctrl+y works
same with notepad++
now in open office, ctrl+y is undo while ctrl+shift+y is repeat.... as I said, it is not a bug it is a feature
time that the windows using idiots will learn how to use real OS :)
 
7:56 PM
Anyone have a way of converting all Microsoft encoded characters to UTF8?
My post_content is messed up after using DomDocument to modify it on save_post
Is there some kind of filter I could trigger on save post to correct the invalid encoding?
 
8:33 PM
@MarkKaplun Did you just call 80 percent of desktop users idiots
 
 
1 hour later…
10:02 PM
@MichaelEcklund is it not encoded in the database as utf8mbi?
 

« first day (2858 days earlier)      last day (2086 days later) »