Ilan | 1 Oct 2009 16:09

[pyweb-il:443] Lightning talk about persistence, etc?


Peace, Ahik, and everyone!

Thanks for inviting me to present at our next PyWeb-IL! I've 
been wanting[1]_ to introduce persistence for years, even 
promised Saffi and others (and myself) that I will, but... 
tempus fugit.
I prefer tackling the abstract/theoretical side, and leave 
Django specifics to an expert -- maybe  <at> Idan will install 
MongoDB for us?[2]_ Or Tokyo_? Or...?
BTW, I liked Bob Ippolito's PyCon 2009 "Drop ACID and think 
about data"[3]_ very much. Recommended video. (If anyone finds 
the slides -- please!)

.. [1]: http://decodecode.net/trails/persistence
.. [2]: http://github.com/mdirolf/DjanMon , 
http://djangopeople.net/skills/mongodb/ ;o)
.. Tokyo_: eg, 
http://www.igvita.com/2009/02/13/tokyo-cabinet-beyond-key-value-store/ , 
http://github.com/ericflo/django-tokyo-sessions
.. [3]: http://lwn.net/Articles/327943/ contains an overview and 
links to the video and projects discussed.

I prefer doing lightning talks_, s'il vous plaît. if 10 == 
minutes: print("Happy!").
.. lightning talks_: http://en.wikipedia.org/wiki/Lightning_Talk

HTTP caching: well, eh, not really. I took notes some time ago, 
and it's an ugly mess[5]_, I don't feel like preparing a talk, 
if I can avoid it...?
(Continue reading)

Imri Goldberg | 1 Oct 2009 17:02
Picon
Gravatar

[pyweb-il:444] Interesting tool for python presentations

http://www.gnome.org/~otaylor/reinteract-demo.html

--
Imri Goldberg
--------------------------------------
www.algorithm.co.il/blogs/
--------------------------------------
-- insert signature here ----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il <at> googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Omer Zak | 1 Oct 2009 21:10
Picon
Favicon
Gravatar

Looking for a Python idiom combining generators and serial input

I am developing a Python application, which reads bytes from a serial
port (using pySerial).
Those bytes combine into packets by means of a non-trivial set of rules.

Using a chain of generators, I implemented the rules in a
straightforward way.  A generator reads bytes from the serial port,
processes escape sequences and yields the resulting characters to
another generator.  The next generator delimits packets and yields each
packet as a unicode string.  The final generator parses the unicode
strings and yields the parse results for each frame as a data structure
(a Dict, whose elements are the various packet fields).

However, the ultimate input of the generators needs to be from the
serial port.

The question: do I have to use a separate thread for reading bytes from
the serial port (by means of the first generator in chain) and then use
some complicated mechanism for transferring the yielded data structures
to another thread?
The reads in such a case would be blocking reads.

Or is there another idiom for feeding data for processing by a chain of
generators, which can relieve me from having to use a separate thread?

                                           --- Omer
--

-- 
Every good master plan involves building a time machine.  Moshe Zadka
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Roman Yakovenko | 1 Oct 2009 21:25
Picon

Re: Looking for a Python idiom combining generators and serial input

On Thu, Oct 1, 2009 at 9:10 PM, Omer Zak <w1 <at> zak.co.il> wrote:
> I am developing a Python application, which reads bytes from a serial
> port (using pySerial).
> Those bytes combine into packets by means of a non-trivial set of rules.
>
> Using a chain of generators, I implemented the rules in a
> straightforward way.  A generator reads bytes from the serial port,
> processes escape sequences and yields the resulting characters to
> another generator.  The next generator delimits packets and yields each
> packet as a unicode string.  The final generator parses the unicode
> strings and yields the parse results for each frame as a data structure
> (a Dict, whose elements are the various packet fields).
>
> However, the ultimate input of the generators needs to be from the
> serial port.
>
> The question: do I have to use a separate thread for reading bytes from
> the serial port (by means of the first generator in chain) and then use
> some complicated mechanism for transferring the yielded data structures
> to another thread?

It depends. If you can effort single-thread & busy-wait - just do it
this way. It is easy to understand and support. If you don't, than
welcome to a wonderful world of asynchronous IO.  In this case I
suggest you to read http://www.kegel.com/c10k.html article. Also it
talks about web servers, but the solutions are applicable to your
problem too.

> The reads in such a case would be blocking reads.
>
> Or is there another idiom for feeding data for processing by a chain of
> generators, which can relieve me from having to use a separate thread?

