Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
On Sat, 30 Nov 2013 01:38:36 +0100 Johannes Findeisen wrote: > On Fri, 29 Nov 2013 16:31:21 -0800 (PST) > farhan...@gmail.com wrote: > > > print "The total rolled was: "number" " > > The above line is wrong. You did it right below: > > > pri

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
should get more sleep before answering. Anyway, Thank you for the explanation of this. Sleep well... ;) Johannes -- https://mail.python.org/mailman/listinfo/python-list

Re: wiimote IR tracking in python

2013-12-01 Thread Johannes Findeisen
hink is because i don't have any > idea how to import the cwiid module. Can anyone please provide me some > informations about this? Thanks so much. Did you took a look here: http://abstrakraft.org/cwiid/ ? There you find the sources and installation instructions in a README

Programming puzzle with boolean circuits

2013-12-09 Thread Johannes Bauer
le again and was thinking about: How would I code a brute-force approach to this problem in Python? And to my surprise, it isn't as easy as I thought. So I'm looking for some advice from you guys (never huts to improve ones coding skills). Best regards, Johannes -- >> Wo hattes

Differences between obj.attribute and getattr(obj, "attribute")

2013-12-11 Thread Johannes Schneider
Hi list, can somebody explain me the difference between accessing attributes via obj.attribute and getattr(obj, "attribute")? Is there a special reason or advantage when using getattr? bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228

Re: Differences between obj.attribute and getattr(obj, "attribute")

2013-12-11 Thread Johannes Schneider
thank you guys. On 11.12.2013 10:36, Chris Angelico wrote: 2013/12/11 Johannes Schneider : can somebody explain me the difference between accessing attributes via obj.attribute and getattr(obj, "attribute")? Is there a special reason or advantage when using getattr? You use getatt

Re: Programming puzzle with boolean circuits

2013-12-11 Thread Johannes Bauer
On 09.12.2013 14:25, Chris Angelico wrote: >> I found this puzzle again and was thinking about: How would I code a >> brute-force approach to this problem in Python? > > Ooooh interesting! Ha, I thought so too :-) > Well, here's a start: There's no value in combining the same value in > an AND

Re: Script Request

2013-12-11 Thread Johannes Findeisen
t building a lot of service checks for all the everyday monitoring tasks. Even the Shell interface is only partly usable at the moment so this will also be done until early 2014. If you have any questions about this software feel free to conatct me directly via mail. Regards, Johannes -- https://mail

Re: Brython (Python in the browser)

2013-12-27 Thread Johannes Schneider
On 27.12.2013 07:14, Pierre Quentel wrote: Hi, Ever wanted to use Python instead of Javascript for web client programming ? Take a look at Brython, an implementation of Python 3 in the browser, with an interface with DOM elements and events Its use is very simple : - load the Javascript libra

Re: Blog "about python 3"

2014-01-05 Thread Johannes Bauer
On 31.12.2013 10:53, Steven D'Aprano wrote: > Mark Lawrence wrote: > >> http://blog.startifact.com/posts/alex-gaynor-on-python-3.html. > > I quote: > > "...perhaps a brave group of volunteers will stand up and fork Python 2, and > take the incremental steps forward. This will have to remain just

Imports in Python

2014-01-21 Thread Johannes Schneider
ation? bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) http://www.galileo-press.de/ Geschäftsführer: Tomas Wehren, Ralf Kaulisch, R

Re: matlabFunction Equivalent?

2014-01-21 Thread Johannes Schneider
ebraSystem using python as its base and supporting most (all?) of the python syntax and moduls bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0

Re: SIngleton from __defaults__

2014-01-23 Thread Johannes Schneider
lobal namespace. But the value differs in stuff() and before/after the import statement. So the instance of the module differs -> it cannot be a singelton. bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinw

Re: SIngleton from __defaults__

2014-01-24 Thread Johannes Schneider
thnx guys. On 24.01.2014 01:10, Terry Reedy wrote: Johannes Schneider Wrote in message: On 22.01.2014 20:18, Ned Batchelder wrote: On 1/22/14 11:37 AM, Asaf Las wrote: Chris is right here, too: modules are themselves singletons, no matter how many times you import them, they are only

Re: Convert NTP timestamp from NTP packet to System time and date format

