Jump to content

FrancisChung

Members
  • Posts

    472
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by FrancisChung

  1. Sounds like you need to keep track of the state of the children that have content using a separate list or array or whatever data structure you see fit. I assume each item is uniquely identifiable? If so, you can add to this structure all items that has the related item or content. I guess when you hit the logic whether you determine a parent/grandparent needs to be shown, you need to refer to this structure and do a membership test. i.e. Are any items in this list a child or grandchild of mine. If it's in this structure, you know you have to show it. If not, you don't have to.
  2. Just wanted to add that it's not just PHP that treats 0 as False and 1 as True. You'll find most (traditional) languages will do the same (at least the ones I've come across). There are some exceptions like Ruby & Lisp which treats 0 as true, AFAIK. If you're wondering why 0s & 1s ... well I don't have a definite answer myself as it's one of those topics that will divide opinion. IMHO I side with the view that it originates from Electronics & Boolean Algebra. But it certainly sounds like a question for Quora
  3. Unfortunately, this magazine has bitten the dust but they were gracious enough to have their entire back catalogue available for download. https://secure2.linuxjournal.com/pdf/dljdownload.php
  4. Maybe this could be of use? https://processwire.com/talk/topic/12776-pw-3012-support-for-extended-utf8-page-namesurls/
  5. @Ivan Gretsky / @Pete, Perhaps there should be a pinned item on the Getting Started section? Only took me two and a half years lol ...
  6. +1 for the search, Ivan. @pwuser1, the best way is to just get your hands dirty and build some websites that require php/js or both. That's what I did with almost no knowledge of either. Sure you'll get stuck a few times along the way, but that's what the community forum / Stackoverflow / Google/ Ivan's awesome search is for ...
  7. Yes, a simple tutorial would be a great starting point. If there's enough clamour / demand for it, you could consider doing some concrete implementations based on Chartjs. Exciting stuff.
  8. In the end, the client opted for Canvas. Thanks @psy for the suggestion and also thanks to everyone who responded.
  9. Great work @bernhard ! The only suggestion that comes on top of my head is maybe some built-in default charts? Also, you could look at the features list of other commercial data table products out in the market, (not just for PHP/JS but other areas like .NET etc) and see if there's anything interesting features you would want to incorporate into yours. Companies I can think of are : Infragistics, Telerik, DevExpress, Syncfusion etc. https://js.devexpress.com/ https://www.telerik.com/kendo-ui/grid https://www.infragistics.com/products/ignite-ui/grids-and-lists/data-grid https://www.syncfusion.com/products/javascript/ejgrid As for whether it becomes free or paid version, I'd certainly be happy to pay for it if I had a use case for it and it was within the budget constraints. It certainly could win clients over if you could show them your CMS has reporting capabilities that others may or may not have.
  10. Hi, I was wondering if people have any recommendation or share their experiences with websites that either provide free or commercial website templates? Thanks in advance!
  11. I did post a question to the community a little while back, but I've gotten 0 response as of date. https://processwire.com/talk/topic/17676-critical-a-tool-to-extract-the-critical-css-from-a-web-page/
  12. Is this something that you can truly ignore? AFAIK your Google Pagespeed score does impact your SEO rankings. Otherwise, I would love to heed your advice and ignore what Google has to say.
  13. For those (retro) gamers out there, GOG.com is having its winter sale on now. They're giving away free games with Grim Fandango Remastered being the first giveaway valid for the next 8hrs. https://www.gog.com https://www.ghacks.net/2017/12/13/the-gog-winter-2017-sale-is-on/
  14. I think there are solutions out there that precompiles PHP code into byte code that can be executed if you need that performance boost https://stackoverflow.com/questions/5900037/why-compile-a-php-file I haven't personally used any of them so I'm also not sure if there are downsides to it. But it's good to know that there are solutions out there you can turn to.
  15. I'm using MAMP PRO, which is running MySQL 5.6.35. As you might've already guessed, probably best to upgrade MySQL first. I also use MySQLWorkBench 6.3 Community Edition, if you're not using it already.
  16. @tooth-paste: I've just created a test database (test_db) on my local MySQL server and ran the script and it works. Have you tried creating a blank database, setting that as the default schema, and then executing the script?
  17. Have you tried just using utf8 instead of utf8mb4?
  18. If you have a working Apache webserver where the site runs without issues, you could try converting its htaccess file to web.config. Here are some resources : https://blogs.msdn.microsoft.com/azureossds/2015/04/23/converting-apache-htaccess-rules-to-iis-web-config-using-iis-manager-for-azure-websites/ http://cbsa.com.br/tools/online-convert-htaccess-to-web-config.aspx If you are able to browse to these locations, you should definitely try and have a look at the logs> https://stackoverflow.com/questions/6426375/where-can-i-find-the-iis-logs
  19. Do you know if the server was patched in the last month, and what sort of patches were applied? Are you able to get hold of an older backup of a server, restore that on a test server and see if that runs smoothly or not?
  20. I think it's not the number of repeaters but the number of items within a single repeater that could be the key here (I could be wrong here). So you would have 100 repeaters containing max 24 items per repeater. Unfortunately for you, the use cases I've personally used regarding repeaters are quite small in comparison so I'm not the best person to comment on this. Perhaps someone who has done something similar is kind enough to share his/her experiences with us?
  21. If the Timesheet page is limited to a day, how many entries could a user possibly input into the per timesheet repeater? Would be less than 24 , no? If you are not convinced of the repeater's performance, you can either 1) substitute it with page objects OR 2) build a site filled with mock timesheets & hours entered and try running some test queries on it and see if it's up to your expectations.
  22. I would represent each timesheet as a page and have the following basic structure. Home Projects Users Timesheets And any pages underneath Projects, Users, Timesheets represent a single instance of its parent. Maybe you can use the repeater(s) inside each Timesheet object to represent the different working hour sets if needed.
  23. Great chance to grab a Pluralsight subscription at 33% off at USD 199/yr The caveat being it is only for the first year of an annual subscription. Offer ends 1st of Dec, midnight MST. https://learn.pluralsight.com/offers/2017/black-friday
  24. If you can do offline / online comparison, that's probably worth it alone. Especially .htaccess comparisons .... What would also make my life complete is a DB comparison tool to work out what's change between versions. Does anyone use one or can recommend one here? (Sorry for the hijack ...)
×
×
  • Create New...