<bonhoeffer>
yeah -- i just made up numbers -- the real key is 32 bytes
<dambles>
does anyone know the ruby version of this python method? decoded = urllib.unquote(cookieValue).decode('utf8')
<sonOfRa>
bonhoeffer: and how long is the "a0f0d3b96" string actually?
emptyflask has quit [Remote host closed the connection]
emptyflask has joined #ruby
DarthGandalf has quit [Read error: Connection reset by peer]
<sonOfRa>
if it's 64 characters, and all of the characters are 0-9a-f, then it is very likely hex, and you can use something like [str].pack('H*').unpack('C*') to get a suitable array of bytes
<sonOfRa>
if it's NOT 64 characters, and maybe ends with an = or ==, and it has a bunch of different characters, it's probably base64.
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
DarthGandalf has joined #ruby
<dambles>
sonOfra yes it is base64
<sonOfRa>
dambles: sorry, that was for bonhoeffer. Not sure about your problem
<dambles>
but since it's a cooke sometimes it's url encoded
<dambles>
oh
<dambles>
ha
<dambles>
kk
bonhoeffer has quit [Ping timeout: 260 seconds]
<sonOfRa>
dambles: you're looking for URI::Escape
<dambles>
but this string isn't a URI will it still work?
<sonOfRa>
Which is, like, the second hit on google for "ruby urldecode". At least in my little filterbubble
emptyflask has quit [Ping timeout: 256 seconds]
<dambles>
the is a cookie that is base64 encoded
x77686d has quit [Quit: x77686d]
<dambles>
for some reason sometimes the cookie has \x22
<dambles>
which if IIRC is "
<sonOfRa>
Oh, quote, not urldecode. Not sure in that case, really
moei has joined #ruby
<dambles>
ya it's messing me up
<dambles>
in python I can use urlib.unqutoe and it works great
<dambles>
I can't seem to find the ruby method that does the same thing
railssmi_ has joined #ruby
bascht has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
kineticrootkit[m has quit [Remote host closed the connection]
Donalmartin[m] has quit [Remote host closed the connection]
M-shine has quit [Remote host closed the connection]
drorp24[m] has quit [Remote host closed the connection]
Luca[m] has quit [Remote host closed the connection]
Giphy[m] has quit [Remote host closed the connection]
guanjian[m] has quit [Remote host closed the connection]
serah[m] has quit [Remote host closed the connection]
tobyn[m] has quit [Remote host closed the connection]
vma[m] has quit [Remote host closed the connection]
kp666[m] has quit [Read error: Connection reset by peer]
meaggan[m] has quit [Read error: Connection reset by peer]
laithshadeed[m] has quit [Write error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
Xi[m] has quit [Remote host closed the connection]
riotgsmport[m] has quit [Read error: Network is unreachable]
eliotk[m] has quit [Write error: Connection reset by peer]
cpfeilschifter[m has quit [Write error: Connection reset by peer]
SeepingN has joined #ruby
daveyboi[m] has quit [Write error: Connection reset by peer]
multivac[m] has quit [Remote host closed the connection]
fjj[m] has quit [Remote host closed the connection]
fladson[m] has quit [Remote host closed the connection]
n[m] has quit [Remote host closed the connection]
coreyja[m] has quit [Remote host closed the connection]
h42r62[m] has quit [Remote host closed the connection]
davix[matrix] has quit [Read error: Connection reset by peer]
philidor[m] has quit [Read error: Connection reset by peer]
jomakasi[m] has quit [Write error: Connection reset by peer]
Michael5[m] has quit [Write error: Connection reset by peer]
velu_aon[m] has quit [Write error: Connection reset by peer]
railssmith has quit [Ping timeout: 258 seconds]
SeepingN_ has quit [Ping timeout: 264 seconds]
ghostlight has quit [Ping timeout: 260 seconds]
DarthGandalf has quit [Read error: Connection reset by peer]
SeepingN has quit [Client Quit]
DarthGandalf has joined #ruby
ramfjord has joined #ruby
Derderderd has joined #ruby
<manveru>
dambles: what is your string?
<manveru>
usually CGI.unescape should work
ghostlight has joined #ruby
anuxivm has joined #ruby
anuxivm has left #ruby [#ruby]
Derderderd has quit [Ping timeout: 258 seconds]
sepp2k has quit [Quit: Leaving.]
skweek has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
gheegh_ has joined #ruby
DarthGandalf has joined #ruby
gheegh has quit [Ping timeout: 244 seconds]
enterprisey has joined #ruby
Anonymoose2 has joined #ruby
threh has quit [Ping timeout: 250 seconds]
<dambles>
manveru: it's this \x22eyJvcmdrZXkiOiAiNGU3Mnd0MUl4azg0RWVvQTZFdCIsICJ0aW1lIjogMTQ4MTMxODU0My45NjQzMTcsICJ1c2VyaWQiOiAiTWFoZXNoLllhZGF2QGNvZ25pemFudC5jb20iLCAibnMtc2Vzc2lvbi1pZCI6IDE0ODEzMTg1NDM4MjY5Nn0=\x22
<ruby[bot]>
manveru: # => "\"eyJvcmdrZXkiOiAiNGU3Mnd0MUl4azg0RWVvQTZFdCIsICJ0aW1lIjogMTQ4MTMxODU0My45NjQzMTcsICJ1c2VyaWQiOiAiT ...check link for more (https://eval.in/694272)
<manveru>
not sure why you have it double quoted
<dambles>
me either
<dambles>
I am not the web developer
<dambles>
I am just parsing nginx logs with logstash
reverberations has quit [Ping timeout: 250 seconds]
<dambles>
and I need to decode the cookies for trouble shooting
<ruby[bot]>
manveru: # => ["{\"orgkey\": \"4e72wt1Ixk84EeoA6Et\", \"time\": 1481318543.964317, \"userid\": \"Mahesh.Yadav@cogn ...check link for more (https://eval.in/694274)
<manveru>
yay
<dambles>
how do you start a ruby console like that?
<ruby[bot]>
manveru: # => {"orgkey"=>"4e72wt1Ixk84EeoA6Et", "time"=>1481318543.964317, "userid"=>"Mahesh.Yadav@cognizant.com", ...check link for more (https://eval.in/694275)
<manveru>
voila
<dambles>
that's cool thanks for that
<manveru>
np
<manveru>
ruby console is pry or irb
<dambles>
werd
<dambles>
thanks for the help
OS-18137 has joined #ruby
<apeiros>
>> ["a0f0d3b96"].pack("H*") # @ sonOfRa (in case bonhoeffer returns, I'm off now)
<OS-18137>
i have an array of decimal integers from 0-255, and i am converting them to hexidecimal like this: decimalArray.each {|i| print '\x'; print i.to_s(16)} but the first sixteen values are not padded with zero (\x0,\x1... instead of \x00,\x01...) is there a better method to use, i want the actual byte representation
emptyflask has quit [Ping timeout: 252 seconds]
nikivi has quit [Remote host closed the connection]
<apeiros>
OS-18137: also note that there's no such thing as a "decimal" integer. integers are numbers. numbers don't have a base. only their string representation does.
chouhoulis has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
jottr has joined #ruby
marxarelli is now known as marxarelli|afk
millerti has quit [Client Quit]
millerti has joined #ruby
<OS-18137>
apeiros: good point :) Thanks for the help above, and what is whatever it's doing with this '(...) % arrayName' contstruct, called
enterprisey has quit [Remote host closed the connection]
jottr_ has joined #ruby
jottr_ has quit [Client Quit]
raul782 has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
reverberations has joined #ruby
splud has quit [Quit: splud]
Anonymoose2 has quit [Ping timeout: 265 seconds]
Channel6 has joined #ruby
Jameser has joined #ruby
Derderderd has joined #ruby
ixti has joined #ruby
sdwrage has joined #ruby
symm-- has quit [Ping timeout: 260 seconds]
jtdoncas_ has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
tim_ has quit [Ping timeout: 250 seconds]
tim_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arnonhongklay has joined #ruby
mahlon has quit [Quit: nine foot long outhouse ladle]
djbkd has quit [Quit: Leaving...]
djbkd has joined #ruby
jtdoncas has quit [Ping timeout: 264 seconds]
clarkk has joined #ruby
<clarkk>
on linux, my non-admin user has a .rvm file in its home directory. When I log into the terminal as root and cd to that directory it gives the "you can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'" message. Why would this happen for one but not the other user?
tomlynn[m] has joined #ruby
dnicole has quit [Remote host closed the connection]
<nchambers>
I have a file called foo.rb, which defines the module Foo, which contains the function foo. Is there anyway I can do: require 'foo'\nFoo.foo? Currently I also have to do include Foo then Foo.foo
arnonhongklay has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 256 seconds]
Derderderd has quit [Ping timeout: 240 seconds]
<nchambers>
ah nmd. figured it out
saneax-_-|AFK is now known as saneax
enterprisey has quit [Ping timeout: 245 seconds]
jcao219 has quit [Ping timeout: 246 seconds]
bastilian has joined #ruby
antoniobeyah has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 244 seconds]
inerkick has quit [Quit: Leaving]
arnonhongklay has joined #ruby
arnonhongklay has quit [Ping timeout: 265 seconds]
bustizz has quit [Ping timeout: 252 seconds]
raul782 has joined #ruby
amclain has quit [Quit: Leaving]
benlieb has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
bastilian_ has joined #ruby
raul782 has quit [Ping timeout: 245 seconds]
uxp has quit [Read error: Connection reset by peer]
<inerkick>
yeah. I'm new to coding, but somehow Ide's I tried, I kind of started hating it.. I do like Geany. But else, Vim seems good for me. I wanted .vimrc config if anyone who got. Tried to search many but still getting hang of it
<atmosx>
inerkick: I see
h1fuelcell has quit [Ping timeout: 260 seconds]
<inerkick>
I haven't seen that, I checked one which is by Tim Pope <http://tpo.pe/>
<inerkick>
he gave a complete package I guess for rails. So tried to get it inside, Vim folder, but didn't work I guess. Or worked, but not sure how were the shortcuts..
<zenspider>
inerkick: you mean besides not using emacs? :P
beilabs_ has joined #ruby
bturker has joined #ruby
<inerkick>
I tried emacs, something I felt like held back. I wasn't sure what were buffers and lot of key maps. And vim seemed so easy since beginning.. zenspider
<zenspider>
sa sad... :P
<zenspider>
so... ugh.
<inerkick>
thanks for the auto completion plugin atmosx
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<inerkick>
zenspider, I actually tried to start with emacs, but it's so much going on and for me at this moment vim is fine. Later someday can check emacs
beilabs has quit [Ping timeout: 240 seconds]
muelleme has quit [Ping timeout: 264 seconds]
<atmosx>
inerkick: you're welcome! :-)
claudiuinberlin has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
<inerkick>
atmosx, How long you been learning ruby?
beilabs has joined #ruby
<zenspider>
odd question... or oddly worded
muelleme has joined #ruby
beilabs_ has quit [Ping timeout: 244 seconds]
<atmosx>
inerkick: I don't know feel like I know ruby - I'm here because I like IRC and can bother them with questions. I've been using ruby for a long time though, 4 years maybe more
<inerkick>
Yeah. zenspider ..
voxxit has quit [Read error: Connection timed out]
marsjaninzmarsa has quit [*.net *.split]
edwardly has quit [*.net *.split]
MrBusiness2 has quit [*.net *.split]
eclm has quit [*.net *.split]
seggy has quit [*.net *.split]
existensil has quit [*.net *.split]
Koshian____ has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
brainslug has quit [*.net *.split]
alnewkirk has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
jericon_ has quit [*.net *.split]
<inerkick>
Awesome atmosx ..Thank you for sharing your knowledge
<apeiros>
it's called ascii-8bit because it shows you 0x00-0x7f as ascii characters
<bonhoeffer>
got it-- so options[:iv] => "J\xB5\xF3\x85\xFA\xFE\a\xB7!t\x93\x0E" so what really is options[:iv]?
<apeiros>
(binary would NOT have any characters at all)
yaewa has quit [Quit: Leaving...]
<apeiros>
a string
<bonhoeffer>
ok -- and a string is a set of binary numbers -- but this is actually a string, encoded in ascii-8bit
<apeiros>
a string is an array of bytes
<bonhoeffer>
sure, but it is assigned a datatype
<apeiros>
and depending on the encoding, those bytes are interpreted as characters. either individually (e.g. in windows-latin1), or a sequence (utf-8)
<apeiros>
the datatype is string
<apeiros>
options[:iv].class => String
<bonhoeffer>
got it
<bonhoeffer>
when you say individually or a sequence, what is the difference there in the data structures?
<apeiros>
none
<bonhoeffer>
they both are stored as raw bytes
<apeiros>
it's still an array of bytes. it's still a string.
<apeiros>
again, encoding is only needed to figure out which bytes in that array map to which characters.
<apeiros>
tells you that S maps to a byte with value 83
<apeiros>
"S"
<bonhoeffer>
those are the 8-bit unsigned integers (in decimal, then in that array)
Cra2yZer0 has joined #ruby
<bonhoeffer>
now that mapping from S to 83 what governs that
<bonhoeffer>
ascii tables?
<apeiros>
"unsigned integers" - no.
moei has joined #ruby
nettoweb has joined #ruby
<apeiros>
you can decide to interpret those bytes as unsigned ints. that's when you get 83 instead of "S"
<bonhoeffer>
C | Integer | 8-bit unsigned (unsigned char) -- is what i specified
<apeiros>
yes. might want to reread carefully what I just wrote :-p
<bonhoeffer>
so if i inspected memory -- i could find the binary representation of 83 there
<apeiros>
yes
<apeiros>
you'd find 01010011
<bonhoeffer>
and how is that 83 interpreted as S -- because that memory space is known to be part of an ascii string
<apeiros>
and that sequence of bits can be interpreted in quite a couple of ways. one of them being "unsigned int" in C nomenclature. which would mean it's 83.
<apeiros>
correct
<bonhoeffer>
ok -- so i'm trying to convert an iv to load cipher.iv = options[:iv] which on inspection is "J\xB5\xF3\x85\xFA\xFE\a\xB7!t\x93\x0E"
<bonhoeffer>
first, i'm not sure if i'm seeing the real value in options[:iv] since in the console i'm not seeing that but the result of .inspect on that
<bonhoeffer>
second, i call the function with "SrXzhfr+B7chdJMO\n" as the iv
<apeiros>
the value inspect shows you is quite real
<apeiros>
don't know why you doubt on that :)
<bonhoeffer>
so it is literally a string (with some encoding)
<apeiros>
iirc IVs have a specific length. are you sure 17 bytes is correct?
<bonhoeffer>
yes -- in manually looking at the string -- i don't count 17
<apeiros>
ok, so what you say looks contradictory to me. you say 'i call the function with "SrXzhfr+B7chdJMO\n" as the iv' and then show an IV being "J\xB5\xF3\x85\xFA\xFE\a\xB7!t\x93\x0E"
<bonhoeffer>
J = one byte, correct as does \xB5
<bonhoeffer>
yeah -- that latter being what i'm inspecting via a debugger
<apeiros>
ok. show code please.
<bonhoeffer>
i'm unsure how to count \xB7!t
<apeiros>
that's 3 bytes
<apeiros>
\xB7 is one. ! is one. t is one.
<apeiros>
it's always \xHH
c355e3b has quit [Quit: Connection closed for inactivity]
<apeiros>
you need 2 hex digits to represent 1 byte
Ishido has joined #ruby
<bonhoeffer>
yeah -- makes sense
<bonhoeffer>
but here is a big confusion -- encryptor checks options[:key].bytesize < cipher.key_len (cipher.len_len is 32 (for 256 bit aes), and bytesize is big enough 48, but there are really only 24 bytes there
nankyokusei has joined #ruby
<bonhoeffer>
because the encoding is hex
<bonhoeffer>
it is, in fact, the result of SecureRandom.random_bytes(24)
<bonhoeffer>
so why does that pass?
<apeiros>
that doesn't give you a hex string
<apeiros>
SecureRandom.hex(24) would
<bonhoeffer>
nope -- SecureRandom.random_bytes(24).unpack('H*').first does
<apeiros>
uh. yeah. just use .hex :-p
<bonhoeffer>
sure -- if i had apeiros skill . . .
<apeiros>
well, the string's encoding isn't hex
<apeiros>
you, a human, know that there's hex in there
<apeiros>
to the computer, it's still a binary string consisting of 48 bytes.
<apeiros>
unless that's what cipher.iv= expects and converts to binary…
<bonhoeffer>
so, maybe i'm messing up the encryption -- i'm sending it a string that has less entropy that it should
<bonhoeffer>
because nothing in that string is > f
futilegames has quit [Quit: futilegames]
nankyokusei has quit [Ping timeout: 245 seconds]
toretore has quit [*.net *.split]
djbkd__ has quit [*.net *.split]
nighthwk1 has quit [*.net *.split]
uxp_ has quit [*.net *.split]
Asher has quit [*.net *.split]
volix_ has quit [*.net *.split]
kaffepan1a has quit [*.net *.split]
nchambers has quit [*.net *.split]
ignarps has quit [*.net *.split]
__main__ has quit [*.net *.split]
herbmillerjr has quit [*.net *.split]
face has quit [*.net *.split]
weaksauce has quit [*.net *.split]
jrafanie has quit [*.net *.split]
theRoUS has quit [*.net *.split]
inoperable has quit [*.net *.split]
uranellus has quit [*.net *.split]
GinoManWorks has quit [*.net *.split]
jesk has quit [*.net *.split]
_br__ has quit [*.net *.split]
fatbob has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
destructure has quit [*.net *.split]
AnoHito has quit [*.net *.split]
papercod1 has quit [*.net *.split]
Guest46272 has quit [*.net *.split]
aibot has quit [*.net *.split]
fumk has quit [*.net *.split]
olblak has quit [*.net *.split]
P1ro has quit [*.net *.split]
freeze has quit [*.net *.split]
pabs has quit [*.net *.split]
<apeiros>
maybe. I'm sorry, I'll be afk for a bit.
volix_ has joined #ruby
__main__ has joined #ruby
herbmillerjr has joined #ruby
ignarps has joined #ruby
kaffepan1a has joined #ruby
nchambers has joined #ruby
Asher has joined #ruby
uxp_ has joined #ruby
face has joined #ruby
nighthwk1 has joined #ruby
weaksauce has joined #ruby
djbkd__ has joined #ruby
GinoManWorks has joined #ruby
toretore has joined #ruby
_br__ has joined #ruby
jesk has joined #ruby
jrafanie has joined #ruby
destructure has joined #ruby
mikeiniowa has joined #ruby
fatbob has joined #ruby
uranellus has joined #ruby
inoperable has joined #ruby
theRoUS has joined #ruby
P1ro has joined #ruby
olblak has joined #ruby
freeze has joined #ruby
pabs has joined #ruby
fumk has joined #ruby
aibot has joined #ruby
Guest46272 has joined #ruby
papercod1 has joined #ruby
AnoHito has joined #ruby
GinoManWorks has quit [Max SendQ exceeded]
GinoManWorks has joined #ruby
raul782 has joined #ruby
ghostlight has quit [Ping timeout: 245 seconds]
StoBrendo has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
<bonhoeffer>
apeiros: thank you very much -- i think i got it
<bonhoeffer>
and learned a lot
lenwood has quit [Ping timeout: 260 seconds]
QualityAddict has quit [Ping timeout: 245 seconds]
DoubleMalt has joined #ruby
ghostlight has joined #ruby
futilegames has joined #ruby
fmcgeough has joined #ruby
sdothum has joined #ruby
madgen has joined #ruby
muelleme has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
nowz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
fmcgeough has joined #ruby
lenwood has joined #ruby
sdothum has joined #ruby
raul782 has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 268 seconds]
Definity2 has quit [Ping timeout: 256 seconds]
d0nn1e has joined #ruby
ace_33 has joined #ruby
muelleme has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 248 seconds]
nowz has quit [Quit: Leaving]
DoubleMalt has quit [Ping timeout: 250 seconds]
beanHolez has joined #ruby
bturker has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
nikivi has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
futilegames has quit [Quit: futilegames]
lxsameer has quit [Quit: WeeChat 1.6]
shinnya has joined #ruby
grh has quit [Ping timeout: 252 seconds]
conta has quit [Read error: Connection reset by peer]
madgen has quit [Quit: Lost terminal]
c355e3b has joined #ruby
chwbacca has joined #ruby
nikivi has quit [Quit: irc]
symm-- has quit [Ping timeout: 256 seconds]
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
symm- has joined #ruby
GodFather has quit [Remote host closed the connection]
naprimer_2 has joined #ruby
GodFather has joined #ruby
byte512 has joined #ruby
<bonhoeffer>
how do i reference &block inside a method
<bonhoeffer>
to see what i'm sending yield
last_staff has joined #ruby
nankyokusei has joined #ruby
naprimer_3 has quit [Ping timeout: 246 seconds]
jooni has joined #ruby
mikecmpbll has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
hightower2 has quit [Ping timeout: 252 seconds]
hightower2 has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
<Papierkorb>
>> def foo(&block) block.call(1,2,3) end; foo{|x,y,z| p x,y,z}
<Papierkorb>
>> def foo(&block) block.call(1,2,3) end; foo{|x,y,z| p x,y,z}
<Papierkorb>
bonhoeffer: it ends up as argument, the & is just a marker in the prototype of the function. You can mix yield and calling that block, but I would advise against it
<bonhoeffer>
ah, thanks
fmcgeough has quit [Quit: fmcgeough]
agent_white has quit [Quit: nightmylovlies]
beilabs_ has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
raul782 has joined #ruby
beanHolez has quit [Remote host closed the connection]
beanHolez has joined #ruby
pandaant has quit [Remote host closed the connection]
beanHolez has quit [Remote host closed the connection]
beanHolez has joined #ruby
beanHolez has quit [Remote host closed the connection]
beanHolez has joined #ruby
beanHolez has quit [Remote host closed the connection]
ta__ has quit [Remote host closed the connection]
beanHolez has joined #ruby
beanHolez has quit [Remote host closed the connection]
beanHolez has joined #ruby
raul782 has quit [Ping timeout: 268 seconds]
beanHolez has quit [Remote host closed the connection]
millerti has joined #ruby
eizua has quit [Remote host closed the connection]
<bonhoeffer>
stuck with `auth_tag=': unable to set GCM tag (OpenSSL::Cipher::CipherError)
<bonhoeffer>
got it -- sorry cipher.auth_data
lenwood has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
Hyuk has joined #ruby
futilegames has left #ruby [#ruby]
miqlas-H has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
f4 has joined #ruby
psychicist__ has joined #ruby
h1fuelcell has joined #ruby
threh has joined #ruby
johnmilton has joined #ruby
futilegames has joined #ruby
h1fuelcell has quit [Ping timeout: 240 seconds]
psychicist__ has quit [Ping timeout: 258 seconds]
Cra2yZer0 has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
ace_33 has quit [Remote host closed the connection]
hutch34 has joined #ruby
emilkarl has joined #ruby
h1fuelcell has joined #ruby
frozengeek has quit [Quit: frozengeek]
h1fuelce_ has joined #ruby
JeanCarloMachado has joined #ruby
johnmilton has quit [Remote host closed the connection]
h1fuelcell has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
frozengeek has joined #ruby
beilabs has joined #ruby
emilkarl has quit [Quit: emilkarl]
beilabs has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Quit: Easy as 3.14159265358979323846...]
futilegames has quit [Quit: futilegames]
lenwood has joined #ruby
jcao219 has joined #ruby
hutch34 has joined #ruby
beilabs has joined #ruby
KnownSyntax has quit [Ping timeout: 250 seconds]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
jtdoncas_ has joined #ruby
lenwood has quit [Ping timeout: 264 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
jtdoncas_ has quit [Ping timeout: 245 seconds]
JeanCarloMachado has quit [Ping timeout: 265 seconds]
lenwood has joined #ruby
bturker has joined #ruby
futilegames has joined #ruby
blackwind_123 has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
Guest20907 has quit [Read error: Connection reset by peer]
h1fuelce_ has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
bonhoeffer has quit [Ping timeout: 260 seconds]
Bish has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 248 seconds]
codfection has quit [Ping timeout: 260 seconds]
threh has quit [Ping timeout: 250 seconds]
zapata has quit [Quit: WeeChat 1.6]
zapata has joined #ruby
lenwood has quit [Ping timeout: 246 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
frozengeek has quit [Quit: frozengeek]
antoniobeyah has quit [Quit: antoniobeyah]
nadir has quit []
gnufied has quit [Quit: Leaving]
antoniobeyah has joined #ruby
dopamean1 has joined #ruby
nankyokusei has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
chwbacca has quit [Ping timeout: 268 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
SteenJobs has quit [Quit: SteenJobs]
Fernando-Basso has quit [Quit: WeeChat 1.6]
threh has joined #ruby
futilegames has quit [Quit: futilegames]
Ishido has quit [Remote host closed the connection]
adam_ has joined #ruby
volix_ is now known as volix
volix has quit [Changing host]
volix has joined #ruby
JeanCarloMachado has joined #ruby
aryaching has joined #ruby
Ishido has joined #ruby
function has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
zeroDi has quit [Quit: WeeChat 1.6]
frozengeek has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
jtdoncas_ has joined #ruby
x77686d has quit [Quit: x77686d]
djbkd has joined #ruby
<clarkk>
on linux, my non-admin user has a .rvm file in its home directory. When I log into the terminal as that user and cd in and out of that home directory, it doesn't give any messages. However, when I do the same when logged in as root, it reports "you can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'" message. Why would this happen for one but not the other user?
<Zarthus>
the easiest explanation could be 'different versions of rvm installed'
JeanCarloMachado has quit [Ping timeout: 240 seconds]
agarciava has joined #ruby
brendan- has joined #ruby
<agarciava>
Is there a way to run ruby tests in a single file, eg: array (test) without external dependencies? thank you
rippa has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
b0nn has joined #ruby
Guest62340 has joined #ruby
muelleme has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
<clarkk>
Zarthus: does this indicate something wrong with my config? What can I do to troubleshoot it?
function has quit [Quit: found 1 in /dev/zero]
<Zarthus>
clarkk: No idea, I tried looking through the source but rvm is gigantic and bash sucks to read.
<Zarthus>
for what it's worth, #rvm exists, but it's a small channel
<clarkk>
yeah, I tried there but there's no activity
Anonymoose2 has joined #ruby
JeanCarloMachado has joined #ruby
reverberations has quit [Ping timeout: 265 seconds]
<clarkk>
are there any variables that get set that would tell me anything Zarthus?
bturker has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
bturker has quit [Ping timeout: 256 seconds]
<agarciava>
any help?
djbkd has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
djbkd has joined #ruby
beilabs_ has joined #ruby
ascarter has joined #ruby
agarciava has quit [Quit: Page closed]
beilabs has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
nighthwk1 has quit []
djbkd has quit [Ping timeout: 260 seconds]
function has joined #ruby
ramfjord has joined #ruby
Channel6 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest62340 has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
rodfersou has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
function has quit [Quit: /dev/null is full]
cibs has joined #ruby
clarkk has quit [Ping timeout: 246 seconds]
function has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beilabs_ has quit [Remote host closed the connection]
beilabs has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
function is now known as trout
beilabs has quit [Ping timeout: 250 seconds]
reverberations has joined #ruby
jcao219 has quit [Ping timeout: 252 seconds]
h1fuelcell has joined #ruby
Anonymoose2 has quit [Ping timeout: 258 seconds]
LoneHerm_ has joined #ruby
trout has quit [Quit: found 1 in /dev/zero]
sepp2k has joined #ruby
h1fuelcell has quit [Ping timeout: 260 seconds]
govg has joined #ruby
Anonymoose2 has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
tdy has joined #ruby
reverberations has quit [Ping timeout: 258 seconds]
reverberations has joined #ruby
tau has joined #ruby
Anonymoose2 has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
QualityAddict has joined #ruby
byte512 has quit [Ping timeout: 250 seconds]
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
<Kero>
wow. none of the examples I found on "How to run webrick with an https certificate from rack" worked properly. They all run webrick, effectively. Got something better now. Probably worthy of a blogpost...
QualityAddict has quit [Quit: Leaving]
clarkk has joined #ruby
nankyokusei has joined #ruby
<tau>
hi, what do you guys use for auto completion in ruby? it seems rsense is not that good.
<b0g>
tau: i wonder if it isn't so good because ruby is so open-ended and hard to parse
Derderderd has quit [Ping timeout: 258 seconds]
FreshDumbledore has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
<FreshDumbledore>
hi. noob question: having a string like 'country_code=233, country_code2="VN", country_code3="VNM", country_name="Vietnam"', wanting the value of country_name (Vietnam) - best way to get it? :)
aphprentice has joined #ruby
hustada has joined #ruby
<FreshDumbledore>
probably best to match a regex on it and re-use the match for a new string?
heftig has quit [Read error: Connection reset by peer]
Anonymoose2 has joined #ruby
heftig has joined #ruby
Derderderd has joined #ruby
reverberations has quit [Ping timeout: 258 seconds]
<tau>
b0g hmm i have thought of that too.
<tau>
b0g probably that is due to ruby syntax being hard to parse, indeed.
jordila has joined #ruby
<elomatreb>
Since it is always possible to (programmatically) add methods to objects in Ruby, it's probably impossible to get an accurate list of methods for an object statically
beanHolez has joined #ruby
<jordila>
I installed single-user rvm ... How can i go from there to a multi-user rvm scenario ?
<jordila>
alternatively to ^^... how can i make that 'sudo user-with-rvm rvm -v' brings a positive answer ?
chouhoulis has quit [Remote host closed the connection]
hustada has quit [Ping timeout: 260 seconds]
symm- has quit [Quit: Leaving...]
h1fuelcell has joined #ruby
_sfiguser has joined #ruby
h1fuelcell has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
govg has quit [Ping timeout: 250 seconds]
jcao219 has joined #ruby
x77686d has quit [Quit: x77686d]
kobain has joined #ruby
MrBusiness2 has joined #ruby
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
aknagi has joined #ruby
<FreshDumbledore>
worked fine using a regexp btw. thx for no replies :P
FreshDumbledore has quit [Quit: Leaving]
dviola has joined #ruby
jcao219 has quit [Ping timeout: 268 seconds]
LoneHerm_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
SpiffTR has joined #ruby
conta has joined #ruby
beanHolez has quit [Ping timeout: 248 seconds]
djellemah_ has joined #ruby
nikivi has joined #ruby
bturker has joined #ruby
x77686d has joined #ruby
Salih has quit [Quit: Leaving]
AlexRussia has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
xrlk has quit [Quit: HEIL HITLER]
xrlk has joined #ruby
nankyokusei has joined #ruby
nofxxx has joined #ruby
futilegames has joined #ruby
s2013 has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
nikivi has quit [Quit: irc]
jeyraof has joined #ruby
nikivi has joined #ruby
DLSteve has joined #ruby
conta has quit [Ping timeout: 246 seconds]
jcao219 has joined #ruby
jeyraof has quit [Ping timeout: 265 seconds]
jeyraof has joined #ruby
nikivi has quit [Quit: irc]
jordila has left #ruby [#ruby]
x77686d has quit [Quit: x77686d]
h1fuelcell has joined #ruby
heftig has quit [Quit: heftig]
ncthom91 has joined #ruby
Anonymoose2 has quit [Read error: Connection reset by peer]
reverberations has joined #ruby
h1fuelcell has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
hardest has quit [Changing host]
hardest has joined #ruby
troulouliou_div2 has joined #ruby
parus__ has joined #ruby
parus_ has joined #ruby
muelleme has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig has joined #ruby
maattdd has joined #ruby
parus__ has left #ruby [#ruby]
parus_ has left #ruby [#ruby]
beanHolez has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
muelleme has quit [Ping timeout: 250 seconds]
djellemah_ has quit [Ping timeout: 268 seconds]
jtdoncas_ has quit [Ping timeout: 258 seconds]
beanHolez has quit [Ping timeout: 248 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
heftig has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
lenwood has joined #ruby
aryaching has joined #ruby
nankyokusei has joined #ruby
cdg has joined #ruby
maattdd has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
darix has joined #ruby
aidalgol has joined #ruby
lenwood has quit [Ping timeout: 246 seconds]
muelleme has joined #ruby
futilegames has quit [Quit: futilegames]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
zeroDi has quit [Quit: WeeChat 1.6]
marxarelli|afk has quit [Ping timeout: 248 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has joined #ruby
OTORelic2 has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
cdg has quit [Remote host closed the connection]
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
JeanCarloMachado has joined #ruby
codfection has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
sepp2k has quit [Quit: Leaving.]
rodfersou has quit [Remote host closed the connection]
Coldblackice has joined #ruby
h1fuelcell has quit [Ping timeout: 245 seconds]
exchgr has joined #ruby
nikivi has joined #ruby
matp has quit [Remote host closed the connection]
Redfoxmoon has joined #ruby
xrlk has quit [Ping timeout: 258 seconds]
matp has joined #ruby
hays has joined #ruby
<Redfoxmoon>
in ./ext/* makefiles are generated with an one liner ruby script, but where does it get the original makefile from?
sepp2k has joined #ruby
Yzguy has joined #ruby
jtdoncas_ has joined #ruby
symm- has joined #ruby
<Redfoxmoon>
can't seem to find it anywhere...
SpiffTR has quit [Quit: Leaving.]
<matthewd>
"original makefile"?
<Redfoxmoon>
well original makefile / extension makefile template
xrlk has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd>
mkmf is the library that makes the makefile, if that's what you mean?
<Redfoxmoon>
o. I see lib/mkmf.rb makes them
<Redfoxmoon>
yes :-)
SpiffTR has joined #ruby
baweaver is now known as baweaver_away
<Redfoxmoon>
heh, this isn't gonna be easy... trying to port ruby to a new posix platform on windows, and the compiler errors out with '-f can't be used without -shared'
futilegames has joined #ruby
nettoweb has joined #ruby
ofkors has joined #ruby
Immune has joined #ruby
Immune has quit [Remote host closed the connection]
Immune has joined #ruby
Dimik has quit [Ping timeout: 265 seconds]
<matthewd>
Redfoxmoon: You have the VM compiling, and are just now running into that with extensions? :/
<Redfoxmoon>
yes
<Redfoxmoon>
I could modify every single makefile but that gets really old, really quick
nikivi has quit [Quit: irc]
<matthewd>
Interesting.. I thought mkmf mostly used the same flags the VM itself was compiled with
<matthewd>
(notable mostly because that can cause its own issues)
<Redfoxmoon>
the VM didn't need any changes
<Redfoxmoon>
other then outdated config.sub...
SpiffTR has quit [Quit: Leaving.]
_sfiguser has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
Jackneill_ has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 246 seconds]
futilegames has quit [Quit: futilegames]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has quit [Remote host closed the connection]
s2013 has joined #ruby
tau has joined #ruby
<Redfoxmoon>
nailed it with LDFLAGS="-shared" :-)
<Redfoxmoon>
oh great, linking errors now
_sfiguser has joined #ruby
muelleme has quit [Ping timeout: 248 seconds]
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
XV8 has joined #ruby
h1fuelcell has joined #ruby
h1fuelcell has quit [Ping timeout: 252 seconds]
SpiffTR has joined #ruby
SpiffTR has quit [Read error: Connection reset by peer]
SpiffTR1 has joined #ruby
Yzguy has quit [Quit: Zzz...]
|RicharD| has quit [Quit: Sto andando via]
lxsameer has quit [Quit: WeeChat 1.6]
whathappens has joined #ruby
SteenJobs has joined #ruby
SpiffTR1 has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]