Sunday, December 28, 2014

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

Please provide more information.

What does your find statement look like?

What is the definition (column definition in the table) of the datetime/date field that you are querying against?

Enjoy, John

On Monday, 29 December 2014 00:23:10 UTC+2, Salines wrote:
I need to select all the posts from db posts table that correspond to today's month and day.

for example,

today is 2014-12-29

Find query return posts that have dates as:

2014-12-29
2012-12-29
2010-12-29
2004-12-29
1999-12-29
1984-12-29
1953-12-29
1911-12-29

Please your advice, thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

CakePHP 2.5.*- Find all posts by current month and day (m-d)

I need to select all the posts from db posts table that correspond to today's month and day.

for example,

today is 2014-12-29

Find query return posts that have dates as:

2014-12-29
2012-12-29
2010-12-29
2004-12-29
1999-12-29
1984-12-29
1953-12-29
1911-12-29

Please your advice, thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cake events

Thanks mark

Looks interesting, will certainly see what else can be done with push.

Hope anyway that our previous text helped with finding a solution.

Enjoy, John

On Saturday, 27 December 2014 22:06:15 UTC+2, euromark wrote:
For a small community application I also still ajax PULL every x seconds for this.
As long as the users stay in a range (< xxxx ?) this might very well work as a (short term) solution.

The state of the art approach would be  a PUSH notification service, though, as described

mark


Am Samstag, 27. Dezember 2014 09:01:27 UTC+1 schrieb . .:
Hi. I am implementing a Message system (ie, user A sends a message to user B). After user A sends a message to B, I would like to show the number of unread messages. One way of implementing this is to check for any new messages on every page refresh. Could I instead use trigger a cakephp event? Can I trigger an event in user A's session and have the listener be in another (user B) session? Thanks.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: Abridged summary of rajljk - 4 updates in 2 topics

Lkkkrks

On 28 Dec 2014 01:40, <cake-php@googlegroups.com> wrote:
". ." <rc.gojinny@gmail.com>: Dec 27 12:00AM -0800

Hi. I am implementing a Message system (ie, user A sends a message to user
B). After user A sends a message to B, I would like to show the number of
unread messages. One way of implementing this is ...more
John Andersen <j.andersen.lv@gmail.com>: Dec 27 11:27AM -0800

That would not be possible as A's and B's sessions knows nothing of each
other and only are running when a request is processed.
 
What you could do is to have a small ajax script pulling the ...more
euromark <dereuromark@gmail.com>: Dec 27 12:06PM -0800

For a small community application I also still ajax PULL every x seconds
for this.
As long as the users stay in a range (< xxxx ?) this might very well work
as a (short term) solution.
...more
Sandeep Kumar <sundeap@gmail.com>: Dec 26 01:07PM -0800

Thank you Florin Trifu for your answer, it saved a lot of time..
 
I made some changes to script to include date format to hope that helps
someone else
 
<script>
$(function() { ...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to cake-php+unsubscribe@googlegroups.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Saturday, December 27, 2014

Re: cake events

For a small community application I also still ajax PULL every x seconds for this.
As long as the users stay in a range (< xxxx ?) this might very well work as a (short term) solution.

The state of the art approach would be  a PUSH notification service, though, as described
- here: http://socket.io/
- or here: https://pusher.com/tutorials/html5_realtime_push_notifications

mark


Am Samstag, 27. Dezember 2014 09:01:27 UTC+1 schrieb . .:
Hi. I am implementing a Message system (ie, user A sends a message to user B). After user A sends a message to B, I would like to show the number of unread messages. One way of implementing this is to check for any new messages on every page refresh. Could I instead use trigger a cakephp event? Can I trigger an event in user A's session and have the listener be in another (user B) session? Thanks.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cake events

That would not be possible as A's and B's sessions knows nothing of each other and only are running when a request is processed.

What you could do is to have a small ajax script pulling the unread count every so often.
Enjoy, John

On Saturday, 27 December 2014 10:01:27 UTC+2, . . wrote:
Hi. I am implementing a Message system (ie, user A sends a message to user B). After user A sends a message to B, I would like to show the number of unread messages. One way of implementing this is to check for any new messages on every page refresh. Could I instead use trigger a cakephp event? Can I trigger an event in user A's session and have the listener be in another (user B) session? Thanks.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

cake events

Hi. I am implementing a Message system (ie, user A sends a message to user B). After user A sends a message to B, I would like to show the number of unread messages. One way of implementing this is to check for any new messages on every page refresh. Could I instead use trigger a cakephp event? Can I trigger an event in user A's session and have the listener be in another (user B) session? Thanks.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.