Jump to content

FrancisChung

Members
  • Posts

    472
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by FrancisChung

  1. Hi there, I was wondering if anyone has any tips for Multithreading in PHP 7. I've done some preliminary research and not sure which of the following I should be using? 1) Use built in Thread Object in the PHP Language 2) cURL ? https://www.reddit.com/r/PHP/comments/3a2yyu/async_in_php/ 3) This exec hack https://medium.com/async-php/multi-process-php-94a4e5a4be05#.uiboo7tro 4) Some 3rd party Library I'm not aware of? Icicle? I'm implementing a new search that searches the title, contents of the article and the author names. It would normally be 3 sequential searches followed by formatting the results before outputting. Would like to implement some asynchronous searches here and keep it if it runs faster than the sequential counterpart. Thanks in advance!
  2. Would be interested to hear any Postman anecdotes from people that have used it.
  3. VSCode, VStudio, Jetbrains Suite of tools, Bitbucket, Slack & Trello are invaluable tools of the trade for me.
  4. I guess you had a deadline of sorts. But still, I'm always weary of showing anything that is not either complete or falls below what I think the Client expects. Been at the wrong end of it too many times for no reason of my doing. .... or help out with (mostly) constructive suggestions ...
  5. You should use sites like Google's Page Speed Test or Web Page Test to test how fast your sites are: I think currently the unoptimised images are killing your site's scores but appreciate it was rushed out and not optimised. https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fzonedeskidelestrie.com%2F&tab=mobile http://www.webpagetest.org/result/161230_DH_MDH/
  6. So many CMSes in the market! I always thought one of the reasons why Processwire still remains relatively invisible is because current AFAIK there aren't any courses or books available for Processwire (Correct me if I'm wrong)? We have some great introductory tutorials on the Processwire site but beyond that it's a lot of trial and error and searching / asking through forums. Which is not a bad way to learn, but I don't know if that's everyone's cup of tea. To this day, I think there's a big gap in the market in terms of a book or a course that shows you how to build an example site using Processwire from Scratch with empasis on Wordpress users that might look to move on? I'm guessing Packt Publishing and Udemy might be best candidates for a commercial outlet as they seem to have content for lesser adopted technologies. If no one is willing to publish it, then just having it as sale through the shop or even free would be great for more people to try out. Not all Developers would be willing to jump through hoops to learn so having a book like that would at least give them a reason to try it out. I understand writing a book or creating a course is no easy task and quite time consuming, but I'm sure even a community lead joint effort it wouldn't be too difficult ...
  7. Also, is there a standardised "Powered by Processwire" button or link anywhere I could use?
  8. Apologies if it was mentioned before here (I speed read through the contents), but what about making certain plugins like Wapplyzer and similar tools easier to detect that the site is running Processwire rather than JQuery + Apache (or Ngnix). I've just tested it on our site and that's what it returns. As a web dev newbie, I'm always interested to see the technology stack of sites I visit so I rely on tools like Wapplyzer to give me an approximation. Word of mouth is good, but also is piquing curiosity amongst the dev crowd? I guess you'll need to contact the authors of these tools and see if they're willing to cooperate ...
  9. I hope people see the funny side of it
  10. Thanks Kongondo for the information. I will take a look.
  11. Is that an undocumented feature as I can't see it on the cheatsheet?
  12. I've been asked to look into migrating an existing site into Magento & Stripe. I haven't mentioned to my client whether he would consider Processwire because I wasn't sure how to do the accounting side of things using PW. He currently has a bespoke site (PHP / MySQL) and 1 of his biggest problems is that there are some bugs with the accounting side of things and he has to reconcile his accounts manually. As much as I like PW, I don't know how easy it would be generate various sales and accounting report using PW. The only way I can currently think of is to store each sale as a page and I would have to write various get functions with filters and loop through them to get totals. I never thought I'd say this but I'm missing SQL right now Any thoughts, suggestions or opinions would be welcome here.
  13. Definitely an issue with PW which I've just raised here. https://github.com/processwire/processwire-issues/issues/114
  14. There seems to be an odd issue with XDebug and Processwire. I have raised this bug report. https://github.com/processwire/processwire-issues/issues/114
  15. Hi Horst. thanks for the post. I was wondering about the above as I had to do this to work? if($u) { wire('user')->user = $u; }
  16. Does this work if you're using multiple namespaces on your project? I couldn't get it to work otherwise ....
  17. Hi @horst, How do you login to PW via the API? I don't see a login method of any kind on the API Cheatsheet? Never mind, I just saw the login method in the Session object
  18. I made a branch of our site that has the PW3 upgraded running on PHP7 (current site runs on PW2.5.x and PHP 5.5/5.6). These are the things I had to change to get it working, but your mileage may vary slightly depending on which core functions you've used. wire(page) -> \Processwire\Wire("page") wire(pages) -> \Processwire\Wire("pages") wire(config) -> \Processwire\Wire("config") wire(sanitizer) -> \Processwire\Wire("sanitizer") \PageArray() -> \Processwire\PageArray()
  19. Hi, I'm trying to write a bash script that automates our release procedures. 1 of the things I've written is a php module that clears the Procache settings and resets. The php module runs if I call it from a browser but if I call it from a bash script I get a connection refused error. Error: Exception: SQLSTATE[HY000] [2002] Connection refused (in /Users/FrancisChung/Sites/Develop/wire/core/ProcessWire.php line 293) This error message was shown because: you are using the command line API Error has been logged. Assuming this is a security precaution, I was wondering if there is a different way around this? Perhaps write a container php module that launches the bash scripts instead?
  20. Well the top 2 most popular CMS in Germany are Wordpress and Typo3 respectively according to this site, although I shouldn't believe the numbers too much because PW is not even ranked http://www.cmscrawler.com/country/DE And if you've ever used either of them, you'll reach a point where you'll be frustrated either by inflexibility, increased difficulty in maintenance or security issues and you'll have to migrate and something like PW would be like a breath of fresh air in comparison. I think @lisandi sums it nicely in this post.
  21. Hi @adrian, @Nico Knoll Is there anything happening with this project?
  22. I think I had to manually deploy from memory and ran into similar problems. Had to get the Host Site Support to fix my .htaccess .... So from then on, i just rsync between deployment machine <-> Webhost and not touching the .htaccess file (Making sure there's backups of that too)
  23. FrancisChung

    14.000 Topics

    How did my name get in there ....
  24. Just as a quick fix, you could try importing / deploying another tool like MySQLWorkBench if you're manually doing it via scripts?
  25. Don't forget the index.config.php file across from your root directory if your previous installation is using one.
×
×
  • Create New...