Log message #4202343

# At Username Text
# Sep 9th 2019, 07:32 alexdd55976 the guy who wrote those test loaded fixtures directly and compared them... where the sense in that.
# Sep 9th 2019, 07:29 conehead Just delete em
# Sep 9th 2019, 07:28 alexdd55976 trying to fix stupid Yii tests
# Sep 9th 2019, 07:28 alexdd55976 terribly bored.
# Sep 9th 2019, 07:24 conehead Actually it was replaced
# Sep 9th 2019, 07:24 conehead Was that a typo or is the smiley replaced by a british flag, because whats going on there right now is a big joke?
# Sep 9th 2019, 07:23 conehead You bored? :)
# Sep 9th 2019, 07:20 alexdd55976 not much going on here
# Sep 9th 2019, 06:13 uwe.flaig Guten Tag
# Sep 9th 2019, 05:22 alexdd55976 Morning everybody :wave:
# Sep 9th 2019, 04:23 challgren https://book.cakephp.org/3.0/en/views/helpers/form.html#starting-a-form
# Sep 9th 2019, 04:00 challgren $this->form->create($entity, [id => myformid])
# Sep 9th 2019, 03:59 challgren Add id to your $options array when creating the form
# Sep 9th 2019, 03:53 Fastidius basically i am using Widow.onunload to set a not saved warning but when i hit the save button i want to set the value to null so it overrides the nag screen. I assume i need to put this in the controller as part of the submit action??
# Sep 9th 2019, 03:32 Fastidius $this->Form->create($job ...... how do i know what the form_id would be?
# Sep 8th 2019, 22:31 itmpls hmm?
# Sep 8th 2019, 22:31 itmpls @jimbo2150 I debugged and apparently it's the `SHOW FULL COLUMNS` on that table , but the connection is 'default'
# Sep 8th 2019, 20:34 itmpls but yeah lemme try to debug further (resuming)
# Sep 8th 2019, 20:33 itmpls @jimbo2150 if that were the case this query would work, though
# Sep 8th 2019, 09:42 challgren https://stackoverflow.com/questions/1061710/php-zip-files-on-the-fly
# Sep 8th 2019, 09:41 COOurb won't*
# Sep 8th 2019, 09:41 COOurb and we won use it more than 2 times a day
# Sep 8th 2019, 09:41 COOurb I'm at vacation now and making this "software" to help me (and guys from other departments) to create different document packages
# Sep 8th 2019, 09:40 COOurb there are from 1 to 10 users
# Sep 8th 2019, 09:39 challgren Ok so what happens when 100 users request a zip, you have 1GB of memory used
# Sep 8th 2019, 09:39 COOurb It's for local usage, kinda filling documents with values
# Sep 8th 2019, 09:39 COOurb archives are small, up to 10MB.
# Sep 8th 2019, 09:39 challgren Think about scalability and using memory wisely
# Sep 8th 2019, 09:38 challgren And creating the file in memory will take up memory which you’ve said is a concern, and what happens when 10+ users request a zip file
# Sep 8th 2019, 09:37 COOurb thnx
# Sep 8th 2019, 09:36 challgren Example would be `$this->QueuedJobs->createJob('DeleteZip', ['filename' => $tmp_zip], ['notBefore' => strtotime('+1 hour')]);`
# Sep 8th 2019, 09:35 COOurb ye, but it's kinda sad
# Sep 8th 2019, 09:33 challgren Like I said, create the zip, create a queue task to clean up in a certain time and serve the zip file to the user. The queue will clean up the file at the specified time
# Sep 8th 2019, 09:33 COOurb it's ok
# Sep 8th 2019, 09:33 COOurb yeah, I know there is ZipArchive built-in class
# Sep 8th 2019, 09:32 COOurb well, ok, I'll try that queue task plugin
# Sep 8th 2019, 09:32 challgren CakePHP provides no classes for zipping files. So you would need some other class in PHP or a native class provided by PHP
# Sep 8th 2019, 09:32 COOurb I mean, I saw /tmp directory
# Sep 8th 2019, 09:32 challgren What do you mean?
# Sep 8th 2019, 09:32 COOurb does cakephgp has something like that?
# Sep 8th 2019, 09:31 challgren You could but on a shared server anyone could access that file and you depend on the system to clean up the files