Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-14 Thread james hedley
 i have not banned anything, or even alluded to it, whatsoever.  i asked that
 one specific mail not be commented upon

OK, sorry if I misunderstood, but that's still suppression in my book.

 reading your accounts strewn about is interesting, what exactly are *your* 
 motives?  

My motives are as I've stated; I'm a commercial user with products in 
development 
which use Pyjamas and that I have a long-term stake in. With a bit of thought, 
anyone 
should see why I value stability and continued viability. It's a long game but 
the
potential payback to pyjamas could be huge *if* it can keep commercial users on 
board.
This is where the existential threat to pyjamas comes from and why I and many 
others
consider the takeover to be reckless and unjustified.

 Luke is a talented developer, there is no doubt of this, but he is one of the 
 most 
 socially inept persons i have ever encountered

I don't think this is the right place to bash people or even defend them on a 
personal
level.

We get it though. You didn't get along with the guy.

 the idea was to retain Luke

I'm sorry but I don't believe this. Luke can speak for himself of course but 
this is
not how you keep people on-board.

 he decided to play legal threats as the first card 

He's claimed that you lifted data from his server without permission. I'm not 
commenting
on that, but if it's true then this is a massive roadblock in the viability of 
the 
project. I for one don't want to be involved in it. Can you picture the scene 
where a 
developer or businessperaon goes into a meeting with very senior, very 
conservative 
executives trying to pitch a product, and it turns out there are serious legal 
concerns
surrounding the technology platform?

If it isn't true then perhaps you should put people's minds at rest by giving a 
detailed 
explanation of the whole mail server situation, including where the data 
originated, where 
it is now, how it got there and why the accidental mailing of so many people 
occurred.

 indeed, you have witnessed little chatter

I'd invite anyone to review the pyjamas list for the last 7 days before they 
make 
up their minds. Some of the statements I've seen have been regrettable.

 by realizing this is not as black-and-white as you's like it to be. 

I have an ethical objection here, but moreover; it clearly just runs against my
interests to support your actions. I'm not sure you considered the commercial 
users
here, and with respect nor do I really get the impression you've understood it, 
still.

By the way; I'm not associated with Luke at all. I've emailed him off-list a 
few times
this week to discuss some angles to do with my work, but that's it.

In fact, I support Kees' proposition that Pyjamas should seek sponsorship from 
the
Python/Apache/Free Software Foundation. This would resolve questions of 
legitimacy and
leadership.

In my ideal outcome, we could tailor pyjamas more to business use; e.g.
tidying up any license issues, offering a commercial support contract (this 
will help
mitigate the damage done to perceptions of credibility), publishing a commercial
use policy (one of the foundations could offer support with this I hope).

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


Re: Extracting DB schema (newbie Q)

