DrCode has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
deepfried has joined #ruby
DanKnox is now known as DanKnox_away
brianpWins has quit [Quit: brianpWins]
will has left #ruby [#ruby]
JZTech101 has joined #ruby
zeade has quit [Quit: Leaving.]
DrCode has joined #ruby
BRMatt has joined #ruby
Kabaka has joined #ruby
gyre007 has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
emergion has quit [Quit: Computer has gone to sleep.]
fridim_ has joined #ruby
cads has joined #ruby
jefflyne has joined #ruby
Beoran__ has joined #ruby
julian-delphiki has joined #ruby
Beoran_ has quit [Read error: Operation timed out]
yshh has quit [Remote host closed the connection]
<graft>
yo, where do i get a nice class that does balanced binary search trees?
yshh has joined #ruby
xcv has joined #ruby
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
bean has quit [Ping timeout: 245 seconds]
bean has joined #ruby
scarolan has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
julian-delphiki has quit [Ping timeout: 264 seconds]
yshh has quit [Ping timeout: 268 seconds]
scarolan has joined #ruby
havenwood has joined #ruby
nari has quit [Ping timeout: 256 seconds]
Pandee has joined #ruby
bradsmith has joined #ruby
deepfried has quit [Quit: deepfried]
PhatBaja has quit [Quit: Leaving.]
<Pandee>
i am using st2 and the ruby shell in vagrant. Is there anyway to execute a ruby script in the irb, but stay within the script? so i can test different inputs etc w/o having to edit and save in the text editor
smathi___ is now known as smathieu
IceDragon has joined #ruby
czervik has joined #ruby
DonRichie has quit [Read error: Operation timed out]
tobyo has joined #ruby
<zendeavor>
perhaps require the script in irb and use it directly...?
<Pandee>
can you elaborate more on that?
DonRichie has joined #ruby
<zendeavor>
that was it.
<czervik>
hey guys. anyone know offhand if File.readlines opens the file in read only mode and automatically closes it. I'm running Ruby 1.8.7 (this is for a Puppet 2.7x module).
c0rn has quit [Quit: Computer has gone to sleep.]
<Pandee>
in irb i'm typing "ruby test.rb". Is that what you mean?
hellome has joined #ruby
<zendeavor>
perhaps i don't understand how to use a repl
<havenwood>
Pandee: Pry is awesome, great for going between editor and Ruby REPL: http://pryrepl.org/
ntus1017 has joined #ruby
<havenwood>
Pandee: I'd recommend just using Pry instead of irb.
bradsmith has quit [Ping timeout: 256 seconds]
<Pandee>
thanks i'll check that out
<havenwood>
czervik: Yes and yes.
nbouscal has joined #ruby
kaspergrubbe has joined #ruby
maycon has joined #ruby
<czervik>
havenwood: thanks I appreciate it. cheers
randomau_ has joined #ruby
ntus1017 has quit [Remote host closed the connection]
io_syl has quit [Quit: io_syl]
io_syl has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
JZTech101 is now known as Andromeda
Andromeda is now known as JZTech101
ckrailo_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
io_syl has quit [Client Quit]
randomautomator has quit [Ping timeout: 264 seconds]
randomau_ has quit [Ping timeout: 260 seconds]
JZTech101 is now known as Hydrogenbomb
Hydrogenbomb is now known as HydrogenBomb
HydrogenBomb is now known as JZTech101
thepumpkin has quit [Remote host closed the connection]
<Nilium>
One of these days I should probably try fiddling with EventMachine to see why some people talk about it like it's their god.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zendeavor>
evented design is kewl
<zendeavor>
you use linux? you checked out inotify? awesome stuff.
<havenwood>
Nilium: I've heard a good bit of griping about EventMachine too. Kinda a mixed bag.
yshh has joined #ruby
ckrailo_ has quit [Client Quit]
<zendeavor>
there's griping about all the things, it's bound to happen
Nanuq has joined #ruby
superscott[8] has joined #ruby
pitzips has quit [Ping timeout: 248 seconds]
<havenwood>
EMSynchrony does some neat stuff. Celluloid::IO is interesting as a non EM route.'
grillermo has quit [Quit: bandtastic.me]
<havenwood>
nio4r
xcv has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
<sam113101>
I don't understand how EventMachine works
Davey has joined #ruby
`Chris` has joined #ruby
<Nilium>
I use OS X and haven't used inotify. I just mostly don't know what I'd use eventmachine for since I do a lot of thread/interprocess stuff with ZMQ but it seems like EM is more like a generic server.
JZTech101 is now known as Hydrogenbomb
PsiCat has quit [Ping timeout: 264 seconds]
Hydrogenbomb is now known as JZTech101
<graft>
is there any hassle in migrating to ruby 2?
<graft>
or a guide to navigating the hassle?
<sam113101>
the thing I don't understand is, how can I use ActiveRecord with EventMachine without blocking the reactor?
<havenwood>
Hard to find good links on reactor pattern and evented io. Maybe node or evented io specific stuff would turn up more.
Dysruption has quit [Quit: Dysruption]
superscott[8] has quit [Quit: superscott[8]]
<havenwood>
I have altitude sickness, uhhg. Can't think straight.
<Eiam>
havenwood: just read stuff on twisted?
<sam113101>
well, I kind of knew about that
emergion has joined #ruby
<Eiam>
as there is quite a bit covering that event driven/reactor based bits, since its been around for awhile
<havenwood>
Eiam: Good point that't be a good place to look.
<sam113101>
it just seems to me that ActiveRecord would block (although maybe not for a long time)
<havenwood>
sam113101: ^
<Eiam>
my first major thing I ever did in python (while basically learning python) was based on Twisted and it was a stunning success
<sam113101>
Eiam: did you have to use async database drivers?
<havenwood>
sam113101: ah, you're looking for Rails specific elements or something? (Sorry, i'm at 10,000 ft an apparently can't think at this alt.)
vishal has joined #ruby
<Eiam>
sam113101: no, I was using async https requests
<sam113101>
not really, just that I'd like to use ActiveRecord
<Eiam>
millions of them
<Eiam>
spread across EC2 instances
<sam113101>
what are you doing there havenwood
grillermo has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
sam113101: I just tagged along with family to a conference up at Breckenridge, Colorado for a vacation. And have been awful sick since i got here. >.>
<Eiam>
on the receiving end for sure someones database got the snot beat out of it, asynchronously =)
<Eiam>
but it wasn't mine =)
<havenwood>
Think i'm going to flee to lower elevation tomorrow.
jorge_ has joined #ruby
Megtastique has joined #ruby
grillermo has quit [Client Quit]
sevenseacat has joined #ruby
chrisja has quit [Quit: leaving]
<Eiam>
havenwood: eat more carbs ?
<Eiam>
and iron
twoism has quit [Remote host closed the connection]
<sam113101>
if the ActiveRecord was made async, how would it even work?
<graft>
i'm trying to figure out if there's a way to the binary search equivalent of a select using the bsearch 'find-any' mode
sambao21 has joined #ruby
<Eiam>
sam113101: I mean thats the general approach for event driven/async frameworks
cyong has joined #ruby
xpirator has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby
popl has joined #ruby
xlogic has quit [Remote host closed the connection]
Megtastique has quit [Quit: Megtastique]
stillEPIK has joined #ruby
kreeves has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
r4nd0m1 has quit []
airlok has joined #ruby
stillEPIK has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 248 seconds]
eoinkelly has joined #ruby
gyre007 has joined #ruby
<eoinkelly>
Hi all, I have a slightly abstract question. The pickaxe says "Most statements in ruby return a value". My understanding is that *everything* in ruby is an expression (hence returns a value). My question is: Are there any true statements (code constructs that don't return a value) in ruby?
Nahra has quit [Ping timeout: 245 seconds]
JZTech101 has quit [Quit: Bye]
sambao21 has quit [Ping timeout: 268 seconds]
<havenwood>
eoinkelly: Maybe they mean `nil` as the non-value?
<havenwood>
Like #puts.
<sam113101>
because otherwise I don't think they exist
mansi has quit [Remote host closed the connection]
_maes_ has joined #ruby
bionoid has joined #ruby
mansi has joined #ruby
waj has quit [Quit: Leaving.]
waj has joined #ruby
Nahra has joined #ruby
<eoinkelly>
haven wood, sam113101 perhaps they do mean nil. I couldn't think of any either.
bionoid has quit [Remote host closed the connection]
<sam113101>
eoinkelly: raise. test = 'wat'; test = raise('nigga'); puts test
<sam113101>
it will print 'wat'
Domon has joined #ruby
bionoid has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
<havenwood>
sam113101: Racial slurs aren't tolerated in this channel. No matter the intent. Desist.
iliketurtles has quit [Ping timeout: 246 seconds]
<pontiki>
thank you. i was about to leave
<sam113101>
is raise a real function?
<pontiki>
it is unsafe enough
<sam113101>
havenwood: ran out of inspiration
mansi has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<sam113101>
eoinkelly: because a was never defined
<sam113101>
give it a value beforehand
eka has quit [Quit: Computer has gone to sleep.]
bklane has quit [Ping timeout: 256 seconds]
<eoinkelly>
sam113101: ah now I see what you mean. Yep throw seems to qualify too. cheers!
<graft>
can someone explain why this returns nil? [ 0, 1, 2 ].bsearch{|x| x < 1 }
ravster has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
Nanuq has joined #ruby
Vivekananda has quit [Ping timeout: 256 seconds]
tobyo has quit [Ping timeout: 264 seconds]
airlok has quit [Remote host closed the connection]
asteve has joined #ruby
baroquebobcat has joined #ruby
joshsmith has quit [Quit: joshsmith]
Nanuq has quit [Ping timeout: 245 seconds]
Megtastique has joined #ruby
<RubyPanther>
graft: I'm not totally sure but I think you're just going backwards and you should use >= instead of <
DanKnox_away is now known as DanKnox
thesheff17 has quit [Ping timeout: 264 seconds]
Nanuq has joined #ruby
<eoinkelly>
graft: If I am reading http://ruby-doc.org/core-2.0/Array.html#method-i-bsearch correctly and you are wishing to use the "find minimum" mode then your block needs to return the actual element when it finds the correct one. Your block always returns true|false
h4mz1d has joined #ruby
kilophoton has quit [Ping timeout: 248 seconds]
d34th4ck3r has quit [Quit: d34th4ck3r]
Nahra has quit [Quit: leaving]
`Chris`_ has joined #ruby
<eoinkelly>
Oops - scratch that, I interpreted the docs incorrectly.
<denysonique>
Can a class method access instance variables of the classes' instance?
Kricir has joined #ruby
`Chris` has quit [Read error: Connection reset by peer]
<Eiam>
denysonique: well, @@ is available across class instances..
<graft>
eoinkelly: i think i understand what's happening... it needs a condition that maps to [ false, false, true, true ]
Spooner has quit [Remote host closed the connection]
Pandee has quit [Ping timeout: 256 seconds]
Pandee has joined #ruby
xavier23 has quit [Quit: xavier23]
<denysonique>
Can a class body method interact with instance vars? E.g. a class body method sets an instance var on the initialized class?
<eoinkelly>
AFAIK binary search starts in the middle and uses true/false to indicated "guess lower"/"guess higher". It seems to be that false is being interpreted as "guess higher"
<denysonique>
s/class\?/class/
robustus has quit [Ping timeout: 264 seconds]
<eoinkelly>
which is causing it to look in the wrong direction and never find the answer
robustus has joined #ruby
<Eiam>
>> class Test @@myvar = 2; def self.test @@myvar end end
<eval-in>
Eiam => /tmp/execpad-f7f40df8c873/source-f7f40df8c873:2: syntax error, unexpected tCVAR, expecting '<' or ';' or '\n' ... (https://eval.in/40257)
carlyle has quit [Read error: Connection reset by peer]
carlyle_ has joined #ruby
<Eiam>
denysonique: because it follows the class, not the instance
<denysonique>
Class body method: "That method can execute arbitrary code, also in the context of the class, including creating new methods, executing other pieces of code, or updating a class instance variable"
<denysonique>
This is what Katz says
<eoinkelly>
graft: [ 1, 2, 3,4,5 ].bsearch{|x| puts "trying: #{x}"; puts "block is returning #{(x < 2)}"; !(x < 2) } - it seems that when the condition flips from false to true, then bsearch returns the last value for which it was false.
<Eiam>
denysonique: okay? yes, I said you can update a class instance variable
<denysonique>
Some misunderstanding going on here
<denysonique>
Eiam: Can I achieve this through a class (body) method?
jorge has quit [Ping timeout: 246 seconds]
bklane_ has quit [Remote host closed the connection]
bklane has joined #ruby
nezumi has joined #ruby
hadees has joined #ruby
cads has quit [Ping timeout: 246 seconds]
arya_ has joined #ruby
hamakn has quit [Remote host closed the connection]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
<Nilium>
Only ended up answering it because the other guy's answer was stupid.
atyz has joined #ruby
hypomodern has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<sevenseacat>
oh a nice detailed answer
<sevenseacat>
haha nice avatar
<Nilium>
Everyone just thinks it's a penguin. :|
<sevenseacat>
i hope you correct them
<sevenseacat>
and tell them its a prinny
<Nilium>
It's better if I don't out myself as a Disgaea fan.
carlyle_ has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
<sevenseacat>
i learnt something from your answer, therefore it is a good answer. im good with rails, not so good with the intricacies of plain ruby
<Nilium>
I left out the part about Foo.singleton_class.module_exec { def bar ; "baz" ; end } working because that seemed like it might be cruel and unusual.
<Nilium>
Also left out how to use define_singleton_method because that's only really useful for metaprogramming stuff.
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
[narcan] has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
mikepack has quit [Remote host closed the connection]
anay has joined #ruby
yacks has quit [Quit: Leaving]
mansi has joined #ruby
axeman- has quit [Ping timeout: 264 seconds]
JZTech101 has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
becky_ has quit [Ping timeout: 264 seconds]
m104 has joined #ruby
`Chris`_ has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 256 seconds]
mityaz has quit [Quit: See ya!]
airlok has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Mattix has quit [Quit: Leaving]
twoism has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
carlyle has joined #ruby
dhruvasagar has joined #ruby
smathieu has joined #ruby
airlok has quit [Ping timeout: 264 seconds]
eldariof has quit [Read error: Operation timed out]
rubanub has joined #ruby
pzuraq has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<pzuraq>
does anyone know if prawn can be used to fill out preexisting pdfs made with acrobat?
<rubanub>
hey everyone, im trying to set a 1 second timeout on a socket connection, i've tried a bunch of different methods i've found online but can't seem to find one that works. Perhaps this is due to my lack of knowledge, can someone point me in the right direction?
Nanuq has quit [Ping timeout: 245 seconds]
chimkan has quit [Quit: chimkan]
saintcajetan has quit [Remote host closed the connection]
Nanuq has joined #ruby
andikr has joined #ruby
saintcajetan has joined #ruby
NimeshNeema has quit [Ping timeout: 248 seconds]
dnyy has quit [Ping timeout: 256 seconds]
chimkan has joined #ruby
pcarrier has quit [Ping timeout: 256 seconds]
davidboy has quit [Ping timeout: 245 seconds]
mulander has quit [Ping timeout: 268 seconds]
smathieu has quit [Ping timeout: 246 seconds]
nitish has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
octarine has quit [Ping timeout: 245 seconds]
niftylettuce has quit [Ping timeout: 264 seconds]
nitish has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 245 seconds]
h4mz1d has joined #ruby
n_blownapart has joined #ruby
heidar has quit [Ping timeout: 264 seconds]
dnyy has joined #ruby
axeman- has quit [Ping timeout: 264 seconds]
Nom- has quit [Quit: leaving]
axeman- has joined #ruby
Nanuq has joined #ruby
chimkan has quit [Client Quit]
ninegrid has quit [Read error: Connection reset by peer]
blandflakes has quit [Ping timeout: 268 seconds]
garthr has joined #ruby
ninegrid has joined #ruby
Kruppe has quit [Remote host closed the connection]
miclorb has joined #ruby
Deele has joined #ruby
anay has quit [Remote host closed the connection]
Kricir has joined #ruby
anay has joined #ruby
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #ruby
mansi has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
Kricir has quit [Ping timeout: 248 seconds]
darth_chatri has joined #ruby
joshsmith has quit [Quit: joshsmith]
hadees has joined #ruby
axeman- has quit [Ping timeout: 268 seconds]
tomzx_mac has quit [Ping timeout: 246 seconds]
browndawg has quit [Quit: Leaving.]
axeman- has joined #ruby
browndawg has joined #ruby
n_blownapart has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 264 seconds]
yekta has joined #ruby
ssvo has quit [Ping timeout: 256 seconds]
choobie has left #ruby [#ruby]
miclorb has quit [Quit: miclorb]
mary5030 has joined #ruby
zeromodulus has quit [Remote host closed the connection]
robert__ has joined #ruby
robert__ has joined #ruby
robert__ has quit [Changing host]
fredjean has quit [Quit: Computer has gone to sleep.]
veer has joined #ruby
Krajsnick has joined #ruby
veer is now known as Guest18398
pzuraq has quit [Read error: Connection reset by peer]
robert_ has quit [Ping timeout: 264 seconds]
davehimself has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_veer has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
pzuraq_ has joined #ruby
<pzuraq_>
using rbenv, for some reason I can't get rdoc to install any documentations for my gems
BeLucid has quit [Read error: Operation timed out]
<Nilium>
Does gem rdoc --overwrite --all --rdoc --ri not work?
nari has joined #ruby
<pzuraq_>
ok, there we go
<pzuraq_>
what do those last two options do?
<havenn>
rubanub: Have you already tried IO.select?
<Nilium>
--rdoc tells it to generate HTML documentation, --ri tells it to generate ri documentation
brianpWins has joined #ruby
jorge has joined #ruby
<pzuraq_>
ah, weird that I didn't see that anywhere..
<pzuraq_>
I was just doing it with --overwrite --all
smathieu has joined #ruby
Krajsnick has quit [Remote host closed the connection]
decoponio has joined #ruby
fredjean has joined #ruby
vlad_starkov has joined #ruby
<Nilium>
I think it generates only ri docs by default.
<Nilium>
So if you were looking specifically for the HTML docs, that might be it.
tjbiddle has joined #ruby
tommyvyo has joined #ruby
pcarrier has joined #ruby
Senjai has quit [Ping timeout: 260 seconds]
<pzuraq_>
Nilium: It wasn't generating either for some reason
<Nilium>
Wonky.
jorge has quit [Ping timeout: 264 seconds]
<Nilium>
I have no explanation for that.
mary5030 has quit [Remote host closed the connection]
choobie has joined #ruby
miclorb has joined #ruby
vlad_starkov has quit [Ping timeout: 268 seconds]
Krajsnick has joined #ruby
Krajsnick has quit [Remote host closed the connection]
yuhsien_ has quit [Ping timeout: 268 seconds]
BeLucid has joined #ruby
eoinkelly has quit [Quit: eoinkelly]
h4mz1d has quit [Ping timeout: 248 seconds]
zero7 has quit [Ping timeout: 248 seconds]
stonevil has joined #ruby
yekta has quit [Quit: yekta]
jonahR has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
tagrudev has joined #ruby
mansi has joined #ruby
spidergears has joined #ruby
graydot has joined #ruby
goleldar has quit [Ping timeout: 240 seconds]
garthr has left #ruby ["Leaving..."]
stonevil has quit [Ping timeout: 256 seconds]
airlok has joined #ruby
tommyvyo has quit [Quit:]
darth_chatri1 has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
airlok has quit [Ping timeout: 256 seconds]
darth_chatri has quit [Ping timeout: 260 seconds]
obs has joined #ruby
adeponte has joined #ruby
obs has quit [Remote host closed the connection]
filipe_ has joined #ruby
obs has joined #ruby
butblack has joined #ruby
pranny has joined #ruby
GeissT_ has joined #ruby
adkron_ has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
filipe has quit [Ping timeout: 245 seconds]
spidergears has quit [Ping timeout: 256 seconds]
rbento has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
GeissT has quit [Ping timeout: 248 seconds]
h4mz1d has joined #ruby
jaimef has quit [Read error: Operation timed out]
tacos1de has quit [Ping timeout: 240 seconds]
chimkan has joined #ruby
m104 has quit [Quit: bye]
fridim_ has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
ewnd9 has joined #ruby
spidergears has joined #ruby
vikhyat_ has joined #ruby
jaimef has joined #ruby
twoism has quit [Remote host closed the connection]
vikhyat has quit [Ping timeout: 256 seconds]
noop has joined #ruby
chimkan has quit [Ping timeout: 264 seconds]
noop has quit [Client Quit]
noop has joined #ruby
chimkan has joined #ruby
anay has quit [Remote host closed the connection]
pyrac has joined #ruby
d3 has joined #ruby
ssvo has joined #ruby
k0rupted has joined #ruby
jaimef has quit [Ping timeout: 264 seconds]
_tockitj has quit [Remote host closed the connection]
poseid has joined #ruby
xerxas has quit [Ping timeout: 240 seconds]
lectrick has quit [Ping timeout: 256 seconds]
geoffw8_ has quit [Ping timeout: 264 seconds]
TheHodge has quit [Ping timeout: 264 seconds]
[0x1a] has quit [Ping timeout: 246 seconds]
Dysruption has quit [Quit: Dysruption]
browndawg has quit [Quit: Leaving.]
smathieu has quit [Remote host closed the connection]
ziyadb has quit [Ping timeout: 260 seconds]
pcarrier has quit [Ping timeout: 245 seconds]
Guest10431 has quit [Quit: Page closed]
notbrent has quit [Ping timeout: 264 seconds]
karnowski has quit [Ping timeout: 264 seconds]
lemonsparrow has joined #ruby
guilleiguaran_ has quit [Ping timeout: 268 seconds]
io_syl has joined #ruby
pusewicz_ has quit [Ping timeout: 264 seconds]
lemonsparrow has quit [Client Quit]
spidergears has quit [Ping timeout: 248 seconds]
Guest85414__ has quit [Ping timeout: 248 seconds]
bluehavana has quit [Ping timeout: 264 seconds]
moeSeth has quit [Ping timeout: 268 seconds]
dotemacs has quit [Ping timeout: 264 seconds]
fourq_ has quit [Ping timeout: 240 seconds]
chuk has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
rndstr has quit [Ping timeout: 264 seconds]
kapowaz has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
mansi_ has joined #ruby
lemonsaprrow has joined #ruby
denysonique has quit [Ping timeout: 268 seconds]
<lemonsaprrow>
hi
lemonsaprrow is now known as lemonsparrow
yeban has quit [Ping timeout: 240 seconds]
yuhsien_ has joined #ruby
<sevenseacat>
long time no see.
Zespre has quit [Ping timeout: 256 seconds]
randym_ has quit [Ping timeout: 256 seconds]
dnyy has quit [Ping timeout: 256 seconds]
mroth has quit [Ping timeout: 256 seconds]
zeade has quit [Quit: Leaving.]
mroth has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
cam`_ has quit [Ping timeout: 264 seconds]
Zespre has joined #ruby
zeromodulus has joined #ruby
yuhsien_ has quit [Ping timeout: 260 seconds]
mansi_ has quit [Ping timeout: 246 seconds]
tyman has quit [Ping timeout: 256 seconds]
cam`_ has joined #ruby
lectrick has joined #ruby
yuhsien_ has joined #ruby
yeban_ has joined #ruby
Elhu has joined #ruby
jenrzzz has quit [Quit: LATER BITCHES]
ebanoid has joined #ruby
raar has joined #ruby
axeman- has quit [Ping timeout: 264 seconds]
<raar>
I have no experience with Ruby on Rails, but have been asked to change some code in a controller (a password) while someone else is on holiday. I've deployed my changes, but it seems like the old code is still (cached) in use. How do I flush this cache?
<sevenseacat>
raar: did you restart the server after deploying your changes?
jorge_ has joined #ruby
<raar>
Nilium: I did actually, but I have no idea where to write "Rails.cache.clear" - I've never worked with RoR before I'm afraid
<Nilium>
Look for a terminal thingy.
<Nilium>
I don't use Rails, so that's all the advice I can offer there
<sevenseacat>
also, people who dont know rails playing with production code is a scary thing
<raar>
sevenseacat: I didn't - I figured there might be a better way to do it than restarting the server
pyrac has quit [Quit: pyrac]
<sevenseacat>
i dont mean the entire server, i mean the web server.
<sevenseacat>
eg, apache
lele has joined #ruby
<raar>
sevenseacat: I know that :)
<sevenseacat>
or passenger, rather, i dont know how you're serving your app
<raar>
yep, passenger
<sevenseacat>
well you dont really have a choice if you're deploying code changes.
<sevenseacat>
touch tmp/restart.txt in the app folder on the server
ewnd9 has quit [Remote host closed the connection]
archer_ has joined #ruby
archer_ is now known as Guest83731
<raar>
sevenseacat: thank you!
<sevenseacat>
no probs :)
<raar>
and yep, I don't really want to make these changes, but apparently we have to change the password, and since it's only a single string change, I think it will be ok :)
<sevenseacat>
yay, hardcoded passwords :P
jorge_ has quit [Ping timeout: 248 seconds]
zoee has joined #ruby
timonv has joined #ruby
dagobah has joined #ruby
vikhyat_ has quit [Remote host closed the connection]
<RubyPanther>
lol this is the entertainment I come for, thanks
<Guest83731>
Idiot question, how do I get a unique u_name? I'm new to the IRC world.
<sevenseacat>
/nick <name>
braoru has joined #ruby
<Guest83731>
success?
<sevenseacat>
no
<Guest83731>
Damn..
cyong has quit [Quit: Leaving.]
<Guest83731>
How do you know if it takes? There is no way to know without sending a message.
kapowaz has joined #ruby
<sevenseacat>
it will say something like 'you are now known as <name>'
<sevenseacat>
eg.
sevenseacat is now known as Karpah
vikhyat has joined #ruby
Karpah is now known as sevenseacat
huoxito has quit [Quit: Leaving]
<Guest83731>
It doesn't work...
pyrac has joined #ruby
zachrab_ has quit [Remote host closed the connection]
noyb has joined #ruby
workmad3 has quit [Read error: Operation timed out]
<Guest83731>
The same command line you chat with?
v0apihgt34 has joined #ruby
<sevenseacat>
yep
pzuraq_ has quit [Ping timeout: 256 seconds]
<raar>
without < and >
heftig has joined #ruby
airlok has joined #ruby
v1apihgt34 has joined #ruby
<raar>
It may not work - for example if the nickname is already in use on the network
<Guest83731>
I just tried a bunch of random chars to no avail
<Guest83731>
Oh well, I guess Gust83731 will work
<Nilium>
Are you in a room where you need to be identified?
v1apihgt34 has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<Guest83731>
I'm in #ruby
<Guest83731>
This is my first time in the IRC world
<slash_nick>
I kind of like Guest83731, for what it's worth :)
mansi_ has joined #ruby
<Guest83731>
I do too, sounds kind of james-bondish
iliketurtles has quit [Ping timeout: 264 seconds]
<sam113101>
soon you'll discover colors
aganov has joined #ruby
<bnagy>
meh, not a patch on good ol Guest83730
pjeide has joined #ruby
<sam113101>
they are wonderful
shaunbaker has joined #ruby
<sam113101>
but not to abuse
<Guest83731>
What's the latest on the ruby streets?
airlok has quit [Ping timeout: 264 seconds]
<sam113101>
you mean latest version?
relix has joined #ruby
ewnd9 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Guest83731>
Yes, besides... 2.0.0
dhruvasagar has joined #ruby
miclorb has quit [Quit: miclorb]
<sam113101>
2.0.0-p247
<Guest83731>
sam, if you have one word of advice for a new developer, what would it be?
vlad_starkov has joined #ruby
mulander has joined #ruby
<Guest83731>
I'm in the process of learning and i'm struggling with rspec for some reason..
<Nilium>
I have one word of advice: hide the sharp objects.
<Guest83731>
To avoid stabbing yourself haha?
<Nilium>
No, to avoid stabbing other people.
mansi_ has quit [Ping timeout: 264 seconds]
octarine has joined #ruby
niftylettuce has joined #ruby
<Nilium>
Nobody cares if you stab yourself.
vince_prignano has joined #ruby
davidboy has joined #ruby
<Guest83731>
What do you guys think of dev boot camp and the like?
<Guest83731>
Other people as in the users?
<Nilium>
Never heard of it.
<Guest83731>
How did you pick up ruby?
anay has joined #ruby
heidar has joined #ruby
<sevenseacat>
got a ruby/rails tutorial. used it.
threesome has joined #ruby
<Nilium>
I was working as an artist on a game called Bioscythe and one of the programmers showed me Ruby 1.8 and how to use GL and Fox in it back in something like '05 or '06 and I started using it.
<Guest83731>
I'm in the process of that right now. It's quite fun, but the future look bleak
<Guest83731>
I have done some VB work in the past, but my no means a pro coder
<Nilium>
I did contract work on a game engine, so that's the closest I get to being 'professional.'
<Guest83731>
I really like the ruby language so far. I just ran into a place where I was struggling tonight... So i decided to check out the IRC world to get a feel for the culture
<sevenseacat>
ive been a web developer for a long time, and made the switch to ruby and rails two and a half years ago.
<Guest83731>
How sustainable do you think ruby is?
* Nilium
shrugs
<Nilium>
What's sustainable mean in the context of a programming language?
<Guest83731>
What's the shelf life?
iliketurtles has joined #ruby
<Nilium>
What's that mean in the context of a programming language?
<sevenseacat>
42 years.
<Nilium>
People still use Cobol. You're asking the wrong question.
tacos1de has joined #ruby
vince_prignano has quit [Remote host closed the connection]
<Guest83731>
I know know the concepts are universal...
goleldar has joined #ruby
pyrac has quit [Ping timeout: 264 seconds]
<Guest83731>
When you hit a hard spot, how did you overcome it?
<Guest83731>
In learning Ruby
<bnagy>
strict meditation and vegetarian diet
<sam113101>
I was looking for a new interpreted language, and also I was looking for a new MVC framework, I chose ruby and rails
NimeshNeema has joined #ruby
<sam113101>
web MVC
stonevil has joined #ruby
browndawg has joined #ruby
vince_prignano has joined #ruby
<sam113101>
I did some python when I was a kid but I decided to stop using it
<Guest83731>
Doesn't python translate pretty well into ruby?
graydot has quit [Remote host closed the connection]
<popl>
I did the same thing with hamster style.
<sam113101>
what does translate mean in that context?
<sam113101>
they're both interpreted languages
<Nilium>
I wonder if fxruby works in Ruby 2.0
<sam113101>
if you know one you can easily learn the other
stonevil has quit [Remote host closed the connection]
vikhyat has quit [Remote host closed the connection]
<Nilium>
The answer is no.
<Nilium>
At least not without FOX, which I forgot to install.
<Guest83731>
That's what I meant sam
* Nilium
fixes this.
anay has quit [Read error: Connection reset by peer]
anay has joined #ruby
<sam113101>
does FOX look the same on every platfrom? or does it look alien?
pygospa has quit [Quit: "Need to test something"]
<Nilium>
Don't know or remember
<Guest83731>
sorry for clogging up your chat room. I just have a bunch of rookie questions
pygospa has joined #ruby
<Nilium>
I can only find pictures of it on some Linux desktops and Windows
<sam113101>
at first I wanted to learn shoes, but I think the guy was high most of the time
<sam113101>
and he kind of disappeared from the Internet I think
<sam113101>
at least that's what I heard
ephemerian has joined #ruby
<Nilium>
Shoes as far as I can tell is a browser window with no good qualities.
<sam113101>
yeah it's not really featureful
<sevenseacat>
haha
<Nilium>
Also, why was kind of an oddity.
vlad_starkov has quit [Remote host closed the connection]
<Nilium>
Less said of him the better.
<sevenseacat>
yeah why disappeared many moons ago
<sam113101>
who was he? seriously
<Nilium>
Oh dear god, FOX on Mac OS fires up an X server
goodgame has joined #ruby
<Nilium>
Yeah, that's not good.
<sam113101>
X runs on Mac OS?
<Nilium>
Sort of.
mahmoudimus has joined #ruby
<Nilium>
XQuartz is an implementation of it that is probably kind of outdated now
<Nilium>
So you can run stuff that uses X, but it's really, really terrible.
<Nilium>
Most GTK apps ported to OS X require it.
<sam113101>
you'd think apple would come up with something better
<Nilium>
Well, they have their own UI toolkit, desktop manager, etc.
graydot has joined #ruby
graydot has quit [Client Quit]
<Nilium>
It's just not feasible for most people to port their GTK stuff to Cocoa and so on
io_syl has quit [Quit: io_syl]
<Nilium>
Though there is a fork of GTK that's implemented on top of Cocoa, but I don't think that's quite ready for use yet
anay has quit [Remote host closed the connection]
anay has joined #ruby
gildo has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
anay has quit [Remote host closed the connection]
tommyvyo has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
anay has joined #ruby
pygospa has quit [Quit: leaving]
adeponte has quit [Remote host closed the connection]
pygospa has joined #ruby
_Andres has joined #ruby
anay has quit [Read error: Connection reset by peer]
tommyvyo has quit [Client Quit]
anay has joined #ruby
<Guest83731>
I guess I was banned? Error(435): djkljada34343 #ruby-lang Cannot change nickname while banned on channel
nhhagen has quit [Ping timeout: 276 seconds]
mansi_ has joined #ruby
nhhagen has joined #ruby
<bnagy>
Guest83731: you need to register your nick to speak on ruby-lang
maxmanders has joined #ruby
<sam113101>
that has happened to me a few times
ghr has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<Guest83731>
thanks
tommyvyo has joined #ruby
kaspergrubbe has joined #ruby
axeman- has quit [Read error: Operation timed out]
iliketurtles has quit [Quit: zzzzz…..]
smathieu has joined #ruby
YaNakilon has quit [Ping timeout: 246 seconds]
axeman- has joined #ruby
Guest83731 has quit [Remote host closed the connection]
iliketurtles has joined #ruby
sayan has joined #ruby
rippa has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
darth_chatri1 has quit [Read error: No route to host]
mansi_ has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
kizzx2 has quit [Quit: Leaving.]
axeman- has quit [Ping timeout: 264 seconds]
axeman- has joined #ruby
<poseid>
I want to check that a city is not a sequence of numbers
<poseid>
city =~ /^[ \d]/
<poseid>
city =~ /^[ \d]*/
<poseid>
and then check if I have $1 is not working
<poseid>
a better option?
<sam113101>
what?
vince_prignano has quit [Remote host closed the connection]
<poseid>
how to check with a regex that a string are just characters, not digits
mywebcompute_ has joined #ruby
mywebcompute_ has quit [Read error: Connection reset by peer]
d3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<Mon_Ouie>
city !~ /\d/
senayar has joined #ruby
<poseid>
oh, ok
popl has quit [Quit: We must make an idol of our fear, and call it God.]
<poseid>
thanks, that looks nice
niceguyjames has joined #ruby
poseid has left #ruby [#ruby]
poseid has joined #ruby
<sam113101>
wow, I didn't know about !~ (I did know about =~ though)
<sam113101>
is it new?
kizzx2 has joined #ruby
axeman- has quit [Ping timeout: 264 seconds]
zero7 has joined #ruby
<Mon_Ouie>
No. It's nothing fancy, it's just !(city =~ /\d/)
axeman- has joined #ruby
mywebcompute_ has joined #ruby
MrZYX|off is now known as MrZYX
billy_ran_away has quit [Ping timeout: 264 seconds]
<sam113101>
learning new things e-ve-ry-day
mywebcompute_ has quit [Killed (idoru (Spam is off topic on freenode.))]
mywebcompute has quit [K-Lined]
<sam113101>
you never fully know your ruby
adambeynon has joined #ruby
billy_ran_away has joined #ruby
rickmasta has quit [Quit: Leaving...]
kilophoton has quit [Quit: kilophoton]
osvico has quit [Ping timeout: 260 seconds]
axeman- has quit [Ping timeout: 260 seconds]
axeman- has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
billy_ran_away has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
vlad_starkov has joined #ruby
<kizzx2>
sam113101: argh i think i missed, what's that new cool syntax you were talking about?
billy_ran_away has joined #ruby
airlok has joined #ruby
arya__ has joined #ruby
nomenkun has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
nomenkun has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
<sam113101>
kizzx2: !~
airlok has quit [Ping timeout: 264 seconds]
<sam113101>
but I don't think it's new
tvw has joined #ruby
mklappstuhl has joined #ruby
arya_ has quit [Ping timeout: 278 seconds]
chuk has joined #ruby
<kizzx2>
sam113101: so true, i just said "you never fully know your ruby" to myself, too
mansi_ has joined #ruby
TheHodge has joined #ruby
afd__ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
Evixion has quit [Read error: Connection reset by peer]
Gooder` has quit [Read error: Connection reset by peer]
<ghr>
I want to be able to relate the post back to it's blog
<ghr>
(like rails associations)
<ghr>
so `post.blog`
<MrZYX>
so what do you pass to Post.new, what's that called?
jlebrech has joined #ruby
mansi_ has quit [Ping timeout: 245 seconds]
adeponte has quit [Ping timeout: 264 seconds]
<ghr>
I can pass the blog instance, but is that good practice, since blog is going to load posts, each of which contain an instance of blog
<maloik>
I have a search controller that populates arrays of different types of objects (@blogs, @posts, @users for instance), does anyone know how to display that using rabl? I've got no idea so far...
<g0to>
MrZYX, I still don't understand what is this doing if file_name is 18333fig0103 -> file_name.sub(/18333fig0(\d)0?(\d+)\-tn/, '\1.\2')
<maloik>
ehh wrong channel
jorge has quit [Ping timeout: 256 seconds]
rickmasta has joined #ruby
<Mon_Ouie>
g0to: Nothing, because it doesn't match the regular expression
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Mon_Ouie>
Yes, but it isn't needed here (it's the same as if it had been -tn)
hanmac has joined #ruby
<MrZYX>
the author just feared he would create a character range [b-w]
<ghr>
MrZYX ah okay. So that's typical best practice?
bjeanes- has quit [Ping timeout: 245 seconds]
v0apihgt34 has quit [Read error: Connection reset by peer]
<MrZYX>
no, not really. It shows lack of fully understanding regular expressions
v0apihgt37 has joined #ruby
codesoda has quit [Remote host closed the connection]
<ghr>
and not a demeter/srp violation?
<g0to>
MrZYX, great. thanks! So the outpud would be 1.3. Is that correct?
<g0to>
*output
<MrZYX>
yes
trepidaciousMBR has joined #ruby
pupoque_ has quit [Quit: Leaving]
anay has joined #ruby
andikr has quit [Remote host closed the connection]
egh34wz746w has joined #ruby
v0apihgt37 has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
rickmasta has quit [Quit: Leaving...]
andikr has joined #ruby
airlok has joined #ruby
bjeanes has joined #ruby
ewnd9 has quit [Remote host closed the connection]
guilleiguaran_ has joined #ruby
ghr has quit [Read error: Operation timed out]
ewnd9 has joined #ruby
pupoque_ has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
airlok has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 245 seconds]
axeman- has quit [Ping timeout: 246 seconds]
axeman- has joined #ruby
ghr has joined #ruby
stef_204 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DanielRb>
:D
<DanielRb>
:)
dhruvasagar has joined #ruby
zeropx has quit [Quit: has left the room … Or did he?]
pkh has quit [Ping timeout: 276 seconds]
jonahR has quit [Quit: jonahR]
<byprdct>
I wanted to fill in forms for a few websites with mechanize and I was wondering what the best approach for this would be e.g. rake tasks?
mansi_ has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
andikr has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
Gooder``` has joined #ruby
John_Adams has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
anay has quit [Remote host closed the connection]
frem has quit [Ping timeout: 256 seconds]
<epitron>
byprdct: you want to know if they should be rake tasks or standalone scripts?
JohnAdams has quit [Ping timeout: 245 seconds]
John_Adams is now known as JohnAdams
<byprdct>
yes sir :)
<epitron>
need more input
mikecmpbll has joined #ruby
<epitron>
how many forms are you filling out? how often? automatically?
autumn has quit [Ping timeout: 264 seconds]
<epitron>
who's filling them out?
<epitron>
what's in the forms?
rickmasta has joined #ruby
<epitron>
do you want to collect output after filling them out?
mneorr has quit [Remote host closed the connection]
Gooder`` has quit [Ping timeout: 245 seconds]
<epitron>
do you want to trigger filling out the forms based on some database things being added?
<shevy>
epitron would make a good FBI agent
<byprdct>
I want to build an app that fills in forms that my wife is currently doing manually so what I was thinking I would do is create one form in a rails app that would save the data to be used by mechanize for each form. This is where I'm stuck, should I create a different rake task for each form because every website is different put the data enterted will be the same and also should I even be using a rake task for this?
<shevy>
btw is ruby 1.9.x line now discontinued?
<byprdct>
epitron the forms would be filled out many times daily
St_Marx has joined #ruby
<byprdct>
10+ forms
<shevy>
I am asking because my yaml files work with 1.9.x still due to syck, but they won't work with psych, so I cant yet switch to 2.x
autumn has joined #ruby
fess has quit [Ping timeout: 268 seconds]
mansi_ has quit [Ping timeout: 264 seconds]
vikhyat_ has joined #ruby
<epitron>
hmm
<byprdct>
:)
<epitron>
i wouldn't use a rails app for that
vikhyat has quit [Ping timeout: 246 seconds]
<byprdct>
really?
<epitron>
i'd build a browser plugin or something
<epitron>
with a button that tries to guess the fields
<epitron>
then lets you correct them
<hanmac>
shevy how do you parse the yaml files? maybe it helps when you read them with an different encoding?
_bart has quit [Remote host closed the connection]
<epitron>
byprdct: when you say "every website is different", is that a fixed set of websites?
<epitron>
is your tool trying to guess the form fields?
sevenseacat has quit [Quit: Leaving.]
yacks has joined #ruby
<byprdct>
well the data that is entered into each website will be the same about 95% of the time, minor differences but when I say different I was just thinking that by creating different rake tasks for each website would be a good idea just in case one website changed and I had to update the rake task It would break any of the other sites
AndChat| has joined #ruby
<byprdct>
epitron I would know the form fields
vlad_starkov has joined #ruby
Pandee has quit [Ping timeout: 264 seconds]
Skelz0r has quit [Ping timeout: 240 seconds]
<epitron>
shevy: what about your yaml files is breaking psych?
xlogic has joined #ruby
<epitron>
byprdct: but this is a small known set of websites
<epitron>
not an infinite set
<byprdct>
correct
Skelz0r has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
relix has joined #ruby
binw has quit [Read error: Connection reset by peer]
northelks has joined #ruby
blaxter_ has joined #ruby
<byprdct>
epitron would the rake tasks be a good fit for this?
<epitron>
if it's a webapp, that means you'd have to run the rake tasks yourself?
<epitron>
from the commandline?
<shevy>
epitron my yaml files are in some ISO encoding, not UTF, and there are illegal characters in it when psych tries to read it (it assumes they are valid UTF)
<byprdct>
rake has to be run from the command line?
<byprdct>
I didnt know that
<epitron>
ah.. gross
effbiai has quit [Ping timeout: 240 seconds]
<epitron>
wouldn't iconv fix that?
<shevy>
epitron I tried to... let me try to get you the error message I had with it...
<epitron>
byprdct: yeah... maybe what you want is a background job processor?
<epitron>
shevy: is it mixed-encoding?
effbiai has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
"iconv: illegal input sequence at position 7527"
northelks has quit [Read error: Connection reset by peer]
* epitron
arrests shevy
<shevy>
hehe
<shevy>
the newly produced file by iconv is truncated after that error
<epitron>
you have violated the laws of CP237
<shevy>
wait
<epitron>
soo.. is it mixed encoding?
<shevy>
hmmmm
TacitBlue is now known as Tacit_AFK
<shevy>
this is so strange
<epitron>
a really braindead simple way of fixing this, if it's mixed, is to read the yaml file one line at a time in ruby, and try convert each line on each of your possible input formats until one works
<epitron>
then write that out as utf8 to an output file
<shevy>
"file" now tells me that this is UTF-8 Unicode text, but my editor claims it is ISO8859-1 :(
egh34wz746w has quit [Read error: Connection reset by peer]
zero7 has joined #ruby
davidboy has joined #ruby
rndstr has joined #ruby
cam`_ has joined #ruby
karnowski has joined #ruby
egh34wz746w has joined #ruby
<Mon_Ouie>
I wouldn't do it like that though (because that means you have to read the regexp to be able to read the code, usually you can just assume what it's supposed to do based on the context)
egh34wz746w has quit [Read error: Connection reset by peer]
JoeTheGuest has joined #ruby
octarine has joined #ruby
egh34wz746w has joined #ruby
egh34wz746w has quit [Read error: Connection reset by peer]
lemonsparrow has quit [Ping timeout: 250 seconds]
[Neurotic] has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Neomex has joined #ruby
<j416>
Mon_Ouie: true. thanks.
Neomex has quit [Client Quit]
steerio has joined #ruby
<steerio>
hey
<steerio>
anyone familiar with Thor?
mikecmpbll has joined #ruby
timonv has quit [Remote host closed the connection]
kevinykchan has quit [Ping timeout: 256 seconds]
<steerio>
i'd like to pass an array parameter, but the advertised "--option=a b c" doesn't work
<steerio>
(and the whole idea is problematic to begin with, what if i want C to be the first normal argument?)
<steerio>
--option='a b c' also doesn't work; it'll be a sole value "a b c"
jorge has joined #ruby
kevinykchan has joined #ruby
egh34wz746w has joined #ruby
camilasan has quit [Remote host closed the connection]
egh34wz746w has quit [Read error: Connection reset by peer]
S0da has joined #ruby
yshh has quit [Remote host closed the connection]
Czupa has quit [Ping timeout: 264 seconds]
Poloniy has joined #ruby
S0da has quit [Read error: Connection reset by peer]
<gnufied>
okay, try:
egh34wz746w has joined #ruby
<gnufied>
—watchdir foo bar
kevinykchan has quit [Ping timeout: 260 seconds]
j416 has left #ruby ["o/"]
dawkirst has joined #ruby
<gnufied>
should work
BizarreCake has joined #ruby
mansi has joined #ruby
egh34wz746w has quit [Read error: Connection reset by peer]
khushildep has joined #ruby
egh34wz746w has joined #ruby
meghana has joined #ruby
<meghana>
hey
egh34wz746w has quit [Read error: Connection reset by peer]
axeman- has quit [Ping timeout: 264 seconds]
egh34wz746w has joined #ruby
kaspergrubbe has joined #ruby
pygospa has quit [Quit: "restart"]
egh34wz746w has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
kevinykchan has joined #ruby
axeman- has joined #ruby
girija has joined #ruby
<steerio>
gnufied: doesn't, treats the second one as a main argument
<steerio>
gnufied: ERROR: guard start was called with arguments ["bar"]
pygospa has joined #ruby
Iszak has joined #ruby
<gnufied>
sigh, something wrong then
Iszak has quit [Max SendQ exceeded]
<steerio>
the whole idea of passing arrays like that is flawed
camilasan has quit [Remote host closed the connection]
<gnufied>
well it works
<steerio>
apparently it doesn't
<gnufied>
in bundler for example, you can say: bundle install —without test development
camilasan has joined #ruby
Iszak has joined #ruby
girija has left #ruby [#ruby]
<gnufied>
and it won't install gems from test & development groups
<gnufied>
something funny going on with guard
<gnufied>
no idea
airlok has joined #ruby
egh34wz746w has joined #ruby
Iszak has quit [Max SendQ exceeded]
Iszak has joined #ruby
cpruitt_ has joined #ruby
<meghana>
Can somebody give me links of some best ruby tutorials. i am a beginner
BeLucid_ has joined #ruby
Iszak has quit [Max SendQ exceeded]
[1]Encosi has joined #ruby
ssvo_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
BeLucid has quit [Read error: Connection reset by peer]
atno has joined #ruby
moos3_ has joined #ruby
yacks has joined #ruby
cj3kim has joined #ruby
Iszak has joined #ruby
PsiCat has left #ruby [#ruby]
Iszak has quit [Max SendQ exceeded]
r0bby has joined #ruby
moos3 has quit [Ping timeout: 245 seconds]
moos3_ is now known as moos3
tobyo1 has joined #ruby
<steerio>
gnufied: it works, until your command doesn't need positional arguments :)
PsiCat has joined #ruby
<steerio>
gnufied: and then it becomes ambiguous. i think something like that is the case here
tobyo has quit [Ping timeout: 248 seconds]
ssvo has quit [Ping timeout: 256 seconds]
hanmac has quit [Quit: Leaving.]
<gnufied>
I usually prefer subcommand to be first argument
cpruitt has quit [Ping timeout: 264 seconds]
cpruitt_ is now known as cpruitt
atyz has quit [Ping timeout: 248 seconds]
<gnufied>
for example: bundle —without dev test install will be surely amgbiuous
Domon has quit [Remote host closed the connection]
Encosi has quit [Ping timeout: 245 seconds]
[1]Encosi is now known as Encosi
<gnufied>
usually CLI option parsers handle that
robbyoconnor has quit [Ping timeout: 264 seconds]
<steerio>
apparently guard takes a different approach
camilasan has quit [Ping timeout: 245 seconds]
<steerio>
though the error message comes from thor
airlok has quit [Ping timeout: 248 seconds]
LMolr has quit [Ping timeout: 260 seconds]
<dawkirst>
I'm curious, how many people opt to develop in a virtual machine?
nhhagen has joined #ruby
meghana has quit [Quit: Leaving]
hanmac has joined #ruby
poga has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
vikhyat has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
relix has joined #ruby
browndawg has joined #ruby
gildo has quit [Ping timeout: 268 seconds]
kizzx2 has quit [Quit: Leaving.]
pranny has quit [Quit: Leaving.]
tj_ has left #ruby [#ruby]
atno has quit [Remote host closed the connection]
pallavi has joined #ruby
realDAB has joined #ruby
cads has joined #ruby
mansi has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ghr>
dawkirst I do for applications
egh34wz746w has quit [Read error: Connection reset by peer]
<ghr>
(not so much for libraries)
egh34wz746w has joined #ruby
<dawkirst>
ghr, what's the reason? Is it so you can control the app environment?
ewnd9 has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
<ghr>
Yeah. I know that the application is being developed on the same system as the target deployment system (or, as close as practical)
dhruvasagar has quit [Ping timeout: 248 seconds]
<dawkirst>
Also, do you develop apps in virtual machines as a rule? Is it considered effective? (I'm new to programming, so I don't have a clear reference)
<dawkirst>
That makes sense.
egh34wz746w has quit [Read error: Connection reset by peer]
egh34wz746w has joined #ruby
<ghr>
It's also nice that you can trash the environment rather than worrying about "messing up my setup"
ewnd9 has joined #ruby
<ghr>
We also use automated configuration management (Ansible) so the playbooks can be used in all environments to create the system (dev, test, live, etc)
<dawkirst>
That's exactly that - "messing up my setup"
mansi has quit [Remote host closed the connection]
<ghr>
I'm considering doing *all* dev in a VM
mansi has joined #ruby
egh34wz746w has quit [Read error: Connection reset by peer]
egh34wz746w has joined #ruby
<dawkirst>
Ansible similar to Puppet and Chef?
LMolr has joined #ruby
<ghr>
yeah
egh34wz746w has quit [Read error: Connection reset by peer]
<dawkirst>
I'm seriously considering that as well
<dawkirst>
I've heard mention of vagrant as well, would that be worth looking into?
intuxicated has joined #ruby
<ghr>
Yes, I use Vagrant which makes all of this *much* easier
<ghr>
you just git clone && vagrant up && vagrant ssh and you're away
<dawkirst>
Awesome
mordonez has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
<mordonez>
Hi guys
<mordonez>
I am having troubles trying to compile the assets
<quickycoder>
I would like to build a Machine Learning library like Weka for ruby. Does it sound a good thing to do ? Will it be helpful to people?
tgunr has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
sevenseacat has left #ruby [#ruby]
pen has joined #ruby
LucidDreamZzZ has joined #ruby
Kricir has quit [Remote host closed the connection]
wallerdev has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
airlok has joined #ruby
ehc has joined #ruby
jbpros has quit [Quit: jbpros]
ghr has joined #ruby
<aedorn>
quickycoder: Anything you make could be helpful. I think there's a couple out there in terms of machine learning that have been started already, too.
anay has joined #ruby
akells` has joined #ruby
kpshek has joined #ruby
<quickycoder>
Yes, there exist few gems but kind of old and with very basic functionalities
mary5030 has joined #ruby
Kricir has joined #ruby
jorge_ has joined #ruby
<quickycoder>
I just wanted to have opinion from ruby community if it is worth doing. As, there is always option to use Weka with Jruby.
ananthakumaran has joined #ruby
gildo has joined #ruby
realDAB has quit [Quit: realDAB]
airlok has quit [Ping timeout: 264 seconds]
acrussell has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
jorge_ has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ExxKA has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
sam19113_ has joined #ruby
rhys has joined #ruby
JZTech101 has joined #ruby
sam19113 has quit [Ping timeout: 248 seconds]
sam19113_ is now known as sam19113
bean has quit [Quit: Leaving]
pentameter has joined #ruby
lnormous has joined #ruby
h4mz1d has joined #ruby
joshsmith has joined #ruby
tomzx_mac has joined #ruby
yhsgw has joined #ruby
freeayu has quit [Remote host closed the connection]
niceguyjames has joined #ruby
jgood has joined #ruby
yhsgw has quit [Remote host closed the connection]
guiocava_ has joined #ruby
GeissT has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
guiocava_ has quit [Remote host closed the connection]
guiocavalcanti has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
browndawg has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
stonevil has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
tgunr has quit [Quit: Nity nite]
k610 has joined #ruby
asobrasil has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Megtastique has joined #ruby
Mathieu has joined #ruby
cads has joined #ruby
tjbiddle has joined #ruby
sambao21 has joined #ruby
kpshek has quit []
pitzips has joined #ruby
kobain has joined #ruby
Kricir has quit [Remote host closed the connection]
tomzx_mac has quit [Read error: Operation timed out]
filipe_ has quit [Read error: Connection reset by peer]
ssvo has quit [Read error: Operation timed out]
smathieu has joined #ruby
ExxKA has left #ruby ["Leaving"]
mklappstuhl has quit [Remote host closed the connection]
k610 has quit [Quit: Leaving]
Xeago has joined #ruby
mneorr has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
tyoc213 has joined #ruby
camilasan has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<tyoc213>
I have self.thing(arg1, arg2, arg3) which I used in my code and was working OK, now I want to change it to self.thing(arg1, arg2, arg3, extra1=0, extra2=0) but the places where it was called shows: NameError: undefined local variable or method
<tyoc213>
are "default" arguments not supported in self.methods ?
guiocava_ has joined #ruby
guiocavalcanti has quit [Ping timeout: 246 seconds]
jefflyne has joined #ruby
Voodoofish430 has joined #ruby
teddyp1cker has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 256 seconds]
carlyle_ has quit [Remote host closed the connection]
stopbit has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
havenwood has joined #ruby
markalanevans has quit [Quit: markalanevans]
amh345 has joined #ruby
Es0teric has joined #ruby
zeel has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
marcdel has joined #ruby
m8 has quit [Quit: Sto andando via]
ebobby has joined #ruby
ebobby has left #ruby [#ruby]
<amh345>
I'm trying to write an xml file with Open3.popen3. i kept getting an error "\xC3" on US-ASCII which had me stumped until i found the string. basically it's got an accent > é . how can i escape that so it doesn't cause everything to choke and die?
efrainolivares has quit [Quit: efrainolivares]
coder_neo has joined #ruby
frotto has joined #ruby
robscomputer has joined #ruby
freerobby has joined #ruby
akashj87_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<amh345>
the xml file is being constructed with x = ERB.new(<<END).result(binding)
guiocava_ is now known as guiocavalcanti
LMolr has quit [Ping timeout: 246 seconds]
akashj87 has quit [Ping timeout: 240 seconds]
devoldmx3 has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx has joined #ruby
adeponte has joined #ruby
xavier23 has joined #ruby
sam19113 has quit [Quit: sam19113]
ebobby has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
bradhe has joined #ruby
Zai00 has quit [Quit: Zai00]
h4mz1d has quit [Ping timeout: 260 seconds]
akashj87__ has joined #ruby
devoldmx27 has joined #ruby
cj3kim has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
freerobby has quit [Quit: Leaving.]
akashj87_ has quit [Ping timeout: 240 seconds]
<amh345>
got it. stdin.write x.force_encoding("utf-8")
devoldmx3 has quit [Ping timeout: 256 seconds]
utdemir has quit [Remote host closed the connection]
akashj87_ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
devoldmx has joined #ruby
Eiam has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
swordsmanz has joined #ruby
Pandee has quit []
maxmanders has quit [Quit: Computer has gone to sleep.]
akashj87__ has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
rodacato has joined #ruby
akells` has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
akashj87_ has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
vlad_sta_ has joined #ruby
devoldmx27 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
brianpWins has quit [Quit: brianpWins]
noname001 has joined #ruby
dawkirst has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
anay has quit [Remote host closed the connection]
afsjlkj343u0 has joined #ruby
hakunin_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
hakunin has joined #ruby
twoism has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<shevy>
ugh
akells` has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
spider-mario has joined #ruby
Megtastique has quit [Quit: Megtastique]
iliketurtles has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
robscomputer has joined #ruby
spider-mario has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
wmoxam_ has quit [Ping timeout: 246 seconds]
hakunin has quit [Ping timeout: 240 seconds]
_honning_ has joined #ruby
saarinen has joined #ruby
akashj87 has quit [Ping timeout: 240 seconds]
DanKnox_away is now known as DanKnox
efrainolivares has joined #ruby
obs has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
Xeago_ has joined #ruby
marcdel has joined #ruby
gnuyoga has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
saarinen has quit [Client Quit]
troessner has quit [Quit: Leaving]
chrisja has joined #ruby
codecop has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
jerius has joined #ruby
saarinen has joined #ruby
vince_prignano has quit [Remote host closed the connection]
jlebrech has quit [Quit: Konversation terminated!]
JZTech101 has quit [Ping timeout: 276 seconds]
aganov has quit [Remote host closed the connection]
tkuchiki has joined #ruby
zeropx has joined #ruby
Xeago_ has quit [Ping timeout: 256 seconds]
thomasle_ has joined #ruby
spidergears has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
endash has joined #ruby
c0rn has joined #ruby
Appineer has joined #ruby
helvete has joined #ruby
ferdev has quit [Quit: ferdev]
Appineer has left #ruby [#ruby]
maasdesigner1 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
yacks has joined #ruby
noop has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
noop has quit [Client Quit]
cj3kim has joined #ruby
PsiCat has quit [Read error: Connection reset by peer]
noop has joined #ruby
jerius has quit [Quit: jerius]
ksmth has joined #ruby
RichardBaker has joined #ruby
tjbiddle has joined #ruby
Kricir has joined #ruby
JZTech101 has joined #ruby
h4mz1d has joined #ruby
krz has quit [Quit: krz]
Al__ has quit [Quit: Al__]
maasdesigner1 is now known as maasdesigner
efrainolivares has left #ruby [#ruby]
afd___ has quit [Quit: No Ping reply in 180 seconds.]
reset has joined #ruby
afd__ has joined #ruby
krz has joined #ruby
noop has quit [Ping timeout: 260 seconds]
Uranio has joined #ruby
anonymuse has quit [Remote host closed the connection]
lebek has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
iliketurtles has joined #ruby
mrsolo has joined #ruby
tk_ has quit [Quit: ばいばい]
Kricir has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
anay has joined #ruby
quickycoder has quit [Ping timeout: 256 seconds]
jorge_ has quit [Remote host closed the connection]
Zai00 has joined #ruby
jorge_ has joined #ruby
krz has quit [Quit: krz]
ferdev has joined #ruby
c0rn has joined #ruby
spidergears has quit [Read error: Connection reset by peer]
LMolr has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
ebanoid has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
hakunin has joined #ruby
bradhe has joined #ruby
gemmy has joined #ruby
airlok has joined #ruby
gemmy has quit [Client Quit]
Spami has joined #ruby
Speed has joined #ruby
krz has joined #ruby
saarinen has quit [Quit: saarinen]
gemmy has joined #ruby
browndawg has left #ruby [#ruby]
jorge_ has quit [Ping timeout: 248 seconds]
gemmy has quit [Client Quit]
trepidaciousMBR has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
gemmy has joined #ruby
ahawkins has joined #ruby
chimkan has quit [Read error: No route to host]
airlok has quit [Ping timeout: 248 seconds]
geekbri has joined #ruby
Matriks has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 248 seconds]
nomenkun has quit [Remote host closed the connection]
sepp2k has joined #ruby
akells` has joined #ruby
spidergears has joined #ruby
mityaz has joined #ruby
eldariof has joined #ruby
v1rr3n has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
Zai00 has quit [Quit: Zai00]
maxmanders has joined #ruby
cdelo has joined #ruby
guiocavalcanti has quit [Read error: No route to host]
druonysus has quit [Remote host closed the connection]
Elhu has joined #ruby
wallerdev has quit [Quit: wallerdev]
ebobby has quit [Read error: Connection reset by peer]
guiocavalcanti has joined #ruby
akells` has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
AlSquire has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
ebobby has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
akells` has joined #ruby
maxmanders has joined #ruby
havenwood has joined #ruby
<tjbiddle>
Hey guys - I can't seem to find it anywhere. For to_proc - Does 'Proc' actually stand for anything?
ahawkins has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
afsjlkj343u0 has quit [Remote host closed the connection]
carlyle has joined #ruby
noop has joined #ruby
mneorr has joined #ruby
<Kelet>
tjbiddle, procedure
soulcake has joined #ruby
<Kelet>
Although the concept of a 'proc' in Ruby is sort of disconnected as compared with the concept of a 'procedure' in a language like Pascal.
cj3kim has quit [Read error: Connection reset by peer]
<tjbiddle>
Kelet: I'll be sure to read up on that, thank you!
bradhe has joined #ruby
jonathanwallace has joined #ruby
atmosx has joined #ruby
cj3kim has joined #ruby
muslimasry has joined #ruby
colonolGron has joined #ruby
Kricir has joined #ruby
muslimasry has quit [Killed (idoru (Spam is off topic on freenode.))]
yacks has quit [Quit: Leaving]
Myconix_ has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
<tjbiddle>
For whatever reason the syntax for some topics relating to Proc are hard for me to grasp. Anyone recommend a good source that explains it well?
akells` has quit [Remote host closed the connection]
trepidaciousMBR has quit [Ping timeout: 264 seconds]
jnoob22 has quit [Remote host closed the connection]
niklasb has joined #ruby
noop has quit [Ping timeout: 240 seconds]
mneorr_ has joined #ruby
krz has quit [Quit: krz]
anay has quit [Remote host closed the connection]
LMolr has quit [Read error: Operation timed out]
trepidaciousMBR has joined #ruby
rickruby has joined #ruby
hamakn has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<zendeavor>
it's a bit buggy atm though
<havenwood>
invsblduck: Installing chruby and ruby-install should do the trick. Then just: ruby-install ruby 1.9.3
<invsblduck>
havenwood: rad, thank you.
<havenwood>
invsblduck: To get latest 1.9.3 patchlevel ^
fantazo has joined #ruby
maxmanders has joined #ruby
Sammael has joined #ruby
<invsblduck>
havenwood: zendeavor currently i have ruby-1.9 installed from aur (which names executables ruby-1.9, gem-1.9, etc). i'm going to do this right!
ffio_ has joined #ruby
<spider-mario>
pacaur uses cower as well
<spider-mario>
I like pacaur
<zendeavor>
meat is the most sane cower wrapper, and cower is the most sane aur-helper
kirun has joined #ruby
<invsblduck>
+1
ffio has quit [Ping timeout: 264 seconds]
<invsblduck>
never personally used pacaur though
<zendeavor>
it's passable.
hormonel has quit [Ping timeout: 240 seconds]
<invsblduck>
zendeavor: better than bannable :)
<zendeavor>
i lied about that, yaourt *almost* isn't complete garbage anymore
pskosinski has quit [Remote host closed the connection]
<zendeavor>
it would be preferable if we could banish it from every arch tutorial and recommendation list on the WWW though
<havenwood>
haha
<shevy>
hehehe
guiocavalcanti has quit [Ping timeout: 276 seconds]
poga has joined #ruby
<zendeavor>
for several years, yaourt was *really* effing bad. like, #archlinux had daily reports of "i -Syu and my system broke!!!! arch is so broken!!!"
guiocavalcanti has joined #ruby
<zendeavor>
when in fact it was yaourt, which they had aliased `pacman=yaourt'
<shevy>
where were we if we would not have package managers ...
<zendeavor>
yaourt is just a pacman wrapper
<zendeavor>
pacman is the only package manager on arch
<atmosx>
yaourt is a greek variant for yogurt
sambao21 has joined #ruby
<atmosx>
get your facts straight kids
<atmosx>
brb
<zendeavor>
it's also a french bash script
Megtastique has joined #ruby
<invsblduck>
hahaha
<atmosx>
how can a bash script be French?
airlok has joined #ruby
<zendeavor>
it originated in france?
<atmosx>
oh
<atmosx>
tha
<atmosx>
t
ffio_ has quit [Quit: WeeChat 0.4.1]
<atmosx>
but if it's originated in France but it's written in English by a Russian guy with Brazilian mother?
<atmosx>
brb
<MrZYX>
hm, never had an issue with yaourt
Speed has quit [Ping timeout: 240 seconds]
<zendeavor>
oh the *biggest* problem with yaourt still remains; it's distributed in an unofficial repository [archlinux.fr], which also is full to the brim with unmaintained, broken, old, outdated *official* packages and _also_ pre-built aur packages
<zendeavor>
they don't sync with the tier-ones
<shevy>
that's it
<shevy>
I am going back to windows
<zendeavor>
bye
devth has joined #ruby
<MrZYX>
well, I always build it from the aur by hand on a fresh arch
<zendeavor>
and for the competent user, yaourt is perfectly suitable as long as you're vigilant.
<devth>
anyone aware of a json api for ruby docs? kinda surprised it's not built in to ruby-doc.org
<zendeavor>
it's the "noobs" that cause the problem.
<shevy>
noobs vs. wise people is a function of the invested time
motto has joined #ruby
chrisja has quit [Quit: leaving]
henn has joined #ruby
<zendeavor>
hence, "quotes"
<MrZYX>
well, noobs vs. arch almost always cause problems
jlast_ has joined #ruby
<zendeavor>
yet they flock to us
<MrZYX>
not sure I'd blame yaourt
<zendeavor>
huh?
<shevy>
they should just use ubuntu
pskosinski has joined #ruby
<aedorn>
They should use Slackware.
<zendeavor>
no, no one blames yaourt anymore; there was a time in the past when it *was* to blame, but that time has past
<zendeavor>
s/past$/gone/
m8 has quit [Ping timeout: 240 seconds]
<MrZYX>
you kinda did earlier :P
airlok has quit [Ping timeout: 276 seconds]
<zendeavor>
in times of yore, that was a serious problem.
mansi has quit [Read error: Connection reset by peer]
<zendeavor>
yaourt has always been advertised as a great alternative to using pacman directly; back as few as 2 years ago, it could potentially murder your system and package database
mansi has joined #ruby
suffix_ has joined #ruby
<zendeavor>
and often did; whose fault? surely the invoking user, right?
<suffix_>
is it possible to grep for a large body of text?
marcdel has joined #ruby
<suffix_>
(like, severa.l dozen lines)
<zendeavor>
grep is kinda single line-based
<MrZYX>
but what's the point if it's working good now?
xlogic has quit [Remote host closed the connection]
<MrZYX>
arch users living in the past are so confusing...
efrainolivares has quit [Quit: efrainolivares]
jorge_ has joined #ruby
<suffix_>
so what can I do to search for several dozen lines?
<zendeavor>
no one's in the past here pal
<aedorn>
As confusing as FreeBSD users?
<zendeavor>
pacman wrappers are still a bad idea, forever.
<zendeavor>
that means today too.
jlast has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
breakingthings has quit [Quit: breakingthings]
<invsblduck>
aedorn: <3 FreeBSD.
<shevy>
suffix_ try .grep or .match
<MrZYX>
yet all your arguments are "two years ago yaourt was bad"
Kricir has joined #ruby
<MrZYX>
therefore don't use it today
<shevy>
suffix_ or .scan :D
<suffix_>
shevy someone just said grep was for single lines
<zendeavor>
this is side commentary
freerobby has joined #ruby
<zendeavor>
"don't use it today" is valid, because pacman wrappers are always and forever a Bad Idea™
<aedorn>
invsblduck: It's great. It's also the only OS where the idea of simplifying something is usually rejected in favor of a more complex solution. MPD4 vs MPD5 is a good comparison for that.
<shevy>
suffix_ you can use multiline regexes in .grep
Mattix has joined #ruby
<shevy>
suffix_ best, give a minimal example that you need
cj3kim has quit [Read error: Connection reset by peer]
Rylai has joined #ruby
Rylai has quit [Changing host]
marcgg has quit [Ping timeout: 264 seconds]
bradsmith has quit [Remote host closed the connection]
cj3kim has joined #ruby
<aedorn>
And it's further scary that using php to configure a FreeBSD system is actually easier than the regular FreeBSD install is.
johnnyfuchs has quit [Remote host closed the connection]
<zendeavor>
"why not to use yaourt" is because it has an awful track record and been historically fragile; as a result, i must err on the side of caution and say for simplicity's sake, don't use yaourt
<zendeavor>
don't put words in my mouth man, it's not polite.
spidergears has quit [Remote host closed the connection]
havenwood is now known as zendeaver
spidergears has joined #ruby
<zendeaver>
I would never!
<shevy>
lol
<suffix_>
shevy ?
<invsblduck>
hah
zendeaver is now known as havenwood
<shevy>
suffix_, no that was a reply to havenwood
<suffix_>
ok, so what should I do
<shevy>
suffix_ I cant open the pastie right now, I somehow broke both firefox and chrome ...
<aedorn>
I wish my problem was something Ruby related... I'm so tired of troubleshooting random system instability due to motherboard problems nobody can track down.
jbpros has joined #ruby
alvaro_o has joined #ruby
Tacit_AFK is now known as TacitBlue
<shevy>
aedorn yeah
nomenkun has joined #ruby
DanKnox is now known as DanKnox_away
hamcore has quit [Ping timeout: 260 seconds]
elepedus has joined #ruby
efrainolivares has quit [Client Quit]
<invsblduck>
aedorn: last time i touched a mobo was in a $20k HP server 4 years ago :P
DanKnox_away is now known as DanKnox
bradsmith has joined #ruby
<invsblduck>
aedorn: i forgot those things even existed ;p
Trynemjoel has joined #ruby
<invsblduck>
aedorn: that sucks
teddyp1cker has quit [Ping timeout: 256 seconds]
<invsblduck>
i think the last time i had a mb problem on my pc was in the 90's
Kricir has quit [Remote host closed the connection]
bradsmith has quit [Remote host closed the connection]
<invsblduck>
suffix_: checksum?
nomenkun has quit [Ping timeout: 260 seconds]
<suffix_>
invsblduck what's the complexity of that operation>?
vikhyat has joined #ruby
acrussell has quit [Quit: Leaving.]
<devth>
havenwood: thanks, but i meant a json api to look up things in ruby docs
<invsblduck>
suffix_: require 'digest/md5'; sum = Digest::MD5.hexdigest(block_of_text);
<invsblduck>
suffix_: or some crap like that
<suffix_>
invsblduck what is the running complexity of that operation
<havenwood>
devth: Ooooh, I couldn'ta been much further off, ha.
<invsblduck>
suffix_: but i don't know what you're trying to do; that could be a horrible idea.
Zai00 has joined #ruby
dayepa has quit [Read error: Connection reset by peer]
<havenwood>
suffix_: this == that
<invsblduck>
suffix_: if you're trying to manage file contents (configuration management), the general procedure is: Verify the file checksum, then replace the file contents if the checksum is wrong.
<suffix_>
I need to check a log file to see if the proper output exists
<suffix_>
I do not need to check every value in the log
Nisstyre-laptop has joined #ruby
<suffix_>
so checksum will not work
breakingthings has joined #ruby
<havenwood>
suffix_: So you want to see if the log includes a particular substring?
m8 has joined #ruby
<suffix_>
several substrings
<suffix_>
over 20
<invsblduck>
suffix_: then just use a multiline regex
bradsmith has joined #ruby
archer1234 has joined #ruby
<suffix_>
invsblduck example?
shayonj has joined #ruby
shayonj has left #ruby ["skydiving..."]
hamcore_ is now known as hamcore
hamcore has quit [Changing host]
hamcore has joined #ruby
BizarreCake has quit [Ping timeout: 248 seconds]
<invsblduck>
suffix_: use the /m and/or /s modifiers
<havenwood>
suffix_: does it have to include all substrings or just one?
<suffix_>
havenwood all
<suffix_>
invsblduck I am reading that one
Es0teric has quit [Quit: Computer has gone to sleep.]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<suffix_>
why are there two sets of parenthesis here message.match(/(From:.*Subject.*?)\n/m)[1]
NealJ has joined #ruby
<aedorn>
suffix_: So it retains the match as a back reference
<suffix_>
aedorn what does that *mean*
<invsblduck>
suffix_: man perlretut
akells` has quit [Remote host closed the connection]
<invsblduck>
/Backreferences
<suffix_>
why would I ever do such a thing. I DON"T WANT TO READ MORE THAN I HAVE TO JUST TELL ME JESUS CHRIST I FUCKIGN HATE IT WHEN PEOPLE DO THAT STUPID MAN / GOOGLE SHIT
elaptics is now known as elaptics`away
invsblduck has left #ruby ["WeeChat 0.3.7"]
<aedorn>
It means that it matches that pattern and stores it into a variable
<zendeavor>
oh?
Es0teric has joined #ruby
<suffix_>
thank you
<zendeavor>
"stop trying to teach me, just feed me results"
* havenwood
blinks.
LMolr has joined #ruby
<suffix_>
that's such a piss poor assumption
<tjbiddle>
suffix_: It won't be stupid when you learn it more in depth and can help contribute back later and/or ask less questions in the future.
TheHodge has quit [Ping timeout: 246 seconds]
the_mentat has quit [Ping timeout: 246 seconds]
NealJ has quit [Remote host closed the connection]
ayonix has quit [Quit: No Ping reply in 180 seconds.]
cam`_ has quit [Ping timeout: 246 seconds]
nfk has quit [Remote host closed the connection]
Dreamer3 has quit [Ping timeout: 246 seconds]
zero7 has quit [Ping timeout: 246 seconds]
niftylettuce has quit [Ping timeout: 246 seconds]
gsvolt has quit [Quit: No Ping reply in 180 seconds.]
Evan_Donovan has quit [Read error: Connection reset by peer]
dnyy has quit [Ping timeout: 246 seconds]
rondale_sc has quit [Ping timeout: 246 seconds]
wildcard0 has quit [Ping timeout: 246 seconds]
h8R has quit [Ping timeout: 246 seconds]
flagg0204 has quit [Ping timeout: 246 seconds]
choobie has quit [Ping timeout: 246 seconds]
zacts has quit [Ping timeout: 246 seconds]
anderson has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 246 seconds]
jotony has quit [Ping timeout: 246 seconds]
Columcille has quit [Ping timeout: 246 seconds]
elektronaut has quit [Ping timeout: 246 seconds]
sambao21 has quit [Ping timeout: 246 seconds]
avril14th has quit [Ping timeout: 246 seconds]
heftig has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
maasdesigner has quit [Remote host closed the connection]
gemmy has quit [Ping timeout: 246 seconds]
Beoran__ has quit [Ping timeout: 246 seconds]
BRMatt has quit [Ping timeout: 246 seconds]
thesheff17 has quit [Ping timeout: 246 seconds]
<shevy>
suffix_ one of these () seems to be a capture group, so it should store the match in the variable $1
<suffix_>
I'm learning the specific material i need to accomplish this goal. I could give a fuck less about information that is unnecessary to completing my goal
sambao21 has quit [Quit: Computer has gone to sleep.]
rambler has joined #ruby
vince_prignano has joined #ruby
Olipro has joined #ruby
<mechanicalduck_>
oh
noname001 has joined #ruby
Demo_of_doom_ has joined #ruby
noname001 has quit [Excess Flood]
jaynewstrom has joined #ruby
<mechanicalduck_>
ah right
<mechanicalduck_>
x86_64-linux
<mechanicalduck_>
this means it can run 64bit and also for compatibility 32bit
airlok has quit [Remote host closed the connection]
<mechanicalduck_>
OK
<mechanicalduck_>
what is a gemset
<mechanicalduck_>
I mean, there is a plugin for gemsets for rbenv
<mechanicalduck_>
Is it something artificial shimlike? Or is it a native ruby construct?
<Demo_of_doom_>
why do you guys dislike PHP?
Kelet has joined #ruby
<zendeavor>
php-sadness
<banisterfiend>
Demo_of_doom_: I havne't used it, but from what i've heard and seen it appears to be a poorly designed language with an ecosystem populated primarily by amateurs
<havenwood>
Demo_of_doom_: I more disregard PHP than dislike it.
geekbri has quit [Remote host closed the connection]
noname001 has joined #ruby
<mechanicalduck>
Ah, and of course puppet
kumarat9pm has quit [Quit: Leaving.]
<zendeavor>
nuuuuu puppet
<mechanicalduck>
you also want to manage your infrastructure, a good base
l33_ has quit [Remote host closed the connection]
<mechanicalduck>
zendeavor: bash scripts? yikes
<zendeavor>
chef?
<MrZYX>
it's his first language, do you really think he needs to manage any infrastructure with it... (I hope not)
<mechanicalduck>
but don't try Zend Framework
<zendeavor>
not at all
sepp2k has quit [Ping timeout: 276 seconds]
<mechanicalduck>
they will hurt you, in that channel for Zend Framework you will be reported if you ask too much
<havenwood>
Chef and Puppet are for fancy big city folk!
Notte has joined #ruby
yacks has joined #ruby
<tjbiddle>
I need to find some time to play around with Chef - But I do contract DevOps as well as lead it for my employer currently - So if you need any help with Puppet let me know Demo_of_doom_ :-)
frotto has quit [Ping timeout: 240 seconds]
<tjbiddle>
Also the guys in #puppet are awesome :-)
<zendeavor>
will you subcontract me
Emmy is now known as emmy
<mechanicalduck>
havenwood: I am still new to puppet, but I like it very much that one can rebuilt the infrastructure with all those best practice additions (hardening, removing junk, etc).
<tjbiddle>
zendeavor: PM me details
<mechanicalduck>
havenwood: you know, when you freshly installed a box you start tidying it up, making it more secure. and all this would have to be repeated if you have to rebuild / migrate it. But when using puppet you can document your changes and it would apply them for you.
<zendeavor>
i don't have any details
<Demo_of_doom_>
thanks for the info, so is puppet for php or ruby?
nbouscal has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
<havenwood>
mechanicalduck: Aye, i've started studying up a bit but am still manually doing my EC2 instances like the olden days. :O I've started playing around but not using either in production yet.
end_guy has quit [Ping timeout: 240 seconds]
<mechanicalduck>
puppet is for setting a system up. scm = software configuration management. it is responsible for installing e.g. a webserver (apache2) and its modules (php) and database (mysql) and the user stuff etc
<MrZYX>
Demo_of_doom_: don't care about puppet right now
<havenwood>
Demo_of_doom_: Puppet and Chef are DevOps stuff. They happen to use Ruby, but they are for deploying anything at all.
<havenwood>
+1 don't care right now
<mechanicalduck>
Demo_of_doom_: right, it is only possible having shell access.
<mechanicalduck>
Demo_of_doom_: probably you already got some management software installed, so you should concentrate on the basic stuff first.
LucidDreamZzZz has quit [Ping timeout: 240 seconds]
<mechanicalduck>
Demo_of_doom_: http basics, html, semantics, stylesheets, javascript, progressive enhancements, fallbacks and all this funny ui stuff
vlad_starkov has joined #ruby
end_guy has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<havenwood>
Demo_of_doom_: TryRuby.org is a great start!
jlast_ has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
<mechanicalduck>
Who knows Zend Framework (1/2)?
rismoney has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
<MrZYX>
Demo_of_doom_: +1 to tryruby.org, that should give you the syntax basics. Then try the ruby koans. after that try to think of a task you do regularly and try to use ruby to automate it
mahmoudimus has joined #ruby
jlast has joined #ruby
ner0x has quit [Quit: Leaving]
Morrolan has quit [Remote host closed the connection]
<tjbiddle>
Demo_of_doom_: Before you worry about anything for managing infrastructure - if you get into any webapps then check out Heroku. You get a free dyno to host on so long as you don't scale above that.
<tjbiddle>
That way you can just play around with things without having to iron out all the specifics.
<mechanicalduck>
Heroku, can one also install a local Heroku?
blackmesa has joined #ruby
<MrZYX>
heroku just starts your appserver
<havenwood>
Demo_of_doom_: And don't forget Sinatra when you want to start with web apps: http://www.sinatrarb.com
jnoob22 has joined #ruby
DrCode has joined #ruby
<tjbiddle>
mechanicalduck: Eh? Wouldn't really see the point.
<havenwood>
mechanicalduck: You just run your web server locally.
<tjbiddle>
mechanicalduck: I mean sure - You can spin up rails or whatever in production mode, setup a reverse proxy in nginx to that port and voila
<havenwood>
Puma, Unicorn, Thin, whatever
jnoob22 has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 245 seconds]
<mechanicalduck>
so Heroku is a collection of lx containers + reverse proxy in front?
<havenwood>
Nginx and Unicorn sitting in a tree, K-I...
sambao21 has quit [Quit: Computer has gone to sleep.]
jnoob22 has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
jnoob22 has joined #ruby
thesheff17 has joined #ruby
JumpMast3r has joined #ruby
gemmy has joined #ruby
<mechanicalduck>
lol
tyoc213 has quit [Read error: Connection reset by peer]
poga has joined #ruby
nitish has quit [Remote host closed the connection]
thiagoalessio has joined #ruby
kpshek has joined #ruby
Elhu has joined #ruby
<bricker>
Why does 'nil' give a different error for #id than 'true' or 'false'?
realDAB has quit [Quit: realDAB]
Kricir has joined #ruby
thiagoalessio has quit [Client Quit]
splittingred has quit [Quit: splittingred]
<MrZYX>
because you use rails 3, most likely
mrsolo has quit [Quit: This computer has gone to sleep]
pipework has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
rismoney has joined #ruby
sambao21 has joined #ruby
<bricker>
Oh you're right, I forgot I am in a rails console
mrsolo has joined #ruby
reset has quit [Quit: Leaving...]
emmy is now known as Emmy
<xybre>
bricker: activesupport-3.2.13/lib/active_support/whiny_nil.rb @ line 20
colonolGron has joined #ruby
<MrZYX>
18>> nil.id
<eval-in>
MrZYX => /tmp/execpad-bdab5b50614b/source-bdab5b50614b:2: warning: Object#id will be deprecated; use Object#object_id ... (https://eval.in/40379)
realDAB has joined #ruby
<MrZYX>
heh
ewnd9 has quit [Ping timeout: 240 seconds]
c0rn has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<tjbiddle>
xybre: Oh that's really cool! Not sure if it's necessary - but I like the syntactic sugar on it :)
`MArceLL` has joined #ruby
eldariof has quit [Ping timeout: 260 seconds]
tatsuya_o has joined #ruby
TheHodge has joined #ruby
<xybre>
tjbiddle: look at the souce its pretty small and is really clearly written, it pretty much just encapsulates what you're doing and adds a couple of features.
`Chris` has quit [Read error: Connection reset by peer]
_helloworld_ has joined #ruby
`Chris` has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
hellome has quit [Remote host closed the connection]
spidergears has quit [Ping timeout: 276 seconds]
kirun has quit [Quit: Client exiting]
jefflyne has joined #ruby
hellome has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
davehimself has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chuk has joined #ruby
dankest has joined #ruby
dankest has quit [Client Quit]
zeropx has joined #ruby
noname001 has quit [Ping timeout: 240 seconds]
itcharlie has left #ruby [#ruby]
jnoob22 has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
_helloworld_ has quit [Remote host closed the connection]
Cyrus has joined #ruby
havenwood has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
popl has joined #ruby
Krajsnick has joined #ruby
eoinkelly has joined #ruby
Demo_of_doom_ has quit [Remote host closed the connection]
akells` has joined #ruby
kobain has quit [Ping timeout: 264 seconds]
noyb has quit [Ping timeout: 240 seconds]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
[Neurotic] has joined #ruby
yhsgw has quit [Quit: Leaving.]
bluehavana has joined #ruby
osvico has joined #ruby
akells` has quit [Ping timeout: 264 seconds]
S0da has joined #ruby
rickruby has joined #ruby
Columcil1e has quit [Quit: bbl]
marius has joined #ruby
rickruby has quit [Ping timeout: 264 seconds]
vince_prignano has quit [Remote host closed the connection]
Kricir has joined #ruby
Columcille has joined #ruby
sqrrl has joined #ruby
eoinkelly has quit [Quit: eoinkelly]
devoldmx has joined #ruby
Guest18398 has quit [Changing host]
Guest18398 has joined #ruby
Guest18398 is now known as _veer
Xeago has quit [Remote host closed the connection]
<sqrrl>
(i know little about ruby and ask out of curiosity) how are ruby's hash made? i've been told one can use strings/objects as hash keys and can modify these objects. how does this work?
<havenwood>
^ That is quite concise. Read it first then ask. :P
<sqrrl>
please, i want to know how is this one thing done
<havenwood>
>> {'instructions' => 'stop being a help vampire'}
<sqrrl>
either ruby copies objects, or it doesn't accept strings as keys, or does some magic
<eval-in>
havenwood => {"instructions"=>"stop being a help vampire"} (https://eval.in/40393)
<sqrrl>
the answer is simple
<sqrrl>
i don't want to learn ruby
<havenwood>
homework?
<sqrrl>
curiosity!
<sqrrl>
do you, or do you now, know the answer?
<havenwood>
yes
<havenwood>
>.>
<sqrrl>
if i knew ruby, and if you asked me this simple question, i'd just simply tell you the answer
<sqrrl>
it doesn't mean nothing, but still.
<havenwood>
sqrrl: the key would be a string of a different object_id than the original string, if I get what you're asking
<sqrrl>
you mean, a copy?
danman has quit [Quit: danman]
<sqrrl>
or something along a copy-on-write thing?
<havenwood>
a dup
<sqrrl>
a dup is a system call
<havenwood>
yeah, most ruby methods map back to system calls
<havenwood>
Kernel methods at least
<havenwood>
*
<sqrrl>
a kernel call for each key?
<havenwood>
sqrrl: I don't think I quite get what you're asking, really. No, gah.
<sqrrl>
thanks god
<sqrrl>
what's a “dup”
randomau_ has joined #ruby
<havenwood>
There must be a good writeup on Ruby String objects somewhere. Its just normal Ruby string behavior.
ixti has joined #ruby
<havenwood>
sqrrl: If you know C, take a peek behind Hash. Links to code in docs.
<sqrrl>
ok, now let me say something
<sqrrl>
i appreciate your input, but
marcdel has joined #ruby
<havenwood>
what are you even asking? if you don't want to understand Ruby it is a rabbit hole to explain Ruby's object system
JumpMast3r has joined #ruby
* havenwood
flees.
Speed has joined #ruby
<sqrrl>
if someone comes and asks a question of more than 10 words, and it looks at least remotely sane, and you don't know the answer to this question—especially when you don't understand the question—don't, i repeat, *don't* answer it
randomautomator has quit [Ping timeout: 276 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
robscomputer has joined #ruby
<havenwood>
sqrrl: Sometimes when questions are gibberish you can decipher meaning by prodding.
<havenwood>
sqrrl: Not in this case.
<sqrrl>
i usually ask to elaborate
<sqrrl>
anyways, python is simple: don't allow changeable (mutable) objects as dic (=hash) keys
xcv has quit [Remote host closed the connection]
<sqrrl>
just wanted to know how ruby goes about this, since keys can be (can they?) be modifiable
optimusprimem has quit [Ping timeout: 245 seconds]
xcv has joined #ruby
devoldmx has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
mary5030 has quit [Remote host closed the connection]
<havenwood>
sqrrl: you can remove a key value pair and make a *new* key with the old key's value - i don't know what all you know
<sqrrl>
ok, found the answer
egh34wz746w has quit [Ping timeout: 268 seconds]
<sqrrl>
you can't have modifeable stuff for keys
<sqrrl>
strings are copied and frozen
predator217 has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<havenwood>
i *thought* you were asking if a string, used as a key, was the same object as the original string
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<IceDragon>
sqrrl: just overwrite the Object's #hash method and you can use it as a Hash key.
<sqrrl>
havenwood, and then you went ahead and wrong something about kernel calls.
<Speed>
question: how do ruby gems create bindings to C++ libraries with "relations"
<Speed>
let's say I have a Sprite class that has a member called Tone
<Speed>
so I want to properly map this in ruby
<Speed>
sprite.tone.r = 100
LMolr has quit [Quit: Leaving]
<Speed>
t = sprite.tone
<Speed>
etc.
<Speed>
the problem arrises when I set sprite.tone to a variable, then that sprite is deleted
mrsolo has quit [Quit: Leaving]
<havenwood>
sqrrl: Take ten minutes to learn the very basics before taking to IRC, so you can at least ask intelligible questions. Your final question was fine, sane, and answerable.
<Speed>
the tone then points to invalid space
<havenwood>
sqrrl: I quote: "either ruby copies objects, or it doesn't accept strings as keys, or does some magic"
predator117 has quit [Ping timeout: 256 seconds]
<havenwood>
Grrr...
<sqrrl>
havenwood, i described a problem and asked "how it worked"
<sqrrl>
dunno what's unclear about this :3
pzuraq has joined #ruby
tjbiddle has joined #ruby
<pzuraq>
I need a data structure that manages ranges of integers, such that each range is distinct
tjbiddle has quit [Read error: Connection reset by peer]
<pzuraq>
for instance if I add a range that overlaps another range, it will merge the two
<sqrrl>
and how's that quote a question orz
<pzuraq>
and then I need to be able to loop through each of the ranges and do something with each endpoint of the range
<havenwood>
Was hard to tell what element of how it worked you were looking for, hence pointing you to docs in hope you can clarify. "Can I mutate a String that I'm using as a key" would make sense. An easy "no".
<pzuraq>
anyone know of anything like this? The best thing I found is an interval-tree gem but it doesn't appear to have the ability to add ranges or loop through the ranges in the structure
<havenwood>
sqrrl: ^ anyways, forget it. I'm off for a brew.
<sqrrl>
well, i was told i could do that
<sqrrl>
i was told a lie
<havenwood>
damned lies
* sqrrl
decides to feel sorry
<sqrrl>
i hope that makes you feel better
<havenwood>
sqrrl: You can mutate the heck outta Hashes, but not that way. An interesting gem that has a non-mutatable Hash is Hamster: https://github.com/harukizaemon/hamster
arya_ has quit [Ping timeout: 276 seconds]
jlast has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby
maniacal has quit [Remote host closed the connection]
<havenwood>
sqrrl: I'm prolly talking half gibberish anyways, have altitude sickness and and off O2 atm. :P
<sqrrl>
i'd ask about how i could mutate the heck outta hashes, but don't want to strain your patience and do want to sleep just a tad too much
<sqrrl>
are you in the mountains or sth
<pzuraq>
ok, I'm going to write this structure myself by extending array
<pzuraq>
how would I add an object to an array from within the class itself
<pzuraq>
?
<sqrrl>
pzuraq, you do that
* sqrrl
simply dies
<havenwood>
Never occurred to me that Breckenridge would make me this ill, and make it so hard to think. Apparently I can't *do* altitude.
baroquebobcat has quit [Quit: baroquebobcat]
arya_ has joined #ruby
<popl>
havenwood: How long have you been there?
<popl>
havenwood: It takes some time to acclimate.
pentameter has quit [Read error: Connection reset by peer]
fredjean has quit [Quit: Computer has gone to sleep.]
<havenwood>
popl: Yeah, yesterday I thought I was gunna die, and had to have EMS give me oxygen. Today i'm kinda better, not having skipped heart beats and can eat.
g0bl1n has joined #ruby
g0bl1n has joined #ruby
<popl>
havenwood: You probably over-exerted yourself.
<havenwood>
popl: Was been here 2 days, was in Vail 1 before that. Seems i'm finally getting accustomed, now that i'm nearing leaving on Sun. :P
<pzuraq>
rather, how do I reference the objects in an array from within the array?
<popl>
havenwood: It usually takes a few days to a week or so, depending on an individual's overall level of health (IME).
<havenwood>
popl: Dang, I'll be gone before I acclimate.
<popl>
What's the altitude of Breckenridge?
kreeves has joined #ruby
<havenwood>
pzuraq: Sounds like `self` (if you mean opening up a class and within a method referring to the instance of the class).
<popl>
says the guy on the Internet
<havenwood>
popl: Just under 10,000 ft. I didn't think it would bother me.
<pzuraq>
havenwood: Ok, cool, will try that
arya_ has quit [Ping timeout: 264 seconds]
<popl>
havenwood: Did you do anything exhausting while getting there? Did you not eat properly? Probably a lot of little things adding up.
<popl>
havenwood: Or maybe you have an undiagnosed heart condition. :P
<onewheelskyward>
People get altitude sickness a lot lower than 10,000 ft.
rickmasta has quit [Quit: Leaving...]
<havenwood>
popl: I was coming off a bug when i came here. I think it just got the best of me.
<popl>
onewheelskyward: indeed
realDAB has quit [Quit: realDAB]
<popl>
havenwood: that could absolutely be it
tjbiddle has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]