Re: [BangPypers] Regarding organizing PyCon India 2018 at Bangalore

2017-10-27 Thread pradam programmer
Hi,
I am Interested.

On 27-Oct-2017 8:13 PM, "KISHORE S MEDA"  wrote:

> Count me in please!
>
> On Oct 27, 2017 8:11 PM, "Mukesh Yadav"  wrote:
>
> > Hey Chandan,
> > Count me in.
> >
> >
> >
> > On Wed, Oct 25, 2017 at 7:52 PM Sreekanth S Rameshaiah 
> > wrote:
> >
> > > I am in too.
> > > - sree
> > >
> > > On Wed, 25 Oct 2017 at 19:43 Vijaya Lakshmi <
> > > vij...@wincorporatetraining.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > >
> > > >  I am interested to participate in this event.
> > > >
> > > >
> > > > With Regards
> > > > Vijayalakshmi G M
> > > > IT Professional Trainer
> > > > Cell No: 7406626859 <074066%2026859>
> > > > Website: www.wincorporatetraining.com
> > > > Facebook: www.facebook.com/wincorporate
> > > >
> > > >
> > > >
> > > > 
> > > > From: BangPypers  > > > wincorporatetraining@python.org> on behalf of Tejas S <
> > > > tejascod...@gmail.com>
> > > > Sent: Wednesday, October 25, 2017 4:29 PM
> > > > To: Bangalore Python Users Group - India
> > > > Subject: Re: [BangPypers] Regarding organizing PyCon India 2018 at
> > > > Bangalore
> > > >
> > > > Iam in
> > > >
> > > > On Oct 25, 2017 2:35 PM, "Balaji G"  wrote:
> > > >
> > > > > I am interested.
> > > > >
> > > > > On Wed, Oct 25, 2017 at 2:08 PM, Krishnan Nagarajan <
> > > > > krishnan.nagara...@gmail.com> wrote:
> > > > >
> > > > > > I am interested.
> > > > > >
> > > > > > On Oct 25, 2017 11:22, "chandan kumar" <
> > > chandankumar.093...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > Hello BangPypers,
> > > > > >
> > > > > > As you all know, PyCon India 2018 is the 10th edition of PyCon
> > India.
> > > > > > We are planning to bring back PyCon India 2018 back to Bangalore
> > > > > > again, (possibly NIMHANS).
> > > > > >
> > > > > > In order to execute the same, we need your support. Before
> > announcing
> > > > the
> > > > > > same
> > > > > > in Inpycon mailing list, we need to form an organizing team so
> that
> > > we
> > > > > can
> > > > > > work together to put a proposal out.
> > > > > >
> > > > > > Those who are interested in the same, feel free to reply to this
> > > email.
> > > > > > If any queries, feel free to ask.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Chandan Kumar
> > > > > > Sayan Chowdhury
> > > > > > ___
> > > > > > BangPypers mailing list
> > > > > > BangPypers@python.org
> > > > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > > BangPypers Info Page - Python<
> > > > https://mail.python.org/mailman/listinfo/bangpypers>
> > > > mail.python.org
> > > > Your email address: Your name (optional): You may enter a privacy
> > > password
> > > > below. This provides only mild security, but should prevent others
> from
> > > > messing ...
> > > >
> > > >
> > > >
> > > > > > ___
> > > > > > BangPypers mailing list
> > > > > > BangPypers@python.org
> > > > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > With regards,
> > > > >
> > > > > *Balaji.G*
> > > > >
> > > > > http://gbala.in
> > > > > ___
> > > > > BangPypers mailing list
> > > > > BangPypers@python.org
> > > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > > >
> > > > ___
> > > > BangPypers mailing list
> > > > BangPypers@python.org
> > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > > ___
> > > > BangPypers mailing list
> > > > BangPypers@python.org
> > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > >
> > > --
> > > Sreekanth S R
> > > Executive Director
> > > Mahiti
> > >
> > > #6, 1st Floor, Ganesh Chambers
> > > Dodda Banaswadi Main Road,
> > > Bangalore - 560043
> > > Location: Near the Ramamurthy Nagar Traffic Signal on the Outer Ring
> Road
> > > Mobile: +91-98455-12611 <098455%2012611>
> > > http://www.mahiti.org
> > > *(An ISO 9001:2008 & ISO 27001:2013 Enterprise)*
> > > ___
> > > BangPypers mailing list
> > > BangPypers@python.org
> > > https://mail.python.org/mailman/listinfo/bangpypers
> > >
> > --
> > Regards
> > Mukesh Yadav
> > www.mukeshyadav.com
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> ___
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Regarding organizing PyCon India 2018 at Bangalore

