On Sunday, October 19, 2014 8:25:53 AM UTC+5:30, Ben Finney wrote:
> Chris Angelico writes:
> > Try learning Python itself, rather than playing around with extension
> > packages like pytz.
> To be fair, "You need to install 'pytz' to work correctly with date and
> time values" is correct advice.
On Sun, Oct 19, 2014 at 1:54 PM, Ben Finney wrote:
> Chris Angelico writes:
>
>> Try learning Python itself, rather than playing around with extension
>> packages like pytz.
>
> To be fair, “You need to install ‘pytz’ to work correctly with date and
> time values” is correct advice. If the OP doe
Chris Angelico writes:
> Try learning Python itself, rather than playing around with extension
> packages like pytz.
To be fair, “You need to install ‘pytz’ to work correctly with date and
time values” is correct advice. If the OP doesn't install it early, then
works with timestamps, problems ar
ryguy7272 writes:
> So, when I run it, the setup.py text file opens. Nothing runs; nothing
> installs.
You have somehow (either manually, or by answering a question to some
program) associated the ‘.py’ suffix with “Open this file in my text
editor”.
That's fine, but it means that if you don't
On Sun, Oct 19, 2014 at 1:44 PM, ryguy7272 wrote:
> I'll probably give it until the end of the year, and start learning Chinese.
> There's other things I want to do with my time. I know 10 programming
> languages. I thought it would be fun to learn Python, but after 2 months, I
> still can't
On Saturday, October 18, 2014 3:55:02 PM UTC-4, ryguy7272 wrote:
> I downloaded PYTZ and put it here.
>
> C:\Python27\pytz
>
>
>
> Now, in the cmd window, I typed this:
>
> C:\Python27\pytz\setup.py
>
>
>
> A text file opens and nothing else happens. I thought it was supposed to
> install
On Sat, Oct 18, 2014 at 6:34 PM, Dan Stromberg wrote:
>> Once the "nc" process actually write()s the data to its standard
>> output (i.e. desriptor 1, not the "stdout" FILE*)
> I'm not sure why you're excluding stdout, but even if nc is using
> filedes 1 instead of FILE * stdout, isn't it kind of
On Sat, Oct 18, 2014 at 6:11 PM, Nobody wrote:
> On Sat, 18 Oct 2014 12:32:07 -0500, Tim Chase wrote:
>
>> On 2014-10-18 17:55, Nobody wrote:
>>> On Fri, 17 Oct 2014 12:38:54 +0100, Empty Account wrote:
>>>
>>> > I am using netcat to listen to a port and python to read stdin and
>>> > print to the
On Fri, Oct 17, 2014 at 10:38 PM, Empty Account wrote:
> I am using netcat to listen to a port and python to read stdin and print to
> the console.
>
> nc -l 2003 | python print_metrics.py
After lengthy discussion about what it means to flush stdin, I think
it's high time someone asked the questi
On Sat, 18 Oct 2014 12:32:07 -0500, Tim Chase wrote:
> On 2014-10-18 17:55, Nobody wrote:
>> On Fri, 17 Oct 2014 12:38:54 +0100, Empty Account wrote:
>>
>> > I am using netcat to listen to a port and python to read stdin and
>> > print to the console.
>> >
>> > nc -l 2003 | python print_metrics.
On 10/18/2014 5:01 PM, Cameron Simpson wrote:
On 18Oct2014 17:55, Nobody wrote:
On Fri, 17 Oct 2014 12:38:54 +0100, Empty Account wrote:
I am using netcat to listen to a port and python to read stdin and print
to the console.
nc -l 2003 | python print_metrics.py
sys.stdin.flush() doesn’t see
On 18Oct2014 17:55, Nobody wrote:
On Fri, 17 Oct 2014 12:38:54 +0100, Empty Account wrote:
I am using netcat to listen to a port and python to read stdin and print
to the console.
nc -l 2003 | python print_metrics.py
sys.stdin.flush() doesn’t seem to flush stdin,
You can't "flush" an input
On 18/10/2014 20:54, ryguy7272 wrote:
I downloaded PYTZ and put it here.
C:\Python27\pytz
Now, in the cmd window, I typed this:
C:\Python27\pytz\setup.py
A text file opens and nothing else happens. I thought it was supposed to
install the PYTZ library.
What am I doing wrong?
You will end
I'm trying to install Pandas. I went to this link.
https://pypi.python.org/pypi/pandas/0.14.1/#downloads
I downloaded this: pandas-0.14.1.win32-py2.7.exe (md5)
I have Python27 installed.
So, I run the executable and re-run my Python script and I get the same error
as before.
Traceback (most
On Sat, Oct 18, 2014 at 3:54 PM, ryguy7272 wrote:
> I downloaded PYTZ and put it here.
> C:\Python27\pytz
>
> Now, in the cmd window, I typed this:
> C:\Python27\pytz\setup.py
>
> A text file opens and nothing else happens. I thought it was supposed to
> install the PYTZ library.
>
> What am I d
I downloaded PYTZ and put it here.
C:\Python27\pytz
Now, in the cmd window, I typed this:
C:\Python27\pytz\setup.py
A text file opens and nothing else happens. I thought it was supposed to
install the PYTZ library.
What am I doing wrong?
--
https://mail.python.org/mailman/listinfo/python-li
On 2014-10-18 17:55, Nobody wrote:
On Fri, 17 Oct 2014 12:38:54 +0100, Empty Account wrote:
I am using netcat to listen to a port and python to read stdin and print
to the console.
nc -l 2003 | python print_metrics.py
sys.stdin.flush() doesn’t seem to flush stdin,
You can't "flush" an input
On 2014-10-18 17:55, Nobody wrote:
> On Fri, 17 Oct 2014 12:38:54 +0100, Empty Account wrote:
>
> > I am using netcat to listen to a port and python to read stdin
> > and print to the console.
> >
> > nc -l 2003 | python print_metrics.py
> >
> > sys.stdin.flush() doesn’t seem to flush stdin,
>
On Fri, 17 Oct 2014 12:38:54 +0100, Empty Account wrote:
> I am using netcat to listen to a port and python to read stdin and print
> to the console.
>
> nc -l 2003 | python print_metrics.py
>
> sys.stdin.flush() doesn’t seem to flush stdin,
You can't "flush" an input stream.
> so I am using t
Alain Ketterlin wrote:
> Terry Reedy writes:
>
>> On 10/17/2014 6:43 AM, Cameron Simpson wrote:
>>> On 17Oct2014 11:45, Dhananjay wrote:
>>
2.1576318858 -1.8651195165 4.2333428278
...
(total of 200 lines)
Columns 1,2,3 corresponds to x,y,z axis data points.
>>
>>>fo
The port parameter of serial.Serial should be /dev/ttyu0 instead of
COM1, and /dev/ttyu1 instead of COM2.
Strangely, pyserial will accept the number 0, but then it tries to open
a device that exists on Linux only...
Anyway, problem solved.
--
https://mail.python.org/mailman/listinfo/python-li
Terry Reedy writes:
> On 10/17/2014 6:43 AM, Cameron Simpson wrote:
>> On 17Oct2014 11:45, Dhananjay wrote:
>
>>> 2.1576318858 -1.8651195165 4.2333428278
>>> ...
>>> (total of 200 lines)
>>>
>>> Columns 1,2,3 corresponds to x,y,z axis data points.
>
>>for line in open('flooding-psiphi.dat','
Simon Kennedy wrote:
> On Wednesday, 15 October 2014 20:31:15 UTC+1, Ian wrote:
>> I agree. I very rarely use blank lines inside functions. As I see it,
>> if you feel you need a blank line for separation within a function,
>> that's an indication your function is overly complex and should be
>>
I'm trying to open a serial port with pyserial on a Compaq Deskpro EN
machine. Operating system is FreeBSD 10.10 RELEASE, i386.
root@merleg:~ # kldload scc
root@merleg:~ # python2.7 -m serial.tools.list_ports
no ports found
root@merleg:~ # whoami
root
Here are all the devices:
root@merleg:~
Am 14.10.2014 15:36, schrieb Chuck:
I am building a simple podcast program where I download all the data from a
feed with feedparser and store the data in sqlite3. I am spanking new to
sqlite and database programming. Should I create the database in the __init__
method of my class, or is tha
On Sat, Oct 18, 2014 at 4:10 PM, Chris Angelico wrote:
> On Sat, Oct 18, 2014 at 6:02 PM, Artur Bercik wrote:
> > So, the Bit No. 2-5 for the following case is '1101', right?
> >
> > 1073741877: 1110101
> >
> > If my required bit combination for Bit No. 2-5 is '1011', t
So, the Bit No. 2-5 for the following case is '1101', right?
1073741877: 1110101
If my required bit combination for Bit No. 2-5 is '1011', then the above
number (1073741877) is not chosen, right??
Look forward to know your confirmation.
On Sat, Oct 18, 2014 at 3:50 PM,
Thanks Chris Angelico for your nice answer.
I got some sense, but could not imagine if required Bit No. 2–5, and Bit
Combination .
I hope example with the new case would make me more sense.
Artur
On Sat, Oct 18, 2014 at 3:24 PM, Chris Angelico wrote:
> On Sat, Oct 18, 2014 at 4:58 PM, A
On Sat, Oct 18, 2014 at 6:21 PM, Artur Bercik wrote:
> Thank you very much Chris Angelico, I have come to know it.
>
You're most welcome. And thank you for taking heed of the request to
not top-post. :) Hang around, you never know what weird and wonderful
things you'll learn!
--
https://mail.pyt
On Sat, Oct 18, 2014 at 6:02 PM, Artur Bercik wrote:
> So, the Bit No. 2-5 for the following case is '1101', right?
>
> 1073741877: 1110101
>
> If my required bit combination for Bit No. 2-5 is '1011', then the above
> number (1073741877) is not chosen, right??
>
> Look f
On 17Oct2014 12:38, Empty Account wrote:
I am using netcat to listen to a port and python to read stdin and print to
the console.
nc -l 2003 | python print_metrics.py
sys.stdin.flush() doesn’t seem to flush stdin, so I am using the termios
module.
You're aware that a stdio flush and a termi
duncan smith writes:
> [...] It was the "top / bottom of the [TV] programme" that I didn't
> immediately get, because I was thinking of a timeline running left
> to right (perhaps rather than the script used by the presenters).
is it just me that thinks of a timeline running from the wall behind
32 matches
Mail list logo