uot;official"
> recommendation online.
>
> Thanks.
>
> --
> Jonathan.
> --
> https://mail.python.org/mailman/listinfo/python-list
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
https://mail.python.org/mailman/listinfo/python-list
g/mailman/listinfo/python-list
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
https://mail.python.org/mailman/listinfo/python-list
participants!
On Fri, Feb 17, 2017 at 3:47 PM, Makoto Kuwata <k...@kuwata-lab.com> wrote:
> On Thu, Feb 16, 2017 at 6:34 AM, Dotan Cohen <dotanco...@gmail.com> wrote:
>
>> I think that we can help each other! This is my own code, back when I
>> was writing Python l
uired)
> * not good code
> * not too large (for novice programmer)
> * not too complex (for novice programmer)
> * released under open source license
>
> If you know good material in github or bitbucket to refactor,
> let me know it.
>
> --
> regards,
> kwatch
> --
&
evaluate the code
for technical merits with an unestablished, unclear, and unfamiliar
license like that. The donate anything concept is a cute idea, but
put the idea in either an informal request if you BSD license the
code, or as a condition for a commercial license if you GPL the code.
--
Dotan
that I need despite my own failure to
understand what exactly I need.
With Python specifically, the latter far outnumber the former. When
somebody here is giving advice, I listen humbly. Likewise I advise any
newcomer to do.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
https
Thanks, this looks really nice. I was duplicating some of this for my
CLI-based webserver control panel:
https://github.com/dotancohen/burton
As soon as I integrate psutil into Burton I'll add it to the README
and such. How would you like me to mention attribution exactly?
--
Dotan Cohen
http
that's about Python. :)
ChrisA
Chris, the account that you replied to is just a spam account for his
link at the bottom. Helpfully, it appears that Nabble has removed the
link and left only the text.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman
such as some esoteric symbols or Korean/Chinese/Japanese
characters.
[1] http://stackoverflow.com/a/15627281/343302
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
, rather than import the other.
Can I tell which library Requests is currently using and use that?
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
thought that is rather wasteful and
should be avoided. I was probably wrong!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jun 13, 2013 at 4:44 PM, Burak Arslan
burak.ars...@arskom.com.tr wrote:
On 06/13/13 16:25, Dotan Cohen wrote:
paste this to your python console, it'll show you what modules requests
imports:
import sys
p = set(sys.modules)
import requests
for m in sorted(set(sys.modules) - p
.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
And now for something completely different.
Not programming related, but at 1:20 I was expecting a different question:
http://www.aljazeera.com/news/middleeast/2012/08/2012813103922872697.html
I figured if anybody could appreciate that, it would be the folks here. Enjoy!
--
Dotan Cohen
http
On Wed, Aug 15, 2012 at 5:41 PM, Dotan Cohen dotanco...@gmail.com wrote:
And now for something completely different.
Not programming related, but at 1:20 I was expecting a different question:
http://www.aljazeera.com/news/middleeast/2012/08/2012813103922872697.html
I figured if anybody could
Enjoy this relevant article:
http://developers.slashdot.org/story/12/01/14/008236/code-cleanup-culls-libreoffice-cruft
Dotan Cohen
http://what-is-what.com/what_is/open_office.html
--
http://mail.python.org/mailman/listinfo/python-list
.
http://calligra-suite.org/
--
Dotan Cohen
http://what-is-what.com/what_is/python.html
--
http://mail.python.org/mailman/listinfo/python-list
. Apache did refactor OOo in order to integrate
it with Apache coding practices. LO is, however, heavily refactored
from what I understand. Note that this may all be heresy, I've not
looked at the code of either!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http
On Thu, Nov 17, 2011 at 09:37, Ian Kelly ian.g.ke...@gmail.com wrote:
On Wed, Nov 16, 2011 at 11:44 PM, Dotan Cohen dotanco...@gmail.com wrote:
Try this (untested):
class C:
@staticmethod
def foo():
pass
print inside, C.foo, callable(C.foo)
If you had tested this, you would
: staticmethod object at 0x2a3c1a0 could not be
converted to int
Try this (untested):
class C:
@staticmethod
def foo():
pass
print inside, C.foo, callable(C.foo)
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python
On Thu, Sep 1, 2011 at 13:30, Peter Otten __pete...@web.de wrote:
Dotan Cohen wrote:
In the terrific Anki [1] application I am trying to remove trailing
whitespace from form fields. This is my regex:
[\n+\s+]$
My attempt:
sub = re.compile(r\s*?(\n|$)).sub
sub(EOL, alpha \nbeta \r\n
entering it in a regex-supporting
Find/Replace dialogue in Anki. Anki is written in Python.
Thanks.
[1] ankisrs.net
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
that
someone might want (not need) to edit code on a telephone to make a
quick edit to code being interpreted on that machine, _all_ Python
code should limit itself to a line width that may or may not wrap on a
telephone screen?
Is that the argument in favor of an 80-character line width?
--
Dotan Cohen
that programing in a non-fixed width font is a real
pleasure, but the spaces are too narrow. Tabs alleviate that.
I'm still looking for the perfect programming font. Suggestions welcomed.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python
or O.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Jul 17, 2011 at 14:51, Thorsten Kampe thors...@thorstenkampe.de wrote:
* Dotan Cohen (Sun, 17 Jul 2011 14:11:40 +0300)
So long as the indentation lines up (which it does, with tabs or
spaces) then I do not see any problem with variable-width.
What are the counter-arguments
the code gets
to the compiler. Zero vs. O (oh), I've never had this issue either and
even if one key was hit in place of the other (they are close by) then
either the IDE or compiler would catch it, or it would result in a
minor bug in a text string.
It simply isn't an issue.
--
Dotan Cohen
http
man?!?
I have also come to the conclusion that the perfect woman, the perfect
physics theory, and the perfect programming font are all illusions
that men will stride their entire lives in search for but will never
find.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http
! Choose to follow it or die of exceptions; your
choice.
Do you know that Python 4000 is the only language in the world whose
vocabulary gets smaller every year?'
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
is the number thou shalt indent, and the number of the indenting
shall be four. Six thou shalt not indent, neither indent thou two,
excepting that thou then proceed to four. Eight is right out.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo
are not.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
to be
aware of that. Thanks!
maybe some of these are useful info, but maybe you are quite beyond
that. Thanks for your info too. Good luck.
just Xah
Thanks Xah! I will not be online for the next three weeks, so a reply
will be much delayed!
--
Dotan Cohen
http://gibberish.co.il
http://what
? (maybe we can add each other on google talk or some social
network)
Sure, I'll email you from my personal email account soon. But after a
few more hours, I won't be available until late July.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman
, Lee. (or should that be Thanks, Xah?)
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
-
designed the way is was because the inventor's mother in law's
initials were AS and his father is law was DF. The letter combinations
JK and L; were his childrens' initials.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
the experience of one carries over
to the other
Thanks. From testing small movements with my fingers I see that the
fourth finger is in fact a bit weaker than the last finger, but more
importantly, it is much less dexterous. Good to know!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
the
pinkies and onto the index fingers:
http://dotancohen.com/eng/noah_ergonomic_keyboard_layout.html
There is a Colemak version in the works as well.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
nothing. My intention is to improved
the Noah ergonomic keyboard layout. Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
If you disagree, then I invite you to list one example of two
different things that are compatible.
Men and women.
MS Office and Open Office.
IE6 and HTML.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, May 31, 2011 at 21:29, Ian Kelly ian.g.ke...@gmail.com wrote:
On Tue, May 31, 2011 at 11:56 AM, Dotan Cohen dotanco...@gmail.com wrote:
If you disagree, then I invite you to list one example of two
different things that are compatible.
Men and women.
This is a slightly different
that they do not). Therefore Python 3 is a non-starter in any case.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
if it isn't then please post a direct link. Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, May 26, 2011 at 21:38, Ian Kelly ian.g.ke...@gmail.com wrote:
It's a link to ycombinator:
http://news.ycombinator.com/item?id=2588262
Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
languages? for more on that.
Via Nizameddin Haşim Ordulu and JR Ignacio.
--
http://mail.python.org/mailman/listinfo/python-list
They considered Haskell and OCaml and not a single mention of Perl?
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman
weaknesses
until much later in the development, when making changes to the
underlying code organization may be difficult or impossible. In this
early phase of development, he should actually encourage the script
kiddies to report the bugs.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
Linux will do for
you.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
to interface FooWidget with PlasmoidBar, someone
after you will in fact need just the code to do that.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
on the website.
Thanks for your help, and I would appreciate if you help me spread the word,
and give me feedback on the website.
--
http://mail.python.org/mailman/listinfo/python-list
Nice work! I notice that the Next Chapter link does not work.
--
Dotan Cohen
http://gibberish.co.il
http
, and the result should be the
string '11'.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
/mailman/listinfo/python-list
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
/mailman/listinfo/python-list
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
in the end all the brackets
including {} won't need modifier keys. Give me some feedback, please,
on that layout.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
wide config file yourself. You can see tutorials and
sample files for all these here
http://xahlee.org/Periodic_dosage_dir/keyboarding.html
i'd be interested to know what Dotan Cohen use too.
You can see what I started working on yesterday, but it's far from finished:
http://dotancohen.com
.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
).
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Sep 20, 2010 at 12:20, Peter Otten __pete...@web.de wrote:
It may work by accident, if you declare it as UTF-8, because that is also
the default in Python 3.
That does seem to be the case.
Thank you for the enlightenment and information.
--
Dotan Cohen
http://gibberish.co.il
http
character set only, right?
Pretty much, plus the numbers, some symbols, and a few nonprinting
characters. Read here:
http://en.wikipedia.org/wiki/Ascii
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Aug 4, 2010 at 18:30, Dave Angel da...@ieee.org wrote:
Depends on how sure you are that your program will never need characters
outside your greek character set. Remember Y2K?
Don't forget that the Euro symbol is outside the Greek character set.
--
Dotan Cohen
http://gibberish.co.il
the question has meaning.
ׁHTML is just plain text. So the answer to the question is that
ideally, the plain text that is sent to stdout would already be HTML.
print ( titleMy Greek Page/title\n )
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman
On 2 July 2010 05:10, D'Arcy J.M. Cain da...@druid.net wrote:
On Thu, 1 Jul 2010 21:34:15 +0300
Dotan Cohen dotanco...@gmail.com wrote:
I'm one of them. Gmail is great for mailing lists, though I would
never use it as a personal email client. But I'm more of a lurker than
a poster
I would
never use it as a personal email client. But I'm more of a lurker than
a poster on this list, so D'Arcy won't miss me anyway.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
-made/unoconv/
Any answer to the question will depend on why the OP cannot run OOo,
and most likely the answer will be a fix for how to in fact run it
anyway (or MSO).
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
a little late to the party, but I just saw this in Dive Into Python:
multiple = 1024 if a_kilobyte_is_1024_bytes else 1000
It's kind of sloppy as the condition is between the possible values,
but it works.
--
Dotan Cohen
http://bido.com
http://what-is-what.com
Please CC me if you want to be sure
Unreasonable phobia to regex is just as much harmful as overuse of it.
Agreed. I did not mean to sound as if I am against the use of regular
expressions.
--
Dotan Cohen
http://bido.com
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
-in function.
--
Dotan Cohen
http://bido.com
http://what-is-what.com
Please CC me if you want to be sure that I read your message. I do not
read all list mail.
--
http://mail.python.org/mailman/listinfo/python-list
Regexes do have their uses. It's a case of knowing when they are the
best approach and when they aren't.
Agreed. The problems begin when the when they aren't is not recognised.
--
Dotan Cohen
http://bido.com
http://what-is-what.com
--
http://mail.python.org/mailman/listinfo/python-list
What can I
put there to remove the splash page after 5 seconds?
Javascript.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
Please CC me if you want to be sure that I read your message. I do not
read all list mail.
--
http://mail.python.org/mailman/listinfo/python-list
What do you suggest?
$ man time
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
5. Click on replace all.
Wow, I just love Windows users. Sending this to the Python list? Paste
on a notepad?!? The Replace All function in a notepad is
Ctrl-H?!?? What does H stand for?!?!? Explicit instructions how to
:%s/6/_/g in a notepad?!?!?
Happy new year!
--
Dotan Cohen
http://what
What I want to know is why didn't he just write
\
... original long string ...
.replace(6, _)
Uf! Why didn't I think of that?!
But watch that snarkiness ... I'm a Windows user too!
That's fine, I know that fresh air has to get into the basement somehow !
--
Dotan Cohen
http://what
The OP explicitly said no block delimiters. Your example uses {..}, and
doesn't have endif.
Just out of habit. I think that PHP, like C, lets you avoid the block
deliminators so long as the block all fits on one line.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http
as one could get. Whether or not that is
bad depends on the use case.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
right on the
same page (no link to a wiki, though). It's great, most of the best
usage practices that I have learned in that language came from the
user's comments, not from the official documentation itself.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http
because I know that I alone am morally responsible for
everything I do. -- Robert A. Heinlein
Heinlein said that? It's been a long time since I've read Heinlein,
and his quotes are as vivid as his books.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org
aware that some things I
should not touch for security reasons. That is why I want a framework:
to provide the security aspects of things like converting UTF-8,
database escaping, etc.
My 2 cents...
A very valuable 2 cents. Thanks.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
for Python.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
time.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
that idea. I will give it a fair chance,
though, now that it problem has been identified.
Thank you very much for helping me understand this important distinction.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
2009/10/29 Albert Hopkins mar...@letterboxes.org:
On Wed, 2009-10-28 at 16:38 +0200, Dotan Cohen wrote:
return HttpResponse(unmaintanable_html % data)
That's fine for single variables, but if I need to output a table of
unknown rows? I assume that return means the end of the script
both this weekend. Thanks!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
or some other Linux distribution.
Windows-only tutorials just look outdated, even if their principles
apply to other OSs as well.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
it.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
templates. I just want the functions, and to
print the HTML as stdout to the browser making the request. I had to
settle on PHP to do this, which admittedly is what PHP was invented to
do. However, for obvious reasons, I would have prefered to code in
Python. In fact, I still would.
--
Dotan Cohen
http
to stdout myself as well.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
-programming.
I am trying to follow you here. What is return whatever you want?
Return HTML to stdout to be sent to the browser?
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
2009/10/28 Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid:
Dotan Cohen a écrit :
declarative mapping of urls to code
Apache does this, unless I am misunderstanding you.
Using url rewriting ? Yes, fine. Then tell me how you implement reverse
url generation (like Django
to move it to Python for the benefit of using the same language
in the different places that I code for (such as personal applications
for the desktop, pyqt).
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
if os.environ.has_key('QUERY_STRING'):
getv = cgi.parse_qs(os.environ['QUERY_STRING'])
print getv.keys()
Other examples is very simple too...
Thanks, Mikhail. I now have a bit to google on.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman
this - granted you use it
correctly.
I know. This is will use correctly, I promise!
Other than that, it's
all on me.
Your choice...
Hey! Since when am I not under attack? :)
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
body
h1Embedded HTML is a PITA/h1
pbut some like pains.../p
/body
/html
return HttpResponse(unmaintanable_html)
And if I need to add a variable or three in there? Static HTML I can
do without Python.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http
in
the GET request?
http://example.com/page.py?torvalds=tux
Should return this:
htmlbodyptux/p/body/html
And something similar for a POST request?
I hate to ask for code, but this conversation would be easier that way. Thanks.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http
asking me to code for them, I
would send them to you!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
{{ torvalds }}
/body
/html
# views.py
def index(request):
torvalds = request.GET.get(torvalds, No torvalds here)
return render_to_response(index.html, dict(torvalds=torvalds))
Again, how could I output something in the middle of the page with the
templates?
--
Dotan Cohen
http://what
, and a number:
@expose(your.template.path)
@validate(dict(torwalds=Int(not_empty=True)),
error_handler=some_error_handler_controller_action)
def page(self, torwalds=None):
return dict(torwalds=torwalds)
That is nice, I will read more about the error_handler functions. Thanks.
--
Dotan
need convincing as to why it is better. Bruno said
so is good, but saves you coding time down the line is a lot more
convincing!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
are
included in every page of the site.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
Maybe we should change it to
def ...(...(:
...
class ...(...(:
I disagree. It looks like one smiley is drooling into the other smiley's mouth.
Two smileys, one function? Yuk!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo
queries should be no different than in other
Python apps.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 249 matches
Mail list logo