<wald0_>
mmh, seems like this is what im searching for
justsee has joined #ruby
michael_mbp is now known as zz_michael_mbp
mlpinit has joined #ruby
eeriegeek has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
lstefani has joined #ruby
Beoran_ has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
frustrum has quit [Quit: WeeChat 0.4.2]
frustrum has joined #ruby
TheMoonMaster has quit [Excess Flood]
assurbanipal has quit [Quit: Leaving]
TheMoonMaster has joined #ruby
tylersmith has quit [Remote host closed the connection]
<wald0_>
so much people and nobody talks :þ
<wald0_>
better to go to sleep for me
tylersmith has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
capicue has quit [Quit: Leaving...]
haukur has joined #ruby
<haukur>
I wanted to try out Pry, so I added it to my Gemfile and ran bundle install, but when I run Pry I get an error saying "undefined method source_index for Gem:Module. Any idea what this could be?
lnormous has quit [Ping timeout: 260 seconds]
jkhwan has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 245 seconds]
jkhwan has joined #ruby
wald0_ has quit [Ping timeout: 245 seconds]
gyre007 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allaire has quit []
sailias has joined #ruby
horofox has quit [Read error: Connection reset by peer]
Shidash1 has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
jkhwan has quit [Ping timeout: 272 seconds]
horofox has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
haukur has quit [Quit: Lost terminal]
Beoran_ has joined #ruby
bigoldrock has quit [Ping timeout: 240 seconds]
cooldman224 has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
SteveBenner9 has joined #ruby
gyre007 has quit [Remote host closed the connection]
jalcine has quit [Excess Flood]
gyre007 has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
timtch has joined #ruby
soheil_ has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 245 seconds]
tharindu has quit [Ping timeout: 245 seconds]
endash has quit [Quit: endash]
sadleb has quit [Ping timeout: 260 seconds]
lnemo has quit [Ping timeout: 240 seconds]
lemonsparrow has quit [Ping timeout: 250 seconds]
digital-ghost has quit [Remote host closed the connection]
lnemo has joined #ruby
rupee has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
dbRenaud is now known as dbrenaud
sparq_ has joined #ruby
mixel has quit [Quit: mixel]
Aryasam has joined #ruby
sparq_ has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
<rupee>
Newb here. In the Pickaxe book, discussing attribute methods, it says, "...attribute methods...create a virtual instance variable...[it] seems to be an attribute like any other. Internally, though, it has no corresponding instance variable." Is this significant? That value is being stored SOMEWHERE, making it effectively an attribute, right? Or am I missing something significant?
<bnagy>
you can create a method def foo; @foo; end which will return whatever is in @foo
<bnagy>
you could also create def foo; 3; end which will always return 3
Aryasam has joined #ruby
dbrenaud is now known as dbRenaud
<bnagy>
all things like attr_reader :foo do is provide an abbreviated syntax for doing the former
vpretzel has quit [Quit: Adios!]
zachrab has joined #ruby
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
zachrab has quit [Client Quit]
lewis has joined #ruby
<rupee>
I meant, "...effective an instance variable." It seems like it's a variable to me, it's a value that can be set and returned.
<bnagy>
there's no such thing as 'virtual instance variables', it's a completely backwards way of looking at it
<rupee>
Is "attribute" a well-defined term? It seems like he's using it to just define interaction with an object. But it's throwing me off when he say "attr_accessor :foo" has no instance variable.
<rupee>
Sounds like a distinction without a difference, maybe.
<bnagy>
either something is an ivar or it's not
Aryasam has quit [Ping timeout: 240 seconds]
<bnagy>
attr_accessor absolutely does have an instance variable
<rupee>
That sounds natural to me, but the text appears to state that it does not.
bugsinlights has quit [Ping timeout: 245 seconds]
bugsinlights has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<rupee>
"Internally...it has no corresponding instance variable." It may not matter...I was just curious if there was some significance I was missing.
<nism>
s2013. tried it . its just a replacement for auto link as in /rails_autolink by tenderlove. but they did not work in conjunction with best in place. because of extra attributed from the best in place tag
fertitta has quit [Remote host closed the connection]
earthquake has joined #ruby
<existensil>
allocation of a single new array, like Nilium's, but several chars shorter
<existensil>
:-)
capicue has quit [Quit: Leaving...]
<Nilium>
I hate your resourcefulness.
<existensil>
just practicing my short game
<existensil>
my favorite kind of golf. the real kind is boring and i have to wait forever before getting to drive the cart again.
<Nilium>
Also, as far as I know, arrays in Ruby are contiguous blocks of memory because it wouldn't really make all that much sense to use a linked list.
<bnagy>
I think someone should go and read ary_reject_bang() before we decide delete_if! is even an 'optimisation'
<bnagy>
hint: won't be me
yfeldblum has quit [Ping timeout: 248 seconds]
reick has joined #ruby
<existensil>
i'm not saying its a good idea. i was just teeing up
<Nilium>
I leave it up to whoever asked originally.
<havenwood>
shaileshg_: you can safely send the salt and iv in plaintext along with the encrypted data, in fact you must, cause presumably you want to be able to decrypt it :P
Astral_ has joined #ruby
<shaileshg_>
havenwood: but as per the implementation spec given by vendor.. they expect only base64 encoded encrypted data using public key.. no mention of sending salt / iv in the template documentation..
<shaileshg_>
and i have tried decrypting it using only private key and it works
<havenwood>
shaileshg_: ahh, k, well if they don't include it in their spec...
<bnagy>
so why do you care if the ciphertexts are identical?
<havenwood>
shaileshg_: it is an additional layer of security, not required but in addition to the normal padding, nvm then if you're conforming to a spec
<shaileshg_>
bnagy: oh I see.. actually i m getting some other weird error response from their server and I was just seeing the cause of the error.. printing different parts of the xml object being formed..
capicue has quit [Quit: Leaving...]
<shaileshg_>
now.. when you print it.. values in the print are different from the values being sent because of the above problem..
klaut has joined #ruby
<shaileshg_>
so u see why i was comparing if the ciphertexts are identical
capicue has joined #ruby
<bnagy>
huh looks like openssl doesn't use ruby prng ( probably wise )
<bnagy>
so you can't even seed the rng to check
capicue has quit [Client Quit]
<shaileshg_>
hmm
<bnagy>
anyway, create a keypair and just check that successive encryptions decrypt correctly, job done
simoz has quit [Ping timeout: 246 seconds]
<havenwood>
^
<shaileshg_>
bnagy: havenwood: hmm.. i think I will have to resort to it only
<shaileshg_>
thanks guys :)
timtch has joined #ruby
<havenwood>
What is the best way to retire an unused gem? Just yank all the versions? Does that free the gem name?
carraroj has joined #ruby
<havenwood>
Nice, yup, last yank frees name.
<aiguu>
good night all-- thanks for help!
aiguu has left #ruby [#ruby]
<havenwood>
aiguu: g'night
coca_rails has joined #ruby
achru has joined #ruby
timonv has joined #ruby
<Nilium>
I think it's time to sleep for me as well. I can't take the pain in my arm anymore, so that's about all I can do.
<coca_rails>
Gnite.
<havenwood>
ouch, g'night
<Nilium>
Yeah, don't let your cuts get infected.
<Nilium>
It hurts.
Fuzai has quit [Remote host closed the connection]
<coca_rails>
Nilium: Were the cuts deep?
Fuzai has joined #ruby
carraroj has quit [Read error: Operation timed out]
<coca_rails>
havenwood: Hello again.
<havenwood>
hi hi
timonv has quit [Ping timeout: 245 seconds]
OdNairy has joined #ruby
<coca_rails>
Any interesting projects lately?
<coca_rails>
I'm working on something myself. Interested to chat, lol?
drumusician has joined #ruby
monkegjinni has joined #ruby
<Nilium>
not too deep -- they're from a cat, though, and naturally kitty scratches are a good way to get an infection. one went deeper than the others though, so I'm assuming that's what got me first.
psyprus has joined #ruby
<coca_rails>
ah
<Nilium>
so I get the pleasure of draining, cleaning, and applying antibiotic to it. fun times.
skaflem has joined #ruby
Lewix has quit [Remote host closed the connection]
<coca_rails>
Yikes. I hope you get relief soon.
<Nilium>
it'll probably be fine in a few days. if it gets worse, I'll see a doctor. standard injury stuff.
<coca_rails>
Good to konw.
<coca_rails>
know/
<coca_rails>
Is anyone in here in my shoes.. i can't get enough of watching Ruby videos
<coca_rails>
And i enjoy it more than coding.
wallerdev has quit [Quit: wallerdev]
unholycrab has joined #ruby
krz has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
<coca_rails>
Is that a bad sign for a newcomer?
<coca_rails>
Well, truthfully, I've enjoyed learning for a while now. It started with Java videos.
psyprus has quit [Ping timeout: 240 seconds]
<coca_rails>
Anyone, lol?
bubbajones has joined #ruby
<coca_rails>
Sorry, Ive had one too many shots.
<Nilium>
I've never seen the point of videos of people coding, but whatever, if you like it, it's not like it's a problem.
<coca_rails>
@__@
<havenwood>
as long as you're learning, there's not a right way
psyprus has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<havenwood>
<3 confreaks
<Nilium>
I could see them maybe being useful for seeing tool workflows
<Nilium>
I.e., how the hell emacs users code with their magic and stuff
ananthakumaran has joined #ruby
<coca_rails>
haha
<coca_rails>
exactly
tharindu_ has quit [Quit: Leaving...]
<Nilium>
The way I work, particularly in IntelliJ, would probably just offend anyone who saw my key bindings. So many two-stroke bindings.
<coca_rails>
Wow, looks like im going to be a Confreakazoid
<coca_rails>
Awesome site.
SteveBenner9 has quit [Quit: Leaving]
tharindu has joined #ruby
niklasb has joined #ruby
<coca_rails>
what do you mean by two stroke?
<coca_rails>
Sorry, still new.
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
smathieu has joined #ruby
Hanmac1 has joined #ruby
lsmola has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 272 seconds]
Roa has quit [Ping timeout: 240 seconds]
Roa has joined #ruby
krz has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
banzounet has quit [Ping timeout: 260 seconds]
tatsuya_o has joined #ruby
wildroma_ has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
Fire-Dragon-DoL1 has left #ruby [#ruby]
pyrac has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
banzounet has joined #ruby
Spami has joined #ruby
ctp_ has quit [Quit: Leaving...]
Linux_Extremist has joined #ruby
timtch has quit [Quit: Leaving.]
timonv has joined #ruby
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
klaut has quit []
adambeynon has joined #ruby
pyrac has quit [Quit: pyrac]
pyrac has joined #ruby
nism has quit [Quit: Page closed]
capicue has joined #ruby
Hanmac has joined #ruby
instinkt has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
claymore has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
popl_ has joined #ruby
popl_ has joined #ruby
popl_ has quit [Changing host]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
Spami has joined #ruby
zz_michael_mbp is now known as michael_mbp
atmosx has joined #ruby
popl has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
havenwood has quit []
dangerousdave has quit [Read error: Connection reset by peer]
Spami has quit [Client Quit]
dangerousdave has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
stormbyte has joined #ruby
krz has quit [Read error: Connection reset by peer]
chihhsin has quit [Quit: leaving]
stormbytes has quit [Read error: Connection reset by peer]
chihhsin has joined #ruby
stormbyte is now known as stormbytes
wald0_ has joined #ruby
lukec has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
popl_ is now known as popl
Sinco has joined #ruby
coca_rails has quit [Remote host closed the connection]
petey_ has joined #ruby
threesome has joined #ruby
coca_rails has joined #ruby
Amen has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
d45h has joined #ruby
petey_ has quit [Ping timeout: 272 seconds]
Amen is now known as z3r0_
z3r0_ is now known as am3n
zigomir has joined #ruby
jbpros has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
krz has joined #ruby
smathieu has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
DonRichie has joined #ruby
tvw has quit []
wildroma_ has quit [Remote host closed the connection]
falood has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
wildroma_ has joined #ruby
spider-mario has joined #ruby
kil0byte has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
wildroma_ has quit [Read error: Connection reset by peer]
wildrom__ has joined #ruby
coca_rails has quit [Remote host closed the connection]
mikesplain has joined #ruby
tatsuya_o has joined #ruby
coca_rails has joined #ruby
tjad is now known as tjadc
jbpros has quit [Quit: jbpros]
Jetchisel has joined #ruby
thepumpkin has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
coca_rails has quit [Client Quit]
dhilipsiva has quit [Remote host closed the connection]
coca_rails has joined #ruby
pyrac has joined #ruby
tatsuya_o has quit [Ping timeout: 272 seconds]
hiall has quit [Quit: hiall]
diegoviola has quit [Ping timeout: 272 seconds]
gasbakid has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coca_rails has quit [Client Quit]
timonv has joined #ruby
coca_rails has joined #ruby
wald0_ has quit [Ping timeout: 240 seconds]
Mitchellvanw has joined #ruby
wald0_ has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
ZoanthusR has joined #ruby
ZoanthusR has quit [Remote host closed the connection]
hiall has joined #ruby
madb055 has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
vlad_starkov has joined #ruby
fgo has quit [Remote host closed the connection]
Linux_Extremist has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
Linux_Extremist has joined #ruby
timonv has quit [Remote host closed the connection]
Squarepy has quit [Read error: Connection reset by peer]
<wald0_>
what means the () here? puts "You are a " + (age < 18 ? "child" : "adult")
<wald0_>
its like a forked subrutine ?
mercwithamouth has quit [Ping timeout: 240 seconds]
VTLob has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Xeago has joined #ruby
vlad_starkov has joined #ruby
pyrac has quit [Quit: pyrac]
timonv has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<Mon_Ouie>
No, it's just for precedence
thecopy has joined #ruby
Czupa has joined #ruby
<Mon_Ouie>
`a ? b : c` is a shortcut for `if a then b else c`
mercwithamouth has joined #ruby
<Mon_Ouie>
(plus the missing `end`)
<wald0_>
i mean, why to put that code between () instead of without them
Linux_Extremist has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
monkegjinni has joined #ruby
relix has joined #ruby
Mitchellvanw has quit [Quit: Dozing off...]
wildrom__ has quit []
wildroma_ has joined #ruby
smathieu has joined #ruby
OdNairy has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Zeeraw has joined #ruby
<Mon_Ouie>
Because it's a syntax error otherwise
monkegjinni has joined #ruby
<Mon_Ouie>
Oh, sorry it isn't
<Mon_Ouie>
But it gets parsed as ("…" + age < 18) ? "child" : "adult"
<Mon_Ouie>
Which then errors because "…" is a string and age an integer
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
psyl0n has joined #ruby
ZenGuy311 has quit [Ping timeout: 240 seconds]
OdNairy has quit [Client Quit]
smathieu has quit [Ping timeout: 272 seconds]
monkegjinni has quit [Ping timeout: 246 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
sanav has joined #ruby
dangerousdave has joined #ruby
lkba has joined #ruby
ZenGuy311 has joined #ruby
coca_rails has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
fridim_ has joined #ruby
Blue_Ice has quit [Ping timeout: 245 seconds]
coca_rails has joined #ruby
krz has quit [Read error: Connection reset by peer]
<sanav>
hello guys ! i'm little confused about object binding in ruby .I tried many links but i can't clear my doubt and now even forget actual definition and its benfite .Correct meif i'm wrong (Object binding : linking of object at run/compile time for better synchronization between them) .Please tell me how object binding take place in ruby ......
pskosinski has joined #ruby
achru has quit [Remote host closed the connection]
achru has joined #ruby
achru has quit [Remote host closed the connection]
<coca_rails>
sanav: what kind of binding are you referring to?
achru has joined #ruby
jeffdb has quit [Quit: jeffdb]
krz has joined #ruby
_maes_ has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
<sanav>
coca_rails: i just want to clear my basic defination of binding .And role of kernel and value intialization of object .
Sinco has quit [Remote host closed the connection]
<solars>
ah damn, I confused the irb output
<solars>
:)
<solars>
thanks a lot
ravster has joined #ruby
<Morrolan>
:)
pushpak has joined #ruby
misutowolf has quit [Ping timeout: 245 seconds]
capicue has joined #ruby
brtdv has joined #ruby
Czupa has quit [Remote host closed the connection]
ct529 has joined #ruby
roolo has quit [Remote host closed the connection]
sepp2k has joined #ruby
k610 has joined #ruby
jbpros has quit [Quit: jbpros]
vlad_starkov has joined #ruby
jibi has joined #ruby
jbpros has joined #ruby
danshultz has quit [Remote host closed the connection]
popl has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
DouweM has joined #ruby
mixel has joined #ruby
hiall has quit [Quit: hiall]
JeanMertz has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 245 seconds]
Ox6abe has joined #ruby
bassclef has joined #ruby
misutowolf has joined #ruby
bassclef is now known as Guest72302
<banisterfiend>
waxjar yo
<banisterfiend>
waxjar what's going on in leiden right now?
<banisterfiend>
seems some kind of parade
<waxjar>
oh i think they're reenacting some funeral today
<waxjar>
not sure wether that's today or not
monkegjinni has quit [Remote host closed the connection]
horofox has joined #ruby
<banisterfiend>
waxjar oh yes it is can u explain a bit abou tit?
monkegjinni has joined #ruby
ct529 has quit [Remote host closed the connection]
nari has joined #ruby
<waxjar>
idk much about it either. all i know is they used to do funerals that way. there's a guy in the front (a comedian from leiden) called "the wailer" that's supposed to make people cry.
mengu has joined #ruby
<waxjar>
well, was. now it's supposed to be funny i guess :P
<banisterfiend>
waxjar weird...whose funeral are they supposed to be reenacting btw?
<banisterfiend>
is it someone in particular?
<banisterfiend>
very interesting that everyone is wearing clothing from the middle ages
<banisterfiend>
long spooky black capes and top hats
thyagobr has joined #ruby
hiall has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
pyrac has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
zipper has quit [Quit: leaving]
gaklav has joined #ruby
<waxjar>
i think they're reburying someone, but i don't know who
coca_rai_ has joined #ruby
ulik has joined #ruby
aapzak has quit [Ping timeout: 272 seconds]
coca_rai_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
<gaklav>
So what's going down people?
aapzak has joined #ruby
<gaklav>
(bots?)
misutowolf has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
gaklav has quit [Quit: leaving]
sepp2k has joined #ruby
judd7_ has quit [Quit: judd7_]
coca_rails has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
capicue has quit [Ping timeout: 246 seconds]
wildroman2 has joined #ruby
jbpros has quit [Quit: jbpros]
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
lewis has joined #ruby
wildroman2 has quit [Ping timeout: 245 seconds]
d45h has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
krnflake has quit [Ping timeout: 264 seconds]
d45h has joined #ruby
lewis has quit [Ping timeout: 240 seconds]
hiall has quit [Quit: hiall]
smathieu has quit [Ping timeout: 240 seconds]
misutowolf has joined #ruby
krnflake has joined #ruby
Clooth has joined #ruby
jbpros has joined #ruby
reick has quit [Remote host closed the connection]
taternuts has joined #ruby
taternuts has quit [Client Quit]
krnflake has quit [Excess Flood]
lillard has joined #ruby
apeiros has joined #ruby
monkegjinni has joined #ruby
jbpros has quit [Quit: jbpros]
<atmosx>
what does it mean ||= _var_ ?
hamakn has quit [Read error: Connection reset by peer]
fridim_ has quit [Quit: Leaving]
zarubin has quit [Ping timeout: 240 seconds]
Clooth has quit [Quit: Leaving...]
<Morrolan>
x ||= value assigns value to x, if x is nil or false.
misutowolf has quit [Quit: Leaving]
mengu has quit [Remote host closed the connection]
<Morrolan>
No it's not. It's equal to x || value = x
banisterfiend has quit [Quit: Computer has gone to sleep.]
capicue has joined #ruby
<Morrolan>
Err, `x || x = value`, of course.
wildroman2 has joined #ruby
<sevenseacat>
oh right
shredding has joined #ruby
<yxhuvud>
morrolan: that is also not really equal since ||= will autocreate the variable if it doesn't exist. if false, x = nil; end; x || x = value is slightly closer
mengu__ has joined #ruby
vlad_starkov has joined #ruby
<Morrolan>
Heh, didn't know of that property of ||=
vlad_sta_ has joined #ruby
mengu__ has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
cody-- has joined #ruby
end_guy has joined #ruby
xjiujiu has joined #ruby
xjiujiu has quit [Max SendQ exceeded]
DanBoy has quit [Ping timeout: 240 seconds]
jbpros has joined #ruby
aef has quit [Ping timeout: 260 seconds]
smathieu has joined #ruby
Ox6abe has quit [Remote host closed the connection]
xjiujiu has joined #ruby
aef has joined #ruby
krnflake has quit [Ping timeout: 252 seconds]
parus has joined #ruby
xk_id has joined #ruby
Guest72302 is now known as bassclef
capicue has joined #ruby
timtch has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
workmad3 has joined #ruby
tiglog has joined #ruby
mikesplain has joined #ruby
thepumpkin has joined #ruby
fgo has joined #ruby
cody-- has quit [Quit: derp]
DRAGON7777 has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
lfox has joined #ruby
axl_ has joined #ruby
allaire has joined #ruby
DRAGON7777 has left #ruby [#ruby]
ananthakumaran has joined #ruby
mikesplain has quit [Ping timeout: 246 seconds]
thepumpkin has quit [Ping timeout: 245 seconds]
heftig has quit [Remote host closed the connection]
heftig has joined #ruby
cfi30 has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
mephux has quit [Ping timeout: 264 seconds]
Clooth has quit [Quit: Leaving...]
end_guy has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
mephux has joined #ruby
lectrick_ has quit [Remote host closed the connection]
denysonique has quit [Remote host closed the connection]
Guest85414___ has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
akhkharu has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
ziyadb has quit [Remote host closed the connection]
tommyvyo has quit [Remote host closed the connection]
heidar has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
zpinter has quit [Remote host closed the connection]
xerxas has quit [Remote host closed the connection]
bluehavana has quit [Remote host closed the connection]
mattyohe has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
pkondzior___ has quit [Remote host closed the connection]
randym_ has quit [Remote host closed the connection]
andrewstewart has quit [Remote host closed the connection]
chuk has quit [Remote host closed the connection]
rubyguy has quit [Remote host closed the connection]
rndstr has quit [Remote host closed the connection]
pipework_ has quit [Remote host closed the connection]
guilleiguaran_ has quit [Remote host closed the connection]
zero7 has quit [Remote host closed the connection]
sichardrtallman has joined #ruby
capicue has quit [Ping timeout: 264 seconds]
ananthakumaran1 has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
nari has quit [Ping timeout: 272 seconds]
Shidash has joined #ruby
shredding has quit [Quit: shredding]
end_guy has joined #ruby
IceDragon has joined #ruby
Banistergalaxy has joined #ruby
Ripp__ has quit []
am3n has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 246 seconds]
ananthakumaran1 has joined #ruby
Guest85414___ has joined #ruby
kapowaz has joined #ruby
OdNairy has joined #ruby
robscomputer has joined #ruby
vlad_starkov has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
robscomputer has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
pkondzior___ has joined #ruby
robscomputer has joined #ruby
cina has quit [Ping timeout: 260 seconds]
Guest80537 has joined #ruby
ananthakumaran1 has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
heidar has joined #ruby
xjiujiu has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
end_guy has joined #ruby
dnyy has joined #ruby
FukUmist has joined #ruby
bluehavana has joined #ruby
guilleiguaran_ has joined #ruby
wildroman2 has quit []
frustrum has joined #ruby
davidboy has joined #ruby
lectrick_ has joined #ruby
xerxas has joined #ruby
plague88 has joined #ruby
ziyadb has joined #ruby
chuk has joined #ruby
tommyvyo has joined #ruby
hiroyuki has joined #ruby
pipework_ has joined #ruby
im0b has joined #ruby
mattyohe has joined #ruby
randym_ has joined #ruby
<shevy>
dumdedum
derebos has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Ping timeout: 248 seconds]
ananthakumaran1 has joined #ruby
capicue has joined #ruby
zero7 has joined #ruby
nari has joined #ruby
FukUmist has quit [Quit: Leaving]
rndstr has joined #ruby
FukUmist has joined #ruby
k610 has quit [Quit: Leaving]
zarubin has joined #ruby
rubyguy has joined #ruby
raphaelivan has joined #ruby
akhkharu has joined #ruby
Xeago has joined #ruby
andrewstewart has joined #ruby
rickruby has joined #ruby
wallerdev has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leokaito has joined #ruby
sichardrtallman has quit [Quit: leaving]
zpinter has joined #ruby
petey_ has joined #ruby
rickruby has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 240 seconds]
derebos has joined #ruby
sayan has joined #ruby
Hoozt has joined #ruby
derebos has quit [Max SendQ exceeded]
<Hoozt>
hello friends
Bry8Star{T2 has joined #ruby
derebos has joined #ruby
<Hoozt>
I have a noob question :) Sitting here with a total brain black out..
MrZYX is now known as MrZYX|off
vlad_starkov has quit [Read error: Connection reset by peer]
<canton7>
lots of bored people kicking around on a day like today... ask and someone will probably chip in
smathieu has joined #ruby
<Hoozt>
I have a string and I need to escape all the double quotes in it. I know I have done this a million times. Trying with URI but I get a very strange result with too many back slahes.
<Hoozt>
Actually Im sitting in rubymotion, but this should be a ruby thing.
<canton7>
let's see what you've got, and what it produces
leokaito has quit [Remote host closed the connection]
raphaelivan has quit [Quit: Leaving.]
leokaito has joined #ruby
<canton7>
and your code?
<Hoozt>
I don't want it uri encoded, just backslashing the double quotes.
g0bl1n has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hoozt>
right now my code is just in the middle of typing. im chaning and trying different ways.. :/
<Hoozt>
URI::encode is not the result im looking for.
<waxjar>
what do you want, exactly?
Hanmac has quit [Ping timeout: 245 seconds]
<Hoozt>
I want that string with backslashed double quotes.
<Hoozt>
So that I can do a JSON.parse on it :)
pskosinski has joined #ruby
<shevy>
just apply .select on it?
<canton7>
doing that sort of escaping is dead easy, unless the string you're escaping can have escaped quotes in it already, in which case it becomes trickier. then if it might have escaped backslashes in it, it gets more complex, and beyond that you start looking at using a proper parser instead of regex
leokaito has quit [Read error: No route to host]
relix has joined #ruby
leokaito has joined #ruby
<waxjar>
why wouldn't JSON.parse handle a string like that?
<shevy>
what does p object call on the object? #inspect ?
<waxjar>
yea shevy
<shevy>
ok
<shevy>
Hoozt a parser for?
<Hoozt>
hmm
<Hoozt>
Then I guess it might be because Im using BubbleWrap in rubymotion, and not using the 'json' gem for ruby, which I don't think is possible actually.
<Hoozt>
Thx people!
<jujuba>
y'all are so smart
timtch has quit [Quit: Leaving.]
mephux has quit [Quit: w0ots...]
ananthakumaran1 has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
mephux has joined #ruby
wallerdev has quit [Quit: wallerdev]
kitak has joined #ruby
<shevy>
jujuba year long practice!
ananthakumaran has joined #ruby
leokaito has quit [Remote host closed the connection]
Lewix has joined #ruby
lewis has joined #ruby
jeffdb has joined #ruby
<jujuba>
wow you learnt all this in a year lol
<shevy>
jujuba years long practice!
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<jujuba>
yeah just playin
leokaito has joined #ruby
<jujuba>
i love it
<shevy>
I guess it might be technically possible to learn it all in one year
<jujuba>
:|
<shevy>
but that would require many hours of intense learning daily
monkegjinni has quit [Remote host closed the connection]
am3n has joined #ruby
<jujuba>
i've had a good 3 mnths and i no longer want to be sick on my keyboard!
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
leonidlm has joined #ruby
jlast has joined #ruby
tjadc has quit [Ping timeout: 272 seconds]
leokaito has quit [Ping timeout: 240 seconds]
cody-- has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
<jujuba>
ox is so much faster than nokogiri
freerobby has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
lfox has quit [Quit: ZZZzzz…]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
high_fiver has joined #ruby
Davey has joined #ruby
volty has joined #ruby
niklasb has joined #ruby
Mohan has joined #ruby
pwh has joined #ruby
cody-- has quit [Client Quit]
vlad_starkov has joined #ruby
horofox has quit [Quit: horofox]
tomzx_mac has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
ananthakumaran has quit [Ping timeout: 245 seconds]
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
Kabaka has joined #ruby
pdimitrov has quit [Ping timeout: 260 seconds]
pr0ggie has quit [Ping timeout: 272 seconds]
pdimitrov has joined #ruby
pr0ggie has joined #ruby
mrpot4to_ has quit [Quit: No Ping reply in 180 seconds.]
LarsSmit has quit [Quit: Leaving.]
karls0n has joined #ruby
mrpot4to_ has joined #ruby
MrPot4to has quit [Read error: Connection reset by peer]
pr0ggie has quit [Max SendQ exceeded]
aspiers has quit [Ping timeout: 260 seconds]
MrPot4to has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
Heero has quit [Ping timeout: 272 seconds]
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
pr0ggie has joined #ruby
ananthakumaran has joined #ruby
lewis has joined #ruby
BizarreCake has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
malcolmva has quit [Ping timeout: 248 seconds]
FukUmist has quit [Ping timeout: 248 seconds]
znode has joined #ruby
lewis has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
bocaneri has joined #ruby
monkegjinni has joined #ruby
Freeaqingme has joined #ruby
<Freeaqingme>
Hi folks. This line gives me an error 'method xmlschema not defined in date': remove_method :xmlschema if base.instance_methods.include?(:xmlschema)
<Freeaqingme>
any ideas?
Hoozt has quit [Remote host closed the connection]
<Freeaqingme>
I figured that if clause would prevent it from being removed if not defined? (didnt put it there myself, it's an existing lib)
banisterfiend has joined #ruby
bocaneri has left #ruby [#ruby]
petey_ has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
<shevy>
what is date there?
petey_ has joined #ruby
<shevy>
and what is base
monkegjinni has quit [Ping timeout: 245 seconds]
atmosx has quit [Quit: Lost in trance]
aryaching has quit []
<Freeaqingme>
shevy, dunno. will check it out ;)
aryaching has joined #ruby
CaptainJet has joined #ruby
petey_ has quit [Ping timeout: 272 seconds]
Banistergalaxy has quit [Quit: Bye]
Banistergalaxy has joined #ruby
Speed has joined #ruby
malcolmva has joined #ruby
axl_ has quit [Quit: axl_]
dangerousdave has quit [Read error: Connection reset by peer]
rellin has joined #ruby
dangerousdave has joined #ruby
capicue has quit [Read error: Connection reset by peer]
MrPot4to has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 246 seconds]
<havenwood>
is_greater_than
am3n has joined #ruby
<havenwood>
wald0_: Looks like you're going to need to learn Haskell. :P
monkegjinni has quit [Remote host closed the connection]
<wald0_>
well, with _ still has sense
monkegjinni has joined #ruby
<wald0_>
nah, trying to learn ruby now :þ
Guest80537 has quit []
<havenwood>
wald0_: Not possible without doing really bad things.
<volty>
you can try chaining objects: eg yuck (Yuck class) please (method that returns another class instance), no (yet another method - that could return another class instance)
enebo has joined #ruby
<wald0_>
sounds funny in any case :)
keen_____ has quit [Read error: Connection reset by peer]
<havenwood>
wald0_: Underscore just are the spaces. You could and should not use a whitespace-like character to make it appear empty. :P
keen_ has joined #ruby
<volty>
but you should better go with a plain new parser if you want to «if 5 is greater than 4»
rellin has quit [Read error: Connection reset by peer]
robonerd has quit [Ping timeout: 245 seconds]
rellin has joined #ruby
Davey has joined #ruby
phrozen77 has quit [Max SendQ exceeded]
CreativeEmbassy has joined #ruby
<wald0_>
is there any example (complete) of a class, module, method... which includes all the possible elements and on their order? like the rescue, @vars, parameters, etc (of course with comments explaining them)
<heftig>
>> def method_missing(*x) return super if x[0][0,3] == 'to_'; x.join ' ' end; oh my goddess! what have i done?
<havenwood>
Croesus: This channel doesn't have a registration requirement.
<volty>
no official seals around
<Croesus>
Ok?
aryaching has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
<Morrolan>
Croesus: #ruby-lang is more official. We're more sane. ;D
<havenwood>
Croesus: So talk here if you want to chat with folks who might not have registered. And #ruby-lang if you maybe want a better signal to noise ratio. Ruby's website links to the other.
<Croesus>
pishposh
Mitchellvanw has joined #ruby
<havenwood>
Croesus: TIMTOWTDI
horofox has joined #ruby
horofox has quit [Client Quit]
<Morrolan>
havenwood: In god's name, what abomination is *that*?
preller has joined #ruby
<havenwood>
Morrolan: There is more than one way to do it. :P
<Morrolan>
Oh. :P
<havenwood>
Morrolan: A Perlism Ruby borrowed.
timonv has quit [Remote host closed the connection]
volty has quit [Quit: Konversation terminated!]
<heftig>
i hope ruby 3 cleans up with most of the perlisms
<Morrolan>
Yea, I've heard the sentence before, but haven't stumbled across the acronym, up to now. :P
<havenwood>
Croesus: It is okay to cross post, just say in both channels when you do it.
timonv has joined #ruby
petey__ has joined #ruby
monkegjinni has joined #ruby
pyrac has quit [Quit: pyrac]
Guest4825 has joined #ruby
smoothbutta has quit [Read error: Connection timed out]
Guest4825 has quit [Excess Flood]
adjo_ has joined #ruby
tbuehlmann has joined #ruby
Guest24676 has joined #ruby
adjo_ has quit [Client Quit]
petey_ has quit [Ping timeout: 248 seconds]
pyrac has joined #ruby
adjo_ has joined #ruby
derebos has quit [Remote host closed the connection]
avqXb0uv has joined #ruby
avqXb0uv is now known as avqxb0uv
carraroj has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
yano has joined #ruby
brtdv has joined #ruby
mrfoto has joined #ruby
mrfoto has quit [Client Quit]
pskosinski has quit [Quit: Til rivido Idisti!]
mrfoto has joined #ruby
baroquebobcat has joined #ruby
earthquake has joined #ruby
<havenwood>
#ruby-lang - #ruby == 196
<havenwood>
#ruby - #ruby-lang => 682
<wald0_>
thats not good for this channel lol
<havenwood>
wald0_: how so?
threesome has joined #ruby
<wald0_>
oh, i readed that you meant the total
<havenwood>
i wrote it very poorly
niklasb has quit [Ping timeout: 246 seconds]
Tearan has joined #ruby
mrfoto has quit [Client Quit]
Hanmac1 is now known as Hanmac
<Morrolan>
I'm still trying to figure out what you meant to say. ;D
<wald0_>
mmh, there's something that i dont quite understand "how it is made", in ruby theres things like .lenght, running it from a specific object can show something different than others (having different code), how this is made? where it is set/coded?
<havenwood>
Both have very similar avg lengths of nics: {ruby_avg: => 7.40, ruby: => 7.35}
<Hanmac>
havenwood: #ruby-lang is protected, not every one can enter, only the seekers that know the truth ;P
<havenwood>
Hanmac: Indeed... hehe
<havenwood>
Morrolan: What i meant: (ruby_lang - ruby).size #=> 196; (ruby - ruby_lang).size #=> 682
<wald0_>
or acting differently depending of its type
<Morrolan>
wald0_: Methods like .length are defined inside the respective classes.
mrfoto_ has joined #ruby
volty has joined #ruby
<wald0_>
Morrolan: so a different "lenght" method inside each type of class ?
<plotter>
wald0; good question i think you can use "s
Davey has quit [Quit: Computer has gone to sleep.]
<havenwood>
>> class NilClass; def length; 0 end end; nil.length
<Morrolan>
wald0_: The String class will implement the .length method to return the number of characters, the array class to return the number of items, yea.
mrfoto_ has quit [Client Quit]
<plotter>
>> class NewClass; def length; 1 end end; nil.length
<havenwood>
Morrolan: Oh, they're both Arrays of Strings.
Mitchellvanw has quit [Quit: Dozing off...]
* Morrolan
stabs havenwood
<havenwood>
:P
mrfoto_ has quit [Client Quit]
<Morrolan>
What strings? Nicknames? Messages? :P
<havenwood>
nics
<Morrolan>
Was it that hard to tell me from the beginning? :P
mrfoto_ has joined #ruby
mrfoto_ has quit [Client Quit]
tiglog has quit [Quit: Leaving]
<havenwood>
Morrolan: output from `/names #ruby-lang` and `/names #ruby`
mrfoto has joined #ruby
mrfoto has quit [Client Quit]
mrfoto has joined #ruby
kraljev2 has joined #ruby
<kraljev2>
How can I run bundler to install gems into application directory?
<havenwood>
kraljev2: bundle --deployment
<havenwood>
if i understand what you're asking, you wanna vendor locally?
Roa has quit [Ping timeout: 272 seconds]
<kraljev2>
yep, have for each application gems bundled together
petey__ has quit [Remote host closed the connection]
<kraljev2>
in their own directory
petey_ has joined #ruby
mrsolo has joined #ruby
<havenwood>
kraljev2: installs to app's vendor/bundle dir, or override location with --path
Davey has joined #ruby
timonv has joined #ruby
<volty>
what is the syntax for passing a method of an object as a & proc ? // I have @alarms.method(:to_x) and &@alarms.method(:to_x) does not work
Mitchellvanw has joined #ruby
<havenwood>
kraljev2: More info: bundle help install
<havenwood>
volty: like?: @alarms.method(&:to_x)
Roa has joined #ruby
maletor has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has joined #ruby
<volty>
havenwood: that doesn't work
<havenwood>
volty: `:to_x` is a method and `#method` takes a block?
Guest21184 has joined #ruby
<DouweM>
volty: I think that syntax should work. could you gist the actual code?
greenrose1 has joined #ruby
yfeldblum has joined #ruby
<volty>
DouweM: which syntax?
pipework is now known as pipecloud
<havenwood>
volty: oh, you mean the real #method method not #foo, huh? I need coffee...
<DouweM>
volty: `&@alarms.method(:to_x)`
<kraljev2>
havenwood: Unfortunately, I haven't found it in help
timonv has quit [Ping timeout: 240 seconds]
<kraljev2>
I just want to install all the gems app needs to ./my_app/.gems/
smathieu has joined #ruby
greenrose has quit [Ping timeout: 246 seconds]
<DouweM>
volty: but perhaps you need () around @alarms.method(:to_x)
pu22l3r has quit [Remote host closed the connection]
<volty>
DouweM: does not work, gives /home/volty/prog/ruby/qt_alarm.rb:31:in `to_x': wrong number of arguments (1 for 0) (ArgumentError)
<havenwood>
kraljev2: No luck with?: bundle --deployment --path .gems
<volty>
and all the same if you with () around
<DouweM>
volty: post the whole script then
pu22l3r has joined #ruby
<havenwood>
Indeed, moar codes! \o/
axl_ has quit [Quit: axl_]
<kraljev2>
The --deployment flag requires a Gemfile.lock. Please make sure you have checked your Gemfile.lock into
<volty>
my code works well when that method is passed as a regular proc // (it is a callback proc) // but i want it passed as a &b and that could be wrong (because the other one is binded to its object)
<kraljev2>
version control before deploying.
<DouweM>
volty: codes pls
<havenwood>
kraljev2: bundle first, to create the .lock file (which you want to check into git), then you'll have it and deployment will use it
leonidlm has quit [Ping timeout: 245 seconds]
smoothbutta has joined #ruby
carraroj has quit [Ping timeout: 245 seconds]
<volty>
DouweM: thanks but it's too complicated, the code is too much interdependent, i'll go without & for now and try something with lambdas later // it must have to do with the bindings
vlad_sta_ has joined #ruby
thyagobr has quit [Ping timeout: 245 seconds]
am3n has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Ping timeout: 260 seconds]
<havenwood>
kraljev2: Just an aside, a new non-bundler option is to: gem install -g Gemfile -i .gem
pyrac has quit [Quit: pyrac]
<volty>
i wanted to use that &b for an inline block as well is with an object's method converted to a proc
freerobby has quit [Quit: Leaving.]
pu22l3r has quit [Ping timeout: 268 seconds]
mikesplain has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
<havenwood>
kraljev2: then use something like chgems with ^, but bundler is the more established way no doubt
monkegjinni has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
baroquebobcat has quit [Quit: baroquebobcat]
monkegjinni has joined #ruby
xk_id has quit [Quit:
am3n has quit [Ping timeout: 256 seconds]
noop has joined #ruby
krnflake has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
cads has quit [Ping timeout: 240 seconds]
<volty>
DouweM: you were useful anyway, i found the problem isolating a sample classes
<DouweM>
:)
havv has joined #ruby
<volty>
it has to do with qt lib code // going to see what could be wrong
banisterfiend has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
mikesplain has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
enebo has joined #ruby
Trudko has joined #ruby
smoothbutta has quit [Read error: Connection timed out]
Trudko has quit [Read error: Connection reset by peer]
OdNairy has joined #ruby
karls0n has quit [Ping timeout: 240 seconds]
* shevy
hugs volty
<volty>
I got it
Pixi__ has joined #ruby
Xiti has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
banisterfiend has joined #ruby
werdnativ has joined #ruby
IcyDragon has joined #ruby
<volty>
sometimes i'm surprised how much intelligent I am and sometimes I am surprised how much stupid I am // do you have the same alternating feeling guys ? :)
<DouweM>
haha
<kraljev2>
rarely
IceDragon has quit [Ping timeout: 272 seconds]
Czupa has joined #ruby
xk_id has joined #ruby
Pixi__ has quit [Quit: Leaving]
ananthakumaran has quit [Quit: Leaving.]
<poutine>
volty, I'm sure old people feel proud of themselves when they type google into the search bar in their web browser, and then type facebook into google, and click it to go to facebook every time. All achievements are relative, I see no evidence of extraordinary intelligence from you.
classix has joined #ruby
<volty>
so: the qt initializers allow for a block to which they pass itself // and for some reason the qt code, given granted that it is an initializer block, calls the methods inside the proc passing the object is param
<volty>
poutine: i am an expert for frustrated people
brennanMKE has quit [Remote host closed the connection]
kraljev2 has left #ruby [#ruby]
brennanMKE has joined #ruby
<Nilium>
I am an expert at angering people who don't like obvious answers. Also getting myself injured.
brennanMKE has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
allaire has quit []
enebo has quit [Quit: enebo]
Technodrome has joined #ruby
mlpinit has quit [Remote host closed the connection]
<volty>
pimply anonymous, under stairs vandalism
<Technodrome>
what is the difference between #ruby and #ruby-lang?
mlpinit has joined #ruby
<Nilium>
The latter is the official channel.
freerobby has joined #ruby
splashs has joined #ruby
<havenwood>
Technodrome: This channel doesn't require nic registration.
<Nilium>
this one is the Wild West of ruby channels.
<Technodrome>
ah havenwood
Xiti has joined #ruby
wallerdev has joined #ruby
<volty>
where from all this resentment ? dear pimply? :)
<Nilium>
I have found a coffee machine that I want but will probably never buy.
Heero has joined #ruby
<volty>
coin
<havenwood>
Technodrome: Pretty typical for there to be more than twice as many people and more noise here.
<volty>
and some frusties :)
<Technodrome>
ah, never even knew the channel existed
<volty>
coin coders with coin souls
banghouse2 is now known as banghouse
freerobby has quit [Ping timeout: 240 seconds]
<volty>
(it always goes together )
banghouse is now known as Guest85090
Guest85090 is now known as banghouse
mrfoto has quit []
earthquake has quit [Quit: earthquake]
jbpros has quit [Quit: jbpros]
BizarreCake has quit [Ping timeout: 245 seconds]
<Nilium>
Does anyone know what volty is rambling about?
<ezkl>
volty: You're working with some impressive slang
<volty>
ask that question about you nilly
<ezkl>
I like it
<Nilium>
You're a confusing person.
<volty>
what was talking poutine about ? Tell me, gangy boy !
werdnativ has quit [Quit: werdnativ]
lnormous has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
<poutine>
I think volty is spergin' like there ain't no tomorrow
<volty>
If you are confused you should try to inspect yourself before talking about other's rambling
<Nilium>
Or a bot..
banisterfiend has quit [Quit: Computer has gone to sleep.]
<volty>
Show how you are able to attack as a bunch of raging dogs
<volty>
bau bau
Mitchellvanw has joined #ruby
Seich has joined #ruby
bean has joined #ruby
timonv has quit [Remote host closed the connection]
SilverKey has joined #ruby
timonv has joined #ruby
derebos_ has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
<ezkl>
volty: Stai utilizzando una sorta di traduttore italiano a inglese, non è vero?
<Mon_Ouie>
Technodrome: The other difference is that twice as many people asked the same question as you today on #ruby than on #ruby-lang :p
<volty>
no caro - è il mio modo
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
timonv_ has joined #ruby
tjad has joined #ruby
derebos_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<Nilium>
Ok, so he's not a not but is probably misunderstanding stuff people say and maybe getting defensive over it.
<Nilium>
*not a bot.
UNIXgod has joined #ruby
Vivekananda has joined #ruby
<havenwood>
minswan
<shevy>
pizza! spaghetti!
mrsolo has quit [Quit: This computer has gone to sleep]
<ezkl>
volty: Negli Stati Uniti, che chiamiamo la vostra afflizione linguistica "swagger"
<havenwood>
I'm curious how Topaz Ruby is coming along. No versioned release yet.
<Nilium>
I should probably clean the cut on my arm.
<shevy>
havenwood it may be idling to power
<shevy>
Nilium no!
<volty>
Nilium: imbarassed, not defensive // I always get imbarassed when in front of the pettiness of some humans
<shevy>
Nilium deepen it!
<Nilium>
shevy: Nah, I'll pass, that'd probably put it into the muscle.
<shevy>
yes
<shevy>
and then you put some funig into it!
<volty>
piccolino, devi ancora mangiare per misurarti con me -- perfino in inglese
<shevy>
and become FungiNilium
<shevy>
*guni
<shevy>
grrr
<shevy>
*fungi
<Nilium>
I ain't trying to get high in novel ways.
<shevy>
hehe
ravster has quit [Quit: Leaving.]
<volty>
«Negli Stati Uniti, che chiamiamo » is a product of an automatic translation
earthquake has joined #ruby
banisterfiend has joined #ruby
TheMoonMaster has quit [Excess Flood]
<shevy>
stati spaghetti!
TheMoonMaster has joined #ruby
<ezkl>
Totally
<Morrolan>
Gorgonzola. :)
achru has quit [Remote host closed the connection]
<volty>
ahah
codeFiend has quit [Quit: codeFiend]
<shevy>
mascarpone!
<Morrolan>
Gosh darn, now there better be some in the fridge. :<
<volty>
not like fat us food , neither smell, neither taste
achru has joined #ruby
<Nilium>
fever gone, but itchy. itchy. tasty.
<Morrolan>
Fat us food? I'm not food. D:
<shevy>
Nilium place something salty on it
<shevy>
Morrolan how about fat?
<Morrolan>
Neither. :)
am3n has joined #ruby
<shevy>
more schoki
<volty>
pecorino
<Nilium>
I should go through the log to see what set off volty.
<shevy>
mozzarella
<shevy>
yeah... I'll do that as well now...
* shevy
scrolls up
<volty>
going to prepare aglio, olio, peperoncino and PECORINO
<shevy>
<volty> what is the syntax for passing a method of an object as a & proc ? <-- that was it
<shevy>
that made him crazy
smathieu has joined #ruby
<volty>
<<< <poutine> volty, I'm sure old people feel proud of themselves when they type google into the search bar in their web browser, and then type facebook into google, and click it to go to facebook every time. All achievements are relative, I see no evidence of extraordinary intelligence from you. >>>
<Morrolan>
Well, I can understand that the magic of '&' can make one crazy.
<shevy>
I always said... remove &, it is harmful to people
<Morrolan>
Indeed.
<shevy>
array.map &:chomp
<volty>
no, i have to pass to a regular proc
<shevy>
hmm... let's combine & with ->()
<volty>
too much & magic may hurt in the future
<shevy>
agreed
<shevy>
wait
Andrevan has joined #ruby
<shevy>
too much magic in general can hurt in the future
OdNairy has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
<volty>
shevy: i'm talking about my code that uses qt and relays on slot, signals, callbacks etc etc
<Morrolan>
Callbacks! That must've been it.
achru has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
<shevy>
volty I went with ruby-gnome
<shevy>
I never understood the slot-signal concept in qt
mercwithamouth has joined #ruby
<volty>
ruby magic mixed with slots & signals can get quite untraceable and untrustable
<shevy>
and I think ruby-qt wants you to use camelcased method calls or?
ner0x has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
<volty>
all the same, you can choose camel or the other
<shevy>
ok
aryaching has quit []
smathieu has quit [Ping timeout: 240 seconds]
<Nilium>
Would be odd to see camelcase in Ruby.
<UNIXgod>
Nilium: camelCase? or CamelCase or camel_case || #t
<volty>
i say that humans are like rats: get used to everything! even to camelcase :)
Seich has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
thepumpkin has joined #ruby
<UNIXgod>
I like _cc! use that one!
<Nilium>
volty, are you the crazy guy who quotes scripture or whatever on every programming/tech site's comments section ever?
krz has joined #ruby
<volty>
do not what you are talking about
<poutine>
This is what happens when #wrongplanet leaks their aspies into other channels
<Nilium>
Ok, well, at least you're not that guy.
<volty>
find the guy and argue with him
<Morrolan>
Arguing on the internet? Hah.
<volty>
do not behave like an old woman
<volty>
(acid)
<Nilium>
So, volty, can I suggest relaxing or something? You seem to be responding in a semi-hostile manner to everyone even when nobody is talking to you
<volty>
no honey
<volty>
you have some problem, not me
<Nilium>
It's not really a healthy habit.
<Nilium>
Well, I tried.
<volty>
i was asking advice
<UNIXgod>
Nilium: but volty groks rats!
chuk has quit []
<Morrolan>
volty: And then your proceeded to spit out random noise. ;)
<volty>
that about 'rats' is what I say regularly / / nothing to do with offense
<volty>
Morrolan: no
<volty>
<<< <poutine> volty, I'm sure old people feel proud of themselves when they type google into the search bar in their web browser, and then type facebook into google, and click it to go to facebook every time. All achievements are relative, I see no evidence of extraordinary intelligence from you. >>>
<Nilium>
Hey, I'd swallow a rat alive too if I thought it tasted good.
achru has joined #ruby
Andrevan is now known as afader
<volty>
I like the frusties like him to argue
sichardrtallman has joined #ruby
endash has joined #ruby
<Morrolan>
Which brings us back to 'noise', doesn't it.
havenwood has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 248 seconds]
<volty>
To tell what makes them spit out acid
<UNIXgod>
Nilium: it's a bot or bored human which groks rats
jonathanwallace has quit [Ping timeout: 246 seconds]
<volty>
Morrolan: why don't you ask poutine???
<Nilium>
One of the signs of internet craziness is having a ton of words that you understand but nobody else does.
havenwood has joined #ruby
thepumpkin has quit [Ping timeout: 260 seconds]
<shevy>
Nilium you rat murderer you!
jonathanwallace has joined #ruby
<Nilium>
I thought it was a bot, but it's apparently just a confused Italian man
<shevy>
no wonder my cat is starving
RagingDave has joined #ruby
<Morrolan>
My cat always claims to be starving.
axl_ has joined #ruby
<Morrolan>
So far she hasn't starved.
<Nilium>
I plead the fifth.
<volty>
think about yourself // do not hide behind «internet craziness» // tell poutine that is is not ok to do what he did and we are ok
<shevy>
Nilium the italian have their own unique way of writing english, just as the austrians have as well and the japanese too ;)
<volty>
fair?
<Nilium>
shevy: Yes, but I know a fair amount of Italians, and they're nothing like this
<shevy>
I think it has a lot to do with the prevalent grammar in use, it seems hard to quickly switch between different languages
mercwithamouth has quit [Ping timeout: 245 seconds]
<volty>
eh?
<Nilium>
This guy is the sort that sounds like he joins a channel, claims to be extremely smart and have the solution to everything, and then goes off the deep end when he doesn't get a positive response
<Nilium>
In other words, he's like that crazy guy who quotes scripture.
<shevy>
Nilium aha? well I know quite some too and volty fits one hundred percent with them! :D
RagingDave has quit [Client Quit]
<shevy>
though only northern italy, I have no idea about the south
<volty>
think about yourself // do not hide behind «internet craziness» // tell poutine that is is not ok to do what he did and we are ok
<Nilium>
You know some strange Italians
<volty>
you are just gangy!
<Nilium>
Is it normal for your Italian friends to write in what appears to be stanzas?
<shevy>
Nilium they are! there are restaurants where there is an italian man standing in a perfect suit and his sole job is to be friendly and guide people to empty places where they can sit down :D
<volty>
goes on ... insulting italians
<volty>
hoh!
<Nilium>
Could you explain what gangy means without using that word?
<volty>
too much frustrated for me, going to eat my pecorino :)
<volty>
gang
<shevy>
dunno, seems to be just like they talk too ... ciao ... buongiorno ... italian rules!
<volty>
banda del buco
havenwood has quit [Ping timeout: 240 seconds]
<Nilium>
shevy: Ok, those are robots, they're not real people
<volty>
you are supposed to be real, too real :)
mercwithamouth has joined #ruby
<volty>
going to eat my pecorino, pecorone!
volty has quit [Quit: Konversation terminated!]
<Nilium>
So, #ruby has a resident crazy person..
<Nilium>
Achievement unlocked?
maletor has quit [Quit: Computer has gone to sleep.]
<DouweM>
lol
jonathanwallace has quit [Ping timeout: 248 seconds]
* UNIXgod
bots can be autonomous agents with recursive linguitics ... this one is broken
snath has quit [Ping timeout: 272 seconds]
<Nilium>
I don't think it's actually a bot, just crazy.
<UNIXgod>
ELIZA wasn't crazy.
<Nilium>
You occasionally get folks like that on the 'net, e.g., the sort that believe crystals are a spiritual thing (or living creatures), the sort who think they're messiahs or have uncovered the newest programming paradigm and if only you'd listen to their insanity, etc.
<Nilium>
It's always weird.
plague88 has quit [Quit: Page closed]
yfeldblum has quit [Read error: Connection reset by peer]
MrPot4to has joined #ruby
mrpot4to_ has joined #ruby
<UNIXgod>
Nilium: oh! web developers! I know what your talking about. met one last week!
<shevy>
I think he described me when I was young
<Nilium>
I've been trying to not make fun of web developers lately.
<shevy>
everyone downvotes me on reddit... they do not want to see the truth :(
<shevy>
they can't handle the truth
<Nilium>
I forgot to include the bit about coming up with weird ways of saying shit on the internet.
<shevy>
web developers make the world a better place
<UNIXgod>
shevy: I believe in the truth!
<shevy>
now you can order everything online and never have to leave home
<Nilium>
Like saying // shit with double slashes // between things, kind of like stanzas.
<Nilium>
That must be a not-living-in-the-boonies feature.
<shevy>
he just likes to pack it into one thing
<shevy>
others like to space it out on multiple lines
<shevy>
without saying much
<shevy>
you see?
<UNIXgod>
shevy: webDevelopers should be in camelCase
<shevy>
god I hate camelcase
<Nilium>
I just use what's normal for a given language/platform.
<UNIXgod>
pagios: he's saying it's just a FILE. unix metaphor. Just like the files in /dev. It's an abstraction. you write to the fifo and send the c program into the background as it will be in waiting state. Then call the ruby script to empty the pipe. The c program will finish and move on.
agjacome has joined #ruby
<UNIXgod>
splashs: you need to run a more verbose compile. That gist doesn't tell us anything of the actual error.
<pagios>
how can i located the fifo of the c program?
<pagios>
i didnt quite get it
<splashs>
UNIXgod: how?
<UNIXgod>
pagios: you make a named pipe with the command mkfifo.
iliketurtles has quit [Quit: zzzzz…..]
<UNIXgod>
pagios: man mkfifo
Mitchellvanw has quit [Quit: Dozing off...]
<pagios>
UNIXgod: i should then modify the c program to make that fifo
<pagios>
i cant modify the c code
<UNIXgod>
splashs: read the ruby source and follow the build instructions
agjacome has quit [Client Quit]
<pagios>
i am supposed to communicate from ruby to the c program without touching the c program, the c program works fine when i do echo "hi" | ./cprogram
<pagios>
so i need a way to make it go input data -> ruby -> cprogram
<UNIXgod>
pagios: you asked about named pipes.
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
<UNIXgod>
pagios: look at rubies io class. you can make ruby act like awk or whatever.
<splashs>
UNIXgod: there's very little in the readme file to assist
<pagios>
UNIXgod: but my question is once C program is loaded into memory, knowing that it accepts data from "|" can i make a query to it from ruby at any point in time?
am3n has joined #ruby
freezey has joined #ruby
kidoz has joined #ruby
CaptainJet has quit []
<UNIXgod>
pagios: no. foo | bar | baz acts as a single unit. You'd have to call it a second time. which is okay. unix was set up to make processes cheap and is meant for that.
<UNIXgod>
pagios: if your c program is running as a service you need to look into how to make a daemon.
<pagios>
UNIXgod: i want a way to communicate with the c program withouyt running it a second itme
<pagios>
it is doing some other work...
petey_ has quit [Ping timeout: 245 seconds]
<UNIXgod>
pagios: sounds like you need to make a service.
CaptainJet has joined #ruby
<pagios>
i need a way to send data from ruby to that process thats it
<splashs>
i used -v for gcc and nothing useful there either
am3n has quit [Ping timeout: 256 seconds]
mlpinit_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
atno has quit [Remote host closed the connection]
UNIXgod has quit [Quit: leaving]
smathieu has joined #ruby
<splashs>
turns out i had to use -O1
mlpinit_ has quit [Ping timeout: 246 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
freezey has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
lillard has quit [Remote host closed the connection]
freezey has joined #ruby
ner0x has quit [Quit: Leaving]
chinkung has joined #ruby
havenwood has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
lnormous has quit [Ping timeout: 245 seconds]
Soda has joined #ruby
kung has quit [Ping timeout: 256 seconds]
smathieu has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
jonathanwallace1 has joined #ruby
Technodrome has quit [Quit: Technodrome]
freezey has quit [Ping timeout: 272 seconds]
adjo has quit [Ping timeout: 245 seconds]
adjo_ has quit [Ping timeout: 245 seconds]
theoretick has joined #ruby
axl_ has quit [Quit: axl_]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
jonathanwallace1 has quit [Quit: WeeChat 0.4.1]
<RubyPanther>
pagios: a "named pipe" has a path like /tmp/foo and you just read/write to it
mikesplain has joined #ruby
noop has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
<existensil>
treat it just like any other file. use w+/r+ as the modes to prevent blocking
<existensil>
i think
freerobby has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
yfeldblum has joined #ruby
axl_ has joined #ruby
Seich has quit [Ping timeout: 240 seconds]
goganchic has joined #ruby
mikesplain has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
serp` has joined #ruby
Guest24676 has quit [Read error: Connection reset by peer]
Jetchisel has quit [Ping timeout: 260 seconds]
Seich has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
voodoofish has joined #ruby
platypine has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
akhkharu has quit []
akhkharu has joined #ruby
earthquake has quit [Quit: earthquake]
MrPot4to has quit [Remote host closed the connection]
mrpot4to_ has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
jbpros has joined #ruby
mlpinit has joined #ruby
Technodrome has joined #ruby
volty has joined #ruby
axl_ has joined #ruby
rvchangue has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
atno has joined #ruby
dmiller has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
zz_tsykoduk is now known as tsykoduk
rvchangue has joined #ruby
derebos has joined #ruby
sayan has joined #ruby
axl_ has quit [Quit: axl_]
zipper has joined #ruby
OdNairy has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
voodoofish has quit [Ping timeout: 272 seconds]
robustus has quit [Ping timeout: 264 seconds]
am3n has joined #ruby
robustus has joined #ruby
<Technodrome>
what is better rvm or rbenv?
am3n has quit [Ping timeout: 256 seconds]
<volty>
they're much of a muchness :)
<goganchic>
rbenv
<yxhuvud>
neither. chruby.
<Nilium>
chruby.
<volty>
i'm fine with rbenv
<Nilium>
I use rbenv and I still tell people to use chruby.
<havenwood>
chruby
axl_ has joined #ruby
<volty>
missing why
<havenwood>
volty: Tests. No shims. Less code. An irc channel and better support.
pskosinski has joined #ruby
<Technodrome>
seems like chruby is the most newest and simplistic way
<Technodrome>
you can use ruby-build to build ruby and put it in a dir ,and use chruby to manage it right?
<havenwood>
Technodrome: yup
<Technodrome>
how does bundler make gem sets obsolete though? Like i see some people implying?
<volty>
havenwood: just for sake of not-googling, is the philosophy behind chruby behind that of chroot?
<havenwood>
Technodrome: These days I use ruby-install, but still use ruby-build from time to time.
<volty>
then: simpler => better, but I will not change since I do not change versions // thx, going to give a look at the url
<Technodrome>
i'm just using the mac osx mavericks ruby right now with rails
<Technodrome>
it seems to work ok
<Technodrome>
havenwood: so it's not compiling or anything
<havenwood>
Technodrome: ruby-install and chruby work well with Mavericks too btw (rvm and rbenv seem up to speed at this point.)
<havenwood>
too
drumusician has joined #ruby
<Technodrome>
well i just really wanted to keep all the gems separate
<havenwood>
Technodrome: It compiles and installs Ruby, JRuby, Rubinius or Maglev.
<Technodrome>
but maybe i should look into using bundler for that
<havenwood>
Technodrome: chgems is nice if you don't use bundler
<havenwood>
Technodrome: I use chruby and bundler.
<Technodrome>
yes
<Technodrome>
seems like the combo made for win atm
aapzak has quit [Ping timeout: 246 seconds]
Speed has left #ruby ["WeeChat 0.4.2"]
mercwithamouth has quit [Ping timeout: 246 seconds]
voodoofish has joined #ruby
aapzak has joined #ruby
snath has quit [Ping timeout: 245 seconds]
<havenwood>
volty: yeah, if you start version changing at some point give it a look! if you're not doing that then yeah prolly not really needed
<volty>
Nice. I'll pass with chruby when I decide to install 2.x.
buscooo has joined #ruby
<volty>
that's my way of doing things, btw
Seich has quit [Quit: Computer has gone to sleep.]
<havenwood>
reasonable unless you wanna waste lots of time... me <--
Seich has joined #ruby
smathieu has joined #ruby
Shidash has joined #ruby
<volty>
also because I'm trying to avoid 'external' executables and object libs
staafl has joined #ruby
CreativeEmbassy has joined #ruby
butblack has joined #ruby
butblack has left #ruby [#ruby]
Davey has joined #ruby
bluefintuna has joined #ruby
Seich has quit [Ping timeout: 245 seconds]
<bluefintuna>
test
<Technodrome>
you know i started with ruby in 2003, went to Java
<havenwood>
bluefintuna: helloooo
<Technodrome>
now back with Ruby
butblack has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
<havenwood>
Technodrome: Use RedBridge JRuby stuffs much these days?
<Technodrome>
i've never used Jruby ever
freerobby has joined #ruby
<Technodrome>
i was a J2EE dev
jeffdb has quit [Quit: jeffdb]
<havenwood>
aha
thepumpkin has joined #ruby
<Technodrome>
which is a whole world in itself
<Technodrome>
when you break it down, it's not so hard, but boy when you don't , you're in for it as a new user there
<existensil>
I was one of those. heh
Sinco has joined #ruby
<Technodrome>
existensil: got overwhelmed?
<existensil>
being a ruby programmer is generally more fun, day to day, than being a j2ee developer
<Technodrome>
ah
<existensil>
Technodrome: heh. more like underwhelmed
<Technodrome>
well I want to do my own things now
<Nilium>
I learned Java in two weeks about three years ago, dropped it afterward, then picked up Scala last month because I needed something that compiled to JVM bytecode that didn't suck.
<Nilium>
Thankfully never had to touch J2EE
<Technodrome>
i need the fastest and most elegant way to build web applications
<staafl>
iterators, enumerators, enumerables, generators, fibers, can anyone explain the iterator pattern implementation in ruby to me?
<Nilium>
Scala lets me feel like I'm writing Ruby.
<Nilium>
Makes me pretty happy.
<existensil>
Technodrome: i found enterprise projects to be excruciatingly slow paced at times. maybe it was the company.
<Technodrome>
its ok though, you can use things like ruby and python in the enterprise if you want, if you have a good product or service, it's acceptable
bluefintuna has quit [Client Quit]
amacgregor has quit [Read error: Connection reset by peer]
<Technodrome>
the bank i was working at, uses Python extensively
bluefintuna has joined #ruby
momomomomo has joined #ruby
jinxD has joined #ruby
goganchic has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 245 seconds]
<volty>
banks do not need fantasy -- ay contraire
<Technodrome>
i'm not really new to ruby, but new to getting back into it for sure, it will be a little rough, like "self" had me confused for a few ours
<Technodrome>
hours*
eflynn has joined #ruby
thepumpkin has quit [Ping timeout: 260 seconds]
<havenwood>
Nilium: Ever tried Clojure?
mrfoto has joined #ruby
mrfoto has quit [Client Quit]
<havenwood>
Nilium: Was having fun doing hybrid JRuby/Clojure project Eulers.
<eflynn>
anyone familiar with jekyll?
<Nilium>
Interesting.
<Nilium>
re: the bank
<Nilium>
Using python
<Nilium>
I tried Clojure, but it doesn't play nice with Android, which is what I use Scala for.
mrfoto has joined #ruby
<havenwood>
Nilium: Ahhh, yeah.
<Technodrome>
but i'm just tired of the status quo
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<Nilium>
Very, very hard to get it working well on there, mostly because Android's an ill-designed piece of crap in a lot of respects.
<existensil>
Technodrome: working for someone else?
<havenwood>
eflynn: Yup, question on whether to use it or problem using it?
<Nilium>
I'd love to have a good Lisp for Android
zipper has quit [Quit: Rebooting to make sure archey install has worked.]
<Technodrome>
there is so many enterprise product vendors who have the most generic software that can be easily replaced with a solid new solution
<eflynn>
havenwood: I did "jekyll docs" to view the docs, and got "Permission denied - /var/lib/gems/1.9.1/gems/jekyll-1.2.1/site/_site. Use --trace to view backtrace". I shouldn't need sudo just to view docs, any ideas?
bluefintuna has quit [Client Quit]
<havenwood>
eflynn: Because of where you have Ruby installed, you'll need to: sudo jekyll docs
<Technodrome>
existensil: from 2004 I worked *everyday* as a J2EE dev literally, I got tired of that in 2009 but it's all good
<volty>
nil - tail recursive :)
bluefintuna has joined #ruby
<Technodrome>
existensil: i meant status quo really within myself
<Nilium>
volty: Scala actually has a tail-recursion annotation that tells the compiler to make sure a function is optimized for tail recursion. If it can't optimize it, it emits an error.
irated has joined #ruby
<irated>
need helps
<irated>
yo
axl_ has quit [Quit: axl_]
<volty>
Nilium: will take a note and read further // now (excuse for // :) ) i'm too tired for recursive thinking, thx
<irated>
bcrypt is throwing an err
<Nilium>
Mon_Ouie: I think I looked at it, but the problem with Clojure was partly the size of the runtime it drags in and partly that it's just unpleasant to use Clojure with the Android APIs.
<momomomomo>
and then come back, and explain what failed, why you think it failed, and what you've done to try to resolve it
zipper has joined #ruby
<Nilium>
That said, I haven't looked at Clojure in a while, so the situation might've improved.
bluefintuna has quit [Client Quit]
<irated>
momomomomo: sec ill past the error
<irated>
i dont know what code is causing it
<eflynn>
havenwood: can i install the gem in my user account?
<havenwood>
eflynn: Looks like you're using an apt package of Ruby, yeah?
<eflynn>
havenwood: yeah
<havenwood>
eflynn: You can install Ruby youself, unfortunately Debian unlike everyone else has kinda borked Ruby.
<eflynn>
havenwood: it's ubuntu, does it make a difference?
<existensil>
eliasp: nope. you will probably have the best luck using one of the ruby version managers, which can install a userland version of ruby for you
<Technodrome>
existensil: what is your work situation like?
<havenwood>
eflynn: Ubuntu uses the Debian package. I'd suggest just using ruby-install with chruby or rvm instead of apt-get with update-alternatives.
<existensil>
Technodrome: I work for a startup from home
mrfoto has quit [Remote host closed the connection]
<eflynn>
havenwood: that's good to know
butblack has quit [Quit: butblack]
<havenwood>
eflynn: If your Unix-fu is up to par, go chruby. If you don't want to have to think about it, rvm.
<Technodrome>
existensil: got any stuff going on yourself?
<momomomomo>
irated: For future reference, use either http://gist.github.com or pastie, not pastebin - what is the trace of `gem install bcrypt-ruby`
Seich has joined #ruby
<existensil>
Technodrome: yeah, i'm trying to save up money and learn a bunch of stuff, so when the right opporunity presents itself i can dive in. i have a few side projects, but i think the odds of any of them breaking out are pretty low.
dmiller has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
skaflem has quit [Quit: Leaving]
amacgregor has joined #ruby
derebos has quit [Read error: Connection reset by peer]
<irated>
momomomomo: how do i find that
jbpros has quit [Quit: jbpros]
OdNairy has joined #ruby
<momomomomo>
type `gem install bcrypt-ruby -V
chomskiii has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
atphalix has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<eflynn>
havenwood: is there a way to remove all gems
mercwithamouth has joined #ruby
<havenwood>
eflynn: gem uninstall --all
<havenwood>
eflynn: (I actually submitted pull request to add that feature. :p Though drbrain did most the work, as usual.)
jrhe has joined #ruby
coderhs has joined #ruby
<eflynn>
havenwood: thanks
<havenwood>
eflynn: Requires a new-ish RubyGems, so if it doesn't work: gem update --system
<eflynn>
havenwood: gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.
<eflynn>
havenwood: that was the message
<momomomomo>
ezkl: Looks like it's already installed ot me, the error is an rdoc issue
Gwyxx has quit [Ping timeout: 272 seconds]
<momomomomo>
ezkl: is this a known issue/ workaround with --platform=ruby
<havenwood>
eflynn: Debian shouldn't screw up Ruby like this...
<havenwood>
irated: The RedHat folk just did a more elegant job. Debian took the process they were using for 1.8 (when gem didn't ship with Ruby) and just royally screwed up the whole package imho.
<ezkl>
momomomomo: nope, you're right .. saw the c-extension error and stopped reading
predator217 has quit [Ping timeout: 245 seconds]
<havenwood>
irated: RedHat Ruby 2.0.0-p247 *just works*. Local gem installs, a real RubyGems, sane package.
<irated>
lol
<havenwood>
irated: Debian packaging everything is just face palm.
<eflynn>
havenwood: I don't know what I'm doing with ruby, i just want to use jekyll in a sane way. my linux-fu is strong
<havenwood>
eflynn: Then grab chruby, setup your dotfiles!! :)
jeffdb has joined #ruby
<havenwood>
eflynn: then anything you install with ruby-install will get autodetected
<eflynn>
havenwood: ok but i have to do something with /var/lib/gems
<eflynn>
havenwood: not sure if i can just delete it or what
mikesplain has joined #ruby
<havenwood>
eflynn: Leave your system ruby be.
jrhe has quit [Quit: jrhe]
<havenwood>
eflynn: You can always go back to it with `chruby system`.
<existensil>
I don't know why Class returns there...
dmiller has joined #ruby
<Technodrome>
for some reason i thought the superclass of Module was Class
<Technodrome>
my bad
<Technodrome>
i just accidentally typed class only
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
existensil: Module itself is a class
<Nilium>
Because module is a class and not a module.
<Nilium>
*Module
capnmalarkey has quit [Quit: capnmalarkey]
<Nilium>
Not hard to understand.
<existensil>
:-)
m4rcu5 has joined #ruby
<Technodrome>
Nilium: yes very simple
<Nilium>
A module is an instance of Module, basically.
<irated>
Think i figured it out
<Technodrome>
Nilium: module does have a .class property though
zipper has quit [Quit: leaving]
petey_ has quit [Ping timeout: 260 seconds]
<ezkl>
irated: gem build only generates a package, not the same as gem install
<ezkl>
irated: What was the issue?
<irated>
nvm
<Nilium>
Technodrome: Why wouldn't it?
vlad_sta_ has quit [Ping timeout: 240 seconds]
psyl0n has quit [Quit: psyl0n]
<irated>
gem install was fine too
<irated>
just when i issue that bundle command its all borked
<havenwood>
The superclass of my Module, without my Class, is worthless. Without my Class, my Module is worthless. I must instantiate my Class true. I must be higher in the method lookup than the methods who are trying to be called. I must be called be for they are called. I wll...
serp` has quit [Quit: serp`]
eregon has quit [Read error: Connection reset by peer]
<Technodrome>
Nilium: shouldn't Module be of type Module? hmm, maybe i'm over thinking it
<Nilium>
No.
<Nilium>
Module is a class. _A module_ is a Module.
dmiller has quit [Read error: Connection reset by peer]
dmiller_ has joined #ruby
Seich has quit [Ping timeout: 240 seconds]
havenwood has quit []
<Nilium>
You'll probably figure it out when you manage to shut off your brain.
<volty>
the other way of what already said by Nilium: when you instantiate o = MyObject.new you get an instance of MyObject, when you write module MyModule ... end you create an instance of Module (same as Module.new(Name))
maletor has joined #ruby
<Technodrome>
ok a class is a "Module" right, that's it's superclass, i just don't see how then a Module can be of type "class" as well
<irated>
ezkl: i dont freakin understand this
atphalix has left #ruby [#ruby]
<existensil>
lol
<momomomomo>
irated: did you create the file I told you to?
<Nilium>
Technodrome: Stop thinking about it and it'll make sense.
<irated>
which one
<irated>
maybe i missed that line
<momomomomo>
a re quote
<momomomomo>
irated: easiest way to bypass this would be to create a ~/.gemrc file, and add "gem --no-rdoc --no-ri"
eregon has joined #ruby
<Technodrome>
Nilium: it's not a big deal, its just a little quirk in my mind :)
mercwithamouth has joined #ruby
<irated>
just did momomomomo trying again now
bugsinlights has joined #ruby
<Nilium>
Which is why I'm telling you to turn off your mind and let Enki take over and flood you with his rivers.
dmiller_ has quit [Read error: Operation timed out]
Seich has joined #ruby
<Technodrome>
Nilium: no, don't flood me, no!
smathieu has joined #ruby
bugsinlights has quit [Remote host closed the connection]
Czupa has quit [Ping timeout: 272 seconds]
Ripp__ has joined #ruby
eregon has quit [Remote host closed the connection]
<Nilium>
I ain't doing it. That's Enki's job. He's the god of beer.
<irated>
Failed to load /home/git/.gemrc because it doesn't contain valid YAML hash
pwh has quit [Ping timeout: 246 seconds]
Guest21184 is now known as denysonique
Czupa has joined #ruby
afader has quit [Quit: WeeChat 0.4.2-rc1]
psyl0n has joined #ruby
psyl0n has quit [Remote host closed the connection]
eregon has joined #ruby
<irated>
momomomomo: same error
butblack_ has joined #ruby
freerobby has joined #ruby
<ezkl>
irated: gem: --no-ri --no-rdoc ... not sure it is going to help
<irated>
gem install bcrypt-ruby is fine
smathieu has quit [Ping timeout: 240 seconds]
<irated>
but this is failing now
<irated>
sudo -u git -H bundle install --deployment --without development test mysql aws
pwh has joined #ruby
yfeldblum has joined #ruby
eflynn has quit [Ping timeout: 250 seconds]
voidbottle has joined #ruby
butblack_ has quit [Client Quit]
monkegjinni has joined #ruby
chinychinchin has joined #ruby
<voidbottle>
hi folks!
<bahar>
hi so i have a question, i'm reading Why's Guide and got stumped on something, is this the right place to ask a n00b question?
monkegjinni has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
<heftig>
staafl: eager doesn't mean it iterates the whole range. eager means it will immediately gather all values it needs, which are just 10 in this case
<staafl>
heftig, yeah, I got confused for a moment
dmiller has joined #ruby
<heftig>
map however, is eager AND iterates until end
momomomomo has quit [Quit: momomomomo]
<heftig>
>> (1..Float::INFINITY).map { |x| x * 2 }.take(10)
<staafl>
heftig, so the enumerator returned by enum_for is eager
petey_ has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
<staafl>
volty, there are a lot of things to keep in your head here
petey_ has joined #ruby
tbuehlmann has quit [Remote host closed the connection]
jujuba has quit [Ping timeout: 250 seconds]
<heftig>
ruby started off having only internal iterators like [1,2,3].each { |x| ... }
<staafl>
some enumerators are eager by nature, some support laziness but you have to wrap them in an Enumerator::Lazy instance
<heftig>
the Enumerator class came later, and is a way of making an external iterator from an internal one, by means of storing execution state (stack, registers and all)
<volty>
imho the use case of laziness should be that of very big files that you iterate on (not using readlines or gets)
<staafl>
heftig, so methods were retrofitted with an enum_for call?
<heftig>
yes
<heftig>
staafl: and as I said eagerness isn't really a property of the enumerator. there's just two enumerator classes, Enumerator and the even more recent addition Enumerator::Lazy
<heftig>
eagerness is a property of the method you call
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
<volty>
behavior
<staafl>
heftig, but you can't call a lazy method on a vanilla enumerator
<staafl>
or can you...
dmiller has joined #ruby
<heftig>
uh?
<heftig>
they could have called them lazy_map instead of making an extra class
petey_ has quit [Ping timeout: 272 seconds]
<staafl>
heftig, do you prefer the current approach?
Davey has joined #ruby
<heftig>
not really, i would have liked all Enumerator methods to be made lazy instead of needing an extra lazy wrapper
<heftig>
have the eager versions directly on Array and stuff
<volty>
you can call lazy on vanilla -- it will just not make difference in regards of accessing / generating the values
<staafl>
heftig, yeah, me too
<volty>
all lazy? why?
lnemo has joined #ruby
<volty>
it could mean performance penalty for enumerating things that do not require laziness
michael_mbp is now known as zz_michael_mbp
dmiller has quit [Ping timeout: 272 seconds]
<heftig>
volty: but having eager methods on Array should solve most of those cases
<heftig>
when you start handling Enumerators you usually want laziness as well, or don't care
<staafl>
volty, isn't the major performance penalty the Enumerator indirection?
Technodrome has left #ruby [#ruby]
<heftig>
staafl: i think the major performance penalty is the Fiber switching and massive loss of locality
<volty>
usually i don't care
<staafl>
whether it's lazy or not doesn't make much difference, if you want performance work with the specific collection
<staafl>
heftig, oh, right
<volty>
i do not use enumerators if I already have a ready array
<staafl>
heftig, thank you very much for your help
derebos has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
pu22l3r has quit [Remote host closed the connection]
tjad has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
thepumpkin has joined #ruby
smathieu has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
mmcdaris has joined #ruby
dorei has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
pskosinski_ has quit [Quit: Til rivido Idisti!]
thepumpkin has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
brtdv has quit []
popl has quit [Quit: We must make an idol of our fear, and call it God.]
colonolGron is now known as Vozhd2
Vozhd2 is now known as colonolGron
xk_id has quit [Ping timeout: 245 seconds]
robonerd has quit [Read error: Connection reset by peer]
wald0 has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
<wald0>
if i can do "class String" and define "lenght", why there's not an error or something that appears saying me that is already defined ? is not a class a constant?
* wald0
trying to understand better ruby
<shevy>
hey
<shevy>
do you really want to define "length"
<shevy>
oops
<shevy>
"lenght"
<shevy>
;)
<shevy>
wald0 in ruby you can redefine and reopen almost everything at run time
<shevy>
so being able to modify class String is a feature
<shevy>
it would not be intuitive to show a warning when someone uses a proper feature
<wald0>
yeah, sure it is a feature, but i thought that it would have show an error or something, im just trying to understand it better