2014-01-30 Thread Johannes Findeisen
t stuff by yourself just take a look at the code of ntplib, it should explain what you want. Regards, Johannes -- https://mail.python.org/mailman/listinfo/python-list

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Johannes Findeisen
/configure and make executed without any error using exactly your parameters. > Thanks in advance, You are welcome... ;) Regards, Johannes -- https://mail.python.org/mailman/listinfo/python-list

Possible bug with stability of mimetypes.guess_* function output

2014-02-07 Thread Johannes Bauer
now if stable output is guaranteed for these functions, but it sure would be nice. Messes up a whole bunch of things otherwise :-/ Please let me know if this is a bug or expected behavior. Best regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht

Re: Possible bug with stability of mimetypes.guess_* function output

2014-02-07 Thread Johannes Bauer
nything. With this: #!/usr/bin/python3 import mimetypes mimetypes.init() print(mimetypes.guess_extension("application/msword")) And a call like this: $ for i in `seq 100`; do ./x.py ; done | sort | uniq -c I get 35 .doc 24 .dot 41 .wiz Regards, Johannes -- >> W

anyone have a nagare based website up I can see? comment on experience of using?

2014-02-07 Thread johannes falcone
looks cool http://www.nagare.org/trac/wiki/NagareFeatures -- https://mail.python.org/mailman/listinfo/python-list

Re: pip3.x error using LIST instead of list

2014-02-11 Thread Johannes Findeisen
On Tue, 11 Feb 2014 14:10:32 + Mark Lawrence wrote: > As the subject line says, details below. > > c:\Python34\Scripts>pip3.4 LIST > Traceback (most recent call last): >File "C:\Python34\lib\runpy.py", line 189, in _run_module_as_main > "__main__", mod_spec) >File "C:\Python34\li

Re: raise None

2015-12-31 Thread Johannes Bauer
the tracebacks really are unintuitive. Unless I missed something, this seems like a nice feature. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Die Geheim

Re: raise None

2016-01-02 Thread Johannes Bauer
e-go. Your argumentation makes therefore no sense in this context. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Die Geheim-Vorhersage. - Karl Kaos über

Re: Recurring Prompt

2016-01-21 Thread Johannes Findeisen
believe, You should ask the Pycharm People about this. Python is not Pycharm... :| Johannes -- https://mail.python.org/mailman/listinfo/python-list

Re: snmpset

2016-02-05 Thread Johannes Findeisen
't envy you > > if you should need to subclass something to change its behavior, but > > it is effective. > > > > -- > > Zach > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > > That page 404s for me SourceForge seems to have problems at all... The Homepage is down too. Johannes -- https://mail.python.org/mailman/listinfo/python-list

Re: What is heating the memory here? hashlib?

2016-02-15 Thread Johannes Bauer
be free if any process would sbrk(). My guess is that you only looked at the "free" number going down and concluded your program is eating your RAM. Which it wasn't. Cheers Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah,

the ressurection of ZOPE for web domination? bluebream and caveman the answer?

2014-10-22 Thread johannes falcone
i loved the rant about how zope would have all these features, and then some other python framework would come on with like 1 and act like its the bomb, and zope was like we been doing that and more for X years those who dont study zope are doomed to repeat it!!! is zope scoffing at drupal? bot

Idiomatic backtracking in Python

2015-01-25 Thread Johannes Bauer
pproach to backtracking problems? If so, I'd love to hear your solutions! Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Die Geheim-Vorhersage. - Karl

Re: sqlite3 and dates

2015-02-18 Thread Johannes Bauer
ar. I was quite surprised that regular lawnmowers don't support those. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Die Geheim-Vorhersage

Re: sqlite3 and dates

2015-02-18 Thread Johannes Bauer
fort to setup and it *does* take a significant effort to maintain. Especially in comparison with something like SQLite that literally has no setup at all. PostgreSQL is great. It's an incredible database and that it's free is amazing. But in very few settings will it be a replacement for SQLite.

Re: sqlite3 and dates

2015-02-18 Thread Johannes Bauer
On 18.02.2015 13:14, Chris Angelico wrote: > On Wed, Feb 18, 2015 at 10:57 PM, Johannes Bauer wrote: >> SQLite and Postgres are so vastly different in their setup, >> configuration, capabilities and requirements that the original developer >> has to have done a MAJOR error i

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Johannes Schneider
I'm using paramiko to access some routers and firewalls from python and it works very well. bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.

