| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Comments:
<0> and can someone explain this factory thing to me? <1> sonium: What do you want to know? <0> for what do I need it <1> sonium: What do you mean by "factory thing". <2> evening Jerub :) <3> sonium: Factory design pattern. A constructor is visible to ONLY the factory. You ask the factory for an instance, the factory gives you an instance based upon what you specify. <3> I'm not quite sure what its advantages are, but it's pretty easy to add on after the fact. <0> ok <0> then I just created a factory <4> I'm confused. <4> why is it visible only to the factory? that inplies that the system is not extensible. <4> s/inplies/implies/ <2> that definition of a factory is inadqeuate anyway <5> sonium: A factory is just something that builds objects <2> I still dunno what it is :) <2> now that's a better description :)
<5> (Screw design patterns!) <2> in that case, most functions in the std-lib are factories that build an object <2> eg: re.compile <5> prologic, yep. <2> no big deal then :) <6> Hey dudes. What template engine would you recommend for web? <2> we use factories all the time (though me not that much) <2> Blackb|rd, I'm using kid and it's quite nice <5> Bleadof, I've had good experiences with Cheetah. <6> Brend, cheers, I'll give it a try :) <5> (mostly) <6> Well, it's always mostly ;) <5> My only real grudge is that the placeholder syntax is slightly different in different places <5> Which makes it a bitch to generate templates from code <6> :/ <5> "Hello, ${name}" works. So does "#for name in $names". So does "Hello, $name". But "#for name in ${names}" doesn't <5> So if your placeholder names contain, say, spaces, you're in trouble. <6> Oh, ok. <7> what would be the best two deadtree books(or pdf) to buy about python for a neophyte? <7> not a programming neophyte but probably a scripting neophyte <4> Keltor: diveintopython and learning python. <7> Jerub: dive into is avail. in dead tree? <4> yep. <7> good deal <8> hi - are there any python modules to load, manipulate and save pdf files? <8> ps files, i mean <7> aum: http://www.pugo.org/pyps/ <7> aum: no wait that won't work for you <7> i just used that to CREATE them <9> hello <7> hello <8> i need to load in existing ps files, and rotate/scale/move pages into other ps files <9> im about to use python to manage my postgresql database, i have found 3 different wrappers: pygresql, psycopg, pypgsql.... which one should I use, your opinions please ? :) <7> nemesis128: are you EVER going to use anything else? <9> another DB ? <7> yeah <7> sqlite <7> db2 <7> mysql <9> mh, personaly, no <7> ok <9> SQLalchemy? <7> would you ever give the code to someone else <9> ;) <7> who might choose to use <7> let's say sqlite <9> yeah that's possible <7> possible enough to use a generic db entry method <9> im open to any suggestions :) <9> but my main pbm now is postgre <9> and some features of postgre are not really portable to other db <5> nemesis128, as I recall, all the PG wrappers ****, but in different ways <5> One of them is impossible to make work on Windows but I can't remember which :) <9> apparently Zope uses psycopg.. that's a good point for that one <7> psychopg is probably best <7> but umm <7> a little birdy told me <7> not to mix pg and python <7> ;) <9> why not ? <7> like brend said
<7> all of the wrappers **** <10> If I want to import a list of variables from a different file, how do I do it? <9> because os sqlite soon into "native" python? <7> i love sqlite <7> for sooo many things <9> i gave it a try, sure it's interesting.. <10> I'm trying to set a list of constants that should be consistent across my program. <7> for non transactional stuff it's pretty sweet <9> but im a postgre addict, cant imagine live without all the nice features it has <9> i love python as well <11> I'm the awesomest guy ever. Or something. I think I've finally managed to get my code to work. <7> nemesis128: psycopg is probably your best bet <7> best of a lousy lot <9> mh.. <12> If anybody's interested in testing out my patch for a switch statement for Python: http://www.vector-seven.com/2006/06/10/python-switch <9> your opinion about another/anything better than sqlite and different than postgre? <9> mysql ? <7> i personally use mysql and sqlite <7> i'm using mysql 4.1 and one 5.0 <9> k <7> i've got 34 4.1 dbs actually <11> Does postgres allow you to put your outer joins in an arbitrary order? MySQL doesn't, and I was sort of surprised about it. <11> Keltor: db servers, or just seperate dbs? <7> CSWookie: there's 5 db servers <7> CSWookie: 1 machine <7> different settings depending on the db <11> Ah. <7> the 34 are mostly on 2 of the servers <7> and just one on the 5.0 server <7> basically a memcache and a non memcache <11> I just (hopefully) got finished writing some code to turn a query in another format into SQL. <11> I determined that I REALLY REALLY REALLLY wish C had closures. <13> WTF is VSTS. :( <13> Apparently, it stands for Visual Studio Team System. <11> sanxiyn: MS's CVS? <7> CSWookie: i think mysql 5.0 <9> thx for all :) ppl <13> CSWookie: Yes, something like that. <7> sourcesafe is their cvs <7> i think it's more than just that <13> Keltor: I thought SourceSafe doesn't work over network? <7> probably more like trac <7> sanxiyn: define over a network <13> Keltor: Yes. It also has "work item" stuffs. <7> yeah i think it's more fogcree/trac <7> than cvs <7> i am sure it can use sourcesafe or perforce <7> maybe even subversion and cvs <13> Keltor: I got the impression SourceSafe is more like RCS. <7> sanxiyn: sourcesafe is complicated <11> sanxiyn: Looks like it includes unit tests + deployment as well. <7> mind you <13> Anyway, CodePlex (MS version of SourceForge?) seems to use VSTS. <13> So that's why I'm curious. <7> i'd never wish VSTS, Perforce, CodePlex, FogCreek, or SourceSafe on my worst enemy <13> Keltor: What do you mean? <11> Keltor: MySQL 5.0 allows arbitrary ordered outer joins? <7> CSWookie: i believe so <11> Keltor: I've never used FogCreek, but I like JoelOnSoftware <7> sanxiyn: they are all horrible products <7> CSWookie: well his software is poo <7> CSWookie: go read about it hehe <11> Keltor: That's pretty cool. <7> the vast majority of people FORCED to use it hate it <13> Keltor: Ah, I see. <13> Keltor: Is Perforce horrible? I don't think so... <7> sanxiyn: well it's got it's good points and it's bad points <7> it's heads above all the others <13> (FreeBSD uses it, and it seems to work well for them.) <11> Keltor: As I was writing the logic to make sure everything got sorted right, I was thinking about how this should be the RDBMS's job. <13> FreeBSD kernel is now using CVS only for "distribution" purpose. <7> sanxiyn: they are using perforce? <13> Keltor: You didn't know? <7> sanxiyn: i'd never heard that
Return to
#python or Go to some related
logs:
google hate sixy perl leftshift #linuxhelp ubuntu gaim-autoprofile ClamAV-clamd: Can't connect t o UNIX socket /var/run/clamav/clamd: No such file #perl #mysql ubuntu drake join domain eth0 renamed to eth1 #css
|
|