2017-10-27 Thread KISHORE S MEDA
Count me in please!

On Oct 27, 2017 8:11 PM, "Mukesh Yadav"  wrote:

> Hey Chandan,
> Count me in.
>
>
>
> On Wed, Oct 25, 2017 at 7:52 PM Sreekanth S Rameshaiah 
> wrote:
>
> > I am in too.
> > - sree
> >
> > On Wed, 25 Oct 2017 at 19:43 Vijaya Lakshmi <
> > vij...@wincorporatetraining.com>
> > wrote:
> >
> > > Hi,
> > >
> > >
> > >  I am interested to participate in this event.
> > >
> > >
> > > With Regards
> > > Vijayalakshmi G M
> > > IT Professional Trainer
> > > Cell No: 7406626859 <074066%2026859>
> > > Website: www.wincorporatetraining.com
> > > Facebook: www.facebook.com/wincorporate
> > >
> > >
> > >
> > > 
> > > From: BangPypers  > > wincorporatetraining@python.org> on behalf of Tejas S <
> > > tejascod...@gmail.com>
> > > Sent: Wednesday, October 25, 2017 4:29 PM
> > > To: Bangalore Python Users Group - India
> > > Subject: Re: [BangPypers] Regarding organizing PyCon India 2018 at
> > > Bangalore
> > >
> > > Iam in
> > >
> > > On Oct 25, 2017 2:35 PM, "Balaji G"  wrote:
> > >
> > > > I am interested.
> > > >
> > > > On Wed, Oct 25, 2017 at 2:08 PM, Krishnan Nagarajan <
> > > > krishnan.nagara...@gmail.com> wrote:
> > > >
> > > > > I am interested.
> > > > >
> > > > > On Oct 25, 2017 11:22, "chandan kumar" <
> > chandankumar.093...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > Hello BangPypers,
> > > > >
> > > > > As you all know, PyCon India 2018 is the 10th edition of PyCon
> India.
> > > > > We are planning to bring back PyCon India 2018 back to Bangalore
> > > > > again, (possibly NIMHANS).
> > > > >
> > > > > In order to execute the same, we need your support. Before
> announcing
> > > the
> > > > > same
> > > > > in Inpycon mailing list, we need to form an organizing team so that
> > we
> > > > can
> > > > > work together to put a proposal out.
> > > > >
> > > > > Those who are interested in the same, feel free to reply to this
> > email.
> > > > > If any queries, feel free to ask.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Chandan Kumar
> > > > > Sayan Chowdhury
> > > > > ___
> > > > > BangPypers mailing list
> > > > > BangPypers@python.org
> > > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > BangPypers Info Page - Python<
> > > https://mail.python.org/mailman/listinfo/bangpypers>
> > > mail.python.org
> > > Your email address: Your name (optional): You may enter a privacy
> > password
> > > below. This provides only mild security, but should prevent others from
> > > messing ...
> > >
> > >
> > >
> > > > > ___
> > > > > BangPypers mailing list
> > > > > BangPypers@python.org
> > > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > With regards,
> > > >
> > > > *Balaji.G*
> > > >
> > > > http://gbala.in
> > > > ___
> > > > BangPypers mailing list
> > > > BangPypers@python.org
> > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > >
> > > ___
> > > BangPypers mailing list
> > > BangPypers@python.org
> > > https://mail.python.org/mailman/listinfo/bangpypers
> > > ___
> > > BangPypers mailing list
> > > BangPypers@python.org
> > > https://mail.python.org/mailman/listinfo/bangpypers
> > >
> > --
> > Sreekanth S R
> > Executive Director
> > Mahiti
> >
> > #6, 1st Floor, Ganesh Chambers
> > Dodda Banaswadi Main Road,
> > Bangalore - 560043
> > Location: Near the Ramamurthy Nagar Traffic Signal on the Outer Ring Road
> > Mobile: +91-98455-12611 <098455%2012611>
> > http://www.mahiti.org
> > *(An ISO 9001:2008 & ISO 27001:2013 Enterprise)*
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> --
> Regards
> Mukesh Yadav
> www.mukeshyadav.com
> ___
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Regarding organizing PyCon India 2018 at Bangalore

