# |
Sep 30th 2016, 12:58 |
bravo-kernel |
awesome :slightly_smiling_face: |
# |
Sep 30th 2016, 12:57 |
admad |
@bravo-kernel $entity->source() will give you table name as string |
# |
Sep 30th 2016, 12:56 |
bravo-kernel |
any way I can derive/get the Table object from an Entity? |
# |
Sep 30th 2016, 12:44 |
inoas |
okay |
# |
Sep 30th 2016, 12:44 |
bravo-kernel |
google should know |
# |
Sep 30th 2016, 12:43 |
inoas |
is it like beantalkd or rabbitmq? |
# |
Sep 30th 2016, 12:43 |
bravo-kernel |
@inoas it's actually quite simple once you get gearmand installed on your server |
# |
Sep 30th 2016, 12:42 |
inoas |
bravo kernel gearman looks good but also heavy |
# |
Sep 30th 2016, 12:41 |
admad |
carrieOn: easiest way would be to use counter cache behavior to maintain count of fruits for each tree then querying is trivial, just select recors where fruit_count = 3 |
# |
Sep 30th 2016, 12:22 |
carrieOn |
lets say I have the table Trees, and a tree can have many Fruits. How can I retrieve only Trees that have 3 fruits? |
# |
Sep 30th 2016, 12:21 |
carrieOn |
Is there anyway to use a query to filter by association count? |
# |
Sep 30th 2016, 12:21 |
carrieOn |
hellow |
# |
Sep 30th 2016, 12:07 |
dereuromark |
It has never been a serious tool, more to explain the concepts, but running with simple worker (shorter periods) does the job well so far afaik. If we can get it to properly transaction safe pull jobs, it is of course also a good thing. |
# |
Sep 30th 2016, 12:02 |
bravo-kernel |
nobody using https://github.com/cvo-technologies/cakephp-gearman? I find it quite impressive and... for important sites ;) |
# |
Sep 30th 2016, 11:50 |
spriz |
25 min lifetime, and initiate a new one every 5 - sorry :slightly_smiling_face: |
# |
Sep 30th 2016, 11:49 |
spriz |
4/5 |
# |
Sep 30th 2016, 11:48 |
spriz |
weâ??ve been running with a 20 minute timeout, and start a new worker every 5 minutes., so 4 parallel workers. |
# |
Sep 30th 2016, 11:48 |
dereuromark |
Or with one worker |
# |
Sep 30th 2016, 11:48 |
dereuromark |
Yeah but only for non important sites |
# |
Sep 30th 2016, 11:48 |
spriz |
in terms of timeout, and how often you start a new one |
# |
Sep 30th 2016, 11:48 |
spriz |
and if so, do you have some setting youâ??ve been running you know works? |
# |
Sep 30th 2016, 11:37 |
spriz |
anyone using the dereuromark/cakephp-queue in prod with more than 1 worker? |
# |
Sep 30th 2016, 11:33 |
unorthodox |
http://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html#using-variables-in-translation-messages |
# |
Sep 30th 2016, 11:33 |
k4t |
ow, looks good, thx |
# |
Sep 30th 2016, 11:32 |
unorthodox |
`__('Test {0} another test {1}', 'em>','</em')` |
# |
Sep 30th 2016, 11:32 |
k4t |
What do you mean? |
# |
Sep 30th 2016, 11:32 |
unorthodox |
With special markers @k4t |
# |
Sep 30th 2016, 11:24 |
k4t |
What is your solution for translating strings like: Klicken Sie a href="/">hier, um zur E-Paper Startseite zu gelangen</a? I can put whole string in __() function but HTML inside looks ugly in .POT file |
# |
Sep 30th 2016, 10:54 |
adityapansari |
? |
# |
Sep 30th 2016, 10:54 |
adityapansari |
I have a method in component called shortUrl. any way to use this method in .ctp file |
# |
Sep 30th 2016, 10:53 |
adityapansari |
is there any way to use user build component method in template - .ctp ? |
# |
Sep 30th 2016, 10:28 |
bravo-kernel |
and for quite some time as well now I believe :cake: |
# |
Sep 30th 2016, 10:25 |
birdy247 |
but works well for me |
# |
Sep 30th 2016, 10:25 |
birdy247 |
I am prob using it in the most basic way |
# |
Sep 30th 2016, 10:24 |
birdy247 |
@dereuromark @bravo-kernel I use it on windows |
# |
Sep 30th 2016, 10:09 |
bravo-kernel |
@dereuromark not anymore but you should be able to pick any of the script found here https://github.com/alt3/cakebox/tree/dev/.cakebox/bash |
# |
Sep 30th 2016, 09:45 |
dereuromark |
bravo: do you have an example here for you custom scripts? I get some errors it doesnt like the sh file content etc |
# |
Sep 30th 2016, 09:21 |
inoas |
k4t $this->here maybe, or debug($this->request) |
# |
Sep 30th 2016, 09:17 |
bravo-kernel |
nice to hear, I am actually using it on Windows myself without issues |
# |
Sep 30th 2016, 09:13 |
dereuromark |
i am playing around with it, seems like it is a bit buggy on windows, but works great on ubuntu |
# |
Sep 30th 2016, 09:12 |
k4t |
is it possible to get current route name inside of view template? Cake3 |