@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17



Comments:

<0> sanxiyn: i'd never heard that
<1> http://perforce.freebsd.org/
<1> Enough said.
<1> Keltor: They are heavy in branch use (like Linux w/ BitKeeper).
<1> All real development is going on Perforce.
<0> sanxiyn: yeah i understand
<0> it's late
<0> 4 vodka tonics in
<0> :)
<0> yeah i did know that was just being stupid sorry
<0> i understand their reasons
<0> i normally use trac
<0> well
<0> the company
<1> We use Trac too.
<1> (@work)



<0> we're going to start using git
<0> to actually manage our trees
<0> we i first started to look at it
<0> i was like ... wth is this
<0> what a joke
<0> ... but now suddenly
<0> i figured it out
<0> the one real reason to use bitkeeper and perforce
<0> more than anything else
<0> is speed of BIG patchsets
<0> which we do all the time
<1> Well, Linus wrote Git to replace BitKeeper. No wonder it does that well.
<0> even more to improve on it
<0> as one of the biggest bitkeeper users
<0> we were using bitkeeper
<0> but just like perforce
<0> price wasn't worth it
<1> FWIW, Perl is using Perforce too.
<1> See http://dev.perl.org/perl5/source.html
<1> (Perl 5, I mean.)
<0> yes i know that
<0> for a while i think
<1> And Python switched from CVS to SVN. :)
<1> And so is GCC. Hm, this version control thing among open source projects is interesting.
<0> well everyone is pretty much leaving cvs
<0> it's basically notsupported
<1> GCC case is a bit strange, considering that they were the worst abuser of CVS branch.
<1> (They were very heavy in branch use.)
<0> but perforce has some big limits
<0> well that's why they switched to svn
<2> I hope the company I work for leave CVS.
<0> CSWookie: svn
<2> Nope, it'll never happen.
<2> Not until Doug gets so busy he can't code
<0> for the most part switching from cvs to svn is easy
<1> Well, our company switched from CVS to SVN (with cvs2svn) eh, 2 years ago.
<1> It took quite some time indeed.
<0> yeah
<0> we went bitkeeper
<0> to cvs
<0> to svn
<2> Another thing that would be awesome would be picking a layer, writing python wrappers around it, and porting the rest of the code to python.
<0> CSWookie: really you should look at svk
<0> in perl of course but all the same
<0> aum: there isn't one ... the one i posted earlier is the cloest you'll probably get
<0> aum: it'd be a starting point on doing so
<3> Keltor: thx
<0> aum: they are just text files written in a programming language
<0> technically
<0> they are no different then a .py file
<0> or .rb file
<3> i need to be able to import pages from a ps file, scale them, rotate them, rearrange etc
<0> aum: it's so WAY more complicated than you want to get into
<4> aum?
<3> ?
<4> aum: Let me look it up.
<3> yacc?
<4> I'm using a library to fill in automatically my tax returns, ...
<0> basically you are going to import postscript
<0> convert it to something else



<0> then export it to whatever you want
<4> aum: import pyx. So the library seems to be called pyx.
<1> http://pyx.sf.net/
<5> Can anyone suggest a better way of writing this _load function --> http://trac.shortcircuit.net.au/projects/pircsrv/browser/trunk/pircsrv/help.py It works, but is very buggy and doesn't parse a dir-tree structure properly beyond a 2-level depth.
<1> Eh, it's more like postscript generator.
<0> it cannot load postscript
<1> Keltor: I thought it can load EPS.
<3> i'm wanting something like:
<0> hmmm
<3> import magicps
<3> psfile = magicps.PSFile("fred.ps")
<0> it has a WHOLE entire postscript host
<3> print psfile.pageCount()
<1> Keltor: http://pyx.sourceforge.net/manual/epsfile.html
<3> page1 = psfile.getPage(1)
<0> nice
<3> page1a = page1.rotate(-90.0)
<0> take a look at pyx
<0> but eps is not quite the same beast :)
<0> aum: postscript doesn't have pages
<3> if i import eps into pyx, does its generated ps haev the text rendered to bitmap?
<0> it's not a pdf file
<0> aum: you'll have to look
<0> i don't think anyone here uses pyx
<0> unless i'm mistaken :)
<3> anyway, that pyx looks better and more maintained than pyps
<3> thx guys
<6> What should I read if I really want to learn about python and unicode - particularly with respect to invalid unicode.
<0> and eps is a REALLY limited form of postscript
<6> (And, incidentially, why might the python email libraries be giving me _invalid_ unicode?)
<0> eps is basically a simple graphic image
<0> aum: take a look at en.wikipedia.org/wiki/Encapsulated_PostScript
<0> make sure eps are what you need
<0> eps is kinda funny really
<6> What am I doing wrong here?
<6> print raw.encode("ASCII")
<6> UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 2494: ordinal not in range(128)
<0> originally it was used to show a preview bitmap on macs of a postscript file
<6> I want to convert raw into ascii.
<7> hello
<1> Arafangion_: 0x92 is not ascii.
<7> i'm having a problem using subprocess under winxp
<6> sanxiyn: Yes, I want to encode it _to_ ascii.
<7> http://www.rafb.net/paste/results/akAsEG18.html
<1> Arafangion_: You can't, of course.
<7> it changes all \n to \r\n
<8> Arafangion_: raw is a byte-string (str) there rather than a unicode object. it's the same as doing raw.decode(sys.getdefaultencoding()).encode('ascii'). it fails to decode from sys.getdefaultencoding() (i.e. ascii) into unicode, before it can re-encode it as ascii
<6> joedj: I am very certain it is already in unicode.
<8> Arafangion_: nope :)
<0> somestring = encodings.tostr( someunicodestr, 'acii')
<0> err ascii
<1> Arafangion_: print its type?
<6> joedj: If it were ascii, then how am I getting non-ascii characters?
<8> Arafangion_: it's not ascii, it's a byte-string containing non-ascii chars like 0x92
<0> actually it's probably not a string
<1> Arafangion_: It is a byte sequence.
<0> yes
<1> Arafangion_: Which can't be encoded to ASCII.
<0> somestring = encodings.tostr( someunicodestr, 'ascii')
<6> Ok, it's a byte-string containing unicode.
<1> Arafangion_: And what is its encoding?
<8> unicode is not an encoding, it's an abstract concept
<1> Arafangion_: You decode byte sequence with its intended encoding, and then you get unicode string.
<6> sanxiyn: It's taken from the email library, which parsed imap4 messages from imaplib
<8> Arafangion_: you can't say that. you can only say it's a byte-string containing <insert some encoding>, like <utf-8> or <utf-16>
<6> sanxiyn: get_charset() returns None
<1> Arafangion_: Then you're out of luck.
<1> Mail should include text encoding in its header.
<6> sanxiyn: Indeed, so can we try to ***ume that it is in UTF-8?
<1> Arafangion_: ***ume it is Windows-1252.
<6> sanxiyn: This particular mail happens to be spam.
<1> Arafangion_: That works best, in my experience.
<6> Thanks.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #python
or
Go to some related logs:

ubuntu mounting at boot fstab
#oe
dcop arguments do not match
fluxbox keys tablaunch
ubuntu live mp3
install ubuntu from a flash drive
mod_python import local module
#css
udeb rt2500
fc5 ltmodem



Home  |  disclaimer  |  contact  |  submit quotes