Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/12/2024 in all areas

  1. Go for it! The distro you choose doesn't really matter imo. Just use the one you feel most comfortable with. I'm full time on Linux since 2003 and haven't thought about switching back to Win or Mac ever since. Maybe Linux on Mac hardware ? Back in the days Ubuntu was released as free DVD via mailorder ? My journey went from Ubuntu to Debian Based Mint (LMDE) with Mate, then Cinnamon desktop. I finally settled on Arch (btw) for the last 8 years or so. Now I'm in the process of switching to NixOS for its deterministic setup approach and reproducability of exactly the same system on multiple machines. Lot's of fun if you're coming from a programming background. Anyways, as for graphics apps, I've been using a pirated CS6 in VMs for many years. Then switched to Photopea. Not doing a lot of graphics. But sometimes really am missing Illustrator, mainly for its text on path features. You can do it with Inkscape but it is fiddly as hell. Photopea is even better with that. File manager color labels: Nautilus on Gnome needs an extension for that from a custom PPA. If you feel comfortable using gnome extensions and packages from random PPAs out there, you could go that route. Gnome is great in itself. But, you already said it, might break easily when using extensions. Kinda like the Wordpress Plugin Hell. KDE does not have that out of the box as far as I'm aware. Found a 6 years old extension... Maybe you missed out on terminal file managers. There's a ton out there. I love yazi with vim style key binds (configurable through toml file). It has file colors/icons out of the box if you use Nerd Fonts in the terminal and feels really nice for a terminal application: You can disable snaps and replace them with flatpak which is a way better ecosystem given you have ample disk space. This depends very much on the hardware and distro used. You really should have had a better exoperience given that you bought a Linux optimized laptop. I have one, too (Tuxedo with AMD) and it seems I got lucky or they did a better job than your vendor. Never hear even the faintest fan noise. Then I have a 10 year old Asus ZenBook. Still running like a champ with very moderate noise under high loads. Linux is so awesome because of all the choices it gives you. Can be a bit overwhelming at the start, though. Man, I could talk hours on end about this topic. What a great way to procrastinate ?
    7 points
  2. Hi @Spinbox, Sorry for my slowness! I should have updated you earlier. I ran into some issues. In the end, I decided to stop trying to reinvent the wheel and use a well-tested library. I have now implemented the Money for PHP library. It is a great little library. I wish I had done this sooner. The delay is due to the many places in Padloper code that need changing. The bulk of these are in order line items and I have finished that bit. The rest is in whole order values (totals, subtotals, etc.) and discounts. I am hoping to be done by the weekend. Thanks.
    2 points
  3. I used different approaches on different websites, but wouldn't say that one is right or wrong. On the site https://techland.org/network/ I have chosen to display them as an infinite self-scrolling carousel, you can even hover over the logos to pause and go to the website of the partner (all done with pure CSS). Advantage: You don't get a long vertical list of logos. Disadvantage: You can not see all logos at once, but that would also be the case if you use a vertical list. On https://digital-summit.eu/de/partner/ I used a static vertical list on mobile.
    2 points
  4. 2 points
  5. Agree with @BrendonKoz. A vertical list on mobile is boring and no one scrolls on a carousel. The thing that has worked best for me is to shuffle the list. This has several benefits: No sponsor can complain their logo isn't visible - all have an equal opportunity Page content is constantly fresh which keeps the search engines happy Maybe on mobile have a small number of random logos on the home page/footer and a button linking to a sponsor list page. Have clients take this one step further and give each sponsor a dedicated page after clicking on their logo. Again this has worked well for SEO especially when the sponsor shared their page on their socials.
    2 points
  6. System templates have the Template::flagSystem flag. So the "proper" way: $non_system_templates = new TemplatesArray(); foreach($templates as $template) { // Skip templates with the system flag if($template->flags & Template::flagSystem) continue; $non_system_templates->add($template); } The lazy way that is likely to work 99.9% of the time: $non_system_templates = $templates->find("flags=0"); For some reason templates that are used for the custom fields for files/images feature don't have the system flag, so you will have to exclude those separately if you have any. The name of such templates starts with "field-".
    2 points
  7. How about this? https://processwire.com/modules/process-media-lister/
    2 points
  8. Thx! I knew this must be possible. I think I even saw this problem recently, but forgot ? .modal-buttons { display: flex; flex-wrap: wrap; gap: 5px 1rem; > button { flex: 1; min-width: fit-content; } } Solved that one as well! Im using an absolutely positioned (left-0 bottom-0 right-0) wrapper inside the button. There I use flex + flex-wrap so that elements stack on top of each other if there is not enough space. And then I use overflow-hidden on the button to hide overflowing words ?
    2 points
  9. For me it was like this: It's hard for a week or two. Another 2 weeks to feel more at home. After that it was fun. Noone forces you. In ranger (CLI file manager) you might be better of using them but you always can change them or add arrow keys. For me arrow keys win most of the time. I didn't feel the need to learn HJKL. I know about it, that's enough. The real fun, especially in Neovim, will be the keycombos like ciw (change in word) or diw (delete in word). These are game changers.
    1 point
  10. The larger picture of why I'm doing this is to overall De-Google, De-Microsoft and De-Apple my life as much as possible (surely there will be exceptions). It's not about saving money or privacy (those are very very minor points), but personal optimization, control, me being ready for it, Linux desktop having become really great in the last X years, and taking a stronger liking to FOSS and self-hosting.
    1 point
  11. Going back to finding the best file manager, I think I'm going to settle on Konqueror (I tried about 7 different ones). I'd prefer to stick with a GTK app, but all the GTK file managers are just too simplistic. I need my tab state saved and none of them do that except for Konqueror (well maybe some do but it's outweighed by other things I prefer to skip like dual-pane file management). KDE apps tends to be advanced user oriented, and in this case, the deep customization capability of the app really shines for what I need. As for TUI and CLI apps, one route I've long considered is switching to terminal-based apps for almost everything and being as mouseless as possible. Before I do that though, I would first want to become comfortable with Neovim and Vim-style key bindings. The problem with that however is I don't type "correctly" (fingers on home row, etc.) so fixing that after 30 years of typign my own way will be... fun. Small incremental steps for now, but after many years of experimenting, I think the "year of the Linux Desktop" has arrived for me.
    1 point
  12. All RPB users please make sure that you remove this line from your Accordion.php block (if you are using it). It will be removed in the installation files on the next version, but if you copied that file you need to remove it manually:
    1 point
  13. That's correct. I would look for all pages and after that check for their templates and take those to modify. Different route and probably not the best way to do it - compared to @Robin S solution.
    1 point
  14. I'm not sure if my solution would really work. Maybe there'd be some surprises with that approach as well ? But I know that working with the offcanvas component can be a pain: https://github.com/baumrock/RockFrontend/blob/main/uikit/offcanvas.less Good luck ?
    1 point
  15. I'd make the offcanvas white bg + black text and for the second offcanvas i'd use tailwind bg-black + text-white.
    1 point
  16. On second thoughts - hasparent is a page selector isn't it rather than a template selector? EDIT: Can confirm this works perfectly for my scenario - thanks for your help @wbmnfktr and @Robin S: $templates = $this->templates->find("flags=0"); Now I know of the existence of the template flag system this is really handy. For reference for anyone readying this in the future, checking the database I can see the standard templates all have flag 0 as implemented above. The admin repeater templates are all flag 8.
    1 point
  17. Thanks both, this all makes sense - I knew there would be a way I was overlooking! I think in all likelihood I'll use a combination of the 2 suggested selectors as there's no reason for me to touch anything in the admin folder: $non_system_templates = $templates->find("flags=0,!hasParent=2"); I need to make sure I also exclude repeater templates. The reason this issue came up is because I'm adding a repeater field, and it got added to the repeater templates which caused an infinite loop when adding a repeater item! ?‍♂️
    1 point
  18. Hi @kongondo, you have any updates on the fix?
    1 point
  19. Ah, thanks for checking! I'll keep an eye out for the new version.
    1 point
  20. You could try the latest dev (3.0.239) to see if it's an issue that has been fixed since 3.0.229 was released. If it's still present in the latest dev then please open a GitHub issue so Ryan can investigate.
    1 point
  21. What about excluding all pages that have the parent with ID 2 - as that would be the admin? pages->find('!hasParent=2, template=all|my|templates')
    1 point
  22. Here! Moved away from Mac over a decade ago and went with Windows for quite some time. Then about 6+ years ago I made the switch to full-time Linux. Never looked back. Enjoyed distro-hopping between Ubuntu, Fedora, Manjaro, Debian, Arch, Zorin and finally settled with Ubuntu because of the broad support even for tools like ScreamingFrog (.deb and .rpm). Moved away from Gnome to i3wm to have a super minimal environment. Everything works just by pressing keys - from moving windows around workspaces, opening or starting apps, to window tiling. I am a happy camper now. ? As you are on Ubuntu as well I suggest looking at deb-get - a little helper to install most common apps without hunting down the .deb files: https://github.com/wimpysworld/deb-get/blob/main/01-main/README.md You may have seen over on X/Twitter the journey of DHH He released his very own setup as a script to make tons of changes, installing software, fonts, and all kinds of stuff. See here: https://x.com/dhh/status/1798466733222838758 His journey explained here: https://x.com/dhh/status/1799185008378171885
    1 point
  23. From the module's support forum topic, it seems as though there's an outstanding issue at the moment, and an update to the module is needed due to changes behind the scenes with Google. I tried installing the module and testing it out quickly to see if I could reproduce the issue, but my API key/account doesn't have billing enabled, which is required, so I unfortunately couldn't provide more insight than the link to the forum topic.
    1 point
  24. In my experience: Just show them all, on first sight, without need to tap, even if it is ugly ? If not, you will inevitably have to deal with one or more logo partners deeply dissatisfied for lacking visibility. "No one will tap 10 times until they arrive at our logo..." Just my 2cents...
    1 point
  25. Long time Linux user here. Over 20 years since Fedora Core 1. I am using fedora 40 now. Very happy.
    1 point
  26. Yes, I switched from Windows to desktop linux in 2004 and have not regretted it. I do have a Windows VM for running one legacy app, which I boot once every 2 months and run for a few hours. Apart from that I also use DDEV to run local development containers (thanks for the pointer @bernhard) and am using the Cinnamon desktop - which I do prefer over gnome.
    1 point
  27. Here is a CSS-only solution to this exact problem from Kevin Powell:
    1 point
  28. Ok, so I decided to scratch my own itch on this one... I need to handle WebP's which include transparent regions so I've created a modified version of the @Robin S module (https://processwire.com/modules/webp-to-jpg/) but which allows you to choose between PNG or JPEG as the target format. https://gitlab.com/applab/pw-uploadwebp
    1 point
  29. This week ProcessWire gained powerful new tools for finding pages and controlling how they are loaded. If you like to maximize performance and efficiency, you’ll like what 3.0.172 brings— https://processwire.com/blog/posts/find-faster-and-more-efficiently/
    1 point
  30. Hi @ryan and thank you for such great and in my case in-time update. A couple of questions: Do these codes do the same thing or they differ internally? $items = $pages->find("title|body*=$q, field=title|summary"); and $items = $pages->find("title|body*=$q, [ 'loadOptions' => [ 'joinFields' => [ 'title', 'summary' ] ] ]"); ---------------------------------- I remember that there were some issues with autojoining of multi-value fields with 'loadOptions' option in find method (like page reference or options fields etc). Are there any changes? ---------------------------------- I have found that if I specify a field that does not exist "findRaw" method starts to join default page properties: And without ---------------------------------- What is the right way to handle the situation when we need to autojoin some fields only for the current page. For example, SEO fields in most cases used only on the page object of the current page, but if I set these fields autojoin then than they will be autojoined on every find call, so then we have to specify that we don't want to join these fields in 'joinField' options or via newly added options that also is not very handy. I was trying to set autojoin flag for these field in init.php and remove it in ready.php like // init.php fields('seo_title')->addFlag(Field::flagAutojoin); fields('seo_description')->addFlag(Field::flagAutojoin); fields('seo_og_title')->addFlag(Field::flagAutojoin); fields('seo_og_description')->addFlag(Field::flagAutojoin); //ready.php fields('seo_title')->removeFlag(Field::flagAutojoin); fields('seo_description')->removeFlag(Field::flagAutojoin); fields('seo_og_title')->removeFlag(Field::flagAutojoin); fields('seo_og_description')->removeFlag(Field::flagAutojoin); But in this case, there is no way to check does current template have these fields as on the "init" state template and page variables are not available, so all templates have to have these fields or we will get an error. Maybe there is something already that can help?
    1 point
  31. Sorry, I mean "template engine" in the generic sense of building the final view that users see and the process for generating that. I'm not talking about a language like smarty or anything like that. Sorry, I'm not really up on all the lingo and proper terminology for these things. I'm just wary of unnecessary complexity, that is all. What you do in your own ProcessWire install is none of my business After all, the beauty of PW is it's flexibility and the fact that it doesn't force you to do things a certain way. I just know that I would have been turned off if the workings of the PW templates weren't immediately clear to me when I first found it. This is from someone who came from building sites with pure html, pages, css, and a few php includes, so that is the world I'm from, take it or leave it
    1 point
  32. Hi Soma, thanks for your thoughts. I can see how there are plusses and minuses to each method in terms of flexibility and scalability under different scenarios. For me personally, I haven't encountered any of the issues you mention, but most of my projects don't use more than 5 or 6 templates with actual output. There are really so many different ways of structuring your site in ProcessWire that it's hard to make comparisons apples to apples. My main concern with the delayed output is that it introduces an extra step that obfuscates how ProcessWire works and might turn new users off for that reason. And, two, because it requires you to write most of your html like this: $mainOutput .= "<p>Some stuff</p>"; $mainOutput .= "<div>Some more stuff</div>"; Which--for a front end developer--is just yucky.
    1 point
×
×
  • Create New...