#ruby-lang - Fri 23 Mar 2007 between 07:49 and 08:44

NY Lost Funds



zorglu_i dunno anything about http:post but those 2 people seems to have the similar trouble with it
Brdavszorglu_: Grrr... I am using set_form_data. And I know data is there, cause it's 104 characters long...
zorglu_: I even add_field with the length of data....
zorglu_: to no avail
zorglu_what about sniffing the network to see ?
Brdavszorglu_: No need. Apache log states clearly that there is no data in the post
zorglu_: And if I GET back my POST - sure enough, the data is... empty
nachoshello, world
Brdavsnachos: puts "helo world"
zorglu_: HTTP thing is frustrating as hell. I have an other connection that gives 403 because I cannot authenticate properly
zorglu_Brdavs: sorry dunno anything about that, all i know about http, is "i coded it in c++ by hand, and works well in ruby when used thru rails"
but no standalone ruby usage :(
raz0Brdavs, Which kind of authentication?
BASIC?
pstickneQBASIC!
Aapzakanyone know how to cut of 1 ASCII char from a string? my string seems to end with \000 which is actually one ascii char
nullguid__string[0..-1]
string[0..-2] even
Aapzakworks like a charm. tnx
I'm just cutting of 1 ascii char right
kbrooks\0 is one ascii char yeah
nullguid__\0 is one utf char too
utf-8
Aapzakexactly. If if wanted to remove a certain ascii char from anywhere, I'd have to do a sub on a ascii value, can that be done also?
nullguid__asciival.to_chr
kbrooksuh no
Aapzakin perl you can use 0x00 in regex for instance
hex 0
nullguid__\x00
Aapzakyes
nullguid__in a regexp will work
in ruby
Aapzakkewl
hmmz, seems to me that result = dirtyString also removes the \000
kbrooksno, it does not.
Aapzak, full line
Aapzakwhen I enter result in irb, it doesn't show the \000 anymore
kbrooksAapzak, thats just irb
AapzakI was doing stuff the wrong way , I wish I could just skip the newbie part and be a ruler at once
kbrooksAapzak, you cant

Page: 2 9 16 23 30 37 44 51 58 65 72 

IrcArchive

NY Lost Funds