Apocalypse has quit [Remote host closed the connection]
Spami has joined #ruby
<apeiros_>
and if n & m are static, you can even prepare the list of valid data just once. then it's superfast. (and with n=3 & m=100, it's only 784 combinations anyway)
juanpaucar has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kaiZen has joined #ruby
baweaver has joined #ruby
jlast has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
Limix has quit [Quit: Limix]
zotherstupidguy has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
juanpaucar has quit [Ping timeout: 244 seconds]
AlexRussia has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
iceden has quit [Remote host closed the connection]
davedev24_ has joined #ruby
enebo has joined #ruby
momomomomo has quit [Quit: momomomomo]
mistermocha has joined #ruby
mjuszczak has quit []
davidhq has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
bayed has quit [Quit: Connection closed for inactivity]
zotherstupidguy has quit [Ping timeout: 245 seconds]
djbkd_ has joined #ruby
Dwarf has joined #ruby
doodlehaus has joined #ruby
<jhass>
apeiros_: I think "or equals" is fine, it's abbreviated for "or, equal sign" which just lists out the characters its composed of
davidhq has joined #ruby
JDiPierro has joined #ruby
ponga has joined #ruby
jottr_ has joined #ruby
<apeiros_>
I think using the character name is one reason for many accidental assignments
<jhass>
also 17.3m vs 907k google results for either + ruby
michael_mbp has quit [Excess Flood]
<jhass>
conditional assignment seems to be another used name
<jhass>
though that would include &&= I'd say
<apeiros_>
I'd agree
_djbkd has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
freerobby has joined #ruby
nerium has quit [Quit: nerium]
zotherstupidguy has joined #ruby
mikecmpb_ is now known as mikecmpbll
ponga has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
nii236 has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
<apeiros_>
*sob* isn't it lovely that JS Array.prototype.sort is in-place and there's only ugly ways to duplicate an array?
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<apeiros_>
I don't even find the language that bad. but the available functionality is just ludicrous.
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
rocknrollmarc has quit [Ping timeout: 264 seconds]
<jhass>
yeah, you gotta at least have something like underscore.js to work with it apparently
djbkd_ has quit [Remote host closed the connection]
<apeiros_>
hm, is there a clever way to order an array to have largest number in the middle?
triple_b has joined #ruby
sevvie has joined #ruby
ghr has joined #ruby
nii236 has quit [Client Quit]
aphprentice_ has joined #ruby
<jhass>
mh, doubt you can do it without searching the maxima first
aphprentice has quit [Remote host closed the connection]
<apeiros_>
e.g. [1,6,4,6,7,2,3].special_sort # => [1,4,6,7,6,3,2] - no special rules for left/right, that is, [1,3,6,7,6,4,2] would also be acceptable
pietr0 has quit [Quit: pietr0]
aphprentice_ has quit [Remote host closed the connection]
nii236 has joined #ruby
aphprentice has joined #ruby
<apeiros_>
jhass: you mean and then sort by dist to max?
<apeiros_>
ah no, doesn't work :)
_djbkd has joined #ruby
<apeiros_>
I think it'll be two pass. sort first, then iterate over it to create the split array.
<jhass>
yeah, no idea actually
oo_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<jhass>
maybe just dig out the maximum and insert into the middle?
pengin has quit [Ping timeout: 245 seconds]
<apeiros_>
e.g. [1,6,4,6,7,2,3] --> [1,2,3,4,6,6,7] --> [1,3,6,7,4,2]
<apeiros_>
+ missing 6
Hijiri has quit [Quit: WeeChat 1.0.1]
<apeiros_>
that's n^2. sort + reorder is nlogn
zotherstupidguy has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
<apeiros_>
not that it'd matter for the sizes I deal with :)
doodlehaus has quit [Remote host closed the connection]
aphprentice_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
<jhass>
finding the maximum and swapping the middle with it should be n, no?
ghr has quit [Ping timeout: 245 seconds]
<apeiros_>
find maximum is n
<apeiros_>
and you have to find the remaining maximum n times
<apeiros_>
no?
<jhass>
swapping two values is static
_djbkd has quit [Remote host closed the connection]
<jhass>
mh, maybe I missed a requirement?
<apeiros_>
yes. but finding maximum isn't. and finding it once is not sufficient.
shum has quit [Quit: WeeChat 1.1.1]
_djbkd has joined #ruby
<apeiros_>
I want it sorted. not just middle being the maximum. e.g. [1,6,2,10,3,1] is not valid because 1,6,2 is not sorted.
shum has joined #ruby
<apeiros_>
i.e. it ascends to the middle, where the max value is, and then descends again
<apeiros_>
oh, dear, I badly phrased my initial question
<apeiros_>
I thought I had said "sorted".
zotherstupidguy has joined #ruby
<apeiros_>
my fault :)
michael_mbp has quit [Excess Flood]
wallerdev has quit [Quit: wallerdev]
Matthews_ has quit [Remote host closed the connection]
<jhass>
ah, so first half sorted
<weaksauce>
both are sorted jhass
havenwood has joined #ruby
<weaksauce>
sort max reverse sort
wallerdev has joined #ruby
<jhass>
eh, yeah. To late to properly read the examples :P
sevenseacat has joined #ruby
<apeiros_>
:)
icarus has quit [Remote host closed the connection]
<apeiros_>
I think I'll just do the two pass thing.
michael_mbp has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
oo_ has joined #ruby
<apeiros_>
>> ary = [1,6,4,6,7,2,3]; r = ary.sort; r1,r2=[],[]; r.each_with_index do |v,i| if i.even? r1.push(v) else r2.unshift(v) end end; r1+r2
<eval-in>
apeiros_ => /tmp/execpad-6cf38f9093bc/source-6cf38f9093bc:2: syntax error, unexpected keyword_else, expecting keyword_then or ';' or '\n' ... (https://eval.in/293943)
<apeiros_>
blargh?
reinaldob has joined #ruby
<apeiros_>
>> ary = [1,6,4,6,7,2,3]; r = ary.sort; r1,r2=[],[]; r.each_with_index do |v,i| if i.even? then r1.push(v) else r2.unshift(v) end end; r1+r2
toretore has quit [Quit: This computer has gone to sleep]
codeurge has joined #ruby
michael_mbp has quit [Excess Flood]
Spooner has quit [Read error: Connection reset by peer]
<jhass>
hehe
Spami has quit [Quit: This computer has gone to sleep]
<apeiros_>
I'm super at focusing, that's why I now work again on my funky little JS+HTML game :)
<apeiros_>
or buzzwordy: html5 game. with a tiny rb backend. (for persisting, testing and some other automation)
<jhass>
mmh, my current toy project only involves figuring out where the hell all those segfaults come from :P
<apeiros_>
from the innards!
Hijiri has joined #ruby
michael_mbp has joined #ruby
fgo has joined #ruby
fryguy9 has joined #ruby
<jhass>
current state managed to let one innocent line of code turn the stack into garbage
blackmes1 has quit [Ping timeout: 252 seconds]
<jhass>
and that line is something like value = {response.headers['Some-Header'].to_i, 30}.max, where value = response.headers["Some-Header"].to_i alone works flawlessly
baweaver has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros_>
that's not ruby?
<jhass>
no, Crystal ;)
<jhass>
{a, b} is a tuple
<apeiros_>
aha
michael_mbp has quit [Excess Flood]
<apeiros_>
Crystal is that ruby fork? you actually have prod code in it?
<apeiros_>
that = one of those
<jhass>
fork I wouldn't say
<jhass>
new language with strongly Ruby inspired syntax
<jhass>
it derived quite a bit by now, both in syntax and stdlib
<apeiros_>
I assume in a good way? i.e. removing many inconsistencies and flaws?
reinaldob has quit [Remote host closed the connection]
<jhass>
most changes are actually for new language features or changes that need to be different to work in a statically typed and compiled language that has no runtime beyond GC
<jhass>
like there's a pretty decent macro language that replaces a good deal of Rubys runtime class hierarchy modifications with compile time generated code
baweaver has quit [Ping timeout: 250 seconds]
<tmtwd>
jhass: which language are you talking about?
<jhass>
tmtwd: crystal-lang.org
doodlehaus has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jhass>
apeiros_: perfect time to shape its stdlib btw. entirely written in itself, so pretty easy to hack on it
michael_mbp has quit [Excess Flood]
checkit_ has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
zotherstupidguy has quit [Remote host closed the connection]
baweaver has joined #ruby
zotherstupidguy has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
michael_mbp has quit [Excess Flood]
uptownhr has joined #ruby
FRodrigues has quit [Quit: Leaving]
fgo has quit [Ping timeout: 252 seconds]
mistermo_ has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
michael_mbp has joined #ruby
govg has joined #ruby
tkuchiki has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
piotrj has joined #ruby
Channel6 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
fryguy9 has joined #ruby
michael_mbp has joined #ruby
fgo has joined #ruby
DadoCe has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
p7r has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
oki has joined #ruby
fryguy9 has quit [Client Quit]
michael_mbp has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
mloveless has quit []
claw___ has quit [Remote host closed the connection]
<apeiros_>
banister: that's probably the easiest way to solve it, yes
<jhass>
apeiros_: guess why I don't do games :P
neonalpine has joined #ruby
<apeiros_>
jhass: I just do the wrong kinds of games :-S
<apeiros_>
but well, those things are solvable
<baweaver>
must be a theme thing
<apeiros_>
banister: actually I think I'll cheat and use trigonometric functions
<banister>
apeiros_ i'm a math whiz, i can do fourier analysis i'm that brief moment of loneliness b4 i fall asleep, i can visualize klein bottles in 4D space
doodlehaus has quit [Remote host closed the connection]
mjuszczak has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
tubuliferous has quit [Read error: Connection reset by peer]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
maximski has quit [Read error: No route to host]
justin_pdx has quit [Quit: justin_pdx]
maximski has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
mjuszczak has quit [Client Quit]
michael_mbp has quit [Excess Flood]
FooMunki has quit [Quit: FooMunki]
jalcine_ has joined #ruby
jalcine_ is now known as Guest16861
pwnz0r has joined #ruby
michael_mbp has joined #ruby
FooMunki_ has joined #ruby
ghr has joined #ruby
GnuYawk has joined #ruby
towski_ has quit [Remote host closed the connection]
Hijiri has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
scar00t has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
zotherstupidguy has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
martianixor has joined #ruby
martianixor has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
cscheib has joined #ruby
sivsushruth has joined #ruby
martianixor has joined #ruby
martianixor has quit [Max SendQ exceeded]
martianixor has joined #ruby
michael_mbp has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
Cache_Money has joined #ruby
pwnz0r has quit [Remote host closed the connection]
Joufflu has joined #ruby
tuelz has joined #ruby
davejacobs has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
<tuelz>
I'm trying to call faker in a seed file to populate my database with random data. Initially I just called the method in a loop, but I got all the same values for each itteration, so I put it in a proc thinking that should call a new instance everytime and get somethign new, but it isn't working
<quazimodo>
inside foo.rb i do require 'bar', can i know what the file that did the require was from inside bar.rb, such that i can see it was foo.rb that required bar.rb that time ?
<sevenseacat>
err, why isnt the FactoryGirl call just in the loop
* quazimodo
feels it's unlikely
jonr22 has joined #ruby
martianixor has quit [Ping timeout: 244 seconds]
martianixor has joined #ruby
<tuelz>
I updated with the factory file, not sure if that's what you're asking for.
<sevenseacat>
its not
slawrence00 has joined #ruby
startupality has quit [Quit: startupality]
<tuelz>
what was quazimodo asking for, then?
<sevenseacat>
quazimodo: wasnt asking you for anything
<apeiros_>
quazimodo: Kernel#caller/#caller_locations. but sounds smelly.
mary5030 has quit [Remote host closed the connection]
havenwood has joined #ruby
<apeiros_>
also you might have to filter out rubygems related lines.
<quazimodo>
yeah no likey
<quazimodo>
well here's the thing
<tuelz>
sevenseacat: oh, thought he was being sarcastic about me providing too little inf
<sevenseacat>
tuelz: why cant you do 5.times do { user_table.insert FactoryGirl.attributes_for(:user) }
<apeiros_>
sevenseacat: might want to choose either do/end or {} ;-)
<sevenseacat>
lol
<shevy>
cat magic will make this code work!
<tuelz>
sevenseacat: maybe I can, any insight to how that's different? I thought they were identical
<havenwood>
reactormonk: yeah, if you reassign $stdout to say an open file or a string io it doesn't nuke STDOUT or IO.new(1) from orbit like a #reopen.
<havenwood>
reactormonk: you can assign $stdout back to STDOUT
<reactormonk>
havenwood, I want to nuke it from orbit.
<havenwood>
reactormonk: then carry on
<havenwood>
reactormonk: ;)
<reactormonk>
I want the interpreter error messages to go to a file instead of stderr - ruby's being called from another file
justin_pdx has joined #ruby
<havenwood>
reactormonk: usually it's nice to reserve the ability to restore, but admittedly not always
lemur has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 265 seconds]
jack_rabbit has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
<arup_r>
MRI is like dark planet to me
Soda has joined #ruby
<certainty>
i hear matz crying
yfeldblu_ has joined #ruby
<arup_r>
reading OOP code implemented using C is like :(
ych_ has quit [Ping timeout: 264 seconds]
Guest123 has joined #ruby
<certainty>
isn't reading $code implemented using C like :( ?
<apeiros_>
I found this one not too hard to follow. but I don't like ruby's C code much.
<apeiros_>
funny things like 13 returns from the same function…
<sevenseacat>
C :(
<certainty>
the burdon of our time
silkfox has joined #ruby
<sevenseacat>
all i remember about C is a) pointers suck b) memory management sucks c) structs are a poor man's OO
<sevenseacat>
but mostly b)
<apeiros_>
yeah, I'm always surprised how much faults valgrind still finds in my tiny pieces of C code :-/
<apeiros_>
you'd think it can't be that hard…
krz has quit [Ping timeout: 245 seconds]
<certainty>
haha
yfeldblum has quit [Ping timeout: 256 seconds]
<sevenseacat>
having to calculate exactly how many bytes every single goddamn data structure is going to use
<sevenseacat>
f that
<apeiros_>
sevenseacat: don't?
<apeiros_>
your compiler should do that
<certainty>
sizeof
<sevenseacat>
maybe things have changed since i was taught C at uni.
fgo has quit [Ping timeout: 246 seconds]
<certainty>
but still it sucks
<apeiros_>
and as far as I've been told, it's bad style anyway to not use sizeof
lemur has quit [Ping timeout: 256 seconds]
krz has joined #ruby
<apeiros_>
but that's one of my biggest gripes with C - finding good resources for a) what is modern C, and b) why is modern C written that way
<certainty>
C is a macro assembly and as such it does its job. but you should think twice before you use it
<certainty>
my conclusion is that i'm too dumb for C. I can't seem to make it right
<certainty>
also i hesitate to concern myself with all the accidental complexity that comes with C code
<certainty>
(all code at that level of abstraction)
silkfox has quit [Ping timeout: 256 seconds]
<apeiros_>
"accidental complexity". yeah. so many more yaks in C than in ruby. "oh, problem x? that's easy, I just do A and B… oh wait, C doesn't have A. it doesn't have B either. well, ok, problem A is easy, I just need…"
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
andikr has joined #ruby
<certainty>
yepp
nii236 has quit [Ping timeout: 246 seconds]
jack_rabbit has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<certainty>
oh i want to store all the lines of that file in a buffer. Ok easy, oh wait no, i have to allocatem memory, loop through each line, oh wait which function is safe to use, ah ok so further. Hmm i don't know how many lines i will need, ok i'll realloc and so on
<certainty>
such a simple task
<certainty>
that many things and i forgot details, for sure
<certainty>
also strings being bytearrays sucks badly
Soda has quit [Remote host closed the connection]
<apeiros_>
strings are bytearrays in ruby too :)
<apeiros_>
but ruby has at least some nice methods on top of that to make your life reasonably easy
<certainty>
apeiros_: that's what i mean. i don't care how it's implemented internally. The interface at least is not byte-oriented. In C an array of bytes is the interface
<certainty>
and don't get me started on null bytes delimiting strings
nii236 has joined #ruby
<apeiros_>
aaahaha, yeah
pwh has quit [Ping timeout: 240 seconds]
<certainty>
i guess you must be linus to be good at that stuff
aganov has joined #ruby
ptrrr has joined #ruby
pwh has joined #ruby
allenn has joined #ruby
sigurding has quit [Quit: sigurding]
Macaveli has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
sigurding has joined #ruby
ajaiswal is now known as ajaiswal|lunch
crdpink has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
crdpink has joined #ruby
dru has quit [Ping timeout: 244 seconds]
dumdedum has joined #ruby
Macaveli has joined #ruby
charliesome has joined #ruby
robbyoconnor has joined #ruby
ninedragon has quit [Ping timeout: 245 seconds]
reinaldob has quit [Ping timeout: 246 seconds]
ninedragon_ has joined #ruby
StoneCypherAW has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
amacou has joined #ruby
ghr has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
BTRE has quit [Read error: Connection reset by peer]
oz has quit [Quit: EOF]
oo_ has quit [Remote host closed the connection]
krz has quit [Ping timeout: 256 seconds]
BTRE has joined #ruby
_Andres has joined #ruby
terlar has joined #ruby
jack_rabbit has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
StoneCypherAW has quit [Ping timeout: 272 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
davejacobs has joined #ruby
krz has joined #ruby
einarj has joined #ruby
Bounga has joined #ruby
strixd has joined #ruby
amacou_ has joined #ruby
amacou_ has quit [Client Quit]
dkoch has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
davejacobs has quit [Ping timeout: 252 seconds]
amacou has quit [Ping timeout: 252 seconds]
tcrypt has quit [Remote host closed the connection]
oki has quit [Read error: Connection reset by peer]
<tobiasvl>
"Returns Process::Status for last executed child process" – and an exit code of 0 means success generally
oki has joined #ruby
j0n3 has quit [Max SendQ exceeded]
j0n3 has joined #ruby
<hs366>
yap , thank you for the link also !
rkgudboy has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
lxsameer has joined #ruby
davedev24_ has quit [Remote host closed the connection]
maasha has joined #ruby
<maasha>
Hi
<maasha>
Would it be possible to hack pry into do tab-completion of paths and filenames?
rocknrollmarc has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
<maasha>
pry> File.open("/home -> tab tab tab ...
senayar has joined #ruby
GnuYawk has quit [Quit: WeeChat 0.4.1]
mroach has quit [Ping timeout: 272 seconds]
einarj_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
Mia has quit [Read error: Connection reset by peer]
<maasha>
Hello? Is there anybody out there?
einarj has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<maasha>
Just nod if you can hear me
<tobiasvl>
sure, but I know nothing about pry
* tobiasvl
nods
ismaelga has joined #ruby
Takle has joined #ruby
<maasha>
"Further, we can use the shell-mode command to incorporate the present working directory into the Pry prompt and bring in (limited at this stage, sorry) file name completion" - what does that mean?
sivsushruth has quit [Ping timeout: 252 seconds]
silkfox has joined #ruby
<dkoch>
maasha: just type "shell-mode"
Hobogrammer has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
elaptics_away is now known as elaptics
havenwood has quit []
ismaelga has quit [Ping timeout: 240 seconds]
<maasha>
Hm, and then you loose tab completion of method names :o/
Lorn3r has joined #ruby
avril14th has joined #ruby
larsam has joined #ruby
<wasamasa>
you only lose an o
silkfox has quit [Ping timeout: 255 seconds]
WhereIsMySpoon has quit [Disconnected by services]
wallerdev has quit [Quit: wallerdev]
einarj has joined #ruby
ponga has quit [Quit: Leaving...]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
ponga has joined #ruby
WhereIsMySpoon_ has joined #ruby
jimms has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
einarj_ has quit [Ping timeout: 246 seconds]
<maasha>
where is this banisterfriend anyway :o) ?
Mia has quit [Ping timeout: 250 seconds]
huddy has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
einarj_ has joined #ruby
sivsushruth has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
jimms has quit [Read error: Connection reset by peer]
rocknrollmarc has joined #ruby
jottr_ has joined #ruby
jimms has joined #ruby
nfk has joined #ruby
einarj has joined #ruby
oo_ has quit [Remote host closed the connection]
shredding has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
einarj_ has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 250 seconds]
<gregf__>
w
<gregf__>
er, sorry :/
sivsushruth has joined #ruby
oo_ has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
oo_ has quit [Remote host closed the connection]
einarj_ has joined #ruby
techsethi_ has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
oo_ has joined #ruby
vtunka has joined #ruby
krz has quit [Ping timeout: 250 seconds]
vvivv has joined #ruby
charliesome has joined #ruby
einarj has quit [Remote host closed the connection]
elaptics is now known as elaptics_away
elaptics_away is now known as elaptics
einarj_ has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics_away
elaptics_away is now known as elaptics
Zai00 has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
shadeslayer has quit [Quit: No Ping reply in 180 seconds.]
kyb3r_ has quit [Ping timeout: 272 seconds]
hoelzro has quit [Ping timeout: 272 seconds]
rocknrollmarc has joined #ruby
Hirzu has joined #ruby
kyb3r_ has joined #ruby
shadeslayer has joined #ruby
hoelzro has joined #ruby
hanmac1 has joined #ruby
krz has joined #ruby
<avril14th>
morning
nii236 has quit [Quit: leaving]
Guest65 has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
rdark has joined #ruby
workmad3 has joined #ruby
Hirzu has quit [Ping timeout: 240 seconds]
msgodf has joined #ruby
wottam has quit [Ping timeout: 244 seconds]
cassianoleal has joined #ruby
roshanavand has joined #ruby
toretore has joined #ruby
krz has quit [Ping timeout: 255 seconds]
davidhq has joined #ruby
<arup_r>
Hey guys..
reinaldob has joined #ruby
<arup_r>
I want to add something Ruby documentation.. How to contribute...?
<arup_r>
avril14th: o/
<vvivv>
create project on Github
krz has joined #ruby
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz is now known as Guest36216
<arup_r>
means? Fork
<arup_r>
?
Guest123 has joined #ruby
<vvivv>
what do you want add?
bruno- has joined #ruby
<avril14th>
arup_r: you mean add comments on ruby-doc.org?
<arup_r>
yes.. improving documentation
davidhq has quit [Client Quit]
<avril14th>
well, get in touch with them :)
<avril14th>
or use the disqus at the bottom of the page
imanzarrabian has quit [Ping timeout: 252 seconds]
jimms has quit []
doodlehaus has joined #ruby
<jhass>
rkmylo: what do you mean? just do it?
RegulationD has quit [Ping timeout: 246 seconds]
<jhass>
%w() doesn't care about the type or amount of whitespace between the items
nii236 has joined #ruby
SOLDIERz has joined #ruby
mikepack has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
Guest36216 has quit [Read error: Connection reset by peer]
<SOLDIERz>
hey everyone when i build ruby from the sourcefile
<SOLDIERz>
is there json already included? no right?
Guest36216 has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
<DefV>
json is in stdlib
tus has joined #ruby
<DefV>
but not automatically required
panga has joined #ruby
sivsushruth has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panga is now known as ponga_
<SOLDIERz>
okay can i include it in the configure?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
not automatically required means in the ruby program you have to do "require 'json'"
<jhass>
no compile time flag needed
<SOLDIERz>
I speaking from building ruby on a linux system
ponga has quit [Ping timeout: 245 seconds]
<SOLDIERz>
not coding a ruby program
<jhass>
yup
mikepack has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
renier_ has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
bradleyprice has quit [Remote host closed the connection]
spider-mario has joined #ruby
Zai00 has joined #ruby
<workmad3>
SOLDIERz: A json parser and generator is part of the ruby standard library that gets installed as part of the normal ruby compile & install process so it's available on pretty much any ruby install (pretty much any because some people may have manually changed their ruby compilation to not have it or some other crazy thing)
rocknrollmarc has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
shazaum has joined #ruby
einarj has joined #ruby
<hanmac1>
SOLDIERz: what linux version?
<SOLDIERz>
centos 7
Aswebb_ has joined #ruby
Zai00 has quit [Client Quit]
Aswebb_ has quit [Remote host closed the connection]
<SOLDIERz>
my configure but it does not ship with json
<hanmac1>
ah the stone-circle os ...
<hanmac1>
SOLDIERz: you need to have the dev packages for json installed, otherwise ruby will not build against it
<SOLDIERz>
lol missed it
<rkmylo>
@jhass, @arup_r: i was just wondering if there is a style guideline re multilining, like the pythonic way in python :) in general - in my experience - ruby code tends to be not so nice code in terms of structure so i would like to stick with the best practices.
amundj has joined #ruby
renier has joined #ruby
rocknrollmarc has joined #ruby
<SOLDIERz>
hanmac1 do you know who the package is called under centos
gfawcettpq has joined #ruby
<jhass>
rkmylo: my personal style, and that matches what I've seen so far in the wild mostly, is to keep the first item on the same line as the %w( and then indent all other items up to it, that is until a single item exceeds the line length limit, at which all items, including the first one get just one level of indentation
juanpaucar has quit [Ping timeout: 256 seconds]
monod has quit [Ping timeout: 240 seconds]
<hanmac1>
SOLDIERz: my biggest guess is "json-c-devel"
davedev24_ has joined #ruby
shazaum has quit [Quit: Leaving]
DaniG2k has quit [Ping timeout: 256 seconds]
<SOLDIERz>
yeap thats what i also thing
wicope has joined #ruby
<SOLDIERz>
let's see how it works
livathinos has quit []
nii236 has quit [Remote host closed the connection]
<hanmac1>
debian and ubuntu does have "apt-get build-dep ruby" ... bad that other os doesnt seems to have something like that ...
<AlecTaylor>
Running `foo.send function_name, arg0, arg1`. How do I prevent an error when `function_name` doesn't take args? - Currently hacked function_name implementation with (*nargs)
<workmad3>
arup_r: just the fact it's called 'NUM2LONG' is pretty clear, IMO ;
<workmad3>
;)
<arup_r>
humm
<workmad3>
arup_r: hence the educated guess that it converts a ruby Numeric type into a C long
<arup_r>
You are right!
rocknrollmarc has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
arup_r: X2Y are pretty common names for C conversion macros
livathinos has joined #ruby
ajaiswal has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
ghostpl_ has quit [Read error: No route to host]
sevenseacat has joined #ruby
Guest123 has joined #ruby
ghostpl_ has joined #ruby
n1lo has joined #ruby
rocknrollmarc has joined #ruby
leat has quit [Quit: leat]
ismaelga has joined #ruby
tobago has quit [Remote host closed the connection]
ajaiswal has quit [Quit: Leaving]
allcentury has joined #ruby
Guest65 has joined #ruby
lanemeyer has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<jhass>
AlecTaylor: sounds very smelly, however you could inspect the arguments through the Method object obtained through Kernel#method
joonty has joined #ruby
Spami has joined #ruby
<arup_r>
hanmac1: yes
<arup_r>
is it working in your IRB ?
<hanmac1>
arup_r: as i added in the ticket, it does raise some different errors, but no bad malloc messag
allenn has quit [Remote host closed the connection]
<arup_r>
I didn't check.. Let me check it
<arup_r>
what you added
rocknrollmarc has quit [Ping timeout: 246 seconds]
<arup_r>
hanmac1: ruby 2.3.0dev ??? Is it WoW
ngr has joined #ruby
<hanmac1>
arup_r: yeah i also test ruby-head recently
<arup_r>
Well let me check in my other Ruby versions
ngr has left #ruby [#ruby]
segmond has quit [Ping timeout: 240 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
juanpaucar has joined #ruby
doodlehaus has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 250 seconds]
lektrik has quit [Ping timeout: 256 seconds]
<arup_r>
hanmac1: Updated... for me in every version I am getting error..
claptor has quit [Quit: this channel is bakas]
<hanmac1>
arup_r: what does RbConfig::CONFIG["CC"] return for you?
sigurding has joined #ruby
pwh has joined #ruby
<AlecTaylor>
jhass: Can I do it through send somehow? - Like maybe implementing my own send which looks at expected argument length?
ghostpl_ has quit [Ping timeout: 245 seconds]
juanpaucar has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
spyderman4g63 has joined #ruby
<arup_r>
hanmac1: In IRB.. you want me to check it ?
<arup_r>
well it is => "/usr/bin/clang"
Guest39056 is now known as kaspergrubbe
<arup_r>
hanmac1: ^^
<ta>
tlw: for lige at være sikker... `cat passphrase.secret | keystore encrypt -t ekey outfile.encrypted` ?
<hanmac1>
arup_r: ah ok that might be the problem, because i have gcc
Macaveli has quit [Ping timeout: 272 seconds]
rocknrollmarc has quit [Ping timeout: 256 seconds]
<arup_r>
hanmac1: ok.. But I think it is a bug right ?
<arup_r>
what do you say ?
<hanmac1>
hm yes it might be
vtunka has quit [Quit: Leaving]
centrx has joined #ruby
rismoney1 has joined #ruby
<arup_r>
should I add this info to there also?
<arup_r>
what you just asked me hanmac1
cpt_yossarian has quit [Ping timeout: 265 seconds]
<hanmac1>
arup_r: i think its a usefull infomation to add (and that it does works for me wth gcc)
<arup_r>
ok
<arup_r>
adding
<maasha>
is there a good tutorial on writing a Ruby wrapper for a C++ library? And is there some project that does this in a minimal way that I can look at?
segmond has joined #ruby
* hanmac1
does *hust* at the word "minimal way" ;P
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
vtunka has joined #ruby
<jhass>
AlecTaylor: I really would reconsider your design, but sure, you can write as many wrappers around (public_)send as you like
<maasha>
hanmac1: well, I am not after some super huge project like kyoto-protocol
<jhass>
"minimal" :D
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livingstn has joined #ruby
<AlecTaylor>
jhass: I just want to quell errors. Example on how to wrap?
<jhass>
AlecTaylor: no
teoric has quit [Quit: WeeChat 1.2-dev]
Arnie25 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
<maasha>
hanmac1: ok, I will have a look - I have the ruby cookbook here and it also have a tiny example.
catphish_ has joined #ruby
brb3 has joined #ruby
<maasha>
not a very well explained, unfortunately.
troulouliou_dev has joined #ruby
<catphish_>
i'm trying to implement SNI in a ruby OpenSSL server, but i'm unsure how to begin, would anyone familiar with SSLSocket be able to explain the process?
<AlecTaylor>
hanmac1: Is that more efficient than mod? - Or equiv?
triple_b_ has joined #ruby
<hanmac1>
hm probably not
<AlecTaylor>
ya
jerius has joined #ruby
juanpaucar has quit [Remote host closed the connection]
triple_b has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
rkmylo has quit []
Guest123 has joined #ruby
mostlybadfly has joined #ruby
<bbclover>
centrx: is rails an ORM?
lxsameer has quit [Quit: Leaving]
commmmodo has joined #ruby
doodlehaus has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
<avril14th>
bbclover: no
jenrzzz has joined #ruby
davidhq has joined #ruby
<avril14th>
bbclover: activerecord is and is used by rails if you want it so. Other options are mongoid but instance
strixd has quit [Quit: 500]
DaniG2k has joined #ruby
Mon_Ouie has joined #ruby
zenith_ has joined #ruby
kobain has joined #ruby
<hanmac1>
bbclover: just keep in mind that ruby is much more than only rails, and we will all still be your friends ;P
<avril14th>
ahah
rocknrollmarc has joined #ruby
casadei has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
<bbclover>
thanks ha
kobain has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 256 seconds]
<Hirzu_>
I've been doing ruby for more than 2 years and havent even tried Rails :)
<mikecmpbll>
you heretic.
JimmyNeutron has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
<Hirzu_>
Sinatra is quite for my purposes
<mikecmpbll>
:)
<canton7>
and if sinatra's not enough, there's always padrino
<AlecTaylor>
Sinatra is nice. But everyone has stolen its design
JimmyNeutron has joined #ruby
<AlecTaylor>
(and yes, I mean everyone from Haskell to Python)
<Hirzu_>
That is not bad thing at all
<canton7>
even java's getting there. slowly.
<AlecTaylor>
Quite the opposite
<mikecmpbll>
you mean .. mvc? i don't think sinatra invented mvc :p
<canton7>
*that's* saying something
<Hirzu_>
we can always lure Node.js developers to switch to Ruby :)
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<AlecTaylor>
canton7: Java is horrible
<AlecTaylor>
The JVM is horrible
<canton7>
no, as in the micro-framework
<canton7>
AlecTaylor, I work in java. No need to tell me
catphish_ has left #ruby ["Leaving"]
* wasamasa
still finds it amusing that flask has better docs than sinatra
<AlecTaylor>
xD
<bhaak>
ha, if it were not for Java, you probably be working in C++
<AlecTaylor>
wasamasa: I use Bottle but am looking at rewriting it on Twisted or Tornado
<bhaak>
so be grateful!
axisys has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
strixd has joined #ruby
<AlecTaylor>
bhaak: C++ is still better than Java
<wasamasa>
AlecTaylor: I consider stealing the rack idea and porting it to scheme
<bhaak>
AlecTaylor: haha, no.
<Hirzu_>
I also work with Scala and used to do lot of Java. C++ , I'm glad it's past for me
<AlecTaylor>
bhaak: I code C++ and have very few issues with it
fgo has quit [Ping timeout: 265 seconds]
<wasamasa>
AlecTaylor: clojure people seem to do pretty well with their rendition of it
<jlebrech>
i have an issue with pry, when I try to print out a var such as "foobar" i get errors like "undefined local variable or method 'ooba'"
<Hirzu_>
Scalatra is nice Scala frame for Sinatra developer
Rapier- has joined #ruby
<AlecTaylor>
wasamasa: Scheme does have a nice syntax. Clojure and Scala have nice ideas also. Would be nice to see them implemented on the LLVM though
<bhaak>
AlecTaylor: then I see what your problem with Java is. C++ and Java need quite a different mindset
* AlecTaylor
recalls a masters project that ported Scala to LLVM
<wasamasa>
AlecTaylor: well, there's clasp
<wasamasa>
AlecTaylor: which is a CL implementation using llvm and sporting C++ integration
mitchellhenke has joined #ruby
<AlecTaylor>
bhaak: It's overly verbose, hard to optimise (slow). Also its garbage collection is [still] a joke
ismaelga has quit [Remote host closed the connection]
lanemeyer has joined #ruby
ismaelga has joined #ruby
ismaelga has quit [Read error: Connection reset by peer]
ismaelga has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
jcromart_ has joined #ruby
jlast has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
paulfm has quit [Quit: Zzzzz...]
sinkensabe has quit [Read error: Connection reset by peer]
kortes has joined #ruby
<kortes>
test
agarie has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cpt_yossarian has joined #ruby
sanguisdex has quit [Quit: Leaving.]
kortes has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
mistermo_ has joined #ruby
dumdedum has quit [Quit: foo]
Guest36216 has quit [Quit: WeeChat 1.0.1]
rbennacer has joined #ruby
kortes has joined #ruby
topolinux has joined #ruby
rbennacer has quit [Remote host closed the connection]
paulfm has joined #ruby
razieliyo has joined #ruby
rbennacer has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
dumdedum has joined #ruby
rbennacer has joined #ruby
sanguisdex has joined #ruby
max96at|off is now known as max96at
rageberry has quit [Quit: WeeChat 1.1.1]
rageberry has joined #ruby
hs366 has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 256 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest15 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rocknrollmarc has joined #ruby
rorra has joined #ruby
kortes has quit [Quit: Page closed]
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
zorak8 has joined #ruby
byprdct has joined #ruby
StoneCypherAW has joined #ruby
kortes has joined #ruby
govg has quit [Quit: leaving]
codeurge has joined #ruby
govg has joined #ruby
<kortes>
test
<apeiros_>
test failed. please reboot your computer.
<kortes>
jajaja
livathin_ has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
codeurge has quit [Client Quit]
vtunka has joined #ruby
neonalpine has quit []
iamjarvo has joined #ruby
codeurge has joined #ruby
cassianoleal has joined #ruby
agarie has joined #ruby
multi_io_ is now known as multi_io
flip_digits has joined #ruby
Guest15 has joined #ruby
jhwhite has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
oki has quit [Ping timeout: 264 seconds]
davejacobs has joined #ruby
freerobby has joined #ruby
fantazo has quit [Ping timeout: 250 seconds]
paulfm has quit [Quit: Zzzzz...]
fuhgeddaboudit has joined #ruby
startupality has joined #ruby
kortes has quit []
davejacobs has quit [Ping timeout: 245 seconds]
rageberry has quit [Quit: WeeChat 1.1.1]
fuhgeddaboudit has quit [Client Quit]
rageberry has joined #ruby
fuhgeddaboudit has joined #ruby
jshultz has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
paulfm has joined #ruby
Takle has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
fryguy9 has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Akuma has joined #ruby
fuhgeddaboudit has quit [Client Quit]
troulouliou_dev has joined #ruby
root2 has joined #ruby
Takle has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
mistermo_ has quit [Ping timeout: 240 seconds]
rageberry has quit [Quit: WeeChat 1.1.1]
Hirzu_ has quit [Ping timeout: 265 seconds]
rageberry has joined #ruby
schaerli has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby
Akuma has quit [Ping timeout: 256 seconds]
jcromart_ has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
rikai has quit [Ping timeout: 250 seconds]
lolmaus has quit [Quit: Konversation terminated!]
fantazo has joined #ruby
hanmac1 has quit [Quit: Leaving.]
jobewan has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
fgo has joined #ruby
rdark has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
brb3 has joined #ruby
Akuma has joined #ruby
jcromartie has joined #ruby
Waheedi has quit [Quit: Waheedi]
amundj has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
rikai has joined #ruby
jtdowney has joined #ruby
rageberry has quit [Quit: WeeChat 1.1.1]
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
rageberry has joined #ruby
axl_ has joined #ruby
sambao21 has joined #ruby
skelterjohn has joined #ruby
Nick_ZWG has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<skelterjohn>
hey - having some trouble building ruby from head. the github project's readme indicates a configure/make dance, but there's no configure file
<centrx>
skelterjohn, probably run autoconf
<centrx>
to generate the configure
<skelterjohn>
ah, yeah and the page does say that now that i read more carefully
<skelterjohn>
thanks
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
w0rldmaker has joined #ruby
Nick_ZWG has left #ruby [#ruby]
blizzy has joined #ruby
Barrayar has joined #ruby
rdark has quit [Quit: leaving]
skar has quit [Ping timeout: 246 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
shellfu_afk is now known as shellfu
tjohnson has joined #ruby
willharrison has joined #ruby
dumdedum has quit [Quit: foo]
AlexRussia has joined #ruby
oleo has joined #ruby
neonalpine has joined #ruby
bal has quit [Quit: bal]
jhwhite has quit [Quit: leaving]
mistermocha has joined #ruby
jhwhite has joined #ruby
oleo has quit [Read error: Connection reset by peer]
oleo__ has quit [Ping timeout: 246 seconds]
oleo has joined #ruby
byprdct has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
momomomomo has joined #ruby
michael_mbp has joined #ruby
OrbitalKitten has joined #ruby
wallerdev has joined #ruby
_honning_ has joined #ruby
aganov has quit [Quit: Leaving]
zenith_ has quit [Ping timeout: 244 seconds]
mloveless has joined #ruby
crueber has joined #ruby
ghostbox has quit []
riotjones has quit [Remote host closed the connection]
aspiers has joined #ruby
lordkryss has joined #ruby
oki has joined #ruby
ki0 has quit [Ping timeout: 246 seconds]
gluten_hell has quit [Quit: Computer has gone to sleep.]
maximski has quit []
olivier_bK has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claw___ has quit [Ping timeout: 246 seconds]
claw has joined #ruby
thousandwich has joined #ruby
zenith_ has joined #ruby
avril14th has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
oki has quit [Ping timeout: 245 seconds]
pandaant has joined #ruby
ghr has quit [Read error: No route to host]
Takle has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
plashchynski has joined #ruby
rocknrollmarc has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
arup_r has joined #ruby
roshanavand has joined #ruby
mikepack has joined #ruby
ismaelga has quit [Remote host closed the connection]
StoneCypherAW has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
livathinos has quit [Remote host closed the connection]
jlebrech has quit [Remote host closed the connection]
ismaelga has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
zenith_ has quit [Ping timeout: 264 seconds]
arclitgold has joined #ruby
<arclitgold>
hi all!
ferr has joined #ruby
vtunka has quit [Quit: Leaving]
olivier_bK has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
zenith_ has joined #ruby
<centrx>
hi
vtunka has joined #ruby
rocknrollmarc has joined #ruby
gsd has joined #ruby
DaniG2k has quit [Quit: leaving]
Guest15 has quit [Read error: Connection reset by peer]
w0rldmaker has quit [Ping timeout: 246 seconds]
ismaelga has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
Barrayar has quit [Ping timeout: 245 seconds]
aswen has quit [Ping timeout: 245 seconds]
ismaelga has joined #ruby
fabrice31 has joined #ruby
<arup_r>
o/
Pharaoh2 has joined #ruby
bMalum has joined #ruby
<arclitgold>
bit of a newb question.... can't seem to google the right answer
sambao21 has quit [Quit: Computer has gone to sleep.]
CustosLimen has quit [Ping timeout: 244 seconds]
<arclitgold>
i'm dropping a few ruby scripts onto some servers that don't have any ruby installed by default. i'm able to install ruby 1.9 from teh repos
<arclitgold>
and my understanding is that ruby1.9 includes rubygems and json gem
sambao21 has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
ismaelga has quit [Remote host closed the connection]
<arclitgold>
yet when trying to require 'json' - i'm getting the "cannot load such file -- json"
<arup_r>
open irb
<arclitgold>
k
<arup_r>
do require 'rubygems'
alex88 has quit [Remote host closed the connection]
<arup_r>
if it says false
<arup_r>
it is there
<arclitgold>
is says false
w0rldmaker has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<arup_r>
well you have it then
<arup_r>
now do
<arup_r>
require 'json'
<arclitgold>
yikes - LoadError: cannot load such file -- json
sambao21 has quit [Client Quit]
plashchynski has quit [Quit: plashchynski]
sigurding has quit [Quit: sigurding]
<centrx>
JSON is in stdlib so shouldn't require a gem
<arclitgold>
hm
oki has joined #ruby
<arup_r>
exit irb
<arclitgold>
k
<arup_r>
do ruby -v
sambao21 has joined #ruby
withnale__ has quit [Ping timeout: 246 seconds]
<arclitgold>
ruby 1.9.3p0
rekky has quit [Remote host closed the connection]
<arup_r>
then you should have json shipped with ruby stdlib
bricker has joined #ruby
<arclitgold>
hm
jobewan has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
<arclitgold>
odd
terlar has quit [Ping timeout: 252 seconds]
<arclitgold>
so do I not need to "require" it in the script?
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r>
arclitgold: you have to
<arup_r>
require anything you want to use out side of core ruby
senayar_ has joined #ruby
rocknrollmarc has quit [Ping timeout: 256 seconds]
plashchynski has joined #ruby
<arclitgold>
makes sense
<arclitgold>
that's why I have the require in there
DrShoggoth has joined #ruby
rekky has joined #ruby
<arclitgold>
just can't get past that LoadError for some reason
<arup_r>
humm
elaptics is now known as elaptics_away
senayar_ has quit [Client Quit]
ismaelga has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
bweston92 has quit [Quit: Leaving]
dru has joined #ruby
tvw has quit [Remote host closed the connection]
gluten_hell has joined #ruby
rhg135|zzz has quit [Ping timeout: 264 seconds]
rageberry has joined #ruby
sinkensabe has joined #ruby
rekky has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
<arclitgold>
can't figure it out!! path issue maybe?
baroquebobcat has joined #ruby
<centrx>
arclitgold, does it work in irb, require 'json
<vvivv>
try learn php
StoneCypherAW has joined #ruby
Crisix has joined #ruby
Crisix has quit [Max SendQ exceeded]
jrd is now known as jrdnull
Megtastique has joined #ruby
einarj has quit [Remote host closed the connection]
dpritchett has joined #ruby
<jhass>
vvivv: uh, have seen better attempts, try again
dpritchett has left #ruby [#ruby]
<arclitgold>
centrx: nope, doesn't work in irb either
<arclitgold>
same LoadError
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rageberry has quit [Quit: WeeChat 1.1.1]
rageberry has joined #ruby
Waheedi has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<arclitgold>
seems crazy to me :S
Takle__ has joined #ruby
davedev24_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deol has joined #ruby
fantazo has quit [Quit: Verlassend]
chipotle has joined #ruby
dfinninger has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
<vvivv>
jhass do u think newb who does not want to spend 2 h to open start doc page will be a good coder?
bayed has quit [Quit: Connection closed for inactivity]
strixd has quit [Quit: 500]
alex88 has joined #ruby
<ph8>
hi all
mikecmpbll has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rekky has joined #ruby
<ph8>
i've installed ruby 2.0.0 with rvm, and i tried to run 'bundle install' on the project i'm setting up. It's not in my $PATH which is weird, even after i've opened a new machine - i'm not sure it's on the system. Is that how you'd expect to interact with bundle via rvm?
Lildirt has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
iamjarvo has joined #ruby
shredding has joined #ruby
Pharaoh2 has quit [Ping timeout: 246 seconds]
lolmaus has joined #ruby
bMalum has quit [Quit: bMalum]
evangeline__ has joined #ruby
jottr has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<evangeline__>
hi, when trying to run god script, I get an ugly stacktrace: http://dpaste.com/16NRKB0 any ideas how to solve it; I've set the current ruby verstion to 1.9.3 with " rvm --default use ruby-1.9.3-p448" ...?
<jhass>
vvivv: no, coding requires a lot of patience
Lildirt has joined #ruby
momomomomo has quit [Quit: momomomomo]
werelivinginthef has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Lildirt has quit [Remote host closed the connection]
<apeiros_>
evangeline__: segmentation fault is indeed ugly. I'd try at least the newest patch level of 1.9.3 (p551)
<ph8>
marahin, gem cannot be found also :-o
Lildirt has joined #ruby
<apeiros_>
but you should consider moving to a still maintained version of ruby. 1.9.3 is old.
<ph8>
ruby -v works
michael_mbp has joined #ruby
<jhass>
apeiros_: evangeline__ -p643
bradleyprice has joined #ruby
ob-sed has joined #ruby
iamjarvo has quit [Client Quit]
<apeiros_>
oh
Takle__ has quit [Remote host closed the connection]
<apeiros_>
I guess I should update my rvm
<jhass>
apeiros_: evangeline__ arg, disregard me
<marahin>
ph8: have you ran the command that rvm gives after installation is complete? IIRC you'd have to copy it into your ~/.profile or ~/.bashrc
<ob-sed>
yo ruby on rails got CSRF tokens in the URL ?
zenith_ has quit [Ping timeout: 272 seconds]
rbennacer has quit [Remote host closed the connection]
* apeiros_
disregards jhass
<ph8>
almost definitely not :)
riotjones has quit [Ping timeout: 252 seconds]
<apeiros_>
ob-sed: only if you do something seriously wrong
<apeiros_>
ob-sed: but rails is over in #rubyonrails - registered nickname required
<jhass>
vvivv: that said, said patience can develop from trying it out and having fun doing that
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zzing has joined #ruby
joonty has quit [Quit: joonty]
zenith_ has joined #ruby
<apeiros_>
sooo, soon those tiny little ships will fly around and shoot lasers at each other :D
allcentury has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
CustosLimen has joined #ruby
tkuchiki has joined #ruby
mjuszczak has joined #ruby
lkba has joined #ruby
davidhq has joined #ruby
nahtnam has joined #ruby
Hobogrammer has joined #ruby
deric_skibotn has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
chinmay_dd_ has joined #ruby
rbennacer has joined #ruby
Waheedi_ has joined #ruby
GnuYawk has joined #ruby
Waheedi has quit [Ping timeout: 244 seconds]
Waheedi_ is now known as Waheedi
<shevy>
guys
<shevy>
I love you
zzing has quit [Ping timeout: 252 seconds]
crazydiamond has quit [Ping timeout: 250 seconds]
rocknrollmarc has joined #ruby
<workmad3>
apeiros_: reg is off in #rubyonrails atm
tkuchiki has quit [Ping timeout: 265 seconds]
<shevy>
YES
<shevy>
LET'S INVADE AND TAKE OVER
<vvivv>
shevy . are you girla?
<jhass>
shevy: okay, see you there
<workmad3>
shevy: yeah, do that... I've been wanting to put on my new hat in there :)
<shevy>
vvivv nah, I am one of those poor ones with an average life expectancy -8 years :(
<shevy>
jhass I chickened out, they seemed an alien people over there
<shevy>
I don't even know what they are talking about
<workmad3>
shevy: you didn't even stay long enough to see a chat :P
kalusn has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
<skelterjohn>
i'm building from source, checked out the github repo at various versions, including head and v2_0_0_rc2
<centrx>
skelterjohn, maybe a gem requires the 'openssl' binary to be installed on your system?
bMalum has joined #ruby
jespada has quit [Read error: Connection reset by peer]
<skelterjohn>
my system has it
<workmad3>
skelterjohn: looks like your ruby install doesn't have the openssl component of the stdlib compiled
<skelterjohn>
workmad3: do you know how to make that happen? I built via "autoconf;./configure;make install"
<workmad3>
skelterjohn: if that didn't build openssl, it probably means you don't have the openssl dev package installed
<skelterjohn>
ok, i'll investigate that, thanks
w0rldmaker has joined #ruby
<shevy>
skelterjohn once you have openssl headers, you can recompile in the ext/ssl subdirectory
<shevy>
sorry
<shevy>
it is ext/openssl directory
mistermocha has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
ndrei_ has quit [Ping timeout: 244 seconds]
dfinninger has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
<n1lo>
Hi folks, I have an array with objects and I want to search for a specified value in that array with method should I use ? I tried: my_array {|x| return x.value if x.name == "myName" } but doesn''t work..
<skelterjohn>
workmad3: i see a libssl-dev package, trying that in hopes that it provides openssl headers
allcentury has joined #ruby
<n1lo>
nevermind, i got it.. select. +_+
<skelterjohn>
shevy: libssl-dev doesn't seem to make a difference, and "make" in ext/openssl doesn't appear to do much
zz_olivierrr is now known as olivierrr
teddyp1cker has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
<shevy>
skelterjohn nono
rhllor has joined #ruby
dj_zubehoer has joined #ruby
dj_zubehoer has quit [Client Quit]
<skelterjohn>
i also reran the configure-make dance from root
<shevy>
skelterjohn have you tried to run "ruby extconf.rb" there?
<shevy>
aha ok
<skelterjohn>
i can try that too
<shevy>
then the ext/openssl part was also run
<skelterjohn>
ok
<shevy>
no I think that is pointless, you already tried anew; but surely you must have another error now?
teddyp1cker has joined #ruby
rbennacer has quit [Remote host closed the connection]
<skelterjohn>
running 'ruby extconf.rb && make install' lets me see a different error with gem update, thanks :)
iceden|2 has joined #ruby
Hijiri has joined #ruby
iceden|2 is now known as iceden
dj_zubehoer has joined #ruby
Takle has quit [Remote host closed the connection]
<skelterjohn>
now zlib, but i have a better idea of how to track things down now
<shevy>
ah great
<shevy>
zlib is much simpler to get working
<arclitgold>
if json is now in the stdlib you still have to require it... where does it expect the json.rb file to file?
<arclitgold>
thinking I'm having a path issue
<shevy>
I always had the most difficulty with openssl, on debian based machines
<arclitgold>
or dependency issue?
<shevy>
arclitgold it must be logical
rbennacer has joined #ruby
<shevy>
require 'json' must look at json.rb file in site dir
<shevy>
now you only have to find out where your site dir is
dj_zubehoer has quit [Client Quit]
oki has joined #ruby
Soda has joined #ruby
<arclitgold>
shevy: how can I do that?
<shevy>
on my system it is /usr/lib/ruby/2.1.0/
<shevy>
not sure... hmm
<arclitgold>
ah ok
<shevy>
gems may also reside in an extra location
<shevy>
though you are right, for json.rb this won't apply
<shevy>
/usr/lib/ruby/2.1.0/json.rb
<shevy>
here it is for me
<nettoweb_>
guys I tried to use bumbler gem but I could not so I remove from my project but when I try to rake routes, I always get this warning: .rvm/gems/ruby-1.9.3-p448/bin/rake:in `require': cannot load such file -- bumbler/go (LoadError)
<nettoweb_>
could someone help me with this?
<arclitgold>
shevy: let me give that a look
<shevy>
\o/
<shevy>
arclitgold at the worst, you can always run a global find
<shevy>
or, updatedb; locate json.rb
<shevy>
but I think it must be in /usr/lib/ruby or /usr/local/lib/ruby
jhwhite has left #ruby [#ruby]
<jhass>
nettoweb_: is that the full error output? make a gist with it if not
<nettoweb_>
jhass just /Users/netto/.rvm/gems/ruby-1.9.3-p448/bin/rake:in `require': cannot load such file -- bumbler/go (LoadError)
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
arclitgold I think you can somehow add this path
<arclitgold>
makes sense
shredding has quit [Ping timeout: 245 seconds]
<shevy>
you can also try to look at "gem env" ... unfortunately I don't know how, someone else perhaps can. I use standard /usr prefix so I am unsure how to deviate from it
w0rldmaker has quit [Ping timeout: 252 seconds]
<nettoweb_>
jhass that is the problem, I use zsh with YADR
<nettoweb_>
so I dont know where this file is located
pdoherty has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
<jhass>
nettoweb_: I don't think you even try to look though
<arclitgold>
shevy: gem env only lists my home dir
<nettoweb_>
yes I looked but it's a mess.. I have to remove it, but there are plenty of symlinks ;/
Takle has joined #ruby
GnuYawk has joined #ruby
<jhass>
nettoweb_: grep -rin
<jhass>
nettoweb_: and I mean you added it
paradoja has quit [Ping timeout: 265 seconds]
<zalmoxes>
what's the recommended way to automate interaction with Flash using ruby?
<nettoweb_>
grep -rin dont work... shows me the help for grep
decoponio has quit [Quit: Leaving...]
bMalum has quit [Quit: bMalum]
<jhass>
nettoweb_: if you can't even figure out which files compose your shell environment, how did you manage to successfully add it? Most likely by following the instructions I linked, so it's most likely one or more of the files mentioned there
<jhass>
which I think is why you don't even try to look
werelivinginthef has quit [Remote host closed the connection]
<jhass>
nettoweb_: man grep
<jhass>
learn grep, it's incredibly useful
Guest65 has joined #ruby
alex88 has quit []
_honning_ has quit [Ping timeout: 264 seconds]
<nettoweb_>
jhass thank you
Lildirt has joined #ruby
plashchynski has quit [Quit: plashchynski]
vtunka has quit [Quit: Leaving]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hollywood has quit [Ping timeout: 255 seconds]
<arclitgold>
hmmm it's almost like the interpreter isn't aware of json or doesn't know where to find it?
<shevy>
arclitgold yeah, if gem env does not show it
<shevy>
it is a non-standard directory
<shevy>
there is a way to add dirs though
ismaelga has joined #ruby
plashchynski has joined #ruby
oki has quit [Ping timeout: 252 seconds]
rekky has quit [Remote host closed the connection]
polysics has joined #ruby
w0rldmaker has joined #ruby
Cust0sLim3n has quit [Max SendQ exceeded]
Zai00 has joined #ruby
Cust0sLim3n has joined #ruby
plashchynski has quit [Client Quit]
GnuYawk has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 252 seconds]
agarie has quit [Remote host closed the connection]
dj_zubehoer has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby
w0rldmaker has quit [Ping timeout: 245 seconds]
hollywood has joined #ruby
Takle has quit [Remote host closed the connection]
davejacobs has joined #ruby
dj_zubehoer has quit [Client Quit]
tvw has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 244 seconds]
enebo has joined #ruby
davejacobs has quit [Ping timeout: 255 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Quit: Outta here...]
The_Phoenix has quit [Ping timeout: 250 seconds]
zzing has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
towski_ has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
livathinos has quit [Client Quit]
prasselpikachu has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
tunaCanBruh has joined #ruby
n008f4g_ has joined #ruby
werelivinginthef has joined #ruby
ferr has quit [Ping timeout: 252 seconds]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 265 seconds]
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
tcrypt has joined #ruby
prasselpikachu has joined #ruby
rocknrollmarc has joined #ruby
CustosLimen has quit [Quit: Leaving]
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ob-sed has quit [Quit: ob-sed]
iamjarvo has joined #ruby
Guest65 has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
iamjarvo has joined #ruby
toretore has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
dfinninger has joined #ruby
dfinning_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
ismael__ has joined #ruby
ismael__ has quit [Remote host closed the connection]
plashchynski has joined #ruby
techsethi_ has joined #ruby
hornairs has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
ismaelga has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
pothibo has joined #ruby
juanpaucar has joined #ruby
juanpauc_ has joined #ruby
w0rldmaker has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
topolinux has quit [Quit: Sto andando via]
Nahra has joined #ruby
tkuchiki has joined #ruby
fryguy9 has joined #ruby
juanpauc_ has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
agarie has joined #ruby
techsethi_ has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
mjuszcza_ has quit []
GnuYawk has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
thumpba_ has joined #ruby
fantazo has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
commmmodo has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mjuszczak has joined #ruby
tkuchiki has joined #ruby
sambao21 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
commmmodo has joined #ruby
fabrice31 has joined #ruby
havenwood has quit [Remote host closed the connection]
pdoherty has quit [Quit: Leaving]
thumpba has quit [Ping timeout: 255 seconds]
pothibo has quit [Quit: pothibo]
riotjones has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
danman has joined #ruby
rdark has quit [Quit: leaving]
ballpointcarrot has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
mjuszczak has quit [Ping timeout: 256 seconds]
RegulationD has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
hornairs_ has joined #ruby
rekky has quit [Read error: Connection reset by peer]
Pupeno_ has joined #ruby
gsd has joined #ruby
pglombardo has quit [Client Quit]
rekky has joined #ruby
<SegFaultAX>
This is just an idle annoyance, but why the hell doesn't IPAddr expose @mask_addr through an attr_reader or something?
werelivinginthef has quit [Remote host closed the connection]
<SegFaultAX>
It goes through all the trouble of parsing the mask correctly, but then doesn't make it available to you without instance_variable_get hackery.
Pupeno has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
n1lo has quit [Quit: Leaving]
hornairs has quit [Ping timeout: 245 seconds]
Lildirt has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
werelivinginthef has joined #ruby
<shevy>
perhaps the guy who wrote it forgot to add it
nfk has quit [Quit: yawn]
jonr22 has quit [Ping timeout: 265 seconds]
troulouliou_dev has quit [Remote host closed the connection]
elem3nt has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
sevvie has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
startupality has quit [Quit: startupality]
MasterPiece has joined #ruby
agarie has quit [Remote host closed the connection]
sigurding has joined #ruby
nfk has joined #ruby
wald0 has quit [Ping timeout: 256 seconds]
dj_zubehoer has joined #ruby
elem3nt has quit []
MasterPiece has quit [Remote host closed the connection]
agarie has joined #ruby
BTRE has quit [Quit: back in a jiff]
Pupeno has joined #ruby
sighGuy has joined #ruby
brb3 has joined #ruby
<sighGuy>
Can I have some help?
<sighGuy>
Having trouble with hashes
rekky has quit [Ping timeout: 256 seconds]
<jhass>
only if you ask a question
GaryOak_ has quit [Remote host closed the connection]
Pupeno_ has quit [Read error: Connection reset by peer]
<sighGuy>
I'm trying to set two different user inputs as both sides of a hash and I'm not sure how
<centrx>
graft, < is a method on A, which inherits from Module, so it's A.<(B)
iamninja has quit [Read error: Connection reset by peer]
enterprisedc has joined #ruby
diegoviola has joined #ruby
iamninja has joined #ruby
sinkensabe has joined #ruby
nfk has joined #ruby
<sighGuy>
shellfu:
<sighGuy>
shevy:
w0rldmaker has quit [Ping timeout: 246 seconds]
<shellfu>
?
<shellfu>
oh
* shellfu
back to work
_honning_ has joined #ruby
baweaver has joined #ruby
tvon has quit [Remote host closed the connection]
<sighGuy>
jhass: help please?
ponga_ has quit [Quit: Leaving...]
cpt_yossarian has joined #ruby
commmmodo has quit [Quit: commmmodo]
<bricker>
sighGuy: what's the problem?
einarj has joined #ruby
<sighGuy>
bricker: can't get a hash to work
mcpierce has quit [Ping timeout: 256 seconds]
<sighGuy>
don't know how to set the key to user input
ghostmoth has joined #ruby
sevvie has joined #ruby
<jhass>
sighGuy: the right parts are there already
<jhass>
now please just explain why you added that if
ndrei has quit [Ping timeout: 245 seconds]
ndrei_ has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
<sighGuy>
jhass: I was following the previous example
<bricker>
sighGuy: yeah, with that code if you type anything but "Gatsby" nothing will happen
<sighGuy>
:/
m8 has quit [Read error: Connection reset by peer]
<jhass>
sighGuy: you mean your previous gist?
<bricker>
sighGuy: you need to do movies[title] = rating
w0rldmaker has joined #ruby
workmad3 has joined #ruby
<bricker>
to set the user input to the key
neonalpine has quit [Remote host closed the connection]
<centrx>
sighGuy, The question "What's a movie you like?" is actually looking for "Enter a command (add, update, display, delete)"
<sighGuy>
oh!
ndrei has joined #ruby
ndrei_ has joined #ruby
<sighGuy>
centrx: thank you!
nahtnam has quit [Quit: Connection closed for inactivity]
m8 has joined #ruby
leafac has joined #ruby
<sighGuy>
I'm such a doofus sometimes lol
werelivinginthef has quit [Remote host closed the connection]
<centrx>
<- pro tips
einarj has quit [Ping timeout: 256 seconds]
neonalpine has joined #ruby
mcpierce has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
sighGuy has quit [Quit: Page closed]
tunaCanBruh has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
rekky has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
ninedragon_ has joined #ruby
ninedragon_ has quit [Changing host]
ninedragon_ is now known as ninedragon
RegulationD has joined #ruby
Morkel has quit [Quit: Morkel]
zenith_ has joined #ruby
ndrei_ has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby
vt102 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
odigity has joined #ruby
<odigity>
I tried defining the hash method on my class so I can use instances of that class as hash keys, but it's still using the actual instance as the key instead of the return value of #hash.
gfawcettpq has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
sambao21 has joined #ruby
<shevy>
the hash method?
<shevy>
what is this?
baweaver has joined #ruby
<centrx>
odigity, How did you determine it's using the actual instance as the key?
<centrx>
odigity, Did you also define the eql? method?
<centrx>
"Two objects refer to the same hash key when their hash value is identical and the two objects are eql? to each other."
<odigity>
centrx, I did not define the eql method, I figured hash was enough
<odigity>
and I checked using irb by creating a hash
<centrx>
odigity, It is possible it would still look like the instance is the key in irb -- after all you are using the instance as the key -- which implicitly uses the .hash
<odigity>
centrx, nope, didn't help. I defined the eql? method, and it's still using the whole object as the key
FooMunki_ has quit [Quit: FooMunki_]
<odigity>
I'm confused
<odigity>
if I have two different objects (different addresses), but containing the same single scalar value (it's a simple integer value object), how can I set things up such that indexing either one into a hash will yield the same key/value pair?
<baweaver>
I kinda wish that books would agree on a difficulty meter and post that on them
<baweaver>
that way you can have newbie books for first timers, intermediate ones for people who already know a language, advanced for people wanting to improve, and master for some really out there stuff.
<baweaver>
Packt and Pragmatic kinda do it.
scripore has joined #ruby
_honning_ has quit [Ping timeout: 250 seconds]
<Hijiri>
advanced-master is identified by LaTeX
<baweaver>
how so?
tubuliferous has joined #ruby
<baweaver>
I know LaTeX is a formatting language of sorts, but not the type of thing I want to gamble with safe search on
<weaksauce>
toothe I didn't like the well grounded rubyist
<weaksauce>
too wordy if you know how to program already
<Hijiri>
LaTeX is used for many CS papers
olivier_bK has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
Lewix has quit [Ping timeout: 264 seconds]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
JDiPierro has joined #ruby
kaspergrubbe has quit [Quit: leaving]
root2 has quit [Ping timeout: 250 seconds]
kaspergrubbe has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<shevy>
latex smugly snuggles onto the skin
hornairs has quit [Quit: hornairs]
sambao21 has quit [Quit: Computer has gone to sleep.]
MasterPiece has joined #ruby
JDiPierro has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
sambao21 has joined #ruby
turtil has joined #ruby
MasterPiece has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
max96at is now known as max96at|off
rhllor has quit [Quit: rhllor]
baweaver has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
SouL_ has joined #ruby
swgillespie has joined #ruby
SouL_ has quit [Read error: Connection reset by peer]
Rapier- has quit [Quit: (null)]
root2 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
lektrik has quit [Ping timeout: 272 seconds]
Megtastique has quit [Read error: No route to host]
ghostpl_ has joined #ruby
momomomomo has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
Megtastique has joined #ruby
nateberkopec has quit [Quit: Leaving...]
goshdarnyou has joined #ruby
SouL_ has joined #ruby
<ddv>
hmmm \LaTeX
x1337807x has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
DrShoggoth has joined #ruby
livingstn has quit []
kielybunny is now known as Stoner18
ponga has joined #ruby
paulfm has quit [Quit: Zzzzz...]
ponga has quit [Client Quit]
aclearman037 has quit [Quit: I'm out!]
tkuchiki has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
it0a has quit [Ping timeout: 256 seconds]
Spooner has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plashchynski has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
three18ti has joined #ruby
rkmylo has quit [Remote host closed the connection]
freerobby has joined #ruby
TheNet has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
<zenspider>
xpost. sorry.
<zenspider>
well FUCK. my certificate auth seems to have totally borked my login. I can't renew my certs where are expiring in a couple days. Is there a preferred, hopefully free, CA these days?
turtil has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
<c355E3B>
Has lets encrypt started giving out certs yet?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
swgillespie has joined #ruby
JDiPierro has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 252 seconds]
<zenspider>
not yet, no
<zenspider>
"mid 2015"
tier has quit [Remote host closed the connection]
hollywood has quit [Quit: Leaving]
<c355E3B>
startssl offers them, but they had some revocation related issues during heartbleed
crazydiamond has quit [Remote host closed the connection]
<AlecTaylor>
jhass: No output. Do I need to specify its search path somewhere?
<jhass>
no output probably means success
mary5030 has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
<AlecTaylor>
jhass: There's an `assert false` in the default test
axl_ has left #ruby [#ruby]
rismoney1 has quit [Remote host closed the connection]
<jhass>
just tried it, bundle gem -t minitest foo; cd foo; rake test
w0rldmaker has quit [Ping timeout: 250 seconds]
<jhass>
did produce a test failure indeed
<AlecTaylor>
Thanks jhass
StoneCypherAW has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has quit []
tunaCanBruh has quit [Ping timeout: 246 seconds]
<miah>
try
<miah>
bundle exec rake test
ptrrr has joined #ruby
pontiki has quit [Remote host closed the connection]
mjuszczak has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah>
if you dont wrap it with bundler, youre using system gem lib
mjuszczak has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
<AlecTaylor>
jhass: I have a file `cli.rb` which accepts input from stdin, does some type conversions, then pushes them onto instance methods in lib/foo.rb
<miah>
and unless test is in the lib path for the gem its probably not going to be able to lookup the path for minitest_helper; require_relative may be useful there, its how i deal with it
<AlecTaylor>
Should I put it in lib/cli.rb?
lordkryss has joined #ruby
<jhass>
lib/foo/cli.rb
<miah>
i think the bundler template stuff does LOAD_PATH manipulations
<AlecTaylor>
miah: require_relative does work this time, now that I generated it with -t
towski_ has quit [Quit: Leaving...]
<jhass>
and up to you really, but I do make my bin/ scripts as thin as require "mygem/cli"; MyGem::CLI.new(ARGV) usually
<jhass>
miah: see my link
<miah>
jhass: aha =)
nfk has quit [Quit: yawn]
baweaver has quit [Remote host closed the connection]
x1337807x has joined #ruby
freerobby has quit [Quit: Leaving.]
<AlecTaylor>
jhass: Nah, just reading from stdin, don't need anything fancy
<jhass>
I wouldn't call that particularly fancy
shredding has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhg135 is now known as somel337dude86
Zai00 has quit [Quit: Zai00]
somel337dude86 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
rhg135 has joined #ruby
ptrrr has quit [Quit: ptrrr]
EchoLocution has joined #ruby
plashchynski has quit [Quit: plashchynski]
EchoLocution has left #ruby [#ruby]
_djbkd has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]