I am not sure whether you can completely avoid threads, but a good
async. package/library can simplify a lot of things. Boost.Asio ( C++
) does it very well.

HTH

--

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Meir Kriheli | 1 Oct 2009 21:54
Picon
Gravatar

[pyweb-il:445] Re: Interesting tool for python presentations


On 10/01/2009 05:02 PM, Imri Goldberg wrote:
> http://www.gnome.org/~otaylor/reinteract-demo.html
> 
> -- 
> Imri Goldberg

Crunchy is crispy and tastes better ;-)

http://code.google.com/p/crunchy/
http://showmedo.com/videos/video?name=1430000&fromSeriesID=143

Cheers
--
Meir

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il <at> googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Imri Goldberg | 1 Oct 2009 23:04
Picon
Gravatar

[pyweb-il:446] Re: Interesting tool for python presentations

Thanks for the link, crunchy looks pretty sweet

On Thu, Oct 1, 2009 at 9:54 PM, Meir Kriheli <meir <at> mksoft.co.il> wrote:

On 10/01/2009 05:02 PM, Imri Goldberg wrote:
> http://www.gnome.org/~otaylor/reinteract-demo.html
>
> --
> Imri Goldberg

Crunchy is crispy and tastes better ;-)

http://code.google.com/p/crunchy/
http://showmedo.com/videos/video?name=1430000&fromSeriesID=143

Cheers
--
Meir





--
Imri Goldberg
--------------------------------------
www.algorithm.co.il/blogs/
--------------------------------------
-- insert signature here ----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il <at> googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Ahik Man | 2 Oct 2009 09:56
Picon
Gravatar

[pyweb-il:447] Re: Lightning talk about persistence, etc?

Hi Ilan,

Thanks for your suggestion. I think that the "practical" side of the persistent is important.
Unless someone will address this aspect, maybe we can try to learn it together, following your abstract presentation. 
Can you prepare this part too?

BTW,
The Bob Ippolito's slides are here: http://bitbucket.org/etrepum/drop_acid_pycon_2009/

Ahik

2009/10/1 Ilan <ilan <at> decodecode.net>

Peace, Ahik, and everyone!

Thanks for inviting me to present at our next PyWeb-IL! I've
been wanting[1]_ to introduce persistence for years, even
promised Saffi and others (and myself) that I will, but...
tempus fugit.
I prefer tackling the abstract/theoretical side, and leave
Django specifics to an expert -- maybe <at> Idan will install
MongoDB for us?[2]_ Or Tokyo_? Or...?
BTW, I liked Bob Ippolito's PyCon 2009 "Drop ACID and think
about data"[3]_ very much. Recommended video. (If anyone finds
the slides -- please!)

.. [1]: http://decodecode.net/trails/persistence
.. [2]: http://github.com/mdirolf/DjanMon ,
http://djangopeople.net/skills/mongodb/ ;o)
.. Tokyo_: eg,
http://www.igvita.com/2009/02/13/tokyo-cabinet-beyond-key-value-store/ ,
http://github.com/ericflo/django-tokyo-sessions
.. [3]: http://lwn.net/Articles/327943/ contains an overview and
links to the video and projects discussed.

I prefer doing lightning talks_, s'il vous plaît. if 10 ==
minutes: print("Happy!").
.. lightning talks_: http://en.wikipedia.org/wiki/Lightning_Talk

HTTP caching: well, eh, not really. I took notes some time ago,
and it's an ugly mess[5]_, I don't feel like preparing a talk,
if I can avoid it...?
.. [5]: http://decodecode.net/trails/http-caching.one-page

But! I do think a real quick rundown of Web 2.0 ideas[6]_ would
be fun!!! Just to refresh our memories/appetites? In less than
5 minutes?
.. [6]: http://decodecode.net/trails/web-2-0.one-page

Thanks!
;o)

--
Ilan

A distributed system is one in which I cannot get something done
because a machine I've never heard of is down.
/ Leslie Lamport




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il <at> googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Orestes | 3 Oct 2009 02:02
Picon
Gravatar

[pyweb-il:448] Re: ערב הדרכת Django

אהלן.

נקבע תאריך לערב ההדרכה: יום שני, 12 באוקטובר.

מיקום - אזור תל-אביב (טרם נקבע מיקום מדוייק, יגיע בקרוב).

כולכם מוזמנים, והכי חשוב - הזמינו את חבריכם!

