Jump to content

wbmnfktr

Members
  • Posts

    2,110
  • Joined

  • Last visited

  • Days Won

    51

Posts posted by wbmnfktr

  1. And then this happened...

    image.png.78d3356e173475ebf2d86ff2512ad9f5.png

    and of course ... Cursor got an update as well.

    image.png.62e04ea79e807f554cac06472977e5cf.png

    • Like 1
    • Thanks 1
  2. I have to play with this for sure.

    One thing you might want to consider:

    • add some kind of a blacklist for brands, special topics, and words
      • e.g.: adult entertainment, gambling

    You don't want to see your domain close to spam, scam and some topics. I guess.

  3. Tried DeepSeek with Cline in VSCode on some ProcessWire tasks and I did way better than Cursor/Windsurf with Claude Sonnet - for whatever reason.

    When using the R1/Reasoning model you get some nice concept work done prior to the very first line of code.
    More expensive via API but still way cheaper than Claude, ChatGPT, and especially the reasoning model from OpenAi

    Screenshot shows this attempt before I found Cline - tried going the old copy/paste way.

    image.thumb.png.ddb999c1f9bfecce514109d2c06134e1.png

     

    So much to play with but so little time right now. Almost don't know where to start and what to use anymore.

    • Like 1
  4. I have to play with this. I always wanted to rebuild the behaviour of an app (posterous or something like that?) back in the Web 2.0 days which was fed just by emails.

    This seems like a very good fit.

  5. Shouldn't it be more like this:

    class HomePage extends DefaultPage {
    	public function __construct(Template $tpl = null)
    	{
    		parent::__construct($tpl);
    		$this->lang1 = $this->languages(); // added ()
    		$this->lang2 = wire()->languages(); // added ()
    	}
    
    	public function lang(){
    		return $this->languages(); // added ()
    	}
    }

    Can't test right now but the docs say so.

  6. 23 minutes ago, benbyf said:

    should i delete them both to reset?

    Yes, please. The LazyCronLock.cache means there was an issue and LazyCron was stopped. You can safely delete both files in your DEV environment. Take a look at them. There are just timestamps in them, so LazyCron can check on those.

    Using ready.php was for testing purposes only. LazyCron will work from within a module. I use that a lot for maintenance tasks.

    • Like 1
  7. Do you have a LazyCron.cache file in /site/assets/cache?

    Maybe it's locked or corrupt or something that somehow prevents LazyCron to check and use that file and therefore doesn't work at all.

    Oh... and maybe try using that hook in /site/ready.php and go from there.

  8. On 12/18/2024 at 11:20 AM, Alpine418 said:

    How do you back up your database dumps? For regular backups of your dev environment?

    I was thinking of something like a git hock and mysql command to dump the DB first into the root dir of the webproject and then make a commit aka push request.

    As this isn't a real workflow - means: I handle projects differently for that matter.

    For now to make it short - the decision process:

    • How valuable is the data?
      • Just fields, templates, and settings
      • Real content (products, articles, actual data)?
      • Is the content worth more than the whole project/website in the long run?

    The more important the database content is, the more saving points exists and the higher the interval is, even in development mode.

    • Super important content (product data and content) will be backed up daily and when a user logs into the backend - external backups, server side, and Git
    • Less important content/data: each time a user logs into the backend - server side, Git
    • [...]
    • During starting phase most often only when heavier tasks and steps on fields, templates occur - which then will end in Git with before and after dumps.
    • Side projects on the other hand... some never got a backup besides those created during the update process of ProcessWire. 😂
  9. I use Git in the project root as well, and only put things in .gitignore I really don't want to have in that repo.

    Best case scenario is that I have the full project, besides database dumps, in my repo.

    # .gitignore
    .ddev/
    site/assets/backups/
    site/assets/cache/
    site/assets/logs/
    site/assets/ProCache-*
    site/assets/pwpc/
    site/assets/sessions/
    site/config-dev.php

    Database dumps are a thing of its own. Managed projects are backed up quite often, long time projects with not that many updates will be backed up once every 3 months. From un-Managed projects I keep only the latest version I worked on - most of the time the release day or when something was updated.

    • Like 2
  10. Find yourself a great dev environment you understand and can use to create a new ProcessWire instance super easy. This is key. Based on what I saw the most complicated part seems to be the registration/and what follows afterwards (which I of course can't see). You need to find out if you can do this with PHP and PW on your own, with some community modules or the LoginRegisterPro module from Ryan.

    Everything else seems to be basic content with an advanced structure. Maybe some specials for logged in users but this should be quite easy to do the moment you have that registration part set up.

    Depending on how fit you are with programmig and PHP a little crash & burn session over the weekend should be a great starter for you to find the issues and questions you need to have answered to get your site moved to ProcessWire.

    I'm not a programmer, still I can do a lot.
    Sure, I need LoginRegisterPro and have to ask questions here and there, but ProcessWire is still the easiest tool I ever used for that.

    Nowadays maybe even use Cursor, Supermaven, Claude Sonnet, and other AI tools to assist you. Feed them the ProcessWire docs and you can get a great headstart.

    In the meantime: we are here and happy to help

    • Like 1
×
×
  • Create New...