@# 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



Comments:

<0> file('/dev/sdb').read(512)
<1> is there a way to see the $PATH envoriment variable in Windows?, I just need a decent way to locate the TEMP folder
<2> freakazoid: would that would just as well as dd?
<0> punkrockguy318: yeah
<2> freakazoid: what's the 512 for?
<3> sanmarcos: see the os.environ dict (on any platform)
<0> but I don't know if the boot sector for USB media is actually in the first 512 bytes :)
<4> freakazoid: I gotta get up in 5:30 hours :(
<0> punkrockguy318: 512 is the size of the boot sector :)
<0> Peaker: Oh, ojk
<0> Peaker: Damnit they need to fix it so the sun rises and sets everywhere at the same time
<4> :)
<4> night
<0> we can cause global warming but we can't cause global sunlight
<1> Erwin, thanks
<2> freakazoid: I also need to extract the firmware off of the ipod.. How can I do an equivilent of % dd if=/dev/sda1 of=whatever.bin



<3> sanmarcos: Incidentally, San Marcos is a nice Italian restaurant in Copenhagen. I had good gnocci there.
<5> how do i view this: http://subtextual.org/movies/subtext-0.swf
<5> i hate the default ff viewer
<5> hate, hate. and when i say hate, i mean hate.
<0> data = fp.read(blocksize)
<0> while data:
<0> ofp.write(data)
<0> data = fp.read(blocksize)
<0> sorry, that's four lines
<6> OMG kick him ! :)
<0> kbrooks: Use firefox :)
<0> I have yet to find a viewer that works on Linux other than firefox
<5> freakazoid: ff == firefox
<0> kbrooks: hence the :)
<0> kbrooks: Use IE under wine?
<6> freakazoid, there is Konqueror
<5> freakazoid: no
<7> does anyone know where I can find the dependencies to build mod_python for apache from source? Google isn't helping me :<
<6> there is Galeon
<0> I have yet to find a SWF viewer that even handles simple animations
<6> Opera works fine too if I remember well
<0> though mind you this was using the RMV codec or whatever it's called
<0> they were not vector animations
<2> freakazoid: thanks i'll try it
<2> is 1 block=512?
<0> no there isn't
<0> err nakkiel: no there isn't
<6> no opera ?
<0> no konqueror
<6> ah ok
<0> and why should I install a second web browser?
<6> ah damn
<6> I misread you
<0> that's ok I responded late
<0> mostly because my scrollbar was set backwards and I didn't notice
<8> freakazoid: do you know gnash?
<2> Ugh, this is the ugliest code! It's a combination of bash/python :(
<6> I have yet to find a viewer that works on Linux other than firefox I thought you were looking for another browser.. my broken english doesn't help
<9> ok random design question time...anyone willing to take it on?
<0> timonator: no
<8> GNU flash
<0> nakkiel: oh ok
<1> how can I check if a dict has either the TEMP or TMP keys?
<8> freakazoid: its beta ATM, tho :/
<1> in an if, (not with try)
<9> nakkiel: seamonkey (next version of mozilla) can view flash
<0> timonator: I tried every flash player that was packaged for Ubuntu
<0> mind you this was an RMV1 video
<2> Ubuntu :)
<9> i imagine opera can, too
<8> freakazoid: gnash is very probable not to be packed with ubuntu
<0> timonator: yes it appears not to be
<8> http://www.gnu.org/software/gnash/
<9> yo, design question...i am working on a menu editor
<2> freakazoid: gnash is in ubuntu I believe
<9> and there's a problem
<0> seanl@haruka:~$ apt-cache search gnash
<0> seanl@haruka:~$
<8> freakazoid: uuhm



<9> the menu format specifies basic things about the layout
<8> freakazoid: read the page
<8> its not yet fully functional afaik
<9> but there also needs to be i18n
<0> (15:18:26) punkrockguy318: freakazoid: gnash is in ubuntu I believe
<8> and i dont think that there are any binary packages
<2> libflash-mozplugin
<2> apt-cache search libflash
<9> i already have an i18n message format of my own
<8> libflash isnt gnash iguess
<9> ah forget it
<0> punkrockguy318: Already tried that, doesnt' work with RMV1 videos
<8> Currently Gnash is under heavy development and although many features work, it is probably only of interest to other developers. You'll have your best luck using the CVS version of the sources.
<2> libflash == gnash
<8> are you sure?
<2> i believe so, they just renamed it for the package
<8> :/
<0> I really hate GNU web pages
<8> why?
<8> they are lightweight
<0> Gnash releases (when the release is done) will be found on in the subdirectory /gnu/gnash/ on your favorite GNU mirror.
<0> they link to "gnu mirror" and then you get to remember what directory they mentioned and hunt around for it
<8> [...](when the release is done) will[...]
<8> sorry, buddy, no gnash for you :)
<0> anyway, libflash is gplflash, not gnash
<5> I DONT HAVE gnash
<8> atleast no binary package of gnash
<8> kbrooks: ?
<5> i want gnash now
<1> can anybody tell me what is wrong with os.environ.has_key(re.compile('TMP|TEMP')) ?
<8> freakazoid: me too
<5> anything which can view swf files standalone
<0> has_key doesn't work with regular expressions to my knowledge
<5> timonator: i want to
<1> freakazoid, anyway to search dicts with regexps?
<8> kbrooks: k
<0> sanmarcos: you'd have to iterate through all the keys and match each against the regexp
<8> res = [blub for bla in list if re.match(bla)] or so?
<8> or rather as a generator
<1> freakazoid, so, re.match("pattern", mydict.iterkeys)
<0> what timonator said :)
<5> timonator: but how hmmm
<5> sanmarcos: no
<5> sanmarcos: that doesnt work
<0> I don't know that re.match works with an iterator
<0> but for two things why are you using a regular expression?
<0> HOW ABOUT
<1> kbrooks, re.match looks for a string?
<1> kbrooks, I mean, can it match that regexp in a list?
<0> os.environ.get('TEMP') or os.environ.get('TMP')
<5> sanmarcos: a string and a string only
<1> kbrooks, ok
<5> freakazoid: yes :)
<5> sanmarcos: ^
<1> kbrooks, is there any way to do what I am looking to do? I just need to know if either TMP or TEMP is in my keys of a dict
<0> sanmarcos: tempdir = os.environ.get('TEMP') or os.environ.get('TMP')
<5> sanmarcos: god damn it, will you please ****ing read?
<0> I like the way I said it better :)
<5> sanmarcos: ('TEMP' in d) or ('TMP' in d)
<0> kbrooks: that just returns a bool though doesn't it?
<5> freakazoid: yes :) heh
<0> my solution returns a string if there is one or none otherwise
<5> freakazoid: None*
<0> or you want a default you could use tempdir = os.environ.get('TEMP') or os.environ.get('TMP') or defaulttempdir
<0> nil!
<0> ()!
<0> []!
<8> {}!
<0> >>> bool({})
<0> False
<0> yup
<8> :)


Name:

Comments:

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






Return to #python
or
Go to some related logs:

+javascript +removeChild +an object exists
amarok installing mtp plug-in
bondi gentoo
iopl not enabled excel ubuntu
#fluxbox
#perl
install fc4 cd4 needed?
onmousedown=return false
gentoo could not load XKB keymap
#web



Home  |  disclaimer  |  contact  |  submit quotes