# |
Jan 6th 2020, 11:25 |
dereuromark |
thats what my script uses :) it is fast and memory reduced |
# |
Jan 6th 2020, 11:19 |
neon1024 |
Although there is probably a better service for it to be honest |
# |
Jan 6th 2020, 11:17 |
neon1024 |
`mysqldump` |
# |
Jan 6th 2020, 11:05 |
dereuromark |
together with some crontab based sh script |
# |
Jan 6th 2020, 11:05 |
challgren |
I just have a small batch script to dump the db and then sftp upload it |
# |
Jan 6th 2020, 11:05 |
dereuromark |
Setup plugin maybe |
# |
Jan 6th 2020, 11:04 |
conehead |
Does anyone know a good script that backups mysql databases daily/weekly/monthly? |
# |
Jan 6th 2020, 11:02 |
etibor |
i use cakephp 3.5.12 , i dont understand why i cannot acces for _joinData in the PatcEntity |
# |
Jan 6th 2020, 10:53 |
etibor |
Happy New year neon1024 :) |
# |
Jan 6th 2020, 10:51 |
neon1024 |
Morning all :wave: Happy 2020 |
# |
Jan 6th 2020, 10:47 |
etibor |
i have some issue to saving in the _joinData,because in the PatchEntity the _joinData property does not appear,only in the 'original'. I definied the patchentity like this: $document = $this->Documents->patchEntity($document_ent, $this->request->getData(),['associated'=>['DocumentSubTypes._joinData']]); |
# |
Jan 6th 2020, 10:38 |
etibor |
hello all |
# |
Jan 6th 2020, 10:36 |
conehead |
Something different :P |
# |
Jan 6th 2020, 10:36 |
admad |
@conehead lol @ stevejobs |
# |
Jan 6th 2020, 10:31 |
muas199 |
taking a look |
# |
Jan 6th 2020, 10:29 |
challgren |
@muas199 try https://github.com/bcrowe/cakephp-encrypted-type |
# |
Jan 6th 2020, 10:28 |
muas199 |
Having issues using custom databases types. Can save encrypted data but can't retrieve it |
# |
Jan 6th 2020, 10:17 |
dsar |
Some algorithms are called queue scheduling algorithms, however I agree that it is often used for other purposes |
# |
Jan 6th 2020, 10:14 |
dereuromark |
At least in my cases so far. Scheduling is more cronjob/crontab based with timing patterns for me. |
# |
Jan 6th 2020, 10:14 |
dereuromark |
Diego: A queue is not a scheduler IMO. that word implies a specific execution time, which queues usually have not (most are just basic first in first out immediate exec). |
# |
Jan 6th 2020, 10:06 |
challgren |
SchedyMcScheduleFace |
# |
Jan 6th 2020, 09:50 |
dsar |
Why not Scheduler? |
# |
Jan 6th 2020, 09:38 |
challgren |
You’d hope not! |
# |
Jan 6th 2020, 09:29 |
dereuromark |
You would never use them at the same time, though. |
# |
Jan 6th 2020, 09:24 |
challgren |
Esp since @dereuromark has been using that name for a long time |
# |
Jan 6th 2020, 09:24 |
challgren |
I could see a lot of confusion with that plugin name |
# |
Jan 6th 2020, 09:06 |
conehead |
Or call it SteveJobs |
# |
Jan 6th 2020, 09:04 |
conehead |
@admad TaskDispatcher |
# |
Jan 6th 2020, 08:40 |
admad |
who here loves naming things? :) https://github.com/cakephp/queue/issues/9 |
# |
Jan 6th 2020, 08:38 |
conehead |
Hellow |
# |
Jan 6th 2020, 08:21 |
alexdd55976 |
morning el duderinos |
# |
Jan 6th 2020, 05:41 |
conehead |
Good morning everyone |
# |
Jan 5th 2020, 15:10 |
d.lisiecki93 |
thank You good sir @racmiroslav |
# |
Jan 5th 2020, 15:05 |
racmiroslav |
+ https://discourse.cakephp.org/t/sending-errors-as-emails/1176/2 |
# |
Jan 5th 2020, 15:03 |
racmiroslav |
@d.lisiecki93 you could create your own log adapter, if nothing already exists on github https://book.cakephp.org/3/en/core-libraries/logging.html#creating-log-adapters |
# |
Jan 5th 2020, 14:59 |
d.lisiecki93 |
Hi guys, is there a way to somehow catch everything what goes into error.log and do something with prepared by cake message? i would like to have email notification about every cake error / exception / anything what goes wrong with my app |
# |
Jan 5th 2020, 14:46 |
racmiroslav |
Adding this to middleware queue seems to resolve my problem ```->add(function (ServerRequestInterface $request, ResponseInterface $response, $next) { $request = $request->withHeader('Accept', 'application/json'); return $next($request, $response); })``` |
# |
Jan 5th 2020, 14:45 |
racmiroslav |
Yep but I am in a bit different situation. I am building a json REST API (so no other format than json is in the game) and I do not want to require extension, because actually a clients may set their own extension because I have endpoint `PUT /files/{custom-value}` for upload and another endpoint `GET /files/{custom-value}` .. `custom-value` may or may not contain an extension |
# |
Jan 5th 2020, 14:33 |
challgren |
$this->set(‘_serialize’, compact(‘myVar’, ‘otherVar’) is needed in the controller too |
# |
Jan 5th 2020, 14:32 |
challgren |
In my apps I force them to use .json instead of forcing the output. That way if they do get an error it does respond as json |
# |
Jan 5th 2020, 14:32 |
challgren |
Plus if your throwing a not found the response is not considered successful so the client should catch it and just show 404 or make the correct request |