posted via a python 3 script too

2020-01-13 Thread aa
2
3
4
5   10 lines
6
7   some random garbage ... x lines cant be empty
8
9
tenth line starting at 14
-- 
https://mail.python.org/mailman/listinfo/python-list


posted via a python 3 script too yes

2020-01-13 Thread aa
2
3   torsocks python3  ./3usenet.py
4
5   10 lines
6
7   some random garbage ... x lines cant be empty
8
9
tenth line starting at 14
-- 
https://mail.python.org/mailman/listinfo/python-list


self - hosted usenet poster with python

2020-01-14 Thread aa
#!/usr/bin/envpython3
#   torsocks

import nntplib
s= nntplib.NNTP( 'news.samoylyk.net')
hh   = nntplib.decode_header("=?ISO-8859-15?Q?D=E9buter_Py?=")
print(hh)

#resp, count, first, last, name = s.group( 'free.willey')
#print('Group', name, 'has', count, 
'articles, range', first, 'to', last)

#resp, overviews = s.over((last - 3, last))
#for   id, over in overviews:
#   pass
#   print(id, nntplib.decode_header(over['subject']))  #
comp.lang.python.narkive.com.

x =f = open('usenet_post.txt', 'rb')   # all relevant headers set   
groups.google.com/forum/#!forum/comp.lang.python
e = s.post(f)

#resp,  descs = s.descriptions('alt.*')
#print   (  len(descs))
#print   (  descs.popitem()   ) # 
'alt..fred-hall-is-a-piece-of-shit', 'Fred Hall is a piece of shit'

s.quit()
'''
the file   usenet_post.txt with these headers originally:

Path:
From: aa 
Subject: self - hosted usenet poster with python
Newsgroups: comp.lang.python
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=ISO-8859-1
Date: Mon, 13 Jan 2020 01:00:00 GMT
Lines: 25
Organization: pythonista.org
X-Newsreader: python 3
X-No-Archive: no
X-User-Key:   py
X-User-Signature: python spam now comes to comp lang py as well

'''
-- 
https://mail.python.org/mailman/listinfo/python-list


self - hosted usenet poster py script - pretty cool, 20 lines only

2020-01-14 Thread aa
#!/usr/bin/envpython3
#   torsocks

import nntplib
s= nntplib.NNTP( 'news.samoylyk.net')
hh   = nntplib.decode_header("=?ISO-8859-15?Q?D=E9buter_Py?=")
print(hh)

#resp, count, first, last, name = s.group( 'free.willey')
#print('Group', name, 'has', count, 
'articles, range', first, 'to', last)

#resp, overviews = s.over((last - 3, last))
#for   id, over in overviews:
#   pass
#   print(id, nntplib.decode_header(over['subject']))  #
comp.lang.python.narkive.com.

x =f = open('usenet_post.txt', 'rb')   # all relevant headers set   
groups.google.com/forum/#!forum/comp.lang.python
e = s.post(f)

#resp,  descs = s.descriptions('alt.*')
#print   (  len(descs))
#print   (  descs.popitem()   ) # 
'alt..fred-hall-is-a-piece-of-shit', 'Fred Hall is a piece of shit'

s.quit()
'''
the file   usenet_post.txt with these headers originally:

Path:
From: aa 
Subject: self - hosted usenet poster with python
Newsgroups: comp.lang.python
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8
Date: Mon, 13 Jan 2020 01:00:00 GMT
Lines: 25
Organization: pythonista.org
X-Newsreader: python 3
X-No-Archive: no
X-User-Key:   py
X-User-Signature: python spam now comes to comp lang py as well

'''
-- 
https://mail.python.org/mailman/listinfo/python-list


self - hosted usenet poster py script - pretty cool, 20 lines only

2020-01-14 Thread aa
#!/usr/bin/envpython3
#   torsocks

import nntplib
s= nntplib.NNTP( 'news.samoylyk.net')
hh   = nntplib.decode_header("=?ISO-8859-15?Q?D=E9buter_Py?=")
print(hh)

#resp, count, first, last, name = s.group( 'free.willey')
#print('Group', name, 'has', count, 
'articles, range', first, 'to', last)

#resp, overviews = s.over((last - 3, last))
#for   id, over in overviews:
#   pass
#   print(id, nntplib.decode_header(over['subject']))  #
comp.lang.python.narkive.com.

x =f = open('usenet_post.txt', 'rb')   # all relevant headers set   
groups.google.com/forum/#!forum/comp.lang.python
e = s.post(f)

#resp,  descs = s.descriptions('alt.*')
#print   (  len(descs))
#print   (  descs.popitem()   ) # 
'alt..fred-hall-is-a-piece-of-shit', 'Fred Hall is a piece of shit'

s.quit()
'''
the file   usenet_post.txt with these headers originally:

Path:
From: aa 
Subject: self - hosted usenet poster with python
Newsgroups: comp.lang.python
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8
Date: Mon, 13 Jan 2020 01:00:00 GMT
Lines: 25
Organization: pythonista.org
X-Newsreader: python 3
X-No-Archive: no
X-User-Key:   py
X-User-Signature: python spam now comes to comp lang py as well

'''
-- 
https://mail.python.org/mailman/listinfo/python-list


self - hosted usenet poster py script - pretty cool, 20 lines only

2020-01-14 Thread aa
#!/usr/bin/envpython3
#   torsocks

import nntplib
s= nntplib.NNTP( 'news.samoylyk.net')
hh   = nntplib.decode_header("=?ISO-8859-15?Q?D=E9buter_Py?=")
print(hh)

#resp, count, first, last, name = s.group( 'free.willey')
#print('Group', name, 'has', count, 
'articles, range', first, 'to', last)

#resp, overviews = s.over((last - 3, last))
#for   id, over in overviews:
#   pass
#   print(id, nntplib.decode_header(over['subject']))  #
comp.lang.python.narkive.com.

x =f = open('usenet_post.txt', 'rb')   # all relevant headers set   
groups.google.com/forum/#!forum/comp.lang.python
e = s.post(f)

#resp,  descs = s.descriptions('alt.*')
#print   (  len(descs))
#print   (  descs.popitem()   ) # 
'alt..fred-hall-is-a-piece-of-shit', 'Fred Hall is a piece of shit'

s.quit()
'''
the file   usenet_post.txt with these headers originally:

Path:
From: aa 
Subject: self - hosted usenet poster with python
Newsgroups: comp.lang.python
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8
Date: Mon, 13 Jan 2020 01:00:00 GMT
Lines: 25
Organization: pythonista.org
X-Newsreader: python 3
X-No-Archive: no
X-User-Key:   py
X-User-Signature: python spam now comes to comp lang py as well

'''
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: geckodriver not working while using Selenium

2017-06-30 Thread aa
gecko ?
-- 
https://mail.python.org/mailman/listinfo/python-list


module for calculations involving radioactive decay?

2006-11-02 Thread frederik aa de jonge
does anybody know of a package/module which will facilitate/simplify
calculations with radioactive samples?
as a minimum spec:
- user definable list of radionuclides + names + halflives (expressable in
time units like sec min etc as appropriate)
- choice of units (Bq or Ci, with appropriate modifiers kGM etc
- initial activity at given time (sample calibration)
- activity calculation at other times, taking into account timezones
- operators: add, subtract to simulate adding or removing activity
(needs an "history" mechanism, so that activity at time T is always
correctly calculated)

any help kindly appreciated
Frederik 





-- 
http://mail.python.org/mailman/listinfo/python-list