Re: Python for philosophers

2013-05-13 Thread Jake Angulo
On Tue, May 14, 2013 at 9:32 AM, Citizen Kant  wrote:
> Do I want to learn to program?
> I didn't say I've wanted to learn to program neither said the
> opposite. I've said that I wasn't sure.


H... i'd say you'll make very good business applications analyst.  In
fact i'd hazard to say you can make it to CIO.

Recommended reading:
* PERL for dummies by: Paul Hoffman
* Crime & Punishment by: Fyodor Dostoyevsky

With your natural philosophical talent, and just a little more
 supplementary knowledge you would Pwn & ruLZ!


Just...
pls...
dont do programming...
and Never do Python.


On Tue, May 14, 2013 at 9:32 AM, Citizen Kant  wrote:

> I'm amazed with your feedback, even when due to a lack of knowledge I'm
> not able to discuss some of them. I've been inspecting the stuff about
> rewriting and that drew my attention to my first intuition of Python being
> economic. Maybe could it support my impression about a thing thats behind
> the language and got to do with condensing expressions until their end
> point is reached. I'll absolutely read the book you recommended, coz looks
> perfect. The dis module thing sounds and looks perfect too. Then again
> something that was discussed here about Python being economic or not and
> how or in which sense also threw some light on my first impression about
> the language. Everything here is interesting and illustrative. Anyway, I
> think that maybe I'm missing the point and I'm not being capable of
> expressing the fundamentals of the reason why I'm here. I thought that the
> most convenient thing to do is trying to keep myself attached to the
> natural language I master (so to speak) and answer the a set of questions
> that has been formulated. Maybe with this I'm helping myself.
>
> Towards what purpose I'm just inspecting Python's environment?
> Towards what purpose one would be just inspecting Chess' environment.
> Eventually, I could end up playing; but that isn't told yet.
>
> Do I want to learn to program?
> I didn't say I've wanted to learn to program neither said the opposite.
> I've said that I wasn't sure. And I said that because it's true. I'm not
> sure. Sureness tends to proliferate at its highest rate when one is looking
> to know. I'm looking to understand this something called Python. I've came
> here as explorer. I know_about numbers of things that go_about a number of
> topics of various supposedly most separated sciences. Since I sometimes
> have the capacity for combining these knowledge units in a fancy way and
> "realize" a great deal of things, is that I use a lot the verb "realize".
> These constant instantiations of mine are like well done objects of real
> true knowledge, made somehow by myself, by calling a method called
> "understanding" from the class that corresponds and apply to any number of
> memorized_data_objects that were previously instantiated in my mind coming
> from my senses. For me this seems to look like what follows:
>
> >>> understanding(combination(a_set_of _memorized_data_objects))
>
> >>> def real_knowledge
> >>> understanding(a_set_of_memorized_data_objects)  # How does this
> look?
>
> I'm positive about that being told all the time about everything is pretty
> much an economic issue, it just saves time, which in this environment saves
> money, but at the cost of not playing with real knowledge that's verified
> by each self (checksummed so to speak). Monkeys didn't developed our actual
> brains just by being told about everything, but experiencing the phenomena,
> that now we humans are talking about.
>
> If not, then why do I care about Python programming?
> In part is like a gut_decision. Internet is plenty of information about
> one or another thing that one could be looking for, I've taken a look to
> Ruby and Java and C++, but was a set of Python characteristics that really
> matched with something inside of me. An entity named Python must be somehow
> as a serpent. Don't forget that I'm with the freeing up of my memory, now
> I'm not trying to follow the path of what's told but acting like the monkey
> and pushing with my finger against the skin of the snake. Could be the case
> that a stimulus_response method is being called inside of me. If that's the
> case, objects instantiated by the stimulus_response method are the first
> ones that can be considered scientific like, inside of me. Python also must
> be an entity that's able to swallow, doesn't matter that it's chicken
> object. Then it will throw whatever by its tail. For me that's interesting
> and, in me, interestingness use to call the understanding method. Then I
> realize that what's stated above implies that I can feed Python, and (here
> starts the magic) see what type of whatever throws back by its tail. Then
> I'll approach to smell any possible profit.
>
> What do I aim to get out of this exercise?
> Since actually I'm not running for programmer, my reason for understanding
> Python must be sui generis and it is.
>
> What do I think "Pyt

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-19 Thread Jake Angulo
On Thu, Jul 18, 2013 at 2:36 PM, Aseem Bansal  wrote:

> I wanted to do a little project for learning Python. I thought a chat
> system will be good as it isn't something that I have ever done.
> ...
> I wanted to know what will I need?
> 1 learn network/socket programming


I was actually expecting somebody to mention Twisted :)
(or Tornado)

You'll find it easy to use any of these frameworks to power the back-end
chat engine.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Stack Overflow moderator “animuson”

2013-07-19 Thread Jake Angulo
On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson  wrote:

> A moderator who calls himself “animuson” on Stack Overflow doesn’t
> want to face the truth. He has deleted all my postings regarding Python
> regular expression matching being extremely slow compared to Perl.
> Additionally my account has been suspended for 7 days. Such a dickwad.
>
>
The OP meant to post:

