apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
_maes_ has joined #ruby
banister has joined #ruby
randomnick_ has quit [Quit: Leaving]
kobain has quit [Ping timeout: 264 seconds]
<dgarstang3> h0rrorvacui: because I need to do some actions on each line.
<Hanmac> dgarstang3: like that?
<Hanmac> >>"abc\ndef".lines
nanoyak has quit [Quit: Computer has gone to sleep.]
<eval-in> Hanmac => ["abc\n", "def"] (https://eval.in/68686)
_maes_ has quit [Client Quit]
<dgarstang3> Hanmac: Uh, no. I don't think so. I'm running lsblk. I need to get a list of disks meeting certain criteria
dnyy has quit [Read error: Connection timed out]
tomassito has joined #ruby
benzrf has left #ruby [#ruby]
<h0rrorvacui> There is so many ways to do it
<h0rrorvacui> you can assign the result of `lsblk` to a say lsblk variable
<h0rrorvacui> and lsblk.lines do |line| w/e end
lmickh has quit [Quit: lmickh]
<dgarstang3> Ok, now this http://pastebin.com/2EK3infa isn't doing what I'd expect. At line 5... it's only printing one line. However, if I change that to puts line, it prints every line. Huh?
dnyy has joined #ruby
<Hanmac> dgarstang3: PS: i looked at the result of lsblk ... you need to beware about duplicates ...
dubsteph has quit [Ping timeout: 272 seconds]
<dgarstang3> Hanmac: if there's a better way to get a list of physical disks. Maybe I could parse fdisk instead
dangerousdave has quit [Ping timeout: 264 seconds]
<Hanmac> try this: `lsblk`.each_line.grep(/disk/)
jjbohn is now known as jjbohn|afk
kobain has joined #ruby
<dgarstang3> why doesn't that pastebin work tho?
<Hanmac> hm also more interesting: `lsblk`.each_line.grep(/disk/).flat_map {|s|s[/\w+/]}
lfox has quit [Quit: ZZZzzz…]
<Hanmac> last one returns for me: => ["sda", "sdb", "sdc", "sdd"]
<dgarstang3> Hanmac: yes, but I need to perform more actions on each.
<dgarstang3> Hanmac: putting it all one one big pipline, apart from being unreadable means I can't perform more actions on it
RichardBaker has joined #ruby
elux has quit [Quit: Bye!]
<dgarstang3> which gets me 'undefined method `flat_map'' by the way
<Hanmac> dgarstang3: try if a[/disk/] then
<Hanmac> dgarstang3: maybe ruby version to old ... flat_map is not soo new
<dgarstang3> Hanmac: of course, that'd be too easy
<Hanmac> dgarstang3: maybe unsecure, i think better would be a.strip.end_with?("disk")
<dgarstang3> Hanmac: you guys like putting as much stuff in one line don't ya. :)
jkhwan has quit [Remote host closed the connection]
jbw has joined #ruby
<h0rrorvacui> if you wanted to break the io into lines
thelorax123 has quit [Remote host closed the connection]
<h0rrorvacui> you could also do io.each_line do
<dgarstang3> h0rrorvacui: isn't that what I have already?
jkhwan has joined #ruby
vlad_starkov has joined #ruby
<dgarstang3> out = IO.popen( "lsblk -nr") do |io| line = io.read .... no?
<h0rrorvacui> hold on I'll show you what I mean
<h0rrorvacui> its just a bit more understandable
thelorax123 has joined #ruby
<dgarstang3> h0rrorvacui: it is, thanks.
<h0rrorvacui> yet I got you no further closer to your desired output but I'm looking at that
<dgarstang3> h0rrorvacui: it's an improvement. I think I can work the rest out
<dgarstang3> h0rrorvacui: I just wanted to keep the loop simple because I may need to do more fancy checks on each disk later
nanoyak has joined #ruby
<h0rrorvacui> Yeah iterators and filters are sometimes difficult to read and complicate things
jjbohn|afk is now known as jjbohn
ngoldman has quit [Remote host closed the connection]
thedonvaughn has quit [Ping timeout: 246 seconds]
atrocitas has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
jkhwan has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> hihi you dont want to know what lsblk shows on my system ;P
jkhwan has joined #ruby
<h0rrorvacui> Hanmac: hidden pron drive?
Lewix has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
RichardBaker has quit [Quit: RichardBaker]
Guest1054 is now known as Mars`
<shevy> ascii porn
jbw has quit [Ping timeout: 272 seconds]
<h0rrorvacui> sfw pron
macmartine has quit [Remote host closed the connection]
<Hanmac> h0rrorvacui: lets say i have 4 disks and each of them are looking like [Grub][Boot-Raid1][System-Raid5]
predator117 has joined #ruby
daxroc has quit [Quit: Leaving.]
jkhwan has quit [Ping timeout: 272 seconds]
brunto has joined #ruby
Lewix has joined #ruby
emocakes has joined #ruby
predator217 has quit [Ping timeout: 252 seconds]
RichardBaker has joined #ruby
thedonvaughn has joined #ruby
benzrf has joined #ruby
<benzrf> >> Object.new.to_s
<eval-in> benzrf => "#<Object:0x40f55330>" (https://eval.in/68687)
<benzrf> >> Object.new.inspect
<eval-in> benzrf => "#<Object:0x4065d2b4>" (https://eval.in/68688)
benzrf has left #ruby [#ruby]
<lethjakm1> so I want to be able to pass either user or the id of a user into a method, is there a way to do user = user.id || user and not error out?
Ox6abe has quit [Remote host closed the connection]
lethjakm1 is now known as lethjakman
daxroc has joined #ruby
btanaka has quit []
otherj has joined #ruby
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
<shevy> what means "error out" precisely
RichardBaker has quit [Client Quit]
<Hanmac> lethjakman: you can do: user.repsond_to?(:id) ? user.id : user
Reach has quit [Remote host closed the connection]
<h0rrorvacui> or just user.id ? user.id : user
<h0rrorvacui> if user.id is nil it will be false and use user
<h0rrorvacui> nm
<h0rrorvacui> thats if id exists
<shevy> perhaps it does not exist
<h0rrorvacui> so hanmac's is more robust
<shevy> hanmac's one has a typo
<shevy> Hanmac reminds me of Pacman
<Hanmac> yeah its after 1AM ... i need to goto sleep zzZ
atrocitas has quit [Remote host closed the connection]
<Hanmac> shevy: why?
<shevy> Hanmac dunno
* Hanmac "waka waka waka"
terrellt has joined #ruby
yfeldbl__ has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 252 seconds]
jbw has joined #ruby
<h0rrorvacui> I don't see a typo
<h0rrorvacui> ohh respond
nitish has quit [Quit: Bye Bye...]
<h0rrorvacui> really it depends if User.id could be nil but defined though
RichardBaker has joined #ruby
jamesaanderson has joined #ruby
<h0rrorvacui> because it could respond to :id but the instance variable may not be assigned a value
nisstyre has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
<Hanmac> h0rrorvacui: if you want fail safe user.respond_to?(:id) ? user.id || user : user
jkhwan has joined #ruby
poikon has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
daxroc has quit [Quit: Leaving.]
hiroyuki_ has joined #ruby
<h0rrorvacui> Yeah my thoughts exactly
rezzack1 has joined #ruby
jamesaanderson has quit [Ping timeout: 265 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
JoeTheGuest has joined #ruby
rezzack has quit [Ping timeout: 267 seconds]
hiroyuki has quit [Ping timeout: 252 seconds]
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
graydot has quit [Remote host closed the connection]
mrsolo has joined #ruby
Mars` has quit [Remote host closed the connection]
mrsolo has quit [Remote host closed the connection]
ejnahc has quit [Remote host closed the connection]
<h0rrorvacui> Hanmac can you explain a little your raid setup?
Mars` has joined #ruby
ejnahc has joined #ruby
vlad_starkov has joined #ruby
tharindu has joined #ruby
Mars`_ has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
Mars` has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
scarolan has quit [Ping timeout: 272 seconds]
emocakes has quit [Quit: Leaving...]
vlad_starkov has quit [Ping timeout: 245 seconds]
platzhirsch has quit [Ping timeout: 252 seconds]
motto has quit [Quit: Sto andando via]
sepp2k has quit [Quit: Leaving.]
scarolan has joined #ruby
mercwithamouth has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
lmmx has joined #ruby
lnormous has quit [Ping timeout: 245 seconds]
ua has quit [Quit: Leaving]
ua has joined #ruby
robustus has joined #ruby
<lmmx> Hi all, I'm working on a screen scraper / web scraper to read a HTML table and I'm just wondering what the things beginning with colons are in my code? http://pastie.org/8483848
benzrf has joined #ruby
UserBotMan has joined #ruby
lmickh has joined #ruby
<benzrf> yall should join codewars through this link -> http://www.codewars.com/r/xQpXKQ
<benzrf> this is not a referer link, i swear
<benzrf> really
<benzrf> that's definitely not why im promoting it
poikon has quit [Remote host closed the connection]
<UserBotMan> Hello!
zeade has quit [Quit: Leaving.]
<UserBotMan> what is ruby?
ehc has quit [Quit: ehc]
ewnd9 has joined #ruby
<benzrf> a p. cool language
<UserBotMan> ahahha
ngoldman has joined #ruby
<UserBotMan> i believe u)
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
aspiers has joined #ruby
<UserBotMan> might be u wish somebody pushed it and it will send user to other site where he will see ads right?) i know this thing)
<benzrf> wha
DonRichie has quit [Quit: Verlassend]
kaspergrubbe has joined #ruby
<benzrf> that sentence did not parse
<benzrf> i assume english is not your first language>
<UserBotMan> right
<UserBotMan> what u mean not parse?
<havenwood> UserBotMan: A general purpose programming language. A lovechild of Lisp, Perl, and Smalltalk. If it is computable, you can compute it with Ruby so...
<UserBotMan> i can speak good but i speak fast
<benzrf> i mean i got nothing out of it
<benzrf> i didnt understand any of it
<UserBotMan> havenwood thank u
yfeldblum has joined #ruby
<UserBotMan> hmmmm
<UserBotMan> really?
<benzrf> ye
<havenwood> no, it is actually an animal, kinda like a llama but with the beak and wings of an owl
larissa has joined #ruby
<benzrf> havenwood: ha
<havenwood> UserBotMan: yes really.
<benzrf> wait, are owls associated with a language?
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> Ruby is sparrows
<UserBotMan> benzrf strange.. quite...
<havenwood> i dunno about owls
<benzrf> ...
rickruby has quit [Ping timeout: 245 seconds]
<benzrf> 20:01 < UserBotMan> might be u wish somebody pushed it and it will send user to other site where he will see ads right?) i know this thing)
<benzrf> that sentence means nothing to me
<benzrf> the grammar is so bad i cant figure out what you meant
sailias has joined #ruby
Xeago has quit [Remote host closed the connection]
<UserBotMan> havenwood i know C language and Delphi also. i programmed before. my favourite language is delphi
AndChat|380436 has joined #ruby
<h0rrorvacui> Ruby is a gemstone
farn has quit [Read error: Connection reset by peer]
pothibo has quit [Quit: pothibo]
kaspergrubbe has quit [Ping timeout: 252 seconds]
<UserBotMan> i always thought language must be simpple
<UserBotMan> C is a good example
<havenwood> UserBotMan: Of being simple?
<lmmx> Can anyone explain how I get the values from "symbols", puts :name doesn't give a value http://pastie.org/8483848
<UserBotMan> i mean simple syntax
daxroc has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<lmmx> I want to do something with the things I get from parsing a table but don't get how to use the values in the "symbols"
yfeldblum has joined #ruby
<benzrf> Lmmx: a symbol is like a string
<benzrf> basically, in languages like Python strings are used in 2 ways
<benzrf> they are used for text storage, and as identifiers
<UserBotMan> what do u think abt this?
tomassito has quit [Ping timeout: 265 seconds]
<benzrf> Lmmx: so in print("foo"), "foo" is representing some text
<lmmx> yeah I'm watching a vid on them now, symbols allow quicker access without reading the string
<benzrf> Lmmx: in open("file.txt", 'w'), 'w' is an identifier
<benzrf> Lmmx: basically, sometimes you use a string in such a way that you don't care about the text in the string
<lmmx> right, why're we talking about Python though?
farn has joined #ruby
<benzrf> just whatit is the same as
<benzrf> Lmmx: in ruby, symbols are usually used in that case
<lmmx> right
<lmmx> smart
<UserBotMan> havenwood it would be cool if C language had more comfortable working with strings
AndChat|380436 has quit [Ping timeout: 245 seconds]
<havenwood> UserBotMan: Use Ruby for great win.
<benzrf> UserBotMan: or python
<benzrf> it's a matter of taste
<UserBotMan> oh non platform multithreading is cool
tkuchiki has joined #ruby
<lmmx> so re: my code http://pastie.org/8483848 why can't I access the value with "puts :full" like for a local-variable called full ?
blackmesa has quit [Ping timeout: 240 seconds]
<benzrf> Lmmx: because :full is a literal
<benzrf> like "full"
<benzrf> >> "full"
<eval-in> benzrf => "full" (https://eval.in/68704)
<benzrf> >> :full
<eval-in> benzrf => :full (https://eval.in/68705)
<benzrf> :full is a value, like 3
dflurker has joined #ruby
aley has quit [Quit: aley]
<havenwood> Lmmx: detailles[:full]
kaspergrubbe has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<havenwood> >> detailles = {abbrev: 'this', full: 'that' }; detailles[:full]
<eval-in> havenwood => "that" (https://eval.in/68706)
<lmmx> ahhh thankyou #ruby[:benzrf,:havenwood] lol
tkuchiki has quit [Remote host closed the connection]
<lmmx> :~)
poikon has joined #ruby
<lmmx> cool
otherj has quit []
hellome has joined #ruby
<lmmx> hm I'm getting "can't convert Symbol into Integer"
jamesaanderson has joined #ruby
otherj has joined #ruby
jaCen915 has joined #ruby
<benzrf> Lmmx: show us your code
<benzrf> o
rickruby has joined #ruby
<jaCen915> Hi all, is there anyway to run *nix commands in an rb file? I'd like to get the "whoami" value in it
<benzrf> >> `whoami`
<eval-in> benzrf => (https://eval.in/68707)
<benzrf> Lmmx: what code is causing the error
<lmmx> >> puts detailles[:full]
<eval-in> Lmmx => undefined local variable or method `detailles' for main:Object (NameError) ... (https://eval.in/68708)
<jaCen915> benzrf: thanks, ill give that a shot
<benzrf> Lmmx: detailles is probably an array instead of a hash
<benzrf> >> [1, 2, 3][:foo]
<eval-in> benzrf => no implicit conversion of Symbol into Integer (TypeError) ... (https://eval.in/68709)
<havenwood> jaCen915: You can check `ENV['USER']` too, just an alternative.
<jaCen915> havenwood: thank you
jondkinney has left #ruby [#ruby]
emocakes has joined #ruby
havenwood has quit [Remote host closed the connection]
<lmmx> it is
daxroc has quit [Quit: Leaving.]
havenwood has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
tvw has quit []
<lmmx> is there still a way to use it benzrf :-S
tvw has joined #ruby
<UserBotMan> havenwood it looks cool
fgo has joined #ruby
amacgregor has joined #ruby
gr33n7007h has joined #ruby
tvw has quit [Read error: Operation timed out]
gr33n7007h has quit [Max SendQ exceeded]
Sakinim has joined #ruby
gr33n7007h has joined #ruby
tylersmith has quit [Remote host closed the connection]
<benzrf> Lmmx: use it as an array
<benzrf> ._.
gr33n7007h has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
znode has joined #ruby
bricker`LA has quit [Quit: leaving]
<lmmx> benzrf wow yes.. I think it's late lol.. thanx for the help, bye bye!
maletor has quit [Quit: Computer has gone to sleep.]
lmmx has quit [Quit: Leaving]
baroquebobcat has joined #ruby
bricker`LA has joined #ruby
choobie has quit [Ping timeout: 272 seconds]
thesheff17 has joined #ruby
blarghmatey_ has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
Sakinim has quit [Quit: ««< S O H B E T >»» www.Sohbet.Net <http://www.Sohbet.Net>]
saarinen has quit [Quit: saarinen]
UserBotMan has left #ruby [#ruby]
blarghmatey_ has quit [Remote host closed the connection]
dhruvasa1ar has joined #ruby
blarghmatey has joined #ruby
simoz has joined #ruby
simoz has quit [Read error: Connection reset by peer]
JimmyNeutron has quit [Quit: Leaving]
poikon has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<shevy> benzrf is picking up ruby quickly
dhruvasagar has quit [Ping timeout: 265 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
ehc has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
rezzack has joined #ruby
blarghmatey has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 268 seconds]
rezzack1 has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
lukec has joined #ruby
nobitanobi has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
jbw has quit [Ping timeout: 245 seconds]
mansi has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
jjbohn has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
tharindu has joined #ruby
jrhe has quit [Quit: jrhe]
vlad_starkov has quit [Read error: Connection reset by peer]
pragmatism has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 245 seconds]
dnyy_ has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Ping timeout: 272 seconds]
dnyy_ is now known as dnyy
yfeldblum has joined #ruby
tharindu has quit [Ping timeout: 264 seconds]
znode has quit [Quit: Lingo - http://www.lingoirc.com]
benzrf has quit [Quit: Lost terminal]
pwh has joined #ruby
znode has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
ngoldman has quit [Remote host closed the connection]
jaCen915 has quit [Quit: fell asleep]
jbw has joined #ruby
znode has quit [Quit: Lingo - http://www.lingoirc.com]
akonny has joined #ruby
Lewix has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 272 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phinfonet has quit [Quit: exitiing]
wallerdev_ has joined #ruby
jibi has quit [Quit: .]
emocakes has quit [Quit: Leaving...]
superscott[8] has quit [Quit: superscott[8]]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 246 seconds]
wallerdev_ is now known as wallerdev
znode has joined #ruby
sayan has joined #ruby
iliketurtles has joined #ruby
znode has quit [Remote host closed the connection]
havenwood has joined #ruby
znode has joined #ruby
myappleguy has joined #ruby
cburyta has quit []
jamesaanderson has joined #ruby
reset has quit [Ping timeout: 252 seconds]
jbw has quit [Read error: Operation timed out]
jbw has joined #ruby
emocakes has joined #ruby
nfk has quit [Quit: yawn]
mercwithamouth has joined #ruby
yfeldblum has quit [Remote host closed the connection]
macmartine has joined #ruby
platzhirsch has joined #ruby
snuffeluffegus has joined #ruby
myappleguy has quit [Ping timeout: 272 seconds]
<platzhirsch> What a bummer, got a VM with 24GB RAM set up at work only to notice that I cannot ssh to the IP from my VPN... luckily I found another gateway machine from which the IP is visible... close enough
hiroyuki_ has quit [Read error: Connection reset by peer]
teteak has joined #ruby
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
mjs2600 has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<platzhirsch> no cheers?
<nobitanobi> cheers dude!
ewnd9 has joined #ruby
macmartine has quit [Remote host closed the connection]
<platzhirsch> nobitanobi: I don't believe you
<nobitanobi> I'm happy for you, I swear
<platzhirsch> ok, I believe you
Mars`_ has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
havenwood has joined #ruby
macmartine has joined #ruby
bazaretas has quit [Quit: Leaving]
mmcdaris has quit [Ping timeout: 265 seconds]
kaspergrubbe has joined #ruby
macmartine has quit [Remote host closed the connection]
kevinykchan has joined #ruby
<shevy> I am not happy for you
mjs2600 has quit [Remote host closed the connection]
coderhs has joined #ruby
<platzhirsch> that okay, too. More drama, makes me less sleepy
Mars` has quit [Ping timeout: 245 seconds]
gazarsgo has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
snuffeluffegus has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
* platzhirsch stabs shevy in the back.
mjs2600 has joined #ruby
<shevy> lol
<shevy> now who is trying to kill someone first here :)
<platzhirsch> sorry, bad habit from my WoW days
<shevy> I have no other choice but to use atomic bombs against the lot of you now
dhruvasa1ar has quit [Ping timeout: 272 seconds]
<shevy> I skipped WoW
<shevy> but I wasted too much time with warcraft3
macmartine has joined #ruby
<platzhirsch> nice, ruining the whole channel with fallout, let's see what user group is then attracted by this channel
alvaro_o has quit [Quit: Ex-Chat]
<nobitanobi> ageofempires for the win
<platzhirsch> probably #defocus will flood this channel then
heidi has quit [Quit: Leaving.]
<shevy> nobitanobi did not play that either
<shevy> my gaming days were during the 1990s :(
<nobitanobi> same here!
<platzhirsch> and currently?
<nobitanobi> currently I just play soccer games ,_,
<platzhirsch> brogrammer
<nobitanobi> hahaha
<nobitanobi> browing u knaw?
Liquid-- has quit [Quit: Computer has gone to sleep.]
gverri_ has joined #ruby
<platzhirsch> yea, don't hate, appreciate
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
macmartine has quit [Remote host closed the connection]
<shevy> platzhirsch dunno, no longer play games much... one or two browser games perhaps
amacgregor has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
amacgregor has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
<shevy> platzhirsch we should work on a ruby game one day!
<platzhirsch> shevy: I think of putting my mind to one game once in a while, but it never happens. The maximum thing that happens is that I watch YouTube videos about the game and then be satisfied that I didn't spend > 50h :P
<shevy> well
<shevy> yeah
<platzhirsch> hehe, yeah maybe. I am not so much into graphical programming I guess, because I am afraid it's very lavish ^^
<shevy> that is why one needs to make time limitations
<shevy> how much time is being spent on the game shall be agreed upon in advance
<platzhirsch> That's a good exercise to train your willpower
<shevy> platzhirsch, we used to work on a game for 2 years, http://blog.parpg.net/
<platzhirsch> mine fails once in a while. I handed in my master's thesis and watched Breaking Bad in 5 days... kind of failed there
<shevy> platzhirsch during the peak time we had several developers active. unfortunately, people tend to disappear and then there is a lack of people able or willing to drive a project forward
<shevy> platzhirsch hehe
<shevy> bugs are ok to have
<platzhirsch> It's no fun if you are working solely alone, I guess it's too much work
<shevy> yes
ckinni has joined #ruby
araujo has quit [Quit: Leaving]
jkhwan has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
vlad_starkov has joined #ruby
jkhwan has joined #ruby
tharindu has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
<platzhirsch> nobitanobi: just watched Twilio's definitive brogramming primer again, http://www.youtube.com/watch?v=Qi_AAqi0RZM so much fun
<nobitanobi> saved for l8 :) txs
<gazarsgo> have you seen the sparefoot one
sayan has quit [Ping timeout: 272 seconds]
<nobitanobi> so.. Sean Parker would be the idol of the brogrammers?
DanKnox is now known as DanKnox_away
jkhwan has quit [Ping timeout: 272 seconds]
Mars` has joined #ruby
tharindu has quit [Ping timeout: 260 seconds]
emocakes has quit [Quit: Leaving...]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
jaCen915 has joined #ruby
jaCen915 has quit [Client Quit]
scarolan has quit [Ping timeout: 248 seconds]
znode has quit [Quit: Lingo - http://www.lingoirc.com]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
iliketurtles has quit [Quit: zzzzz…..]
baroquebobcat has joined #ruby
ckinni has joined #ruby
hamakn has joined #ruby
<platzhirsch> gazarsgo: lol
akonny has quit [Quit: akonny]
<gazarsgo> i get kind of sick to my stomach watching it heh
<platzhirsch> me too ^^
mjs2600 has quit [Remote host closed the connection]
stoic_squirrel has joined #ruby
iliketurtles has joined #ruby
s3itz has joined #ruby
vlad_starkov has joined #ruby
zz_tsykoduk is now known as tsykoduk
jlast has quit [Remote host closed the connection]
iliketurtles has quit [Client Quit]
Mars` has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 245 seconds]
yacks has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
pzula has joined #ruby
pzula has quit [Client Quit]
vlad_sta_ has quit [Ping timeout: 240 seconds]
stoic_squirrel has left #ruby [#ruby]
jbw has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
iliketurtles has joined #ruby
hiyosi has joined #ruby
iliketurtles has quit [Client Quit]
maycon__ has joined #ruby
maycon__ has quit [Changing host]
maycon__ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jbw has joined #ruby
fgo has quit [Remote host closed the connection]
dnyy_ has joined #ruby
nanothief has joined #ruby
MrZYX is now known as MrZYX|off
maycon_ has quit [Ping timeout: 248 seconds]
tsykoduk is now known as zz_tsykoduk
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnyy has quit [Read error: Connection reset by peer]
rellin has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 245 seconds]
intuxicated has quit [Remote host closed the connection]
yfeldblum has joined #ruby
banister_ has joined #ruby
vpretzel has quit [Quit: Adios!]
funburn has joined #ruby
banister has quit [Quit: Computer has gone to sleep.]
royalty has quit [Remote host closed the connection]
iajrz has quit [Ping timeout: 260 seconds]
tharindu has joined #ruby
pel_daniel has left #ruby [#ruby]
fgo has joined #ruby
Spleeze has quit [Quit: ZNC - http://znc.in]
Spleeze has joined #ruby
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mixel has quit [Quit: mixel]
jjbohn has quit [Quit: Leaving...]
platzhirsch has left #ruby [#ruby]
banisterfiend has joined #ruby
rellin has joined #ruby
dnyy_ is now known as dnyy
_maes_ has joined #ruby
jlast has joined #ruby
ananthakumaran has joined #ruby
aep has quit [Ping timeout: 272 seconds]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
aep has joined #ruby
tharindu has quit [Quit: Leaving...]
tharindu has joined #ruby
earthquake has joined #ruby
wallerdev has quit [Quit: wallerdev]
vlad_starkov has joined #ruby
wallerdev has joined #ruby
vt102 has quit [Ping timeout: 248 seconds]
mmitchell has joined #ruby
VictorSK has joined #ruby
Tarential has quit [Excess Flood]
VictorSK_ has joined #ruby
Tarential has joined #ruby
valesk has quit [Remote host closed the connection]
VictorSK_ has quit [Client Quit]
jlast has quit [Ping timeout: 252 seconds]
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
dhruvasagar has quit [Quit: Lost terminal]
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dhruvasagar has joined #ruby
opt9 has quit [Ping timeout: 268 seconds]
VictorSK has quit []
Mars` has quit [Ping timeout: 268 seconds]
Spami has joined #ruby
Hanmac has joined #ruby
endash has quit [Quit: endash]
Hanmac1 has quit [Ping timeout: 248 seconds]
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
banisterfiend has quit [Quit: Computer has gone to sleep.]
huttan has quit [Ping timeout: 264 seconds]
falood has joined #ruby
wallerdev has quit [Quit: wallerdev]
dhruvasagar has quit [Ping timeout: 252 seconds]
zz_tsykoduk is now known as tsykoduk
rjhunter has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Read error: Connection reset by peer]
otherj has quit []
earthquake has quit [Quit: earthquake]
tsykoduk is now known as zz_tsykoduk
thesheff17 has quit [Ping timeout: 260 seconds]
hiyosi has quit [Quit: WeeChat 0.4.1]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
banisterfiend has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
<shevy> dumdedum
xk_id has quit [Quit:
diego has joined #ruby
diego is now known as Guest75701
Guest75701 is now known as diegoviola
<TorpedoSkyline> how do I set which window receives input when I have multiple windows when using the curses library?
dflurker has quit [Remote host closed the connection]
gverri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
macmartine has joined #ruby
Spami has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
ehaliewicz has joined #ruby
bricker`away has quit [Ping timeout: 268 seconds]
capicue has quit [Ping timeout: 265 seconds]
stkowski has quit [Quit: stkowski]
havenwood has quit [Remote host closed the connection]
voodootaco has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
jjbohn has joined #ruby
mrj_ has quit [Read error: Connection reset by peer]
crucify_me has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
jjbohn has quit [Ping timeout: 272 seconds]
ehc has quit [Quit: ehc]
jlast has joined #ruby
taternuts has quit []
tyfighter has joined #ruby
vlad_starkov has joined #ruby
earthquake has joined #ruby
funburn has quit [Quit: funburn]
jnoob22_ has joined #ruby
earthquake has quit [Remote host closed the connection]
voodootaco has joined #ruby
nitish has joined #ruby
JonahR has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
ngoldman has joined #ruby
nobitanobi has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
funburn has joined #ruby
iliketurtles has joined #ruby
crucify_me has quit [Remote host closed the connection]
Mars` has joined #ruby
mmitchell has quit [Remote host closed the connection]
lucazi has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
Mars` has quit [Ping timeout: 240 seconds]
ngoldman has quit []
lucazi has quit [Ping timeout: 252 seconds]
sailias has quit [Ping timeout: 264 seconds]
thekkid has quit [Ping timeout: 264 seconds]
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
Clooth has joined #ruby
freezey has quit [Remote host closed the connection]
towbes has joined #ruby
h0rrorvacui has quit [Quit: ZQ]
vlad_starkov has quit [Read error: Connection reset by peer]
peterdecroos has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> night
Zesty has joined #ruby
havenwood has joined #ruby
amacgregor has joined #ruby
tylersmith has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
nobitanobi has joined #ruby
aspiers has quit [Ping timeout: 268 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
iliketurtles has quit [Ping timeout: 245 seconds]
law has quit [Ping timeout: 272 seconds]
nari has quit [Ping timeout: 252 seconds]
spike|spiegel has joined #ruby
robert___ has joined #ruby
larissa has quit [Quit: Leaving]
bricker`away has joined #ruby
rezzack has quit [Ping timeout: 245 seconds]
robert_ has quit [Read error: Connection reset by peer]
capicue has joined #ruby
nari has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
huttan has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
capicue has quit [Ping timeout: 264 seconds]
peterdecroos has quit [Remote host closed the connection]
huttan has quit [Ping timeout: 264 seconds]
peterdecroos has joined #ruby
jjbohn has joined #ruby
decoponio has joined #ruby
JohnBat26 has joined #ruby
jjbohn has quit [Ping timeout: 252 seconds]
syed_ has joined #ruby
peterdecroos has quit [Ping timeout: 272 seconds]
jglauche has quit [Ping timeout: 240 seconds]
jglauche has joined #ruby
baroquebobcat has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
havenwood has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Blue_Ice has quit [Ping timeout: 260 seconds]
Blue_Ice has joined #ruby
Blue_Ice has quit [Changing host]
Blue_Ice has joined #ruby
Clooth has quit [Quit: Leaving...]
joelio has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tharindu has quit [Quit: Leaving...]
Longlius has quit [Remote host closed the connection]
germanstudent has quit [Ping timeout: 260 seconds]
law has joined #ruby
germanstudent has joined #ruby
joelio has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
tharindu has joined #ruby
h0rrorvacui has joined #ruby
iliketurtles has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
spike|spiegel has quit [Read error: Operation timed out]
jkhwan has joined #ruby
dnyy has quit []
baroquebobcat has quit [Quit: baroquebobcat]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
BizarreCake has joined #ruby
DanBoy has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has joined #ruby
nisstyre has joined #ruby
Spami has joined #ruby
coldmethod has joined #ruby
jkhwan has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
jkhwan has joined #ruby
coldmethod1 has joined #ruby
Clooth has joined #ruby
shelzmike has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
JonahR has left #ruby [#ruby]
coldmethod has quit [Ping timeout: 240 seconds]
kaldrenon has joined #ruby
Clooth has quit [Client Quit]
emocakes has joined #ruby
Lewix has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 245 seconds]
IcyDragon has quit [Quit: Space~~~]
joelroa has joined #ruby
pwh has quit []
Clooth has joined #ruby
joelroa has quit [Client Quit]
vongrippen has quit [Quit: No Ping reply in 180 seconds.]
vongrippen has joined #ruby
kaldrenon has quit [Ping timeout: 272 seconds]
thehodapp has joined #ruby
shelzmike has quit [Quit: Nettalk6 - www.ntalk.de]
<thehodapp> what ruby construct is the postfix colon? ex. validates presence: true
jarred has joined #ruby
tsykoduk is now known as zz_tsykoduk
felixjet_ has joined #ruby
zz_karupanerura is now known as karupanerura
<bnagy> probably horrible rails use of a hash
<bnagy> {thing: val} is the 1.9 hash syntax for symbol keys
karupanerura is now known as zz_karupanerura
<thehodapp> oh..so it's a deprecated alternate construct for hashes?
<bnagy> no it's current
fgo has quit [Remote host closed the connection]
<bnagy> old was {:thing => val}
<bnagy> which still works
<shevy> thehodapp look what ruby does
<thehodapp> why was it changed?
<shevy> >> { foo: 5 }
<eval-in> shevy => {:foo=>5} (https://eval.in/68788)
<shevy> thehodapp, see? internally it defaults to the old way
Jetchisel has joined #ruby
<bnagy> so they could fake keyword arguments to methods, mainly
<shevy> really?
<thehodapp> hmmm interesting.
<shevy> is it interesting :P
<shevy> I still use the old way
MattStratton has joined #ruby
lethjakm1 has joined #ruby
<jarred> I need to print a ton of code to paper, with a footer at the bottom showing file name and other metadata. What's the best tool to do that?
<gazarsgo> an ipad
<bnagy> use a printer imo
<thehodapp> well thank you, good to know.
lethjakman has quit [Ping timeout: 272 seconds]
<jarred> gee thanks guys.
Lewix has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
RichardBaker has joined #ruby
<shevy> people have the strangest questions on #ruby
<shevy> jarred I still have not got my USB printer on linux to work :(
<gazarsgo> notepad from windows 3.11 in 1996 will do the job too
<jarred> shevy: don't use linux ;)
<bnagy> yeah you could just > /dev/lp0
<jarred> bnagy: I want to print it prettily, with syntax highlighting and a footer
<bnagy> good for you!
<bnagy> everyone should have dreams
coderhs has quit [Ping timeout: 272 seconds]
jkhwan has quit [Remote host closed the connection]
<jrobeson> printing code.. what a waste of paper..
<jarred> I can make this, I just don't want to spend my weekend writing a library to print code to paper
Clooth has quit [Quit: Leaving...]
jkhwan has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
fluffheadsr has quit [Ping timeout: 264 seconds]
<jrobeson> it probably already exists somewhere
<bnagy> use an editor, dump the code to html then use a word processor
<bnagy> then hit print
<jarred> it's a lot of code
<jarred> like 10 repos with 300-3000 LOC
<bnagy> why are you telling me this?
<jarred> because you want to help :)
<bnagy> you are literally making me stupider
<bnagy> use a small font
<bnagy> print 8 up
<bnagy> I mean.. srsly ask a programming question
<lewellyn> man enscript # done.
<jarred> it would be really easy if I didn't have to make it look nice, but I do.
tharindu has quit [Quit: Leaving...]
<bnagy> html
sebastianb has quit [Ping timeout: 264 seconds]
<bnagy> they have colours in there these days
sebastianb has joined #ruby
<lewellyn> man ps2pdf # if enscript alone won't do it for you.
jkhwan has quit [Read error: No route to host]
jkhwan has joined #ruby
krz has joined #ruby
<jarred> yes — I could take each file, run it through coderay, and output an HTML version of it. Then, loop over each file and print. However, I need that footer at the bottom of each page that's printed. I guess I can also write a script to slightly modify that HTML to append a footer and make it display: fixed. Then, after the HTML/pretty variant of each file is written, I just loop over each file and print.
* lewellyn notes that he's being ignored and wanders to a channel which is more on-topic
jhn has joined #ruby
<jarred> lewellyn: I wasn't ignoring you — it's just not that simple
capicue has joined #ruby
<lewellyn> i don't see why not.
<jarred> syntax highlighting
Trynemjoel has quit [Quit: Trynemjoel]
<jarred> so now my question is
<jarred> How do I print HTML to paper in Ruby? Or using some shell script?
<bnagy> ...
<bnagy> "and then I woke up!"
<bnagy> hmm nope didn't work
<jarred> I don't mean the raw HTML, I mean HTML that a web browser renders. I guess I could maybe use poltergeist to do this
sebastianb has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
<jarred> the ghetto way is to print a ton of screenshots using poltergeist
<bnagy> I am speechless now
<bnagy> "I don't mean the raw HTML, I mean HTML that a web browser renders"
capicue has quit [Ping timeout: 241 seconds]
sebastianb has joined #ruby
<bnagy> look I know it's mean of us to be so dismissive
<jrobeson> screenshots are way too expensive to print..
<bnagy> but srsly.. you're asking dumb questions in the wrong place
<jrobeson> i'm dismissive because i think it's ridiculous to put code on paper
<lewellyn> since this has been brought up before, i'll point to it. https://www.ruby-forum.com/topic/1205209
jkhwan has quit [Remote host closed the connection]
<jrobeson> code changes too often.. so it's just a huge waste
nitish has quit [Quit: Bye Bye...]
<lewellyn> note that enscript is the first method given. so i'm unclear why it won't suffice here.
jkhwan has joined #ruby
<jrobeson> technical books are obsolete right when printed.. code is obsolete sooner
vlad_starkov has joined #ruby
<jrobeson> whoever is making you do that.. i feel bad for them
duggiefresh has joined #ruby
jjbohn has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
<jarred> enscript works!
<jarred> thanks lewellyn
jjbohn has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
Zesty has quit [Quit: Leaving...]
jkhwan has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
jkhwan has joined #ruby
Monie has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
tyfighter has quit [Quit: tyfighter]
gianlucadv has joined #ruby
Monie has quit [Client Quit]
vlad_sta_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
trey has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
osvico has quit []
trey has quit [Client Quit]
Astralum has joined #ruby
jlast has joined #ruby
bricker`LA has joined #ruby
Lewix has quit [Remote host closed the connection]
trey has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
havenwood has quit [Remote host closed the connection]
macmartine has quit [Remote host closed the connection]
iliketurtles has joined #ruby
havenwood has joined #ruby
tharindu has joined #ruby
tharindu has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
tharindu has joined #ruby
nouitfvf has joined #ruby
vlad_starkov has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
platypine has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
emocakes has quit [Quit: Leaving...]
Tuxist has joined #ruby
havenwood has joined #ruby
Olipro has joined #ruby
Niamkik has quit [Quit: Disconnecting from stoned server.]
Niamkik has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
zigomir has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
Paradox has quit [Ping timeout: 240 seconds]
Paradox has joined #ruby
justsee has quit [Ping timeout: 253 seconds]
emocakes has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
jhn has quit [Ping timeout: 264 seconds]
krz has quit [Read error: Connection reset by peer]
kobain has quit []
teteak has quit [Remote host closed the connection]
huttan has joined #ruby
justsee has joined #ruby
borozny has joined #ruby
d45h has joined #ruby
trey has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
ayaz has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
huttan has quit [Ping timeout: 245 seconds]
FortuneYe has quit [Ping timeout: 272 seconds]
Astralum has quit [Read error: Connection reset by peer]
capicue has joined #ruby
duggiefresh has quit [Ping timeout: 260 seconds]
emocakes has quit [Quit: Leaving...]
Vigrant_ has joined #ruby
<Vigrant_> Hey, any thing like benchmark but for storage used?
advorak has joined #ruby
bluOxigen has joined #ruby
krz has joined #ruby
<Zeeo> I need to define a method for strings, like class String;def my_method; given_string ;end;end but I can't remember how to "call" the given string inside the method
capicue has quit [Ping timeout: 272 seconds]
emocakes has joined #ruby
<Zeeo> I did it once but I can't remember
emocakes has quit [Client Quit]
tonni has quit [Remote host closed the connection]
<advorak> x = "*** TEST" ; /#{x}/ ---- how do I get ruby to treat the x variable in that regex literally, rather than as a bunch of "repeat character" commands?
<advorak> I want it to read it as /\*\*\* TEST/
tonni has joined #ruby
<advorak> oh! Regexp.escape(x) :-)
<advorak> yay!
jjbohn has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
FortuneDays has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<Zeeo> self
syed_ has quit [Quit: Lost terminal]
<Vigrant_> Zeeo yep
<Zeeo> Vigrant_: I was confused, I somehow believed that self = self.class
tonni has quit [Ping timeout: 252 seconds]
jjbohn has quit [Ping timeout: 245 seconds]
gazarsgo has quit [Quit: gazarsgo]
Vigrant_ has quit [Quit: Page closed]
goganchic has joined #ruby
goganchic has quit [Client Quit]
nisstyre has quit [Quit: Leaving]
shadoi has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
blueOxigen has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Ping timeout: 268 seconds]
Bry8Star{T2 has joined #ruby
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Astralum has joined #ruby
jlast has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
Thanatermesis has quit [Ping timeout: 256 seconds]
cibs has quit [Ping timeout: 256 seconds]
zz_karupanerura has quit [Ping timeout: 256 seconds]
eshy has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
eshy has joined #ruby
zz_karupanerura has joined #ruby
funburn has quit [Quit: funburn]
gstamp has joined #ruby
zz_karupanerura is now known as karupanerura
Thanatermesis has joined #ruby
Hanmac1 has joined #ruby
jarred has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 240 seconds]
Hanmac1 is now known as Hanmac
LexicalScope has joined #ruby
wildroman has quit [Remote host closed the connection]
araujo has joined #ruby
zz_tsykoduk is now known as tsykoduk
jlast has quit [Ping timeout: 248 seconds]
borozny has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Hanmac1 has joined #ruby
heye has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
amritanshu_RnD has joined #ruby
emocakes has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
claymore has joined #ruby
Jul- has joined #ruby
emocakes has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
havenwood has joined #ruby
yfeldblum has quit [Remote host closed the connection]
phansch has joined #ruby
heye has quit [Remote host closed the connection]
InFlames has joined #ruby
yacks has joined #ruby
gasbakid has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
becerra has joined #ruby
linduxed has quit [Ping timeout: 260 seconds]
krz has quit [Read error: Connection reset by peer]
iliketurtles has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
hamakn has joined #ruby
Boohbah has left #ruby [#ruby]
Hanmac has joined #ruby
capicue has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
rellin has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Jul- has left #ruby [#ruby]
capicue has quit [Ping timeout: 272 seconds]
jjbohn has joined #ruby
sr78ger has joined #ruby
Clooth has joined #ruby
fluffheadsr has joined #ruby
fluffheadsr is now known as Guest95221
ananthakumaran has quit [Quit: Leaving.]
jjbohn has quit [Ping timeout: 265 seconds]
sr78ger has quit [Client Quit]
krz has joined #ruby
threesome has joined #ruby
drumusician has joined #ruby
tvw has joined #ruby
ehaliewicz has quit [Ping timeout: 268 seconds]
Clooth has quit [Quit: Leaving...]
DanKnox_away is now known as DanKnox
FortuneDays has quit [Killed (leguin.freenode.net (Nickname regained by services))]
rjhunter has joined #ruby
LexicalScope has quit [Ping timeout: 264 seconds]
tharindu has quit [Ping timeout: 245 seconds]
ehaliewicz has joined #ruby
jbpros has joined #ruby
gasbakid_ has joined #ruby
iliketurtles has joined #ruby
daxroc has joined #ruby
gasbakid has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Ping timeout: 240 seconds]
Thanatermesis has quit [Ping timeout: 252 seconds]
peterdecroos has joined #ruby
carraroj has joined #ruby
Xeago has joined #ruby
rjhunter has quit [Remote host closed the connection]
tonni has joined #ruby
Clooth has joined #ruby
relix has joined #ruby
tobyink has joined #ruby
zz_tsykoduk is now known as tsykoduk
nobitanobi has quit [Remote host closed the connection]
zoee has joined #ruby
huttan has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
Cheos has joined #ruby
Thanatermesis has joined #ruby
Vivekananda has joined #ruby
funburn has joined #ruby
<jimmy_birer> kek
huttan has quit [Ping timeout: 245 seconds]
jimmy_birer has left #ruby [#ruby]
jrhe has joined #ruby
Clooth has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
drumusician has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
carraroj has quit [Ping timeout: 245 seconds]
aa47f8 has joined #ruby
go|dfish has quit [Ping timeout: 264 seconds]
go|dfish has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 268 seconds]
jbpros has quit [Quit: jbpros]
emocakes has joined #ruby
rellin has joined #ruby
emocakes has quit [Client Quit]
iliketurtles has quit [Ping timeout: 265 seconds]
jrhe has quit [Ping timeout: 265 seconds]
hiall has joined #ruby
coldmethod1 is now known as coldmethod
tobyink has quit [Ping timeout: 245 seconds]
capicue has joined #ruby
relix has quit [Read error: Connection reset by peer]
Astralum has quit [Read error: Connection timed out]
relix has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
Vivekananda has quit [Quit: Ex-Chat]
ewnd9 has quit [Ping timeout: 260 seconds]
jjbohn has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
jjbohn has quit [Ping timeout: 245 seconds]
h0rrorvacui has quit [Ping timeout: 245 seconds]
aa47f8 has quit [Quit: aa47f8]
drumusician has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
gasbakid_ has quit [Quit: Quitte]
gasbakid has joined #ruby
aa47f8 has joined #ruby
nari has quit [Ping timeout: 251 seconds]
iliketurtles has joined #ruby
carraroj has joined #ruby
skaflem has joined #ruby
io_syl has quit []
Zeeo has quit [Quit: -]
lkba has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
Astralum has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
zoee has joined #ruby
jbw has quit [Ping timeout: 252 seconds]
jrhe has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
daxroc has quit [Quit: Leaving.]
JohnBat26 has quit [Ping timeout: 268 seconds]
jbw has joined #ruby
DanKnox is now known as DanKnox_away
emocakes has joined #ruby
shevy has joined #ruby
carraroj has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Ping timeout: 252 seconds]
coderhs has quit [Read error: Operation timed out]
banisterfiend has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
cricri has joined #ruby
Lewix has quit [Remote host closed the connection]
jrhe has left #ruby [#ruby]
cricri_ has quit [Ping timeout: 268 seconds]
Xeago has quit [Remote host closed the connection]
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
capicue has joined #ruby
peterdecroos has quit [Ping timeout: 245 seconds]
akonny has joined #ruby
capicue has quit [Ping timeout: 260 seconds]
falood has quit [Remote host closed the connection]
cricri_ has joined #ruby
jjbohn has joined #ruby
cricri has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
freezey has joined #ruby
ocx has quit [Ping timeout: 250 seconds]
obs has joined #ruby
jjbohn has quit [Ping timeout: 268 seconds]
krz has quit [Ping timeout: 272 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
emocakes has quit [Quit: Leaving...]
bubu\a has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
Speed has joined #ruby
cek has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
iliketurtles has joined #ruby
jb41 has joined #ruby
huttan has joined #ruby
eyckelbo1m is now known as eyckelboom
freezey has quit [Remote host closed the connection]
krz has joined #ruby
ewnd9 has joined #ruby
m8 has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Davey has joined #ruby
huttan has quit [Ping timeout: 268 seconds]
Mars` has joined #ruby
phus1on has joined #ruby
pen has joined #ruby
hamakn has joined #ruby
Deele has joined #ruby
lkba has joined #ruby
marr has joined #ruby
zz_tsykoduk is now known as tsykoduk
sergicles has quit [Ping timeout: 268 seconds]
Deele has quit [Client Quit]
Happ288 has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
MrZYX|off is now known as MrZYX
bruno- has quit [Ping timeout: 272 seconds]
phus1on has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has quit []
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
tsykoduk is now known as zz_tsykoduk
funburn has quit [Quit: funburn]
Mars` has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
sergicles has joined #ruby
funburn has joined #ruby
hamakn has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Read error: No route to host]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
hamakn has quit [Remote host closed the connection]
tskogberg has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
emocakes has joined #ruby
tskogberg has joined #ruby
gr33n7007h has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
capicue has joined #ruby
<lupine> Happ288, no PMs, please
<Happ288> ok sorry
<Happ288> it's for u only
<lupine> public or nothing, thanks
<Happ288> it's means i should leave this channel?
capicue has quit [Ping timeout: 260 seconds]
carraroj has quit [Ping timeout: 248 seconds]
carraroj has joined #ruby
znode has joined #ruby
<RubyPanther> Happ288: they mean it about no PMs, they didn't mean "PM somebody else." It is a general rule
<Happ288> hmm
shawnjgoff has joined #ruby
<Happ288> it's ok
<Happ288> bye
Lewix has joined #ruby
<deepy> bullshit, you sent me a PM too, it's not only lupine
<Happ288> i m leaving ths
<deepy> just ask in the channel instead
<Happ288> ok
<Happ288> sorry all
jjbohn has joined #ruby
newbiehacker has joined #ruby
<Happ288> if all don't wish
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
<bnagy> what was the question?
<bnagy> (for lols)
Lewix has quit [Remote host closed the connection]
<Happ288> nothing
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
camilasan has joined #ruby
<Happ288> all just wish me to leave this channel
<apeiros> Happ288: no, they wish you to NOT write them private messages.
<bnagy> Happ288: wasn't asking you, sorry
<lupine> no question, just "hi"
<lupine> Happ288, bye then
<Happ288> hmm
<apeiros> nobody asked you (yet) to leave the channel.
<Happ288> hmm
Lewix has quit [Remote host closed the connection]
<Happ288> but most of them using abusive laguage
<apeiros> I've not seen anybody using abusive language.
<bnagy> 19:30 < lupine> Happ288, no PMs, please
<Happ288> one said
jibi has joined #ruby
<bnagy> WHOA hardcore abuse
<Happ288> bulshit
<apeiros> Happ288: do you have a ruby related problem or question?
<Happ288> u know about bulshit
jjbohn has quit [Ping timeout: 272 seconds]
<Happ288> yup
<Happ288> she should say that
coldmethod has quit [Remote host closed the connection]
<apeiros> then I suggest you quit your whining, accept that people generally don't like to be asked in private and ask your question here.
<Happ288> she was only to ask not to send PMs
<Happ288> yup i know
<apeiros> Happ288: what people do in their private messaging is NONE of the channels concern. you can quit whining about it.
emocakes has quit [Ping timeout: 272 seconds]
popl has quit [Ping timeout: 252 seconds]
<Happ288> hmm
<Happ288> it's ok
<waxjar> ask people if you can PM them in the channel before you PM them :) (after talking with them in the channel, of course)
<Happ288> it's ok friend
<Happ288> it's the way to talk
<Happ288> i like
robbyoconnor has joined #ruby
<Happ288> i will care next time
emocakes has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 246 seconds]
<Happ288> anyone wana chat me now?
<apeiros> Happ288: just ask your question here.
obs has quit [Ping timeout: 252 seconds]
gr33n7007h has quit [Ping timeout: 245 seconds]
<Happ288> ok
<Happ288> i m leaving now
jhaals has joined #ruby
<apeiros> ok
<Happ288> i don't have any questions
<Happ288> i just looking for some good friends
<bnagy> XD
<apeiros> yes, no, this isn't chatroulette. this is a place to come if you have a ruby related problem. good bye now.
<Happ288> ok
<Happ288> bye
Happ288 has left #ruby [#ruby]
iliketurtles has joined #ruby
jhaals has quit [Client Quit]
<apeiros> what an odd fellow
sergicles has quit [Quit: sergicles]
jhaals has joined #ruby
<apeiros> woah, it's saturday and I'm not in the office! hurray! today must be a great day :D
timonv has joined #ruby
Nahra has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
phus1on has joined #ruby
havenwood has joined #ruby
marr has quit [Ping timeout: 272 seconds]
zeeraw has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
zeeraw has quit [Client Quit]
Astral_ has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
zeeraw has joined #ruby
funburn has quit [Quit: funburn]
coder_neo has joined #ruby
vlad_sta_ has joined #ruby
hogeo has joined #ruby
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<lupine> \o/ :)
<lupine> (sorry for making a fuss, I'm in paranoid mode at the moment)
<apeiros> perfectly fine behavior on your part lupine
SHyx0rmZ has joined #ruby
jbpros has joined #ruby
sayan has joined #ruby
atmosx has joined #ruby
<atmosx> hello
havenwood has quit [Ping timeout: 264 seconds]
RaDIrkA has joined #ruby
banisterfiend has joined #ruby
endash has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
<withnale> Is there a list of standard mixins that come with 1.9.3?
<atmosx> I have a module that has a method which creates 3 lists. These lists are retrieved by iterating through a sqlite3 database once. I'd like to create 3 methods to access them on one hand but I wouldn't want to iterate through them. Also the name of the database might vary, it's not always the same... What's the best practice to do this? Creating a class inside my module I guess, initializing the db connection making an instance var with the data and write my
<atmosx> methods which retrieve my data? I want to avoid multiple iterations.
dubsteph has joined #ruby
drumusician has quit [Ping timeout: 265 seconds]
icecandy has joined #ruby
<apeiros> withnale: by "mixins" you mean modules?
Mars` has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
Nahra has quit [Remote host closed the connection]
<withnale> modules that can be included in your classes to add additional functions like enumerable
<apeiros> check e.g. ruby-doc.org or rdoc.info
iliketurtles has quit [Ping timeout: 248 seconds]
Nahra has joined #ruby
<withnale> how would I search for them? I've tried googling for standard mixins
phus1on has quit [Quit: .]
timonv has joined #ruby
vereteran has quit [Quit: ZNC - http://znc.in]
gasbakid_ has joined #ruby
<Hanmac> withnale: http://www.ruby-doc.org/core/ the ones left with a M are modules
dubsteph has quit [Read error: Connection reset by peer]
naquad has joined #ruby
<atmosx> oh
<atmosx> ..
bruno- has joined #ruby
zarubin has joined #ruby
<Hanmac> the most important for them are Enumerable for Lists, and Comparable for sortable object
bruno- is now known as Guest61636
Mars` has quit [Ping timeout: 240 seconds]
dubsteph has joined #ruby
<withnale> Yes, I've got Enumerable. I thought there were more tho. nvm
<withnale> thanks
gasbakid has quit [Ping timeout: 272 seconds]
Nahra has quit [Ping timeout: 252 seconds]
falood has joined #ruby
olivier_bK has joined #ruby
Tuxist has quit [Remote host closed the connection]
capicue has joined #ruby
brtdv has joined #ruby
Soda has quit [Read error: Connection reset by peer]
<withnale> Ok. with a little reading the problem I'm trying to solve is more involved than I thought.
<apeiros> ruby -e 'puts ObjectSpace.each_object(Module).reject { |c| c.is_a?(Class) }.map(&:to_s).sort' <-- emits all modules loaded with ruby (that's only core, though, not stdlib)
gasbakid__ has joined #ruby
<withnale> I want to create a class that is adding more functions on top of what is basically a hash. I thought there might be a mixin I could use to get all the nice functions that hash has, but that doesn't seem to be the case....
<withnale> I thought about subclassing Hash but that seems to be frowned upon.
<withnale> How should I approach it?
withnale is now known as withnale_
gasbakid_ has quit [Ping timeout: 264 seconds]
<apeiros> I think there are gems out there to help with that. I think one's called Hashie or somesuch
<apeiros> hm, too bad havenwood has gone, iirc he was the author of one such lib
capicue has quit [Ping timeout: 264 seconds]
jbpros has quit [Quit: jbpros]
<withnale_> ok. I'll have a look. thx
Nahra has joined #ruby
linduxed_ has joined #ruby
camilasan has quit [Remote host closed the connection]
jjbohn has joined #ruby
camilasan has joined #ruby
mengu has joined #ruby
<withnale_> Ah. Eloquent Ruby has a chapter on delegation. I can use MethodMissing.
olivier_bK has quit [Ping timeout: 252 seconds]
Guest95221 has quit [Ping timeout: 240 seconds]
<apeiros> I wouldn't
<withnale_> Why's that?
withnale_ is now known as withnale
danshultz has joined #ruby
withnale is now known as withnale_
<apeiros> either you know which methods you want to delegate, and then you can use metaprogramming or Forwardable to delegate those
<apeiros> or you don't know what you want to delegate, but then you have different issues IMO :)
withnale_ is now known as withnale
<apeiros> i.e., do you really want to delegate methods you don't know?
huttan has joined #ruby
Nahra has quit [Ping timeout: 268 seconds]
<withnale> I'm just forwarding them to a hash object...
jjbohn_ has joined #ruby
camilasan has quit [Ping timeout: 248 seconds]
<withnale> I could sanity check the name
sergicles has joined #ruby
jjbohn has quit [Ping timeout: 272 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
linduxed_ is now known as linduxed
linduxed has quit [Quit: WeeChat 0.4.2]
plotter has quit [Ping timeout: 245 seconds]
emocakes has quit [Quit: Leaving...]
<apeiros> with method missing you'd do that at runtime, on every method call
olivier_bK has joined #ruby
linduxed has joined #ruby
camilasan has joined #ruby
funburn has joined #ruby
huttan has quit [Ping timeout: 252 seconds]
mengu has quit [Ping timeout: 245 seconds]
<withnale> is SimpleDelgator any different?
Nahra has joined #ruby
iliketurtles has joined #ruby
funburn has quit [Client Quit]
sepp2k has joined #ruby
<apeiros> not really. it uses Delegator, which uses method_missing.
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ox6abe has joined #ruby
Nahra has quit [Ping timeout: 272 seconds]
<apeiros> delegations like Delegator or your own "method missing catch-all" only make sense if your object is supposed to be transparent. I'd assume yours isn't supposed to be, though.
<apeiros> what do you expect YourHash#select to return? Hash or YourHash?
Hoozt has joined #ruby
sayan has quit [Remote host closed the connection]
<Hoozt> Hi people
<apeiros> and what do you expect YourHash#select! to return? self or the internal hash?
opt9 has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
sepp2k1 has joined #ruby
hogeo has quit [Remote host closed the connection]
wallerdev has joined #ruby
sepp2k has quit [Read error: Operation timed out]
keen__ has joined #ruby
coder_neo has quit [Ping timeout: 248 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
ExCa|iBuR has joined #ruby
platypine has joined #ruby
shawnjgoff has quit [Read error: No route to host]
<Hoozt> I have a little noobish deployment problem. Is anyone familiar with passenger? :/
<withnale> Hmm. Ok. I'll do a bit more thinking.
<Hoozt> Deploying on a debian.
keen_ has quit [Ping timeout: 264 seconds]
<Hoozt> My guess is that it's using the wrong ruby version, but that's my guess after trying to read the backtrace.
<Hoozt> Here's what it looks like
<Hoozt> I get "no such file to load -- bundler/setup"
phus1on has joined #ruby
<Hoozt> and in the backtrace it lists a bunch of custom_require.rb files from the urby 1.8 path
zz_tsykoduk is now known as tsykoduk
platypine has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
<Hoozt> in my apache2 config i have set it use a specific ruby (i think?) with the line: PassengerRuby /usr/local/rvm/wrappers/ruby-2.0/ruby
andikr has quit [Remote host closed the connection]
SHyx0rmZ has quit [Ping timeout: 245 seconds]
mixel has joined #ruby
rellin has quit [Read error: Connection reset by peer]
rellin has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
<atmosx> Hoozt: you are using debian's default ruby installation?
<Hoozt> atnosx: Nope, 2.0 with rbenv
<Hoozt> 2.0.0p247
mercwithamouth has quit [Read error: Connection reset by peer]
cek has quit [Ping timeout: 252 seconds]
thyagobr has joined #ruby
zarubin has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
Ox6abe has quit [Remote host closed the connection]
<atmosx> you sure passenger uses the right installation?
<Hoozt> How do you mean?
pen has quit []
<atmosx> you have any other ruby installaed on the system?
<atmosx> other ruby version, default should be 1.9.x iirc
<atmosx> on debian
Olipro has quit [Ping timeout: 246 seconds]
<Hoozt> hmmm
<Hoozt> No I don't think so
<atmosx> can show me your config/logs actually
<atmosx> otherwise it's a wild guess
<atmosx> and full error when you launch the server
osvico has joined #ruby
Czupa has joined #ruby
<Hoozt> when I do rbenv versions it only shows 2.0
dubsteph has quit [Read error: Connection reset by peer]
<atmosx> is rbenv system-wide?
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
PragCypher has quit [Quit: Leaving]
camilasan has quit []
dubsteph has joined #ruby
Olipro has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has quit [Ping timeout: 246 seconds]
dubsteph_ has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
thesheff17 has joined #ruby
jbpros has joined #ruby
newbiehacker has quit [Ping timeout: 245 seconds]
dubsteph has quit [Ping timeout: 272 seconds]
drumusician has joined #ruby
dayepa has joined #ruby
Guest61636 has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
relix has joined #ruby
relix has quit [Client Quit]
hogeo has joined #ruby
cek has joined #ruby
ExCa|iBuR has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
koupe_2 has joined #ruby
capicue has joined #ruby
tobyink has joined #ruby
jjbohn_ has quit [Quit: Leaving...]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
capicue has quit [Ping timeout: 252 seconds]
SteveBenner9 has quit [Ping timeout: 265 seconds]
jbw has quit [Ping timeout: 248 seconds]
danshultz has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
huttan has joined #ruby
nonamehero has joined #ruby
mjs2600 has joined #ruby
BizarreCake has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
carraroj has quit [Quit: Konversation terminated!]
lmickh has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
carraroj has quit [Remote host closed the connection]
jbw has joined #ruby
predator117 has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
poikon has joined #ruby
zoee has joined #ruby
nateberkopec has joined #ruby
thyagobr has quit [Ping timeout: 252 seconds]
alyx_ has joined #ruby
carraroj has joined #ruby
Xeago has joined #ruby
bruno- has joined #ruby
iliketurtles has quit [Ping timeout: 248 seconds]
Cheos has quit [Read error: Connection reset by peer]
<alyx_> "irb(main):001:0> 5[0]" gives "=> 1", and "5[1]" gives "=> 0"
<alyx_> just started learning ruby... wtf!?
<alyx_> how is it letting me get an index of an integer, and why does it return those values?
zoee has quit [Quit: This computer has gone to sleep]
zoee has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
banisterfiend has joined #ruby
<alyx_> huh...
p8952 has joined #ruby
<canton7> it's a shortcut to grabbing bits from the binary representation of the number
<canton7> 5 is 101. bit 0: 1. bit 1: 0. bit 2: 1
<alyx_> oh, no, I understand, just wasn't expecting that
<apeiros> alyx_: standard procedure when you have "what the fuck did that method just do" -> read the docs ;-)
Czupa has quit [Quit: Wychodzi]
Czupa has joined #ruby
<canton7> yeah, it's slightly surprising, but imo it's a reasonable use of the #[] method
<apeiros> same for "why didn't it do what I wanted it to?"
<apeiros> canton7: I just wish it'd be like Array#[] and accept ranges and from,length
<Morrolan> And then what, return the bits as a string? As a base-10 integer?
<apeiros> Morrolan: how about returning an integer?
<Morrolan> The later, then. :)
<apeiros> no
DonRichie has joined #ruby
<apeiros> an integer does not have a base.
<apeiros> a string representing an integer does.
<Morrolan> Eh, yea, you're right.
fluffheadsr has joined #ruby
<alyx_> yeah, I looked at the docs, and my google search took me to this page http://www.ruby-doc.org/core-2.0.0/Integer.html
angusiguess has joined #ruby
<apeiros> Morrolan: array of 0/1 bits would be ok too IMO
fluffheadsr is now known as Guest42514
<canton7> alyx_, it helps to find out the class first. '5.class' will help. There's also the opening statement on the page you linked to
<apeiros> though it'd probably beat the purpose of some applications of bit-operations (being low on memory and high on performance)
<apeiros> alyx_: also some methods are inherited, so you have to go through the inheritance chain
<apeiros> alyx_: alternativey install pry and pry-doc
<apeiros> then just do `? 5[]`
<alyx_> okay, thanks all
<apeiros> oh, seems it wants the dot: `? 5.[]`
zz_tsykoduk is now known as tsykoduk
<atmosx> To sort an array of 11 hashes I do something like: sorted = array.sort_by {| el1, el2 ... el11| ell11} right? hm DOesn't seem to work.
<apeiros> atmosx: um, sort_by gets each *individual* item of your array
<apeiros> you then return something from the block, by which that element is sorted
becerra has quit [Remote host closed the connection]
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<apeiros> (hence the name…)
kirun has joined #ruby
gasbakid__ has quit [Quit: Quitte]
gasbakid has joined #ruby
<atmosx> I see
Hoozt has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
mazyck has joined #ruby
ua has quit [Quit: Leaving]
timonv has joined #ruby
hogeo has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
hogeo has quit [Client Quit]
hashpuppy has joined #ruby
ua has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
TDJACR has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
TDJACR has joined #ruby
atmosx has quit [Quit: Lost in trance]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<tobyink> Does anyone here have any experience using the 'traitor' gem? It's giving me strange errors I don't understand.
satman has quit [Ping timeout: 245 seconds]
RichardBaker has quit [Quit: RichardBaker]
Clooth has joined #ruby
rickruby has quit [Remote host closed the connection]
satman has joined #ruby
jjbohn has joined #ruby
moeSeth has joined #ruby
karupanerura is now known as zz_karupanerura
jdguzman has quit [Ping timeout: 264 seconds]
jhaals has joined #ruby
kaspergrubbe has joined #ruby
mjs2600 has quit [Remote host closed the connection]
sepp2k has joined #ruby
wallerdev has quit [Quit: wallerdev]
arcke has joined #ruby
Xeago has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
jbw has quit [Ping timeout: 272 seconds]
capicue has joined #ruby
zoee has joined #ruby
TDJACR has quit [Remote host closed the connection]
Astral__ has joined #ruby
satman has quit [Ping timeout: 252 seconds]
jbw has joined #ruby
Astral_ has quit [Ping timeout: 245 seconds]
satman has joined #ruby
capicue has quit [Ping timeout: 272 seconds]
SeySayux has quit [Ping timeout: 246 seconds]
SeySayux has joined #ruby
sevenseacat has quit [Quit: Leaving.]
coderhs has quit [Ping timeout: 245 seconds]
TDJACR has joined #ruby
raphaelivan has joined #ruby
benzrf has joined #ruby
_bart has joined #ruby
danshultz has joined #ruby
platzhirsch has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
iliketurtles has joined #ruby
Astral__ has quit [Read error: Connection timed out]
ElectronFunBaby has joined #ruby
tonni has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pskosinski has joined #ruby
jonathanwallace has joined #ruby
<benzrf> shevy: TIME FOR YOUR HASKELL BRAINWASHING
<apeiros> I thought washing was supposed to leave the subject cleaner after the proceedings than before?
<benzrf> apeiros: hue
cek has quit [Quit: жопа диридай диридиридай]
<benzrf> apeiros: ill have you know that haskells type system is amazingly aweome
<benzrf> *awesome
adambeynon has joined #ruby
Astralum has joined #ruby
thelorax123 has quit [Remote host closed the connection]
jhaals has joined #ruby
poikon has quit [Remote host closed the connection]
thelorax123 has joined #ruby
jjbohn has quit [Quit: Leaving...]
poikon has joined #ruby
s_kilk has joined #ruby
wallerdev has joined #ruby
Czupa has quit [Remote host closed the connection]
jhaals has quit [Client Quit]
Rickmasta has quit [Quit: Leaving]
s_kilk has quit [Client Quit]
linduxed has quit [Ping timeout: 245 seconds]
s_kilk has joined #ruby
jjbohn has joined #ruby
lukec has joined #ruby
carlyle has joined #ruby
jrhe has joined #ruby
gasbakid_ has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
phus1on has quit [Quit: .]
gasbakid has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
<platzhirsch> λx.x
platzhirsch has left #ruby [#ruby]
IceDragon has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
gasbakid_ has quit [Ping timeout: 252 seconds]
jonathanwallace has joined #ruby
gasbakid__ has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
<benzrf> more like \x -> x
LarsSmit has joined #ruby
<benzrf> :: a -> a
spike|spiegel has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
allaire has joined #ruby
vlad_starkov has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.4.2]
jrhe has quit [Read error: Connection reset by peer]
jrhe_ has joined #ruby
MattStratton has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
coder_neo has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
spike|spiegel has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
yacks has quit [Ping timeout: 268 seconds]
myappleguy has joined #ruby
gazarsgo has joined #ruby
Hanmac has quit [Remote host closed the connection]
tobyink has quit [Ping timeout: 260 seconds]
dr_bob has joined #ruby
Hanmac has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
ElectronFunBaby has quit [Quit: Leaving...]
nikkita has joined #ruby
<nikkita> hi
capicue has joined #ruby
<nikkita> i cloned a github project of a friend of mine, but i dont know how to start it. she cant help me, because she got her ruby environment pre installed. i installed http://railsinstaller.org/en
<nikkita> whats next?
tobyink has joined #ruby
akonny has quit [Quit: akonny]
fgo has joined #ruby
jonathanwallace1 has joined #ruby
FOSScookie has joined #ruby
<_bart> nikkita, go with a terminal to the project folder and run "rails s"
angusiguess has joined #ruby
jonathanwallace has quit [Ping timeout: 268 seconds]
bruno- has quit [Quit: leaving]
<_bart> And while you're at it, maybe check out http://guides.rubyonrails.org/getting_started.html it's really helpful.
yacks has joined #ruby
<nikkita> Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path...
<nikkita> is whatt it prints
bruno- has joined #ruby
capicue has quit [Ping timeout: 272 seconds]
FOSScookie has left #ruby [#ruby]
maycon__ has quit [Remote host closed the connection]
akonny has joined #ruby
Spami has joined #ruby
<nikkita> under C:\Sites\todo is a sample app that comes with railsinstaller.org/en
<nikkita> when i try it there, it starts a server, but on localhost:3000 it tells me ActiveRecord::ConnectionNotEstablished
<Morrolan> The application's trying to connect to a database. You don't have a database set up yet.
likemike has joined #ruby
<nikkita> i thouht it comes with rubyinstaller
<Morrolan> Somewhere, in one of the configuration files, you'll have to tell it what database to use. (And how to connect)
mmitchell has joined #ruby
<nikkita> hm, oh :/
randomnick_ has joined #ruby
zeeraw has joined #ruby
zipper has joined #ruby
zeeraw has quit [Client Quit]
<nikkita> railsinstaller.org/en tells me about : Ruby 1.9.3 Rails 3.2 Bundler Git Sqlite TinyTDS SQL Server Support DevKit
<nikkita> these packages come with it
<nikkita> to me that sounds as if sqlite and sql server support might be what i need
<nikkita> do i have to install something else?
<nikkita> and where do i find the config file i have to edit?
zeeraw has joined #ruby
<nikkita> and how do i find out what to put in there?
havenwood has joined #ruby
<Morrolan> I'm sure railsinstaller.org has tutorials.
virtualize has quit []
koupe_2 has quit []
colonolGron has joined #ruby
<likemike> any idea what to code ? :D
<Morrolan> Though, IIRC, when you create a rails application (via rails new foo_bar) the default database config file should be set up to use an SQLite database.
<Morrolan> So it *should* work out of the box.
iliketurtles has joined #ruby
mojjojo has joined #ruby
bruno- has quit [Quit: leaving]
EvanR_ has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
gverri_ has joined #ruby
Notte has joined #ruby
gverri_ has quit [Max SendQ exceeded]
Notte has quit [Client Quit]
sailias has quit [Ping timeout: 248 seconds]
hside has joined #ruby
jjbohn has quit [Quit: Leaving...]
justsee has joined #ruby
IcyDragon has joined #ruby
gasbakid__ has quit [Quit: Quitte]
gasbakid has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
IcyDragon is now known as IceDragon
zoee has quit [Quit: This computer has gone to sleep]
jjbohn has joined #ruby
mixel has quit [Quit: mixel]
capicue has joined #ruby
scarolan has joined #ruby
zz_tsykoduk is now known as tsykoduk
mojjojo has quit [Quit: mojjojo]
fgo has quit [Read error: No route to host]
icecandy has joined #ruby
fgo has joined #ruby
zipper has quit [Ping timeout: 264 seconds]
brtdv has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
zipper has joined #ruby
fgo has quit [Read error: No route to host]
capicue has quit [Ping timeout: 245 seconds]
osvico has quit [Ping timeout: 245 seconds]
poikon has quit [Remote host closed the connection]
ExCa|iBuR has joined #ruby
poikon has joined #ruby
kaldrenon has joined #ruby
aryaching has joined #ruby
LarsSmit has quit [Quit: Leaving.]
falood has quit [Remote host closed the connection]
falood has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
teoric has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
brtdv has joined #ruby
zoee has joined #ruby
pagios has joined #ruby
<pagios> hi all how can i share variables between main program and thread?
<gazarsgo> how can i tell what git sha my gem is at ?
mojjojo has joined #ruby
predator117 has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
tsykoduk is now known as zz_tsykoduk
<benzrf> gazarsgo: can you explain a little better?
jjbohn has quit [Quit: Leaving...]
osvico has joined #ruby
<apeiros> pagios: there's no "barrier" between threads
zipper has quit [Ping timeout: 252 seconds]
<gazarsgo> i have a gemfile which includes a gem from rubygems and i want to clone the source repo at the same sha my lock file is at
falood has quit [Ping timeout: 240 seconds]
zipper has joined #ruby
<apeiros> pagios: in the opposite - you should take care that threads don't accidentally race each others in the access of variables (google "race conditions")
<pagios> apeiros: i am having some bogus output with this: http://codepad.org/nYB5ARpH
<pagios> i am trying to make a while loop when start is received and stop the while loop when a stop is received on serial
tonni has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 268 seconds]
camilasan has joined #ruby
poikon has quit [Remote host closed the connection]
tonni has joined #ruby
<gazarsgo> benzrf: i mean, i think i found it manually, but i was hoping there was a definitive way to do it than looking through commit history / rubygems publish dates
<pagios> apeiros: anything bad seen?
Solnse has joined #ruby
<pagios> at some ppoint i get sh: 1: cannot create /var/www/fifo: Interrupted system call
relix has joined #ruby
zipper has quit [Ping timeout: 248 seconds]
zipper has joined #ruby
znode has quit [Quit: Lingo - http://www.lingoirc.com]
digifiv5e has joined #ruby
camilasan has quit [Client Quit]
shaileshg__ has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Ping timeout: 260 seconds]
<pagios> can i write from different threads on the same serial console?
<shaileshg__> Hi, I am trying to use ISO8583 library of ruby.. but require 'iso8583' fails saying `require': cannot load such file (LoadError)
tobyink has left #ruby [#ruby]
<shaileshg__> I believe http://www.ruby-doc.org/gems/docs/i/iso8583-0.1.3/ISO8583/Message.html is ruby library and so i don't have to install any gem for using it
<shaileshg__> can anyone point out to why it is happening so?
<havenwood> pagios: no, not unless you wrap it in a mutex.synchronize or put your work on a Queue and pop it off sequentially, or whatev
wald0 has joined #ruby
<wald0> is minitest the better/replacement of Test::Unit actually ?
colonolGron has quit [Quit: leaving]
<havenwood> wald0: Just a matter of how much comes with it and how much you want or need. Minitest is less stuff, but lighter of course.
kaspergrubbe has quit [Remote host closed the connection]
<Hanmac> shaileshg__: no its a gem as you can see
<shaileshg__> Hanmac: where can i see it?
<wald0> havenwood: i ask that becuase im reading a book that says that maybe in the future of the book publication, minitest will replace Test::Unit
<Hanmac> shaileshg__: in the path? it says "gems"
<shaileshg__> Hanmac: how did you figure it out?
<shaileshg__> Hanmac: oh okay
<pagios> :q!
<havenwood> wald0: Minitest and Bacon are both nice. A bonus for Minitest is it is included in Ruby's stdlib.
<shaileshg__> Hanmac: which gem it is
Tuxist has joined #ruby
<havenwood> shaileshg__: http://rubygems.org/gems/iso8583
<Hanmac> havenwood: ohh now you spoilerd the answer
<havenwood> Hanmac: lawl
xk_id has joined #ruby
<shaileshg__> Hanmac: hmm
<havenwood> shaileshg__: This shoulda given away the surprise: `gem install iso8583`
poikon has joined #ruby
<shaileshg__> hmm
pskosinski has quit [Quit: Til rivido Idisti!]
poikon has quit [Client Quit]
<shaileshg__> havenwood: also as it is in official ruby-doc.org/..., does it means that it is the officially endorsed gem by ruby community? (I am new to ecosystem and so understanding it out)
nikkita has quit [Quit: Page closed]
<havenwood> shaileshg__: No endorsement whatsoever.
<shaileshg__> havenwood: okay..
<shaileshg__> there are 2 other gems out there which support iso8583 protocol
yfeldblum has joined #ruby
<shaileshg__> i was just wondering why one is on ruby-doc.org and other two aren't
iamjarvo_ has joined #ruby
<shaileshg__> is it that https://github.com/a2800276/8583/ has been accepted as the standard in ruby?
timonv has quit [Remote host closed the connection]
h0rrorvacui has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
eka has joined #ruby
<havenwood> shaileshg__: So ruby-doc.org hosts docs for rdoc-documentation-based gems, a choice unrelated to inclusion in Ruby. Many authors like to have their docs on github or elsewhere. Ignore where the docs are, it isn't informative.
zipper has quit [Ping timeout: 268 seconds]
<apeiros> pagios: was shopping, sorry. please fix your indents - that code is horrible to read
zipper has joined #ruby
greenrose has quit [Ping timeout: 272 seconds]
coderhs has joined #ruby
iamjarvo_ has quit [Ping timeout: 245 seconds]
greenrose has joined #ruby
<havenwood> shaileshg__: You can find all available Gems at http://rubygems.org/ and you might want to look at https://www.ruby-toolbox.com/ since it endeavors to gauge use and dev activity.
Mon_Ouie has joined #ruby
<shaileshg__> havenwood: okay. thanks
<gazarsgo> if bundle puts the code in bundle/ruby/2.0.0/gems/* why don't my changes there get loaded and run ?
EvanR_ has quit [Ping timeout: 272 seconds]
ehc has joined #ruby
JohnBat26 has joined #ruby
mmitchell has quit [Remote host closed the connection]
<Hanmac> gazarsgo: #bundler
pwh has joined #ruby
<havenwood> gazarsgo: Check that the gem is indeed installed where you think it is: bundle show gem_name_here
<gazarsgo> that's the folder i'm looking at
<gazarsgo> oof
<gazarsgo> thanks
<havenwood> gazarsgo: np :P
jjbohn has joined #ruby
carlyle has quit []
<gazarsgo> so more of a ruby question -- when i have an irb open, and i change a .rb that's already been required/loaded, is there any way to reload my changes without losing my irb state ?
jonathanwallace1 has quit [Ping timeout: 260 seconds]
jjbohn_ has joined #ruby
<havenwood> gazarsgo: `require` doesn't load something you've already loaded, but `load` does
<havenwood> gazarsgo: and use Pry :)
brtdv has quit []
<gazarsgo> my irb says pry ? :)
<havenwood> gazarsgo: gem install pry
jjbohn has quit [Read error: Connection reset by peer]
sayan has quit [Ping timeout: 268 seconds]
<Hanmac> gazarsgo: you can try to kick the file out of $LOADED_FEATURES ... but its like working on an open heart
<havenwood> gazarsgo: Then you can `load` a file or `gem-install` a gem
<gazarsgo> i'm just using irb to get to my binding.pry spot
myappleguy1 has joined #ruby
predator117 has quit [Ping timeout: 268 seconds]
iliketurtles has joined #ruby
<havenwood> just an aside, but released a gem to share variables between Pry sessions with DRb: https://github.com/havenwood/pry-drb#readme
amacgregor has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
amacgregor has joined #ruby
<wald0> im reading some examples of minitest, it is minitest more readable and easy to code than Test::Unit ?
<havenwood> banister mentioned something about maybe extending pry-remote to share state in automagic ways
jjbohn_ has quit [Ping timeout: 240 seconds]
<wald0> because if it, then is enough reason to use minitest instead of Test::Unit :)
dkastner has joined #ruby
<havenwood> wald0: Same-ish? I use it because there's a bit less there to know and read about, others use Test::Unit for the opposite reasons.
myappleguy has quit [Ping timeout: 268 seconds]
<havenwood> wald0: Think of Minitest as a subset of Test::Unit with some rpec-like syntax options.
<wald0> less to know == easier/faster to code
* wald0 notes
<wald0> sounds good
Soda has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
arietis has joined #ruby
maletor has joined #ruby
tonni has joined #ruby
nateberkopec has quit [Quit: Leaving...]
linduxed has joined #ruby
kobain has joined #ruby
atno has quit [Read error: Operation timed out]
igotsideas has joined #ruby
capicue has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
krz has quit [Read error: Connection reset by peer]
fuleo has joined #ruby
igotsideas has left #ruby [#ruby]
predator117 has joined #ruby
zz_tsykoduk is now known as tsykoduk
lethjakm1 has quit [Ping timeout: 264 seconds]
ehc has quit [Quit: ehc]
duggiefresh has joined #ruby
EvanR_ has joined #ruby
bricker`LA has joined #ruby
fgo has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
Lewix has joined #ruby
dangerousdave has joined #ruby
<shaileshg__> havenwood: Here is my small code snippet..
<shaileshg__> require "iso8583"
<shaileshg__> mti_format N, :length => 4
<shaileshg__> end
<shaileshg__> class MyMessage < Message
<shaileshg__> it giving me error "uninitialized constant Message (NameError)"
<shaileshg__> any idea why
michael_mbp is now known as zz_michael_mbp
<MrZYX> shaileshg__: because Message is undefined
ericx2x has joined #ruby
<ericx2x> does anyone know a good irc for web game development?
<shaileshg__> MrZYX: but as per example, it should work (http://www.ruby-doc.org/gems/docs/i/iso8583-0.1.3/ISO8583/Message.html)
<shaileshg__> i have installed gem successfull7
<shaileshg__> *lly
<Morrolan> The doc ommited the namespace.
<Morrolan> ISO8583::Message is probably the class you want to subclass.
zoee has quit [Quit: This computer has gone to sleep]
tsykoduk is now known as zz_tsykoduk
<gazarsgo> how "bad" is it to use instance_variable_get ?
<gazarsgo> or is it 'semantic' to do so ?
zz_michael_mbp is now known as michael_mbp
intuxicated_ has joined #ruby
<MrZYX> entirely depends on the use case, what's yours?
zipper has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<shaileshg__> Morrolan: thanks for the pointer.. actually i have moved the code in Module ISO8583 coz otherwise it was giving error uninitialized constant MyMessage::N
intuxicated_ is now known as hiensoft
<gazarsgo> trying to expose a better error in an exception handling case
<shaileshg__> now it looks like
<shaileshg__> module ISO8583
<shaileshg__> class MyMessage < Message
<shaileshg__> mti_format N, :length => 4
<shaileshg__> end
<shaileshg__> end
<shaileshg__> and works fine
hiensoft is now known as hidensoft
<Morrolan> shaileshg__: Yep, that's another way to do it. :)
zipper has joined #ruby
<MrZYX> shaileshg__: in the future > 3 lines -> pastebin
<Morrolan> Now your class lives inside the ISO8583 namespace, so you can access other classes from that namespace.
pskosinski has joined #ruby
<MrZYX> gazarsgo: can you show code?
hidensoft has quit [Changing host]
hidensoft has joined #ruby
<gazarsgo> yeah let me push it
pskosinski has quit [Read error: Connection reset by peer]
<shaileshg__> MrZYX: sure. I usually do so, but it was 3-5 lines.. so :)
<gazarsgo> 222 specifically
duggiefresh has quit [Ping timeout: 265 seconds]
<MrZYX> gazarsgo: mmh, note that this does rely on the implementation details of whatever is in srv.connection.transport
raphaelivan has quit [Quit: Leaving.]
<MrZYX> there's no method to get that object?
<MrZYX> also is that object in the same codebase or is it a dependency?
<benzrf> hmm
<benzrf> would it be possible to do python-style imports & modules in ruby
<gazarsgo> it's a dependency, which is why it feels awful to me
<MrZYX> yeah, then I'd try to avoid it by any chance
ckinni has joined #ruby
Hanmac1 has joined #ruby
<gazarsgo> so on the awful scale it's a 9 or a 10 ?
<MrZYX> it's non public API and might change unannounced
mathrick has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
<MrZYX> depends a bit on the "stability" (activity) of the dependency
zxq9 has joined #ruby
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
macmartine has joined #ruby
<MrZYX> like if they're ever might release a point release that might change that implementation detail
Hanmac has quit [Ping timeout: 265 seconds]
michael_mbp is now known as zz_michael_mbp
ckinni has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
<MrZYX> I'd say you could leave that as a monkey patch for now, but try to get upstream to expose what you need over public api
zz_michael_mbp is now known as michael_mbp
nari has joined #ruby
mathrick has joined #ruby
<gazarsgo> this is basically a hostile pull request in that i don't know how to fix their api, but it's broken :)
iliketurtles has quit [Ping timeout: 272 seconds]
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
<gazarsgo> basically they are reusing a "server is down" exception to say that someone passed in a bad request or null key
Clooth has quit [Quit: Linkinus - http://linkinus.com]
allaire has quit []
krz has joined #ruby
yjmsf20 has joined #ruby
Ox6abe has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
io_syl has joined #ruby
coder_neo has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
teoric has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
mary5030 has joined #ruby
havenwood has joined #ruby
A124 has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 248 seconds]
ckinni has joined #ruby
nzee has joined #ruby
zipper has joined #ruby
<nzee> Wrap up of this year's RubyConf http://eventifier.com/event/Rubyconf2013
nomenkun has joined #ruby
myappleguy1 has quit [Ping timeout: 272 seconds]
macmartine has quit [Remote host closed the connection]
<yjmsf20> Hi guys. I am trying to store a directory structure in rails. Is it OK to use "rails g model directory name:string directory:references mbid:string", and "rails g file name:string directory:references"?
<Hanmac1> yjmsf20: #rubyonrails
Hanmac1 is now known as Hanmac
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros> yjmsf20: you omitted the `model` in your second generate
nomenkun_ has joined #ruby
* Hanmac needs to write an bot for auto respond ;P
<yjmsf20> thanks
mary5030 has quit [Ping timeout: 268 seconds]
<yjmsf20> I thought #rails looked a bit dead
havenwood has quit [Ping timeout: 265 seconds]
<Lewix> yjmsf20: #railsnoob #rubyonrails
pel_daniel has joined #ruby
havenwood has joined #ruby
_bart has quit []
nomenkun has quit [Ping timeout: 272 seconds]
<apeiros> yjmsf20: #rails is not #rubyonrails
<apeiros> yjmsf20: hint, the official channel is usually specified on the official website
momomomomo has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
<yjmsf20> Thanks again.
* apeiros is aware of the irony - I guess yjmsf20 isn't :-D
fgo has quit [Ping timeout: 252 seconds]
theahindle has joined #ruby
<theahindle> I quite fancy learning Ruby - I'm a web developer, should I use a ruby on rails tutorial do you think, to get a hang of it?
<Hanmac> apeiros: i think Tony Stark is great with iron-y ;P
Mon_Ouie has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
<havenwood> theahindle: I'd suggest starting with tryruby.org, then learn more pure Ruby and maybe even look at Sinatra before Rails.
<IceDragon> thehindle: I prefer reading the Rails getting started
<theahindle> Thanks havenwood IceDragon
<gazarsgo> theahindle: +1 to sinatra first
bklane has joined #ruby
s_kilk has quit [Quit: Leaving]
tylersmith has joined #ruby
<theahindle> Thanks gazarsgo :)
<IceDragon> >.> but if he learns sinatra first, I think the rails folks are gonna lose a potential member...
mojjojo has quit [Ping timeout: 260 seconds]
hiroyuki has joined #ruby
mojjojo has joined #ruby
jjbohn has joined #ruby
allaire has joined #ruby
zipper has quit [Ping timeout: 268 seconds]
mojjojo has quit [Client Quit]
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
zipper has joined #ruby
mojjojo has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
dcope has joined #ruby
<dcope> is there a way with File to append a extname to a path?
<dcope> I see you can use #join to add directories
<dcope> but what about appending an ext name
zipper has quit [Client Quit]
<MrZYX> just do +".ext"
GoodTimes has joined #ruby
<MrZYX> or "path#{ext}" or whatever
<dcope> MrZYX: thanks
vlad_starkov has joined #ruby
<MrZYX> File.join is there as a convenience method to [a, b].join(File::SEPARATOR)
ringaroses has joined #ruby
iliketurtles has joined #ruby
<MrZYX> there's no such platform dependent thing for extnames
<MrZYX> therefore no special treatment
mklappstuhl has joined #ruby
michael_mbp is now known as zz_michael_mbp
pskosinski has joined #ruby
Monie has joined #ruby
zz_michael_mbp is now known as michael_mbp
jonathanwallace1 has joined #ruby
vlad_sta_ has joined #ruby
tonni has joined #ruby
elux has joined #ruby
brtdv has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
teoric has joined #ruby
duggiefresh has joined #ruby
mmitchell has joined #ruby
nateberkopec has joined #ruby
ehc has joined #ruby
lethjakm1 has joined #ruby
phinfonet has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
capicue has joined #ruby
zz_tsykoduk is now known as tsykoduk
jjbohn has joined #ruby
fgo has joined #ruby
echevemaster has quit [Quit: Leaving]
tylersmith has quit [Ping timeout: 248 seconds]
phinfonet has quit [Read error: Connection reset by peer]
phinfonet has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
hiall has quit [Quit: hiall]
fgo has quit [Ping timeout: 245 seconds]
mojjojo has quit [Quit: mojjojo]
threesome has joined #ruby
pyreal has joined #ruby
arietis has joined #ruby
dhruvasagar has joined #ruby
hiall has joined #ruby
ehc has quit [Quit: ehc]
tsykoduk is now known as zz_tsykoduk
vlad_sta_ has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
towbes has quit [Ping timeout: 260 seconds]
anderse has joined #ruby
atno has joined #ruby
stella has joined #ruby
stella has quit [Client Quit]
stella has joined #ruby
n4dir has joined #ruby
n4dir has left #ruby [#ruby]
iliketurtles has quit [Ping timeout: 265 seconds]
nomenkun_ has quit [Remote host closed the connection]
stella has quit [Client Quit]
jerius has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has quit [Remote host closed the connection]
Czupa has joined #ruby
RaDIrkA has left #ruby [#ruby]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jrhe_ has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
scarolan has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
jonathanwallace1 has quit [Quit: WeeChat 0.4.1]
gasbakid_ has joined #ruby
xk_id has quit [Quit:
shaunbaker has joined #ruby
jonathanwallace has joined #ruby
tylersmith has joined #ruby
atno has quit [Ping timeout: 245 seconds]
scarolan has joined #ruby
gasbakid has quit [Ping timeout: 248 seconds]
baroquebobcat has joined #ruby
advorak has quit [Remote host closed the connection]
advorak has joined #ruby
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
mixel has joined #ruby
zipper has joined #ruby
advorak has quit [Ping timeout: 265 seconds]
teoric has quit [Quit: WeeChat 0.4.1]
Solnse has quit [Remote host closed the connection]
kaspergr_ has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 260 seconds]
yjmsf20 has quit [Quit: Computer has gone to sleep.]
Thanatermesis has quit [Ping timeout: 256 seconds]
wald0 has quit [Ping timeout: 268 seconds]
atno has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
wald0 has joined #ruby
fuleo has quit []
zipper has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kamuela has quit [Remote host closed the connection]
thekkid has joined #ruby
lethjakm1 has quit [Ping timeout: 268 seconds]
jlast has joined #ruby
kaspergrubbe has joined #ruby
peterdecroos has joined #ruby
mojjojo has joined #ruby
jjbohn has quit [Quit: Leaving...]
aspiers has joined #ruby
jjbohn has joined #ruby
pyreal has left #ruby [#ruby]
iliketurtles has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
vlad_starkov has joined #ruby
jrhe has quit [Quit: jrhe]
zipper has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Inoperable has quit [Quit: Rectified]
mklappst_ has joined #ruby
RichardBaker has joined #ruby
duggiefresh has quit [Ping timeout: 245 seconds]
Ox6abe has quit [Remote host closed the connection]
javos has joined #ruby
tonni has joined #ruby
jkamenik has quit [Quit: Leaving.]
mixmix has joined #ruby
<PPH> what are we supposed to pass to the ifnone argument of enumerable#find ?
<PPH> a symbol?
tonni has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
newUser1234 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
mary5030 has joined #ruby
angusiguess has quit [Quit: Lost terminal]
<Hanmac> PPH the ifnone is return if nothing is found
skaflem has quit [Quit: Leaving]
fgo has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
<Hanmac> hm no, it returns the result of the proc using ifnone as parameter
<PPH> yeah I understand that but what am I supposed to pass to it? If I do something.find(raise 'error'){...} it don't work
<PPH> hum k
IceDragon has joined #ruby
<PPH> so i must pas a proc?
<PPH> like
mary5030 has quit [Ping timeout: 240 seconds]
<PPH> something.find(Proc.new raise 'error'){...} ?
<PPH> I don't understand procs very well
thelorax123 has quit [Remote host closed the connection]
<PPH> hmmm maybe more like something.find(Proc.new{raise 'error'}){...} right?
<PPH> i'll try it
thelorax123 has joined #ruby
erinb has joined #ruby
Ox6abe_ has joined #ruby
jonathanwallace has quit [Ping timeout: 268 seconds]
mojjojo has quit [Quit: mojjojo]
mjs2600 has quit [Remote host closed the connection]
Ox6abe__ has joined #ruby
erinb has left #ruby [#ruby]
Ox6abe_ has quit [Read error: Operation timed out]
iliketurtles has quit [Ping timeout: 252 seconds]
aspiers has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
Ox6abe__ has quit [Ping timeout: 245 seconds]
tonni has joined #ruby
timonv has joined #ruby
felixjet_ has quit [Quit: Leaving]
snuffeluffegus has joined #ruby
hside has quit [Quit: Connection closed for inactivity]
timonv has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
thumpba has joined #ruby
<dev1x> anyone here with AWS? are you guys also having problems with R53 updates?
baroquebobcat has quit [Quit: baroquebobcat]
_phansch has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
felixjet has quit [Quit: Leaving]
shredding has joined #ruby
felixjet has joined #ruby
timonv has joined #ruby
nari has quit [Ping timeout: 252 seconds]
Ox6abe_ has joined #ruby
_phansch has quit [Client Quit]
phansch has quit [Ping timeout: 265 seconds]
petey has joined #ruby
mmitchell has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
phansch has joined #ruby
freezey has joined #ruby
mariondaly has joined #ruby
Mon_Ouie has joined #ruby
mariondaly has left #ruby [#ruby]
Ox6abe_ has quit [Ping timeout: 252 seconds]
Ox6abe_ has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
IceDragon has joined #ruby
dcope has quit [Ping timeout: 272 seconds]
capicue has joined #ruby
timonv has quit [Remote host closed the connection]
Davey has joined #ruby
jerius has quit []
jbpros has quit [Quit: jbpros]
aspiers has joined #ruby
dhruvasa1ar has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 268 seconds]
fgo has quit [Ping timeout: 252 seconds]
capicue has quit [Ping timeout: 252 seconds]
allsystemsarego has quit [Quit: Leaving]
IceDragon has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
aspiers has quit [Ping timeout: 264 seconds]
Czupa has quit [Quit: Wychodzi]
Czupa has joined #ruby
duggiefresh has joined #ruby
iliketurtles has joined #ruby
dnyy has joined #ruby
mdxprograms has joined #ruby
colonolGron has joined #ruby
mdxprograms has quit [Client Quit]
shredding has quit [Quit: shredding]
DanKnox_away is now known as DanKnox
zipper has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has quit [Client Quit]
AleksEst has quit [Read error: Operation timed out]
jjbohn has quit [Quit: Leaving...]
colonolGron has quit [Client Quit]
dubsteph_ has quit [Read error: Connection reset by peer]
AleksEst has joined #ruby
colonolGron has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
decoponio has quit [Quit: Leaving...]
pwh has quit []
dubsteph has joined #ruby
jjbohn has joined #ruby
Monie has joined #ruby
duggiefresh has quit [Ping timeout: 252 seconds]
xk_id has joined #ruby
gr33n7007h has joined #ruby
lethjakm1 has joined #ruby
vlad_starkov has joined #ruby
jjbohn has quit [Client Quit]
zipper has quit [Quit: leaving]
mklappst_ has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
predator117 has joined #ruby
i_s has joined #ruby
nzee has quit [Remote host closed the connection]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
shredding has joined #ruby
shredding has quit [Client Quit]
gasbakid_ has quit [Quit: Quitte]
gasbakid has joined #ruby
pushpak has joined #ruby
zz_tsykoduk is now known as tsykoduk
fgo has joined #ruby
coldmethod has joined #ruby
shaunbaker has quit [Remote host closed the connection]
mojjojo has joined #ruby
mazyck has quit [Remote host closed the connection]
Liothen has quit [Remote host closed the connection]
tylersmith has joined #ruby
newUser1234 has quit [Quit: Leaving...]
pwh has joined #ruby
bruno- has quit [Quit: leaving]
fgo has quit [Ping timeout: 248 seconds]
tylersmith has quit [Ping timeout: 264 seconds]
cricri has joined #ruby
randomnick_ has quit [Remote host closed the connection]
dcope has joined #ruby
cricri_ has quit [Ping timeout: 272 seconds]
banisterfiend has joined #ruby
shaunbaker has joined #ruby
tsykoduk is now known as zz_tsykoduk
thelorax123 has quit [Read error: Connection reset by peer]
Soda has quit [Read error: Connection reset by peer]
DanKnox is now known as DanKnox_away
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thelorax123 has joined #ruby
Soda has joined #ruby
shaunbaker has quit [Client Quit]
thumpba has quit [Remote host closed the connection]
zeeraw has quit [Quit: Computer has gone to sleep.]
shvelo has joined #ruby
<shvelo> What's the best way to install Ruby2.0 on Linux Mint?
Jetchisel has joined #ruby
<benzrf> shvelo: apt-get?
colonolGron has quit [Quit: Lost terminal]
<benzrf> oh is it not in the repos
vlad_starkov has quit [Read error: Connection reset by peer]
<benzrf> theres probably a ppa
colonolGron has joined #ruby
lethjakm1 has quit [Ping timeout: 260 seconds]
mixel has quit [Quit: mixel]
<shvelo> thanks
<shvelo> btw is there any incompatibility between 1.9.3 and 2.0.0?
ehc has joined #ruby
<benzrf> dont think s
<benzrf> o
dnyy_ has joined #ruby
wald0 has quit [Ping timeout: 260 seconds]
<shevy> ack
<shevy> noooo
<shevy> don't fall into the apt-get trap!
zeeraw has joined #ruby
<shvelo> it sucks that OpenShift doesn't have Ruby2.0
<shevy> shvelo yeah, in some ways. I think some different warning messages. also syck has been removed so yaml files that worked in 1.9.x may no longer work in 2.0 depending on the yaml files in question
wald0 has joined #ruby
EvanR_ has quit [Ping timeout: 245 seconds]
<shevy> it sucks that most linux distributions are too stupid to allow multiple versions of programs to reside side by side on a user's computer
dnyy has quit [Ping timeout: 265 seconds]
<shvelo> yeah
<benzrf> oh hello shvelo
<benzrf> *shevy
<benzrf> are you ready for your haskell brainwashing
<shvelo> shevy: good idea actually
<benzrf> shevy: check out this code ive been writing in haskell http://www.nbc.com/parks-and-recreation/video/recall-vote/n43205/
<benzrf> oops wrong link
<benzrf> yes that is right, i created parks and rec, and the script is actually code i wrote
<shevy> shvelo, did I already tell you that there is a guy called shlevy?
<shevy> we are like the three brothers
<shvelo> lol
<shevy> he tends to hang out on #nixos
<shvelo> what do you think about Rubinius?
dnyy_ is now known as dnyy
<shevy> which is a distribution that allows multiple versions to reside side by side
<shevy> dunno
<shevy> it was semi-active all those years
diegoviola has joined #ruby
<shevy> and I don't trust projects that were somewhat inactive to make a "strong comeback"
capicue has joined #ruby
ner0x has joined #ruby
<shevy> and the one who started it is no longer leading it
<benzrf> pypy meanwhile is going strong
<shevy> which reminds me of _why when he left and what happened to his projects
<benzrf> :-D
<shevy> including Shoes
<shvelo> NixOs looks awesome
<shevy> benzrf I look at your code
<shevy> and have to ask
<shevy> where is your monad?
postmodern has joined #ruby
<benzrf> hmm?
<benzrf> i am using no monads
jonathanwallace has joined #ruby
<benzrf> ??
<shevy> benzrf is this a heisencode?
<shevy> toChar :: Maybe Char -> Char
<shevy> Maybe?
<benzrf> Maybe is used to represent nullable values
<shevy> maybe a char, maybe not
<benzrf> a value of type Maybe a can be either Just a or Nothing
<shevy> maybe this program works, maybe not
<benzrf> a value of type Maybe Int can be Nothing, or Just 5, or Just 3
<waxjar> isn't Maybe a monad, tho?
<shevy> one cool thing is that haskell code seems nicely structured
<benzrf> yes but you do not have to use it as one
<benzrf> shevy: oh heck yes
<shevy> not many indents I can see
<benzrf> the type system is super awesome btw
<shevy> a shame it is such a complicated language
<benzrf> actually it is incredibly simple
<benzrf> i'm using like half the lang features just in the code you see
<benzrf> or more
<benzrf> the concepts are difficult, but the language itself is incredibly minimal
raphaelivan has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Ping timeout: 264 seconds]
nisstyre has joined #ruby
_honning_ has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
tesuji has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
phansch has quit [Quit: Leaving]
gasbakid_ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
banghouse2 is now known as banghouse
eka has quit [Quit: Computer has gone to sleep.]
gasbakid has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Quit: Leaving.]
iliketurtles has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
duggiefresh has joined #ruby
devoldmx3 has joined #ruby
colonolGron has quit [Quit: leaving]
funburn has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
jjbohn has joined #ruby
vlad_starkov has joined #ruby
opt9 has quit [Ping timeout: 265 seconds]
Kamuela has joined #ruby
zarubin has quit [Ping timeout: 252 seconds]
Kudos has quit [Quit: IRCRelay - http://ircrelay.com]
ravster has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has joined #ruby
madhatter has quit [Ping timeout: 252 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
jjbohn has quit [Ping timeout: 264 seconds]
madhatter has joined #ruby
DanKnox_away is now known as DanKnox
brtdv has quit []
caesura has joined #ruby
caesura has left #ruby [#ruby]
caesura has joined #ruby
DanKnox is now known as DanKnox_away
fgo has joined #ruby
dnyy has quit []
chrisd84 has joined #ruby
kaspergrubbe has quit []
aspiers has joined #ruby
tylersmith has joined #ruby
jbpros has joined #ruby
<Kamuela> Quick, somebody type some code!
<caesura> thislineofcode.exists?
* Kamuela rejoices
vlad_starkov has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
bklane has quit [Quit: Leaving...]
brtdv has joined #ruby
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
scarolan has quit [Ping timeout: 252 seconds]
SteveBenner9 has joined #ruby
raphaelivan1 has joined #ruby
thumpba_ has joined #ruby
jerius has joined #ruby
mengu has joined #ruby
raphaelivan has quit [Ping timeout: 272 seconds]
krz has quit [Quit: krz]
i_s has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
devoldmx3 has quit [Ping timeout: 265 seconds]
Davey has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
tnk1 has joined #ruby
devoldmx has joined #ruby
xargoon has joined #ruby
brtdv has quit []
jerius has quit []
devoldmx has quit [Ping timeout: 260 seconds]
sambao21 has quit [Ping timeout: 240 seconds]
thumpba_ has quit [Remote host closed the connection]
maoko has joined #ruby
dionyziz has joined #ruby
marr has joined #ruby
<dionyziz> Hi. I'm trying to create my own gem following this tutorial: http://guides.rubygems.org/make-your-own-gem
<dionyziz> However, when I try to run require 'hola', I am presented with the following error message: cannot load such file -- hola
brtdv has joined #ruby
<dionyziz> I'm not sure what I'm doing wrong. Help?
<havenwood> dionyziz: what version of Ruby are you on?: gem -v
<havenwood> ruby -v rather**
<dionyziz> I'm using rbenv and I'm on ruby 2.0.0-p247
<havenwood> dionyziz: make double, triple sure you're using what you think you are
<havenwood> dionyziz: which gem
<havenwood> dionyziz: gem -v
<havenwood> in irb, check: RUBY_VERSION
<diegoviola> chruby > rbenv
<diegoviola> who needs shims
<havenwood> <3 chruby
<diegoviola> shims == crap
<shevy> dionyziz whenever you do: require 'hola' in this context, ruby tries to find a file called hola.rb in your SITE_DIR first, so for some reason the file hola.rb can not be found
Lewix has quit [Remote host closed the connection]
capicue has joined #ruby
<shevy> dionyziz is your gem available somewhere to test?
iszak has joined #ruby
Solnse has joined #ruby
<iszak> Does anyone have an up-to-date Ruby 2.0 guide (online)?
<dionyziz> havenwood: Yep, you're right, I was having a problem with my ruby version. It works now! Thank you for your help :)
<havenwood> dionyziz: np
<dionyziz> shevy: Thank you for your time also :)
<shevy> cool
peterdecroos has quit [Read error: Connection reset by peer]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> havenwood I hereby call you the official ruby newcomer trainer
<shevy> benzrf, you are the official #ruby mascot now
* havenwood searches for something to hide behind.
<benzrf> yaaay
<benzrf> Ive always liked being a mascot
carraroj has quit [Quit: Konversation terminated!]
<gr33n7007h> Which is the official channel #ruby / #ruby-lang?
duggiefresh has quit [Ping timeout: 252 seconds]
peterdecroos has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
<havenwood> gr33n7007h: The other is the directly-linked one from ruby-lang.org. This is the no reg req Ruby channel.
duggiefresh has joined #ruby
<havenwood> gr33n7007h: Like Python has a registration required and not-so as well.
capicue has quit [Ping timeout: 240 seconds]
d45h has quit []
<gr33n7007h> Ah, ok ;)
fella6s has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
sam113101 has joined #ruby
mixmix has quit [Quit: Leaving]
thumpba_ has joined #ruby
fella5s has quit [Ping timeout: 252 seconds]
bean has joined #ruby
zastern has joined #ruby
<zastern> I've got a really silly question, but it's something I've never been able to figure out: Is there a way to set pry to use vim keybindings?
aryaching has quit [Ping timeout: 252 seconds]
thumpba_ has quit [Remote host closed the connection]
<havenwood> zastern: i think so, but i dunno - might ask in #pry
lmmx has joined #ruby
mmcdaris has joined #ruby
<lmmx> can anyone help me understand how to do an exception test?
<zastern> havenwood: heh
<lmmx> I've just tried playing around with it but no use and thinking it's probably not wise to just ignore it...
Kamuela has quit [Quit: Leaving]
<havenwood> zastern: so looks like yes it works if you're using readline (with a conf) but not with coolline
<zastern> havenwood: yeah that's not working
<zastern> and im not using coolline
iliketurtles has joined #ruby
<havenwood> zastern: then i got nothing - try #pry
<zastern> heh
<zastern> thanks, i didn't realize there was a #pry
<havenwood> yeah, it is well populated :)
<lmmx> This is what I thought should work http://pastie.org/8485734 and this is using the specific exception name http://pastie.org/8485736
Hanmac1 has joined #ruby
_5kg has quit [Ping timeout: 246 seconds]
mmcdaris has quit [Remote host closed the connection]
_5kg has joined #ruby
<havenwood> Lmmx: What do you want to have happen when the exceptional error occurs?
tesuji has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
<lmmx> It comes out of the upto loop and I want it to keep going and just give me a message saying "There's no span tag"
Tuxist has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> Lmmx: I don't really get your logic, but are you sure you mean to have an `else` on line 18? What is line 16 about?
<havenwood> Lmmx: if you got rid of lines 16 and 18, it would print and move on
vlad_starkov has joined #ruby
theoretick has joined #ruby
<havenwood> Lmmx: Usually you use the `e` you pass along (from line 14) to get the message and what not from the exception that was raised.
jjbohn has joined #ruby
<lmmx> http://stackoverflow.com/questions/2191632/begin-rescue-and-ensure-in-ruby The answer here suggests else means the code will run when no exception is raised
shredding has joined #ruby
<havenwood> is that what you want?
<lmmx> thinking about it line 16 should go after else in that case
platypine has joined #ruby
mmcdaris has joined #ruby
<lmmx> I'm trying to go to an xpath and click a link, but the exception throws me out of the upto loop
<havenwood> Lmmx: normally, instead of doing that, you put the line 16 line before the rescue
<havenwood> Lmmx: when the error is raised, it won't reach it
<lmmx> right
<havenwood> Lmmx: but will hit your puts
Czupa has quit [Quit: Wychodzi]
<havenwood> so just ditch the else
Czupa has joined #ruby
<lmmx> right, thankyou
<havenwood> np
<lmmx> have I used "=> e" wrong too ?
<lmmx> *wrongly
scarolan has joined #ruby
<shevy> Lmmx where is => e
JohnBat26 has quit [Ping timeout: 252 seconds]
zeeraw has quit [Quit: Computer has gone to sleep.]
<havenwood> Lmmx: Well, you can either not have the `=> e` or use the `e`, but yeah odd to declare it and then not make use of it.
jjbohn has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
raphaelivan1 has quit [Quit: Leaving.]
<lmmx> I thought it was part of the standard usage of begin/rescue oops :~s
zz_tsykoduk is now known as tsykoduk
<havenwood> Lmmx: nope, only if you want to make use of something the exception object exposes, like `e.message`
jjbohn has quit [Client Quit]
<lmmx> Hi Shevy :-) Just trying to handle exceptions, this is what I thought should work http://pastie.org/8485734 and this is using the specific exception name http://pastie.org/8485736
mjs2600 has joined #ruby
<lmmx> havenwood: alright, I get it, like dumping the error message somewhere so you know what happened
mikepack has joined #ruby
brian____ has joined #ruby
<lmmx> havenwood: just one more thing, which is right to use - Exception or the specific error message Watir::Exception::UnknownObjectException ?
Solnse has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
hidensoft has quit [Ping timeout: 272 seconds]
<havenwood> Lmmx: as specific as you can be
Ox6abe_ has quit [Remote host closed the connection]
<lmmx> havenwood: cool, thought so, cheers
<brian____> what books do you guys recommend for learning ruby?
freezey has quit [Remote host closed the connection]
<benzrf> brian____: i read most of wpgtr
<benzrf> but then i already know multiple langs
claymore has quit [Quit: Leaving]
<lmmx> brian___ : codecademy (website) is how I got started
<benzrf> also codewars is a neat website with practice execises
<benzrf> n stuff
<havenwood> brian____: 'The Ruby Programming Language' or if you're new to programming 'Learn to Program' by Chris Pine.
IceDragon has quit [Ping timeout: 272 seconds]
<brian____> have you guys read the well-grounded rubyist by manning?
mengu has quit [Remote host closed the connection]
<shevy> no
<brian____> ive been programming in rails for a little bit, but feel like i need to learn more about ruby...
<shevy> pickaxe was ok to read the first time
tylersmith has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
<shevy> so if you have not read it yet, read it once. or borrow it, that may be cheaper
<havenwood> >> def run; raise StandardError, 'yar!!'; rescue StandardError => e; p e.message end; run
<eval-in> havenwood => "yar!!" ... (https://eval.in/68984)
<havenwood> Lmmx: ^
<havenwood> Lmmx: how you might use `=> e`
simoz has joined #ruby
<brian____> shevy: are you referring to Programming Ruby by prag prog?
fgo has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
DrCode has joined #ruby
<lmmx> havenwood: (Y)
Czupa has quit [Ping timeout: 252 seconds]
preller has quit [Ping timeout: 260 seconds]
<shevy> brian____ yeah, this one: http://pragprog.com/book/ruby/programming-ruby
Ox6abe has joined #ruby
finnomenon has quit [Ping timeout: 264 seconds]
theahindle has quit [Read error: Connection reset by peer]
<havenwood> brian____: The Sparrow: http://shop.oreilly.com/product/9780596516178.do
<brian____> thanks everyone!
nobitanobi has joined #ruby
<lmmx> gd luck!
Ox6abe_ has joined #ruby
<nobitanobi> hello fellas
<havenwood> hey
<shevy> nobitanobi why do you have a japanese nick
<shevy> are you a samurai?
tsykoduk is now known as zz_tsykoduk
Ox6abe__ has joined #ruby
<RubyPanther> brian____: Pickaxe once through cover to cover is required reading. Also highly recommended is Matz's book, and The Well-Grounded Rubyist by David A. Black
tylersmith has quit [Ping timeout: 272 seconds]
<nobitanobi> shevy, that's why!
<nobitanobi> :)
mengu has joined #ruby
lmmx has quit [Quit: Leaving]
ehc has quit [Quit: ehc]
<shevy> omg
<shevy> that is not a samurai
<brian____> does it matter so much if the book covers 1.8 vs 1.9 vs 2.0
<nobitanobi> shevy, did you know that if you do.. include M, include N, include M -- and both M and N have declared a particular method... the method in N would be the one invoked?
<shevy> back when I was young ninja and samurai were cool
<havenwood> brian____: make sure everything covers 1.9.2+, not old editions
<shevy> nobitanobi, no idea. I always assume that the last method included overrules all prior ones
<havenwood> brian____: 1.9 and 2.0 are quite similar (consider 1.9 a release candidate for 2.0) but 1.8 is end-of-life.
mjs2600 has quit [Remote host closed the connection]
<nobitanobi> shevy, nopes!
<havenwood> Past EOL.
<brian____> havenwood: right, thanks
lukec has quit [Quit: lukec]
<nobitanobi> if it was already added, nah
delinquentme has joined #ruby
<nobitanobi> *included
Ox6abe has quit [Ping timeout: 272 seconds]
<RubyPanther> I learned from _why's (poignant) guide, and pickaxe
<delinquentme> creating novel methods ending in ? like .integer?
<delinquentme> how do?
<delinquentme> Or what would I google?
mengu has quit [Remote host closed the connection]
<nobitanobi> delinquentme, just create your method and add '?' at the end
<shevy> weird
<shevy> >> module ABC; def test; puts 'from ABC'; end; end; module DEF; def test; puts 'from DEF'; end; end; include ABC; test; include DEF; test; include ABC; test
<eval-in> shevy => from ABC ... (https://eval.in/68985)
Ox6abe_ has quit [Ping timeout: 240 seconds]
Ox6abe has joined #ruby
<shevy> nobitanobi so a module can be included only once?
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
<nobitanobi> more than once if you wish
<nobitanobi> if for example you change it in runtime..
<shevy> but it does not change the method on new includes
<nobitanobi> right..
<delinquentme> nobitanobi, maybe I'm invoking it the wrong way then? I'm trying to do var.method? and its saying its private
Ox6abe_ has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
<nobitanobi> delinquentme, can you paste your code? gist.github.com
Ox6abe__ has quit [Ping timeout: 252 seconds]
<shevy> delinquentme then you must have used the keyword private in your code
Hanmac has joined #ruby
Ox6abe__ has joined #ruby
sam113101 has joined #ruby
zeeraw has joined #ruby
Soda has quit [Remote host closed the connection]
Ox6abe has quit [Ping timeout: 245 seconds]
bret has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 268 seconds]
iliketurtles has quit [Ping timeout: 245 seconds]
Ox6abe has joined #ruby
<jb41> how to get from hash every key with duplicate values?
bret has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Ox6abe_ has quit [Ping timeout: 272 seconds]
<jb41> from {a: 1, b: 2, c: 1} I want to get [:a, :c]
Ox6abe_ has joined #ruby
Ox6abe__ has quit [Ping timeout: 252 seconds]
gasbakid_ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Ox6abe__ has joined #ruby
banisterfiend has joined #ruby
<IceDragon> jb41: use select?
iamjarvo has joined #ruby
shoMo has quit [Ping timeout: 260 seconds]
<IceDragon> jb41: hash.select { |k,v| v == 1 } # => [[:a, 1], [:c, 1]]
dhruvasagar has joined #ruby
mixel has joined #ruby
Ox6abe has quit [Ping timeout: 245 seconds]
coldmethod1 has joined #ruby
<jb41> IceDragon: I don't know which values are duplicates
<jb41> I made it using each and appending to array
gazarsgo has quit [Quit: gazarsgo]
<jb41> but I was wondering if there is some nice oneliner
Ox6abe_ has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
_honning_ has quit [Quit: Leaving]
<IceDragon> hmm
thelorax123 has quit [Remote host closed the connection]
pwh has quit []
_honning_ has joined #ruby
Ox6abe has joined #ruby
Ox6abe__ has quit [Ping timeout: 240 seconds]
dhruvasa1ar has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
lmmx has joined #ruby
<IceDragon> jb41: hash.inject({}) { |r, (k, v)| (r[v] ||= []) << k; r }
<IceDragon> that would batch together keys who have the same value
brtdv has quit []
coldmethod has quit [Ping timeout: 245 seconds]
Mars` has joined #ruby
Ox6abe_ has joined #ruby
thelorax123 has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
<lmmx> my error rescue won't work :-(
tesuji has joined #ruby
Ox6abe__ has joined #ruby
peterdecroos has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
<lmmx> full disclosure: I'm an idiot http://pastie.org/8485808
phinfone_ has joined #ruby
peterdecroos has joined #ruby
<jb41> IceDragon: that changes keys with values in the returned hash, but it's quite nice
<havenwood> jb41: What should this return?: {a: 1, b: 2, c: 1, d: 3, e: 3}
<IceDragon> ヽ( ´¬`)ノ
nobitanobi has joined #ruby
<jb41> havenwood: [[:a, :c], [:d, :e]]
sambao21 has quit [Ping timeout: 245 seconds]
Ox6abe has quit [Ping timeout: 265 seconds]
phinfonet has quit [Read error: Connection reset by peer]
Ox6abe_ has quit [Ping timeout: 272 seconds]
<jb41> I thought I have simple excercise to do, but I'm working on it way too much... It's propably algorythmic problem
<jb41> I've to rank teams from 1..6
<havenwood> >> {a: 1, b: 2, c: 1, d: 3, e: 3}.group_by { |_, v| v }.delete_if { |_, v| v.one? }.map { |_, v| v.map &:first }
<eval-in> havenwood => [[:a, :c], [:d, :e]] (https://eval.in/68987)
Ox6abe__ has quit [Ping timeout: 252 seconds]
Ox6abe has joined #ruby
<jb41> :o
<jb41> whoa!
<jb41> ok, that's one thing : )
peterdecroos has quit [Ping timeout: 245 seconds]
ekarlso has quit [Changing host]
ekarlso has joined #ruby
<jb41> I'm looking on it, it's beautiful :D
pragmatism has joined #ruby
capicue has joined #ruby
Ox6abe_ has joined #ruby
jbpros has quit [Quit: jbpros]
nobitanobi has quit [Ping timeout: 245 seconds]
Ox6abe__ has joined #ruby
<havenwood> jb41: Or maybe: group_by { |_, v| v }.values.reject(&:one?).map { |e| e.map &:first }
ggordan has quit [Ping timeout: 260 seconds]
chiel has quit [Ping timeout: 260 seconds]
shredding has quit [Quit: shredding]
Ox6abe has quit [Ping timeout: 272 seconds]
Grantlyk has joined #ruby
<lmmx> Hi Havenwood, sorry I still can't get it to work :-( http://pastie.org/8485808
capicue has quit [Ping timeout: 241 seconds]
Ox6abe_ has quit [Ping timeout: 260 seconds]
DanBoy has joined #ruby
<iszak> so there is no open source book for ruby 2.0?
finnomenon has joined #ruby
Ox6abe has joined #ruby
<havenwood> Lmmx: That begin/rescue logic better. What doesn't work about it?
Ox6abe__ has quit [Ping timeout: 265 seconds]
<jb41> btw. I've to make teams ranking, from 1..6, and I've some rules how to rank them. After first rule there is such situation, that there are (rank => teams): {1=>[], 2=>[a, b], 3=>[c], 4=>[], 5=>[d, e, f], 6=>[]}. Thing that is getting into consideration in applying 2nd rule is let's say a.sth (it's a number). I have no ide how to juggle with that data. Now I'm considering if I'm using good data representation.
allaire has quit [Ping timeout: 252 seconds]
Ox6abe_ has joined #ruby
Ox6abe__ has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
<havenwood> iszak: here is a very good reference: http://www.ruby-doc.org/core-2.0.0/
<iszak> havenwood: not so much reference a guide
Ox6abe has quit [Ping timeout: 264 seconds]
coldmethod has joined #ruby
<iszak> thanks anyway havenwood
<jb41> or maybe anyone familiar with skating rule?
ringaroses1 has joined #ruby
Ox6abe_ has quit [Ping timeout: 265 seconds]
<havenwood> iszak: Read one of the 2.0 release rundowns, and follow 1.9+ guides.
<havenwood> iszak: Consider 1.9 as 2.0's release candidate. 2.1 will be out Christmas day.
<havenwood> iszak: The goods on 2.0: http://blog.marc-andre.ca/2013/02/23/ruby-2-by-example/
<iszak> will it? maybe I should wait before learning 2.0 , i am partially familiar with 1.9
Ox6abe__ has quit [Ping timeout: 268 seconds]
iliketurtles has joined #ruby
zenspider has joined #ruby
<havenwood> iszak: 2.0 and 2.1 incrementally build on 1.9.
mklappstuhl has quit [Remote host closed the connection]
coldmethod1 has quit [Ping timeout: 240 seconds]
<iszak> yeah i know
<havenwood> iszak: That article ^ is a good start and 2.1.0-preview1 has been out a while
macmartine has joined #ruby
Ox6abe has joined #ruby
gazarsgo has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<havenwood> iszak: Just skip reading the 2.0 experimental refinements stuff, and go straight to 2.1 not-experimental refinements
<lmmx> havenwood: it still throws the exception and stops the upto loop
Spami has joined #ruby
mengu has joined #ruby
ringaroses has quit [Ping timeout: 264 seconds]
<havenwood> iszak: only other caveat is skip 2.0 GC since CoW friendly M&S is getting replaced with generational
Ox6abe_ has joined #ruby
jjbohn has joined #ruby
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
fixl has joined #ruby
<havenwood> Lmmx: You sure the exception class exactly matches what you're rescuing?
<havenwood> Lmmx: You've got to rescue the right Exception, or at least one it inherits from.
aa47f8 has quit [Quit: aa47f8]
tesuji has quit [Read error: Connection reset by peer]
Ox6abe__ has joined #ruby
<lmmx> Watir::Exception::UnknownObjectException:
zenspider has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
chomskiii has quit [Read error: Connection reset by peer]
<lmmx> rescue Watir::Exception::UnknownObjectException
<lmmx> hmmm that end colon...
i_s has joined #ruby
chomskiii has joined #ruby
<havenwood> Lmmx: I'm just curious, but what are?: Watir::Exception::UnknownObjectException.ancestors
kirun has quit [Quit: Client exiting]
Ox6abe has quit [Ping timeout: 240 seconds]
<lmmx> adding that extra colon gives a syntax error
banisterfiend has quit [Quit: Computer has gone to sleep.]
<havenwood> Lmmx: didn't mean the preceding colon to be code
vlad_starkov has joined #ruby
chiel has joined #ruby
<lmmx> => "[Watir::Exception::UnknownObjectException, Watir::Exception::Error, Standard
<lmmx> Error, Exception, Object, JSON::Ext::Generator::GeneratorMethods::Object, Kernel
<lmmx> , BasicObject]"
Ox6abe_ has quit [Ping timeout: 268 seconds]
zeeraw has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
<havenwood> Lmmx: Welp, rescuing the exception that was raised should work. Double check the error output matches that exception.
Ox6abe__ has quit [Ping timeout: 252 seconds]
<lmmx> changed it to rescue Watir::Exception and still the same
mikepack has quit [Remote host closed the connection]
wald0 has quit [Read error: Connection reset by peer]
maletor has joined #ruby
<lmmx> 26
<lmmx> Watir::Exception::UnknownObjectException: unable to locate element, using {:xpat
<lmmx> h=>"//h1/*/span", :tag_name=>"span"}
<lmmx> this is always how my nights end these days lol
Ox6abe has joined #ruby
jacobw has joined #ruby
mikepack has joined #ruby
zastern has quit [Remote host closed the connection]
zastern has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
<jacobw> i'm trying to install a gem in my rails env with an option, like, gem install mysql2 -- --with-mysql-dir=/usr/share/gitlab/mysql-connector-c-6.1.2-linux-glibc2.5-x86_64, in the directory /usr/share/gitlab/gitlab/vendor/bundle/ruby/2.0.0 which is owned by the gitlab user, how can i do that?
pskosinski_ has joined #ruby
fgo has joined #ruby
banisterfiend has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
soukihei has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
macmartine has quit [Remote host closed the connection]
jonshannow has joined #ruby
Mars` has quit [Remote host closed the connection]
drag00n has joined #ruby
Mars` has joined #ruby
Mars`_ has joined #ruby
tylersmith has quit [Ping timeout: 241 seconds]
<jonshannow> I'm new to Ruby... in Python one can do "zip(a, b, c)" without an object on the LHS, so I could write "a.zip b, c" - but how would I do this if I didn't have an object? "[].zip a, b, c" won't work - I'm not sure what search terms to use here either...
shoMo has joined #ruby
<bnagy> what are a, b and c?
<momomomomo> sounds like they must be arrays if you're using Array#zip
pwh has joined #ruby
adjo has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
<jonshannow> Okay, toy example: I have "data = 1..11" and "labs = 'ABACDCADBCB'.each_char" - I want to zip them together as input to Hash
zastern has quit []
Mars`_ has quit [Ping timeout: 240 seconds]
<bnagy> >> Hash[(1..11).zip('ABACDCADBCB'.chars)]
<eval-in> bnagy => {1=>"A", 2=>"B", 3=>"A", 4=>"C", 5=>"D", 6=>"C", 7=>"A", 8=>"D", 9=>"B", 10=>"C", 11=>"B"} (https://eval.in/68991)
<havenwood> >> data = *1..11; labs = 'ABACDCADBCB'.chars; data.zip labs
<eval-in> havenwood => [[1, "A"], [2, "B"], [3, "A"], [4, "C"], [5, "D"], [6, "C"], [7, "A"], [8, "D"], [9, "B"], [10, "C"], [11, "B"]] (https://eval.in/68992)
<havenwood> oh, as a hash
Ox6abe has quit [Remote host closed the connection]
G has quit [Ping timeout: 245 seconds]
iszak has quit [Quit: Page closed]
maletor has quit [Quit: Computer has gone to sleep.]
<jonshannow> I had "Hash[data.zip labs]" which is fine... but what I want to know is... What if I had a list of [a, b, c] which are the items to be zipped... Is there a sort of `Array.zip a, b, c` which takes generic enumerables and gives me a list
Ox6abe_ has joined #ruby
Liquid-- has joined #ruby
G has joined #ruby
<bnagy> no, you call it on the first collection
olivier_bK has quit [Ping timeout: 252 seconds]
<momomomomo> >> data = Hash(*1..11; labs = 'ABACDCADBCB'.chars; data.zip labs)
<eval-in> momomomomo => /tmp/execpad-c4585ed822d4/source-c4585ed822d4:2: syntax error, unexpected ';', expecting ')' ... (https://eval.in/68993)
Guest42514 is now known as bassclef
bassclef is now known as Guest6137
<havenwood> jonshannow: So you don't want a Hash as the output? You want arbitrary sized Arrays? Or something else?
Guest6137 is now known as fluffheadsr
iliketurtles has quit [Ping timeout: 260 seconds]
jcarouth has quit [Ping timeout: 252 seconds]
Barrin6 has joined #ruby
Ox6abe__ has joined #ruby
xk_id has quit [Quit:
iamjarvo has quit [Remote host closed the connection]
Ox6abe_ has quit [Ping timeout: 245 seconds]
<jonshannow> havenwood: I think I'm just after if I have "a" and "b" is there a way to zip them such as Array.zip a, b - or do I always have to have an object on the left, so that it's "a.zip b"...
weems has quit [Read error: Connection reset by peer]
Ox6abe has joined #ruby
weems has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
delinquentme has quit [Ping timeout: 252 seconds]
<bnagy> ruby is consistently OO, so #zip is a method on a collection instance
zeeraw has joined #ruby
<bnagy> there's no 'naked' zip
Ox6abe_ has joined #ruby
<havenwood> jonshannow: In the case of #zip, yeah, you'd have to backbend a bit:
<havenwood> >> [[*1..3], [*?a..?c], [*?x..?z]].inject(:zip).map &:flatten
<eval-in> havenwood => [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]] (https://eval.in/68994)
<bnagy> eh?
<bnagy> >> [1,2].zip [3,4], [5,6]
<eval-in> bnagy => [[1, 3, 5], [2, 4, 6]] (https://eval.in/68995)
<havenwood> bnagy: i mean if you wanna not do it that sane way
<havenwood> :P
<bnagy> well you're still calling zip as an instance method there
<bnagy> it's just not as obvious
Ox6abe__ has quit [Ping timeout: 264 seconds]
<bnagy> obviously :)
<jonshannow> So given: `d = [[1,2], [3, 4], [5, 6]]` - I just work around it and use: `print d[0].zip *d[1..d.size]` then ?
lukec has joined #ruby
akonny has quit [Quit: akonny]
maletor has joined #ruby
jcarouth has joined #ruby
Ox6abe has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
<bnagy> you could make it prettier, but yeah
Ox6abe_ has quit [Ping timeout: 252 seconds]
<jonshannow> bnagy: open to "prettier" options :)
<bnagy> >> d=[[1,2],[3,4], [5,6]]; a,*rest = d; a.zip *rest
<eval-in> bnagy => [[1, 3, 5], [2, 4, 6]] (https://eval.in/68996)
<havenwood> >> head, *tail = [[1,2], [3, 4], [5, 6]]; head.zip *tail
<eval-in> havenwood => [[1, 3, 5], [2, 4, 6]] (https://eval.in/68997)
<havenwood> bnagy: you beat me to it :P
<havenwood> splat
* bnagy buffs fingernails
Ox6abe has joined #ruby
<bnagy> btw in that special case...
<bnagy> >> [[1,2],[3,4], [5,6]].transpose
<eval-in> bnagy => [[1, 3, 5], [2, 4, 6]] (https://eval.in/68998)
<bnagy> because matricies
<jonshannow> I had noticed that, but I'm not going to have equal sized things... in fact, ideally I'd like a zip that stopped on shortest enumerable but... one step a time
<bnagy> zip will
<bnagy> >> [1,2,3].zip [1,2,3,4,5]
<eval-in> bnagy => [[1, 1], [2, 2], [3, 3]] (https://eval.in/68999)
<benzrf> woop
<benzrf> i finished my sokoban program
<benzrf> ...IN HASKELL
<bnagy> jonshannow: just sort your collections by size
* benzrf cackles maniacally
<bnagy> and call zip on the shortest
capicue has joined #ruby
<jonshannow> bnagy: that's what I thought... what if I'm using iterables only though... so don't have a size...
Ox6abe has quit [Ping timeout: 272 seconds]
<bnagy> you'll just have to reject results that contain nil I guess
<havenwood> jonshannow: Enumerables have a size.
<havenwood> jonshannow: Use a new Ruby. :P
<havenwood> >> 1.upto(3).size
<eval-in> havenwood => 3 (https://eval.in/69000)
Ox6abe has joined #ruby
<havenwood> >> [1,2,3].cycle(3).size
<eval-in> havenwood => 9 (https://eval.in/69001)
<bnagy> >> (1..2**96).size
<eval-in> bnagy => 79228162514264337593543950336 (https://eval.in/69002)
<jonshannow> havenwood: so you're telling me that a file has a size... strange, thought I could enumerate over those a line at a time :)
<bnagy> huh. definitely need to move to 2 :P
fgo has quit [Ping timeout: 252 seconds]
Zesty has joined #ruby
<havenwood> >> 1.upto(Float::MAX * 1.0000000000000001).size
<eval-in> havenwood => 0 (https://eval.in/69003)
<havenwood> >> 1.upto(Float::MAX * 1.000000000000009).size
<eval-in> havenwood => Infinity (https://eval.in/69004)
<bnagy> funky
<havenwood> >> Float::MAX * 1.0000000000000001
<eval-in> havenwood => 1.7976931348623157e+308 (https://eval.in/69005)
nateberkopec has joined #ruby
<havenwood> >> Float::MAX * 1.000000000000009
<eval-in> havenwood => Infinity (https://eval.in/69006)
capicue has quit [Ping timeout: 260 seconds]
<havenwood> Where the salt water meets the fresh water.
shvelo has quit [Ping timeout: 245 seconds]
Ox6abe has quit [Ping timeout: 260 seconds]
<havenwood> `1.upto(Float::NAN).size #=> 0` yet `1.upto(Float::NAN) { print 'na' }`...
maletor has quit [Quit: Computer has gone to sleep.]
<havenwood> brackish!
<benzrf> >> Float::Max
<eval-in> benzrf => uninitialized constant Float::Max (NameError) ... (https://eval.in/69007)
<benzrf> >> Float::MAX
<eval-in> benzrf => 1.7976931348623157e+308 (https://eval.in/69008)
<benzrf> >> Float::MAX * 2
<eval-in> benzrf => Infinity (https://eval.in/69009)
<benzrf> huh
<benzrf> >> Infinity
<eval-in> benzrf => uninitialized constant Infinity (NameError) ... (https://eval.in/69010)
<havenwood> jonshannow: its size being the number of lines, but yeah it does have a size ;)
<havenwood> File.open('example.rb').size #=> 55
<jonshannow> So, it has a number of lines, before I've even read anything from it?
<jonshannow> I could understand getting a size as bytes...
Jetchisel has joined #ruby
<MrZYX> havenwood: jonshannow uhm my docs say bytes
<havenwood> MrZYX: oops
<havenwood> return OFFT2NUM(st.st_size)
Mon_Ouie has quit [Ping timeout: 248 seconds]
<gr33n7007h> >> 1.0/0.0
<eval-in> gr33n7007h => Infinity (https://eval.in/69011)
<havenwood> jonshannow: my mistake :O
benzrf has left #ruby [#ruby]
<havenwood> in the case of File, yeah..
Ox6abe has joined #ruby
<jonshannow> So... if I have two files, that are the exact same file size, but have different length rows, such that there are a different numbering of rows, how do I zip those two together to do a row by row comparison, but stop after the shortest file
<bnagy> are they gigantic?
<jonshannow> If one was really small, it looks like I could do [*smaller_file].zip larger_file
simoz has quit [Ping timeout: 264 seconds]
<bnagy> cause if not then use each_line.to_a and then sort_by(&:size)
<jonshannow> bnagy: basically, I'd like to take each line at a time... (smallish... but they won't fit in ram)
<bnagy> or read I think reads into line array
<bnagy> sorry read_lines
<MrZYX> File.readlines actually
pskosinski_ has quit [Quit: Til rivido Idisti!]
<havenwood> jonshannow: first, second = File.readlines(a), File.readlines(b)
perow has joined #ruby
<bnagy> no underscore
vlad_starkov has quit [Remote host closed the connection]
<havenwood> size from array will work better than my make-believe version
<jonshannow> that loads into an array though? Can I avoid that so I only get one line at a time
vlad_starkov has joined #ruby
<havenwood> readline
<jonshannow> So, I loop and call readline until one of 'em stops I guess
<MrZYX> note that readline raises EOFError
<MrZYX> gets is the equivalent that returns nil
<bnagy> that's basically a lazy version of zip - ie yes, it will work
<havenwood> MrZYX: ooh, good point
<havenwood> MrZYX: #gets is nicer here
lmmx has left #ruby ["Leaving"]
Ox6abe has quit [Ping timeout: 252 seconds]
<jonshannow> bnagy: Right... so there's not a lazy version of zip at all?
<bnagy> blah = handles.map(&:gets); break unless blah.all?
sambao21 has joined #ruby
<bnagy> well it's not the laziness you want, it's the special case of stopping as soon as any collection runs out
<bnagy> like zip is on Enumerable, so it's already lazy
gazarsgo has quit [Quit: gazarsgo]
<jonshannow> Well, I'd like both :) Not being lazy will kill my machine...
<bnagy> it's going to be easier to just write is, as above - it's like one line
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<jonshannow> Rightio... think I've got it ... at least I can get stuff done, and come back to notes to look at more stuff later
<jonshannow> Thanks
aspires has joined #ruby