apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
adriancb has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 265 seconds]
rkazak has joined #ruby
russt has joined #ruby
jaequery has joined #ruby
lidaaa has quit [Ping timeout: 265 seconds]
blackmesa has quit [Quit: WeeChat 1.0.1]
keso1 has joined #ruby
baweaver has joined #ruby
banister is now known as banisterfiend
fenak has quit [Quit: leaving]
jlast has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
dkb20k has joined #ruby
cajone has quit [Ping timeout: 265 seconds]
zzzbra_ has quit [Remote host closed the connection]
mloveless has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
frozenturtle has quit [Disconnected by services]
cajone has joined #ruby
adriancb has joined #ruby
mary5030 has joined #ruby
gr33n7007h has joined #ruby
Mia has quit [Ping timeout: 258 seconds]
geggam has joined #ruby
ghr has joined #ruby
siso_ has joined #ruby
Lightsword_ has joined #ruby
dkb20k has quit [Ping timeout: 264 seconds]
siso has quit [Ping timeout: 272 seconds]
siso_ is now known as siso
Beoran has quit [Ping timeout: 256 seconds]
karmatr0n has joined #ruby
Lightsword has quit [Ping timeout: 264 seconds]
Lightsword_ is now known as Lightsword
Alina-malina has joined #ruby
icebourg has quit []
baweaver has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
JoshGlzBrk has joined #ruby
volty has quit [Quit: Konversation terminated!]
rshetty has joined #ruby
karmatr0_ has quit [Ping timeout: 255 seconds]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kasperti_ has quit []
phutchins has quit [Ping timeout: 265 seconds]
renderful has quit [Remote host closed the connection]
JoshGlzBrk has quit [Ping timeout: 240 seconds]
Tuxero has left #ruby [#ruby]
rshetty has quit [Ping timeout: 244 seconds]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
karmatr0_ has joined #ruby
dts is now known as dtsbot
dtsbot is now known as nasabot
siso has quit [Quit: siso]
karmatr__ has joined #ruby
nasabot is now known as dts
karmatr0n has quit [Ping timeout: 264 seconds]
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Beoran has joined #ruby
karmatr0_ has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
charliesome has joined #ruby
tier has quit [Remote host closed the connection]
zacstewart has quit [Remote host closed the connection]
karmatr0n has joined #ruby
weemsledeux has joined #ruby
sski has joined #ruby
benzrf is now known as benzrf|offline
tier has joined #ruby
djbkd has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
karmatr0_ has joined #ruby
gregf has joined #ruby
kireevco has joined #ruby
baweaver has joined #ruby
karmatr__ has quit [Ping timeout: 255 seconds]
caveat- has quit [Ping timeout: 258 seconds]
karmatr0n has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
MSY has joined #ruby
adriancb has quit [Remote host closed the connection]
MSY is now known as Guest63005
caveat- has joined #ruby
Jake232 has joined #ruby
adriancb has joined #ruby
caveat- has quit [Ping timeout: 258 seconds]
caveat- has joined #ruby
ph8 has quit [Ping timeout: 245 seconds]
mloveless has joined #ruby
baweaver has quit [Remote host closed the connection]
<Oog> what happened to trace_object_allocations_start
funburn has joined #ruby
oo_ has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
maletor has joined #ruby
ph8 has joined #ruby
nobitanobi has quit []
dts is now known as dts|offtowork
AndyBotwin has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
dcunit3d_ has joined #ruby
dcunit3d has quit [Ping timeout: 244 seconds]
weemsledeux has quit [Remote host closed the connection]
jlast has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
dopie has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
fgo has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
i0n has quit [Quit: snooze]
Techguy305 has joined #ruby
karmatr0n has joined #ruby
volty has joined #ruby
siso has joined #ruby
karmatr__ has joined #ruby
karmatr0_ has quit [Read error: Connection reset by peer]
dsilva has quit [Remote host closed the connection]
iamjarvo has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
mikecmpbll has joined #ruby
karmatr0n has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
momomomomo has joined #ruby
iamjarvo has quit [Client Quit]
Soda has joined #ruby
duncannz has joined #ruby
it0a has joined #ruby
karmatr0n has joined #ruby
EasyCo has joined #ruby
hatzopoulos has joined #ruby
sski has quit [Ping timeout: 245 seconds]
Hijiri has joined #ruby
karmatr__ has quit [Ping timeout: 244 seconds]
benzrf|offline is now known as benzrf
econerd4ever has quit [Read error: Connection reset by peer]
i0n has joined #ruby
econerd4ever has joined #ruby
startupality has quit [Quit: startupality]
RyanV has joined #ruby
jespada has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RyanV> What the convention (or is it possible) to reach out of a block’s context to an outer scope? see: http://pastie.org/9733563
zacstewart has joined #ruby
ghr has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
triple_b has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
tier has quit [Remote host closed the connection]
checkit has quit [Ping timeout: 258 seconds]
<banisterfiend> RyanV block.binding
Scripore has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
adriancb has joined #ruby
robustus has joined #ruby
Scripore has joined #ruby
baweaver has quit [Remote host closed the connection]
zzzbra has joined #ruby
marr has quit []
zorak8 has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
funburn has quit [Quit: funburn]
ghr has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
<RyanV> can you give me an example.
cleopatra has joined #ruby
<RyanV> banisterfiend
narcan has joined #ruby
Takle has joined #ruby
tkuchiki has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has joined #ruby
dkb20k has joined #ruby
andis has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
<banisterfiend> >> o = Object.new; def o.hello(&block); block.binding.eval("x = 10"); end; x = 0; o.hello { }; x
<eval-in__> banisterfiend => 10 (https://eval.in/224285)
<banisterfiend> RyanV ^
patrick99e99 has quit [Ping timeout: 255 seconds]
<andis> anyone know how to implement instagram API into ruby on rails?
jespada has quit [Quit: Leaving]
arescorpio has joined #ruby
<pontiki> well, there the instagram gem....
charliesome has quit [Quit: zzz]
<cajone> andis: maybe try over on #rubyonrails ?
<andis> i looked at it but ... im not too good so i tried to find a tutorial online
<andis> okay
<andis> :D
rylev has quit []
<andis> * *** Looking up your hostname...
<andis> * *** Checking Ident
<andis> * *** No Ident response
Takle has quit [Ping timeout: 264 seconds]
<andis> i cant join that channel becauese im getting this error msg... anyone know why?
<cajone> andis: you are not a registered member of freenode?
<andis> * #rubyonrails :Cannot join channel (+r) - you need to be identified with services
<pontiki> yes, you have to register you nick
<andis> iono i guess not
<pontiki> /msg nickserv help
zacstewart has quit [Remote host closed the connection]
karmatr0n has quit [Read error: Connection reset by peer]
fgo_ has joined #ruby
<andis> IDENTIFY
<ericwood> lol
<ericwood> close
<pontiki> new to IRC, too, i guess
karmatr0n has joined #ruby
<ericwood> /query nickserv help
supersymmetry has quit [Quit: WeeChat 1.0.1]
<andis> register
<ericwood> at least you didn't type in your password
<andis> LOL
<andis> WTF do i do this is so confusing
davasaurous has quit [Remote host closed the connection]
<cajone> ... yet ;)
karmatr0n has quit [Read error: Connection reset by peer]
<ericwood> there's a thing under here that might help you:
karmatr0n has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
andis has quit [Quit: Leaving]
Joufflu has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
andis has joined #ruby
<andis> `asdf
<andis> asdf
<andis> hmmm how do ichange my name ? mines already registered
josephndenton has quit [Ping timeout: 256 seconds]
<andis> asdf
andis has left #ruby [#ruby]
<ericwood> /nick andiswhatever
<ericwood> you should probably look up an IRC tutorial
<ericwood> it'll answer all of your questions before you even have them!
byprdct has joined #ruby
siso has quit [Quit: siso]
andisk has joined #ruby
wolflee__ has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
wolflee__ has joined #ruby
russt has quit [Quit: russt]
Lingos_ has joined #ruby
andisk has quit [Client Quit]
Scripore has quit []
wolflee has joined #ruby
Techguy305 has quit [Ping timeout: 240 seconds]
zacstewart has quit [Remote host closed the connection]
wolflee__ has quit [Read error: Connection reset by peer]
Lingos_ has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
funburn has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
fabrice31 has joined #ruby
baweaver has joined #ruby
supersym has joined #ruby
dermothaughey has joined #ruby
bricker`work has quit [Ping timeout: 264 seconds]
haasn has quit [Quit: haasn]
fabrice31 has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
echooo has joined #ruby
charliesome has quit [Quit: zzz]
dermothaughey has quit [Ping timeout: 258 seconds]
echooo1 has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
dh64 has joined #ruby
reinaldob has joined #ruby
haasn has joined #ruby
haasn has quit [Quit: haasn]
patrick99e99 has joined #ruby
hmsimha_ has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
ReRixo has quit [Ping timeout: 258 seconds]
sinequanon has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 258 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
econerd4ever has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
econerd4ever has joined #ruby
ltd has quit [Ping timeout: 264 seconds]
dcunit3d_ has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
ltd has joined #ruby
hamakn has joined #ruby
MattB2 has quit [Remote host closed the connection]
rshetty has joined #ruby
karmatr0_ has joined #ruby
baweaver has quit [Remote host closed the connection]
lampd1 has quit []
ReRixo has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
haasn has joined #ruby
hmsimha_ has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
troyready has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
AlSquirrel has joined #ruby
volty has quit [Quit: Konversation terminated!]
AlSquirrel has quit [Remote host closed the connection]
ltd has quit [Ping timeout: 244 seconds]
philwantsfish has joined #ruby
Areessell has quit [Ping timeout: 240 seconds]
Guest63005 has quit [Quit: This computer has gone to sleep]
ghr has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
fgo_ has quit [Ping timeout: 265 seconds]
renderful has joined #ruby
AugustAnna has joined #ruby
HULK_SMASH has joined #ruby
tatsuo has joined #ruby
claptor has joined #ruby
rblackwe has quit [Ping timeout: 264 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
rblackwe has joined #ruby
josephndenton has joined #ruby
russt has joined #ruby
hmsimha_ has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
Guest63005 has joined #ruby
davasaurous has joined #ruby
oo_ has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
kireevco has quit [Quit: Leaving.]
josephndenton has quit [Ping timeout: 264 seconds]
banister has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
banister has joined #ruby
momomomomo has quit [Quit: momomomomo]
geggam has quit [Ping timeout: 240 seconds]
parzzix has joined #ruby
ltd has joined #ruby
mary5030_ has joined #ruby
karmatr0_ has quit [Remote host closed the connection]
lampd1 has joined #ruby
razieliyo has quit [Quit: Saliendo]
krz has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
rshetty has joined #ruby
karmatr0n has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
mary5030_ has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
rshetty has quit [Read error: Connection reset by peer]
divi has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
rshetty has joined #ruby
oo_ has joined #ruby
MiracleBlue has quit [Changing host]
MiracleBlue has joined #ruby
MiracleBlue has joined #ruby
keso1 has quit [Ping timeout: 258 seconds]
rshetty has quit [Remote host closed the connection]
jenrzzz has joined #ruby
supersym has quit [Ping timeout: 240 seconds]
Darryl_ has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
wsmoak has quit [Quit: wsmoak]
pengin has joined #ruby
BlakeRG has joined #ruby
adriancb has quit [Remote host closed the connection]
ferr has joined #ruby
adriancb has joined #ruby
yetanotherdave has quit [Ping timeout: 255 seconds]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Ping timeout: 240 seconds]
adriancb has joined #ruby
jimbach has joined #ruby
benzrf is now known as benzrf|offline
aspires has quit []
mikepack has joined #ruby
pengin has quit [Remote host closed the connection]
mary5030 has joined #ruby
charliesome has joined #ruby
dorei has quit []
sinequanon has joined #ruby
mikepack has quit [Ping timeout: 258 seconds]
jimmyy has quit [Ping timeout: 258 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyll_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
adriancb has quit []
divi has joined #ruby
yourabi has joined #ruby
Blizzy has joined #ruby
sinequanon has quit [Ping timeout: 240 seconds]
tier has joined #ruby
dcunit3d has joined #ruby
redjack1964_ has quit [Read error: Connection reset by peer]
tyll has quit [Ping timeout: 245 seconds]
maestrojed has joined #ruby
Oog has quit []
ghostlines has joined #ruby
arup_r has joined #ruby
pietr0 has quit [Quit: pietr0]
arup_r has quit [Remote host closed the connection]
Guest63005 has quit [Quit: This computer has gone to sleep]
tier has quit [Ping timeout: 265 seconds]
<zacts> hi ruby people
<zacts> I can't wait to get home to finish reading section II of the ruby black book
<zacts> waiting for the bus now
jimbach has quit [Remote host closed the connection]
Areessell has joined #ruby
russt has quit [Quit: russt]
jimbach has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
Megtastique has quit []
yetanotherdave has joined #ruby
RyanV has quit [Quit: (null)]
ghostlines has quit [Quit: Textual IRC Client: www.textualapp.com]
jimbach has quit [Ping timeout: 272 seconds]
<gr33n7007h> what is the difference between these to commands `Process.euid = Etc.getpwnam("www-data").uid` and `Process::Sys.setuid(Etc.getpwnam("www-data").uid)`?
ghr has quit [Ping timeout: 240 seconds]
gebbione has joined #ruby
matchaw has joined #ruby
jerematic has quit [Read error: Connection reset by peer]
divi_ has joined #ruby
benzrf|offline is now known as benzrf
divi has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
matchaw_ has quit [Ping timeout: 244 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
Lingos_ has joined #ruby
Lightsword has quit [Quit: Lightsword]
divi_ has quit [Ping timeout: 245 seconds]
econerd4ever has quit [Remote host closed the connection]
<gr33n7007h> It's to my understanding the latter uid, will saved through the entire program, but I may be mistaken
hiyosi has quit [Ping timeout: 265 seconds]
xenomorph is now known as {xenomorph}
josephndenton has joined #ruby
melik has quit [Quit: (null)]
{xenomorph} is now known as xenomorph
Lingos_ has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 244 seconds]
danmanstx has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NoNMaDDeN has joined #ruby
<danmanstx> so im running a posgresql function which has a notice in it, when i run my ruby script to call the function i get the notice output. however, when trying to get the data from pg result i can't access the notice.. is there something i'm missing with the pg gem.. or can i out all output to a string and use that?
deric_skibotn has quit [Ping timeout: 250 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slawrence00 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
kp666 has joined #ruby
krz has joined #ruby
byprdct has quit [Quit: by]
lemur has joined #ruby
mloveless has quit [Remote host closed the connection]
rshetty has joined #ruby
Areessell has quit [Quit: leaving]
Areessell has joined #ruby
charliesome has quit [Quit: zzz]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
NoNMaDDeN has quit [Quit: Leaving...]
parabolize has joined #ruby
NoNMaDDeN has joined #ruby
HULK_SMASH has quit [Quit: Sleepy...]
nobody404 has joined #ruby
D9 has joined #ruby
marcdel has joined #ruby
arup_r has joined #ruby
nobitanobi has joined #ruby
bluOxigen has joined #ruby
mary5030 has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
arescorpio has quit [Excess Flood]
marcdel has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
HULK_SMASH has joined #ruby
sdwrage has joined #ruby
sdwrage_ has quit [Ping timeout: 272 seconds]
Lightsword has joined #ruby
braincrash has joined #ruby
mary5030 has joined #ruby
freerobby has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
Eiam has joined #ruby
Photism has quit [Quit: Leaving]
kyb3r_ has joined #ruby
arup_r has quit [Quit: Leaving.]
fedexo has joined #ruby
ltd has quit [Ping timeout: 255 seconds]
<gebbione> hi all, it looks like puppet is trying to use ruby 1.8
<gebbione> but my system is set to use 2.1.4
<gebbione> how do i tell puppet to switch
ramfjord has quit [Ping timeout: 255 seconds]
<zacts> ok so let me get this straight, a class is really just another object?
divi has joined #ruby
<gebbione> a class is an object template
<gebbione> an instance of a class is a particular object of that class
sud0x has joined #ruby
<sud0x> sup sup sup sup
ReRixo has quit [Ping timeout: 258 seconds]
<gebbione> my puppet is broken sud0x
<gebbione> and it is not an animal
<zacts> gebbione: but you can pass an object to a class. how does that work?
<zacts> how does a class itself have methods?
<gebbione> zacts, one at a time, lets say you are a car so a specific type of object
<sud0x> haha
<gebbione> you can pass a number of object to that class to do certain things
<zacts> so isn't a ruby class also an instance of an object. It's just an object that creates other objects?
<gebbione> a class in any language is a template to create an object
<zacts> indeed
josephndenton has joined #ruby
<gebbione> a human being has eyes, mouth etc
<zacts> but ruby takes this abstraction a step further and makes a class an actual object
<gebbione> you and I are instances of the class human being
<gebbione> not sure about ruby actually, i only use ruby tools, thats why i am stuck on puppet but dont do much ruby coding
<zacts> ah ok
<gebbione> but what you describe looks like a static usage of a class object
<zacts> yeah, my book is pretty interesting. it's changing the way I look at things.
havenwood has quit [Remote host closed the connection]
<gebbione> go on to readying about patterns after that
<HULK_SMASH> zacts: It seems you're a little unclear on the concept of the metaclass, yes?
<gebbione> your life will seem meaningless until then
<zacts> indeed HULK_SMASH
<zacts> enlighten me
<gebbione> ok i see tutorial times
<HULK_SMASH> This gets into the weeds on the concept of the ruby metaclass. Prepare for mindbending fun. http://yehudakatz.com/2009/11/15/metaprogramming-in-ruby-its-all-about-the-self/
<gebbione> i ll ask google about the puppet problem i have
<zacts> HULK_SMASH: oh cool
<gebbione> :/
<HULK_SMASH> There is another good one that shows class/metaclass diagrams
<zacts> HULK_SMASH: I'm planning on reading Metaprogramming Ruby after this book
<HULK_SMASH> Let me try to find that for you
<zacts> but your tutorial seems cool too
josephndenton has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
chenillen has joined #ruby
<HULK_SMASH> I can't find the specific text with the object diagrams that show how inheritance and instantiation work with object metaclasses. I think it was in a book that I read some years back
Spami has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
M-Technic has joined #ruby
sinequanon has joined #ruby
<zacts> ah that's okay. I'm sure I'll be kept busy with your tutorials and my ruby books.
zacstewart has joined #ruby
<zacts> I think I'm going to go through my books a couple of times, some of this is mindbending
<HULK_SMASH> I think I read it in the first edition of this: https://pragprog.com/book/ppmetr2/metaprogramming-ruby
<zacts> HULK_SMASH: oh I have that book!
boombadaroomba has joined #ruby
<HULK_SMASH> Are you just learning ruby?
<zacts> it's next on my list after the Well Grounded Rubyist
<zacts> HULK_SMASH: yes
<zacts> I'm a ruby newbie
<HULK_SMASH> Keep metaprogramming backburnered for a while :)
ndrei has joined #ruby
ndrei_ has joined #ruby
Channel6 has joined #ruby
<zacts> HULK_SMASH: ah ok, yeah I think I'm going to have to let all of this just sit in my mind for a while. it will take some time.
<zacts> and I'll idle here with the occassional question / pastebin
<HULK_SMASH> It's more important to learn good practices to write maintainable code.
<zacts> ok
<HULK_SMASH> have you read anything on design patterns yet?
<zacts> no, doesn't poodr cover that?
sinequanon has quit [Remote host closed the connection]
<zacts> do you mean object oriented design patterns?
<HULK_SMASH> Yes.
<zacts> yes for which?
jenrzzz has joined #ruby
sinequanon has joined #ruby
<HULK_SMASH> For whatever language you want, but it's helpful to see ruby implementations if you're going to be using it frequently.
<zacts> I only own three books on ruby currently: 0) the well grounded rubyist 2nd edition 1) Metaprogramming Ruby 2nd edition 3) poodr
<zacts> yeah I want to really live in ruby for a while
vimer has joined #ruby
<zacts> so idiomatic ruby implementations would be nice
<pontiki> that's a great start
<zacts> but hopefully I'll be able to apply that knowledge of design and OOPness to other languages
zacstewart has quit [Ping timeout: 258 seconds]
<HULK_SMASH> I'm not familiar with poodr
<sevenseacat> !poodr
<helpa> Practical Object Oriented Design in Ruby - http://www.poodr.info/
<pontiki> not necessarily too much with the first two, but definitely the last one transcends mere ruby
<zacts> oh, HULK_SMASH http://www.poodr.com/
boombadaroomba has quit [Ping timeout: 264 seconds]
TinkerTyper has joined #ruby
oo_ has joined #ruby
<zacts> at my bus stop, ok will be back in like 15 min
Channel6 has quit [Quit: Leaving]
zzzbra has quit [Remote host closed the connection]
sinequanon has quit [Ping timeout: 264 seconds]
<agent_white> good evenin
zzzbra has joined #ruby
<HULK_SMASH> Is it? IS IT?
sinequanon has joined #ruby
rshetty has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
<wmoxam> HULK_SMASH: VERY
<HULK_SMASH> Carry on, then.
jenrzzz has joined #ruby
<benzrf> >> {HULK_SMASH: VERY}
<eval-in__> benzrf => uninitialized constant VERY (NameError) ... (https://eval.in/224360)
<wmoxam> oh, btw poodr is great
<wmoxam> can't recommend enough
benzrf is now known as benzrf|offline
henesy has quit [Ping timeout: 258 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
jottr has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
yetanotherdave has quit [Ping timeout: 264 seconds]
<sud0x> noob question, what does wrapping a variable in | mean? e.g. file.open('xyz') do |f|
<zenspider> it's a block arg
<zenspider> depends on what the method does when it invokes the block
<zenspider> but in this case, it is the File instance you just opened
<zenspider> but in `array.each do |obj| ... end`, it'll be each item in the array, one at a time
<zenspider> etc.
jimbach has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
fandi has quit [Read error: Connection reset by peer]
<sud0x> gotcha
jimbach has quit [Ping timeout: 258 seconds]
claptor has quit [Quit: this channel is bakas]
davasaurous has quit [Remote host closed the connection]
<sud0x> is it me or is nokogiri not documented well?
<sud0x> i mean they have the basics on their site
<sud0x> but I have so many questions
<sud0x> finding out thru stackoverflow
duncannz has joined #ruby
claptor has joined #ruby
hiyosi has joined #ruby
<zacts> back
<zacts> there is also this esoteric minikanren that has a ruby gem, I hope to tinker with that in a few months
ltd has joined #ruby
<zacts> it's a mini logic language
<zacts> like ML, but implemented in various languages
<zenspider> like ML?
<zacts> the scheme dialect was where minikanren was born
<zacts> zenspider: indeed
<zenspider> like prolog
<zacts> but different
<zenspider> it's nothing really like ML imo
Lingos_ has joined #ruby
<zacts> ah ok
<zenspider> sud0x: I'm sure they'll happily accept pull requests for doco contributions
oo_ has joined #ruby
<zenspider> sud0x: seems very well documented to me...
<zenspider> installation... tutorials... API... seems all there...
maestrojed has quit [Quit: Computer has gone to sleep.]
<zenspider> zacts: if you haven't had a chance yet, check out the book "The Reasoned Schemer"
<zacts> I own it, but have yet to read it
<zacts> I've almost finished the Little schemer
<zenspider> good good. fantastic book
<zacts> yes
hiyosi has quit [Ping timeout: 258 seconds]
funburn has joined #ruby
maestrojed has joined #ruby
Lingos_ has quit [Ping timeout: 256 seconds]
ajaiswal__ has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
Abhijit has joined #ruby
fabrice31 has joined #ruby
mary5030 has quit [Remote host closed the connection]
NoNMaDDeN has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
NoNMaDDeN has joined #ruby
jaequery has joined #ruby
jusmyth has joined #ruby
Stalker_I has joined #ruby
jusmyth has left #ruby [#ruby]
<ericwood> prolog is crazy
<ericwood> it took me a while to wrap my mind around it but it hurt in a good way
St1gma has joined #ruby
<ericwood> kind of a fun thrill touching a new paradigm, not often you get to do something THAT out there
<zacts> ericwood: I feel that way about ruby and OOP currently
<ericwood> haha are you from a strictly FP background?
<zacts> but I like twisting my mind
<zacts> ericwood: no I'm just a newbie
<zacts> a newbie poweruser who uses vim
<ericwood> Ruby is cool, you'll get a dose of a few paradigms in one
<ericwood> haha what's your background?
fabrice31 has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
Stalker_I has left #ruby ["Leaving"]
<zacts> the only other language I've really kind of worked with is Perl
<zacts> but Perl OOP had no good educational resources
<zacts> so I've decided on Ruby
<zacts> and now ruby is the most fun language ever
<zacts> I can see how programming ruby can become addictive
<parabolize> perl and scheme? Weird.
duncannz has joined #ruby
<zacts> yeah
<zacts> I'm a weirdo
<zacts> and I'm a busy student
kevinxu has joined #ruby
<ericwood> haha that means you'll be asking weird questions
<ericwood> but in a good way
<ericwood> and yes Ruby is fantastically fun to program in
<zacts> I've done a few patches for Minix3 importing the NetBSD userland
kevinxu is now known as Guest8352
<parabolize> just avoid recursion like the plague.
<zacts> but that only required trivial C
hmsimha_ has quit [Ping timeout: 255 seconds]
sdwrage_ has joined #ruby
<zacts> parabolize: oh yeah? well scheme was totally recursion
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has joined #ruby
<parabolize> indeed, thats why I brought it up.
<sud0x> zenspider: would it not be a best practice to use a .css selector to parse thru an xml document in nokogiri?
<sud0x> just trying to learn the right way the first time
marcdel has quit []
sdwrage has quit [Ping timeout: 240 seconds]
zzzbra has quit [Remote host closed the connection]
<ericwood> I prefer CSS selectors for simple things, xpath syntax annoys me
<ericwood> ...but then again I spend half my day writing CSS
<ericwood> also it depends on what you're doing
<ericwood> if you're trying to make a big 'ol internal representation of an XML document a SAX parser might be what you want
<ericwood> (nokogiri has one, use it when you're working with big docs)
<zacts> ericwood: have you tried SASS?
<sud0x> hey ericwood
<ericwood> <3 sass
<zacts> as an alternative to CSS. Oh yeah cool.
<ericwood> it's not an alternative as much as it's an improvement
<sud0x> I'm trying to parse an xml document for a variable, replace it and save it
<zacts> ah ok
zzzbra has joined #ruby
<ericwood> sud0x: yeah read it in, do the CSS selector, replace the text of the node or whatever, then convert it back to a string and save
<ericwood> BOOM
<ericwood> 3 lines
lemur has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
lemur has joined #ruby
<sud0x> cool
marcdel has joined #ruby
<sud0x> just kinda frustrated because im new to ruby and would like to do it in as little lines as possible lol
<sud0x> i have a line assigning nokogiri and the file open to a variable
<sud0x> then another to read each line looking for the variable
<ericwood> doc = Nokogiri::XML.parse(File.read('foo'))
<ericwood> doc.css('asdfasdf').text awefawegaerh
duncannz has joined #ruby
zacstewart has joined #ruby
<ericwood> or something like that I don't remember the syntax for changing the contents of a node
<ericwood> then doc.to_s or something along those lines
<sud0x> cool
marcdel_ has joined #ruby
<sud0x> would I have to reopen the doc to save it?
<sud0x> or if i use it as a r+ it would be ok?
arup_r has joined #ruby
<ericwood> .read closes iirc
reinaldob has quit [Ping timeout: 240 seconds]
<ericwood> you could do this:
<ericwood> File.open('foo') { |file| ... }
nagaraj has joined #ruby
<ericwood> which will close it for you afterwards
<ericwood> so you read it and write it inside of that block
<ericwood> in fact, that's what I'd shoot for
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
<sud0x> gotcha
marcdel has quit [Ping timeout: 255 seconds]
<sud0x> thanks man
rshetty has joined #ruby
duncannz has quit [Ping timeout: 245 seconds]
<ericwood> np
duncannz has joined #ruby
noop has joined #ruby
ARCADIVS has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
vimer has quit [Quit: leaving]
dermothaughey has joined #ruby
bricker`work has joined #ruby
hatzopoulos has quit [Quit: Leaving]
<zacts> ok, back to my readings
dermothaughey has quit [Ping timeout: 240 seconds]
melik has joined #ruby
armyriad has quit [Ping timeout: 265 seconds]
duncannz has quit [Ping timeout: 264 seconds]
Abhijit has quit [Ping timeout: 272 seconds]
yetanotherdave has joined #ruby
maletor has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danmanstx has quit []
wolflee has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
josephndenton has joined #ruby
Abhijit has joined #ruby
wolflee has joined #ruby
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
duncannz has joined #ruby
Morkel has joined #ruby
Guest63005 has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
wolflee_ has joined #ruby
parzzix has quit [Read error: Connection reset by peer]
aces1up9939 has joined #ruby
<aces1up9939> is there a good channel to ask eventmachine specific questions?
walterdisney__ has joined #ruby
timonv_ has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
melik has quit [Quit: (null)]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wolflee has quit [Ping timeout: 272 seconds]
<parabolize> #eventmachine
<parabolize> its at the bottom of https://github.com/eventmachine/eventmachine/wiki
anarang has quit [Ping timeout: 245 seconds]
duncannz has quit [Quit: Leaving]
<aces1up9939> parabolize do you know much about em? seems not much action on that channel?
<aces1up9939> have this bit of code : http://codepad.org/8xImLf8K
<aces1up9939> trying to run reactor in seperate thread and use next_tick and fibers to run a http request call
<parabolize> not a thing :(
anarang has joined #ruby
<aces1up9939> to keep my code syncronized.
oleo has quit [Quit: Verlassend]
maletor has quit [Quit: Computer has gone to sleep.]
JB6 has joined #ruby
davedev2_ has quit []
davedev24_ has joined #ruby
hmsimha_ has joined #ruby
gebbione has quit [Ping timeout: 255 seconds]
funburn has quit [Quit: funburn]
Suchit has joined #ruby
az7ar_away is now known as az7ar
parzzix has joined #ruby
HULK_SMASH has quit [Quit: GONE]
mikepack has joined #ruby
techsethi has joined #ruby
sigurding has joined #ruby
timonv_ has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
Lingos_ has joined #ruby
sud0x has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 255 seconds]
St1gma has quit [Read error: Connection reset by peer]
st1gma1 has joined #ruby
echevemaster has joined #ruby
JB6 has quit [Read error: Connection reset by peer]
walterdisney__ has quit [Ping timeout: 244 seconds]
lidaaa has joined #ruby
Ankhers has joined #ruby
nrsk has joined #ruby
Guest63005 has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
corehook has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
lolmaus has joined #ruby
NightMonkey has quit [Ping timeout: 255 seconds]
aganov has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
nobody404 has quit [Ping timeout: 244 seconds]
st1gma1 has quit [Quit: Leaving]
NightMonkey has joined #ruby
corehook has quit [Remote host closed the connection]
mitt3ns has joined #ruby
agent_white has quit [Ping timeout: 250 seconds]
diegoviola has quit [Read error: Connection reset by peer]
duncan_ has joined #ruby
duncan_ has quit [Max SendQ exceeded]
spastorino has quit [Quit: Connection closed for inactivity]
duncannz has joined #ruby
Guest63005 has joined #ruby
duncannz_ has joined #ruby
duncannz_ has quit [Max SendQ exceeded]
corehook has joined #ruby
duncannz_ has joined #ruby
duncannz_ has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
marcdel_ has quit []
neoxquick has quit [Read error: Connection reset by peer]
jottr has joined #ruby
tagrudev has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
patrick99e99 has quit [Ping timeout: 244 seconds]
divi has quit [Read error: Connection reset by peer]
divi has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
Areessel1 has joined #ruby
rshetty has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 250 seconds]
Areessell has quit [Ping timeout: 240 seconds]
jimbach has joined #ruby
Photism has joined #ruby
The_NetZ_ has joined #ruby
speaking1ode has joined #ruby
jnollette_mobile has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
jnollette has quit [Ping timeout: 265 seconds]
yetanotherdave has joined #ruby
nobitanobi has quit [Remote host closed the connection]
The_NetZ has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
jimbach has quit [Ping timeout: 250 seconds]
mitt3ns is now known as agent_white
last_staff has joined #ruby
anaeem1 has joined #ruby
lxsameer has joined #ruby
ejnahc has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
ejnahc has joined #ruby
echooo1 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Spami has quit [Client Quit]
b4rbz has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
jlast has joined #ruby
echooo has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
sinequanon has quit []
sinequanon has joined #ruby
govg has joined #ruby
fabrice31 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
bal has joined #ruby
<agent_white> >> $$
<eval-in__> agent_white => 32150 (https://eval.in/224465)
<agent_white> Curious. tryruby shows "2". Wonder how they did dat.
nrsk has quit [Remote host closed the connection]
ht__th has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
bal has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
bal has joined #ruby
rebelshrug has left #ruby ["Textual IRC Client: www.textualapp.com"]
walterdisney__ has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
nvdpl has quit [Quit: ZZZzzz…]
duncannz has joined #ruby
NoNMaDDeN has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
Cache_Money has quit [Quit: Cache_Money]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
fedexo has quit [Ping timeout: 264 seconds]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
Guest6644 has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
duncannz has quit [Quit: Leaving]
Lingos_ has quit [Quit: Be back later ...]
<Hanmac> agent_white: process id maybe?
keso1 has joined #ruby
walterdisney__ is now known as hell_boy
keso1 has quit [Max SendQ exceeded]
<agent_white> That's what I mean though... PID1 is the init in linux.
hell_boy is now known as hulky
hulky is now known as hulk
hulk is now known as supermario
<agent_white> Just makes me wonder how it could be the second process :P
supermario is now known as uber_hulk
uber_hulk has quit [Quit: leaving]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
* agent_white is attempting to make a ruby sandbox
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
uber_hulk has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
jlast has quit [Ping timeout: 258 seconds]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
Avahey has quit [Quit: Connection closed for inactivity]
keso1 has joined #ruby
Versality has joined #ruby
keso1 has quit [Max SendQ exceeded]
Megtastique has joined #ruby
clauswitt has joined #ruby
nagaraj has quit [Remote host closed the connection]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
robbyoconnor has joined #ruby
clauswitt has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
keso1 has quit [Max SendQ exceeded]
robbyoconnor has quit [Client Quit]
keso1 has joined #ruby
PotatoChipz has joined #ruby
keso1 has quit [Max SendQ exceeded]
<PotatoChipz> Can anyone help me with this... thank you in advance. So I have a Class Fruit... and then i have a module DoSomething... I included DoSomething in Class Fruit... from inside DoSomething, i wanna know in which class was I included.
clauswitt has joined #ruby
<PotatoChipz> self.parent.class just gives me "Class" i want to get "Fruit"
keso1 has joined #ruby
<agent_white> Is there a way to trace the source (C code) method calls made in ruby?
keso1 has quit [Max SendQ exceeded]
uber_hulk has quit [Read error: Connection reset by peer]
noniusi has joined #ruby
<rpag> agent_white, TracePoint/set_trace_func, and the "c_call" event
keso1 has joined #ruby
<agent_white> rpag: Awesome! Thank you!
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
gsd has joined #ruby
keso1 has quit [Max SendQ exceeded]
sdwrage has joined #ruby
cmckee has quit [Quit: cmckee]
keso1 has joined #ruby
uber_hulk has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
kwd has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
sdwrage_ has quit [Ping timeout: 264 seconds]
zoink has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
Guest63005 has quit [Quit: This computer has gone to sleep]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
Lingos_ has joined #ruby
chenillen has quit [Quit: chenillen]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
dts|offtowork is now known as dts
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
chenillen has joined #ruby
weemsledeux has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
apeiros_ has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
krz has quit [Quit: WeeChat 1.0.1]
tobago has joined #ruby
josephndenton has joined #ruby
arup_r has quit [Remote host closed the connection]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
rohit has joined #ruby
<agent_white> PotatoChipz: Can't help you, but why do you want to do that?
Guest63005 has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
Jake232 has joined #ruby
josephndenton has quit [Ping timeout: 258 seconds]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
giuseppesolinas has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
francisfish has quit [Remote host closed the connection]
despai has joined #ruby
Megtastique has quit []
Soda has quit [Remote host closed the connection]
krz has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
chenillen has quit [Quit: chenillen]
francisfish has joined #ruby
krz has quit [Client Quit]
chenillen has joined #ruby
ferr has quit [Ping timeout: 256 seconds]
Asher has quit [Quit: Leaving.]
D9 has quit [Quit: Leaving]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
francisfish has quit [Remote host closed the connection]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
alex88 has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
arup_r has joined #ruby
Macaveli has joined #ruby
chenillen has quit [Quit: chenillen]
keso1 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
keso1 has quit [Max SendQ exceeded]
Macaveli has quit [Client Quit]
razieliyo has joined #ruby
razieliyo has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
az7ar is now known as az7ar_away
PotatoChipz has quit [Ping timeout: 246 seconds]
lolmaus has quit [Quit: Konversation terminated!]
keso1 has joined #ruby
shevy has joined #ruby
keso1 has quit [Max SendQ exceeded]
econerd4ever has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
samuel02 has joined #ruby
krz has quit [Client Quit]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
krz has joined #ruby
Macaveli has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
last_staff has quit [Quit: last_staff]
msgodf has joined #ruby
echooo has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
soahccc has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
echooo1 has quit [Ping timeout: 255 seconds]
soahccc has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
joonty has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
steak__ has joined #ruby
<steak__> hello all
econerd4ever has quit [Ping timeout: 258 seconds]
keso1 has joined #ruby
bricker`work has quit [Ping timeout: 264 seconds]
keso1 has quit [Max SendQ exceeded]
<steak__> could anyone point me to a ruby rpm package >=1.9 that DOESN'T require SCL and works out of the box on CentOS 6.x?
einarj has joined #ruby
sdwrage has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby
<crome> does anything work out of the box on centos?
krz has quit [Quit: WeeChat 1.0.1]
keso1 has joined #ruby
francisfish has joined #ruby
keso1 has quit [Max SendQ exceeded]
arup_r has quit [Remote host closed the connection]
Xeago has joined #ruby
<crome> noniusi is spamming some crap in privmsg
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
agit0 has joined #ruby
econerd4ever has joined #ruby
keso1 has joined #ruby
atmosx has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
<shevy> steak__ I don't think anyone here uses centos :-)
jlast has joined #ruby
<shevy> yeah noniusi must be banned
krz has joined #ruby
nrsk has joined #ruby
keso1 has joined #ruby
noniusi was kicked from #ruby by apeiros_ [noniusi]
noniusi has joined #ruby
keso1 has quit [Max SendQ exceeded]
noniusi was kicked from #ruby by apeiros_ [noniusi]
noniusi has joined #ruby
noniusi was banned on #ruby by apeiros_ [*!~tuuuu@*]
<Hijiri> my school uses CentOS
noniusi was kicked from #ruby by apeiros_ [noniusi]
keso1 has joined #ruby
Juanchito has joined #ruby
<crome> does your school work out of the box?
keso1 has quit [Max SendQ exceeded]
<shevy> \o/
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
<shevy> Hijiri in the USA?
<Hijiri> yes
<Hijiri> I'm still a freshman
<shevy> I haven't yet seen any school here (in central europe) using linux; they still are windows-only
<shevy> save for universities of course; the technical university here uses ubuntu on their servers + workstations for student logins
<Hijiri> The OS depends on the computer lab here
<Hijiri> the CSE lab is CentOS
livathinos has joined #ruby
<Hijiri> I think it's synced with Docker or something
<steak__> well, the OS choice is not mine
<crome> there used to be a linux server in the highschool I went to back at home. one could telnet to it. as root. without a password.
keso1 has joined #ruby
<crome> we had so much fun with it
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keso1 has joined #ruby
last_staff has joined #ruby
keso1 has quit [Max SendQ exceeded]
ctp has joined #ruby
keso1 has joined #ruby
noniusi has quit [K-Lined]
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
doev has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
jottr has joined #ruby
keso1 has joined #ruby
francisfish has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
keso1 has quit [Max SendQ exceeded]
francisfish has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
CustosLimen has quit [Ping timeout: 240 seconds]
keso1 has joined #ruby
francisfish has quit [Remote host closed the connection]
sdwrage has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
anarang has quit [Quit: Leaving]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
jottr has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
superscalr has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
sdwrage has quit [Client Quit]
aces1up9939 has quit []
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
rshetty has joined #ruby
boombadaroomba has joined #ruby
robbyoconnor has joined #ruby
kamilc__ has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
oo_ has joined #ruby
last_staff has quit [Ping timeout: 265 seconds]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
doev has quit [Ping timeout: 265 seconds]
tesuji has joined #ruby
arup_r has joined #ruby
keso1 has joined #ruby
patrick99e99 has joined #ruby
keso1 has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 265 seconds]
boombadaroomba has quit [Ping timeout: 244 seconds]
econerd4ever has quit [Remote host closed the connection]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
moritzs has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
keso1 has joined #ruby
hiyosi has joined #ruby
keso1 has quit [Max SendQ exceeded]
anarang has joined #ruby
patrick99e99 has quit [Ping timeout: 265 seconds]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
rshetty_ has joined #ruby
dermothaughey has joined #ruby
keso1 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
keso1 has quit [Max SendQ exceeded]
Takle has joined #ruby
rshetty__ has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
sinequanon has quit [Remote host closed the connection]
momo123 has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
MrIlyas has joined #ruby
rshetty has quit [Ping timeout: 258 seconds]
keso1 has joined #ruby
momo123 has left #ruby [#ruby]
keso1 has quit [Max SendQ exceeded]
Xeago_ has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
keso1 has joined #ruby
dermothaughey has quit [Ping timeout: 272 seconds]
keso1 has quit [Max SendQ exceeded]
rshetty_ has quit [Ping timeout: 256 seconds]
Seich has quit [Ping timeout: 258 seconds]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
az7ar_away is now known as az7ar
keso1 has joined #ruby
RitterJack has joined #ruby
keso1 has quit [Max SendQ exceeded]
<shevy> cool
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keso1 has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
keso1 has quit [Max SendQ exceeded]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
finferl has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
keso1 has joined #ruby
keso1 has quit [Max SendQ exceeded]
<shevy> steak__ have you tried to compile ruby from source into your home directory yet?
joonty has quit [Quit: Leaving]
<shevy> if that works, and it should work, then you could always bake a new rpm package from that
<Hanmac> apeiros: keso1 "Max SendQ exceeded" problem
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.bz2
keso1 has joined #ruby
<atmosx> shevy: hey, I showed my tesis to my prof, he was excited
wjimenez5271 has quit [Remote host closed the connection]
keso1 has quit [Max SendQ exceeded]
<shevy> atmosx which prof? Not the one you made the exam lately right? the other prof who does not know anything about computers? :-)
<atmosx> shevy: requested 2 extra functionalities and told to upload it to a server to he and Czech students (and his two PhD students) can test it :D
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
kwd has quit [Read error: Connection reset by peer]
<shevy> oh so he can't be a complete noob; he knows what a server is :P
<atmosx> my thesis prof, he doesn't know much about comuters yes
<atmosx> hehe
keso1 has joined #ruby
<atmosx> yeah he knew my cmputer was a mac and asked if the (http program) will run on windows
keso1 has quit [Max SendQ exceeded]
<atmosx> he requested 2 extra functionalities
CustosLimen has joined #ruby
<atmosx> but since I have 3 semesters of idling I can add custom STOP codons
<shevy> I still don't entirely understand it though; you won't get the degree before 1.5 years? but your studies are still finished?
fella5s has joined #ruby
<shevy> what is the point of idling hahaha
<shevy> you idle in IRC, not in reallife!
supersym has joined #ruby
kwd has joined #ruby
<shevy> atmosx btw it kinda feels to me as if bioruby does not really evolve much :\
<atmosx> shevy: hm, I don't know. To me looks pretty much complete..
<steak__> shevy: that would be my last resort
<atmosx> but it's undocumented
<atmosx> heavily undocumented
<steak__> I'm trying to see whether SCL can be used
<shevy> yeah
<atmosx> there's a sort of quick tutorial and that's about it, you have to dig to find extra info
<shevy> japanese coders hate the english language with a passion
<atmosx> I had to dig to find info about tables for example. But they support all 25 NCBI tables
<shevy> is that the one with the different stop codons?
<atmosx> they have ready methods to add, edit, delete, create custom tables but you have to dig to find info about it
<atmosx> yes
<shevy> I think I found it with a local "grep -r" search :-)
<atmosx> I think there are about 4 stop codons
<atmosx> hehe
rohit has quit [Quit: Leaving]
<shevy> well now you have time to create the best ruby queryable site!
nagaraj has joined #ruby
corehook has joined #ruby
last_staff has joined #ruby
jheg has joined #ruby
i0n has quit [Quit: snooze]
krz has quit [Read error: Connection reset by peer]
olivier_bK has joined #ruby
krz has joined #ruby
jheg has quit [Client Quit]
ctp has joined #ruby
giuseppesolinas has joined #ruby
kuda has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
elaptics`away is now known as elaptics
Hanmac has quit [Read error: Connection reset by peer]
last_staff has quit [Ping timeout: 265 seconds]
tatsuo has quit [Quit: Leaving...]
Hanmac has joined #ruby
Rikimg is now known as Riking
rdark has joined #ruby
zarubin has joined #ruby
jack_rabbit has quit [Ping timeout: 258 seconds]
ki0 has joined #ruby
dangerousdave has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
nvdpl has joined #ruby
echooo1 has joined #ruby
startupality has joined #ruby
pacMakaveli has joined #ruby
echooo has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
queequeg1 has quit [Ping timeout: 240 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
Asher has joined #ruby
lemur has quit [Remote host closed the connection]
danijoo has joined #ruby
shelling_ is now known as shelling
lemur has joined #ruby
maasha has joined #ruby
dseitz has quit [Quit: night]
<maasha> møjn
queequeg1 has joined #ruby
az7ar is now known as az7ar_away
<maasha> of all blasted programming languages, gnuplot is the most obfuscated.
lolmaus has joined #ruby
<apeiros_> môïn maasha
arup_r has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<maasha> apeiros_: elvish?
<cajone> moin? , Luxemburg ?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandaant has joined #ruby
<apeiros_> maasha: randomesian
oo_ has quit [Remote host closed the connection]
<apeiros_> (well, just "moin" with whatever similarly looking characters)
timonv_ has joined #ruby
oo_ has joined #ruby
narcan has joined #ruby
<apeiros_> we use ø for "average"
<apeiros_> and in older scripts, Ø for zero, to distinguish it from O
kireevco has quit [Quit: Leaving.]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
steak__ has quit [Quit: Lost terminal]
max96at|off is now known as max96at
jlast has joined #ruby
jmdade has quit [Quit: Textual IRC Client: www.textualapp.com]
<maasha> well, I used it for "morn'"
<maasha> (10.30 am)
<apeiros_> yeah, I thought "moin" meant "good morning" in northern german. but actually it can be used as a greeting at any time of the day.
<sevenseacat> guten.... i didnt learn 'morning' yet
krisquigley has joined #ruby
<apeiros_> morgen
Asher has quit [Quit: Leaving.]
Lingos_ has quit [Quit: Be back later ...]
<sevenseacat> oh yeah i did learn that
<sevenseacat> cheers :)
joonty has joined #ruby
<maasha> apeiros_: actually "møjn" is a special word from Southern Jutland (Denmark) and mean hello, thanks, and goodbye.
<apeiros_> maasha: I' quite sure it has the same roots as moin
Lingos_ has joined #ruby
<apeiros_> given they're geographically close too
<sevenseacat> oh duolingo has swedish now. sweet.
ikaros has joined #ruby
Pumukel has joined #ruby
<apeiros_> duolingo recommendable? I still want to learn spanish and japanese.
<sevenseacat> it has spanish, it doesnt have japanese yet
lkba has quit [Ping timeout: 264 seconds]
<apeiros_> oh, duolingo only got french and english
Asher has joined #ruby
lidaaa has quit [Ping timeout: 244 seconds]
<apeiros_> ah, I guess I should pretend to be natively speaking english. I think I'm good enough to learn spanish with it :)
<sevenseacat> for sure
linduxed has quit [Read error: Connection reset by peer]
kuda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> i like duolingo... ive started learning german with it and may i just say, gendered nouns can bite me
vinleod has joined #ruby
BlakeRG has quit []
<apeiros_> german is silly complicated
davedev24_ has quit [Remote host closed the connection]
<apeiros_> almost everytime my wife asks me "why's that so in german?" I can't tell :(
Lingos_ has quit [Ping timeout: 245 seconds]
<sevenseacat> also, so many different forms for things that i dont even know in english
<sevenseacat> (and i'm a native english speaker)
<apeiros_> my german is excellent. but reasons? :-| german just doesn't make sense in so many places.
matchaw_ has joined #ruby
<sevenseacat> its an awesome language though. you sound permanently angry when speaking it.
<apeiros_> you haven't heard mongol yet :-D
<apeiros_> *mongolian
<sevenseacat> ooh no, no i havent
jmdade has joined #ruby
dts is now known as dts_Zzz
matchaw has quit [Ping timeout: 255 seconds]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
jheg has joined #ruby
corehook has quit [Remote host closed the connection]
AliRezaTaleghani has quit [Read error: Connection reset by peer]
Talorc has joined #ruby
giuseppesolinas has joined #ruby
AliRezaTaleghani has joined #ruby
AliRezaTaleghani has quit [Max SendQ exceeded]
agit0 has quit [Quit: Leaving]
AliRezaTaleghani has joined #ruby
Lingos_ has joined #ruby
Photism has quit [Quit: Leaving]
<apeiros_> machete: aaahahaha, yes, that one's excellent
<maasha> It is just as good as the killer joke
<maasha> if anyone don't know the killer joke, now is a good time to leave the chan and never come back.
* jheg leaves
<apeiros_> =(
jheg has left #ruby [#ruby]
<maasha> ignorami
jheg has joined #ruby
chthon has joined #ruby
<jheg> :)
<apeiros_> maasha: scio nescio
<apeiros_> oh, I actually know that one
decoponio has joined #ruby
linduxed has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
kristofferR has joined #ruby
<maasha> then you can stay
fabrice31 has quit [Remote host closed the connection]
<maasha> but kick jheg now you are wearing the "op" hat :o)
* jheg holds on
fabrice31 has joined #ruby
ReRixo has joined #ruby
andrewlio has joined #ruby
<apeiros_> oh
<apeiros_> accidentally did /deop apeiros
<apeiros_> damn tails :)
atmosx has quit [Quit: computer went to sleep...]
Ankhers has joined #ruby
yfeldblum has joined #ruby
* jheg lets go
anaeem1__ has joined #ruby
last_staff has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
quimrstorres has joined #ruby
workmad3 has joined #ruby
linduxed has quit [Quit: WeeChat 1.0.1]
timonv_ has quit [Read error: Connection reset by peer]
anaeem1 has quit [Ping timeout: 255 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
danijoo has quit [Quit: Leaving...]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
parzzix has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
danijoo has joined #ruby
marr has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
corehook has joined #ruby
arup_r has quit [Remote host closed the connection]
finferl has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
linduxed has joined #ruby
tvw has joined #ruby
DaniG2k has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
mikepack has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
siso has joined #ruby
Talorc has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
queequeg1 has quit [Ping timeout: 240 seconds]
wolflee_ has quit [Quit: (null)]
NoNMaDDeN has quit [Read error: Connection reset by peer]
wolflee_ has joined #ruby
NoNMaDDeN has joined #ruby
ferri has joined #ruby
reinaldob has joined #ruby
queequeg1 has joined #ruby
Guest8352 has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
narph has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
supersym has quit [Ping timeout: 245 seconds]
einarj has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
einarj has joined #ruby
giuseppesolinas has joined #ruby
arup_r has joined #ruby
<pontiki> o/
atmosx has joined #ruby
ferr has joined #ruby
queequeg1 has quit [Ping timeout: 255 seconds]
queequeg1 has joined #ruby
ReRixo has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
hiyosi has joined #ruby
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
hamakn has quit [Remote host closed the connection]
wald0 has joined #ruby
hamakn has joined #ruby
hiyosi has quit [Ping timeout: 255 seconds]
anaeem1__ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
hamakn has quit [Ping timeout: 244 seconds]
patrick99e99 has joined #ruby
sigurding has quit [Quit: sigurding]
kuda has joined #ruby
oo_ has quit [Remote host closed the connection]
corehook has joined #ruby
Spami has joined #ruby
rshetty has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
oo_ has joined #ruby
jottr has joined #ruby
echooo has joined #ruby
rshetty__ has quit [Ping timeout: 256 seconds]
duplex has quit [Read error: Connection reset by peer]
duplex has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
echooo1 has quit [Ping timeout: 245 seconds]
Suchit has quit [Remote host closed the connection]
mkaesz has joined #ruby
rshetty_ has joined #ruby
Abhijit has quit [Read error: Connection reset by peer]
ajaiswal__ has quit [Quit: Leaving]
sigurding has joined #ruby
Abhijit has joined #ruby
roolo has joined #ruby
uber_hulk has quit [Quit: leaving]
ghostlines has joined #ruby
rshetty has quit [Ping timeout: 265 seconds]
nvdpl has joined #ruby
rshetty_ has quit [Remote host closed the connection]
Guest63005 has quit [Quit: This computer has gone to sleep]
govg has joined #ruby
charliesome has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
troulouliou_dev has joined #ruby
wsmoak has joined #ruby
Takle has quit [Remote host closed the connection]
atmosx has quit [Quit: computer went to sleep...]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Polysics_ has joined #ruby
Takle has joined #ruby
jlast has joined #ruby
valeriansaliou has joined #ruby
govg has quit [Ping timeout: 264 seconds]
govg has joined #ruby
Lingos_ has quit [Quit: Be back later ...]
ghostlines has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 258 seconds]
fsapo has joined #ruby
sigurding has quit [Quit: sigurding]
agent_white has quit [Quit: bbl]
sigurding has joined #ruby
Lingos_ has joined #ruby
kuda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Polysics_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
atmosx has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kapott has joined #ruby
atmosx has quit [Quit: Lost in trance]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
rshetty has joined #ruby
sigurding has quit [Quit: sigurding]
fabrice31 has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 272 seconds]
nvdpl has quit [Quit: ZZZzzz…]
sigurding has joined #ruby
Xeago has joined #ruby
valeriansaliou has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: This computer has gone to sleep]
chishiki has quit [Quit: WeeChat 1.0.1]
clauswitt has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 255 seconds]
Xeago_ has quit [Ping timeout: 264 seconds]
chishiki has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
Merec has joined #ruby
rshetty has quit [Remote host closed the connection]
mkaesz has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
hiyosi has joined #ruby
fabrice31 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
tobago has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
sski has joined #ruby
razieliyo has quit [Quit: Saliendo]
hiyosi has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
_ixti_ has joined #ruby
govg has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
tobago has joined #ruby
govg has joined #ruby
uber_hulk has joined #ruby
cmckee has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
AFKGeek has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
fgo_ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
Morkel has joined #ruby
jespada has joined #ruby
AFKGeek has quit [Remote host closed the connection]
AFKGeek has joined #ruby
Ankhers has joined #ruby
samuel02 has joined #ruby
parzzix has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
setner has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
setner has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Bye]
setner has joined #ruby
kapott_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
setner has quit [Client Quit]
moritzs has quit [Ping timeout: 244 seconds]
AFKGeek has joined #ruby
wjimenez5271 has joined #ruby
fsapo has quit [Remote host closed the connection]
kapott_ has quit [Client Quit]
ReRixo has joined #ruby
fsapo has joined #ruby
Fusl has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
wjimenez5271 has quit [Ping timeout: 264 seconds]
Fusl has joined #ruby
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
aef has joined #ruby
mkaesz has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
KnowledgeOwl has joined #ruby
AFKGeek has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
blackmesa has joined #ruby
n1lo has joined #ruby
vinleod has quit [Read error: Connection reset by peer]
vinleod has joined #ruby
valeriansaliou has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<zacts> morning
<zacts> I fell asleep reading my ruby book last night
<The_NetZ_> so damned close! :)
rushed has joined #ruby
valeriansaliou has quit [Ping timeout: 240 seconds]
Jake232 has joined #ruby
Seich has joined #ruby
ferri has quit [Ping timeout: 258 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
sbar_ has quit [Read error: Connection reset by peer]
<shevy> hmm
<shevy> if I want to provide another way to require
<shevy> let's just for the sake of finding a name, call it require2()
<shevy> how would I do about this? modify Kernel with it, and alias towards the old require() ?
<workmad3> shevy: pretty much, yeah
kuda has joined #ruby
<workmad3> shevy: that's how rubygems does it
ferri has joined #ruby
<shevy> ok
sbar_ has joined #ruby
<shevy> sounds easy!
Takle has joined #ruby
lkba has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Merec has quit [Ping timeout: 258 seconds]
giuseppesolinas has joined #ruby
kp666 has quit [Quit: Leaving]
razieliyo_ has joined #ruby
kuda has quit [Read error: No route to host]
sprihodko has joined #ruby
jlast has joined #ruby
GGMethos has quit [Ping timeout: 272 seconds]
nobody404 has joined #ruby
i0n has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
cmckee has quit [Quit: cmckee]
doev has joined #ruby
giuseppesolinas has joined #ruby
davedev24_ has joined #ruby
Xiti` has joined #ruby
parzzix has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 265 seconds]
<DaniG2k> guys if I have a string like "<img class=\"imagecache imagecache-content_pane_images_590 imagecache-default imagecache-content_pane_images_590_default\">"
postmodern has quit [Quit: Leaving]
<DaniG2k> and I want to match <img.*?class="(imagecache.*?)">
Xiti has quit [Ping timeout: 244 seconds]
<DaniG2k> /<img.*?class="(imagecache.*?)">/
<sevenseacat> dont match html with regex. ever.
<DaniG2k> and replace the $1 variable with something else
<DaniG2k> :S
<DaniG2k> no?
<apeiros_> no
blackmesa has quit [Ping timeout: 272 seconds]
<DaniG2k> I basically want to change the class to somethign else
jaequery has joined #ruby
<DaniG2k> for the images
nobody404 has quit [Ping timeout: 265 seconds]
<apeiros_> use nokogiri or similar
<sevenseacat> parsing html should only be done with tools like nokogiri.
<DaniG2k> why's that
<workmad3> DaniG2k: HTML is too complex a syntax for regular expressions
<DaniG2k> hmm ok
<apeiros_> html is not regular
Pixi_ has joined #ruby
hiyosi has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas has joined #ruby
Squarepy has joined #ruby
<apeiros_> .css('img.imagecache') # selects all the images with class imagecache. you can then mutate the nodes.
<workmad3> DaniG2k: for starters, the order of items in the class attribute is completely irrelevant to HTML... so you'd need to write a regular expression that also allowed that... and you'd need to make sure you didn't match other attributes as well, you'd need to check if the class was made self-closing or not, and if this is inside a large HTML fragment you'd also need to check that you're not in a comment... or i
catphish has joined #ruby
<workmad3> nside CDATA tags or....
<workmad3> DaniG2k: all of which quickly grows beyond the capabilities of even the extended regular expressions used by ruby
suy|BNC is now known as disperso
Versality has quit [Quit: Be back later ...]
Versality has joined #ruby
jaequery has quit [Ping timeout: 255 seconds]
superscalr has quit [Quit: superscalr]
<DaniG2k> ok
<DaniG2k> thanks :)
AlSquirrel has joined #ruby
Xiti` has quit [Ping timeout: 265 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 255 seconds]
hiyosi has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
workmad3 is now known as wm3|away
rsavage has joined #ruby
govg has joined #ruby
<rsavage> hello all
sigurding has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
patrick99e99 has joined #ruby
<rsavage> Can anyone help me understand why I can't add a hash into another hash? I get this error syntax error, unexpected ')', expecting tASSOC
uber_hulk has quit [Quit: leaving]
blackmesa has joined #ruby
sbar__ has joined #ruby
<catphish> can anyone briefly explain what the rack library does? how much of an http server does it implement?
sbar_ has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 240 seconds]
fsapo has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
govg has joined #ruby
<pontiki> rsavage: !code
<helpa> rsavage: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
Morkel has quit [Quit: Morkel]
pika_pika has joined #ruby
<pontiki> catphish: rack essential wraps a web service / http server in a uniform interface
<pontiki> essentially*
rushed has quit [Quit: rushed]
nrsk has joined #ruby
<catphish> i understand it from the application perspective, but i'm struggling to understand how it interfaces with a web server
jlast has quit [Ping timeout: 258 seconds]
<catphish> or what it actually does, in terms of what the web server has to do vs what rack does
giuseppesolinas has quit [Quit: This computer has gone to sleep]
anaeem1_ has quit [Remote host closed the connection]
gebbione has joined #ruby
<gebbione> n i m back
<apeiros_> catphish: the interface to the webserver is webserver dependent
<apeiros_> that's why it exists - to abstract that very interface.
<pontiki> catphish: delve into the rack handlers and see how it interfaces with each of them
<apeiros_> similar to how database abstraction/independence layers work
<catphish> apeiros_: oh i see, thanks
<pontiki> huh
<pontiki> isn't that what i said?
blackmesa has quit [Ping timeout: 258 seconds]
<apeiros_> yes, i tis :)
<pontiki> ok
<catphish> what i really want is to be able to use a webserver without rack, though i may still want to use some of rack's functionality
<apeiros_> catphish: then the first thing is to go from "a webserver" to "webserver X"
fsapo has joined #ruby
<Xeago> there was a time when cgi was a thing…
<pontiki> still is
<Xeago> *cough* shevy *cough*
<apeiros_> and fcgi
techsethi has quit [Ping timeout: 264 seconds]
<apeiros_> rack can abstract those too
sprihodko has quit [Quit: (null)]
<apeiros_> they are not a good idea for larger frameworks
superscalr has joined #ruby
<apeiros_> s/they are/cgi is/
<catphish> i believe my actual requirement is for a multithreaded server that will provide methods for doing http responses, but also allow me to hijack the socket
Trynemjoel has quit [Ping timeout: 265 seconds]
<catphish> i have a rack http proxy, but i have a couple of issues 1) rack isn't great for proxying 2) i want to add websockets
<shevy> Xeago ah, .cgi works without having to fancy up much anything else; rack forces me into a specific model - I can not avoid having to adhere to its lambda-centric model
GGMethos has joined #ruby
ctp has joined #ruby
blackmesa has joined #ruby
claptor has quit [Quit: this channel is bakas]
<catphish> so i'm just trying to get a feel for how existing http servers work, and whether i can make use of one without being tied down to rack's array based API :)
uber_hulk has joined #ruby
<apeiros_> catphish: use e.g. event machine?
<shevy> speaking of rack, see catphish just pointed out a limitation in 1)! ;)
gccostabr has joined #ruby
larissa has joined #ruby
<catphish> apeiros_: i actually started writing it in eventmachine, the problem, but i'm struggling with event driven programming
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
<catphish> for example, in the case of a connection being proxied, i need to accept a connection, make another connection, and proxy data between them, simple enough in eventmachine, but then trying to add intermediate things like doing an http request to determine the endpoint to proxy to is straining my ability to program non-linearly
einarj has quit [Remote host closed the connection]
haroldwu has quit [Ping timeout: 244 seconds]
Trynemjoel has joined #ruby
haroldwu has joined #ruby
<catphish> not sure if this is simply my lack of understanding of the concept, or if EM isn't really designed for that type of behaviour
timonv_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
techsethi has joined #ruby
govg has quit [Quit: leaving]
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
Bira has joined #ruby
livathin_ has joined #ruby
Areessel1 has quit [Ping timeout: 255 seconds]
apeiros__ has joined #ruby
startupality has quit [Ping timeout: 240 seconds]
<catphish> i think i will start with a simple multithreaded tcp server, pull in the http request parser and response writer from mongrel, and try that out
timonv_ has joined #ruby
haxr has joined #ruby
startupality has joined #ruby
ptrrr_ has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
ptrrr has quit [Ping timeout: 250 seconds]
ptrrr_ is now known as ptrrr
Areessell has joined #ruby
haxrr has joined #ruby
Xeago_ has joined #ruby
certainty has joined #ruby
livathin_ has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 264 seconds]
n1lo has quit [Quit: Leaving]
livathinos has joined #ruby
livathinos has quit [Read error: Connection reset by peer]
siso has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
paulfm has joined #ruby
ferr has quit [Ping timeout: 255 seconds]
haxr has quit [Ping timeout: 244 seconds]
govg has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
n1lo has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
superscalr has quit [Quit: superscalr]
Asher has joined #ruby
vinleod has quit [Ping timeout: 258 seconds]
ptrrr has quit [Quit: ptrrr]
Asher is now known as Guest64107
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
AFKGeek has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
interweb has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
DaniG2k has quit [Quit: leaving]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
AFKGeek has quit [Ping timeout: 245 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
vinleod has joined #ruby
KnowledgeOwl has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
russt has joined #ruby
Abhijit has quit [Quit: Leaving]
dkphenom has joined #ruby
arup_r has quit [Remote host closed the connection]
ctp has joined #ruby
superscalr has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
interweb has quit [Quit: Leaving]
triple_b has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
govg has quit [Quit: leaving]
hamakn has joined #ruby
corehook has quit [Remote host closed the connection]
xenomorph is now known as {xenomorph}
rushed has joined #ruby
nagaraj has quit [Remote host closed the connection]
krz has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
{xenomorph} is now known as xenomorph
spyderma_ has joined #ruby
krz has joined #ruby
spastorino has joined #ruby
samuel02 has quit [Remote host closed the connection]
ptrrr has joined #ruby
spyderman4g63 has quit [Ping timeout: 258 seconds]
hiyosi has joined #ruby
Ankhers has joined #ruby
supersym has joined #ruby
corehook has joined #ruby
supersym has quit [Client Quit]
hiyosi has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
Bira has quit [Remote host closed the connection]
byprdct has joined #ruby
Guest64107 has quit [Ping timeout: 250 seconds]
<shevy> ohhh sevenseacat! I just realized... catphish ... that is also a cat!
Takle has quit [Remote host closed the connection]
<shevy> or perhaps a hybrid... upper half is cat, lower half is a fish
<sevenseacat> they do say imitation is the sincerest form of flattery.
Takle has joined #ruby
<shevy> hehe
jlast has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy> good thing tomorrow is caturday
<Hanmac> shevy best pet is still githubs "octocat" ;P
<shevy> I don't know what that is
bluenemo has joined #ruby
bluenemo has joined #ruby
mhi^ has joined #ruby
Asher has joined #ruby
Asher is now known as Guest61211
einarj has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
techsethi has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<maasha> Hanmac: did you ever read the proposal by Linus that lead to Tux?
Takle has joined #ruby
<maasha> it is brilliant
<Hanmac> wasnt that something like "a duck that looks like its high" or something like that?
<maasha> Hanmac: not that I recall.
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
Bira has joined #ruby
oleo has joined #ruby
rshetty has quit [Remote host closed the connection]
<tobiasvl> Now, with penguins, (cuddly such), "contented" means it has either just
<tobiasvl> gotten laid, or it's stuffed on herring
yfeldblum has quit [Ping timeout: 240 seconds]
<maasha> Someone actually scretched up Tux from this. I think it's awesome and hence I favor Tux.
last_staff has quit [Quit: **** is that the time!!??]
tesuji has quit [Ping timeout: 255 seconds]
olivier_bK has quit [Ping timeout: 255 seconds]
sigurding has joined #ruby
krisquigley has quit [Remote host closed the connection]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Pumukel has quit [Ping timeout: 265 seconds]
tier has joined #ruby
mkaesz has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
Ankhers has joined #ruby
CustosLimen has quit [Ping timeout: 265 seconds]
livingstn has joined #ruby
Pixi_ has quit [Quit: Pixi_]
<shevy> by the way on the topic of penguins gotten laid
whoisjake has joined #ruby
Xiti has joined #ruby
ctp has joined #ruby
uber_hulk has quit [Quit: leaving]
nateberkopec has joined #ruby
sanguisdex has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 264 seconds]
lpaste has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 258 seconds]
sanguisdex has joined #ruby
lpaste has joined #ruby
mleone has joined #ruby
ReRixo has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
benzrf|offline is now known as benzrf
allcentu1 has joined #ruby
s1|verfox has quit [Remote host closed the connection]
dreinull has quit [Remote host closed the connection]
dreinull has joined #ruby
cpruitt has joined #ruby
livathinos has joined #ruby
wm3|away is now known as workmad3
spookley has quit [Ping timeout: 272 seconds]
l3kn has quit [Ping timeout: 272 seconds]
jaxxstorm has quit [Ping timeout: 272 seconds]
Dwarf has quit [Ping timeout: 272 seconds]
mostlybadfly has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
ptrrr has quit [Quit: ptrrr]
NameNotFound has quit [Ping timeout: 272 seconds]
tessi_zz has quit [Ping timeout: 272 seconds]
comma8 has quit [Ping timeout: 272 seconds]
vcoinminer______ has quit [Ping timeout: 272 seconds]
jimeh has quit [Ping timeout: 272 seconds]
exadeci has quit [Ping timeout: 272 seconds]
AdamMeghji has quit [Ping timeout: 272 seconds]
hellschreiber_ has quit [Ping timeout: 272 seconds]
tiagonobre__ has quit [Ping timeout: 272 seconds]
tris has quit [Ping timeout: 272 seconds]
dreinull has quit [Remote host closed the connection]
jlast has joined #ruby
arrubin has quit [Ping timeout: 272 seconds]
mjc_ has quit [Ping timeout: 272 seconds]
Jello_Raptor has quit [Ping timeout: 272 seconds]
RoryHughes has quit [Ping timeout: 272 seconds]
LBRapid has quit [Ping timeout: 272 seconds]
rotor has quit [Ping timeout: 272 seconds]
pusewicz has quit [Ping timeout: 272 seconds]
SpaceKookie has quit [Ping timeout: 272 seconds]
bauruine has quit [Ping timeout: 272 seconds]
amitchellbullard has quit [Ping timeout: 272 seconds]
mattjbarlow has quit [Ping timeout: 272 seconds]
procat has joined #ruby
Soda has joined #ruby
dreinull has joined #ruby
mostlybadfly has joined #ruby
tiagonobre___ has joined #ruby
AdamMeghji has joined #ruby
charliesome has quit [Quit: zzz]
Jello_Raptor has joined #ruby
rotor has joined #ruby
NameNotFound has joined #ruby
vcoinminer______ has joined #ruby
pusewicz has joined #ruby
shock_one has joined #ruby
arrubin has joined #ruby
amitchellbullard has joined #ruby
l3kn has joined #ruby
Spookley_ has joined #ruby
<shock_one> Hi. Does anybody know how would I set a Net::HTTPResponse as a current page of Mechanize?
anaeem1_ has joined #ruby
SpaceKookie has joined #ruby
mattjbarlow has joined #ruby
LBRapid has joined #ruby
Lightsword has quit [Quit: Lightsword]
jimbach has joined #ruby
CustosLimen has joined #ruby
exadeci has joined #ruby
jimeh has joined #ruby
tris has joined #ruby
hellschreiber has joined #ruby
<shock_one> So, I don't want Mechanize to perform HTTP; I already have a response, but want to use some Mechanize power to explore it.
mjc_ has joined #ruby
RoryHughes has joined #ruby
tessi_zz has joined #ruby
Spookley_ is now known as Spookley
<sevenseacat> thats not really what mechanize is for
<sevenseacat> you want nokogiri
quimrstorres has quit [Remote host closed the connection]
bauruine has joined #ruby
jimbach_ has joined #ruby
arup_r has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 258 seconds]
ptrrr has joined #ruby
ghr has joined #ruby
shock_one_ has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
jimbach_ has quit [Remote host closed the connection]
comma8 has joined #ruby
Dwarf has joined #ruby
jimbach has joined #ruby
silkfox has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
<shock_one_> sevenseacat, I'd love not to want it, but I'm trying to replace the HTTP client of existing system and not to break the codebase. So, I don't have an option.
exgf_u_v has joined #ruby
banister has joined #ruby
livathinos has quit [Remote host closed the connection]
blackmesa has joined #ruby
<shock_one_> I understand that the solution will be a hack, but I'm fine with it.
NoNMaDDeN has quit [Remote host closed the connection]
tesaf has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
russt has quit [Quit: russt]
krz has quit [Quit: WeeChat 1.0.1]
giuseppesolinas has joined #ruby
einarj has quit [Remote host closed the connection]
exgf_u has quit [Ping timeout: 250 seconds]
giuseppesolinas has quit [Client Quit]
kwd has quit [Quit: kwd]
St_Marx has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 240 seconds]
<workmad3> shock_one_: replace the HTTP client in what sense?
Spookley has quit [Quit: Spookley Says Bye]
<cHarNe2> hi guys, im having some trouble with savon, (soap) i can get it to view the xml that it sends
aboudreault has quit [Ping timeout: 264 seconds]
Ulrike_Rayne has joined #ruby
elcheckito has quit [Ping timeout: 255 seconds]
KnowledgeOwl has quit [Quit: Saindo]
<shock_one_> workmad3, we were using regular Net::HTTP, but now we need a very special and smart-ass HTTP client, which we wrote on our own. But some parts of code used not Net::HTTP, but Mechanize. And now I'd like to befriend it with our HTTP client.
tier has quit [Remote host closed the connection]
cleopatra has quit [Ping timeout: 244 seconds]
<workmad3> shock_one_: hmm... then I'd suggest digging through the mechanize code to figure out how to either: 1) replace its internal HTTP client with your own or 2) bypass mechanize requests and create the response objects from mechanize yourself
SolarSailor has joined #ruby
tier has joined #ruby
jaequery has joined #ruby
<shock_one_> workmad3, yeah, that's what I'm doing. Thank you.
<workmad3> shock_one_: a quick look at the code indicates that neither is likely to be easy, and will probably require a chunk of time spent fiddling and breaking things
jerius has joined #ruby
<workmad3> shock_one_: although I suspect the second one will be easier, by instantiating Mechanize::Page objects directly
<workmad3> but you'll probably lose the ability to traverse links via mechanize
arup_r has quit [Quit: Leaving.]
<shock_one_> workmad3, actually responses are of type Mechanize::File. If only the authors listened to wise people who suggest to inject dependencies.
<workmad3> shock_one_: Mechanize::Page is a subclass of file that gets created with HTML responses ;)
noop has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
<shock_one_> True that.
Takle has joined #ruby
wald0 has quit [Ping timeout: 255 seconds]
samuel02 has joined #ruby
noop has joined #ruby
russt has joined #ruby
mary5030 has joined #ruby
aboudreault has joined #ruby
wald0 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
josephndenton has joined #ruby
mary5030 has joined #ruby
centrx has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
antgel has joined #ruby
Lingos_ has quit [Quit: Be back later ...]
vsipuli has joined #ruby
elcheckito has joined #ruby
patrick99e99 has joined #ruby
<vsipuli> Is there any way of making Emac 24.4's default ruby-mode not deep indent argument lists without parentheses (or even better, not deep indent anything else either)?
rshetty has joined #ruby
<vsipuli> (Argument lists within parentheses are not deep indented by default it seems)
yfeldblum has joined #ruby
Lingos_ has joined #ruby
mkaesz has joined #ruby
duggiefresh has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
aboudreault has quit [Ping timeout: 244 seconds]
kith has quit [Quit: kith]
yfeldblum has quit [Ping timeout: 240 seconds]
St_Marx has quit [Quit: WeeChat 1.0.1]
St_Marx has joined #ruby
_JamieD_ has joined #ruby
aboudreault has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
St_Marx has quit [Client Quit]
devdazed has joined #ruby
fsapo has quit [Ping timeout: 272 seconds]
workmad3 is now known as wm3|away
arup_r has joined #ruby
NoNMaDDeN has joined #ruby
St_Marx has joined #ruby
benzrf is now known as benzrf|offline
adriancb has joined #ruby
zB0hs has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
zB0hs has quit [Max SendQ exceeded]
aganov has quit [Quit: Leaving]
paulfm has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 255 seconds]
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
anaeem1_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mackinto1h has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
aboudreault has quit [Ping timeout: 255 seconds]
apeiros__ is now known as apeiros_
benzrf|offline is now known as benzrf
ctp has joined #ruby
josephnd1nton has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Ping timeout: 255 seconds]
rodfersou has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
paulfm has joined #ruby
ndrei_ has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 240 seconds]
clauswitt has quit [Ping timeout: 244 seconds]
movedx has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
einarj has joined #ruby
hamakn has joined #ruby
paulfm has quit [Client Quit]
lxsameer has quit [Quit: Leaving]
TinkerTyper has quit [Ping timeout: 264 seconds]
TinkerTyper has joined #ruby
jaequery has joined #ruby
olivier_bK has joined #ruby
jaequery has quit [Client Quit]
movedx has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
jobewan has joined #ruby
b4rbz has quit [Remote host closed the connection]
Shazaum has joined #ruby
krz has joined #ruby
Shazaum has quit [Changing host]
Shazaum has joined #ruby
krz has quit [Client Quit]
zzzbra has quit [Remote host closed the connection]
movedx has joined #ruby
krz has joined #ruby
mleone has quit [Quit: Textual IRC Client: www.textualapp.com]
hiyosi has joined #ruby
<movedx> If I want to 'sudo -u' to a user, a user with rvm and ruby installed to their local account, and then run their ruby instance, how would I do it?
Avahey has joined #ruby
paulfm has joined #ruby
samuel02 has joined #ruby
Bira has quit []
<shevy> movedx perhaps exec 'sudo -u'
quimrstorres has joined #ruby
<shevy> though, the running instance of when you run that program may still be the old ruby version; you have to try
aboudreault has joined #ruby
<movedx> Sorry, I've not explained my self very well. I'm looking 'sudo -u someuser ruby' from the root user, or some other user with permission to do this.
kurstin has joined #ruby
<movedx> Thanks for the spam, kurstin
livathinos has joined #ruby
jottr has joined #ruby
lampd1 has quit []
<movedx> shevy: So I have user, bob, who has installed rvm locally (--user-install) and then used that rvm to install ruby 2.1. All this is contained in /home/bob/.rvm/
Olipro has quit [Ping timeout: 256 seconds]
<movedx> shevy: Then from an authorised user, I want to run a task as bob, so I can do: sudo -u bob
<movedx> But I'm trying to battle with sudo to get it to see the rvm installation, and thus the ruby instance.
ghr has joined #ruby
corehook has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
existensil has quit [Quit: WeeChat 0.4.2]
altamic_ has joined #ruby
sambao21 has joined #ruby
TinkerTyper has quit [Ping timeout: 244 seconds]
sski has quit [Remote host closed the connection]
tagrudev has quit [Read error: Connection reset by peer]
quimrstorres has quit [Ping timeout: 255 seconds]
sski has joined #ruby
<altamic_> hello folks, I don't understand why http://hastebin.com/idurizides.rb does not match the dot, anyone can tell me why?
TinkerTyper has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
einarj has quit [Remote host closed the connection]
<centrx> altamic_, How many \w characters precede the dot?
<altamic_> haha I forgot a plus
giuseppesolinas has joined #ruby
<altamic_> thank you centrx
livathinos has quit [Remote host closed the connection]
mary5030 has joined #ruby
sski has quit [Ping timeout: 264 seconds]
altamic_ has left #ruby [#ruby]
apeiros_ has quit [Remote host closed the connection]
freerobby has joined #ruby
benzrf is now known as benzrf|offline
quimrstorres has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ringarin has joined #ruby
movedx has left #ruby [#ruby]
timonv_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
ptrrr has quit [Quit: ptrrr]
Morkel has joined #ruby
msgodf has quit [Remote host closed the connection]
rodfersou has quit [Ping timeout: 256 seconds]
msgodf has joined #ruby
Guest7 has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
anaeem1_ has joined #ruby
rodfersou has joined #ruby
daee has joined #ruby
Blizzy has quit [Ping timeout: 255 seconds]
ptrrr has joined #ruby
uber_hulk has joined #ruby
<daee> Hi guys this is my first time on IRC. Any kind IRC :D
doev has quit [Ping timeout: 264 seconds]
<pacMakaveli> daee: asl pls?
benzrf|offline is now known as benzrf
icebourg has joined #ruby
timonv_ has joined #ruby
axl_ has joined #ruby
<daee> 29 M Germany
jaequery has joined #ruby
<uber_hulk> lol
jaequery has quit [Max SendQ exceeded]
<pacMakaveli> You failed my test, you shouldn't know that if it was your first time!
jaequery has joined #ruby
Takle_ has quit [Remote host closed the connection]
Takle has joined #ruby
clang- has joined #ruby
<shevy> daee get a real IRC client man, and I don't think you are from Germany
<clang-> In Ruby, how do I convert the string \u0470 to the unicode Ѱ ?
Megtastique has joined #ruby
<clang-> "\u0470" -> "Ѱ"
rkazak has joined #ruby
noop has quit [Ping timeout: 272 seconds]
shock_one_ has quit [Remote host closed the connection]
<daee> shevy, why would I lie? Can you recommend me something good for linux
<daee> oder können wir auf Deutsch sprechen
<daee> :P
<shevy> ok - nimm xchat
fsapo has joined #ruby
<daee> thanks shevy
Takle_ has joined #ruby
<shevy> webchat ist schlecht
<shevy> Hanmac wake up, a fellow german is there
<jheg> o/
fandi has joined #ruby
<daee> I'm not German, I'm in Germany right now :D
Takle has quit [Read error: Connection reset by peer]
<jheg> and I want to do something if in_a_row?(‘o’, 1, 2) == true
superscalr has quit [Quit: superscalr]
<jheg> but it alsways returns true
<jheg> *always
<jheg> and I don’t know why?
vinleod has quit [Ping timeout: 244 seconds]
<jheg> any ideas or pointers as to where i’m going wrong?
<centrx> jheg, What does Game::WINNING_LINES look like?
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkaesz has quit [Remote host closed the connection]
<jheg> thats a multi Dimensional array
dkb20k has quit [Remote host closed the connection]
<jheg> WINNING_LINES = [[0,1,2],[3,4,5],[6,7,8],[0,4,8],[2,4,6],[0,3,6],[1,4,7],[2,5,8]]
Versality has quit [Quit: Be back later ...]
mkaesz has joined #ruby
sailias has joined #ruby
Versality has joined #ruby
<centrx> jheg, and board.squares is a one-dimensional array?
<jheg> yeah with 9 elements
<Hanmac> jheg: you use #each method, you want #any?
<soahccc> Anyone uses the backup gem and can share some management insights? Am I supposed to create a new model incl. sync, etc. for each and every backup?
<jheg> Hanmac: here? Game::WINNING_LINES.each do |the_line|
vinleod has joined #ruby
<Hanmac> jheg: yes you need to replace that each with "any?"
rubie has joined #ruby
nobody404 has joined #ruby
<jheg> thanks amending now
nobody404 has quit [Client Quit]
troulouliou_dev has quit [Remote host closed the connection]
Lingos_ has quit [Quit: Be back later ...]
<rubie> hi all: if a user is in a loop and there input is invalid, is there a way to start the loop over and let them try again?
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubie> their* input
Lingos_ has joined #ruby
Lingos_ has quit [Client Quit]
daee has quit [Quit: Page closed]
mkaesz has quit [Ping timeout: 240 seconds]
Versality has quit [Ping timeout: 256 seconds]
t_mmyv has joined #ruby
skyos has joined #ruby
slawrence00 has joined #ruby
wm3|away is now known as workmad3
renderful has joined #ruby
djbkd has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
razieliyo_ has quit [Quit: Saliendo]
<rubie> is an example
Jake232 has joined #ruby
alex88 has quit []
<shevy> hey rubie
<shevy> did we not have this example before?
econerd4ever has joined #ruby
<shevy> also I dont see anything on that link man
<rubie> no i've never done this before
aces1up9939 has joined #ruby
<aces1up9939> anyone know any good tutorials on ruby fibers?
<shevy> I don't like that loop condition
<rubie> why not?
bal has quit [Quit: bal]
<shevy> it's complex to check that your array tower3 must be like that
<shevy> I like to reduce things to true and false
treehug88 has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
drewvanstone has joined #ruby
<shevy> I also like to decouple fetching user input, and then process it; then you can simply continue
atmosx has joined #ruby
noop has joined #ruby
<shevy> loop { user_input = $stdin.gets.chomp; check_against_menu(user_input) } <-- this will already loop all over again, what would be missing here is the condition to ensure that it could break out from there again
<shevy> rubie why won't you change the loop to permanently loop, until some condition happens?
ndrei_ has joined #ruby
ndrei has joined #ruby
treehug88 has quit [Client Quit]
<rubie> thats that i thought i did
<rubie> this is towers of hanoi game
<shevy> note your question above
<shevy> "if a user is in a loop and their input is invalid, is there a way to start the loop over"
<shevy> ^^^ if this would be the default, you'd not have to ask that question :D
<shevy> because you'd permanently loop anyway
<atmosx> hey shevy
<shevy> hey Dr. atmosx
<atmosx> hahahaha
<rubie> ahh
<shevy> (in 1.5 years)
SloggerKhan has left #ruby [#ruby]
<atmosx> yes
treehug88 has joined #ruby
superscalr has joined #ruby
<shevy> atmosx though that waiting time is the stupidest thing I've ever heard; is there no way to get an exception? I mean what is the point of having to wait if you already passed all exams
fgo_ has quit [Ping timeout: 264 seconds]
treehug88 has quit [Max SendQ exceeded]
ki0 has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 240 seconds]
<atmosx> shevy: no fucking idea, but I've seen the law and it's a crystal-clear statement
<atmosx> I mean it's a law, might be stupid, but there's not much to argue about it
<shevy> ah you mean it is just written down like that?
<atmosx> yes
treehug88 has joined #ruby
<atmosx> 5-year study
<shevy> hmm
<atmosx> explicitly stated like "no les sthan 5 years"
<atmosx> most probably it's the same thing in Austria
<atmosx> it's a European Union directive too
Takle_ has quit [Remote host closed the connection]
elcheckito has quit [Quit: WeeChat 1.0.1]
sailias has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> well, not sure about the law - but you are right, pharmacy is still a diploma study and takes 5 years; also vetmed studies (for becoming a clinical vetmed doctor that heals animals etc..; it's also a drug pharmacist at the same time with one additional exam after the 5 years studies); most everything else is in 3 years bachelor and 2 years optional master studies addon since almost ... since 10 years I think
rkazak has quit [Quit: Sleep.....ing....]
xrlabs has joined #ruby
<atmosx> yeap something like that
<shevy> atmosx now you could study something in addition to that! :>
pwh has joined #ruby
MSY has joined #ruby
sambao21 has joined #ruby
MSY is now known as Guest81173
<atmosx> shevy: I don't know if I can do it officially
CorySimmons has joined #ruby
<atmosx> I'd really like the Georgia Tech's computer science OMS
renderful has quit [Remote host closed the connection]
<atmosx> kurstin is a spam bot or infected client
Takle_ has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
karmatr0n has joined #ruby
Lingos_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
Guest81173 has quit [Quit: Leaving]
gsd has joined #ruby
sdwrage has joined #ruby
elcheckito has joined #ruby
vsipuli has quit []
Juanchito has quit [Quit: Connection closed for inactivity]
krz has joined #ruby
econerd4ever has quit [Remote host closed the connection]
GPH|work has joined #ruby
haxrr has quit [Ping timeout: 258 seconds]
econerd4ever has joined #ruby
mistermocha has joined #ruby
gsd has quit [Client Quit]
rajeshchawla has joined #ruby
nvdpl has joined #ruby
ctp has quit [Ping timeout: 272 seconds]
timonv_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
krz has quit [Client Quit]
divi has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
maestrojed has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
sailias has joined #ruby
klmlfl has joined #ruby
ki0 has joined #ruby
lucyinthesky has joined #ruby
superscalr has quit [Quit: superscalr]
maasha has quit [Ping timeout: 246 seconds]
jlast has quit [Remote host closed the connection]
uber_hulk has quit [Quit: leaving]
ghr has joined #ruby
Cache_Money has joined #ruby
Takle_ has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
Kricir has joined #ruby
divi has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Remote host closed the connection]
corehook has joined #ruby
lucyinthesky has quit [Quit: Leaving]
zzzbra has joined #ruby
CorySimmons has quit [Quit: Bye!]
ki0 has quit [Remote host closed the connection]
fgo_ has joined #ruby
divi has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
jemendja has joined #ruby
<jemendja> morning
renderful has joined #ruby
kurstin has quit [K-Lined]
jemendja has quit [Client Quit]
rkazak has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
Unknown2 has joined #ruby
fgo_ has quit [Ping timeout: 255 seconds]
bluenemo has quit [Quit: Verlassend]
chrishough has joined #ruby
sud0x has joined #ruby
giuseppesolinas has joined #ruby
<sud0x> hey all, trying to make a simple checkbox but I'm getting incorrect # of arguments. I just have: <%= check_box 'name' %>
<sud0x> kinda confused reading thru the ruby documentation
sambao21 has quit [Quit: Computer has gone to sleep.]
<sud0x> rails*
msgodf has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
<canton7> sud0x, #rubyonrails
<shevy> #rubyonrails
<canton7> looking at http://apidock.com/rails/ActionView/Helpers/FormHelper/check_box, you need to pass an object name and a method
<sud0x> Thanks!
sud0x has left #ruby [#ruby]
<canton7> or not?
<canton7> the example says 'form.check_box :paid'
sambao21 has joined #ruby
rylev has joined #ruby
<canton7> but some of the other examples do pass 2 arguments
<canton7> meh, rubyonrails specialise in this sort of stuff
drewvanstone has quit [Ping timeout: 245 seconds]
<Unknown2> i tried find but couldt find good explanation
<shevy> Unknown2 a task for nokogiri!
corehook has joined #ruby
clang- has left #ruby [#ruby]
rylev has quit [Client Quit]
<Unknown2> yes
<Unknown2> i tried with nokogiri
rylev has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Unknown2> p text.css('table').first.css("tr th:first").text
<Unknown2> p text.css('table').css("tr th:first").text
Hijiri has quit [Quit: WeeChat 1.0.1]
<Unknown2> text.css('table(need point only navigaet top level of tables)').css("tr th:first").text
yourabi has joined #ruby
Jake232 has quit [Ping timeout: 256 seconds]
drewvanstone has joined #ruby
aspires has joined #ruby
<angryzor> does the document have a root node?
Megtasti_ has joined #ruby
adriancb has quit [Remote host closed the connection]
Xeago has joined #ruby
<angryzor> otherwise you could include it and require the table to be a direct descendant
sdwrage has quit [Ping timeout: 264 seconds]
<Unknown2> no
mistermocha has quit [Remote host closed the connection]
Megtastique has quit [Ping timeout: 264 seconds]
grzywacz has joined #ruby
grzywacz has joined #ruby
adriancb has joined #ruby
Megtastique has joined #ruby
drewvanstone has quit [Ping timeout: 255 seconds]
<angryzor> are the tables always at top level?
<Unknown2> yes
<angryzor> maybe try .css(':root > table tr th') then
Xeago_ has quit [Ping timeout: 258 seconds]
Xeago_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<Unknown2> not working
<shevy> does nokogiri not return to you a sorted Array for those elements?
<shevy> you could of course also process the dataset prior to that
<shevy> and discard all that is past the first </table>
giuseppesolinas has joined #ruby
Megtasti_ has quit [Ping timeout: 264 seconds]
dkb20k has joined #ruby
cleopatra has joined #ruby
catphish has quit [Quit: Leaving]
Versality has joined #ruby
kireevco has joined #ruby
sdwrage has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
nvdpl has quit [Quit: ZZZzzz…]
<angryzor> apparently when applying Nokogiri::HTML on a document that does not follow normal HTML structure
<angryzor> it automatically places everything in body
josephnd1nton has joined #ruby
empyreal has joined #ruby
<angryzor> 6] pry(main)> a.css('body > table > tbody > tr > th')
<angryzor> => [#<Nokogiri::XML::Element:0x3fe934a15c7c name="th" children=[#<Nokogiri::XML::Text:0x3fe934a1955c "need text 1">]>, #<Nokogiri::XML::Element:0x3fe934a81648 name="th" children=[#<Nokogiri::XML::Text:0x3fe934a85aa4 "need text 2">]>]
<angryzor> [7] pry(main)>
speaking1ode has quit [Quit: Lost terminal]
<empyreal> anybody have any experience with tiny_tds?
mjuszczak has quit []
<shevy> tiny tits?
apeiros has joined #ruby
<ddv> it's for communicating with sqlserver
it0a has joined #ruby
<shevy> ddv knows everything
<empyreal> I'm getting an error on gem install.
sambao21 has quit [Quit: Computer has gone to sleep.]
rkazak has quit [Quit: Sleep.....ing....]
gsd has joined #ruby
<angryzor> freetds is missing.
<angryzor> this?
<empyreal> no.
atomical has quit [Ping timeout: 258 seconds]
<empyreal> I've installed that.
koderok has joined #ruby
rkazak has joined #ruby
ta has quit [Remote host closed the connection]
Versality has quit [Ping timeout: 258 seconds]
<ddv> empyreal, install iconv headers
<empyreal> thanks. gem install iconv I'm assuming?
<ddv> libiconv
josephnd1nton has quit [Ping timeout: 244 seconds]
geggam has joined #ruby
sambao21 has joined #ruby
jlast has joined #ruby
apeiros_ has joined #ruby
atomical has joined #ruby
amargherio has joined #ruby
<ddv> not sure if you need to do that though
<empyreal> regardless, I appreciate the help. Pretty new to ruby.
apeiros has quit [Ping timeout: 244 seconds]
drkyro has joined #ruby
ordepdev has joined #ruby
xenomorph is now known as {xenomorph}
koderok has quit [Client Quit]
<ddv> empyreal, any reason in particular you want to use sqlserver?
lkba has joined #ruby
<empyreal> ddv: because it's what our business runs for our production SCADA systems. It's beyond optional.
arup_r has quit [Quit: Leaving.]
<ddv> empyreal, ok
dkb20k has quit [Ping timeout: 245 seconds]
<empyreal> I'm a C# guy taking a crack at this for a simple project.
rkazak has left #ruby [#ruby]
<ddv> empyreal, I don't recommend using Rails on Windows, it's far from ideal
nvdpl has joined #ruby
<ddv> empyreal, also if you know C# maybe you should use ASP.NET MVC
<ddv> imo
apeiros_ has quit [Ping timeout: 250 seconds]
<shevy> ack!
<shevy> he sends people away from our beloved ruby!
<shevy> thank god he did not suggest php
<ddv> I just realized that
<angryzor> i tend to find it more tolerable to install a linux VM on a windows machine just to develop in ruby than to deal with managing all the dependencies in native windows
<shevy> well actually he seems stuck on the gems-environment so perhaps he won't reach the rails setting at all :D
<shevy> angryzor haha
apeiros_ has joined #ruby
<shevy> how sad the state of affairs on windows has become ...
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<empyreal> ASP.NET is great if you're an old-school Windows forms developer afraid of change.
<ddv> we have some legacy rails app that needs to talk to sqlserver, tiny_tds has some weird bugs
<ddv> empyreal, ASP.NET MVC is something totally different
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
giuseppesolinas has joined #ruby
<empyreal> hm, weird bugs?
<ddv> also if you're into the Windows stack (i'm not) than visual studio is pretty nice
<empyreal> It is, but I'm exploring the Linux world as a way to make my job more interesting.
<empyreal> hence, the interest in Ruby.
msmith_ has joined #ruby
<ddv> install a vm or something, you are in a world of pain getting to install some gems on Windows
ptrrr has quit [Quit: ptrrr]
<empyreal> even in Cygwin? (which is what I'm using)
jaequery has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<ddv> even in cygwin
anarang has quit [Quit: Leaving]
Lingos_ has quit [Quit: Be back later ...]
<angryzor> thing is, if any gem needs some obscure library that has no prebuilt windows libraries
pacMakaveli has quit [Remote host closed the connection]
<angryzor> you have to start building everything from source
<angryzor> assuming it can run under windows
Lingos_ has joined #ruby
<empyreal> is this why so many Ruby developers use Macs?
timonv_ has quit [Remote host closed the connection]
bricker`work has joined #ruby
<shevy> I use linux
<ddv> empyreal, linux or osx is best ruby/rails development
<shevy> only hipsters use macs
<ddv> +for
<ddv> thanks shevy :|
rylev has quit []
<shevy> you are in the majority here ddv
abuzze has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
blackmesa has joined #ruby
sdwrage has quit [Remote host closed the connection]
<shevy> then again
<shevy> osx uses objective C right? so that is kinda like the spiritual parent of ruby!
<empyreal> the fact is I'm using SQL Server for most things here, so if I'm going to be using a buggy, shoddy library to connect I'm probably going to nope out of Ruby.
jheg has quit [Quit: jheg]
<ddv> empyreal, sounds wise
giuseppesolinas has quit [Quit: This computer has gone to sleep]
sigurding has quit [Quit: sigurding]
<shevy> we pave you the way towards php!
sailias has quit [Quit: Leaving.]
lmickh has joined #ruby
<empyreal> yeah, been there, done that
sailias1 has joined #ruby
<empyreal> not going back
<shevy> hehehehe
Taylor has joined #ruby
<ddv> empyreal, doesn't make sense to introduce yet another stack in a Mickeysoft based environment
<shevy> like many refugees here too ;-)
Taylor is now known as TheWolf
<shevy> Mickeysoft!
<TheWolf> get in losers...we're going to go do science
<shevy> TheWolf does this involve math?
sailias1 has joined #ruby
<TheWolf> god no
mikepack has joined #ruby
<shevy> ok then count me in
<TheWolf> :)
<empyreal> I was just looking for a script-based environment to do simple things with.
sailias2 has joined #ruby
giuseppesolinas has joined #ruby
<empyreal> Windows batch is primitive, and Powershell is a mess.
JimmyNeutron has quit [Remote host closed the connection]
<empyreal> not to mention incompatible with half our servers.
sailias2 has quit [Read error: Connection reset by peer]
sailias3 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddv> powershell is nice and C# is a good language
<TheWolf> Hey, but random question has anyone worked with running scripts on a Raspberry pi?
apeiros_ has quit [Read error: Connection reset by peer]
samuel02 has quit [Remote host closed the connection]
rh1n0 is now known as rh1n0_away
sailias3 has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
sailias1 has quit [Client Quit]
<ddv> TheWolf, no one
sailias2 has joined #ruby
ThaDick_ has joined #ruby
<wasamasa> TheWolf: what is a raspberry pie even?
ThaDick_ has quit [Client Quit]
<empyreal> alright, guess I'm out then. thanks guys.
empyreal has left #ruby [#ruby]
ThaDick has quit [Ping timeout: 256 seconds]
<shevy> the poor guy
<shevy> C# in windows
<TheWolf> wasamasa: it is a small computer, bare bones, super fun. Google it.
<angryzor> the concept of powershell is nice, but the learning curve is kinda steep and every commandlet having the most unexpected name possible doesn't really help it
<shevy> and not having a scripting language
<wasamasa> TheWolf: and super unfree
<wasamasa> TheWolf: woop woop
<wasamasa> TheWolf: the people behind it don't look particularly trustworthy to me
<wasamasa> TheWolf: first stating it's open, then supplying broadcom blobs
<TheWolf> my company got us two to play with, but I have no idea what I'm doing.
<shevy> hahahaha
<shevy> whatever you do TheWolf
sailias has quit [Ping timeout: 264 seconds]
<shevy> just look professional
joonty has quit [Quit: Leaving]
<shevy> wear your SeriousFace
<ddv> TheWolf, you can use any scripting language you want on that thing
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<shevy> talk in a strong, husky voice
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
{xenomorph} is now known as xenomorph
nrsk has joined #ruby
ringarin has quit [Quit: Leaving]
<pontiki> TheWolf: i run a few things on my rpi
mistermocha has joined #ruby
<pontiki> TheWolf: i've even got a small rails app running on it :)
sailias2 has quit [Ping timeout: 272 seconds]
allcentu1 has quit [Ping timeout: 255 seconds]
<wasamasa> TheWolf: anyhow, don't ask these "Anyone" questions, chances are very high someone out there has done exactly that
zzzbra has quit [Remote host closed the connection]
<wasamasa> TheWolf: just ask the real question instead
<shevy> pontiki what is that rails app doing?
<wasamasa> TheWolf: like how to get ruby running on it
<wasamasa> TheWolf: or ask for cool stuff done with them
<TheWolf> got it
<pontiki> shevy: i use it to record personal health things
pietr0 has joined #ruby
drewvanstone has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
fgo_ has joined #ruby
<pontiki> mainly it's a file server/NAS thingie
<ddv> I manage a couple of pi's that collect various measurement data (activity, weight, eating, drinking etc) of cows :P
wallerdev has joined #ruby
zzzbra has joined #ruby
Xiti has quit [Quit: Xiti]
corehook has quit [Remote host closed the connection]
<TheWolf> cow?...as in moo moo
phutchins has quit [Ping timeout: 258 seconds]
<ddv> milk cows
<ddv> yes
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
procat has quit [Ping timeout: 244 seconds]
procat has joined #ruby
<pontiki> they're really pretty spiff
deric_skibotn has joined #ruby
<pontiki> i wish i could come up with some more ideas to use them
<ddv> data is then collected for running various scientific models
sambao21 has joined #ruby
fgo_ has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
phutchins has joined #ruby
Xiti has joined #ruby
stunder has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
<pontiki> this idea is pretty cool: art installation: http://hackaday.com/2014/11/16/bricked-raspberry-pi-displays-history/
jwang__ has quit [Ping timeout: 264 seconds]
mistermocha has quit [Remote host closed the connection]
jwang__ has joined #ruby
TheWolf has left #ruby ["gotta go work on a new script lator gators"]
giuseppesolinas has joined #ruby
timonv_ has joined #ruby
benzrf is now known as benzrf|offline
anaeem1_ has quit [Remote host closed the connection]
<workmad3> pontiki: one of these days, I'm planning on setting up a pi as a wifi access point w. radius server and snort running as a passive & active wifi monitor on a second wifi dongle (and, if I'm feeling really bored, I'd have it logging and reporting to a DO server...)
arup_r1 has joined #ruby
<workmad3> pontiki: my wife wants to set up a pi and a load of cameras so we can record what our cat gets up to while we aren't around...
ghr has quit [Ping timeout: 256 seconds]
airdeluxe has quit [Ping timeout: 245 seconds]
<pontiki> that's a great idea :)
<hfp_work> workmad3: Spoiler alert: they're sleeping :p
yfeldblum has joined #ruby
rshetty has quit [Remote host closed the connection]
allcentu1 has joined #ruby
giuseppesolinas has quit [Client Quit]
Hanmac has quit [Ping timeout: 265 seconds]
mrsolo has joined #ruby
mrsolo has left #ruby [#ruby]
mjuszczak has joined #ruby
haxrr has joined #ruby
haxrr has quit [Max SendQ exceeded]
cassianoleal has quit [Quit: (null)]
tyll_ is now known as tyll
renderful has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
haxrr has joined #ruby
haxrr has quit [Max SendQ exceeded]
stunder has quit [Quit: Screw you guys I'm going home]
haxrr has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
mattmcclure has joined #ruby
Sirupsen has joined #ruby
drkyro has joined #ruby
clang- has joined #ruby
Guest6644 has quit [Ping timeout: 265 seconds]
<clang-> Why doesn't this output "boom"?
<clang-> ruby -e '$str="boom"; system "echo $str"'
ferr has joined #ruby
<jhass> clang-: because that's not the same variable
<clang-> ah ok
<clang-> ruby -e '$str="boom"; system "echo " + $str'
<clang-> works
<jhass> the first $str is a ruby global variable
<jhass> don't use thos
<jhass> e
ghostmoth has joined #ruby
benzrf|offline is now known as benzrf
<jhass> system spawns a shell in this case and passes it your string as script
<jhass> so the later $str is an environment variable
The_NetZ_ has quit [Remote host closed the connection]
procat has quit [Ping timeout: 264 seconds]
<jhass> so ruby -e 'ENV["str"] = "boom"; system "echo $str"' would work
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
cleopatra has quit [Quit: Saliendo]
<jhass> clang-: interpolate ruby code into strings "like #{this}"
<eam> I wish ruby's system could pass an env
cleopatra has joined #ruby
checkit has joined #ruby
<jhass> it can
<jhass> pass a hash as first argument
<yxhuvud> rant about system/exec arguemnt parsing incoming from brixen in 3.. 2.. 1..
blackmesa has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
<eam> jhass: ah excellent. Odd that it only works with parens though
speakingcode has joined #ruby
ruber has joined #ruby
drjfreez1 has joined #ruby
<jhass> well, yeah, ruby takes it for a block otherwise
<eam> oh I see
<eam> hm that's ... lame
dkphenom has joined #ruby
<ruber> Ruby 2.2.0-preview1 has the same compile bug on OS X (10.8) as in 2.1.4 which was fixed in 2.1.5. I don't have a dev account so could someone let the team know?
<ruber> It's a miniruby/encdb problem with make
Hanmac has joined #ruby
benzrf is now known as benzrf|offline
phutchin1 has joined #ruby
drjfreeze has quit [Ping timeout: 245 seconds]
jerius has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
jerius has joined #ruby
cleopatra has quit [Quit: Saliendo]
fgo_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
cleopatra has joined #ruby
dkphenom has quit [Client Quit]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
despai has joined #ruby
djbkd has joined #ruby
Versality has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
<shevy> <TheWolf> cow?...as in moo moo
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> this channel has really gotten very sophisticated
<shevy> cat ... as in meow meow
<shevy> dog ... as in
hmsimha_ has quit [Ping timeout: 255 seconds]
rubie has quit [Quit: Page closed]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<eam> >> system({"foo" => "bar"}, ["sh", "proctitle name"], "-c", "/bin/echo $foo")
<eval-in__> eam => (https://eval.in/224700)
sambao21 has quit [Quit: Computer has gone to sleep.]
<eam> are there any other relevant fields for system?
fgo_ has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
FooMunki has quit [Quit: FooMunki]
cleopatra has quit [Client Quit]
jaequery has quit [Max SendQ exceeded]
cleopatra has joined #ruby
haxrr has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
Versality has quit [Ping timeout: 245 seconds]
<eam> env hash isn't documented in Kernel#system
rajeshchawla has quit [Remote host closed the connection]
Megtastique has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
jY has joined #ruby
Megtastique has joined #ruby
<jY> whats the different between event[:action] and event["action"]
henesy has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
<apeiros> jY: you know the difference between "1" and 1?
cpruitt has quit [Quit: cpruitt]
<shevy> jY "action" is a String object, :action is a Symbol object; :action is always the same, same object id; "action" is different, will have different object ids, see:
<jY> YES
<shevy> >> "action".object_id == "action".object_id
<eval-in__> shevy => false (https://eval.in/224707)
sambao21 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
<jY> ok thanks for the clear up
Megtastique has quit [Client Quit]
ruber has quit [Quit: BitchX: cleaner, drier, protects even better]
rajeshchawla has joined #ruby
econerd4ever has joined #ruby
cleopatra has quit [Ping timeout: 255 seconds]
Photism has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<shevy> a symbol is basically more efficient for storing in a hash than the individual string objects
<shevy> because the symbol is always the same
jottr has joined #ruby
arup_r1 has quit [Quit: Leaving.]
adriancb has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
aspires has quit []
zzzbra has quit [Remote host closed the connection]
<eam> shevy: depends! symbols are slower to compare
Cork has quit [Ping timeout: 250 seconds]
mjuszczak has quit []
ferr has quit [Read error: Connection reset by peer]
aspires has joined #ruby
nobitanobi has joined #ruby
zarubin has quit [Ping timeout: 258 seconds]
lemur has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
<shevy> huh
<shevy> benchmark!
Lightsword has joined #ruby
ferr has joined #ruby
rushed has quit [Quit: rushed]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
samuel02 has joined #ruby
divi has quit [Ping timeout: 264 seconds]
divi has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
wjimenez5271 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
yourabi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Remote host closed the connection]
Lightsword has quit [Quit: Lightsword]
dts_Zzz is now known as dts
cleopatra has joined #ruby
divi has quit [Ping timeout: 255 seconds]
kirun has joined #ruby
chthon has quit [Ping timeout: 272 seconds]
<nobitanobi> I am here
nvdpl has quit [Quit: ZZZzzz…]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
Synthead has quit [Ping timeout: 272 seconds]
divi has joined #ruby
giuseppesolinas has joined #ruby
theotherstupidgu has joined #ruby
<apeiros> eam: eh, what?
lolmaus has quit [Quit: Konversation terminated!]
<apeiros> you're just pulling shevy's leg, right?
josephnd1nton has joined #ruby
fmcgeough has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
corehook has joined #ruby
ferri has quit [Read error: Connection reset by peer]
MattB2 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
<nobitanobi> haha
<nobitanobi> I'm not :)
jottr has quit [Ping timeout: 272 seconds]
<nobitanobi> oh boy, time to go to bed
renderful has quit [Remote host closed the connection]
troyready has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
hamakn_ has joined #ruby
yfeldblum has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
MattB2 has quit [Remote host closed the connection]
ghr has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
josephnd1nton has quit [Ping timeout: 245 seconds]
Sirupsen_ has joined #ruby
djbkd has quit [Remote host closed the connection]
corehook has quit [Ping timeout: 258 seconds]
<waxjar> apeiros, shevy: i think this is what nobitanobi is referring to (http://omniref.com/blog/blog/2014/11/12/making-ruby-faster/)
krisquigley has quit [Remote host closed the connection]
St_Marx has joined #ruby
djbkd has joined #ruby
claymore has joined #ruby
<eam> >> require 'benchmark'; sym1 = :abcdefghijk; sym2 = :abcdefghijkl; str1 = "abcdefghijk"; str2 = "abcdefghijkl"; [Benchmark.measure { 1_000_000.times { sym1 == sym2 } }.to_s, Benchmark.measure { 1_000_000.times { str1 == str2 } }.to_s]
<eval-in__> eam => [" 0.300000 0.000000 0.300000 ( 0.296994)\n", " 0.220000 0.000000 0.220000 ( 0.225057)\n"] (https://eval.in/224717)
krisquigley has joined #ruby
Sirupsen has quit [Ping timeout: 240 seconds]
echevemaster has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
Luyt has joined #ruby
<eam> waxjar: yes
havenwood has joined #ruby
<waxjar> ah *eam i mean
<eam> ostensibly they should be far faster (pointer compare vs string compare)
yfeldblum has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 240 seconds]
stunder has joined #ruby
<shevy> damn
<shevy> symbols are slow
gregf has quit [Quit: WeeChat 1.0.1]
ordepdev has quit [Ping timeout: 258 seconds]
chrishough has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 264 seconds]
allcentu1 has quit [Ping timeout: 240 seconds]
Synthead has joined #ruby
klmlfl has joined #ruby
godd2 has joined #ruby
<eam> but they're still much more memory efficient!
<nobitanobi> What is a good way to make sure LIMIT is an integer (if ENV["LIMIT"] is set, LIMIT will be a string): LIMIT = ENV["LIMIT"] || 3
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Jake232 has joined #ruby
<nobitanobi> And if I do LIMIT = ENV["LIMIT"].to_i || 3 -- LIMIT will be zero if ENV['LIMIT'] is not set
<eam> Integer(ENV["LIMIT"])
workmad3 has quit [Ping timeout: 250 seconds]
<nobitanobi> but that will raise an exception. What I want is if not set, set it to 3
<nobitanobi> *will raise a TypeError
rajeshchawla has quit [Remote host closed the connection]
<eam> LIMIT = Integer(ENV["LIMIT"]) rescue 3
<nobitanobi> dayum
rajeshchawla has joined #ruby
<nobitanobi> nice
<eam> keep in mind Integer() has different "what's a number" rules from to_i
<eam> for example, leading zeros means octal
<apeiros> waxjar, nobitanobi: I was talking to eam
<nobitanobi> apeiros: I know yes. I should go to sleep hey
n1lo has quit [Ping timeout: 255 seconds]
mloveless has joined #ruby
<apeiros> eam: I'm dumbfounded. Symbol#== is literally just == in C. I don't see how it is even possible that it is slower…
icebourg_ has joined #ruby
nvdpl has joined #ruby
nvdpl has quit [Max SendQ exceeded]
n1lo has joined #ruby
<eam> waxjar's article explains it, the overhead of dealing with method dispatch dwarfs the cost of the actual comparison
<yxhuvud> apeiros: because the part that cost isn't the comparison but the overhead around it
nvdpl has joined #ruby
<apeiros> yxhuvud: the overhead is identical
<yxhuvud> no, that is the point
<apeiros> it's both times var lookup + method call
giuseppesolinas has joined #ruby
<apeiros> care to tell me the difference?
davidhq has joined #ruby
sinequanon has joined #ruby
<eam> apeiros: http://omniref.com/blog/blog/2014/11/12/making-ruby-faster/ skip to "you've gotta go up to get down"
jdj_dk has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
dseitz has joined #ruby
icebourg has quit [Ping timeout: 272 seconds]
Norrin has left #ruby [#ruby]
<apeiros> ouch
djbkd has joined #ruby
<skyos> Guys I'm learning ruby, but I find I learn much better/faster with tutor. I'm also learning programing with ruby. In other words ruby is my first language. I started the book "Well Ground Rubist", its going really slow.
<apeiros> sounds similar to Array#at vs Array#[] (former is supposed to be faster because simpler, but latter is faster because of parser tricks)
<eam> the perils of dynamic OO, or why C++ objects are so absurdly gigantic
<skyos> I'm looking for tutor in other words
adriancb has joined #ruby
dkb20k has joined #ruby
<apeiros> I wonder why they don't apply that optimization to symbols too
giuseppesolinas has quit [Client Quit]
<apeiros> all immediates, actually
<yxhuvud> apeiros: they apply it to all symbols now, but not before.
<yxhuvud> (I doubt >> use head)
<apeiros> yxhuvud: 2.2?
<eam> the discovery is just a few weeks old :)
patrick99e99 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
<yxhuvud> yes. read the Matz and Ko1 enters the fray part of the article
sailias has joined #ruby
fgo_ has joined #ruby
dkb20k has quit [Ping timeout: 272 seconds]
<waxjar> interestingly, it looks like it wasn't always like that: https://gist.github.com/andruby/1264985
rajeshchawla has joined #ruby
Synthead has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
Lingos_ has quit [Quit: Be back later ...]
patrick99e99 has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
tiny has joined #ruby
hiyosi has quit [Ping timeout: 255 seconds]
tiny is now known as Guest90721
SCHAAP137_ has joined #ruby
fgo_ has quit [Ping timeout: 250 seconds]
<Guest90721> I have a problem where my sed command runs correctly in the command line but messes up when in used in a ruby script. Anyone know how to fix this command ? system "sed -i '/^\(goodbye\|hello\)/!d' blah.file"
airdeluxe has joined #ruby
divi has quit [Ping timeout: 240 seconds]
Cork has joined #ruby
Cork is now known as Guest38666
SCHAAP137 has quit [Ping timeout: 265 seconds]
Lightsword has joined #ruby
SCHAAP137_ has quit [Client Quit]
SCHAAP137 has joined #ruby
freerobby has joined #ruby
corehook has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
chrishough has joined #ruby
rajeshchawla has joined #ruby
<apeiros_> Guest90721: your escaping is wrong
<apeiros_> >> "\("
<eval-in__> apeiros_ => "(" (https://eval.in/224747)
airdeluxe has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros_> I'd use %q{} instead of ""
<apeiros_> >> %q{sed -i '/^\(goodbye\|hello\)/!d' blah.file}
<eval-in__> apeiros_ => "sed -i '/^\\(goodbye\\|hello\\)/!d' blah.file" (https://eval.in/224748)
Hijiri has joined #ruby
Synthead has joined #ruby
<Guest90721> @apeiros thanks!
n1lo has quit [Quit: Leaving]
Guest90721 has quit [Quit: Page closed]
mkaesz has joined #ruby
zzzbra has joined #ruby
grzywacz has quit [Quit: :wq]
gattie has joined #ruby
djbkd has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
<clang-> How can I convert the string "\u0470\344" into the corresponding string "Ѱä" in Ruby?
* wasamasa smells strong xy-problem
xorax has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
<clang-> Python has this: python -c 'print u"\u0470\344"'
<clang-> Wondering what's the Ruby equivalent
paulfm has quit []
<wasamasa> >> puts "\u0470\344"
<wasamasa> >> "\u0470\344"
<wasamasa> >> "\u0470\0344"
<wasamasa> damnit, eval-in__
<clang-> wasamasa: note that I do not want to have to manually add the 0 in front of 344 myself
psy_ has quit [Quit: Leaving]
<clang-> it should just do it for me :)
<wasamasa> clang-: as I've said earlier, I smell a very strong xy-problem
psy_ has joined #ruby
<clang-> xywhat?
zacstewart has joined #ruby
<wasamasa> or for a more humorous read, http://mywiki.wooledge.org/XyProblem
<clang-> hehe
<clang-> nah this is not xy
<clang-> i need this directly
<wasamasa> ...
sambao21 has joined #ruby
<wasamasa> also, your previous example is incorrect
airdeluxe has joined #ruby
<wasamasa> gives me a syntax error with python
Petein has joined #ruby
<atmosx> shevy: you here
<atmosx> ?
<wasamasa> or no, that was python3, damnit
postmodern has joined #ruby
paulfm has joined #ruby
Guest6644 has joined #ruby
<Petein> Hi. I have a very basic question. Although I have downloaded some ruby library and i found where it is installed, when i try to load it via load 'iso8583-0.1.5\lib\iso8583\message.rb' i get an error that it cannot load such file. gem env: shows that GEM PATHS: - C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1 and my ruby library is here: C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\iso8583-0.1.5\lib\iso8583 (which inside this directory
despai has quit [Quit: This computer has gone to sleep]
paulfm has quit [Client Quit]
<wasamasa> clang-: anyhow, if it's not a xy problem, then do as the romans do
paulfm has joined #ruby
<wasamasa> clang-: if it is, explain what you're actually trying to do
Sirupsen_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has joined #ruby
<clang-> wasamasa: what do the romans do?
<wasamasa> clang-: "When in Rome, do as the Romans do."
Sirupsen has joined #ruby
geggam has quit [Ping timeout: 255 seconds]
<wasamasa> clang-: or alternatively put, when using ruby, use it the ruby way
claymore has quit [Ping timeout: 264 seconds]
Sirupsen has quit [Client Quit]
tier has quit [Remote host closed the connection]
ramfjord has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
<wasamasa> clang-: instead of somehow hacking the python feature of writing unicode escapes in octal into ruby
Xeago has joined #ruby
<wald0> i have a problem with array/hashes
sambao21 has quit [Quit: Computer has gone to sleep.]
<wald0> let's say that i want to make a list of identifiers with elements
<wald0> entries[ip] is a unique identifier (ip of user, so same user, unique id)
tier has joined #ruby
yfeldblum has joined #ruby
despai has joined #ruby
<shevy> atmosx semi; I am playing through some ancient DOS games sort of
<atmosx> shevy: sensible soccer?
<shevy> atmosx but on my todo list for today is: run a BLAST search
kireevco has joined #ruby
<wald0> and i want to add on each one a list of hte different pages that has visited (requests), which also has other values like datetime
sambao21 has joined #ruby
<shevy> nah, RPG stuff mostly; right now bloodnet
<atmosx> shevy: awesome wait
quimrstorres has quit [Remote host closed the connection]
claymore has joined #ruby
<havenwood> Petein: #load not #require? other gems work?
<wald0> i should use something like this? request[ip][:request] = request
<wald0> mmmh, how i set the datetime to this request then ?
mkaesz has quit [Remote host closed the connection]
mjuszczak has joined #ruby
mjuszczak has joined #ruby
<havenwood> wald0: It's easier for humans to understand complex data rather than complex logic. Show an example input and desired output?
Xeago_ has quit [Ping timeout: 272 seconds]
<wald0> havenwood: i still designing it in my head lol, so i dont know yet the better structure
procat has joined #ruby
<shevy> atmosx whoa ... 2 MB as .zip
<Petein> havenwood: i tried 'load 'lib\multi_json.rb' and i get the same error. this library is in: C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\multi_json-1.10.1\lib
<Petein> im using Aptana
<shevy> that's huge
<wald0> but i think that i should make an array element, with unique id's (ip) and then in each one a list (arrays?) of entries that contains the file requested, and the datetime
elaptics is now known as elaptics`away
<shevy> atmosx oh I see what is missing yet in README.md - the installation instructions :-)
<havenwood> Petein: try: require 'multi_json'
yfeldblum has quit [Ping timeout: 264 seconds]
<wald0> =_=
<wald0> trying to understand these things is crazy
<Petein> havenwood: this works. but for message.rb if i try require 'message.rb' i get this error: C:/Aptana_Workspace/myTest/MyMessage.rb:5:in `<main>': uninitialized constant Message (NameError)
<havenwood> wald0: i don't follow, but if it's unique consider a Set instead of an Array
djbkd has joined #ruby
<wald0> set?
<Petein> havenwood: to me it looks that it cannot find the class Message, because im trying to extend my class
<Petein> class MyMessage < Message
<havenwood> Petein: Paste a link to a Gist of your codE?
<havenwood> gist.github.com
<atmosx> shevy: yeap, but I can give you access once I resolve a MySQL issue :-P returns only the first 255 strings of DNA haha
<shevy> atmosx I am working through the dependencies right now
<eam> wald0: what is your unique identifier for each request object?
<atmosx> shevy: I was developing in SQLite3 which doesn't have such (silly!) constraints
<atmosx> shevy: You only need mafft
ghr has joined #ruby
<shevy> am working through "ruby dogma.rb" right now
jds has quit [Quit: Connection closed for inactivity]
<Petein> havenwood: my bad: 1st line is: require 'message'
<Petein> havenwood: but still same err msg
<shevy> hmm atmosx /Depot/Downloads/dogma-master/models/init.rb:4:in `require_relative': cannot load such file -- /Depot/Downloads/dogma-master/mysecrets
<havenwood> Petein: try: require_relative 'message'
giuseppesolinas has joined #ruby
<atmosx> shevy: ah yes
<atmosx> I use this file every time wait
<godd2> require_relative 'second_cousin_once_removed'
Sirupsen has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Petein> havenwood: C:/Aptana_Workspace/myTest/MyMessage.rb:1:in `require_relative': cannot load such file -- C:/Aptana_Workspace/myTest/message (LoadError)
MattB2 has joined #ruby
<havenwood> Petein: So where is the file really?
<havenwood> Petein: (I assumed local dir.)
geggam has joined #ruby
<Petein> havenwood: here: C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\iso8583-0.1.5\lib\iso8583
<havenwood> Petein: You can set up your $LOAD_PATH or point to where it really is.
<atmosx> shevy: put this file in the root directory. I will document this one in the installation instructions
<havenwood> Petein: So?: require 'iso8583'
<atmosx> shevy: use development, there's a bug in MySQL (production) now.
<shevy> aha
<havenwood> MySQL is a bug!
<Luyt> When I call .methods() on an object, it returns a list of methods, each one with a colon (':') in front of it... why is that?
yetanotherdave has joined #ruby
<havenwood> Luyt: Those are Symbols.
<atmosx> havenwood: I knw, but it has this SQL Pro tool on OSX, that allows to operate with this fancy GUI and all remotely
<shevy> Mysql2::Error: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) (Sequel::DatabaseConnectionError)
<shevy> aha!
<Petein> havenwood: with require 'iso8583' => C:/Aptana_Workspace/myTest/MyMessage.rb:3:in `<main>': uninitialized constant Message (NameError)
<shevy> well I got quite far!
<atmosx> havenwood: + I know all the commands :-P while with pgsql I need to re-learn
<Luyt> havenwood: That makes sense, thanks. Just like LISP and Clojure!
<havenwood> atmosx: aha
stunder has quit [Remote host closed the connection]
<shevy> I went the other way hehe, I went with postgresql
<havenwood> Luyt: yup yup
<havenwood> Luyt: the Symbol literal
ghr has quit [Ping timeout: 256 seconds]
<wasamasa> Luyt: not quite, symbols are rather heavyweight compared to lisp :P
<atmosx> havenwood: lazy people these noob programmers are!
<atmosx> shevy: well it's ORM-based you can use anything really. Just change the gems...
<havenwood> atmosx: a virtue i share
<atmosx> on the and the driver
<wasamasa> Luyt: people are doing all sorts of crazy stuff with them
<godd2> havenwood I liked your lightning talk! :) https://www.youtube.com/watch?v=4_RJu_TrqO0&t=7h21m19s
<Luyt> wasamasa: It's a good thing when a language doesn't stifle creativity.
<havenwood> atmosx: The three great virtues of a programmer: Laziness, Impatience and Hubris
<havenwood> godd2: yay! i was super nervous and forgot to say most of what i meant to, but fun to get to do it!
<wasamasa> Luyt: I'm rather refering to circumventing the performance drop compared to non-unique strings
<Luyt> havenwood: Being lazy in a smart way is indeed a virtue. Why do more than is needed?
<wald0> eam: the ip, so... maybe users[ip] ?
Axy has quit [Read error: Connection reset by peer]
<wald0> users[ip][:requests].push "homepage"
<wald0> is this correct?
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
<wald0> and if is correct, how i can assign a second value to this entry? for example the datetime/timestamp of this request
<wald0> what is the arrays/hashes structure that i need to use?
<Petein> havenwood: what it may be? i would like to use this library. i had a nice plan for tonight. it is the 1st serious program i want to make in ruby
<eam> wald0: where is the request object in that example? Try writing out an example as yaml or json
aces1up9939 has left #ruby [#ruby]
<wald0> yaml/json ? i think that this is more difficult that what im trying to do :/
* wald0 learning and practicing ruby
<atmosx> havenwood: omg, that sounds like the mother of all evils (Kafka at least, believed so!)
<wald0> what you mean by request eam ?
<Luyt> havenwood: Larry Wall mentions 'persistence' as a virtue for a software developer, I usually call it 'tenacity'.. when you know something can be done, but you don't know how (yet), never give up until you found out how to do it.
<eam> wald0: it's just an easy to read syntax for diagramming simple data structures
<atmosx> havenwood: "Impatience and boredom are the roots of every evil" haha
<havenwood> Luyt: larry wall is great, i like listening to what he has to say
ReRixo has joined #ruby
<wald0> actually i have already set a loop for every nginx-log line, and it puts in a different variable every entry (the referal, the request, the timestamp, the code, the bytes transfered, etc)
procat has quit [Ping timeout: 255 seconds]
<atmosx> Larry Wall is really ugly.
stunder has joined #ruby
Versality has joined #ruby
<shevy> lol
<wald0> what i need to do is to know how much users (ip) got from page-1 to page-2 to page-3 etc... well, to calculate the percentages of bounces in every step
<eam> atmosx: makes me wonder how long you've been in the field
<shevy> atmosx but he got a big moustache
<wald0> for that i need first to make an "users" structure
<atmosx> eam: what makes you think I'm on the field right now?
<havenwood> Petein: have you heard of $LOAD_PATH before? (it's an Array, take a look at it.) if the file is in a dir in the $LOAD_PATH (you can add it) then you can just require.
<wald0> but i dont know how i should set it..
<eam> atmosx: absolutely nothing, that's my point :)
<wald0> users[ip]["entries"].push "/homepage"
<wald0> maybe like this, mmh...
<shevy> atmosx eam is about twice our age
krisquigley has joined #ruby
<Luyt> My favourite philosopher Ayn Rand, once said: “If you don't know, the thing to do is not to get scared, but to learn.” This perfectly illustrates my point
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> shevy: i'm going to a mustache party tonight, he might be welcomed there probably free entrance
<shevy> hahaha
<atmosx> eam: so you actually DO have a point
<shevy> I can't grow a larry wall style moustache :(
gebbione has quit [Ping timeout: 240 seconds]
<atmosx> shevy: hehe
<eam> atmosx: there is always a point, the question is whether you're aware of it
<atmosx> eam: I'm not, r u?
<shevy> I don't like beards, they are itchy and tend to accumulate food leftovers
<atmosx> kinda
Merec has joined #ruby
mkaesz has joined #ruby
<Luyt> shevy: Also, old skin flakes. Yuck.
<Petein> havenwood: i just found out about $LOAD_PATH. the thing is that i do not want to give the full path. isnt there any other way?
dkphenom has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
<havenwood> anyone know a good require/require_relative/load/$: tutorial?
pietr0 has quit [Quit: pietr0]
Merec has left #ruby [#ruby]
paulfm has quit [Read error: Connection reset by peer]
Versality has quit [Ping timeout: 255 seconds]
<atmosx> shevy: oh, I read it the other way around, thought that I was twice eam's age.
krisquigley has quit [Ping timeout: 264 seconds]
<eam> |/who atmosx
<atmosx> eam: sorry, for the attitude. I'm generally a little bit of a dick (but too much with older people)
<eam> ahahaha
<atmosx> eam: :-P
<eam> atmosx: how much older am I than you, do you think?
yeticry has quit [Ping timeout: 255 seconds]
<atmosx> eam: no idea, 66? :-p
<eam> damn
<atmosx> You work at Square?
<godd2> 66 base 10 or base 16?
Sirupsen has quit [Ping timeout: 240 seconds]
<Petein> havenwood: i did gem install iso8583, why it is so hard to load it into my code using require?
<eam> atmosx: I do
quimrstorres has quit [Remote host closed the connection]
<Petein> havenwood: is this normal?
baweaver has joined #ruby
<atmosx> eam: cool
yeticry has joined #ruby
<atmosx> eam: makes me wonder how long are you on the field :-P
jottr has quit [Quit: WeeChat 1.0.1]
<havenwood> Petein: you're on Windows and I'm honestly not familiar with Win Ruby switchers, but with things properly setup you should be able to simply `require`.
<eam> ;-)
<havenwood> Petein: How'd you install Ruby?
zzzbra has quit [Read error: Connection reset by peer]
zzzbra has joined #ruby
<godd2> Petein I'm on Windows so I may be able to offer some insight
<atmosx> godd2: what editor do yo uuse on windows for ruby?
mkaesz has quit [Remote host closed the connection]
<godd2> also I just did `gem install iso8583` and then in irb did require 'iso8583' and it returned true
<godd2> atmosx I use SublimeText
<havenwood> i heard Uru works on win as a switcher (as well as ye ole pik): https://bitbucket.org/jonforums/uru
fgo_ has joined #ruby
hiyosi has joined #ruby
<Petein> godd2: well i did gem install iso8583. it was installed here: C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\iso8583-0.1.5\lib\iso8583 then i do require 'iso8583' and although inside the iso8583 directory there is message.rb i get => 'C:/Aptana_Workspace/myTest/MyMessage.rb:6:in `<main>': uninitialized constant Message (NameError)'
<havenwood> godd2: Do you use Chocolatey?
oleo has quit [Ping timeout: 250 seconds]
Versality has joined #ruby
<atmosx> omg mysql is giving me such a hard time..
<Petein> godd2: im using Aptana
<havenwood> ahh, guess i should have realized how (s)he installed Ruby due to the path... hehe
djbkd has quit [Remote host closed the connection]
oleo has joined #ruby
<atmosx> I'll kill my grief in a crepe with nutella.
<Petein> godd2: it also gave me true (require iso8583)
<havenwood> Petein: `true` means it was required successfully and hadn't already been
<Petein> havenwood: ok, then why i cannot extend a class?
claymore has quit [Ping timeout: 264 seconds]
<Petein> please try class MyMessage < Message
<Petein> end
<havenwood> Petein: doing it wrong? class doesn't exist? dunno.
<godd2> Petein just because message.rb is inside the directory doesn't mean that file is necessarily being loaded
<Petein> godd2: ok so how you load it? require 'iso8583\message' ?
<Petein> godd2: nop.doesnt work
<godd2> no no
claymore has joined #ruby
<godd2> one sec. I'm looking through iso8583
<godd2> ISO8583::Message
<godd2> that's what you want to inherit from
fgo_ has quit [Ping timeout: 250 seconds]
<godd2> class MyMessage < ISO8583::Message; end
Xeago has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
nkumari has joined #ruby
<havenwood> Petein: ^ bit of reading on Ruby namespacing
clang- has quit [Quit: clang-]
nkumari_ has joined #ruby
<godd2> Petein all of the iso8583 classes are tucked away inside the ISO8583 module, so you have to put ISO8583:: before any of those classes you want to use
cleopatra has quit [Quit: Saliendo]
sinequanon has quit [Remote host closed the connection]
<godd2> havenwood I do not use chocolatey. I've never heard of it. is this it? https://github.com/chocolatey/chocolatey
djbkd has joined #ruby
cpruitt has joined #ruby
nkumari has quit [Read error: Connection reset by peer]
nkumari_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
<havenwood> godd2: yup, that's the one. just curious to hear from someone who's tried it.
<Petein> godd2: thank you for the help. havenwood thank you also
fabrice31 has joined #ruby
blackmesa has joined #ruby
nkumari has joined #ruby
nkumari has quit [Remote host closed the connection]
duncannz has joined #ruby
fsapo has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
fabrice31 has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<shevy> atmosx ewww nutella
<shevy> atmosx don't you have sweets from greece? like those yoghurts with honey?
corehook has quit [Remote host closed the connection]
<Petein> godd2: http://codepad.org/kS5IcQ7x , i opened message.rb and i can see the same example as i have in line 5. why do i get the err: C:/Aptana_Workspace/myTest/MyMessage.rb:5:in `<class:MyMessage>': uninitialized constant MyMessage::N (NameError) from C:/Aptana_Workspace/myTest/MyMessage.rb:3:in `<main>' ?
samuel02 has joined #ruby
<atmosx> shevy: yes
sambao21 has joined #ruby
<atmosx> shevy: yogurt with everything, the yogurt is really tasty in Greece
<shevy> hehehe
teddyp1cker has joined #ruby
Jake232 has joined #ruby
Shazaum has quit [Quit: Leaving]
Unknown2 has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
nvdpl has quit [Quit: Quit...]
josephnd1nton has joined #ruby
ferr has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
despai has quit [Quit: This computer has gone to sleep]
Maadison has joined #ruby
kasperti_ has joined #ruby
nobitanobi has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
kasperti_ has quit [Client Quit]
Blizzy has joined #ruby
cpruitt has joined #ruby
<Maadison> I'm debugging with -rdebug and still new to it. (I know, Pry is recommended, but $reasons.) What's the easiest way to have rdebug run to the point where it has processed my class declarations and I can tell it where I want my breakpoint? I find that 'b myfile.rb:1' doesn't always work. Do I have to manually find a safe line number each time I debug a new file?
parabolize has joined #ruby
baroquebobcat has joined #ruby
josephnd1nton has quit [Ping timeout: 265 seconds]
ghostmoth has quit [Quit: ghostmoth]
econerd4ever has quit [Remote host closed the connection]
sinequanon has joined #ruby
econerd4ever has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
noop has quit [Ping timeout: 250 seconds]
ldnunes has quit [Quit: Leaving]
samuel02 has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
divi has joined #ruby
lolmaus has joined #ruby
Naeblis has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Naeblis> Hi. How can I quickly look up help interactively in Ruby? Equivalent to python's help() that is.
dangerousdave has joined #ruby
<Naeblis> Seems like ri doesn't provide a lot of information. `ri Array` just tells me the name of instance methods, nothing else.
wald0 has quit [Quit: Lost terminal]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
samuel02 has joined #ruby
divi has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
divi has joined #ruby
<shevy> Naeblis you can enable that in irb
<shevy> interesting that ruby objects don't have anything like __doc__
byprdct has quit [Quit: sleeping]
ghr has joined #ruby
tobago has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
atmosx has quit [Quit: Lost in trance]
freerobby has quit [Quit: Leaving.]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 256 seconds]
<Naeblis> does ruby have something like dir() ?
mistermocha has joined #ruby
gregf has joined #ruby
<eam> >> [].methods
<eval-in__> eam => [:inspect, :to_s, :to_a, :to_h, :to_ary, :frozen?, :==, :eql?, :hash, :[], :[]=, :at, :fetch, :first, :last, :concat, :<<, :push, :pop, :shift, :unshift, :insert, :each, :each_index, :reverse_each, :le ... (https://eval.in/224806)
<parabolize> Naeblis: Also, its possible to have ri installed while not having the actual docs installed. For example in archlinux I have the packages ruby and ruby-docs. /usr/bin/ri is installed with the ruby package.
Petein has left #ruby [#ruby]
aspires has quit []
ghr has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Read error: Connection reset by peer]
kasperti_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
<parabolize> ri Array should look something like this: http://www.ruby-doc.org/core-2.1.3/Array.html
dkb20k has joined #ruby
superscalr has joined #ruby
geggam has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
rdark has quit [Quit: leaving]
sailias has quit [Ping timeout: 245 seconds]
superscalr has quit [Client Quit]
Petein has joined #ruby
Petein has left #ruby [#ruby]
dkb20k has quit [Ping timeout: 255 seconds]
otherj has joined #ruby
yfeldblum has joined #ruby
decoponio has quit [Quit: Leaving...]
<Naeblis> ri Array just gives me this: https://dpaste.de/VZMT
baroquebobcat has joined #ruby
<Naeblis> so I guess Ruby's default docs don't come installed with ri? o_O
adriancb has joined #ruby
tier has quit [Remote host closed the connection]
phutchin1 has quit [Ping timeout: 265 seconds]
theotherstupidgu has quit [Ping timeout: 255 seconds]
mistermocha has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
mistermocha has joined #ruby
lidaaa has joined #ruby
<parabolize> what operating system? how did you install ruby?
melik has joined #ruby
tyll has quit [Ping timeout: 245 seconds]
mistermocha has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 258 seconds]
tyll has joined #ruby
patrick99e99 has joined #ruby
reinaldob has quit [Remote host closed the connection]
tier has joined #ruby
duncannz has joined #ruby
fgo_ has joined #ruby
<Naeblis> parabolize: OS X Mavericks. I installed using homebrew.
<Naeblis> ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin13.0] & ri 4.1.0
paulfm has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
patrick99e99 has quit [Ping timeout: 245 seconds]
fgo_ has quit [Ping timeout: 264 seconds]
theotherstupidgu has quit [Ping timeout: 240 seconds]
silkfox has quit [Ping timeout: 250 seconds]
theotherstupidgu has joined #ruby
Guest61211 is now known as Asher
pietr0 has joined #ruby
ghostmoth has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<fmcgeough> I want to restrict access of Postgres user to only allow connections when the user is on the actual database box. This is done via the pg_hba.conf file ?
Linell has joined #ruby
maletor has joined #ruby
rsavage has quit [Remote host closed the connection]
hornairs has quit [Ping timeout: 244 seconds]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<fmcgeough> well that certainly wasn’t the right channel. sorry.
anaeem1 has joined #ruby
ghostmoth has quit [Client Quit]
zzzbra has quit [Remote host closed the connection]
claw has quit [Quit: Konversation terminated!]
<ddv> :/
<ddv> no shit sherlock
claw has joined #ruby
zzzbra has joined #ruby
claw has quit [Remote host closed the connection]
theotherstupidgu has quit [Ping timeout: 240 seconds]
anaeem1__ has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
theotherstupidgu has joined #ruby
momomomomo has joined #ruby
icebourg_ has quit []
Guest6644 has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 244 seconds]
jaequery has joined #ruby
josephnd1nton has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Versality has quit [Quit: Lingo: www.lingoirc.com]
yalue has quit [Quit: Leaving]
byprdct has joined #ruby
giuseppesolinas has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
narph has quit [Quit: Connection closed for inactivity]
aspires has joined #ruby
djbkd has quit [Remote host closed the connection]
zzzbra has quit [Ping timeout: 250 seconds]
lampd1 has joined #ruby
josephnd1nton has quit [Ping timeout: 258 seconds]
DLSteve_ has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
geggam has joined #ruby
zzzbra has joined #ruby
DLSteve has quit [Ping timeout: 258 seconds]
maletor has quit [Ping timeout: 256 seconds]
<Naeblis> I just did
<Naeblis> and installed
<Naeblis> no change
anaeem1__ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
Takle has joined #ruby
<parabolize> do you have that gemrc file?
neoxquick has joined #ruby
<Naeblis> no I don't have a ~/.gemrc
<Naeblis> I did this: https://dpaste.de/nUUo
djbkd has quit [Remote host closed the connection]
<parabolize> oh
<parabolize> sudo may have been a bad idea
<Naeblis> You don't have write permissions for the /usr/local/lib/ruby/gems/2.1.0/doc/actionmailer-4.1.8 directory.
treehug88 has joined #ruby
<parabolize> the mac users may need to help you
<Naeblis> hence the reason
<Naeblis> sigh
<Naeblis> thanks for trying
KC9YDN has quit [Read error: Connection reset by peer]
treehug88 has quit [Max SendQ exceeded]
djbkd has joined #ruby
<parabolize> I think most of them use rvm and put ruby and all the gems in user land.
treehug88 has joined #ruby
jheg has joined #ruby
* lupine hides from rvm
ghostmoth has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
<parabolize> just try it without sudo
<Naeblis> won't run. gives the error I pasted above
<parabolize> also, the html is pretty! leave the --no-rdoc out
<Linell> I'm doing some testing with minitest on an api. One of the calls I want to test won't always return any data. Should I just hardcode it to fetch data from a specific date or what?
<Linell> (the reason it might not return data is it's testing whether or not something happened on a date that defaults to yesterday)
josephndenton has quit [Ping timeout: 255 seconds]
<Naeblis> hmm. I think the problem might be
<Naeblis> my ruby and irb is /usr/local/bin (brew)
<Naeblis> but gem is /usr/bin/gem
baweaver has joined #ruby
teddyp1cker has quit [Read error: Connection timed out]
<havenwood> Naeblis: check?: brew doctor
zzzbra has quit [Ping timeout: 240 seconds]
{ordepdev} has joined #ruby
jespada has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
krisquigley has joined #ruby
<havenwood> Naeblis: edit `/etc/paths` and make sure it's in the order brew doctor suggests
<havenwood> Naeblis: /usr/local/bin <- at the top
teddyp1cker has joined #ruby
{ordepdev} has quit [Remote host closed the connection]
kobain has joined #ruby
<Naeblis> $ which gem ▸▸▸▸▸▸▸▸▸▹
<Naeblis> $ whereis gem ▸▸▸▸▸▸▸▸▸▹
claymore has quit [Ping timeout: 264 seconds]
<havenwood> Naeblis: Stop that. :P
cleopatra has joined #ruby
<Naeblis> oh format, my bad
<Naeblis> anyway, which points me to /usr/local/bin and whereis points to to /usr/bin/
boombadaroomba has quit [Remote host closed the connection]
claw has joined #ruby
momomomomo has quit [Quit: momomomomo]
<claw> hey there
<claw> i am looking for a gem that can trigger scheduled events
wald0 has joined #ruby
Musashi007 has joined #ruby
djbkd has quit [Remote host closed the connection]
<wald0> users = Hash.new ; users[ip] = [request, datetime_epoch, ip]
<havenwood> Naeblis: ahh, scrolled back to see what you're doing
ghr has quit [Ping timeout: 244 seconds]
<claw> it would need a backend for storing events so that are persistent even if the application was stopped
yfeldblu_ has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
tier has quit [Remote host closed the connection]
claymore has joined #ruby
<claw> is there one ?
<havenwood> Naeblis: here's an example of using chruby to setup PATH for you: https://gist.github.com/havenwood/ba31f67c1d89ac236400
<havenwood> Naeblis: brew ruby doesn't put it's gem binaries ahead of others by default
<wald0> the second entry overwrites any existing user[ip] (it works in a loop), how i can do for just append entries instead of overwrite the only one ?
<havenwood> Naeblis: if you wanted to, you could just add this to one of your dotfiles that gets sourced: export PATH="$(brew --prefix ruby)/bin:$PATH"
<havenwood> Naeblis: or chruby
<Naeblis> doing chruby
Petein has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<havenwood> claw: are you at all familiar with sidekiq, resque or beanstalkd
<claw> not yet
Areessell has quit [Quit: leaving]
<claw> i am just reading about beanstalk
Areessell has joined #ruby
bmichelsen has joined #ruby
divi has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
codezomb has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Musashi007 has quit [Quit: Musashi007]
baweaver has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
MrIlyas has quit [Ping timeout: 265 seconds]
<claw> havenwood, i dont know if this is what i am looking for
nfk has joined #ruby
pika_pika has joined #ruby
<claw> i want to do something if Time.now > stored_time
jespada has joined #ruby
zzzbra has joined #ruby
<Naeblis> havenwood: looks like I'm doing something wrong. chruby ruby gives me this: "chruby: /usr/local/bin/ruby/bin/ruby not executable"
<Naeblis> so the path is incorrect somewhere
silkfox has joined #ruby
<havenwood> Naeblis: oops
<havenwood> Naeblis: sec, checking if i messed up the gist ;o
alvaro_o has joined #ruby
Morkel has quit [Quit: Morkel]
<claw> oh havenwood theres also resque-scheduler
<claw> "Resque-scheduler is an extension to Resque that adds support for queueing items in the future."
<claw> i guess thats what i am looking for
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
henesy has quit [Ping timeout: 258 seconds]
larissa has quit [Quit: Leaving]
<havenwood> Naeblis: yeah, looks like the symlink in `~/.rubies` isn't pointing to the brew ruby dir - i think my mistake
fabrice31 has joined #ruby
theotherstupidgu has quit [Ping timeout: 265 seconds]
<claw> "The delayed queue is stored in redis and is persisted in the same way the standard resque jobs are persisted (redis writing to disk)" << jup there we go
<claw> thank you havenwood
baweaver has joined #ruby
<havenwood> claw: no prob
fgo_ has joined #ruby
<havenwood> Naeblis: sec, i'll fix when off phone, but symlink in ~/.rubies just should point wherever brew ruby dir is
despai has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
<diegoviola> hola
baweaver has quit [Remote host closed the connection]
razieliyo has joined #ruby
<Naeblis> wait got it working. Well, at least "chruby ruby". Except now, "chruby system" is also the same thing. o_O
borodin has quit [Quit: Page closed]
jespada has quit [Quit: Leaving]
emmesswhy has joined #ruby
ht__th has quit [Read error: Connection reset by peer]
fgo_ has quit [Ping timeout: 265 seconds]
i0n has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
tier has joined #ruby
momomomomo has joined #ruby
boombadaroomba has joined #ruby
henesy has joined #ruby
<wald0> how i can make an array of hashes?
<Luyt> [{}, {}, {}] ?
<wald0> mmh, i think so
<Luyt> but how it is called in Ruby? An array or a list?
<godd2> Luyt its called an array
<Luyt> godd2: rgr that
<godd2> >> [].class
<eval-in__> godd2 => Array (https://eval.in/224817)
dreinull has quit [Remote host closed the connection]
spyderma_ has quit []
<wald0> fred = [{:ip = 192.168.1.8}, {:location = "work"}]
<wald0> fred = [{:ip = 192.168.1.1}, {:location = "home"}]
<wald0> samantha = [{:ip = 192.168.1.2}, {:location = "home"}]
<wald0> for example i want to make this structure
<havenwood> Naeblis: ah, just `brew unlink ruby` if you want system to be system
paulfm has quit []
<wald0> im digging since more than 3 hours and i dont know how to proceed
amargherio has quit [Remote host closed the connection]
<wald0> can anybody give me an example ?
<godd2> wald0 a couple issues there. the ip address can't be bare like that. Youll want to put it in a string
<jenrzzz> >> 5.times.inject(Class) {|c| c.class }
<eval-in__> jenrzzz => Class (https://eval.in/224818)
<godd2> second, you can have multiple entries in a single hash as long as the keys are differnt
<wald0> a string is ok
<godd2> {:ip => "192.168.1.1", :location => "work"}
<wald0> well, in fact it needs to be: users[fred] = ...
<Naeblis> havenwood: Got it. Thanks for the help. :)
<godd2> wald0 do you want users[fred], users[:fred], or users["fred"] ?
<jenrzzz> >> 5.times.inject(Class) {|c| class << c; self; end }
<eval-in__> jenrzzz => #<Class:#<Class:#<Class:#<Class:#<Class:Class>>>>> (https://eval.in/224819)
Eiam has joined #ruby
wallerdev has joined #ruby
<havenwood> Naeblis: no prob, sorry for the bad gist. i'll fix. :)
<wald0> godd2: users["fred"] i think, so they are just identifiers
taxen has joined #ruby
<godd2> jenrzzz is that the singleton class of the singleton class of the singleton class of the singleton class of the singleton class of the Class class?
<jenrzzz> yes.
<godd2> :P
<taxen> anyone know a Rails channel on freenode?
sambao21 has quit [Quit: Computer has gone to sleep.]
<wald0> making "unique identifiers for each user" in a users[idXX] style
tesaf has quit [Quit: Lost terminal]
<jenrzzz> taxen: #RubyOnRails
<godd2> don't forget, of course that it inherits from the singleton class of the singleton class of the singleton class of the singleton class of the BasicObject Class
<taxen> jenrzzz I cant join...
<jenrzzz> >> 5.times.inject(Class) {|c| class << c; self; end }.is_a?(BasicObject)
ta has joined #ruby
<eval-in__> jenrzzz => true (https://eval.in/224820)
<wald0> godd2: well, i need to append new entries for each identifier, each of these entries has the same amount of elements (an ip, a location, etc)
<jenrzzz> taxen: register with NickServ
<godd2> wald0 the values in the hash can be hashes
duggiefresh has quit []
<wald0> so what is users ? an array ? a hash? an array of hashes ? a hash of arrays ? i think that im mostly confused on this part
taxen has quit [Client Quit]
<godd2> {"fred" => {"name" => "fred miller", "ip" => "some ip address"}}
despai has quit [Quit: This computer has gone to sleep]
dts is now known as dts|gaming
lkba has joined #ruby
<wald0> {"fred" => {"name" => "fred miller", "ip" => "some ip address"}, {"name" => "samantha at night", "ip" => "hidden ip"}}
<wald0> this stills valid, godd2 ?
sambao21 has joined #ruby
<wald0> for the same first "fred" (unique identifier)
<godd2> that is not valid, no. if you want fred to point to multiple hashes, youll have to put them in an array
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whoisjake has quit []
<godd2> unless you just missed the "samantha" key
<godd2> {"fred" => {"name" => "fred miller", "ip" => "some ip address"}, "samantha" => {"name" => "samantha at night", "ip" => "hidden ip"}}
<shevy> freddie?
<shevy> from nightmare on elm street?
despai has joined #ruby
mjuszczak has quit []
blahwoop has joined #ruby
<blahwoop> hi all
<havenwood> hi
msmith_ has quit [Remote host closed the connection]
<shevy> blahwoop hi ruby man
<godd2> hola
<Naeblis> heh. Interestingly, the ri problem still remains
steffes has joined #ruby
<shevy> a script per day keeps doctor and sorrows away
<Naeblis> "nothing known about Array"
<shevy> Naeblis one has to live with it! ruby docs are not that good
j2p2 has quit [Ping timeout: 240 seconds]
<blahwoop> whats the best way to create arrays within arrays with only 4 element limit
zzzbra has quit [Ping timeout: 265 seconds]
<Naeblis> so I am slowly coming to realize. :/
<shevy> blahwoop don't think youc an easily restrict that
msmith_ has joined #ruby
<blahwoop> i see
<blahwoop> im trying to create boggle game
<blahwoop> and i want to make grides
<shevy> blahwoop one workaround would be to add to your array through a method and inside that method check; another might be to subclass though people shy away from subclassing Array
<blahwoop> a grid
msmith_ has quit [Remote host closed the connection]
<wald0> godd2: i dont think that this is valid for what i want to do, the first fred is a unique identifier and i need to add "entries" (multiple ones) on it, let's say that he can have a different name on each different ip
<godd2> blahwoop in the command line or a full graphical game?
<blahwoop> command line
<shevy> blahwoop ok but you can just initialize the array right?
msmith_ has joined #ruby
<blahwoop> yup
<blahwoop> so i have @grid = [[], [], [], []]
<shevy> ok
<blahwoop> i am trying to plug in letter objects into each one
fumk has quit [Quit: changing servers]
<blahwoop> user can put in 16
<shevy> @grid.freeze
<shevy> I think
<shevy> I hate .freeze though
fumk has joined #ruby
msmith_ has quit [Remote host closed the connection]
<godd2> nah I think he's just having trouble addressing nested elements
<shevy> but it would freeze that array right?
<shevy> at 4 elements
msmith_ has joined #ruby
Mateon2 has joined #ruby
Mateon1 has quit [Disconnected by services]
Mateon2 is now known as Mateon1
<godd2> blahwoop to add elements to the inside arrays, address them like this:
msmith_ has quit [Remote host closed the connection]
<shevy> >> @grid = [[], [], [], []]; @grid << 123
<eval-in__> shevy => [[], [], [], [], 123] (https://eval.in/224835)
<shevy> lol
<shevy> I forgot .freeze
<shevy> >> @grid = [[], [], [], []]; @grid.freeze; @grid << 123
<eval-in__> shevy => can't modify frozen Array (RuntimeError) ... (https://eval.in/224836)
msmith_ has joined #ruby
<shevy> >> @grid = [[], [], [], []]; @grid.freeze; @grid[0] << 123; @grid
<eval-in__> shevy => [[123], [], [], []] (https://eval.in/224837)
<godd2> >> @grid = [[],[],[],[]]; @grid[0][0] = "R"; @grid[0][1] = "H"; @grid
<eval-in__> godd2 => [["R", "H"], [], [], []] (https://eval.in/224838)
tier has quit [Remote host closed the connection]
josephndenton has joined #ruby
Petein has left #ruby [#ruby]
<shevy> blahwoop see! your array would be frozen at 4 members
<blahwoop> how would it go into the next array
<shevy> you count
<shevy> index starts at 0
<godd2> blahwoop are you using that array as the entire grid or as one row?
<wald0> i think that users should be an array, not a hash... mmh
<shevy> so to add to Array nr. 3, you have to deduct 1 from it, so you use [2]
<blahwoop> as on row
Asher has quit [Quit: Leaving.]
msmith_ has quit [Remote host closed the connection]
<godd2> wald0 yes it is more sensible to have the list of users be an array where each element is a hash
Asher has joined #ruby
<gomikemike> i need to get the value after the first "/" of this string: aws-cli/1.6.2 Python/2.6.6 Linux/2.6.32-431.11.2.el6.x86_64
<blahwoop> okay.
<shevy> blahwoop also same thing; if you have a pencil you can draw the grid; several Arrays you can access for multiple [0] like [2][1] to add to array at position 3, the second one there
rubie has joined #ruby
<shevy> gomikemike what do you mean with "value"?
<blahwoop> looks ugly is there a better way lol
<blahwoop> ill try that
<gomikemike> im putting that string (output of command) on a variable awscli
<havenwood> >> 'aws-cli/1.6.2 Python/2.6.6 Linux/2.6.32-431.11.2.el6.x86_64'.partition('/').last
<eval-in__> havenwood => "1.6.2 Python/2.6.6 Linux/2.6.32-431.11.2.el6.x86_64" (https://eval.in/224839)
<rubie> hi all: anyone want to give me some feed back on this program -- https://gist.github.com/gabrie30/1e32a39e4f252d88f605
<shevy> blahwoop you could use .fetch() instead but [] is so much shorter
<wald0> godd2: so this is where i am, how i can do that ?
<havenwood> gomikemike: ^
<godd2> blahwoop ah okay, then @grid = [[[],[],[],[]],[[],[],[],[]],[[],[],[],[]],[[],[],[],[]]] ?
<gomikemike> then im trying to use split
<gomikemike> so i need the 1.6.2
<shevy> so that is what he meant with value
lolmaus has quit [Quit: Konversation terminated!]
<blahwoop> the grid is entire grid the array inside the grid is a row
<blahwoop> so 4 rows in a grid
<gomikemike> value = 1st string after "/"
henesy has quit [Ping timeout: 258 seconds]
<eam> gomikemike: havenwood answered your question already
<havenwood> gomikemike: did you see my example above?
ni291187 has joined #ruby
<ni291187> hi
<eam> split("/", 2).last is how you'd do it using split though
<ni291187> what's up
<gomikemike> havenwood: read it now....thxs
<ni291187> can we kik
jlast has quit [Remote host closed the connection]
ni291187 has left #ruby [#ruby]
josephndenton has quit [Ping timeout: 265 seconds]
siso has joined #ruby
Hijiri has joined #ruby
<rubie> hi all: anyone want to give me some feed back on this program -- https://gist.github.com/gabrie30/1e32a39e4f252d88f605
<Linell> Does anyone have an example of testing an API with minitest and simplecov?
<wald0> aah, i think that i finally have it working
jimbach has quit [Remote host closed the connection]
<havenwood> rubie: drop empty parens from methods, so `display` instead of `display()`
<havenwood> rubie: you can just `puts` instead of `puts " "`
<havenwood> rubie: seems you have the same if statement twice, but consider switching to a case statement in any case
<shevy> hmm
ghostmoth has quit [Quit: ghostmoth]
Soda has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
<havenwood> rubie: if you'd like to have them just press a key and not have to hit enter `require 'io/console'` and use `STDIN.getch` instead of `gets` to capture
fmcgeough has quit [Quit: fmcgeough]
<rubie> ahh ok
livingstn has quit []
<godd2> blahwoop check this out as an idea: https://gist.github.com/nicklink483/a15859de9b615eac4c3a
antgel has quit [Ping timeout: 255 seconds]
<blahwoop> thanks
mjuszczak has joined #ruby
<godd2> blahwoop now of course, you'll still have the tedious task of using row and cell indices to check if words are present, but that is one way to represent the grid in ruby
<jheg> is there an array method that returns true if it contains anything other than nil or false?
msmith_ has joined #ruby
msmith_ has quit [Remote host closed the connection]
siso has quit [Read error: Connection reset by peer]
siso has joined #ruby
RitterJack has quit [Remote host closed the connection]
<havenwood> jheg: any?
<jheg> I suppose I could array.empty? == false
<jheg> ah brilliant thanks havenwood
<blahwoop> thanks godd2
<blahwoop> i wish i knew wtf that was doing lol
<rubie> array.length < 1
<godd2> jheg array.empty? already returns a boolean. no need to check if it == false
<wald0> how i can say "if array includes a hash with key1 = foo AND key2 = bar" ?
<havenwood> >> [nil, false].empty?
<eval-in__> havenwood => false (https://eval.in/224846)
<havenwood> >> [nil, false, 1].any?
<eval-in__> havenwood => true (https://eval.in/224847)
Avahey has joined #ruby
<havenwood> >> [nil, false].any?
<eval-in__> havenwood => false (https://eval.in/224848)
<blahwoop> guess the /..../ gives you 4
Vile` has quit [Remote host closed the connection]
<blahwoop> that's pretty damn cool though
yfeldblu_ has quit [Remote host closed the connection]
<godd2> blahwoop yes the /..../ says "match any 4 characters in a row"
jimbach has joined #ruby
<jheg> godd2: jheg array.empty? already returns a boolean. no need to check if it == false
skyos has quit [Ping timeout: 255 seconds]
<jheg> I needed it to return to true if it contained anything other than nil or false
<jheg> anyway any? is perfect
<shevy> got any? problem?
ghr has joined #ruby
adriancb has quit [Remote host closed the connection]
<godd2> jheg I'm saying that "array.emtpy?" and "array.empty? == false" are logically isometric
baweaver has joined #ruby
Vile` has joined #ruby
<angryzor> rubie: i wrote something on your gist
<jheg> I’m confused ...
dkphenom has joined #ruby
<rubie> thanks!
Guest78414 is now known as ixx
<jheg> array = [1,nil,nil].empty? #=> false
<godd2> jheg "array.empty? == false" will never do anything other than the opposite of "array.empty?"
<jheg> array = [nil,nil,nil] == false #=> true
zzzbra has joined #ruby
ctp has joined #ruby
<havenwood> >> false.==(false).==(false)
<eval-in__> havenwood => false (https://eval.in/224849)
jimbach has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<godd2> jheg <jheg> I suppose I could array.empty? == false
<rubie> angryzor: that makes sense, now i can use TOWER[0][1][2] instead of different variables.
<godd2> that's different from doing array == false
ghr has quit [Ping timeout: 240 seconds]
<havenwood> !array.empty?
mistermocha has joined #ruby
<havenwood> or !!!array.empty? if you're feeling emphatic
<jheg> so if I only had .empty? to work with because for some very strange reason all the methods were off for the day nd I needed to do something if my array wasn’t empty then wouldn’t I writre if array.empty? == false; do something; end
benzrf|offline is now known as benzrf
adriancb has joined #ruby
claymore has quit [Quit: Leaving]
qhartman has joined #ruby
<havenwood> jheg: no, you'd: unless array.empty?
<jheg> rather than if array.empty?; do something; end
<jheg> bloody hell
mjuszczak has quit []
<godd2> jheg it would make more sense to do !array.empty?
<jheg> cool thanks for the clarification guys
<wald0> how i can say "if array includes a hash with key1 = foo AND key2 = bar" ?
<jhass> wald0: Enumerable#any?
silkfox has quit [Ping timeout: 272 seconds]
GPH|work has quit [Ping timeout: 258 seconds]
<zenspider> include? is prolly cleaner
<zenspider> but... why?
<jhass> I understood that as [{...}, {...}, ...]
jerius has quit [Ping timeout: 244 seconds]
<godd2> zenspider include? doesn't take a block
yfeldblum has joined #ruby
Lightsword has quit [Quit: Lightsword]
{ordepdev} has joined #ruby
<godd2> wald0: this one has an example of checking for multiple keys: https://gist.github.com/nicklink483/560295ebdbd8302ee073
jottr has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
<blahwoop> [a,b,c,d] * "" gives me "abcd"
<blahwoop> thats cool
<zenspider> godd2: so? what does block have to do with it?
<zenspider> or did I misread the question... my_ary.include?(this_hash)
<godd2> zenspider he wanted to check if the array had at least one hash which included keys
dcunit3d has joined #ruby
<jhass> that assumes the hash has only these two keys
<godd2> not just included some hash
<wald0> mmmh, not sure if im doing it correctly godd2: users.push(hash) unless ( user[:ip] == ip && user[:request] == request )
<zenspider> he said: 'how i can say "if array includes a hash with key1 = foo AND key2 = bar" ?'
<angryzor> rubie: yes, i added some more comments below it, adding other improvements step by step
<zenspider> which I took as: my_ary.include?({key1 => foo, key2 => bar})
tastycode has joined #ruby
it0a has quit [Ping timeout: 265 seconds]
emmesswhy has quit [Quit: Leaving]
User458764 has joined #ruby
<wald0> mmh, let me try that
<godd2> wald0 that's getting a little wild. you may want to step back and think about what you're trying to do from a slighlty bigger perspective. you seem to be coding yoruself into a corner
<tastycode> I would like to rewrite a method that is defined in a module, only in the context of a block. but refine only takes a class :/
<rubie> angryzor: thanks for doing this
<zenspider> that looks like you're trying to implement a security model... which you probably shouldn't be doing yourself.
airdeluxe has quit [Remote host closed the connection]
<jhass> tastycode: yup, you can't really. What are you needing that for?
<angryzor> np
<wald0> godd2: i think that my biggest problem is my poor knowledge of ruby (i readed books, but i didn't practiced it much at all)
sambao21 has joined #ruby
<tastycode> I want something sort of reminiscent of autorelease pool in objective c land, but basically.. i want a temporary in-memory-cache for the duration of a block that intercepts calls to a DB
<godd2> wald0 lol well no one (almost no one) learns a language over night :P it's okay to not know things yet. by practicing you're learning it :)
<wald0> aah, seems like hte one of zenspider worked
Linell has quit [Quit: leaving]
<wald0> godd2: yeah, thats for sure a good step, but is damn frustrating :(
<tastycode> one thing i could do is use ObjectSpace to list descendants of the included module and refine the classes individually
<wald0> its like "hell! how i can be so slow! i type other codes just like singing"
<jhass> tastycode: you could write a decorator that takes a flag to stop forwarding all calls
<jhass> have a look at SimpleDelegator in delegate stdlib
Lightsword has joined #ruby
<wald0> in fact, its my first time too with OO style, and this is the hardest part... to think on this way (in fact, im doing my actual ruby code in linear evaluation so.. lol)
<rubie> angryzor: doesnt the towers in line 1, need to be a constant, otherwise i thought it would be accessable inside a method
workmad3 has joined #ruby
<godd2> wald0 ruby encourages extraction and abstraction. so you can write things like users.push(hash) unless user.invalid? and then go write the invalid? method for whatever is inside user
<godd2> plus that reads a ton better
despai has quit [Quit: This computer has gone to sleep]
agjacome has joined #ruby
Mateon1 has quit [Ping timeout: 255 seconds]
fgo_ has joined #ruby
patrick99e99 has joined #ruby
<shevy> wald0 OOP in ruby is easy if you use classes; of course it gets a bit more complicated when you have to decide inheritance vs. composition; as in subclassing vs. include/extend-ing
St_Marx has quit [Remote host closed the connection]
<angryzor> rubie: mmhh, yes
<shevy> wald0 but remember - you are the last man standing in regards to ruby + enlightenment
<shevy> do not give up!
<angryzor> rubie: but that's because usually in ruby you don't work with loose methods in the global namespace
<angryzor> rubie: normally you would wrap those things into a class HanoiGame or something
<rubie> ahh
govg has joined #ruby
<wald0> shevy: well, my friend is doing a good work structuring good ruby code to manage these bindings, still in test but looks ok, by other side this little experience make me think that would be much easier and less complex to write it directly in C (im not joking lol)
codecop has quit [Remote host closed the connection]
siso has quit [Quit: siso]
<shevy> well
<shevy> ruby is elegant but not simple
<shevy> it's malleable; like you wish to forge a sword
<wald0> codecop ? mmh, that dont sounds like a friendly name...
<shevy> but perhaps also an axe; and a dagger; and a stiletto
<shevy> with python, you get a great axe
<shevy> but only a mediocre dagger
fgo_ has quit [Ping timeout: 245 seconds]
<shevy> because in the factory, there is only one true way - to forge an axe
<shevy> if you want a dagger you are outside the community
patrick99e99 has quit [Ping timeout: 265 seconds]
<shevy> at this point everyone will look down at you wald0
<shevy> do you really want to continue with python?
siso has joined #ruby
mistermocha has quit [Remote host closed the connection]
<eam> ruby is pretty simple
jobewan has quit [Quit: Leaving]
<rubie> angryzor: the reason i intially did all the if elsif statements is to kind of make a filter to test the inputs, if the users input passes all those tests then use the else statement to actually change the arrays, that way if the user did enter somethign that would cause an error, the method would return nil and the loop would recycle
geggam has quit [Ping timeout: 240 seconds]
<wald0> ips += ip, why this not works ?
<wald0> oh duh
* wald0 hides
<boombadaroomba> Anyone have experience using devise?
<jhass> wald0: in many cases you want to use << instead of +=
<godd2> + concatenates arrays, it doesn't append the array
<angryzor> usually when you see a chain of if-else statements it's a sign of bad code design, and they can be changed into one of these: a series of possible exception raises, a new abstraction for 'filters' that you keep in an array and iterate over to check if they all pass, or a switch statement
<shevy> wald0 what is ips ?
deric_skibotn_ has joined #ruby
<zenspider> rubie: the only thing I'd change about angryzor's excellent suggestions is the exceptions.
<godd2> boombadaroomba #rubyonrails will be better able to help you with questions about devise
<zenspider> instead of: raise RuntimeError.new('Please enter something') if X
<zenspider> first: raise RuntimeError, 'Please enter something' if X
baweaver has quit [Remote host closed the connection]
<zenspider> second: raise ArgumentError, 'Please enter something' if X
deric_skibotn has quit [Ping timeout: 240 seconds]
deric_skibotn_ is now known as deric_skibotn
<wald0> shevy: nope, in ruby you can also do only a mediocre axe (and a dagger), but not a stiletto
<wald0> see my case
<boombadaroomba> godd2: sorry, i thought i was there :(
govg has quit [Ping timeout: 240 seconds]
<boombadaroomba> my apolgies
<wald0> i cannot do decent gui applications easly :P
mistermocha has joined #ruby
<godd2> boombadaroomba that's okay, we're used to pointing people in that direction :)
<zenspider> I think I'd also go ahead and do `if to.nil? or from.nil?` => `unless to and from`
<angryzor> zenspider: can you explain to me what the difference is between the passing the raise class and creating a new instance? i used to use the former before it gave some problems in a recent project at work
<angryzor> and the documentation is kind of unclear
<angryzor> *exception class
pandaant has quit [Remote host closed the connection]
<wald0> vim users: how i can run my code directly from vim and view the results in a "splitted tab" ? my wrist hurst from so much alt-tab to switch terminal
koderok has joined #ruby
<zenspider> the syntax allows for `raise msg` and `raise cls, msg`. The former defaults to raising RuntimeError. The latter is equiv to `raise cls.new(msg)`
koderok has quit [Remote host closed the connection]
<angryzor> strange, i'm sure i had some trouble with it somehow but i can't remember what exactly
blackmesa has joined #ruby
<angryzor> it lost some information
<zenspider> you might have if you subclassed an exception and overrode initialize w/ a different arity
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> or non-string or something
axl_ has quit [Quit: axl_]
<angryzor> aaaaah that was it yes
<angryzor> of course
axl_ has joined #ruby
axl_ has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
charliesome has joined #ruby
* wald0 see's shevy in silent mode..
St_Marx has joined #ruby
drewvanstone has quit [Ping timeout: 258 seconds]
Kabaka has quit [Ping timeout: 250 seconds]
<zenspider> angryzor: in which case, you could call super w/ fixed args
baweaver has joined #ruby
<shevy> wald0 no, you need to wish to forge a katana
<tastycode> How can you refine a class method?
<godd2> tastycode monkey patch it?
<tastycode> :'
Kabaka has joined #ruby
gomikemike has quit [Ping timeout: 240 seconds]
<godd2> tastycode what do you mean by 'refine'?
<tastycode> e.g. i have a method User.get(2), i want to temporarily change out #get for the scope of a block
<shevy> the new ability godd2
jonr22 has joined #ruby
djbkd has quit [Remote host closed the connection]
<shevy> I don't like the syntax
<tastycode> ideally it would be “module Meow; refine User; def self.get(2); puts “refined!”; super; end; end; end” “using Meow; User.get(2)” .. but that doesn’t seem to work
jottr has quit [Ping timeout: 244 seconds]
gccostabr has quit [Quit: ZZZzzz…]
<angryzor> zenspider: i see, thanks :)
NoNMaDDeN has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
<godd2> shevy ah okay I like it. a bit more functional that way
momomomomo has quit [Ping timeout: 265 seconds]
<tastycode> ahh.. i could just refine the singleton class!
momomomomo has joined #ruby
<shevy> godd2 oh, I like the original idea behind it, I just don't like that implementation they went for
<claw> anybody can help me with confusion about resque workers ?
<shevy> the C code is funny though
<shevy> if (prev_frame_func()) { rb_raise(rb_eRuntimeError, "Module#using is not permitted in methods"); }
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
<wald0> shevy: i need a katana, but i dont have the time to make it myself (and hte experience to make a GOOD one)
devdazed has quit [Quit: Computer has gone to sleep.]
<wald0> s/make/forge/
djbkd has joined #ruby
<shevy> ok
jimmyy has joined #ruby
byprdct has quit [Ping timeout: 240 seconds]
<shevy> then simply improve the C code
<shevy> and be done with it
<shevy> no more ruby for you
freerobby has joined #ruby
<waxjar> wonder why they went with "patched" over "refined", now you've got two terms :/
<shevy> translating C into Ruby leads to awfulness like ncurses
<shevy> waxjar no idea!
econerd4ever has joined #ruby
<shevy> I think they should rethink the complete mechanism from the get go
<shevy> for ruby 3.0
<shevy> AND then we have a python2->3 split too :>
krisquigley has joined #ruby
<godd2> shevy let's just make a fork called shevruby!
jlast has joined #ruby
<shevy> my name does not translate well into a programming language
<waxjar> nah, refinements are still experimental-ish.
<waxjar> right?
<shevy> yeah
<zenspider> yup
<zenspider> a failed experiment imho... but *shrug*
byprdct has joined #ruby
<shevy> that's the thing the blog author did not understand I think:
<shevy> "I don?t know what the reasons are for going to such lengths to make this really hard to achieve."
<shevy> "I?d love to be enlightened by any obliging reader, and to understand the reasoning behind restricting things so much, because for all the guns Ruby gives you to hang yourself, this is the first time I?ve not been able to shoot myself in the foot."
<wald0> shevy: but i like ruby :/ thats why i want to use it (and learned it), c is much looonger to write and time wasting
ndrei_ has quit [Ping timeout: 265 seconds]
<shevy> good
<shevy> now you must think in the ruby way
ndrei has quit [Ping timeout: 265 seconds]
<shevy> wald0 see the C code as happy objects that say "papa wald0, let us out! we wanna get a real boy!"
adriancb has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<wald0> so what this means shevy ? :P
<angryzor> rubie: gonna leave it at this, i still have some work to do. hope it's helpful though
<shevy> do not try to understand - try to let ruby flow
keen___________6 has joined #ruby
momomomomo has quit [Quit: momomomomo]
<rubie> angryzor: thanks this is really helpful
Xeago has joined #ruby
mistermocha has quit [Remote host closed the connection]
<angryzor> yw
<wald0> shevy: yeah well, but i still cannot make good gui apps using ruby
keen___________5 has quit [Ping timeout: 250 seconds]
<godd2> wald0 you *can*, but I don't know if I'd recommend it
krisquigley has quit [Ping timeout: 245 seconds]
<wald0> FFI is harder to understand than plain C, and trying to use something that has a structure made for C in ruby is another story
<shevy> wald0 did you have a look at ruby-gnome?
<wald0> is like trying to make babbies from elephants and watermelons
mhi^ has quit [Ping timeout: 244 seconds]
<angryzor> rubie: lol, i derped, lemme fix my mistake
<wald0> shevy: i dont want to use gnome :)
<wald0> i want to use -that- gui
<shevy> hehe
jottr has joined #ruby
<shevy> just as a learning experience
<godd2> just attach functions and spread your wings and flyyyyyyy
<shevy> Gdk::PixbufLoader.new(image_type = nil, is_mime_type = false)
samuel02 has joined #ruby
lmickh has quit [Remote host closed the connection]
<angryzor> rubie: ok, fixed
mistermocha has joined #ruby
<rubie> thanks again
n_blownapart has joined #ruby
yfeldblum has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
yfeldblum has joined #ruby
mikepack has quit [Remote host closed the connection]
blahwoop has quit [Remote host closed the connection]
josephndenton has joined #ruby
<wald0> godd2: it is for sure not so bad for small things, but bigger things like a full gui control which has a ton of callbacks and function talking each others is like... damn
ghr has joined #ruby
<rubie> angryzor: and anyone else who read his revisions. I'm just wondering about raising the argument errors. By raising them it causes the game to "crash" wouldn't it be better to just let the user know why he made a mistake and give him another change to enter something correct. What is the advantage of raising an ArgumentError?
<rubie> give him another chance* to enter something correct
<angryzor> it doesn't actually crash the game, that is what the begin ... rescue ... end statement is for
<angryzor> ooooh
<angryzor> did i derp again
<angryzor> yeah
<angryzor> wait
<rubie> ahh
josephndenton has quit [Ping timeout: 240 seconds]
<shevy> wald0 what if you are aiming too big?
Synthead has joined #ruby
tus has joined #ruby
<shevy> I mean you could do a few other pure ruby projects which surely would be a lot easier, and you'd still learn a lot
<angryzor> i had changed the type of the exceptions to ArgumentError as zenspider suggested but forgot to change the rescue .... => e line as well
<wald0> shevy: i always aim too big
ghr has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
<angryzor> when you raise an error
<angryzor> it returns from the current function and keeps travelling up the tree of called functions until it either hits the boundaries of your program or it is caught by a rescue statement
<angryzor> so that's why there is a begin ... rescue
mistermocha has quit [Remote host closed the connection]
<angryzor> it stops the exception from crashing your program and instead allows you to inspect it
fabrice31 has joined #ruby
<angryzor> and read the error message
<angryzor> so you can show it to your user in a user friendly way
<godd2> "Something went wrong. :( It was probably your fault. :("
<angryzor> raise PebkacError
<zenspider> angryzor: default rescue will catch both ArgumentError and most PebkacErrors :)
msmith_ has joined #ruby
volty has joined #ruby
<godd2> >> class PebcakError < RuntimeError; end; raise PebcakError, "Something went wrong. :( It was probably your fault :("
<eval-in__> godd2 => Something went wrong. :( It was probably your fault :( (PebcakError) ... (https://eval.in/224856)
<shevy> man
<shevy> czech errors
msmith_ has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 264 seconds]
<benzrf> problem exists between chair and keyboard
<workmad3> godd2: I always spelt it Pebcak
butblack has joined #ruby
freerobby has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 255 seconds]
<benzrf> er, problem exists between chair and keyboard
<benzrf> fug
<benzrf> er, problem exists between chair and keyboard
<godd2> workmad3 er, did I spell it differently?
<workmad3> benzrf: :D
<workmad3> godd2: oh... sorry, it was zenspider who did Pubkac
<workmad3> *Pebkac
jottr has quit [Ping timeout: 245 seconds]
<godd2> problem undulates between keyboard and chair
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treehug88 has quit []
<angryzor> :')
<graft> blech... python installations are not as easy to manage as ruby installations
jottr has joined #ruby
mikepack has joined #ruby
<parabolize> wald0: not exactly what you were looking for but: http://commandercoriander.net/blog/2012/10/10/evaluate-lines-of-ruby-in-vim/
kasperti_ has quit []
jonr22 has quit [Remote host closed the connection]
rajeshchawla has quit []
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kapott has quit []
jimbach has joined #ruby
<godd2> havenwood Rich Hickey has some more to say about Transducers: https://www.youtube.com/watch?v=4KqUvG8HPYo
<havenwood> godd2: educers* :P
<wald0> mmh, not bad :) thx parabolize
<wald0> need to go now
<wald0> see ya!
<godd2> havenwood hehe can't wait til he makes induce, deduce, and secude
<godd2> oops, seduce
DLSteve_ has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
n_blownapart has quit []
<parabolize> graft: What is wrong with pip?
henesy has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
fgo_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
sud0x has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
<sud0x> hey guys, trying to figure out how to parse thru an array of elements, remove one that is not true and pass them as an argument to a function. Can someone give me some tips here? Current code: https://gist.github.com/anonymous/736b28f062437caf854d
wald0 has quit [Ping timeout: 265 seconds]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
zacstewart has quit [Remote host closed the connection]
<godd2> sud0x well first of all, after you have a variable name in the ||, you just use the variable name.
<godd2> so on line 5 you wouldnt have if |p|.nil you'd have if p.nil
qhartman has quit [Quit: Ex-Chat]
maestrojed has quit [Quit: Computer has gone to sleep.]
<sud0x> oh ok
<godd2> also, it's not .nil, it's .nil?
<sud0x> thanks godd2!
<sud0x> already put the end statement after the if
zacstewart has joined #ruby
wjimenez_ has joined #ruby
sinequanon has quit []
fgo_ has quit [Ping timeout: 255 seconds]
<angryzor> also, ruby has a function for this
<angryzor> phases.compact!
mary5030 has quit [Ping timeout: 255 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
<sud0x> hmm, what does that do angryzor? trying to google but my internet is slow as hell atm
<angryzor> removes all nils from an array
zacstewart has quit [Remote host closed the connection]
<sud0x> oh wow
<sud0x> that's awesome!!
<godd2> to add to what angryzor said, you could even put .compact on that original literal array on line 2
dseitz has joined #ruby
wjimenez5271 has quit [Ping timeout: 256 seconds]
<Naeblis> newbie reactions make me smile
<sud0x> godd2: what's the diff. between compact and compact!?
<apeiros> params.values_at
<godd2> sud0x the one with the exclamation point will change the object you called it on
devdazed has joined #ruby
6A4AAJAF0 has joined #ruby
<sud0x> gotcha
<godd2> sud0x but since you're storing the result into the variable phases, you dont need that one
<apeiros> params.values_at(:external, :internal, :arch_config).compact # if you want it a bit more compact
<apeiros> (pun fully intended :-p)
<godd2> sud0x one last thing. on the last line, you don't want phases[], you just want phases
<sud0x> ah ok yeah i just got an error when i tried it ll
<sud0x> thanks godd2
Areessell has quit [Ping timeout: 265 seconds]