A moderator who calls himself MatsDtroll on Stack Overflow doesn’t want to
face the truth. He has deleted all my postings regarding Perl regular
expression matching being extremely slow compared to Bash regex.
Additionally my account has been suspended for 7 days. Such a dickwad.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-08-04 Thread Jake Angulo
On Mon, Aug 5, 2013 at 8:58 AM, Michael Torrie  wrote:

> On 08/02/2013 03:46 AM, cool1...@gmail.com wrote:
> > I do know some Python programming, I just dont know enough to put
> > together the various scripts I need...I would really really
> > appreciate if some one can help me with that...
>

Hi Cool,

Unfortunately you really gotta know enough Python to put things together,
so if you have time - learn a little more python, and then you can choose
any of these 2 tools to do the job:
http://doc.scrapy.org/en/latest/intro/tutorial.html
http://www.gregreda.com/2013/03/03/web-scraping-101-with-python/

In fact i agree you dont even need python.  Even Bash / shell script with
wget can do this.

However if you dont have the time or dont want to exert the req'd effort,
unfortunately this list is not for giving free code.
I suggest you hire somebody at odesk.com or elance.com - you'd be amazed
how low people there charge for python "web scraping".

Good luck!
-- 
http://mail.python.org/mailman/listinfo/python-list


Python variable as a string

2013-08-23 Thread Jake Angulo
Sorry this is a very basic question.

I have a list *var* which after some evaluation I need to refer to *var* as
a string.

Pseudocode:

var = ['a', 'b' , 'c' , 'd']
adict = dict(var='string', anothervar='anotherstring')
anotherdict = dict()
if :
anotherdict[akey] = adict['var']


Basically im evaluating the list *var*, and if true, i want to use *var* as
a string so that i can refer to a key-value pair in *adict *(whose key name
is also var for convenience).
*
*
Or maybe i should do things differently?

Any help and code will be appreciated!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python variable as a string

2013-08-24 Thread Jake Angulo
Thank you all for the reply.

Actually yes this was a confusing question, and borne out of trying to make
a shortcut.
I didnt ask to convert the contents of var into a string.
All I needed was to get the literal equivalent "var" because I needed to
use it in another dict object - whose keys i named the same (eg 'var') for
convenience.  Instead i ended up complicating stuff.

I resolved this by doing things differently with (if - elif - else).

Sorry for the confusion - but thanks all for answering - i can use a code
or two of what you have shared!



On Fri, Aug 23, 2013 at 11:23 PM, Neil Cerutti  wrote:

> On 2013-08-23, Jake Angulo  wrote:
> > I have a list *var* which after some evaluation I need to refer
> > to *var* as a string.
>
> You must make a str version of var.
>
> > Pseudocode:
> >
> > var = ['a', 'b' , 'c' , 'd']
> > adict = dict(var='string', anothervar='anotherstring')
> > anotherdict = dict()
> > if :
> > anotherdict[akey] = adict['var']
>
> anotherdict[akey] = adict[str(var)]
>
> Will actually work, though you might prefer:
>
> anotherdict[akey] = adict[''.join(var)]
>
> Try them out and see.
>
> --
> Neil Cerutti
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tryign to send mail via a python script by using the local MTA

2013-09-19 Thread Jake Angulo
Up Robert Kern's reply!

I was waiting for smtplib  to be
mentioned... finally!  Instead people simply answer philosophically.  I
dont want to judge whether OP is a troll or not - but i found a lot of
arrogant replies here.  I have also worked on an antispam project before,
and see through the intents of the OP, but I do not pretend to be a
moralist. I was hoping we would strictly discuss code or software
architecture here, not morality. Simple question, simple answer pls, in the
interest of the Python list.

To the OP:

You might want to google smtplib, and use that instead of os calling a
system command. Smtplib takes care of all the operating system's quirks for
you, and still uses the os native sendmail program.

On the other hand, the way you are sending email is highly suspect, trying
to spoof a domain, random email address, etc.  It is not easy to fool most
modern email servers nowadays - especially gmail's.  They verify first that
the sending domain matches the IP of the sender.  And if you are trying to
do this - it is neither Python's nor the OS fault.

Happy coding!


On Tue, Sep 17, 2013 at 10:51 PM, Robert Kern  wrote:

> On 2013-09-17 13:11, Ferrous Cranus wrote:
>
>  There are members here like Tim Chase who said that they find it
>> interesting to
>> be able to do what i proposed.
>>
>
> No, he didn't. He was using sarcasm in a vain attempt to inspire you to
> search the Python documentation where you could easily find the standard
> SMTP library.
>
>   
> http://docs.python.org/2/**library/smtplib
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma
>  that is made terrible by our own mad attempt to interpret it as though it
> had
>  an underlying truth."
>   -- Umberto Eco
>
> --
> https://mail.python.org/**mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python on a MacBook Pro (not my machine)

2013-11-06 Thread Jake Angulo
I use a Macbook air for programming - yes it has Python 2.x in it.

For code editing i use a combination of:
1) Wing IDE 101
(from their website: "is free scaled down Python IDE designed for teaching
introductory programming classes")
2) Sublime Text
3) Good old Vi

