# |
Oct 3rd 2018, 20:25 |
matsaku |
Hey don't worry ! |
# |
Oct 3rd 2018, 20:25 |
btx |
@matsaku sorry, ran out to a client - back now and looking over your comments one sec |
# |
Oct 3rd 2018, 19:40 |
itmpls |
TL;DR is there some special sauce I can pass to new \Cake\View\View to have the same context? |
# |
Oct 3rd 2018, 19:39 |
slackebot |
Configure::read('Blah.formTemplates')]); and it's working minus seemingly not completely registering $this->Form->setTemplates($formTemplates); . has anyone had to do anything similar and was there a more straightforward way of achieving this? |
# |
Oct 3rd 2018, 19:39 |
itmpls |
i have a modal and i want to have different behavior based on the submission of the form within. im doing a POST request via js to the action of the form, but ideally I want a json response with the html / success. I refactored my basic html/ajax response which required parsing for a #success element and got rid of it and now render a view manually via $view new \Cake\View\View(); $response['html'] = $view->element('blah', ['formTemplates' => |
# |
Oct 3rd 2018, 19:29 |
steelingfa |
those ACPI errors are a clear indication of it. |
# |
Oct 3rd 2018, 19:29 |
steelingfa |
it'd only be there if he explicitly defaulted it in that case |
# |
Oct 3rd 2018, 19:29 |
steelingfa |
Johnjay: Just binaries, or packaged binaries? |
# |
Oct 3rd 2018, 18:58 |
ricksaccous |
hang out at the shish cafe, lol |
# |
Oct 3rd 2018, 18:56 |
MikailGe |
now, what languages do you use? |
# |
Oct 3rd 2018, 18:56 |
MikailGe |
not a racist remark. I actually do hang out at the shish cafe |
# |
Oct 3rd 2018, 18:56 |
MikailGe |
better buying put options below the market...lottery ticket |
# |
Oct 3rd 2018, 18:56 |
MikailGe |
phogg: If that is what I think it is based on name alone.... that's... the kind of thing I might try to troll people with but wouldn't actually bother making. |
# |
Oct 3rd 2018, 18:56 |
MikailGe |
(That said it's still plausible that I missed one... because actually I lost all of the results at one point, and only had the hashes left... and this was still a slow CPU based search so I don't want to rerun it. On the other hand, I don't know how to get multiple results from the hashcat hack without digging deeper into its code.) |
# |
Oct 3rd 2018, 18:35 |
soXO |
should i log in to my gmail on tor or no |
# |
Oct 3rd 2018, 18:35 |
soXO |
it is a linux cli util |
# |
Oct 3rd 2018, 17:16 |
whyrusleepingMh |
now your message was pushed with the irc client icon |
# |
Oct 3rd 2018, 17:15 |
matsaku |
May I ask which relation I need to set up ? |
# |
Oct 3rd 2018, 17:15 |
whyrusleepingMh |
hans_: did you land crrev.com/37048f66617d326b8e08caf75da75b4ca790d478 ? |
# |
Oct 3rd 2018, 17:15 |
whyrusleepingMh |
conundrum, ^r works. But "command + up arrow" I would like much more. how can I configure? |
# |
Oct 3rd 2018, 17:15 |
matsaku |
Oh ok I get the query |
# |
Oct 3rd 2018, 17:15 |
matsaku |
My relations aren't set up and I'm not sure where to start to do that. I'm really lost. CakePhp is my first try after learning oop |
# |
Oct 3rd 2018, 17:15 |
btx |
like `$users->contain(['Todos','SharedTodos'=>function($query){ return $query->where(['SharedTodos.user_id = Users.id']);}])` |
# |
Oct 3rd 2018, 17:13 |
btx |
you should still be able to `contain` the records tho as long as your relations are set up |
# |
Oct 3rd 2018, 17:13 |
matsaku |
It's just a link with two column "user_id" and "todo_id" |
# |
Oct 3rd 2018, 17:13 |
btx |
my bad |
# |
Oct 3rd 2018, 17:13 |
matsaku |
No sorry |
# |
Oct 3rd 2018, 17:13 |
btx |
o sorry I thought they were same table |
# |
Oct 3rd 2018, 17:12 |
matsaku |
You mean making the same table as Todos for SharedTodos. And when I want to share, I just duplicate the Todo in the other table ? |
# |
Oct 3rd 2018, 17:10 |
matsaku |
Oh |
# |
Oct 3rd 2018, 17:10 |
btx |
then you’d have `$user->todos` and `$user->shared_todos` |
# |
Oct 3rd 2018, 17:09 |
btx |
@matsaku i would have Todos and SharedTodos associations where SharedTodos is a Todos, but with a conditional filter then just `Users->contain['Todos','SharedTodos'])->..` |
# |
Oct 3rd 2018, 17:08 |
slackebot |
->order(['done' => 'ASC', 'created' => 'DESC']); $todos = $query->toArray(); ``` I really don't know where to look anymore :( |
# |
Oct 3rd 2018, 17:08 |
matsaku |
I'm trying this but doesn't works also : ``` $todos = TableRegistry::get('Todos'); $query = $todos->find('all') ->join([ 'table' => 'todo_shared', 'alias' => 'ts', 'type' => 'LEFT', 'conditions' => 'ts.todo_id = Todos.id' ]) ->where(['OR' => [['Todos.user_id =' => $this->Auth->user('id')], ['ts.user_id = ' => $this->Auth->user('id')]]]) |
# |
Oct 3rd 2018, 16:40 |
slackebot |
which join I should use. The point is to get all the tasks the user created and the others tasks users shared with him |
# |
Oct 3rd 2018, 16:40 |
matsaku |
An other question for my case, I need to do this request with the query builder : `SELECT * FROM todos LEFT JOIN todo_shared AS ts ON ts.user_id = $userId WHERE ts.todo_id = todos.id OR todos.id = $userId;` My actual query look like this : ``` $query = $todos->find('all') ->where(['Todos.user_id =' => $this->Auth->user('id')]) ->order(['done' => 'ASC', 'created' => 'DESC']); ``` I'm not even sure |
# |
Oct 3rd 2018, 16:36 |
narendravaghela |
SendGrid provides SMTP credentials as well which you can set in email config. |
# |
Oct 3rd 2018, 16:36 |
narendravaghela |
Agree with @admad |
# |
Oct 3rd 2018, 16:36 |
admad |
@neon1024 if you don't need the extra features their api provides then can just user their smtp login |
# |
Oct 3rd 2018, 16:34 |
narendravaghela |
I generally need emails in backend apps, so I convert it into plugins for community use |
# |
Oct 3rd 2018, 16:34 |
narendravaghela |
@neon1024 yes, and few others for emails :slightly_smiling_face: |