Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. Anyone got xdebug + WSL2 + DDEV + VScode working please? I have read the tut in the DDEV docs but it is not working for me. In VSCode the Xdebug session starts. On the website Xdebug doesn't kick in. After a while, VSCode breakpoints turn transparent and hovering over them says 'invalid breakpoint' or something like that. I did attempt all the WSL-related troubleshooting in the DDEV docs, e.g. the telnet connection. Was hoping for a question here. After a while VSCode says port 9003 closed. Sometimes I see notifications from ProcessWire (e.g. headers already sent) in the debug output. I am not sure whether and how to append the port number 9003 to the ddev url. E.g. mysite.ddev.site:9003. If I do this, the website hangs (chrome website cannot be reached). Any ideas? Thanks!
  2. For anyone reading this, I have been working with @Spinbox to implement a webhook solution + other backup (of session) solution. It is currently being (user) tested and has been implemented as Padloper 011. Will keep you posted!
  3. I have recently had the same experience. In my case it looked like the culprit was DevSense PHP Tools. I gave up on it but the problem persisted with PHP Intelephense. Finally I gave up and went back to local development and set up a CICD with GitHub Actions which watches my main branch and pushes stuff to the server when main branch is updated. Works a treat!
  4. Hello. Thanks for your work and report. Welcome to the forums.
  5. What version of DDEV are you using? I know there is a recent update, 1.23.5. I am wondering whether this could be responsible for the slowness? I am on version 1.23.4 and have not upgraded yet (and running in WSL2 as mentioned earlier).
  6. I see, thanks. In my case, the consideration is mainly if it can run an LLM locally without 'much fuss'.
  7. M4 Pro beyond your budget or you have no need for the beast?
  8. Dude! Now you've got me really, I mean really, interested! Aside from the 'marketing' talk (in the announcement), this little guy looks like it packs a powerful punch! All that and managing to keep it cool? Hmm. We are seriously OT-ing, sorry, but are you able to please recommend a 'portable' screen to go with it? Thanks!
  9. Actually you don't. Make sure you are not connected to the internet and it will ask you if it can create one at a later time or skip or something like that 😁. Hmm, sounds very strange! 6 hours! Even with a slow internet connection this still seems very odd. I use a debloated Windows but that alone cannot explain why I haven't experienced such a long install time as you did. Granted, you had to install other stuff as well.
  10. No, I haven't. I tried a Mac once and the app window buttons location on the left (instead of the right) just confused me πŸ˜ƒ. Thanks for the suggestion thoug.
  11. And this is good time to say thanks to @bernhardand others here for making me look at DDEV! For some reason I used to confuse it with Devil Box. DDEV is great! I have it working for different sites some of which are in a multi-site setup with different databases but one ProcessWire.
  12. Works fine for me. What 'didn't work'?
  13. Thank you sir! Seems to work fine as below: <?php namespace ProcessWire; // site/ready.php // HOOK $this->addHookBefore('PageFinder::find', null, 'hookBeforePageFinderFind'); function hookBeforePageFinderFind(HookEvent $event) { $selectors = $event->arguments(0); // AMEND SELECTOR $selectors->init("has_parent={$myDynamicID}"); // Populate back arguments (if you have modified them) // DON'T THINK THIS IS NEEDED AS IT STILL WORKS!? $event->arguments(0, $selectors); } Will do more tests and report here if I come across issues. Thanks!
  14. Hi, I am trying to hook into page finder to insert a field=my-value that should always be added to all page finds/gets. my-value is generated dynamically hence I cannot hardcode this. I have searched and cannot seem to find anything in the forums. I have looked at DynamicRoles for inspiration but didn't find anything clear. I have seen PageFinder::getQuery and PageFinder::getQueryAllowedTemplatesWhere but not sure how to use any of these. For instance, if I needed to add a has_parent=1234 to all find/get/findRaw/getRaw selectors, how would I do it? ps: This is not about roles and permissions per-se. Just an easy way to constrain finder at the db level. Thanks!
  15. My Linux adventure has come to a swift end! I don't know what it is with me and Linux! There's always something. I spent most of the weekend battling a 'Unable to access location Error mounting /dev/sdb1 at /media/username' error! Not sure if it is an Ubuntu 24.04 issue but it seemed to be related to Visual Studio Code. The other week, the system would hang and I would have to hard reboot it. I thought it was my updates (this was before Omakub round 2). This weekend, I couldn't access one of my drives. The system froze. I fixed it. It happened again, and again, and again. SO et al. threw up all sorts of reasons, ranging from opening a folder with a .git folder in VSCode (??!!!) to other myriad possibilities. In the end I gave up (tick tock, tick, tock) and back to Windows we are! This time I actually felt sad πŸ˜ƒ. I really liked Omakub. I also really enjoyed developing in a Linux machine. All is not lost though! I really like DDEV and they suggested, if on Windows, why not give WSL a chance. So, I did and boy!πŸ™Œ. The thing just works! WSL2 + VSCode WSL Extension + DDEV just rocks! Installing stuff with winget also makes me feel all nerdy and Linuxy! πŸ€“. All is well 😊.. Better get back to reality though; I mean, work's only delayed by a couple of months, sigh. ..🀫.
  16. Hey @Spinbox, I am afraid I don't understand πŸ˜€. Could you please give me a complete example including whether shop prices include tax + whether the product you are testing with is taxable. Thanks. Please note that tax is applied on the final net price, i.e. after all discounts have been deducted. Secondly, if prices include tax and a discount is being applied, we first have to compute the price of the product without tax, then apply the discount on that net. Finally, we add tax to the final, discounted price.
  17. kongondo

    Daily Dev

    I hear you. I like it since everything is in one place. At a glance I can see what's going on and decide whether to dig in or not. I have interests in other techs and tools outside PHP and it gives me a nice curated list about those topics. But I agree, it can still be overwhelming πŸ™‚.
  18. Sure πŸ˜€. The key thing is that I am coming from Windows (but also that have tried so many Linux distros before). A one-liner that sets things up for me is great! It is beautiful right of the box, fast and installs the tools I need. Sure, I could have configured things myself but that means hours of research. I want the cake now and later, if I want, I can try and find out how the cake was made or change the recipe. In addition, the name (and by extension the company) behind it. It gives me confidence that he has done the research behind his configuration decisions for Omakub. Then there's the manual. It is concise and well-thought out. It has helped me discover tools I didn't know existed such as Xournal++ and a bunch of shell tools. Finally, if I am feeling adventurous, the whole thing is on GitHub πŸ˜€.
  19. Hey @DrewPH. Welcome to ProcessWire and the forums. Thanks for sharing your exciting journey with us! πŸ™‚.
  20. kongondo

    Daily Dev

    Anyone using daily.dev? I have been using it for a few weeks now and liking it very much!
  21. Hey @Ivan Gretsky and @gebeer, Thanks for chiming in all sorted now - more below! True. Main issue for me is time 😁. I have the tenacity and the curiosity; just not the time to be fixing and fixing. It was a very pleasant experience. I tried it (installed it) but it just wasn't Omakub πŸ˜€. Apart from its awesome aesthetics, Omakub just feels snappier. So, I went back to Omakub + Ubuntu. This time, I brought a friend; Timeshift! I did a fresh install of Ubuntu, then added Omakub. After that I went crazy with Timeshift, creating snap shots after every little tinkering. So far so good - system is up to date and chugging away smoothly. Thanks again!
  22. So I decided to take the plunge. Laptop was having issues (Windows 11) and decided to try Ubuntu + Omakub! I had been trying this out for a few days. Had decided to run CapCut in a VM whenever I needed it. Omakub is amazing! Only annoying thing was my CAPSLOCK being bound to emojis! I changed this. Yesterday, I was preparing to post here to thank you guys for 're-introducing' me to Linux for the umpteenth time.. I was going to tell you I was even considering Ubuntu + Omakub for my main PC. I was going to tell you that, thanks to @bernhard, I have found DDEV (more on that later in this thread). Amazing! Meanwhile, a system update was running in the background. It was done before I could start my post. It asked to restart the machine. I wasn't expecting this; on Windows, yes, this was common place. I thought Linux doesn't need this? Anyway, I obliged and boom! It was all white after that! Crash! I mean, what??!!! I AM THE SYS ADMIN!!! Suffice is to say I went to bed not happy! Googled a bit this morning, tried a few things, nothing worked! I always end up on this white screen! At least I learnt Ctrl+Alt+F3! I don't think the error has anything to do with Omakub. It is crashing at some 'color.d' something from what I can see. Might be related to video/graphics. Help, anyone? If I cannot resolve, I'll try a fresh install. Otherwise, looks like back to Windows 11 we go. At least 'it works - mostly'. Thanks. Ubuntu 24.04.1 LTS
  23. Hi @Pete, Defo! And carefully! πŸ˜€. Yes. But we need to come up with a way to have your custom tweaks applied without touching Padloper itself. Are you able to capture these in one document? Even a git diff would do, but an annotated document is better, i.e. did this here, because...etc. Thanks!
  24. Hi @Spinbox, Sorry for delay. Example posted here: Any questions, let me know. Thanks.
  25. Sorry, my bad. Yes πŸ˜€. I'll post an example later today. Sorry, still working on docs.
Γ—
Γ—
  • Create New...