2017-10-27 Thread Mukesh Yadav
Hey Chandan,
Count me in.



On Wed, Oct 25, 2017 at 7:52 PM Sreekanth S Rameshaiah 
wrote:

> I am in too.
> - sree
>
> On Wed, 25 Oct 2017 at 19:43 Vijaya Lakshmi <
> vij...@wincorporatetraining.com>
> wrote:
>
> > Hi,
> >
> >
> >  I am interested to participate in this event.
> >
> >
> > With Regards
> > Vijayalakshmi G M
> > IT Professional Trainer
> > Cell No: 7406626859 <074066%2026859>
> > Website: www.wincorporatetraining.com
> > Facebook: www.facebook.com/wincorporate
> >
> >
> >
> > 
> > From: BangPypers  > wincorporatetraining@python.org> on behalf of Tejas S <
> > tejascod...@gmail.com>
> > Sent: Wednesday, October 25, 2017 4:29 PM
> > To: Bangalore Python Users Group - India
> > Subject: Re: [BangPypers] Regarding organizing PyCon India 2018 at
> > Bangalore
> >
> > Iam in
> >
> > On Oct 25, 2017 2:35 PM, "Balaji G"  wrote:
> >
> > > I am interested.
> > >
> > > On Wed, Oct 25, 2017 at 2:08 PM, Krishnan Nagarajan <
> > > krishnan.nagara...@gmail.com> wrote:
> > >
> > > > I am interested.
> > > >
> > > > On Oct 25, 2017 11:22, "chandan kumar" <
> chandankumar.093...@gmail.com>
> > > > wrote:
> > > >
> > > > Hello BangPypers,
> > > >
> > > > As you all know, PyCon India 2018 is the 10th edition of PyCon India.
> > > > We are planning to bring back PyCon India 2018 back to Bangalore
> > > > again, (possibly NIMHANS).
> > > >
> > > > In order to execute the same, we need your support. Before announcing
> > the
> > > > same
> > > > in Inpycon mailing list, we need to form an organizing team so that
> we
> > > can
> > > > work together to put a proposal out.
> > > >
> > > > Those who are interested in the same, feel free to reply to this
> email.
> > > > If any queries, feel free to ask.
> > > >
> > > > Thanks,
> > > >
> > > > Chandan Kumar
> > > > Sayan Chowdhury
> > > > ___
> > > > BangPypers mailing list
> > > > BangPypers@python.org
> > > > https://mail.python.org/mailman/listinfo/bangpypers
> > BangPypers Info Page - Python<
> > https://mail.python.org/mailman/listinfo/bangpypers>
> > mail.python.org
> > Your email address: Your name (optional): You may enter a privacy
> password
> > below. This provides only mild security, but should prevent others from
> > messing ...
> >
> >
> >
> > > > ___
> > > > BangPypers mailing list
> > > > BangPypers@python.org
> > > > https://mail.python.org/mailman/listinfo/bangpypers
> > > >
> > >
> > >
> > >
> > > --
> > > With regards,
> > >
> > > *Balaji.G*
> > >
> > > http://gbala.in
> > > ___
> > > BangPypers mailing list
> > > BangPypers@python.org
> > > https://mail.python.org/mailman/listinfo/bangpypers
> > >
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> --
> Sreekanth S R
> Executive Director
> Mahiti
>
> #6, 1st Floor, Ganesh Chambers
> Dodda Banaswadi Main Road,
> Bangalore - 560043
> Location: Near the Ramamurthy Nagar Traffic Signal on the Outer Ring Road
> Mobile: +91-98455-12611 <098455%2012611>
> http://www.mahiti.org
> *(An ISO 9001:2008 & ISO 27001:2013 Enterprise)*
> ___
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
-- 
Regards
Mukesh Yadav
www.mukeshyadav.com
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] writing file with random extension to sd card using python

