Jump to content

bernhard

Members
  • Posts

    6,264
  • Joined

  • Last visited

  • Days Won

    313

Everything posted by bernhard

  1. Thx! So a solution could be to use a font that supports that and use the css setting to use it? How do I know if a font supports tabular-nums or not? Can that be different on mac/win? I don't know a lot about fonts so please keep it basic ?
  2. Thx, but that's not solving the problem. It's just preventing the line break, but then you'll break the responsiveness and you'll not see the time on mobile screens as it will not fit on the screen. Or it will create a horizontal scrollbar. No, I don't think that the font-size is the issue. The issue is that different numbers are of different width. A solution would be to use a monospace font for the time, but that looks ugly. That's why I suggested tabular-nums as solution but as I said he tried that and the problem still persists:
  3. I don't think so. At least not with the kind of site that I build. As soon as you have some references in your pages or media like images etc. it gets tricky I guess... But maybe it's easier than I think. I'd be happy if that's the case ?
  4. Anybody else experiencing this issue in chrome or having a solution for it? https://github.com/orgs/ddev/discussions/5051#discussioncomment-6343811
  5. I'm using a server control panel that shows the current live time: Recently I discovered that this line breaks to two lines on some very specific screen widths: The reason is that numbers "1" and "7" are slightly narrower than all the other numbers and while the seconds increase the content on the screen jumps around: After some feedback it looks like the problem only occurs on Mac where this style is used: body, button, input, optgroup, select, textarea { font-family: BlinkMacSystemFont,-apple-system,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","Helvetica","Arial",sans-serif; } The developer of the panel confirmed the problem but my proposed solution does not work for him either (https://stackoverflow.com/questions/10149330/force-non-monospace-font-into-fixed-width-using-css): With the font used on my system (the "Ubuntu" font is used here) it does not wobble either, so I tried other fonts until I found one (Helvetica) where it is 1 px smaller than normal at a certain time (10:30:11). I tried "font-variant-numeric: tabular-nums;" but the problem persisted. Hmm As this could be a problem for every website I'm asking if anyone of you guys knows a good solution for this very specific problem? Thx in advance!
  6. This is something that I'd also wish to have. But it's not easy to do properly. If that's the only thing missing have you thought of asking Ryan for adding that feature to ProDrafts?
  7. You mean to stream the output of mysqldump directly to the local dev environment? Didn't know that this was even possible, but it sounds like what you are saying makes sense ? If you want to improve that command I'd be happy to accept a PR ? For bigger teams that would definitely be an improvement. In my scenarios it was never an issue though as it is very unlikely that two people do a db:pull at the same time and really causing a serious problem. But unlikely is not impossible, so having a better solution would be great! Similar needs here. Flushing cache is done by RockMigrations in my case, but I have thought about that already, just did not have the time/need for it in the end. Export/restore DB: Need that all the time. What I'd love to have is a db:push command but for the time being it was always easier and more secure to do that manually. Editing users/posts/pages etc: Never had that need, I'd be happy to hear examples. The only thing that I needed was changing/resetting user's passwords, which is possible via user:pass Cron jobs? How does that work? I'm doing that via my server control panel. Managing translations? That's another topic ? As far as I understand you could simply ship your duplicator module with some RockShell commands and once both modules are installed you would have the commands available to your rockshell CLI ?
  8. Which means 100 more manual steps on 100 other sites, or if there are 3 steps for each site that's 300 manual steps. The example is a little constructed of course, but I just hate these kind of tasks and I'm used to "git pull and it works" That would be great. Could you please explain why that is so risky or what the risk exactly is?
  9. What did you use it for? Also I'd be curious what others have been wire shell for? The most important and helpful commands in RockShell have been pw:install and db:pull and both seem not to be part of wire shell. On the other hand I've never ever had the need to do something like field:create or template:create so I wonder why they are there? Maybe that's something that's only useful if you are not using RockMigrations?
  10. Haha, turns out I only had to change one setting in RockShell to use colon instead of hyphen when loading the commands and it beautifully groups them into their namespaces ?
  11. Thx for your screenshot! Looks like we should maybe change the syntax for commands from dash (db-pull) to colon (db:pull) to get the grouping?
  12. I've just added a demo command that shows how one can add custom commands to their modules: https://github.com/baumrock/RockMigrations/commit/cce0d062d422a7e2b58815c61c5433eee0f65c71 It's also now possible to add commands to /site/assets/RockShell/Commands The idea was to build the foundation and make it super easy for others to contribute commands that we all need. I'm using it every day and alone the "db-pull" command is worth it. I've also updated the readme. Everything should be quite obvious now.
  13. Definitely RockShell! It's super easy to use, works great with RockMigrations ("php rockshell db-pull" is all you need) and it is extremely easy to create custom commands: PS: If somebody wants to get personal support by me and in return help writing the docs let me know!
  14. No problem, just tried to make sure we are talking about the same thing ? What do you find confusing/tedious? Maybe it's similar underlying things? If you do I'm happy to hear how it goes. I've not been using it for a long time as nobody ever showed some interest and for myself I've just gone the quick route and translate it in place. But that will hopefully change as soon as I release my new website ?
  15. That would be good to know for RockMigrations so we could highlight all non-default values in the export code section ?
  16. @psy I'm not sure what you are talking about ? The topic is about how to create and add translations to modules. If I understand you correctly you complain about the whole translation system in PW? My statement was solely about the process of getting translations into the modules folder ? I don't even have a problem with the translation via the PW backend, though I see that it could be nice to have a CSV file that you can send to a client and get back a translated file that you can then back import into the sytem. We have had that request once but then the client didn't want it. The problem with translating stuff in the backend is that you need to provide a login for that and need to make sure that all permissions are setup correctly and even then I heard from clients that this is "too complicated / I'm afraid, why does it not work like WordPress there I know how to do it". @teppo I already wrote what I don't like about the process. Imagine you have a module and you add one translatable string to that module. The steps necessary to push that translation into your modules folder are: Steps necessary when using RockLanguage and when RockLanguage is setup for your project (you have to do that only once per project): Once on the file translation screen, translate the text into the desired language and save git commit Now imagine you pushed your translation and then you add another word the other day... What would you have to do? I intentionally did not use the forums spoiler feature and I intentionally did not use "same as above" to indicate how much (unnecessary and repeated) work the current process puts on the developer. Imagine when using RockLanguage: translate the word git commit
  17. Hey @gornycreative thx, looking good. But could you please give a little more context until I have time to look into it?
  18. Hey @gornycreative thx for the question! This is something that I'd like to have but still haven't found time to implement. Maybe you could add a PR? I'm using wrapFields all the time and I'd love to have a setting to make it wrap fields in a tab ?
  19. This has been an issue for a long time but should be fixed since 2022, see https://github.com/processwire/processwire-issues/issues/1154 and let us know more details if anything of the suggested fixes (or simply a core upgrade) works for you.
  20. Do you include the uikit js file with the defer attribute? I think doing that can lead to a behaviour that you describe. So I'd try including the uikit js script in the head so it get's loaded before the content and that should hopefully avoid FOUC. That has of course the drawback that the site need longer to load. I can't say wether one way or the other is preferable but that's what I'd suggest to exactly identify the problem and then look for the best solution for your case.
  21. That sounds like an interesting setup. I'd be very interested in a tutorial/showcase if you want and find the time ?
  22. This is interesting. I thought it would be the other way round. Thought that ryan wrote that somewhere and also thought that as SessionHandlerDB is newer it has a reason that it has been built and would therefore be preferable over disk sessions. Do you have any more insights/references about your statement? Maybe I should switch ?
  23. Hey @gornycreative thx for the question ? I've setup automatic version numbers (https://processwire.com/talk/topic/28235-how-to-get-fully-automated-releases-tags-changelog-and-version-numbers-for-your-module-or-processwire-project/) not only for all my modules but also for all my projects. Also I have a staging and production system for many of them and there it is nice to know with version of the project is currently deployed. Maybe staging is at 1.2.3 whereas live is still at 1.2.0 Does that make sense? Should I add an explanation somewhere or change wording to make it clearer?
  24. Did a little more research on this ... https://susam.net/blog/timing-with-curl.htm The problem that I'm facing is that curl_multi_exec seems to completely mess up the timings mentioned in that post (and several others). As long as I do single curl requests the timings look reasonable and a page request takes around 200 to 300ms for a fast site and 900 for a slow one. With curl_multi_exec I get ranges from 4 to 10seconds from curl_getinfo($handle) ? So it looks like it's not so easy to create a little uptime monitor just with php + curl that works with more than a handful of urls.
  25. Ryan has pushed a fix for this in the latest DEV that seems to solve the problem for me ? @Ivan Gretsky does it also work for you?
×
×
  • Create New...