Re: The sum of numbers in a line from a file

2014-02-21 Thread Johannes Schneider
hen do the same for the last two columns. I want to do this for every name. All I've got is sum([int(s.strip()) for s in open('file').readlines()]) -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rhein

Re: YADTR (Yet Another DateTime Rant)

2014-03-27 Thread Johannes Bauer
eady been thrown into the incinerator, is that good enough for you? Or do I have to fulfill some ISO-9001 certified privileged mail destruction procedure? Please advise on how I shall continue my life. Cheers, Johannes IMPORTANT NOTICE: If you write mails to newsgroups with a ridiculous conf

Re: YADTR (Yet Another DateTime Rant)

2014-03-27 Thread Johannes Bauer
days, -2982 hours Yet Python doesn't (but chooses an equally braindead representation). Where can I enter a PIP that proposes that all timedelta strings are fixed at 123 days (for positive, non-prime amount of seconds) and fixed at -234 days (for all negative or positive prime amount of seconds

Re: YADTR (Yet Another DateTime Rant)

2014-03-27 Thread Johannes Bauer
On 27.03.2014 11:44, Chris Angelico wrote: > On Thu, Mar 27, 2014 at 9:22 PM, Johannes Bauer wrote: >> Besides, there's an infinite amount of (braindead) timedelta string >> representations. For your -30 hours, it is perfectly legal to say >> >> 123 days, -2982 hou

Re: YADTR (Yet Another DateTime Rant)

2014-03-27 Thread Johannes Bauer
read by humans. Therefore its highest priority should be to output something that can, in fact, be easily parsed by humans. The current format is nothing of the sort. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der ne

Re: checking if two things do not equal None

2014-03-29 Thread Johannes Bauer
> Or if you prefer: > > if a is not b is not None: ... Is this an obfuscated coding contest? Why do you opt for a solution that one has to at least think 2 seconds about when the simplest solution: if (a is not None) or (b is not None): is immediately understandable by everyone? Che

Re: checking if two things do not equal None

2014-03-29 Thread Johannes Bauer
t None: ... > > belong in an obfuscated coding contest. Code gets read a lot more often > than it get written. Make it dead-ass simple to understand, and future > generations of programmers who inherit your code will thank you for it. Absolutely. Cheers, Johannes -- >>

Re: checking if two things do not equal None

2014-03-29 Thread Johannes Bauer
On 29.03.2014 22:55, Johannes Bauer wrote: >>> if (a is not None) or (b is not None): > > Yes, probably. I liked the original, too. If I were writing the code, > I'd probably try to aim to invert the condition though and simply do > > if (a is None) and (b is None)

webapp stuck on 1 cpu

2014-04-09 Thread johannes falcone
do python web frameworks green thread but are stuck on 1 cpu or like aolserver do they use os threads and then maybe a combo of green and events ? so that a webapp can use a 64 cpu machine with out pain? -- https://mail.python.org/mailman/listinfo/python-list

Re: why i have the output of [None, None, None]

2014-04-10 Thread Johannes Schneider
>>> [print("ok") for it in x if it.strip() !=""] ok ok ok [None, None, None] i understand there are three 'ok' in the output,but why i have the output of [None, None, None] -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.d

Re: The “does Python have variables?” debate

2014-05-08 Thread Johannes Schneider
x27;foo', 3] this means, l1 consists of "pointers" to its values. Otherwise, it's not calling by reference, because >>> g(l1) >>> l1 [1, 'foo', 3] does not change l1. Once again, if I pass an object it behaves like calling by reference: >>>

Re: Everything you did not want to know about Unicode in Python 3

2014-05-13 Thread Johannes Bauer
e still valid strings. Manipulating the bytes representation of unicode data just doesn't work. And I'm very very glad that some people felt the same way and implemented a sane, consistent way of dealing with Unicode in Python3. It's one of the reasons why I switched to Py3 very

Re: Everything you did not want to know about Unicode in Python 3

2014-05-13 Thread Johannes Bauer
esentation (data bytes), which is beautiful. Accidental mixing is not possible. And you have some thing *guaranteed* for the string type which aren't guaranteed for the bytes type (for example when doing string manipulation). Regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vo