2012-05-14 Thread james hedley
On Monday, 14 May 2012 17:01:49 UTC+1, Steve Sawyer  wrote:
 Brand-new to Python (that's a warning, folks)
 
 Trying to write a routine to import a CSV file into a SQL Server
 table. To ensure that I convert the data from the CSV appropriately,
 Im executing a query that gives me the schema (data column names,
 data types and sizes) from the target table.
 
 What I think I want to do is to construct a dictionary using the
 column names as the index value, and a list containing the various
 attributes (data type, lenghth, precision).
 
 If this is NOT a good approach (or if there is a better approach),
 please issue a dope-slap, ignore the rest of this post and set me
 straight.
 
 If this is a good approach, I ran into a problem populating the
 dictionary as I couldn't seem to figure out how to make the update()
 method work by passing the name property of the row object; I kept
 getting a keyword can't be an expression error.
 
 What I was able to make work was to construct the command as a string
 and run exec(
 ), but seems there shoudl be a more
 direct way of updating the dictionary.
 
 TIA.

Could you provide some demo code? Something minimal but runnable, which results 
in the error you're getting would be best.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Need to get Tags and Values from Dom

2012-05-14 Thread james hedley
On Monday, 14 May 2012 01:50:23 UTC+1, TommyVee  wrote:
 I have a very simple XML document that I need to walk, and I'm using 
 xml.dom.minidom.  No attributes, just lots of nested tags and associated 
 values.  All I'm looking to do is iterate through each of the highest 
 sibling nodes, check what the tag is, and process its value accordingly.  If 
 a node has children, same thing - iterate through the nodes, check the tags 
 and process the values accordingly.  I see where each node object has a 
 childNodes attribute, so I can drill down the tree.  But what are the node 
 attributes which indicate Tag and Value?  I thought it would have been 
 nodeName and nodeValue, but that doesn't seem to be.  Does anyone know?
 
 Thanks in advance, TommyVee

Ah maybe you're confused about how text nodes work in minidom. Every element 
will have a nodeName attribute (not callable) but if you try el.nodeValue on a 
text node you get None. That's because the text is represented by a child node 
with nodeName '#text', so you want (el.nodeName, el.firstChild.nodeValue).

General tips - try the docs: http://docs.python.org/library/xml.dom.minidom.html
and also use dir() a lot on objects when you're learning a new api.

Hope that helps. Disclaimer: haven't used minidom in anger for some time.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: which book?

2012-05-09 Thread james hedley
On Tuesday, 8 May 2012 19:16:01 UTC+1, d.p...@gmail.com  wrote:
 folks 
 hi, 
 I am going to learn python for some plot issues. which book or sources, do 
 you recommend please?
 Cheers,
 Dave

I started with Dive Into Python. It's getting old now but for me it really 
catches the spirit of Python programming; clean, readable, and idiomatic.

Plus it's fairly concise itself and emphasises the standard libraries.

If you get stuck, obviously just search, but there is a lot of good info
on Stack Overflow particularly.

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


Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-08 Thread james hedley
Agreed with pretty much all of that. It's third-world politics, lurching from 
one dictator to another. Risinger seems to have banned all discussion of the 
subject from the list too, I'm not posting anymore because I don't want to give 
him an excuse to wield his newly found banhammer.

But yeah, a lot of the commentary from the pro-rebel side ( not that any of 
them admit they had anything to do with it ) really does come across as being 
ill-informed and childish.

This story is on reddit, if anyone is that way inclined:

http://www.reddit.com/r/opensource/comments/t5acr/project_hijacked_advice_from_experience_foss/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I run a python program from an internet address?

2012-05-08 Thread james hedley

 What would be the best way to figure out how to do this?  I looked at
 Google app engine tutorial, but can't figure out how that will help we
 get the code into the cloud so I can access it from any browser.

GAE is quite a good option, since it includes free hosting. You should be able 
to get started just by downloading the SDK and making your app work locally. It 
includes a little development server so you can see what your users will see in 
your own browser. In this way, you don't have to do anything with the web until 
everything is ready, then you just press a button (windows) or run a script 
(nix) and yor app appears on the web. The datastore is quite complicated though!

If you rig up your own host though, you have a lot more freedom with what 
software you get to use. A very simple way is to plug mod_wsgi into apache (a 
common web server) and then write your app as a wsgi script; this usually just 
entails adding a couple of necessary methods to your script. In my case, I have 
a buddy with a web host set up so I can get things up on there very easily and 
for free.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pyjamas / pyjs

2012-05-04 Thread james hedley
On Thursday, 3 May 2012 12:52:36 UTC+1, alex23  wrote:
 Anyone else following the apparent hijack of the pyjs project from its
 lead developer?

Yes, me. The guy now in control got the owner of the domain name to turn it 
over to him, which is probably ok legally, but he had no public mandate or 
support. As far as I can see from the mailing list, only 3 or 4 out of the 650 
subscribers actively support his actions. He's a long time contributor and 
genuinely seems quite talented. However there's no getting away from the fact 
that he's done this undemocratically, when he could have forked the project. To 
my mind he hasn't made a good enough reasoned justification of his arguments 
and he's coming across as being very defensive at the moment.

The former leader, Luke Leighton, seemed to have vanished from the face of the 
earth but I mailed him yesterday and he's on holiday so trying not to pay too 
much attention to it at the moment.

There's also an allegation, which I am not making myself at this point - only 
describing its nature, that a person may have lifted data from the original 
mail server without authorisation and used it to recreate the mailing list on a 
different machine. *If* that were to be true, then the law has been broken in 
at least one country.

I'm arguing that there should be a public consultation over who gets to run 
this project and I'm also thinking of making a suggestion to the python 
software foundation or maybe other bodies such as the FSF (I'm not a FOSS 
expert but they were suggested by others) that they host a fork of this project 
so that we can have a legitimate and stable route forward.

The problem for me with all this is that I use pyjamas in a commercial capacity 
and (sorry if this sounds vague but I have to be a bit careful) there are 
probably going to be issues with our clients - corporate people distrust FOSS 
at the best of times and this kind of thing will make them run for the bloody 
hills.

In fact, there appear to be a lot of sleeper users who make a living out of 
this stuff and the actions of the new de-facto leader has jeopardised this, 
pretty needlessly in our opinion.

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


Re: pyjamas / pyjs

2012-05-04 Thread james hedley
By the way, there's a lot more to say on this, which I'll cover another time. 
There are arguments for and against what's happened; at this stage I'm just 
trying to flag up that there is *not* unanimity and we are not just carrying on 
as normal.
-- 
http://mail.python.org/mailman/listinfo/python-list