-
Posts
1,360 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
I you like white themes, there is one cool theme : Github Plus + Material Icons
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Backup all your work on an external hard drive, sync your data in iCloud, do a Time Machine Backup, then restore your macbook. Once restored, change the default DNS settings to the Cloudfare/APNIC own (1.1.1.1 and 1.0.0.1), try your wifi adapter by downloading a large file (like an OS Linux ISO file), or even torrent files. If everything work fine, its time/the occasion to prepare your macbook with all the dev env, apps and copy/organize back your works files. Once finished, do a Time Machine Backup before doing everything with your mac. If it didn't work, I would follow @pwired advice to buy a new wifi adapter. ConEmu, even on Windows Server.
-
I am going to ask on StackExchange but I got another (magic) find, which give incredible performance on InnoDB schema. Adjusting `innodb_buffer_pool_size` (it need to be calculated) give better result than those in the above screenshots... The query to calculate the size to set based on the current data set : SELECT CONCAT(ROUND(KBS/POWER(1024, IF(PowerOf1024<0,0,IF(PowerOf1024>3,0,PowerOf1024)))+0.49999), SUBSTR(' KMG',IF(PowerOf1024<0,0, IF(PowerOf1024>3,0,PowerOf1024))+1,1)) recommended_innodb_buffer_pool_size FROM (SELECT SUM(data_length+index_length) KBS FROM information_schema.tables WHERE engine='InnoDB') A, (SELECT 2 PowerOf1024) B; So for my DB I needed to set the var to 2GB (still not 100% sure) but the result are there - lower than in my previous screenshot : From 18s to 4s : From 96ms to ˜6ms : ? ?
-
@gregory @Jonathan Lahijani I tested it (but not with all the Custom Embed option), it works with the Custom Embed options C and D. Use the following hook : <?php namespace ProcessWire; // the captcha module $captcha = $this->modules->get("MarkupGoogleRecaptcha"); // hook FormBuilder $forms->addHookBefore('FormBuilderProcessor::renderReady', function ($e) use ($captcha) { $form = $e->arguments(0); // do some custom check here ... if ($captcha->data_recaptcha_type === 'invisible') { // invisible captcha $captcha->render($form); $f = $this->modules->get("InputfieldHidden"); $f->attr('id+name', 'login_submit'); $f->value = 'login_submit'; $form->append($f); } else { // recaptcha v2 $f = $this->modules->get("InputfieldMarkup"); $f->value = $captcha->render(); foreach ($form->children as $field) { if ($field instanceof InputfieldSubmit) { // find the submit button $form->insertBefore($f, $field); // insert reCAPTCHA before the submit button } } } }); I will test later to see if it's possible to embed the captcha into an IFrame.
-
Thanks for the update - Would you have an idea why my queries are running so much faster on mysql5.7 than mysql5.6 ? What is your version on your dev platform ? Did you tested the two server version on your side ? Check. I switched my MySQL server version on MAMP from 5.6 to 5.7 and when I clicked a button which execute quite big query, it was, oh wow, instant. Switched back to 5.6, the query took like 8 to 12 52 seconds ? Still, I didn't investigated what's going on, but result... and the same happened on a Windows Server with MySQL 5.6/5.7 upgrade. Edit: Another one looking through millions of pages...
-
@Robin S Thanks for trying it, glad you like it ! The Process module is not really required because Duplicator could be, if needed, only run from CRON task. The link to he process module should had been removed if the process module was not present, just checking my todo list, it was into. A known issue when restoring a package : So for restoring it, we need to manually move the site files out of the container dir. About AmazonS3, @Rudy asked the ability to upload package on sub-bucket (I forgot this one, sorry Rudy!) : https://github.com/flydev-fr/Duplicator/issues/1 I will try to code theses corrections soon so the V1 will work as expected, but I really want to begin to work on the Duplicator V2 implementing encryption and handling gigabits sized databases. Want To Buy time or vacation ?
-
You should try to use the sanitizer in the way to remove entities and validate the selector : [...] $selector = "title%=" . $sanitizer->selectorValue($sanitizer->unentities($search_term)); $result = $pages->find($selector); [...] https://processwire.com/docs/selectors/#operators https://processwire.com/docs/selectors/#sanitizing
-
-
Hey @adrian, it is possible to export a panel's infos or a global diagnostic to a text file in the goal to compare for example, two site-dumps with a diff tool or even a text editor ? I mean, at this moment I am comparing load as others speed load informations of a big site between the prod and dev server - switching my browser tabs to do comparisons - and so I was thinking that I would like to generate/export a TracyDebugger report with all the diagnostics to be able to easily compare them on my computer. If this feature is implemented, please tell where to find it, I can't see it ☺️
-
shouldn't be ? : [...] $finder->sql = "SELECT ska_City AS city FROM ($sql) AS tmp GROUP BY city"; [...]
-
Is the MySQL server the same version ? Second, are you SURE that the template id 49 is the same on both dev and prod site ? edit: nevermind, I didn't saw `template=panddetail` on first instance..
-
For the wiki, there was two issues addressed about that. I will be able to give more infos in the next weeks. But yes, wiki are gone for free private repos on personal accounts. More precisions from the support about Accounts, Private repos and Organization as I tried to make an organization with free private repos but it not worked - of course ?
-
I got the news yesterday, did you was aware that Github let you have unlimited private repositories for free since January, 7 ? ? Precisions from Github Support : Comparisons : Free functionality GitLab GitHub Private repositories Yes Yes Number of collaborators Unlimited 3 Wiki Yes No (public or paid only) Pages Yes No (public or paid only) Capacity 10GB 1GB Indicates who is paying No Yes Free CI 2,000 min. Maybe a free tier for Actions on Azure Entire DevOps lifecycle Yes No Location of the repo Anywhere Not in groups/orgs API concurrent rate limit 36000 5000
-
Tested during two dev hours this morning, no problem so far ? Thanks you dude.
-
@bernhard Could it be possible to update the module's lib dependencies to the latest version 6.2.2 ?
-
@Chris Bennett @Noel Boss, I don't know how look your user edit page, but on mine, the checkboxes are not customized. It was also necessary to add the rule for : .InputfieldCheckboxesStacked { } Below the modified @3fingers version :
-
True, for example, I didn't written any test for our frontend, but the backend and the module managing the transactions with financial data is fully unit tested, and it's required (while writing that, I am thinking on what we discussed on Github about the example of the float type vs the integer one for managing financial data; Imagine the things without test... houston.. ?? ).
-
@szabesz While searching, I stumbled on this extension, its was tempting. I think I will try it someday. Funny change log ?
-
I don't fully understand the question, so a simple answer, yes with PHPUnit. And people was already doing it 6 years ago : https://github.com/niklaka/ProcessWireTests
-
true, I should must have specified that ? I just wanted to be sure he do not mix the 'assets' of the video and the the created one by PW by placing the 'assets' in the 'assets' folder hihi
-
Hi @anderson I also started ProcessWire with this video. A must to do for a beginner. About the asset folder containing images, css and js, this folder come from the free theme that you have to downloaded there : https://templatemag.com/demo/Spot/ (this is the theme the author is using to build the final website). Once extracted, you can find the assets folder and it should be placed in the folder site/templates of your ProcessWire installation - along your templates - then you can continue to follow the tutorial. Do not mix this assets folder (which could be renamed of whatever you want, eg: mythemeassets) and the assets folder in site/assets which is a core "required" folder created by ProcessWire. Good luck, you are on the good road ! ? On the same road you can pick that :
-
Great as always! I don't know how we could also maintain the _*.php files. I say that because for instance, I modified a little part of the markup to implement headroom.js. Also Ryan say that it's needed to modify the data attribute on the masthead (navbar) when we want a smaller navbar (height value). eg: https://github.com/ryancramerdesign/AdminThemeUikit/blob/master/uikit/custom/pw/pw-theme-reno.less#L124 A preview of the theme :
-
files get added with 600 permissions and dont know why
flydev replied to benbyf's topic in General Support
We will know that on your next upload. On the next upload, try to remember the mode (FTP or SFTP (over ssh) ?) and compare permissions on localhost and on the hosting server to see if they are the same, if not, then I put a bet on suPHP or SSHd umask configuration. -
Moving a hook function to a function called within 2 hooks
flydev replied to a-ok's topic in API & Templates
to