Re: Everything you did not want to know about Unicode in Python 3

2014-05-13 Thread Johannes Bauer
ctly as it gives developers *guarantees* about what they can and cannot do with text datatypes without having to deal with encoding issues in many places. Just one place: The interface where text is read or written, just as it should be. Regards, Johannes -- >> Wo hattest Du das Beben nochmal

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread Johannes Bauer
. Even though I could claim that the vertical formatting is all messed up when you don't display my code with the correct font size! Ridiculous, right? Regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heu

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Johannes Schneider
easy after that. 2. other way: Use Stair-functions: you can approximate the Value of IV() by the sum over T(E_i) * (E_{i+1} - E_i) s.t. E_0 = E_F-\frac{eV}{2} and E_n = E_F+\frac{eV}{2}. 3 one more way: use a computer algebra system like sage. bg, Johannes On 16.05.2014 10:49, Enlong Liu

Re: Python is horribly slow compared to bash!!

2014-05-26 Thread Johannes Bauer
garbage! import time def myfunction(constant): if constant == 1: time.sleep(1) else: time.sleep(1000) constant = 1 myfunction(constant) Now let's all code Itanium assembler, yes? Cheers, Johannes -- >> Wo hattest Du das Beben nochmal

Re: Python 3 is killing Python

2014-05-28 Thread Johannes Bauer
all: They would complain to each other and stay away from the mailing lists of people who actually *embrace* progress and who appreciate the wonderful features Py3 has given us. What a wonderful world it would be. So, I agree with the above blogpost. Some lazy blogwriting bum should fork Py2! Che

Re: Python 3 is killing Python

2014-05-31 Thread Johannes Bauer
from Py3 and most of it will apply. You'll be missing out on a bunch of cool features (arbitrary precision ints, int division operator, real Unicode support) but that's no big deal. Regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich!

Re: Python 3 is killing Python

2014-06-02 Thread Johannes Bauer
On 02.06.2014 18:21, Roy Smith wrote: > Are we talking Tolkien trolls, Pratchett trolls, Rowling trolls, D&D > trolls, WoW trolls, or what? Details matter. Monkey Island trolls, obviously. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? &

Re: Basic Python Query

2013-08-21 Thread Johannes Bauer
t you mentioned. Could you elaborate on your suggestion? I don't seem to quite get it I'm afraid. Best regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmolog

Re: Basic Python Query

2013-08-22 Thread Johannes Bauer
ng from threading.Thread when you don't need threads. What I understood was that, in order to use Threads, you could also just pass a closure to some static function of threading in order to fire up a thread. That may or may not be true. However, I find deriving from Thread, instanciating an obje

Re: Basic Python Query

2013-08-22 Thread Johannes Bauer
d if all you are doing is a simple object with state, nor if your >> program does not need concurrency. >> > I think it is safe to assume that Johannes meant, "when I use threads, I > never do it the way you suggested, I always derive from threading.Thread." Yup, th

Re: pycrypto: what am I doing wrong?

2013-10-24 Thread Johannes Bauer
On 24.10.2013 09:07, Chris Angelico wrote: > On Thu, Oct 24, 2013 at 4:22 PM, Paul Pittlerson > wrote: >> msg = cipher.encrypt(txt) >> > '|s\x08\xf2\x12\xde\x8cD\xe7u*' >> >> msg = cipher.encrypt(txt) >> > '\xa1\xed7\xb8h> >> # etc > AES is a stream cipher; No, it is definitely not! It'

Re: pycrypto: what am I doing wrong?

2013-10-24 Thread Johannes Bauer
On 24.10.2013 07:22, Paul Pittlerson wrote: > What am I doing wrong? You're not reinitializing the internal state of the crypto engine. When you recreate "cipher" with the same IV every time, it will work. Best regards, Joe -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindes

Re: pycrypto: what am I doing wrong?

2013-10-24 Thread Johannes Bauer
On 24.10.2013 09:33, Johannes Bauer wrote: > On 24.10.2013 07:22, Paul Pittlerson wrote: > >> What am I doing wrong? > > You're not reinitializing the internal state of the crypto engine. When > you recreate "cipher" with the same IV every time, it will

Re: array/list of sockets

2013-10-26 Thread Johannes Findeisen
;CSock3', 'CSock4', 'CSock5'] You actually have added strings to your list. this 'is_a_string. You need to add the objcts to the list. E.g.: myCSocks = [CSock1, CSock2, CSock3, CSock4, CSock5] Hope this helps. Regards, Johannes -- https://mail.python.org/mailman/listinfo/python-list

Logging to file and not to console

2013-10-27 Thread Johannes Findeisen
this? Thanks in advance, Johannes -- https://mail.python.org/mailman/listinfo/python-list

Re: Logging to file and not to console

2013-10-27 Thread Johannes Findeisen
On Sun, 27 Oct 2013 11:09:08 +0100 Peter Otten wrote: > Johannes Findeisen wrote: > > > Hi all, > > > > I am going crazy with logging. I have an application which sets up > > logging after parsing the args in the main() funktion. It needs to be > > setup afte

Re: Logging to file and not to console

2013-10-27 Thread Johannes Findeisen
On Sun, 27 Oct 2013 11:09:08 +0100 Peter Otten wrote: > Johannes Findeisen wrote: > > > Hi all, > > > > I am going crazy with logging. I have an application which sets up > > logging after parsing the args in the main() funktion. It needs to be > > setup afte

Python3 doc, operator reflection

2013-10-28 Thread Johannes Bauer
are each other’s reflection, __le__() and > __ge__() are each other’s reflection, and __eq__() and __ne__() are their own > reflection. But shouldn't __lt__ be the reflection or __ge__ and __gt__ the reflection of __le__? Best regards, Johannes -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3 doc, operator reflection

2013-10-28 Thread Johannes Bauer
Am 28.10.2013 13:23, schrieb Chris Angelico: > On Mon, Oct 28, 2013 at 11:00 PM, Johannes Bauer wrote: >>> There are no swapped-argument versions of these methods (to be used when >>> the left argument does not support the operation but the right argument >>> does

Re: Automation

2013-11-03 Thread Johannes Findeisen
d at http://www.python-excel.org/ ? May this can help you solving your problem. Since you are not explaining what you want to do I can really not help you more. And I don't use Excel too. And maybe ask the people over at http://groups.google.com/group/python-excel if they can help you. Regards, Joha

Re: To whoever hacked into my Database

2013-11-06 Thread Johannes Findeisen
to do it right. Read code from other projects around the web to learn, read the beginners guide and start with some tutorials. If I would sell hosting packages like you do I could not sleep well at night if I know I have such lame skills in understanding of security, programming and computer s

Re: Is this unpythonic?

2015-05-10 Thread Johannes Bauer
where in the code at some point in time >>> foo = EMPTY_LIST >>> foo.append(123) >>> print(foo) [123] # Some other place in code >>> bar = EMPTY_LIST >>> print(bar) [123] Regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt?

Re: Is this unpythonic?

2015-05-10 Thread Johannes Bauer
n all, I'd be more confused why someone would introduct "EMPTY_LIST" in the first place and think there's some strange weird reason behind it. Explaining the reason in the comments doesn't really help in my opinion. Best regards, Johannes -- >> Wo hattest Du das Beben

textwrap.wrap() breaks non-breaking spaces

2015-05-17 Thread Johannes Bauer
nt break Apparently it does recognize that \xa0 is a kind of space, but it thinks it can break any space. The point of \xa0 being exactly to avoid this kind of thing. Any remedy or ideas? Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffe

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
olution also opens up obvious attack surface? Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Die Geheim-Vorhersage. - Karl Kaos über Rüdiger Thomas in ds

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
On 23.05.2015 14:44, Marko Rauhamaa wrote: > Johannes Bauer : > >> I dislike CAs as much as the next guy. But the problem of distributing >> trust is just not easy to solve, a TTP is a way out. Do you have an >> alternative that does not at the same time to providing a s

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
r google.de But CA1 could never sign any .de domain webserver certificate. It would only ever get more restrictive down the chain. Sounds like it's trivial to implement, I wonder why it's not in place. It must have some huge drawback that I can't think of right now. Cheers, Johannes

Re: Ah Python, you have spoiled me for all other languages

2015-05-24 Thread Johannes Bauer
On 23.05.2015 19:05, Marko Rauhamaa wrote: > Johannes Bauer : > >> I think the major flaw of the X.509 certificate PKI we have today is >> that there's no namespacing whatsoever. This is a major problem, as >> the Government of Untrustworthia may give out certifictes

Re: Function to show time to execute another function

2015-06-07 Thread Johannes Bauer
> works in ipython, not python and which also not works with Windows). Protip: Ditch the shitty attitude. I don't know if you're a jerk or not but I know for sure that you sound like one. Makes it also much less likely to get the answers you'd like. Cheers, Johannes -- >

Re: Function to show time to execute another function

2015-06-07 Thread Johannes Bauer
m this discussion. I do not aid people who fail to recognize their major social dysfunction. Not even when they are coding geniuses. Which, judging from your code snippet, you clearly aren't. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest ni

Re: Using ssl module over custom sockets

2015-06-08 Thread Johannes Bauer
be cool to have an alternative way of specifying a send/recv function IMHO). Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Die Geheim-Vorhersage. - K

Re: Jython and can't write cache file

2015-06-21 Thread Johannes Bauer
On 21.06.2015 11:40, Cecil Westerhof wrote: > Thanks. Good that I asked it. :-D Good for you that you found someone able to enter words into a Google query. That's a skill you might want to acquire some time in the future. Cheers, Johannes -- >> Wo hattest Du das Beben

Re: Pure Python Data Mangling or Encrypting

2015-06-26 Thread Johannes Bauer
ou're not), since the first question people will ask will be: "Why? Why on earth?" It's a blatantly obvious bad idea(tm). That people in 2015 actually defend inventing a substitution-cipher "crypto"system sends literally shivers down my spine. Cheers, Johannes -- >&

Re: Pure Python Data Mangling or Encrypting

2015-06-26 Thread Johannes Bauer
obfuscation system that can't be broken by laymen in a Python newsgroup and which appers to be secure. This does not imply one bit that it is even remotely secure. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah,

Re: Pure Python Data Mangling or Encrypting

2015-06-26 Thread Johannes Bauer
ing to your definition, this would be: It's okay if the attacker can control 6 of 8 bits. >> That people in 2015 actually defend inventing a substitution-cipher >> "crypto"system sends literally shivers down my spine. > > Nobody is defending such a thing, you just h

Re: Pure Python Data Mangling or Encrypting

2015-06-26 Thread Johannes Bauer
or bad schemes. Rest snipped, explanation futile. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Die Geheim-Vorhersage. - Karl Kaos über Rüdiger Thomas in

Re: Pure Python Data Mangling or Encrypting

2015-06-27 Thread Johannes Bauer
user to make a serious mess of stuff.) But I'm under no > delusions. I don't say "this is secure" - all I'm saying is "this > works in proof-of-concept". I must admit that I haven't seen your ideas in this thread? Best regards, Johannes -- >>

Re: Pure Python Data Mangling or Encrypting

2015-06-27 Thread Johannes Bauer
you a thourough appreciation for the true crypto experts (i.e. people doing theoretical cryptography). Best regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Di

Re: Pure Python Data Mangling or Encrypting

2015-06-27 Thread Johannes Bauer
On 27.06.2015 11:27, Jon Ribbens wrote: > Johannes might have all the education in the world, but he's > demonstrated quite comprehensively in this thread that he doesn't > have a clue what he's talking about. Oh, how hurtful. I might even shed a tear or two, but it&#

Re: Pure Python Data Mangling or Encrypting

2015-06-27 Thread Johannes Bauer
and offline solution at the cost of being comparatively expensive. The others use symmetric transponders which have limited off-line functionality: i.e. monotonic counters which are reset in a cryptographically secured way by backend systems every time a online-connection persists and which ar

Re: Pure Python Data Mangling or Encrypting

2015-06-27 Thread Johannes Bauer
On 27.06.2015 12:16, Chris Angelico wrote: > Okay, Johannes, NOW you're proving that you don't have a clue what > you're talking about. D-K effect doesn't go away... :-D It does in some people. I've seen it happen, with knowledge comes humility. Not saying Jon

Re: Searching for a usable X509 implementation

2015-07-06 Thread Johannes Bauer
re (especially against only one to identify parent certificates by crypto). I was frustrated back then about the indecisiveness and wrote my own wrapper around the functions I needed and was done with it. Best regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? >

Re: Sometimes bottle takes a lot of time

2015-08-22 Thread Johannes Bauer
On 21.08.2015 23:22, Cecil Westerhof wrote: > Just before everything was done in a second: Since you're on GitHub, why don't you git bisect and find out where you screwed up instead of trying to get people to remotely debug and profile your broken code? Cheers, Johannes -- >

Re: Every character of a string becomes a binding

2015-08-22 Thread Johannes Bauer
o an amateur's problem instead of firing off a Usenet post, oh very wise Senior Software Engineer? Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Di

Re: Sometimes bottle takes a lot of time

2015-08-22 Thread Johannes Bauer
s? Namely, circle the error, reproduce it reliably. Change your machine, network setup and change between your software versions. Create a minimal example that demonstrate the issue. Then, should you find one, blame bottle. Not sooner, very wise Senior Software Engineer, not sooner. Cheers, Joha

Re: Sometimes bottle takes a lot of time

2015-08-22 Thread Johannes Bauer
should take a course in Software Engineering. You wouldn't otherwise ask embarassingly stupid questions over and over and over again. Really eats away at your seniority if you ask me. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht ö

Re: Sometimes bottle takes a lot of time

2015-08-23 Thread Johannes Bauer
suspect that either the OPs program is at fault or the OP's setup (name resolution or some other weird stuff going on). But instead of tackling this problem systematically, like a Software Engineer would (Wireshark, debugger, profiler) he just blames other people's software. This, in my hum

Re: Sometimes bottle takes a lot of time

2015-08-23 Thread Johannes Bauer
x27;t even respond > to this post of yours, but I feel like something has to be said). I'll follow your advice and thank you for your honest words. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und

Re: RPI.GPIO Help

2015-09-01 Thread Johannes Bauer
the interrupt configuration myself (this works through the /proc filesystem on the Pi). Hope this helps, Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen: Di

Understanding WSGI together with Apache

2015-10-10 Thread Johannes Bauer
general or what could cause the described issue in particular, I'd really be grateful. Thanks, Best regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich unsere großen Kosmologen:

Re: Unicode and Python - how often do you index strings?

2014-06-05 Thread Johannes Bauer
that comes up a lot is line = line[:-1] Which truncates the trailing "\n" of a textfile line. Then some indexing in the form of negative = (line[0] == "-") All in all I'm actually a bit surprised this isn't too common. Cheers, Johannes -- >> Wo

Re: Unicode and Python - how often do you index strings?

2014-06-05 Thread Johannes Bauer
On 05.06.2014 20:16, Paul Rubin wrote: > Johannes Bauer writes: >> line = line[:-1] >> Which truncates the trailing "\n" of a textfile line. > > use line.rstrip() for that. rstrip has different functionality than what I'm doing. Cheers, Johannes -- >

Re: Unicode and Python - how often do you index strings?

2014-06-06 Thread Johannes Bauer
On 05.06.2014 20:52, Ryan Hiebert wrote: > 2014-06-05 13:42 GMT-05:00 Johannes Bauer : > >> On 05.06.2014 20:16, Paul Rubin wrote: >>> Johannes Bauer writes: >>>> line = line[:-1] >>>> Which truncates the trailing "\n" of a textfile lin

Re: Unicode and Python - how often do you index strings?

2014-06-06 Thread Johannes Bauer
ht now: (DOS encoded file "y") >>> for line in open("y", "r"): print(line.encode("utf-8")) ... b'foo\n' b'bar\n' b'moo\n' b'koo\n' Yup, the \r was removed automatically. Are there cases when it isn't?

Re: OT: This Swift thing

2014-06-15 Thread Johannes Bauer
27;s even a GM company memo that states "Hey Ray, just do what is sensible engineering-wise and don't worry about cost. It's kewl." But no, Ray just had to go rogue. Just had to do it his way. Man. Typical Ray thing. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal

Re: OT: This Swift thing

2014-06-15 Thread Johannes Bauer
street_address_map(info_list): return { info.get_street_address(): info.get_zip_code() for info in info_list } Regards, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht öffentlich! Ah, der neueste und bis heute genialste Streich un

<    1   2   3   4   >