לינק לאירוע בפייסבוק: http://www.facebook.com/event.php?eid=146311721166

בברכה,
אורי

On 30 ספטמבר, 18:57, Orestes <oryb... <at> gmail.com> wrote:
> חברים יקרים,
> חברי קבוצת Open-Knesset מארגנים ערב הדרכה ב-Django, שיתרחש
בשבוע \
> שבועיים הבאים.
> מטרת המפגש הינה גיוס מתנדבים נוספים לפרוייקט, וכמובן
להפיץ את Django
> באיזור.
>
> במידה ומישהו מכם יכול לעזור לנו בארגון חדר עם מחשבים,
או מעבדת מחשבים
> באיזה אוניברסיטה מקומית - אשמח אם תיידעו אותנו.
> ניתן גם פשוט לשלוח לי דוא"ל.
>
> תודה רבה,
> אורי
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il <at> googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Refael Ackermann | 3 Oct 2009 08:58
Picon
Gravatar

[pyweb-il:449] Re: ערב הדרכת Django

בעקבות דיון "הFacebook כן או לא" הקודם, מצאתי שבכדי שאירוע יהיה חשוף גם למשתמשים לא רשומים צריך לשלוח לפחות הזמנה אחת במייל לכתובת שפייסבוק לא מכיר.
עשיתי את זה ועכשיו האירוע אמור להיות חשוף לכולם.

2009/10/3 Orestes <oryband <at> gmail.com>
אהלן.

נקבע תאריך לערב ההדרכה: יום שני, 12 באוקטובר.

מיקום - אזור תל-אביב (טרם נקבע מיקום מדוייק, יגיע בקרוב).

כולכם מוזמנים, והכי חשוב - הזמינו את חבריכם!

לינק לאירוע בפייסבוק: http://www.facebook.com/event.php?eid=146311721166

בברכה,
אורי

On 30 ספטמבר, 18:57, Orestes <oryb... <at> gmail.com> wrote:
> חברים יקרים,
> חברי קבוצת Open-Knesset מארגנים ערב הדרכה ב-Django, שיתרחש בשבוע \
> שבועיים הבאים.
> מטרת המפגש הינה גיוס מתנדבים נוספים לפרוייקט, וכמובן להפיץ את Django
> באיזור.
>
> במידה ומישהו מכם יכול לעזור לנו בארגון חדר עם מחשבים, או מעבדת מחשבים
> באיזה אוניברסיטה מקומית - אשמח אם תיידעו אותנו.
> ניתן גם פשוט לשלוח לי דוא"ל.
>
> תודה רבה,
> אורי



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il <at> googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
Rani Hod | 3 Oct 2009 10:26
Picon
Gravatar

[pyweb-il:450] Re: ערב הדרכת Django

Thanks. I appreciate it.

2009/10/3 Refael Ackermann <refack <at> gmail.com>
בעקבות דיון "הFacebook כן או לא" הקודם, מצאתי שבכדי שאירוע יהיה חשוף גם למשתמשים לא רשומים צריך לשלוח לפחות הזמנה אחת במייל לכתובת שפייסבוק לא מכיר.
עשיתי את זה ועכשיו האירוע אמור להיות חשוף לכולם.

2009/10/3 Orestes <oryband <at> gmail.com>

אהלן.

נקבע תאריך לערב ההדרכה: יום שני, 12 באוקטובר.

מיקום - אזור תל-אביב (טרם נקבע מיקום מדוייק, יגיע בקרוב).

כולכם מוזמנים, והכי חשוב - הזמינו את חבריכם!

לינק לאירוע בפייסבוק: http://www.facebook.com/event.php?eid=146311721166

בברכה,
אורי

On 30 ספטמבר, 18:57, Orestes <oryb... <at> gmail.com> wrote:
> חברים יקרים,
> חברי קבוצת Open-Knesset מארגנים ערב הדרכה ב-Django, שיתרחש בשבוע \
> שבועיים הבאים.
> מטרת המפגש הינה גיוס מתנדבים נוספים לפרוייקט, וכמובן להפיץ את Django
> באיזור.
>
> במידה ומישהו מכם יכול לעזור לנו בארגון חדר עם מחשבים, או מעבדת מחשבים
> באיזה אוניברסיטה מקומית - אשמח אם תיידעו אותנו.
> ניתן גם פשוט לשלוח לי דוא"ל.
>
> תודה רבה,
> אורי






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il <at> googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
Python-il <at> hamakor.org.il
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

Gmane