You could try those


On Thu, Nov 7, 2013 at 8:34 AM, Cameron Simpson  wrote:

> On 06Nov2013 09:51, John Ladasky  wrote:
> > I just wanted to say thank you to everyone who posted here with
> recommendations for programming-friendly text editors.  I will follow up on
> this after I have resolved a more fundamental issue with my new student --
> his Python 3.3.2 interpreter segfaults and crashes on the second command!
>  I'll start a new thread to deal with that problem.
>
> I think there was some discussion of this bug with Mavericks very
> recently on the list. Possibly fixed in more recent builds.
>
> Cheers,
> --
> Cameron Simpson 
>
> Uhlmann's Razor: When stupidity is a sufficient explanation, there is no
> need
>  to have recourse to any other.
> - Michael M. Uhlmann, assistant attorney general
>   for legislation in the Ford Administration
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Twisted or Tornado?

2013-02-28 Thread Jake Angulo
I have to say it first: I am not trolling :P

Im working on a server project (with IOS client) and would like to create a 
custom, lean and mean server - real Quick!

My requirements for this framework in descending order:
1) Easy to use API
2) Widely available documentation / Examples / Community contributions
3) Feature-wise - kinda most that you commonly need is there

Your opinions will be valuable, if possible cite examples or URL references, 
Pls!  

I prefer opinion from those who have programmed real projects in it - not just 
read some blog or Slashdot :P
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Twisted or Tornado?

2013-03-03 Thread Jake Angulo
All,

Thanks for your reply - I thought I would share the outcome of my choice:

I have chosen to use twisted.   The API is very decent to learn, though the
clincher is theres huge community / docs, and many projects used on
production.

I was able to make a working project prototype in hours!
Thanks to the large twisted library.

Our project is an ipad multiplayer game, and we didnt want to use existing
servers because we want to do things exactly as we wish.

Rgds,

Jake

On Fri, Mar 1, 2013 at 8:55 PM, Andriy Kornatskyy <
andriy.kornats...@live.com> wrote:

>
> The following benchmarks are related to:
>
> a) python web frameworks
> http://mindref.blogspot.com/2012/09/python-fastest-web-framework.html
> http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html
> http://mindref.blogspot.com/2012/10/python-web-reverse-urls-benchmark.html
> http://mindref.blogspot.com/2012/10/python-web-caching-benchmark.html
>
> b) template engines
> http://mindref.blogspot.com/2012/10/python-templates-benchmark.html
> http://mindref.blogspot.com/2012/07/python-fastest-template.html
>
> With source code:
> https://bitbucket.org/akorn/helloworld
>
> Thanks.
>
> Andriy Kornatskyy
>
>
> 
> > Date: Fri, 1 Mar 2013 09:25:43 +
> > Subject: Re: Twisted or Tornado?
> > From: sven...@gmail.com
> > To: jake.ang...@gmail.com
> > CC: python-list@python.org
> >
> > Although these articles are a _little_ old they are probably useful to
> > help you decide which solution is most suitable for you in terms of
> > performance
> >
> > http://nichol.as/benchmark-of-python-web-servers
> > http://nichol.as/asynchronous-servers-in-python
> >
> > I would also be interested if any one on this list has any idea if the
> > results above would be any different these days or whether the
> > benchmarks are still fairly representative.
> >
> >
> > On 1 March 2013 00:28, Jake Angulo
> > mailto:jake.ang...@gmail.com>> wrote:
> > I have to say it first: I am not trolling :P
> >
> > Im working on a server project (with IOS client) and would like to
> > create a custom, lean and mean server - real Quick!
> >
> > My requirements for this framework in descending order:
> > 1) Easy to use API
> > 2) Widely available documentation / Examples / Community contributions
> > 3) Feature-wise - kinda most that you commonly need is there
> >
> > Your opinions will be valuable, if possible cite examples or URL
> > references, Pls!
> >
> > I prefer opinion from those who have programmed real projects in it -
> > not just read some blog or Slashdot :P
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
> >
> >
> > --
> > ./Sven
> >
> > -- http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Do you feel bad because of the Python docs?

2013-03-03 Thread Jake Angulo
The OP speaks for himself alone.

Python - for such a very young language, and with the documentation and
community blogs available at this point - I cannot ask for more.

And who needs docs when the python syntax is as good as writing plain
english sentence?


On Fri, Mar 1, 2013 at 9:06 PM, Jean-Michel Pichavant <
jeanmic...@sequans.com> wrote:

> [snip hostile replies]
>
> It's somehow funny to read such posts on a thread about someone
> complaining about the community python being hostile.
> I think we should really try to resist the urge of answering trolls
> because no matter how many times we slap them, they'll stay trolls and
> probably get even bigger.
>
> Instead, we take revenge by helping someone asking us to do his homework
> and show the world how merciful the python community is.
>
> JM
>
>
> -- IMPORTANT NOTICE:
>
> The contents of this email and any attachments are confidential and may
> also be privileged. If you are not the intended recipient, please notify
> the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any
> medium. Thank you.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list