Cobbling together a minimalist ethernet-sniffing program, I was hoping
to use this simple mechanism for setting the socket to "promiscuous
mode" (to see all traffic going past, instead of just traffic addressed
to my machine):
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
Unfortunately, it see
On Sat, 29 Apr 2017 10:06:12 -0700 (PDT), marsh wrote:
> Hi,
>
> I would like to ask how can I convert text file data into RDF fromat.
[snip]
What is RDF format?
--
To email me, substitute nowhere->runbox, invalid->com.
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 25 Apr 2017 15:41:49 +, Shimon Mor wrote:
> Hello,
> python won't uninstall..
> I'm trying to uninstall so I could reinstall it.. some command doesn't work..
> like 'pip'.
> Help please,
> Thank you,
> Shimon
Too vague. Provide more specifics.
--
To email me, substitute nowhere-
On Sat, 4 Mar 2017 08:37:24 -0800 (PST), Wanderer wrote:
>
> I don't know what a netnews protocol is. I use Google Groups to look
> at usenet.
Just in case you're interested, the Network News Transfer Protocol, NNTP,
is used to distribute posts over Usenet, a worldwide system for passing
messages
On Wed, 22 Feb 2017 22:33:31 +0530, Ganesh Pal wrote:
[snip]
> I need suggestion on the if statement in the below code , all that I was
> trying to do was to add a check i.e if any one of the functions return
> True then break the loop.
>
> end_time = time.time() + 300
> umount_completed =
On Tue, 14 Feb 2017 09:13:48 -0800 (PST), José Manuel Suárez Sierra wrote:
> hello,
> im trying to read a rtf or txt file with this python script:
>
> with open(dirFichero,'r') as reader:
> for line in reader:
> print line
>
> the problem is that shown is : [suppressing blank lines]
>
On Fri, 10 Feb 2017 13:59:45 +0200, Amit Yaron wrote:
> On 10/02/17 04:33, adam14711...@gmail.com wrote:
>> Hello,
>>
>> My computer programming professor challenged me to figure out a way
>> to manipulate my program to display one error message if the user
>> input is a zero or a negative number,
On Wed, 1 Feb 2017 07:10:39 -0800 (PST), Νίκος Βέργος wrote:
> # Give user the file requested
> url = "http://superhost.gr/data/files/%s"; % realfile
>
> user, password = 'user', 'passwd'
>
> r = requests.get( url, auth = (user, password) ) # send auth unconditionally
> r.raise_for_status()
>==
On Sun, 29 Jan 2017 11:42:47 -0800 (PST), Xristos Xristoou wrote:
> i tried to count points from the point shapefile where is within in
> the polygon shapefile but i fail.Maybe my code is complete wrong but i
> tried.
> any idea how to fix my code ?
> i want fast method because i have big data feat
On Mon, 23 Jan 2017 13:23:38 -0800 (PST), subhabangal...@gmail.com wrote:
> I have a string like
>
> "Trump is $ the president of USA % Obama was $ the president
> of USA % Putin is $ the premier of Russia%"
>
> Here, I want to extract the portions from $...%, which would be
>
> "the president of
On Mon, 16 Jan 2017 10:17:06 +, Joseph L. Casale wrote:
>> Trying to sniff Ethernet packets, I do this:
>>
>>s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
>>
>> but it results in this:
>>
>> $ sudo python3 sniff_survey.py
>> Traceback (most recent call last)
Trying to sniff Ethernet packets, I do this:
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
but it results in this:
$ sudo python3 sniff_survey.py
Traceback (most recent call last):
File "sniff_survey.py", line 118, in
s = socket.socket(socket.A
On Sat, 24 Dec 2016 02:27:05 -0800 (PST), raulmaqueda6...@gmail.com wrote:
> I do not know how to do this exercise, does anyone help me?
>
> Define the matrix_range (m) function that returns the range of an
> array calculated by the Gaussian method.
>
> It should work with any number of rows and c
On Thu, 22 Dec 2016 12:10:40 +0200, Frank Millman wrote:
[snip]
>
> What about the second part of my query? Is it acceptable that they keep
> passwords on their system in clear text?
Absolutely not. Keeping the passwords, even encrypted, is a reckless
invitation to disaster.
Chris has done a f
On Wed, 14 Dec 2016 11:50:30 -0600, Skip Montanaro wrote:
> On Wed, Dec 14, 2016 at 11:40 AM, Peter Pearson
> wrote:
>> Train your fingers to use C-[.
>
> As I recall, the location of the Ctrl key was one of the differences
> between Sun and PC101 keyboards. Doesn't
On Tue, 13 Dec 2016 19:06:45 -0600, Skip Montanaro wrote:
> I know this isn't a Python-specific question, but
[snip]
> Yes, I know I can use C-[ or the Alt key instead of ESC.
I know this isn't the sort of answer you wanted, but . . .
Train your fingers to use C-[. I did, decades ago, because
On Thu, 17 Nov 2016 06:27:49 -0800 (PST), aruns...@gmail.com wrote:
> I am working with following code in which I am trying to output co
> ordinates of overlapping rectangles.. However the code fails to
> output the co ordinates. I am customizing the following code
[about 100 lines of code remo
On Mon, 3 Oct 2016 09:14:23 -0700 (PDT), chrischris201...@gmail.com wrote:
[snip]
>
> i try to follow some tutorial but i have that error :
>
> Traceback (most recent call last):
> File "C:\Python27\test\test\earth.py", line 42, in
> slope_array = np.ones_like(data_array) * nodataval
> TypeE
On Sat, 1 Oct 2016 18:12:29 -0700 (PDT), 38016226...@gmail.com wrote:
> I am trying to print a simple decision tree for my homework.
> The answer must keep in this format:
>
> Top 7,4,0.95
> career gain = 100
> 1.Management 2, 3, 0.9709505944546686
> 2.Service 5, 1, 0.6500224216483541
>
On Fri, 30 Sep 2016 11:37:19 -0700 (PDT), Jake wrote:
> Hi, I need a program which:
> 1) Asks the user for a sentence of their choice (not including punctuation)
> 2) Ask the user which word they would like to know is repeated
> 3) Print out to the user how many times the word came up which they c
On Tue, 27 Sep 2016 23:44:11 -0700 (PDT), prasanthk...@gmail.com wrote:
[snip]
>
> if __name__ == '__main__':
>
> GenAccessToken("This_is_a_Test_QED_MAC_Key_Which_Needs_to_be_at_Least_32_Bytes_Long",
> "default", "default", 6,
>"g,m,a,s,c,p,d")
>
> When i am calling the abov
On Tue, 27 Sep 2016 12:58:40 -0700 (PDT), TUA wrote:
> Is the following possible in Python?
>
> Given how the line below works
>
> TransactionTerms = 'TransactionTerms'
>
>
> have something like
>
> TransactionTerms =
>
> that sets the variable TransactionTerms to its own name as string
> represe
On Wed, 7 Sep 2016 08:51:36 -0700 (PDT), Asad ur Rehman wrote:
[snip]
> sofia/external/1203632525,CS_EXECUTE,
> Outbound Call,
> 12036325259,
> ,12036325259,
> ,
> ,ACTIVE,
> 9047125683,
> 9047125683,
> RECV,
> 75a9d3ee-7511-11e6-a115-89a1f4981d2c,
> vb-pmedia,7841c6c0-7511-11e6
On Mon, 6 Jun 2016 02:24:37 +1000, Chris Angelico wrote:
> On Sun, Jun 5, 2016 at 4:53 PM, ICT Ezy wrote:
> 2 ** 3 ** 2
>> Answer is 512
>> Why not 64?
>> Order is right-left or left-right?
>
> This example follows the mathematical standard; you start from the
> "top" (the right hand side), a
On Sat, 4 Jun 2016 04:44:30 +0530, Piyush Verma <114piy...@gmail.com> wrote:
> Generally we catch exception using
> except Exception as e:
>
> But sometimes, we see same type of exception is present with different
> message.Is there a way to capture same exception with message
> filtering? Please h
On Fri, 3 Jun 2016 07:20:24 -0700 (PDT), Sayth Renshaw wrote:
[snip]
> pyqFiles = []
> for filename in sorted(file_list):
> pyqFiles = pyqFiles.append(pq(filename=my_dir + filename))
>
> return pyqFiles
[snip]
> PS I am really having a lot of fun coding.
To have even more fun,
On Tue, 31 May 2016 21:50:33 -0700 (PDT), Muhammad Ali wrote:
>
> I am interested in Python programming,
[snip]
Just out of curiosity, why do you seem to be confused about whether
your interest is in FORTRAN or Python?
--
To email me, substitute nowhere->runbox, invalid->com.
--
https://mail.py
On Sun, 29 May 2016 14:23:27 -0400, Random832 wrote:
> On Sun, May 29, 2016, at 14:14, Terry Reedy wrote:
>> Spam missed by the normally excellent spam filter. Ignore it.
>
> I didn't actually see the original message. Maybe it was sent directly
> to you (and perhaps other users, but not me) with
On Sat, 21 May 2016 08:22:41 -0700 (PDT), sweating_...@yahoo.com wrote:
>
> I am working on an image project, and I can display my image in
> main(). I mean, I can load my image in my main(). Needless, it is
> awkward. I am trying to load my image with a function, but got an
> empty image window po
On Sat, 7 May 2016 12:51:00 -0400, DFS wrote:
> This more-anal-than-me program generated almost 2 warnings for every
> line of code in my program. w t hey?
Thank you for putting a sample of pylint output in front of my eyes;
you inspired me to install pylint and try it out. If it teaches me ev
On Sat, 9 Apr 2016 03:50:16 +1000, Chris Angelico wrote:
> On Sat, Apr 9, 2016 at 3:44 AM, Marko Rauhamaa wrote:
[snip]
>> (As for ligatures, I understand that there might be quite a bit of
>> legacy software that dedicated code points and code pages for ligatures.
>> Translating that legacy soft
On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano wrote:
> On Fri, 8 Apr 2016 02:51 am, Peter Pearson wrote:
>>
>> The Unicode consortium was certifiably insane when it went into the
>> typesetting business.
>
> They are not, and never have been, in t
On Thu, 07 Apr 2016 11:37:50 +1000, Steven D'Aprano wrote:
> On Thu, 7 Apr 2016 05:56 am, Thomas 'PointedEars' Lahn wrote:
>> Rustom Mody wrote:
>
>>> So here are some examples to illustrate what I am saying:
>>>
>>> Example 1 -- Ligatures:
>>>
>>> Python3 gets it right
>> flag = 1
>> flag
On Sun, 3 Apr 2016 16:06:58 +0100, anthony uwaifo wrote:
[snip]
>
> class BankAccount(object):
> def __init__(self, balance):
> self.balance = balance
>
>
> def deposit(self, amount):
> self.amount=amount
> self.balance += amount
> return self.balance
>
>
> def withdraw(self,
On Mon, 28 Mar 2016 14:10:28 -0700 (PDT), jenswaelk...@gmail.com wrote:
> I'm using the tkFileDialog-module in Python 2.7, it works fine except
> for one thing: when I add a title, the title isn't shown.
>
> e.g. I have this line of code:
> inputfilename=tkFileDialog.askopenfilename(defaultextensio
On Sun, 27 Mar 2016 08:13:49 -0700 (PDT), mohamadma...@gmail.com wrote:
> On Sunday, March 27, 2016 at 4:50:01 PM UTC+2, Joel Goldstick wrote:
>> On Sun, Mar 27, 2016 at 10:38 AM, wrote:
>>
>> > Hello there,
>> > I found a python script in a scientific article that enables a simple
>> > calculati
On Mon, 21 Mar 2016 11:18:57 +, mohamed mohamud wrote:
> hey im new at Learning Python, and i have an issue which i would like
> som help With.
>
> i have currently installed Python, and im Reading this book which
> tells me i have to have IDLE, but i cant find it on my computer. do i
> need to
On Mon, 14 Mar 2016 10:19:23 -0500, Skip Montanaro wrote:
> Is this correct (today, with Daylight Savings in effect)?
>
import pytz
i.timezone
> 'America/Chicago'
pytz.timezone(i.timezone)
>
ot
> datetime.datetime(2016, 3, 14, 9, 30, tzinfo= 'America/New_York' EDT-1 day, 20:00:0
On Tue, 1 Mar 2016 18:24:12 +0100, ast wrote:
>
> It's not clear to me what arguments are passed to the
> __new__ method. Here is a piece of code:
>
>
> class Premiere:
>
> def __new__(cls, price):
> return object.__new__(cls)
>
> def __init__(self, price):
> pass
[snip
On Mon, 29 Feb 2016 02:10:00 -0600, Anthony Papillion wrote:
[snip]
>
> http://pastebin.com/sryj98wW
To improve odds of your getting a response, let's get the code
into this thread. Here it is, minus the #! preamble:
from email.mime.text import MIMEText
from email.mime.application import MIMEApp
On Thu, 31 Dec 2015 08:24:15 -0800, ebuka ogbonnaya wrote:
> my name is Ebuka Egbunine, from Nigeria.I studied Geology and
> mining.Actually i downloaded python3.5(32-bit) successfully on my laptop
> which operates on 32-bit memory, but the application is not opening, it
> displays the message " t
On Tue, 29 Dec 2015 06:25:49 -0800 (PST), damien.ishac...@gmail.com wrote:
> hello I would only change the scale of the y-axis, how to deal with
> matplotlib.pyplot or another library ?
Here's a function I use. ax is an "axes" object, which you can get
by calling the get-current-axes (gca()) met
On Mon, 21 Dec 2015 09:29:24 -0800 (PST), Robert wrote:
> On Monday, December 21, 2015 at 12:15:54 PM UTC-5, Robert wrote:
>> Hi,
>>
>> I find a useful code snippet on link:
>>
>> http://stackoverflow.com/questions/25126444/logistic-regression-in-pymc/34400966#34400966
>>
>> but it has error on
On Thu, 17 Dec 2015 04:37:26 +1100, Chris Angelico wrote:
> On Thu, Dec 17, 2015 at 4:30 AM, Peter Pearson
> wrote:
>> Agreed. It's annoying when an agency goes to the trouble of making
>> huge datasets available online, but fails to identify the format.
>>
On Thu, 17 Dec 2015 04:08:02 +1100, Chris Angelico wrote:
> On Thu, Dec 17, 2015 at 4:04 AM, Peter Pearson
> wrote:
>> The file is 65274016 bytes long. You claim the dimensions are
>> 9896 x 3298, but that comes out to half that number (32637008), so I'll
>> bet t
On Wed, 16 Dec 2015 13:19:26 -0200, jorge.conr...@cptec.inpe.br wrote:
>
> I dowmloaded some data from the Mirador NASA site:
>
> http://mirador.gsfc.nasa.gov/cgi-bin/mirador/presentNavigation.pl?tree=project&dataset=Global-merged%20IR%20Brightness%20Temperature%20Data&project=TRMM&dataGroup=Ancill
On Thu, 3 Dec 2015 10:27:19 +0100, wrote:
[snip]
> I often saw constructions like this
> x for x in y if ...
> But I don't understand that combination of the Python keywords (for,
> in, if) I allready know. It is to complex to imagine what there really
> happen.
Don't give up! List comprehensi
On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote:
> On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote:
[snip]
>> ss0="1, 2, 4, 8, 16".split(", ")
[snip]
> Try help(str.split)
Or if, like me, you can't remember the magic word "str", ask:
help("".split)
and you know you're asking about the right "s
On Mon, 9 Nov 2015 04:21:14 -0800 (PST), Salvatore DI DIO wrote:
>
> I was trying to show that this limit was 'e'
> But when I try large numbers I get errors
>
> def lim(p):
> return math.pow(1 + 1.0 / p , p)
>
lim(5)
> 2.718281748862504
lim(9)
> 2.7182820518605446 !!
On Sat, 17 Oct 2015 03:25:03 +1100, Steven D'Aprano wrote:
[snip]
> randbelow(end):
> return a random integer in the half-open interval 0...end
> (including 0, excluding end)
>
> randint(start, end):
> return a random integer in the closed interval start...end
> (including both sta
On Wed, 9 Sep 2015 20:20:42 +0100, Mark Lawrence wrote:
> On 09/09/2015 18:59, William Ray Wing wrote:
>>> On Sep 9, 2015, at 1:22 PM, Steven D'Aprano wrote:
[snip]
>> Right. Note that the Arabs, who DID invent zero, still count from one.
[snip]
> Would you please provide a citation to support yo
On Thu, 6 Aug 2015 13:06:36 -0700 (PDT), PK Khatri wrote:
> I have a following script which extracts xyz.tgz and outputs to a
> folder which contains several sub-folders and files.
>
> source_dir = "c:\\TEST"
> dest_dir = "c:\\TEST"
> for src_name in glob.glob(os.path.join(source_dir,
On Thu, 09 Jul 2015 19:50:33 GMT, Tony the Tiger wrote:
> On Tue, 30 Jun 2015 00:56:26 +0000, Peter Pearson wrote:
>
>> If I use timezone US/Central, I get the same (bad) plot.
>
> Perhaps this can help?:
> http://stackoverflow.com/questions/1301493/setting-timezone-in-pytho
On Sat, 04 Jul 2015 07:29:45 +0300, Akira Li <4kir4...@gmail.com> wrote:
> Peter Pearson writes:
>
>> The following code produces a plot with a line running from (9:30, 0) to
>> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>>
>> If I use timezone
On Wed, 1 Jul 2015 10:55:02 -0600, Ian Kelly wrote:
> On Wed, Jul 1, 2015 at 10:36 AM, Peter Pearson [wrote]:
[snip]
>> Here's a very simple demonstration that either something is wrong
>> or I don't understand how datetime and tzinfo are supposed to work:
>>
>&
On Wed, 1 Jul 2015 17:15:38 +1000, Chris Angelico wrote:
>
> Interestingly, when I tried this (pytz version 2015.4, Python 2.7.9,
> Debian Jessie), I saw utcoffset() showing (-1, 58020) for both. That
> seems... odd. And I can't fault your dates - those definitely ought to
> be easily inside and e
On 30 Jun 2015 00:56:26 GMT, Peter Pearson wrote:
> The following code produces a plot with a line running from (9:30, 0) to
> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>
> If I use timezone None instead of pacific, the plot is as desired, but
> of course that do
On Tue, 30 Jun 2015 17:01:15 +1000, Chris Angelico wrote:
> On Tue, Jun 30, 2015 at 2:49 PM, Peter Pearson
> wrote:
>> Time zones teem with sneaky software problems, and so does daylight-saving
>> time, so this problem might strain my brain. Maybe it's going to turn
>
On Tue, 30 Jun 2015 04:03:57 +0200, Laura Creighton wrote:
> In a message of 30 Jun 2015 00:56:26 +0000, Peter Pearson writes:
>>The following code produces a plot with a line running from (9:30, 0) to
>>(10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>>
>>If
On Tue, 30 Jun 2015 12:11:31 +1000, Chris Angelico wrote:
> On Tue, Jun 30, 2015 at 10:56 AM, Peter Pearson
> wrote:
>> The following code produces a plot with a line running from (9:30, 0) to
>> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>>
>> pacif
The following code produces a plot with a line running from (9:30, 0) to
(10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
If I use timezone None instead of pacific, the plot is as desired, but
of course that doesn't solve the general problem of which this is a
much-reduced example.
If I u
On Fri, 12 Jun 2015 10:24:05 +0530, Alby Issac wrote:
>
> Am new to this group.
[snip]
Welcome.
> . . . I just want to know that is it possible to implement a filter
> for view updates in the database tables using python. and that filter
> will help to reject false updates in the source databas
On Sat, 23 May 2015 12:16:06 +0530, savitha devi wrote:
>
> I am developing a web scraper code using HTMLParser. I need to extract
> text/email address from java script with in the HTMLCode.
Would be be correct in suspecting that you are assembling a list
of email addresses for use in spamming?
On Sat, 18 Apr 2015 11:36:34 +0100, Tim Golden wrote:
> On 18/04/2015 11:24, edream...@gmail.com wrote:
[snip]
>> Is there any way to format announcements? If so, how. If not, why not?
[snip]
> Both of those services -- Usenet & Mailing list -- are traditionally
> plain text. One could certainl
On Thu, 26 Feb 2015 09:59:45 -0800 (PST), jaykim.hui...@gmail.com wrote:
>
> I am trying to use Gaussian process regression for Near Infrared
> spectra. I have reference data(spectra), concentrations of reference
> data and sample data, and I am trying to predict concentrations of
> sample data. He
On Sat, 21 Feb 2015 14:46:26 -0500, TommyVee wrote:
> Start off with sets of elements as follows:
>
> 1. A,B,E,F
> 2. G,H,L,P,Q
> 3. C,D,E,F
> 4. E,X,Z
> 5. L,M,R
> 6. O,M,Y
>
> Note that sets 1, 3 and 4 all have the element 'E' in common, therefore they
> are "related" and form the following supe
On Tue, 10 Feb 2015 15:05:47 -0600, Skip Montanaro wrote:
[snip]
> One of the things I really like about my Skype keyboard (and likely
> other "soft" keyboards on Android) is that when you hold down a "key"
> for a brief moment, a little mini keyboard pops up, from which you can
> easily choose var
On Fri, 09 Jan 2015 23:41:15 +0200, Marko Rauhamaa wrote:
> Peter Pearson :
>
>> If you've never looked at the set of reals (x,y) satisfying x**y ==
>> y**x, it's worth a visit.
>
> Thanks, it was. The graph's something like this:
[snip]
>
> Where
On 09 Jan 2015 11:07:51 +0200, Jussi Piitulainen wrote:
[snip]
> Which reminds me of a question that once made me smile, even laugh,
> and still does: 2**3 is almost 3**2 but not quite - what gives?
If you've never looked at the set of reals (x,y) satisfying x**y ==
y**x, it's worth a visit.
--
On Mon, 8 Dec 2014 22:58:20 -0800 (PST), iMath wrote:
> my software on the local machine needs to send http request to a
> specific web server , is there any way to protect the http request url
> from being found by Packet analyzer software like Wireshark and
> fiddler. The sever is not mine, so I
On Wed, 3 Dec 2014 03:27:45 +0100, Skybuck Flying wrote:
>
> I don't need snot telling me how to program after 20 years of programming
> experience.
[snip]
After 20 years of programming, I had a lot to learn about programming.
That was 29 years ago, and I *still* have a lot to learn about
program
On Sat, 15 Nov 2014 18:07:30 +0100, ast wrote:
>
> I needed a function f(x) which looks like sinus(2pi.x) but faster.
> I wrote this one:
>
> --
> from math import floor
>
> def sinusLite(x):
> x = x - floor(x)
> return -16*(x-0.25)**2 + 1 if x < 0.5 else 16*(x-0.75)
On Wed, 22 Oct 2014 12:38:02 +0200, Peter Otten wrote:
> Peter Pearson wrote:
[snip]
>> def callback(event):
>> global n, first
>> fig = plt.figure(2)
>> fig.clear()
>> plt.plot([0,1],[0,n])
>> n += 1 # (Pretending something changes from
I'm using Matplotlib to present a "control" window with clickable
buttons, and to plot things in another window when you click buttons,
in the style of the code below. I'm ashamed of the stinky way I
use "first" to call plt.show the first time data are plotted but then
to call fig.canvas.draw for
On Fri, 17 Oct 2014 14:28:13 +0800, Dhananjay wrote:
[snip]
> xs = ys = zs = []
> for line in fl1:
> line = line.split()
> xs.append(float(line[0]))
> ys.append(float(line[1]))
> zs.append(float(line[2]))
>
> print xs[0], ys[0], zs[0]
The line "xs = ys = zs = []" is almost surely n
On Sun, 12 Oct 2014 07:24:52 -0700 (PDT), martijnperd...@gmail.com wrote:
> what is wrong with this script and how do I get the value Rij1 and
> Rij2 and Rij3 and Rij4 and Rij5 and Rij6 in a php script
>
> import RPi.GPIO as GPIO
> GPIO.setmode(GPIO.BCM)
>
> GPIO.setup(17, GPIO.IN)
> GPIO.setup(18
On Fri, 10 Oct 2014 08:31:04 +0200, Irmen de Jong wrote:
> On 10-10-2014 6:21, Igor Korot wrote:
>> When I am on Windows, I can write something like this:
>>
>> sys.path.append('C:\Users\Igor\Documents\MyLib')
>
> While this might work on your system, it may not work on others.
>
> - you need to
On Mon, 06 Oct 2014 08:42:01 -0600, Michael Torrie wrote:
> On 10/06/2014 07:07 AM, varun...@gmail.com wrote:
>>> Okay, I forgot to explain them. L is a set of links, dist is a
>>> number (distance), bd is the bandwidth and hc is a number as well
>>> (hopcount)...different bandwidths, hopcounts an
On Sat, 04 Oct 2014 11:09:58 +1000, Steven D'Aprano wrote:
> Chris Angelico wrote:
>
>> On Sat, Oct 4, 2014 at 8:54 AM, Seymore4Head
>> wrote:
>
>>> for i in range(1,10):
>>> print (str(i)*i)
>>
>> Seymour, please don't do this. When you "help" someone by just giving
>> him the answer to a ho
On Sat, 6 Sep 2014 12:53:16 +0200, Manolo Martínez wrote:
> On 09/06/14 at 08:38pm, Steven D'Aprano wrote:
>> But even that's not how the specialists do it. If you want to check whether
>> (say) 2**3000+1 is prime, you don't want to use trial division at all...
>
> When I was interested in these th
On Sat, 23 Aug 2014 19:08:10 +1000, Steven D'Aprano wrote:
> Marko Rauhamaa wrote:
>> Rob Gaddi :
>>
>>> Emacs and vim both have huge learning curves
>>
>> Really now?
>>
>> When you start emacs, it advises you to start the builtin tutorial.
>
> You need a tutorial for a text editor???
Did you
On Tue, 19 Aug 2014 05:54:24 -0700 (PDT), Jurgens de Bruin wrote:
>
> I do hope somebody can help me with the following:
> I have the followings lists which represent the upper and lower value
> of a range/array.
>
> a = [1,50]
> b = [75,150]
> c = [25,42]
> d = [120,149]
> e = [35,55]
>
> What I w
On Wed, 13 Aug 2014 14:16:02 -0600, Ian Kelly wrote:
>
> . . . and as computers get more powerful the intersection
> of {problems machines can't solve} and {problems humans can reliably
> solve} grows ever smaller.
"Which of the following eight sentences are sarcastic in tone?"
--
To email me,
On Wed, 13 Aug 2014 15:58:02 +0200, Peter Otten <__pete...@web.de> wrote:
> Mok-Kong Shen wrote:
>
>> I like to compute log base 2 of a fairly large integer n but
>> with math.log(n,2) I got:
>>
>> OverflowError: long int too large to convert to float.
[snip]
> Or maybe our idea of "fairly large
On Tue, 12 Aug 2014 15:44:58 -0700 (PDT), Simon Evans wrote:
[snip]
> Dear Programmers, Thank you for your responses. I have installed
> 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup'
> book, but can't seem to make any progress with it, I am too thick to
> make much use of it.
On 01 Aug 2014 14:26:38 GMT, Alex van der Spek wrote:
[snip]
> This newsgroup scares me, it appears to be for professional computer
> scientists only, the theoretical part is sometimes too much for this
> practical physicist with an old background in FORTRAN.
>
> Is there a better place to ask q
On Tue, 22 Jul 2014 12:34:51 -0700 (PDT), fl wrote:
[snip]
>
> But I don't understand the reassign function result:
>
def reassign(list):
> ... list=[0,1]
> ...
list=[0]
reassign(list)
print list
> [0]
When you say "def reassign(list)", that means "I'm defining a function
t
On Thu, 19 Jun 2014 12:25:23 +0100, MRAB wrote:
[snip]
> and then you can say:
>
> def myCase(c):
> if len(c) < 8 or len(c) > 80:
> return False
>
> if c in mySet:
> return False
>
> return True
>
> which can be shortened to:
>
> def m
On 29 May 2014 14:06:47 GMT, Albert van der Horst wrote:
> In article ,
> Mark H Harris wrote:
>>On 5/11/14 1:59 PM, Chris Angelico wrote:
> julia> prec=524288
> 524288
> julia> with_bigfloat_precision(prec) do
> println(atan(BigFloat(1)/5)*16 - atan(BigFloat(1)/239)
On Thu, 27 Mar 2014 06:41:55 -0700 (PDT), James Smith wrote:
> On Thursday, March 27, 2014 1:32:03 AM UTC-4, Steven D'Aprano wrote:
>
>> - are you mistaken about the content of the file?
>>
>> I can't help you with the first. But the second: try running this:
>>
>> # line2 and pat as defined abov
On Sat, 25 Jan 2014 17:08:56 +1100, Chris Angelico wrote:
> On Sat, Jan 25, 2014 at 3:37 PM, Steven D'Aprano
> wrote:
>> But using Python 2.7, I get a really bad case of moji-bake:
>>
>> [steve@ando ~]$ python2.7 -c "print u'ñøλπйж'"
>> ñøλÏйж
>
> What's 2.7's default source code encoding? I
On Thu, 9 Jan 2014 15:14:55 +1100, Chris Angelico wrote:
[snip]
> What I find, most of the time, is that it's Americans who can't handle
> DST. I run an international Dungeons and Dragons campaign (we play
> online, and new players are most welcome, as are people watching!),
> and the Aussies (myse
On Wed, 27 Nov 2013 08:33:43 -0500, Neil Cerutti wrote:
> On Wed, Nov 27, 2013 at 5:46 AM, wrote:
>> I am working on a problem (Bioinformatics domain) where all
>> possible combinations of input string needs to be printed as
>> sublist
>>
>> For example:
>> Input string : "LEQN"
>> Output= "[L",
On Wed, 13 Nov 2013 15:35:56 -0500, bob gailer wrote:
> I joined a week or so ago.
>
> The subject line was copied from the description of comp.lang.python aka
> python-list@python.org.
>
> I am very disappointed to see so much energy and bandwidth going to
> conversations that bash individuals.
On Mon, 4 Nov 2013 11:46:54 -0800 (PST), Pratik Mehta wrote:
> I have written Python code for Google Drive which uploads the image
> files to my drive app. I have three queries. Here is my code:
[snip]
>
> My Queries:
> 1. This program will upload all the images to my given client_id and
> client_
On Sun, 6 Oct 2013 18:47:38 -0400, Robert Jackson wrote:
> --089e0160b7be912b9e04e81a52b2
> Content-Type: text/plain; charset=ISO-8859-1
>
> I am very new to python
[snip]
Welcome.
> . . . I sometimes find the
> when I construct the bytes object to write it adds an extra f to the first
> byte.
On Fri, 04 Oct 2013 20:17:52 -0400, Rouslan Korneychuk wrote:
[snip]
> I was also wondering about general relativity. I'm not going to go into
> too much detail, but basically: if an object with synchronized clocks on
> either end of it, passes by a static observer while traveling near the
> sp
On Sat, 29 Jun 2013 10:28:47 -0700 (PDT), gmsid...@gmail.com wrote:
> I was wondering if there was a couple of words or things i
> could add to the top of my python script to password
> protect it so that it asks user for the password and then
> after three tries it locks them out or says "access
>
On Mon, 13 May 2013 10:59:33 -0500, Jonathan Hayward wrote:
> --e89a8f3b9db145cbab04dc9b9a23
> Content-Type: text/plain; charset=windows-1252
> Content-Transfer-Encoding: quoted-printable
>
[snipped many lines of quoted-printable muck]
> My code is below. What should I be doing differently to be,
On Fri, 5 Apr 2013 18:04:03 +0530, inshu chauhan wrote:
> --089e0111cf5068b65204d99c4d46
> Content-Type: text/plain; charset=ISO-8859-1
[snip]
> Here in my part of the code where cc is a dictionary. I want to understand
> what actually cc.iterkeys() and cc[k] actually doing.
> I am already reading
101 - 200 of 341 matches
Mail list logo