2017-10-27 Thread Ajinkya Bobade
Thank you for inputs really appreciate it. I was able to get an
understanding of whats going on here in code. Moving forward, I have a more
detailed question. In the following code, I want to capture print('Recording
GPS Position...')  on sd card, for now, this is printing on terminal
directly I want to capture this runtime process from terminal and store on
sd card as it is being executed how do I do this. Also in general what is a
way to capture and store processes in runtime from terminal and store on sd
card(note I do want to store processes as it is being executed and not
after its execution is done)

import sys
import os
import time
import subprocess, shlex
import signal
import serial
import psutil
from subprocess import Popen, PIPE


def recording():
flag = 0
ser = serial.Serial('/dev/ttyACM0', 921600, timeout=1)
ser.flushOutput()

# ROSBAG Recordings (Shell commands that execute the messages on
the terminal)

messages = 'rosbag record -o GPS_Position.bag
dji_sdk/gps_position', 'rosbag record -o IMU_Data.bag dji_sdk/imu',
'rosbag record -o Attitude.bag dji_sdk/attitude', 'rosbag record -o
Velodyne_Packets.bag velodyne_packets', 'rosbag record -o
Velodyne_Points.bag velodyne_points',  # rosbag record -o Velocity.bag
dji_sdk/velocity'

while flag == 0:
try:
args1 = shlex.split(messages[0])  # messages[0] = rosbag
record -o GPS_Position.bag dji_sdk/gps_position
#print (args1)
p_1 = subprocess.Popen(args1, stdout=PIPE)
print('Recording GPS Position...')
p_1.stdout.flush()


On Thu, Oct 26, 2017 at 10:51 PM, Krishnan Nagarajan <
krishnan.nagara...@gmail.com> wrote:

> Hi,
> Refer :
> https://stackoverflow.com/questions/27238680/writing-
> integers-in-binary-to-file-in-python
>
>
> With Python 3 you can do the following:
>
> i = 6277101735386680763835789423176059013767194773182842284081with
> open('out.bin', 'wb') as file:
> file.write((i).to_bytes(24, byteorder='big', signed=False))
> with open('out.bin', 'rb') as file:
> j = int.from_bytes(file.read(), byteorder='big')
> print(j)
>
> Output:
>
> $ python3 tiny.py6277101735386680763835789423
> 176059013767194773182842284081
>
>
> What this tells us :
>
> While writing int (or any data including string - as UTF) as binary data to
> a file, you need to conver (and encode) it to bytes;
> In this case we need to specify the width as well.
>
> While reading such binary data from the file, you need to correspondingly
> decode (interpret) the data while converting into python data type (int /
> even string / unicode).
> Again sidth needs to be specified here to disctate how many bytes to use to
> convert to an int.
>
>
>
>
>
>
>
> On Fri, Oct 27, 2017 at 7:11 AM, Sushrut Deshpande 
> wrote:
>
> > I think you shud open file as binary write and try to write the integer
> > after converting it to utf-8
> >
> > Best Regards,
> > Sushrut Deshpande
> > Founder - Qvestron Systems Pvt. Ltd.,
> > dsush...@qvestron.com
> > +91 951160
> >
> >
> >
> > On 27 Oct 2017 00:20, at 00:20, Ajinkya Bobade <
> ajinkyabobad...@gmail.com>
> > wrote:
> > >Hello,
> > >This is my first question on this forum point me in a right way if I
> > >posted
> > >in a wrong place. That aside I am trying to write a file with '.bag
> > >' extension to sd card( .bag is used in Ross programming).
> > >
> > >I wrote a code to write a simple integer to disk as shown
> > >
> > >
> > >file = open("/path/to/file", 'w')
> > >x = 1
> > >
> > >while True:
> > >x = x + 1
> > >print(x)
> > >file.write(str(x))
> > >file.flush()
> > >
> > >in this code I could not write file.write(x). Why is this?If I want to
> > >store a file(' as it is') on this disk without converting it into
> > >string
> > >what should I do?
> > >___
> > >BangPypers mailing list
> > >BangPypers@python.org
> > >https://mail.python.org/mailman/listinfo/bangpypers
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> ___
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers