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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
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
looks cool
http://www.nagare.org/trac/wiki/NagareFeatures
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
believe, You should ask the Pycharm People about this.
Python is not Pycharm... :|
Johannes
--
https://mail.python.org/mailman/listinfo/python-list
'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
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,
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
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
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
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.
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
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.
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
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
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
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
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
> 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
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
--
>>
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)
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
>>> [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
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:
>>>
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
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
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
. 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
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
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
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
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!
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?
&
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
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
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
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'
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
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
;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
this?
Thanks in advance,
Johannes
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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?
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
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
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
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
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
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
> 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
--
>
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
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
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
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
--
>&
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,
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
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
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
--
>>
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
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
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
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
(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?
>
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
--
>
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
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
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 ö
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
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
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
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:
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
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
--
>
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
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?
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
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
101 - 200 of 309 matches
Mail list logo