@# 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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33



Comments:

<0> IXB, same spot or a different one?
<1> Davey|Work $hash = "{SSHA}" . base64_encode(pack("H*", $p***word . $salt)) . $salt); and then a salt as hash aswell should that do?
<2> if you know the unecrypted value is null then you will be able to figure out the key in 2^128, no big task
<3> winmutt: Fight with Pollita... I think she knows most about encryption here.
<4> mmm?
<2> Stormchaser: its more about odds than encryption
<2> there bug simply makes it ALOT easier to find the key
<2> that is al
<3> winmutt: Talk to Pollita. I won't say anything.
<5> TGoC, do you have any idea how easy it is recognize base64?
<2> okily
<2> i dunno who pollita is
<0> IXB, was the backup in the same folder or some completely different spot?
<6> How many characters is a tab... I'm trying to send an email with tabseparated email and it has to line up
<2> 8
<2> i prefer tablength=4 myself



<5> dampjam, uhm, it depends on the reader
<4> she got the backup from the server, loaded it onto one of the laptops here then hashed it and burnt it to cd, but she left the original on the laptop (good ol' recycle bin)...
<6> are there functions to do it or do I have to hardcode 8 in?
<7> IXB: fi she hashed the backup, kept the hash and tossed the backup then you would have nothing. for a hash to have any value at all, someone has the have the source data somewhere
<3> I prefer you take it to #web myself.
<4> which rather defeats the purpose of hashing it in the first place
<5> dampjam, a tab is a special escape sequence typically :)
<2> dampjam: use \t
<6> winmutt: I am using \t
<2> dampjam: if your not using fixed width font then it will never align
<5> a tab is a character, just a space is, but its not a visible one ;)
<7> IXB: no it doens't. if you keep the hash in a secure place you can use it to verify that the data has not been modified
<5> just as*
<6> should I just start sending html emails or will that just annoy everybody
<4> hmm i suppose
<5> dampjam, that will at least allow you to use <pre> :)
<2> ||cw: not necesarily
<4> the data isnt especially sensitive anyway
<7> IXB: aside from colisions
<2> ||cw both md5 and sha1 are vulnerable
<2> :)
<8> what does @ mean in a regex?
<7> randy: nothing?
<8> hmm
<8> that would explain that, then
<4> theres a few p***words to accounts which wont do much for you, and lots and lots of irreplaceable but worthless data
<2> irreplacable != worthless
<4> well we cant get it back, but you cant make any money out of having it and theres no reason anyone would want it really
<9> Eh. I can think of a few things which are irreplacable, yet worthless.
<4> IRC, for example :P
<5> randy, actually, it's depends where it is in the string, if it's the first character in a PCRE, it's probable it's the delimiter :)
<7> randy: if you are looking at the examples in php.net/preg_match, @ is being used as the delimiter, but otherwise has no meaning
<5> first and last character of course. And if those don't match, you ahve a bad regex :)
<10> Anybody know of examples / tutorials that show how to make modular applications? that's supposed to be one of the benefits of objects, so people can code different parts and bring it together. I have a site i'm working on and people are willing to help but don't see how I can ***ign certain sections to them.
<8> ahhh
<11> does php.ini contain anything to do with locales?
<8> why can't I find a simple, straightforward, *working* example of a way to pull the file name out of an <img> tag?
<8> surely someone has done this before
<4> awesome =D I have an apologetic hot 16yo girl asking me if theres anything she can do to make it up to me =D
<4> brb
<8> and I'm so absolutely moronic with regex that I really don't want to reinvent the wheel :/
<5> angela, why don't you read it? I honestly, don't remember, but it might ;)
<8> my wheel would look like dog turds
<11> randy: javascrip
<11> *t
<8> angela: well, I'd like to do this server-side :/
<4> do you know the format of the image?
<10> randy: with js or php?
<8> subsonic-: php
<5> randy, you could load it into DOM using LoadHTML and then use SimpleXML :)
<11> Davey|Work: even searched for locale, it's just that php seems to behave differently on cmd line and webserver
<10> you're going to need a regular expressing I believe
<8> I just need to be able to switch <img src="http://whatever.com/img.png">; to <img src="media/img.png">
<4> couldnt you search for .png, or even SRC= and then select everything between the ""'s?
<4> but dude, thats what javascript is for
<8> but I can't use str_replace because the whatever.com part will change frequently :(
<5> angela, aaah, but it's typically uses the same INI file, so your problem is most *likely* the Web servers locale and CLI locale setting :)
<4> image.theimagename.src=
<8> IXB: this is for something that will produce static pages to be burned onto a CD-ROM and distributed to people who will likely not have JS enabled :(
<4> hmm k
<11> Davey|Work: that what I figured, but then: no sign of anything in php.ini



<8> IXB: otherwise that would rock :)
<4> i think you're just gonna have to right the hell of a regexp function then
<8> yeah :(
<4> ya did google and check nobody has already done it
<4> right?
<4> hang on, cant you store the images in an array?
<5> randy, does the img.png stay the same?
<4> no idea how that would work, but arrays tend to solve problems
<8> Davey|Work: sadly, no; it could be .svg or .gif or several different things
<2> svg is powa
<5> and now we see WHY he has a 16 year old in charge of backups.
<5> randy, I see.
<2> lol @ Davey|Work
<8> Davey|Work: so I basically need to extract whatever's between the last / and the "
<5> randy, good luck :)
<8> Davey|Work: hehe
<4> meh, the number of times ive had a problem and someone has said "well put it in an array and use obscure_array_function()"
<5> randy, only one <img in the entire text?
<8> Davey|Work: heh no, there could be one image or several :/
<4> id go with the insane string function
<7> randy: /<img[^>]+src=\"http://whatever.com/(.*)\"/
<8> IXB: heh... it'd look for "<img" and then look for "">" and then find the right-most / in that substring, and then hack the filename out of that
<8> ||cw: oooo
<4> try that one ||cw just said, it looks reasonably insane
<12> I have a webservice that is receiving this string "name&name", it is arriving name&amp;name, this is result of magic quotes on too?
<8> ||cw: how would I use that in a preg_replace?
<7> randy: I haven't tested that
<9> Just use the dom extension, already. :P
<2> mattmcc++
<5> randy, OK, try this: preg_match_all('/<img src=(\'|")http://.*?/.*?\.(jpg|svg|png|gif)(\'|").*?>/ .... (I don't remember the rest of the args
<13> anyone have any idea what could cause my 500error-> Premature end of script headers: /home/myres3/public_html/myspace.php
<8> Davey|Work: trying it now :)
<2> randy: if it doesnt have to be fast id go with mattmcc's suggestions
<4> im guessing your script headers end prematurely
<13> heh
<13> I have no idea whats wrong.
<13> at all...
<4> dunno, pastebin some code somewhere
<9> Hell, even if it does have to be fast. Libxml2 is bloody fast.
<2> randy: xpath is not horribly slow but parsing is
<7> randy: maybe /(<img[^>]+src=\")http://whatever.com/(.*)\"(.*>)/
<5> mattmcc, not when compared to say, Regex :)
<7> er, or something
<4> if they're gonna be burning the stuff to a CD, they pronably dont mind about the few seconds for image swapping
<7> i'm not up on how replace works
<2> the image may have no extension either
<9> Davey|Work: Well, now, that depends. You can make a pretty heinous regex.
<2> and it may be single quoted
<5> mattmcc, true :)
<4> or no quotes :P
<4> just to confuse things
<14> getimagesize
<9> And when dealing with HTML, and all its valid permutations...
<2> IXB: exactly
<5> mattmcc, you see that post on AJAXIAN about Xpath being faster than traversing the DOM tree in FF/IE/Opera?
<4> do you know what else is in the image tag?
<2> i think mattmcc has the most reliable answer
<4> is it just gonna be SRC?
<2> altm title
<9> Davey|Work: XPath is faster.
<5> mattmcc, faster the getElementById actually, IIRC
<4> know what order they are gonna be in?
<8> IXB: there could be other stuff, but I only need to mess with the contents of the src=""
<12> I have a web service that is receiving this string "name&name", it is arriving name&amp;name, this is result of magic quotes?
<4> if you explode() on the src
<8> IXB: ahhh
<4> then explode() again on the thing after it
<8> hehe
<4> and trim off whitespace
<8> nuts :) but I can see how that'd work
<4> you're gonna have the thing
<4> then implode it again


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#css
#kde
#perl
chmuse
openzaurus fbset 320x240
tn3270 kubuntu
drive seek error linux
netdev watchdog grub debian
r300 etch
#fedora



Home  |  disclaimer  |  contact  |  submit quotes