apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
sdouglas has quit [Remote host closed the connection]
auxbuss has joined #ruby
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby
atmosx has quit [Quit: Lost in trance]
andrewlio1 has quit [Quit: Leaving.]
blackmes1 has quit [Ping timeout: 240 seconds]
jquave has quit [Quit: jquave]
blackmes1 has joined #ruby
Villadelfia has quit [Quit: Computer has gone to sleep.]
Atw has joined #ruby
creede has joined #ruby
auxbuss has quit [Client Quit]
Villadelfia has joined #ruby
Villadelfia has quit [Client Quit]
mehlah has joined #ruby
Tamae has joined #ruby
GaryOak_ has quit [Ping timeout: 240 seconds]
dgaffney has quit [Ping timeout: 240 seconds]
dstynchula has quit []
funburn has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
jjbohn_ has quit [Quit: Leaving...]
tewlz has quit [Ping timeout: 240 seconds]
circuit has joined #ruby
davy_ has quit [Remote host closed the connection]
snath has joined #ruby
pietr0 has quit [Quit: pietr0]
funburn has joined #ruby
b00stfr3ak has quit [Ping timeout: 246 seconds]
kaen has joined #ruby
ikaros has quit [Quit: Ex-Chat]
rebelshrug has quit []
rakm has quit [Quit: Connection closed for inactivity]
<kaen> I get "syntax error, unexpected ',', expecting keyword_end" on line 10 here: http://pastie.org/8952095
<kaen> I'm obviously a massive newb, can anyone school me?
funburn has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
nateberkopec has quit [Quit: Leaving...]
juarlex has quit [Remote host closed the connection]
<bnagy> you're making one big method call
montyboy has joined #ruby
<bnagy> method args are meth( arg, arg, arg )
<bnagy> oh.. ugh.. no wait.. what
<bnagy> is that .where supposed to be at the end of the method?
mikecmpbll has quit [Quit: i've nodded off.]
philcris_ has joined #ruby
sdouglas has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
<kaen> it's supposed to be chained
funburn has joined #ruby
<kaen> does ruby not like that?
_justin has joined #ruby
<benzrf> kaen: it parses on my end
<kaen> wtf
<benzrf> kaen: what version of ruby do you have
<bnagy> well I don't like it, but even if ruby hated it it would be a different syntax error
Al__ has quit [Quit: Al__]
<kaen> ruby 2.0.0p299 (2013-08-29) [x86_64-linux-gnu]
<centrx> Shouldn't the dots be at the end of the last line, not the beginning of the next line?
<benzrf> perhaps it is the code it is surrounded by
AussieDownUnder has joined #ruby
<benzrf> maybe you left off something earlier and it is confused
<benzrf> try pasting just that into pry
<benzrf> or irb
cj3kim has quit [Ping timeout: 265 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
<bnagy> I thought method chains always had to be flush, but it seems not :<
philcrissman has quit [Ping timeout: 246 seconds]
<bnagy> >> 'a' .upcase
<eval-in> bnagy => "A" (https://eval.in/123346)
MatthewsFace has quit [Quit: This computer has gone to sleep]
<bnagy> I so sad now :(
<pipework> bnagy: 'flush'?
<benzrf> >tfw ruby's syntax is even more bananas than you thought
<benzrf> pipework: flush means aligned to something, sorta
<benzrf> or fully against it
x1337807x has quit [Ping timeout: 265 seconds]
<pipework> Oh you mean the receiver and the message should be next to each other rather than spaced apart.
<benzrf> without a gap
tylersmith has quit [Remote host closed the connection]
<bnagy> I am definitely surprised that it works with a newline
<pipework> I was more confused by 'method chains' and 'flush' than the definition of the word.
<bnagy> but hey. DSLs
<bnagy> but anyway that would be 'unexpected .' not unexpected ,'
_justin has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
BuSerD has quit [Quit: Sleepy time! ZZZzzz…]
lw has joined #ruby
nwertman has quit [Ping timeout: 265 seconds]
ffranz has quit [Quit: Leaving]
YamakasY has quit [Quit: The best revenge is massive success...]
YamakasY has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nanoyak has joined #ruby
vlad_starkov has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
dzhulk has quit [Quit: Leaving.]
_lynX has joined #ruby
x77686d has joined #ruby
kh019267 has joined #ruby
kh019267 has quit [Max SendQ exceeded]
mmoretti has quit [Quit: Leaving...]
yubrew has joined #ruby
kh019267 has joined #ruby
BeingUntoDeath has joined #ruby
funktor has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
tewlz has joined #ruby
<RubyPanther> 'foo' .
<RubyPanther> +'bar'
<RubyPanther> <3 <3 <3 Ruby
<wallerdev> o.o
<benzrf> more like <3< <3< <3< RubyPanther
<benzrf> *ruby
<wallerdev> ‘foo’ ‘bar’
Elico has left #ruby [#ruby]
edwardly has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
treaki__ has quit [Ping timeout: 264 seconds]
endash_ has joined #ruby
mikepack has joined #ruby
edwardly has joined #ruby
teddyp1cker has joined #ruby
<kaen> gah wtf is going on
<kaen> rails c doesn't seem to choke on it
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
confounds has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
dorei has quit []
Tamae has quit [Ping timeout: 265 seconds]
YamakasY has quit [Remote host closed the connection]
endash has quit [Ping timeout: 264 seconds]
endash_ is now known as endash
yokel has quit [Remote host closed the connection]
montyboy has joined #ruby
jjbohn has joined #ruby
lolmaus has joined #ruby
yokel has joined #ruby
jonathanwallace has quit [Quit: ZNC - http://znc.in]
treaki__ has joined #ruby
predator217 has joined #ruby
chipotle_ has joined #ruby
moneydouble has quit [Quit: Leaving.]
jamto11 has quit [Remote host closed the connection]
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Shidash has joined #ruby
toastynerd has joined #ruby
sparrovv has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 264 seconds]
fgo has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
Davey is now known as Eomar
nanoyak has quit [Quit: Computer has gone to sleep.]
xiphiasx_ has quit [Remote host closed the connection]
xiphias has joined #ruby
TigerWolf has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
rvraghav93 has quit [Read error: No route to host]
razrunelord has quit []
bradhe has quit [Remote host closed the connection]
Nahra has quit [Quit: leaving]
jlast has joined #ruby
smathieu has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
nwertman has joined #ruby
smathieu has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
ga1j1n has joined #ruby
i_s has joined #ruby
dingus_khan has joined #ruby
lethjakman has joined #ruby
kitak has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
nwertman has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
Zunonia__ has joined #ruby
timonv has joined #ruby
sdouglas has quit [Remote host closed the connection]
rvraghav93 has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
lyanchih has joined #ruby
<agent_white> >> puts "\u2299 \u1229 \u2299"
<eval-in> agent_white => ⊙ ሩ ⊙ ... (https://eval.in/123347)
robustus has joined #ruby
moneydouble has joined #ruby
danshultz has joined #ruby
nfk has quit [Quit: yawn]
sdouglas_ has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
michaelchum has joined #ruby
samuel02 has joined #ruby
<benzrf> agent_white:
<benzrf> ( ͡° ͜ʖ ͡°)
hugoxrosa has joined #ruby
Azure has joined #ruby
<agent_white> benzrf: utf-8 ✔ ;D
jjbohn has quit [Quit: Leaving...]
afex has quit [Ping timeout: 240 seconds]
mlpinit has quit [Remote host closed the connection]
njs126 has quit [Ping timeout: 252 seconds]
afex has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
samuel02 has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
sonicbee has quit [Quit: Leaving.]
amclain has joined #ruby
rakm has joined #ruby
nichtdiebohne1 has joined #ruby
redlines has quit [Ping timeout: 240 seconds]
duggiefresh has quit [Remote host closed the connection]
redlines has joined #ruby
mansi has joined #ruby
rezzack has quit [Ping timeout: 240 seconds]
nichtdiebohne has quit [Ping timeout: 240 seconds]
macclearich has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
irishcoder4 has joined #ruby
funktor has quit [Remote host closed the connection]
wjlafrance has joined #ruby
crystal77 has joined #ruby
funktor has joined #ruby
nateberkopec has joined #ruby
rm_ has quit [Remote host closed the connection]
yubrew has joined #ruby
<agent_white> >> `uname -a`
<eval-in> agent_white => (https://eval.in/123348)
zachallett has joined #ruby
rm__ has joined #ruby
<agent_white> Hahah I was curious if that was blocked... :D
nwertman has joined #ruby
larissa has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
njs126 has joined #ruby
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
<shevy> you hacker
aspires has joined #ruby
SidWu has joined #ruby
jobewan has joined #ruby
<agent_white> such h4x
rm__ has quit [Ping timeout: 240 seconds]
funktor has quit [Ping timeout: 269 seconds]
fgo has quit [Ping timeout: 269 seconds]
yubrew has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
<irishcoder4> Does anyone have a favorite lib for css selectors and xpath?
snath has quit [Ping timeout: 240 seconds]
<benzrf> nokogiri seems like what everyone uses
ctruett has joined #ruby
paulfm has quit []
<irishcoder4> Ok, that is what I'm seeing everywhere. Thanks.
snath has joined #ruby
i_s has quit [Remote host closed the connection]
bricker`LA has joined #ruby
i_s has joined #ruby
<bricker`LA> What do you guys set the version number to on the development branch? I've been trying to keep it at the "next" version but that ends up getting way too confusing.
Rober9393 has quit [Quit: Computer has gone to sleep.]
<bnagy> I use whatever it would be
arya_ has joined #ruby
<bnagy> like if next is going to be 2.2 and master is 2.1 then.. use 2.2
chrisseaton has quit []
<pipework> bricker`LA: I typically only change version numbers on my release branch, whatever that is.
<pipework> Until then, I don't usually bump in my development branches.
wallerdev has quit [Quit: wallerdev]
postmodern has quit [Quit: Leaving]
Celm has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
brain_shim has joined #ruby
nateberkopec has quit [Quit: Leaving...]
i_s has quit [Ping timeout: 240 seconds]
TigerWolf has joined #ruby
Celm has joined #ruby
thomasxie has joined #ruby
kh019267 has quit [Quit: Textual IRC Client: www.textualapp.com]
Doppp has quit [Ping timeout: 252 seconds]
mjs2600 has quit [Remote host closed the connection]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
danno1 has quit [Ping timeout: 240 seconds]
chrisseaton has joined #ruby
rm__ has joined #ruby
mikepack has joined #ruby
Celm has quit [Remote host closed the connection]
zxq9 has quit [Quit: Konversation terminated!]
chrisseaton has quit [Client Quit]
zxq9 has joined #ruby
Robbo_ has joined #ruby
<Robbo_> what is the main used deployment script for ruby?
mlpinit has joined #ruby
<Robbo_> as in running shh tasks
<Robbo_> ssh even
AussieDownUnder has quit [Remote host closed the connection]
blackjid has joined #ruby
SCommette has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
<centrx> Robbo_, huh?
<Robbo_> nvm
<blackjid> Hi! How can I hide the cursos in the command line with ruby? I tried Curses::curs_set(0) but that clears up the whole screen... any other approach?
funktor has joined #ruby
jgrevich has joined #ruby
sdouglas has joined #ruby
paulfm has joined #ruby
nwertman has quit [Ping timeout: 264 seconds]
sdouglas_ has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
saarinen has quit [Quit: saarinen]
bynaryshef has quit []
funktor has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
SonicX has joined #ruby
culturelabs_ has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
mroth has quit [Read error: Connection reset by peer]
jgrevich has quit [Ping timeout: 240 seconds]
mroth__ has joined #ruby
culturelabs_ has joined #ruby
<bnagy> not sure what you're asking
hyperreal has joined #ruby
<bnagy> you mean in irb, or you mean for a running ruby program?
tylersmith has joined #ruby
ephemerian has quit [Ping timeout: 246 seconds]
hamakn has quit [Remote host closed the connection]
jgrevich has joined #ruby
endash has quit [Quit: endash]
axsuul has joined #ruby
nwertman has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
Solnse has quit [Ping timeout: 246 seconds]
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
danno1 has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
snath has quit [Ping timeout: 264 seconds]
ga1j1n has quit [Remote host closed the connection]
ga1j1n has joined #ruby
endash has joined #ruby
<blackjid> bnagy I'm writing a CLI tool with ruby
<pipework> Have you considered extending the acronym one more letter to the right?
<bnagy> blackjid: ok well ruby doesn't produce any 'cursors' by itself
<bnagy> anyway, afaik your only real options are line-by-line demand and parse, which is ( from memory ) highline and friends
zachallett has quit [Remote host closed the connection]
<bnagy> next you can just extend an existing REPL like irb or pry
ga1j1n has quit [Ping timeout: 264 seconds]
<bnagy> finally you have to own the whole terminal with eg curses, but imvho that approach is for the birds
<pipework> bnagy: It sure produced cursers though. :D
Hanmac has joined #ruby
circuit has quit [Quit: leaving]
zachalle_ has joined #ruby
<bnagy> I've used termbox from Go, but not from ruby.. I liked it though
<bnagy> anyway it's easier to write a basic GUI than a curses TUI
<pipework> bnagy: Yeah, but unless it's a TUI, who cares? :D
hamakn has joined #ruby
<bnagy> QQ
lethjakman has quit [Ping timeout: 240 seconds]
<pipework> ZZ
<bnagy> pff vim heretics
Hobogrammer has joined #ruby
<pipework> :D
<popl> The 1990s called, they want their controversy back.
toastynerd has quit [Remote host closed the connection]
<pipework> :!apt-get purge emacs
Hanmac1 has quit [Ping timeout: 246 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
<pipework> popl: It's a war for the ages.
<bnagy> true story - my first 6 months of using sublime I would end up with :w littered throughout my code
<bnagy> popl: I'm actually arguing about ZZ vs wq not vim vs world
wallerdev has joined #ruby
<bnagy> so it's a micro-controversy
samuel02 has joined #ruby
<blackjid> i'm using io/console to write and get input from stdin and stdout, also to getch from user
<bnagy> yeah that approach is what the highline family of gems is for
<bnagy> it also sucks, imho, but enjoy
x77686d has quit [Quit: x77686d]
<bnagy> there's another family that is made for adding your stuff to eg irb, so you get to leverage the REPL which is a LOT of the shitty heavy lifting
<bnagy> but I can't remember what they're called :/
alvaro_o has quit [Quit: Ex-Chat]
Steve445 has joined #ruby
<bnagy> blackjid: what does the app actually do?
<blackjid> really I'm working on top of this https://github.com/arlimus/inquirer.rb is a ruby port from inquirer.js which is a very nice library to have interactive user promts
<popl> bnagy: There are probably splinter sects waging war about that
<popl> .
samuel02 has quit [Ping timeout: 265 seconds]
<popl> Instead of shelling out I usually just ctrl-z.
Solnse has joined #ruby
<popl> unless I need to filter something
<blackjid> I want to add some funcionality, and one thing I want to do is to hide the cursor while I'm in a prompt that expect to selection from options with arrow keys
yubrew has joined #ruby
<popl> blackjid: are you using curses?
lyanchih has quit [Quit: lyanchih]
<blackjid> I tryied that, but I don't know why when I set curs_set 0 the whole screen is cleared
<popl> strace it
Solnse has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
<bnagy> your thing is just term-ansicolor with some small wrapping
MatthewsFace has quit [Quit: This computer has gone to sleep]
<bnagy> I don't know how that is going to mix with curses
freerobby has joined #ruby
<popl> oh. I didn't look at his code.
yubrew has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
tewlz has quit [Ping timeout: 265 seconds]
nwertman has quit [Ping timeout: 240 seconds]
Solnse has joined #ruby
fgo has joined #ruby
<bnagy> I am in twisty gemspec dependency tracing hell :P
<popl> I'd rather be sailing.
<bnagy> ahh ok cool
beneggett has joined #ruby
<bnagy> popl: I'm going on Sunday :)
crystal77 has quit [Quit: Computer has gone to sleep.]
<bnagy> that's kind of cute.. his re-render is just a bunch of \e[A and then reprit
<bnagy> that looks super easy to extend blackjid
<popl> bnagy: No kidding?
fgo has quit [Ping timeout: 265 seconds]
<popl> bnagy: What sort of ship?
<bnagy> popl: mate's yacht
<popl> fancy
<bnagy> they have races out here every month or so
<bnagy> well it's not a very fancy yacht
<popl> Do you have to wear a sweater vest or do they provide one?
<bnagy> mainly an excuse to get out, sail a bit, then drink beer
<bnagy> hahah it's definitely not like that out here
<bnagy> the yachties all dress like hobos
duggiefresh has joined #ruby
<popl> Where's here?
<bnagy> marshall islands
arya_ has quit [Ping timeout: 264 seconds]
<blackjid> mmm, I was thinkning to add to that iohelper.rb something that hides the cursos bnagy
snath has joined #ruby
<bnagy> aka middle of nowhere
<bnagy> blackjid: he's not doing any curses
<popl> bnagy: middle of nowhere has its perks.
mercwithamouth has joined #ruby
<bnagy> curses approach you have to own the screen
crystal77 has joined #ruby
<bnagy> all he's doing is using ansi seqs
<bnagy> which is why no windows support etc
<bnagy> 'jump up 5 lines, then draw the prompt again'
maximski has quit []
lyanchih has joined #ruby
<popl> bnagy: Holy shit.
<popl> bnagy: You are in the middle of the water.
<blackjid> ok I understand, but how can I hide the cursor?? I mean the caret??
<bnagy> so if you press down to select the next checkbox it just re-renders and draws that one as selected now
<bnagy> blackjid: just take a look at the code
ctruett has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> I don't know which caret you are talking about, but whoever wrote that gem knows how to lay stuff out - like I 'get' it after only a quick look
postmodern has joined #ruby
<popl> bnagy: Is the shark sanctuary as cool as it sounds?
yfeldblu_ has quit [Ping timeout: 240 seconds]
<bnagy> popl: yeah, it is a very weird place
<blackjid> mmm
<bnagy> well it's not like a sanctuary you go and see
<popl> right
<bnagy> it's just 'not allowed to kill sharks'
<popl> right
<popl> I wonder if the sharks figured that out.
<blackjid> if you git clone git@github.com:arlimus/inquirer.rb.git
<bnagy> blackjid: can you give me an example based on the screenshots on the gem or something, or describe exactly how your hide behaviour is different from what it does now?
<blackjid> and then run uby -Ilib example/list.rb
<bnagy> I can see the example png
<blackjid> your are going to get the same as the screenshot for the list prompt but with a new line with a white rectangle
krz has joined #ruby
<bnagy> ok, so like a waiting-for-input
<blackjid> right!
<blackjid> I want to hide that..
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
teddyp1cker has joined #ruby
maximski has joined #ruby
<bnagy> I guess it must be part of the list ask
<bnagy> looks like it's just the footer
maximski has quit [Client Quit]
<bnagy> wait are you sure it's not YOUR terminal's prompt?
<bnagy> eg mine colors the current terminal cursor position
<blackjid> mm, maybe... I mean, probably...
yfeldblum has joined #ruby
<bnagy> like all I can see as a default footer is ' '
tectonic has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
aspires has quit []
<bnagy> ugh no it's not even, it's a 0 length string
danshultz has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Ping timeout: 265 seconds]
mlpinit has joined #ruby
<bnagy> ok now I think I know what's going on at least
axsuul has joined #ruby
<blackjid> yea?
<bnagy> yeah, it's your terminal drawing that
<bnagy> the curses approach is going to be just sending the correct ansi codes
confounds has joined #ruby
<bnagy> so you only need curses to save you all the pain in the ass of getting $TERM and working out which code to send
nwertman has joined #ruby
thomasxie has quit [Ping timeout: 265 seconds]
<bnagy> like ^[25l or whatever
funktor has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
jlast has quit [Remote host closed the connection]
<bnagy> wonder if you can stty
<blackjid> So, I don't know if I fully understand... Can I control whats being drawn by my terminal from withing that ruby script??
mostlybadfly has quit [Quit: Connection closed for inactivity]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
sk_keeper has joined #ruby
samuel02 has joined #ruby
jmeeuwen has joined #ruby
<blackjid> there is a line thats doing system "stty #{old_state}"
<blackjid> iohelper:50
<bnagy> blackjid: this might work...
<bnagy> you can use tput to get the right code
<bnagy> `tput civis`
<bnagy> => "\e[?25l"
<bnagy> (for me)
<bnagy> try in irb
<bnagy> do print (whatever string you get) or just print `tput civis`
<bnagy> but remember that will turn it off for that whole terminal session, until you turn it back on
fgo has joined #ruby
<blackjid> irb(main):001:0> `tput civis`
<blackjid> => "\e[?25l"
timonv has joined #ruby
skkeeper has quit [Ping timeout: 260 seconds]
<bnagy> yeah.. you need to print that though
<bnagy> to send it to the terminal
randomnick_ has quit [Quit: Leaving]
saarinen has joined #ruby
samuel02 has quit [Ping timeout: 265 seconds]
<blackjid> wow!
<blackjid> it dissapead
<blackjid> !
dkamioka has joined #ruby
<bnagy> turn it back on with the same process but cnorm
danno1 has quit [Ping timeout: 269 seconds]
<blackjid> wow!... thanks!!!
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blackjid> civis is cursor invisible?? and cnorm cursor normar??
<bnagy> I can't vouch for the avilability of tput on every *nix, but I think your odds are good
dgaffney has joined #ruby
<blackjid> why does this work???
derek_c has quit [Ping timeout: 240 seconds]
<bnagy> it's two parts
<bnagy> tput tells you the ansi escape code needed for your current $TERM
<bnagy> apparently we're both on vt100-ish
<bnagy> then printing that escape code first gets read by the terminal ( that's what escapes are ) and parsed as a special-thing
sdouglas has quit [Remote host closed the connection]
funktor has quit [Remote host closed the connection]
duggiefresh has quit []
Spami has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 240 seconds]
<bnagy> so instead of blatting that char to stdout it parses it and does what you asked, which is make the cursor invisible
sdouglas has joined #ruby
funktor has joined #ruby
<bnagy> \r or \n are the same
<bnagy> just less spectacular
<blackjid> right... :)
<blackjid> hey thanks!!!
<bnagy> no worries, TIL about tput, so that's a win
moneydouble has quit [Quit: Leaving.]
axsuul has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
Spami has joined #ruby
pu22l3r has joined #ruby
<blackjid> when I finish my pull request to inquirer.rb I'll let you know if I found you here... :) thanks again!..
ga1j1n has joined #ruby
zachalle_ has quit [Remote host closed the connection]
funktor has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
marcdel has quit []
freerobby has quit [Quit: Leaving.]
greenride has joined #ruby
linojon has joined #ruby
alexju has joined #ruby
kitak_ has joined #ruby
jhn_ has joined #ruby
sdouglas has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby
noop has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
dgaffney has quit [Remote host closed the connection]
yubrew has joined #ruby
dgaffney has joined #ruby
tewlz has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
confounds has quit []
alexju has quit [Remote host closed the connection]
mauro has joined #ruby
nari has joined #ruby
dgaffney has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 240 seconds]
ga1j1n has quit [Remote host closed the connection]
x77686d has joined #ruby
ga1j1n has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
AussieDownUnder has joined #ruby
afex has quit [Ping timeout: 264 seconds]
ga1j1n has quit [Ping timeout: 265 seconds]
Steve445 has quit [Quit: Steve445]
alexju has joined #ruby
axsuul has joined #ruby
bradhe has joined #ruby
thomasxie has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
SidWu has quit [Quit: Textual IRC Client: www.textualapp.com]
mansi has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
irishcoder4 has quit [Remote host closed the connection]
twiceaday has joined #ruby
Cache_Money has joined #ruby
jefflyne has quit [Ping timeout: 246 seconds]
rvraghav93 has quit [Ping timeout: 265 seconds]
mansi has quit [Remote host closed the connection]
blom has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
blom has joined #ruby
pu22l3r has joined #ruby
jefflyne has joined #ruby
IceDragon has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
radic_ has joined #ruby
marcdel has joined #ruby
blom has quit [Ping timeout: 240 seconds]
cover has joined #ruby
noop has quit [Ping timeout: 240 seconds]
nwertman has quit [Quit: WeeChat 0.4.2]
thomasxie has joined #ruby
Solnse has quit [Ping timeout: 240 seconds]
mlpinit has joined #ruby
seggy has joined #ruby
Solnse has joined #ruby
yacks has joined #ruby
bbloom has joined #ruby
agent_white has quit [Quit: brb]
mlpinit has quit [Ping timeout: 240 seconds]
segmond has quit [Ping timeout: 246 seconds]
toastynerd has quit [Remote host closed the connection]
bradhe_ has joined #ruby
Mongey has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
Karpuragauram has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 265 seconds]
Vivekananda has quit [Ping timeout: 265 seconds]
samuel02 has joined #ruby
evenix has joined #ruby
bradhe has joined #ruby
xcv_ has quit [Remote host closed the connection]
Karpuragauram has joined #ruby
Vivekananda has joined #ruby
m104 has joined #ruby
kobain has quit [Ping timeout: 265 seconds]
Mongey has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
samuel02 has quit [Ping timeout: 240 seconds]
bradhe_ has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
larissa has quit [Quit: Leaving]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evenix has quit [Ping timeout: 264 seconds]
braincrash has quit [Quit: bye bye]
fgo has joined #ruby
stupidystupid has joined #ruby
pu22l3r has quit [Remote host closed the connection]
braincrash has joined #ruby
evenix has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
yubrew has joined #ruby
dingus_khan has joined #ruby
Astralum has joined #ruby
mary5030 has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
seggy has quit [Ping timeout: 240 seconds]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
yubrew has quit [Ping timeout: 240 seconds]
agjacome has quit [Quit: leaving]
dgaffney has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
Karpuragauram has quit [Quit: Ex-Chat]
linojon has quit [Quit: linojon]
bradhe has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
bradhe has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
mordof has joined #ruby
JasmeetQA has joined #ruby
sski has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<mordof> I don't really know much of anything about ruby.. only that i've had a number of people recommend i start learning it. I know rails can handle website dev - but i'm curious, what other things generally would fall into Ruby's domain for "what's good to make" with it?
<mordof> at least from what i know, i don't think it's just website stuff - right?
vpretzel has quit [Read error: Connection reset by peer]
charliesome has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
fgo has joined #ruby
vpretzel has joined #ruby
<centrx> mordof, Anything
<centrx> mordof, Not the best for Windows desktop applications
<centrx> mordof, Or high-performance games
seggy has joined #ruby
<mordof> does it compile entirely, or is it similar in a way to a java application (needing run-time stuff)?
MatthewsFace has joined #ruby
<mordof> or interpreted, i suppose is the third option it could be
tectonic has quit []
<centrx> mordof, Ruby is an interpreted language. The default interpreter (MRI) requires the ruby program.
<centrx> mordof, JRuby will do it on the JVM. mruby is a new thing, a limited subset that will compile to C.
<mordof> ahh, ok
<mordof> centrx: good to know, thanks :)
<centrx> There are also things that will compile/translate it to Javascript, etc.
charliesome has joined #ruby
sdouglas has quit [Remote host closed the connection]
byprdct has joined #ruby
sdouglas has joined #ruby
<mordof> odd.. heh
<mordof> that's not referring to Coffeescript in rails though right? you're talking about actually writing normal Ruby and having it spit out js?
<mordof> can't say i trust anything like that, no matter what language it is
mary5030 has quit [Remote host closed the connection]
samuel02 has joined #ruby
agarie has quit [Remote host closed the connection]
Cache_Money has joined #ruby
evenix has quit [Remote host closed the connection]
agarie has joined #ruby
michaeldeol has joined #ruby
Solnse has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
evenix has joined #ruby
mansi has joined #ruby
samuel02 has quit [Ping timeout: 265 seconds]
dingus_khan has quit [Remote host closed the connection]
bradhe has joined #ruby
evenix has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
agent_white has joined #ruby
rabeldable has joined #ruby
gizmore has joined #ruby
lw has quit [Quit: s]
kevinykchan has quit [Read error: Connection reset by peer]
lethjakman has joined #ruby
sdouglas has joined #ruby
timonv has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
mlpinit has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
YamakasY has joined #ruby
irishcoder4 has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
fella5s has joined #ruby
Xiti has quit [Quit: Leaving]
mlpinit has quit [Ping timeout: 240 seconds]
r0nin has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
Mongey has quit [Ping timeout: 240 seconds]
rm__ has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
bradhe_ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
fella6s has quit [Ping timeout: 264 seconds]
sparrovv has joined #ruby
kevinykchan has joined #ruby
irishcoder4 has quit [Ping timeout: 240 seconds]
seggy has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
sdouglas has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
<b00stfr3ak> does any one know if there is a way to clean up the inner case statement in this code https://gist.github.com/b00stfr3ak/9652103
derek_c has joined #ruby
axsuul has joined #ruby
sdouglas has joined #ruby
bradhe_ has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<popl> b00stfr3ak: how about using a dispatch table instead?
sparrovv has quit [Ping timeout: 265 seconds]
Vivekananda has quit [Quit: Ex-Chat]
<b00stfr3ak> centrx: http://opalrb.org/ that's pretty cool
Mongey has joined #ruby
<centrx> Yes, there's even another one too
kevinykc_ has joined #ruby
Eomar is now known as Davey
funburn has quit [Read error: Connection reset by peer]
kaen has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
<b00stfr3ak> popl: looking up dispatch tables
chris_thomson has quit [Quit: Zzz...]
JasmeetQA has quit [Read error: Connection reset by peer]
blom has joined #ruby
yubrew has joined #ruby
kitak_ has quit [Remote host closed the connection]
kevinykc_ has quit [Read error: Connection reset by peer]
r0nin has quit [Remote host closed the connection]
kevinykchan has quit [Ping timeout: 264 seconds]
hobodave has joined #ruby
bradhe has joined #ruby
kevinykchan has joined #ruby
thomasxie has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
JBreit has joined #ruby
george2 has quit [Quit: No Ping reply in 180 seconds.]
george2 has joined #ruby
dgaffney has quit [Ping timeout: 240 seconds]
frem has quit [Quit: Connection closed for inactivity]
JBreit has left #ruby ["Leaving"]
endash has quit [Read error: No route to host]
seggy has joined #ruby
sdouglas has quit [Remote host closed the connection]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
sdouglas has joined #ruby
SidWu has joined #ruby
root_empire has quit [Remote host closed the connection]
endash has joined #ruby
makara has joined #ruby
SCommette has quit [Quit: SCommette]
sdouglas_ has joined #ruby
cover has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
sdouglas has quit [Ping timeout: 264 seconds]
Celm has joined #ruby
mostlybadfly has joined #ruby
aagdbl has joined #ruby
lethjakman has quit [Ping timeout: 264 seconds]
rabeldable has quit [Quit: Leaving.]
Cache_Money has quit [Quit: Cache_Money]
thomasxie has joined #ruby
vlad_starkov has joined #ruby
Celm has quit [Remote host closed the connection]
Celm has joined #ruby
george2 has quit [Ping timeout: 264 seconds]
r0nin has joined #ruby
mrnugget has joined #ruby
Celm has quit [Remote host closed the connection]
mansi has joined #ruby
kobain has joined #ruby
lethjakman has joined #ruby
amclain has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
r0nin has quit [Ping timeout: 265 seconds]
greenride has left #ruby [#ruby]
mansi has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
mary5030 has joined #ruby
mercwithamouth has joined #ruby
JasmeetQA has joined #ruby
juarlex has joined #ruby
lyanchih has quit [Quit: lyanchih]
mary5030 has quit [Ping timeout: 264 seconds]
mlpinit has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas_ has quit [Remote host closed the connection]
userx has quit [Ping timeout: 240 seconds]
irishcoder has joined #ruby
seggy is now known as segmond
mlpinit has quit [Ping timeout: 265 seconds]
m104 has quit [Quit: brb]
Shidash has quit [Ping timeout: 264 seconds]
george2 has joined #ruby
x1337807x has joined #ruby
irishcoder has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
yubrew has joined #ruby
coder_neo has joined #ruby
blom has quit [Remote host closed the connection]
_justin has joined #ruby
coder_neo has quit [Client Quit]
centrx has quit [Quit: All this computer hacking is making me thirsty]
Zespre has quit [Quit: leaving]
blom has joined #ruby
m104 has joined #ruby
himsin has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Astralum has quit [Ping timeout: 240 seconds]
dingus_khan has joined #ruby
sdouglas has joined #ruby
Wolland has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
rabeldable has joined #ruby
blom has quit [Ping timeout: 240 seconds]
dzhulk has joined #ruby
Zespre has joined #ruby
ga1j1n has joined #ruby
Gabri has joined #ruby
Gabri has quit [Client Quit]
mrsolo has joined #ruby
ga1j1n has quit [Ping timeout: 240 seconds]
agent_white has quit [Ping timeout: 264 seconds]
dingus_khan has quit [Remote host closed the connection]
<bricker`LA> Can I use %{...} with newlines and ignore whitespace?
<bricker`LA> without gsubbing I mean
samuel02 has joined #ruby
Gabri has joined #ruby
Gabri has quit [Excess Flood]
<popl> Have you tried it?
oso96_2000 is now known as oso|away
Spami__ has joined #ruby
cj3kim has joined #ruby
irishcoder has joined #ruby
toastynerd has quit [Remote host closed the connection]
m104 has quit [Quit: brb]
Gabri has joined #ruby
<bricker`LA> popl: Yes, I have tried some things.
aganov has joined #ruby
Gabri has quit [Client Quit]
endash_ has joined #ruby
samuel02 has quit [Ping timeout: 265 seconds]
irishcoder has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
RyanV has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
juarlex has quit [Remote host closed the connection]
<popl> bricker`LA: I don't think so. Can you just split the string on newlines?
abdulsattar has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
Wolland has quit []
Elhu has joined #ruby
havenwood has joined #ruby
timonv has joined #ruby
cj3kim has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
RyanV has quit [Ping timeout: 265 seconds]
RyanV has joined #ruby
heftig has quit [Quit: Quitting]
senayar has joined #ruby
noop has joined #ruby
Hanmac1 has joined #ruby
tonni has quit [Remote host closed the connection]
r0nin has joined #ruby
Xiti has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
mansi has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lethjakman has quit [Ping timeout: 240 seconds]
ghazi has joined #ruby
Spami__ has quit [Quit: Leaving]
yfeldblu_ has quit [Ping timeout: 264 seconds]
tagrudev has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
mansi has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
funburn has quit [Quit: funburn]
teddyp1cker has joined #ruby
havenwood has quit [Remote host closed the connection]
AussieDownUnder has quit [Remote host closed the connection]
bradhe has joined #ruby
havenwood has joined #ruby
SrPx has quit [Ping timeout: 241 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
arya_ has quit [Ping timeout: 265 seconds]
nomenkun has joined #ruby
<ghazi> hi
<ghazi> I'm looking for someone can convert simple php app to sinatra
Symbiosisz has joined #ruby
Symbiosisz has left #ruby [#ruby]
abdulsattar has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
<popl> ghazi: Have you tried hiring a Ruby developer?
<popl> I'm not sure what the etiquette is regarding that here. There are probably websites that you can post your job offer on.
havenwood has quit [Ping timeout: 240 seconds]
<popl> apeiros: Are job offers allowed in here?
mlpinit has joined #ruby
x77686d has quit [Quit: x77686d]
<apeiros> sure
Xiti has joined #ruby
<popl> ok
sdouglas has quit [Ping timeout: 265 seconds]
<popl> Thanks.
<ghazi> that's good
b00stfr3ak has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<ghazi> i'm just join directly here to ask
yfeldblum has quit [Remote host closed the connection]
toastynerd has joined #ruby
rakm has joined #ruby
yfeldblum has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
<ghazi> popl: have you tips from where get ruby developer
tharindu has joined #ruby
Amart41 has joined #ruby
yubrew has joined #ruby
_justin has quit [Quit: _justin]
abdulsattar has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 241 seconds]
<popl> ghazi: According to apeiros, it's ok to ask in here. So here, or some other job site (like Elance.com).
diegoviola has joined #ruby
<popl> s/other //
abdulsattar_ has joined #ruby
abdulsattar_ is now known as abdulsattar
<ghazi> popl: thnx
<ghazi> I'm looking for someone can convert simple php app to sinatra **
apeiros has quit []
tonni has joined #ruby
<csmrfx> that should be easy
hyperreal has quit [Quit: WeeChat 0.4.3]
yubrew has quit [Ping timeout: 240 seconds]
Amart41 has quit [Ping timeout: 240 seconds]
george2 has quit [Quit: No Ping reply in 180 seconds.]
jfelchner_ has quit [Quit: Connection closed for inactivity]
<ghazi> csmrfx:u ready?
george2 has joined #ruby
<csmrfx> ghazi where are you?
SrPx has joined #ruby
toastynerd has joined #ruby
abdulsattar has quit [Quit: Leaving]
<ghazi> csmrfx: that's not problem, i can pay for which way do you like
<csmrfx> hehe, I only work with people I can hunt down ;)
nfk has joined #ruby
jhn_ has quit []
senayar has quit [Remote host closed the connection]
_justin has joined #ruby
m104 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
Doppp has joined #ruby
timonv has joined #ruby
mrnugget has quit [Quit: mrnugget]
Mon_Ouie has quit [Ping timeout: 264 seconds]
YamakasY has joined #ruby
Elhu has joined #ruby
abdulsattar has joined #ruby
johncjensen has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
m1lt0n_ has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
platzhirsch has joined #ruby
toastynerd has quit [Remote host closed the connection]
cj3kim has joined #ruby
toastynerd has joined #ruby
sdouglas has joined #ruby
mattwb has joined #ruby
m104 has quit [Quit: brb]
tharindu has quit [Quit: Linkinus - http://linkinus.com]
p8952 has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
Lewix has quit [Remote host closed the connection]
rh1n0 has joined #ruby
YamakasY has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
SidWu has quit [Quit: Textual IRC Client: www.textualapp.com]
Dr3amc0d3r has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
p8952 has joined #ruby
jack_rabbit has joined #ruby
<mattwb> alyx,
bal has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
<alyx> mattwb:
<mattwb> sup
<alyx> nada
<alyx> you?
havenwood has joined #ruby
tylersmith has quit [Remote host closed the connection]
Dr3amc0d3r is now known as Dr3amc0d3r|away
<mattwb> alyx, not much
tylersmith has joined #ruby
claymore has joined #ruby
hiall has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
kobain has quit []
<alyx> mattwb: exciting
<mattwb> alyx, oh yeah definitely
* popl takes notes
tylersmith has quit [Ping timeout: 265 seconds]
diegoviola has quit [Remote host closed the connection]
* alyx pets p8952
havenwood has quit [Read error: Connection reset by peer]
<alyx> popl: *
bradhe has quit [Remote host closed the connection]
dagobah has joined #ruby
havenwood has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
alexju has quit [Remote host closed the connection]
* popl slobbers on alyx
lyanchih_ has joined #ruby
jobewan has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 265 seconds]
r0nin has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
mansi has joined #ruby
AussieDownUnder has joined #ruby
paolooo has joined #ruby
dzhulk has quit [Quit: Leaving.]
<abdulsattar> How can I access a user object created from a different step_definition?
<abdulsattar> I want to be able to do this: http://pastie.org/8952692
yfeldblum has quit [Remote host closed the connection]
r0nin has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
kitak has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
ikaros has joined #ruby
yubrew has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
kitak has joined #ruby
mlpinit has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
gaussblurinc has joined #ruby
dkamioka_ has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
NovapaX has joined #ruby
BeingUntoDeath has quit []
mlpinit has quit [Ping timeout: 265 seconds]
arfr has joined #ruby
arfr is now known as quatron
Jeticus has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
CaptainJet has quit [Ping timeout: 246 seconds]
samuel02 has joined #ruby
thomasxie has quit [Quit: Leaving.]
dkamioka_ has quit [Ping timeout: 240 seconds]
NovapaX_ has joined #ruby
claymore has quit [Quit: Leaving]
r0nin has joined #ruby
rabeldable has quit [Quit: Leaving.]
samuel02 has quit [Ping timeout: 265 seconds]
OdNairy has joined #ruby
NovapaX has quit [Ping timeout: 240 seconds]
rh1n0 has quit [Quit: im out!]
blackmes1 has joined #ruby
apeiros has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
AussieDownUnder has quit [Remote host closed the connection]
r0nin has quit [Ping timeout: 265 seconds]
samuel02 has joined #ruby
zigomir has joined #ruby
ga1j1n has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
apeiros has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 264 seconds]
abdulsattar has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
meinside has joined #ruby
ga1j1n has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
sski has quit [Ping timeout: 240 seconds]
cina has joined #ruby
irishcoder4 has joined #ruby
NovapaX has joined #ruby
<certainty> adamholt: using instance variables should just work?
JasmeetQA1 has joined #ruby
stef_204 has joined #ruby
YamakasY has joined #ruby
irishco__ has joined #ruby
marcdel has quit []
JasmeetQA has quit [Ping timeout: 240 seconds]
NovapaX__ has joined #ruby
tonni has quit [Remote host closed the connection]
Mrdarknezz has joined #ruby
NovapaX_ has quit [Ping timeout: 240 seconds]
lyanchih_ has quit [Quit: lyanchih_]
sepp2k has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
lyanchih_ has joined #ruby
irishcoder4 has quit [Ping timeout: 240 seconds]
rm__ has quit [Remote host closed the connection]
NovapaX has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
rm_ has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
postmodern has quit [Quit: Leaving]
druiddesign has joined #ruby
irishco__ has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
NovapaX has joined #ruby
havenwood has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
NovapaX__ has quit [Ping timeout: 240 seconds]
ephemerian has joined #ruby
mauro has quit [Remote host closed the connection]
NovapaX_ has joined #ruby
camilasan has joined #ruby
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xerxas has quit [Quit: Connection closed for inactivity]
NovapaX has quit [Ping timeout: 240 seconds]
deadlock has quit [Ping timeout: 240 seconds]
NovapaX has joined #ruby
NovapaX__ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
druiddesign is now known as probnotyou
probnotyou is now known as probablynotyou
relix has joined #ruby
NovapaX_ has quit [Ping timeout: 269 seconds]
NovapaX_ has joined #ruby
rockelb has joined #ruby
havenwood has quit [Remote host closed the connection]
bradhe has joined #ruby
phansch has joined #ruby
NovapaX has quit [Ping timeout: 265 seconds]
cj3kim has quit [Remote host closed the connection]
probablynotyou is now known as druiddesign
luckyruby has quit [Remote host closed the connection]
TMM has quit [Quit: Ex-Chat]
NovapaX__ has quit [Ping timeout: 265 seconds]
<shevy> long live ruby!
ayaz has joined #ruby
matcouto has joined #ruby
coderxin has joined #ruby
relix_ has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 269 seconds]
druiddesign is now known as Jnnfr
atmosx has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
JasmeetQA has joined #ruby
relix has quit [Ping timeout: 265 seconds]
Jnnfr is now known as sharpJennifer
NovapaX has joined #ruby
_justin has quit [Quit: _justin]
havenwood has joined #ruby
JasmeetQA1 has quit [Read error: Connection reset by peer]
mansi has joined #ruby
rkazak has joined #ruby
relix has joined #ruby
sski has joined #ruby
sharpJennifer is now known as emanon
rdark has joined #ruby
NovapaX_ has quit [Ping timeout: 265 seconds]
emanon is now known as Guest89245
Elhu has joined #ruby
mengu has joined #ruby
yubrew has joined #ruby
abdulsattar has joined #ruby
relix_ has quit [Read error: Connection reset by peer]
RyanV has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
teddyp1cker has joined #ruby
Hanmac has joined #ruby
rkazak has left #ruby [#ruby]
Guest89245 is now known as druiddesign
sski has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
wallerdev has quit [Quit: wallerdev]
NovapaX has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
Jeticus has quit []
shevy has quit [Ping timeout: 252 seconds]
paolooo has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
spacebug has joined #ruby
shevy has joined #ruby
mox_ has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
mr_snowf1ake has quit [Quit: Leaving]
<certainty> shevy: long live rugby?
Hanmac1 has joined #ruby
havenwood has joined #ruby
<mox_> Im working on a scorecard project at the office, and I have to deal with tons of different excel workbooks.
<mox_> What would be the best way to make a scorecard card that collects automaticcaly to those excel files without intervention. What programming langage would suit me best or what alternatives
<mox_> do I have?
mlpinit has joined #ruby
<apeiros> mox_: VBA
* apeiros hides
<abdulsattar> Is there a way I can get current_user (the user that is signed in) in Cucumber step definitions?
Hanmac has quit [Ping timeout: 264 seconds]
<mox_> would it be slow like excel? or it would make everything more faster?
dzhulk has joined #ruby
<apeiros> abdulsattar: #rubyonrails ?
<abdulsattar> ok, sorry
<apeiros> abdulsattar: also, a) yes, of course, b) how depends *a lot* on how you actually implement 'current_user'.
<abdulsattar> apeiros: can take a quick look at: http://pastie.org/8952692
<apeiros> abdulsattar: sorry, no
elaptics`away is now known as elaptics
klaut has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 265 seconds]
<abdulsattar> k thanks anyway apeiros
ghr has joined #ruby
mox_ has left #ruby [#ruby]
mlpinit has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
daxroc has joined #ruby
SonicX has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
RyanV has quit [Ping timeout: 265 seconds]
chipotle_ has quit [Quit: cya]
obs has joined #ruby
tonni has joined #ruby
chipotle has joined #ruby
chipotle has quit [Client Quit]
RyanV has joined #ruby
timonv has joined #ruby
mikecmpbll has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
pagioss is now known as pagios
compleatang has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
x77686d has joined #ruby
r0nin has joined #ruby
poikon_ has joined #ruby
shevy has joined #ruby
cj3kim has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
_justin has joined #ruby
daxroc has quit [Quit: Leaving.]
r0nin has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 241 seconds]
TMM has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
_justin has quit [Client Quit]
nvrch has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
_justin has joined #ruby
RyanV has quit [Ping timeout: 265 seconds]
aagdbl0 has joined #ruby
workmad3 has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
jespada has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
aagdbl has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
rm_ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
camilas__ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilas__ has quit [Remote host closed the connection]
camilasa_ has joined #ruby
Thanatermesis has joined #ruby
maasha has joined #ruby
jlebrech has joined #ruby
tt1187 has joined #ruby
poikon_ has quit [Ping timeout: 264 seconds]
<maasha> G'day
<cout> what's so G' about it?
mrmist has joined #ruby
noop has joined #ruby
tvw has joined #ruby
poikon_ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
mrmist is now known as mist
bradhe has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
Biohazard has quit [Ping timeout: 264 seconds]
h0lyalg0rithm has joined #ruby
Dreamer3__ has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
Biohazard has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
schaary_ is now known as schaary
timonv has quit [Remote host closed the connection]
roolo has joined #ruby
Al__ has joined #ruby
cj3kim has joined #ruby
cina has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
cina has joined #ruby
yfeldblu_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
lemonsparrow has joined #ruby
sk87 has joined #ruby
<bnagy> apeiros: C# probably ( re excel tomfoolery )
<apeiros> that might actually be sensible
poguez_ has quit [Quit: Connection closed for inactivity]
<bnagy> I don't actually hate C# with the heat of a thousand suns
<bnagy> unlike say vba
<bnagy> excel COM interface is also really compleye
<bnagy> *complete
rockelb has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus_ has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
lolmaus has quit [Ping timeout: 264 seconds]
shevy has joined #ruby
NovapaX has joined #ruby
shadoi2 has quit [Read error: No route to host]
<apeiros> oh, fun… obj[] { |*args| … } # <-- invalid, but:
<apeiros> obj[&->(*args) { … }] # <-- valid!
shadoi has joined #ruby
<apeiros> didn't know that quirk
Zunonia__ has quit [Quit: Computer has gone to sleep.]
klaut has joined #ruby
Hanmac has joined #ruby
Advocation has joined #ruby
charliesome has joined #ruby
bradhe has joined #ruby
Doppp has quit [Ping timeout: 264 seconds]
aagdbl0 is now known as aagdbl
crazysim has quit [Excess Flood]
nari has quit [Ping timeout: 240 seconds]
crazysim has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
AlSquire has joined #ruby
hugoxrosa has quit [Remote host closed the connection]
davidcelis has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
mansi has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
davidcelis has joined #ruby
shredding has joined #ruby
mansi has quit [Remote host closed the connection]
NovapaX_ has joined #ruby
mansi has joined #ruby
mlpinit has joined #ruby
kitak has quit [Remote host closed the connection]
NovapaX has quit [Ping timeout: 240 seconds]
NovapaX has joined #ruby
hiall has quit [Quit: hiall]
kitak has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
davidcelis has quit [Ping timeout: 240 seconds]
n88_ has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
NovapaX_ has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 265 seconds]
andrewlio has joined #ruby
NovapaX_ has joined #ruby
dkamioka has joined #ruby
<shevy> ImportError: No module named dsextras
<shevy> I hate python
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
shaunbaker has joined #ruby
<apeiros> shevy: yousssss dontsssss ssssspeakssss the sssslanguage?
<shevy> there was a sudden error, now gimp suddenly no longer works in the way it did an hour ago
NovapaX has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<crome> I think its the point of gimp
arturaz has joined #ruby
<crome> it doesnt really work the way you expect it would
<shevy> I hate gimp as well
sk87 has joined #ruby
NovapaX_ has quit [Read error: Connection reset by peer]
<shevy> actually I hate that there are so few alternatives to gimp
NovapaX has joined #ruby
n88 has joined #ruby
dkamioka has quit [Ping timeout: 265 seconds]
<workmad3> shevy: you have a hex editor? just create jpgs directly!
<Robbo_> so umm, I have been working locally with ruby etc but now need to deploy and realized I don't know how
<Robbo_> what webserver should I be using?
Kneferilis has quit [Ping timeout: 246 seconds]
r0nin has joined #ruby
<shevy> File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in <module>
<shevy> ImportError: could not import pygtk
<Robbo_> I got all the ruby things installed and working on the server
hamakn has quit [Read error: Connection reset by peer]
<shevy> workmad3 don't tempt me, I may add a ruby-commandline image maker eventually
hamakn has joined #ruby
<abdulsattar> Robbo_: people generally reverse proxy nginx to your server
<shevy> I actually need to do only a bit of cropping, and sharpening. could do that with imagemagick probably
<shevy> damn gimp
<workmad3> Robbo_: if you're talking rails or another rack framework, there are several options... it's fairly typical to use nginx nowadays although apache is also a valid choice... and then it's either passenger as a module in nginx or apache, or reverse proxy to e.g. unicorn or puma
Xeago has quit [Remote host closed the connection]
<Robbo_> well I already use nginx so that would be a good choice
<Robbo_> I'll get to the googling
hamakn_ has joined #ruby
<Robbo_> thanks
mehlah has quit [Quit: Leaving...]
<workmad3> Robbo_: plenty of people in #rubyonrails will talk your ear off on server setup if you ask nicely :)
senayar has joined #ruby
<Robbo_> I'm not using rails
senayar has quit [Remote host closed the connection]
<crome> Robbo_: puma is a fashionable choice nowadays
hyperreal has joined #ruby
<Robbo_> I am seeing a lot of results for thin
senayar has joined #ruby
<workmad3> Robbo_: so? rails is still a rack app, the server config is the same
<Robbo_> I'll use nginx and proxy to puma
<shevy> workmad3 you just convinced me, I will eventually start a new rubygem project that does fancy and simplified image manipulation - which surely can be done in rmagick and imagemagick, I'll just make it so braindead that even noobs can use it without having to think much about it
johncjensen has quit [Remote host closed the connection]
<Robbo_> it isn't too important to have the best ever atm anyway, that comes when more stuff is moved to ruby and they can hire someone who knows more than me
r0nin has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 240 seconds]
inkblot_ has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
<shevy> hehe
dzhulk has quit [Ping timeout: 240 seconds]
<workmad3> shevy: that's worrying... I need to be more careful with my jokes and sarcasm if they can be that influential!
<gaussblurinc> does ruby understand path with tilde (~)?
<shevy> gaussblurinc yeah, File.expand_path '~'
<crome> gaussblurinc: feel fry to try it in irb
<shevy> you need to replace them usually though
<shevy> like via expand_path
<bnagy> the same as your shell does, btw. ~ is not magic
<shevy> File.stat '~/diamond_shell_history'
<shevy> Errno::ENOENT: No such file or directory @ rb_file_s_stat - ~/diamond_shell_history
<shevy> File.stat File.expand_path('~')+'/diamond_shell_history'
<shevy> # => #<File::Stat dev=0x801, ino=812775,
x77686d has quit [Quit: x77686d]
<shevy> oh
<shevy> you dont even need to split it up
<shevy> p Dir[File.expand_path('~/*')]
<shevy> that kinda reads weird though :\
francisfish has joined #ruby
hugoxrosa has joined #ruby
s00pcan has quit [Quit: Lost terminal]
s00pcan has joined #ruby
<gaussblurinc> thanks, works well
<workmad3> shevy: so why not 'p Dir[ENV["HOME"] + "/*"]' :)
shevy has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
cina has quit [Remote host closed the connection]
dzhulk has joined #ruby
<shevy> my connection is so awful again
<shevy> I always feel like that guy in the movie "break down"
<gaussblurinc> shevy: torrents/anime?
<shevy> no, nothing
<shevy> and I was supposed to finish a presentation in an hour
Advocation has quit [Quit: Advocation]
jespada has quit [Ping timeout: 240 seconds]
<gaussblurinc> are you alone in network? maybe your colleagues use torrents?
rm_ has joined #ruby
echevemaster has quit [Remote host closed the connection]
<shevy> I am alone, yeah. though it is all one provider, TV was down for a minute about 8 minutes ago too, now it works again
<shevy> less than half an hour left!
shaunbaker has quit [Read error: Connection reset by peer]
jollyy has joined #ruby
endash_ has quit [Quit: endash_]
atmosx has quit [Quit: Lost in trance]
<shevy> at least I found out the problem with gimp, slackware default gimp has python support compiled in
shaunbaker has joined #ruby
johncjensen has joined #ruby
inkblot_ has left #ruby [#ruby]
Advocation has joined #ruby
DaniG2k has joined #ruby
rm_ has quit [Ping timeout: 265 seconds]
johncjensen has quit [Remote host closed the connection]
Raboo has quit [Ping timeout: 240 seconds]
hugoxrosa has quit [Ping timeout: 265 seconds]
sparrovv has joined #ruby
druiddesign has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
Amart41 has joined #ruby
rawtaz has quit [Ping timeout: 252 seconds]
<shevy> gimp works fine now after a recompile :)
rails426 has joined #ruby
pfg has joined #ruby
rawtaz has joined #ruby
davedev24 has quit [Remote host closed the connection]
Raboo has joined #ruby
Amart41 has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 265 seconds]
hiall has joined #ruby
browndawg has left #ruby [#ruby]
yfeldblu_ has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
drx_ has joined #ruby
M4dH4TT3r has joined #ruby
<crome> if in doubt, recompile
drx_ has quit [Read error: Connection reset by peer]
popl has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
dzhulk has quit [Ping timeout: 269 seconds]
tt1187 has quit [Ping timeout: 265 seconds]
dzhulk has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
patteh_ has quit [Quit: leaving]
patteh has joined #ruby
teddyp1cker has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cina has joined #ruby
teddyp1cker has quit [Read error: Connection reset by peer]
cina has quit [Client Quit]
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
drx_ has joined #ruby
rawtaz has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
teddyp1cker has joined #ruby
<crome> I love it how the guy sitting in the neighbouring cubicle pretends he didnt notice anything
jespada has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
<shevy> hehe
<shevy> perhaps he was scared and did not want to provoke the fat man
<shevy> or he just thought something fell down
<shevy> I hate work ghettos like that
kirun has joined #ruby
mansi has joined #ruby
dzhulk has quit [Ping timeout: 240 seconds]
drx___ has joined #ruby
mlpinit has joined #ruby
h0lyalg0rithm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drx_ has quit [Ping timeout: 264 seconds]
drx___ has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
Atw has quit [Ping timeout: 264 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
poikon_ has quit [Remote host closed the connection]
drx_ has quit [Read error: Connection reset by peer]
lyanchih_ has quit [Ping timeout: 265 seconds]
poikon_ has joined #ruby
Gadgetoid has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 265 seconds]
coderxin has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
drx_ has joined #ruby
dzhulk has joined #ruby
Gadgetoid has joined #ruby
dkamioka has joined #ruby
drx___ has joined #ruby
rawtaz has joined #ruby
evenix has joined #ruby
drx___ has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
drx_ has quit [Ping timeout: 265 seconds]
cj3kim has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
TripleDES has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
evenix has quit [Ping timeout: 240 seconds]
TripleDES has joined #ruby
r0nin has joined #ruby
Xeago has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tvw has quit []
dblessing has joined #ruby
drx_ has joined #ruby
camilasa_ has quit [Remote host closed the connection]
Speed has joined #ruby
tobiashinz has joined #ruby
camilasan has joined #ruby
tobiashinz is now known as phazer
h0lyalg0rithm has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
drx_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
drx_ has joined #ruby
<phazer> please
<phazer> wtf
camilasan has quit [Read error: Connection reset by peer]
<phazer> i keep getting this error: constant Logger::Format not defined (NameError)
<phazer> and no idea where it comes from.
<phazer> actually im a total ruby newbie n00b
camilasan has joined #ruby
<phazer> any help is much appreciated
r0nin has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
lolmaus has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
_justin has quit [Read error: No route to host]
sailias has joined #ruby
camilasan has joined #ruby
lolmaus has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
fabrice31 has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
_justin has joined #ruby
<ghr> what are you requiring in line 10?
drx___ has joined #ruby
camilasan has joined #ruby
ZoanthusR has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Gadgetoid has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
drx_ has quit [Ping timeout: 264 seconds]
dkamioka_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
drx_ has joined #ruby
drx___ has quit [Read error: Connection reset by peer]
Gadgetoid has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
mattwb has quit [Changing host]
mattwb has joined #ruby
rabeldable has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<phazer> ghr: action_mailer
Macaveli has joined #ruby
camilasan has joined #ruby
prosperva has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<phazer> ghr: env.rb in the gist comment
OdNairy has quit [Ping timeout: 240 seconds]
<phazer> *shrug*
camilasan has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
* ghr shrug :)
vlad_starkov has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<ghr> I'm guessing Logger::Format is used in ActionMailer somewhere but the file you're loading doesn't have that included anywhere
<ghr> not sure sorry
<prosperva> i love ruby and have been playing around with it for one year
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
drx_ has quit [Ping timeout: 264 seconds]
dkamioka_ has quit [Ping timeout: 264 seconds]
<prosperva> i have developed an invoice system with ruby on rails but would like to master it and i am wondering what are the best ways to do that
vlad_starkov has joined #ruby
<dachi> Hello. I am upgrading a fairly huge app (205 MB) from 1.9 to 2.1.0. Do you know if Psych can read Syck format for metadata?
<phazer> ghr: well. when commenting out the action_mailer.. it should "work" ... but then the error got raised by the next include. its something somewhere else
camilasan has quit [Read error: Connection reset by peer]
* phazer smashes head on the table
drx_ has joined #ruby
camilasan has joined #ruby
OdNairy has joined #ruby
irishcoder has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
dzhulk has quit [Quit: Leaving.]
camilasan has joined #ruby
<ghr> prosperva http://poodr.info is a good start :)
drx_ has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
camilasan has joined #ruby
<workmad3> phazer: have you installed cucumber-rails?
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
camilasan has joined #ruby
rm_ has joined #ruby
<phazer> workmad3: hm
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
linojon has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
jollyy has quit [Quit: jollyy]
camilasan has joined #ruby
fabrice31 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
joonty has joined #ruby
canton7-mac has joined #ruby
intuxicated has quit [Quit: Leaving]
camilasan has joined #ruby
fannye has joined #ruby
<phazer> workmad3: Using cucumber-rails (1.3.0)
camilasan has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Quit: Leaving]
sailias has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
jollyy has joined #ruby
jollyy has quit [Client Quit]
camilasa_ has joined #ruby
BRMatt has joined #ruby
<workmad3> phazer: ok, make sure that's required close to the top of env/support.rb
<workmad3> phazer: and don't require action_mailer directly
camilas__ has joined #ruby
mjs2600 has joined #ruby
drx_ has joined #ruby
camilas__ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
amundj has quit [Read error: Connection reset by peer]
camilas__ has joined #ruby
amundj has joined #ruby
cj3kim has joined #ruby
bradhe has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
drx_ has quit [Read error: Connection reset by peer]
cj3kim has quit [Read error: Connection reset by peer]
tt1187 has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
francisfish has quit [Remote host closed the connection]
camilasa_ has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
drx_ has joined #ruby
<phazer> workmad3: just a guess in the wild from a noob - requiring it on the top of the env.rb because later required librarys have dependencies to the cucumber rails lib. eh?
bradhe has quit [Ping timeout: 265 seconds]
<workmad3> phazer: not exactly dependencies... but cucumber rails sets up your process to run cucumber in a rails context
drx_ has quit [Read error: Connection reset by peer]
sparrovv_ has joined #ruby
hamakn_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mlpinit has joined #ruby
timfoo has quit [Quit: leaving]
francisfish has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
sparrovv has quit [Ping timeout: 240 seconds]
<rdark> Can anyone tell me why rspec wants to run all tasks within all namespaces? https://gist.github.com/rdark/9661974
drx_ has joined #ruby
<rdark> even though the default task points to a single task
<soahccc> Google really don't want me to use ruby stdlib for it's API :( This whole oauth crap is really a pain
h0lyalg0rithm has quit [Ping timeout: 264 seconds]
drx_ has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
shredding has quit [Quit: shredding]
irishcoder has quit [Remote host closed the connection]
cover has joined #ruby
nvrch has quit [Quit: nvrch]
drx_ has quit [Read error: Connection reset by peer]
senayar has quit []
blackmes1 has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
senayar has joined #ruby
mjs2600 has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
roolo has quit [Quit: Leaving...]
<soahccc> Okay google you won, I build my own shortener :/
Amart41 has joined #ruby
mansi has joined #ruby
<blackjid> bnagy are you there?
<workmad3> soahccc: couldn't you use a different shortener? bitly or tinyurl?
<apeiros> workmad3: NIH!
<soahccc> workmad3: they don't support statistics as far as I know
gaussblurinc has quit [Quit: Leaving.]
nari has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
<soahccc> I already can shorten links with google but despite API key (which has no use here whatsoever) it doesn't show up in my dashboard, I need more auth for this
doodlehaus has quit [Remote host closed the connection]
<workmad3> soahccc: so why not use one of the oauth libraries?
irishcoder has joined #ruby
<soahccc> I want it to be a one-file script without Gemfile and all that stuff
<blackjid> bnagy don't worry :P
<apeiros> embedded gemfile!
<apeiros> curious… I bet you could use bundler that way
<workmad3> apeiros: hmm... could be kinda cool if you could use the data section as a gemfile :)
<apeiros> workmad3: nooo!
<apeiros> I mean, yes, but no
<apeiros> I want to either pass a string or a block. they can provide a convenience constructor which takes the string from DATA
mjs2600 has joined #ruby
chrisseaton has joined #ruby
roolo has joined #ruby
cj3kim has joined #ruby
<soahccc> Okay I just screw it and use a gem, no single file then
jollyy has joined #ruby
<dachi> Can anyone do $gem install be_valid_asset -v '1.1.2' ? I get ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) ;(((
cj3kim has quit [Read error: Connection reset by peer]
r0nin has joined #ruby
<AlexRussia> >>Kernel.`('ls')
<eval-in> AlexRussia => (https://eval.in/123568)
<AlexRussia> hm
platzhirsch has left #ruby [#ruby]
<AlexRussia> Anyone know, where in 2.1 method `?
maximski has joined #ruby
<workmad3> AlexRussia: it'll be in the C code for the Kernel module
<AlexRussia> workmad3: just irb don't have run kernel.`(<string>) , cause should some `
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sparrovv_ has quit [Remote host closed the connection]
yalue has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
peterellisjones has joined #ruby
rvraghav93 has joined #ruby
aagdbl has quit [Quit: Leaving]
blandflakes has joined #ruby
dkamioka has joined #ruby
<canton7-mac> there is no method called kernel.`. backticks are syntax, and using them calls the c function rb_f_backquote
<AlexRussia> RubyPanther: hi man
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
Xeago has joined #ruby
<AlexRussia> canton7-mac: sorry, but how to using method, called when i write `ls` or something like that?
bluenemo has joined #ruby
<canton7-mac> I'm afraid I don't understand the question. To use backticks, you use them, like `ls`
mjs2600 has quit [Remote host closed the connection]
<AlexRussia> canton7-mac: how to call Kernel method `?
<canton7-mac> by using backticks
<AlexRussia> `` ?
<canton7-mac> `ls`, etc
<AlexRussia> :(
<canton7-mac> is that a probem?
<canton7-mac> *problem
<apeiros> canton7-mac: it's not just syntax, it's really a method
<apeiros> Kernel.send(:`, 'ls -la') works
funktor has joined #ruby
<apeiros> Kernel.`('ls -la') actually too
dkamioka has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
<AlexRussia> apeiros: lol, but in irb dont work last :(
<canton7-mac> hmm doesn't for me - sits there waiting for the next backtick. maybe that's just irb getting confused
<apeiros> AlexRussia: irb's parser isn't identical with ruby's
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Xeago has quit [Ping timeout: 242 seconds]
<AlexRussia> apeiros: ha
<canton7-mac> ah yeah that does work
<canton7-mac> my bad!
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
<apeiros> when in doubt, try with ruby -e 'yourcode'
<apeiros> anyway, the common way to use it is indeed as canton7-mac already said - just quote the code with backticks
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
AlexRussia____ has joined #ruby
x77686d has joined #ruby
<AlexRussia____> my bad....internet connection :P
diegoviola has joined #ruby
mailo has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
mlpinit has quit [Remote host closed the connection]
rm_ has joined #ruby
bluOxigen has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
blackmesa has joined #ruby
no0code has joined #ruby
r0nin has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
rm_ has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
Villadelfia has joined #ruby
rails426 has quit []
bradhe has quit [Ping timeout: 240 seconds]
Villadelfia has quit [Client Quit]
browndawg has joined #ruby
vlad_starkov has joined #ruby
funktor has quit [Remote host closed the connection]
rabeldable has quit [Quit: Leaving.]
cbreeze has joined #ruby
jim87 has joined #ruby
cj3kim has joined #ruby
Al__ has quit [Quit: Al__]
SrPx has quit [Remote host closed the connection]
<jim87> Hello! I'm trying to install therubyracer using gem install therubyracer... I've installed python 2.7, still it won't recognise it throwing the following output: http://pastebin.com/RzEXBRyt
evenix has joined #ruby
<jim87> may you please help me? Thanks!
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Al__ has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
Xeago has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
kaspergrubbe has quit [Client Quit]
<AlexRussia____> jim87: stop.you install therubyracer and talk about python?Oo
funktor has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
<jim87> thanks soahccc
randomnick_ has joined #ruby
<workmad3> jim87: are you installing therubyracer for rails asset pipeline stuff on windows?
<jim87> workmad3: yep, unfortunately here at work I don't have linux :P
mjs2600 has joined #ruby
<jim87> I need it for lessc
<workmad3> jim87: ah crap, less...
rmorello has joined #ruby
<workmad3> jim87: if it was for anything reasonable that just used execjs, you wouldn't need therubyracer... execjs can use scripthost on windows, so no need to install another js runtime
CreativeEmbassy has joined #ruby
<workmad3> jim87: unfortunately, less isn't reasonable like that (it's part of the reason I never use less :)
tt1187 has quit [Ping timeout: 264 seconds]
hyperreal has quit [Quit: WeeChat 0.4.1]
<jim87> workmad3: less or sass help in maintaining things clean. Specially now that you can create maps for them
<workmad3> jim87: agreed... I use sass, not less
mjs2600 has quit [Remote host closed the connection]
peterellisjones has quit [Quit: Leaving.]
<workmad3> jim87: sass doesn't need a js runtime in order to compile CSS ;)
<jim87> workmad3: our designer is currently using Bootstrap as base, so I'd prefere using less instead of the sass' conversion
<workmad3> jim87: and, more importantly, sass doesn't require a js runtime that allows you to call back into ruby code from JS in order to function (this is why less 'needs' therubyracer)
punkcat has joined #ruby
punkcat has left #ruby [#ruby]
mjs2600 has joined #ruby
<jim87> workmad3: yeah, I know, I should switch to scss :P
pu22l3r has joined #ruby
<workmad3> jim87: I'm not sure I've ever come across someone who's successfully built libv8 on windows btw
<jim87> soahccc: that's a sass automatic conversion
<soahccc> jim87: I know but does it matter? You have access to all the variables and stuff
<workmad3> jim87: I just use http://rubygems.org/gems/bootstrap-sass btw
<jim87> soahccc: TBH I'd never trust a converted library
<soahccc> it's offical :D
shredding has joined #ruby
<workmad3> jim87: which is fine, as long as your designer isn't jumping straight onto bleeding-edge bootstrap updates :)
<jim87> soahccc: yep, it's official, but they officially say they didn't made by hand
pu22l3r has quit [Remote host closed the connection]
<jim87> workmad3: it's always good to have the latest release, in case of bug fixing... but they're not releasing a new version every day :P
<soahccc> jim87: well the CSS at the end isn't made by hand as well
diegoviola has quit [Quit: WeeChat 0.4.3]
sparrovv has joined #ruby
davedev24 has joined #ruby
workmad3 is now known as wm3|lunch
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
mrevd has joined #ruby
benzrf|offline is now known as benzrf
Elhu has joined #ruby
dEPy has joined #ruby
ruby991 has joined #ruby
mehlah has quit [Quit: Leaving...]
mrevd has left #ruby [#ruby]
Azure has quit [Quit: My MBP went to sleep.]
ruby991 has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
GreekFreak has joined #ruby
<GreekFreak> hi all
Kneferilis has joined #ruby
stringoO has joined #ruby
<GreekFreak> I would like to use Dir.mkdir("/directory/path/"), but I'm not sure how to tell it to create it as root.
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
abdulsattar has quit [Ping timeout: 265 seconds]
IceDragon has joined #ruby
<benzrf> GreekFreak: run the script with sud
<benzrf> *sudo
CreativeEmbassy has quit [Quit: FO SHO]
<canton7> there's also FileUtils.chown - change the ownership after you've made t
abdulsattar has joined #ruby
<gizmore> isn´t there race condition exploit possible?
<GreekFreak> benzrf, I've got that in a rake task (Ruby on Rails). so are you saying that I should run the rake task with sudo?
<GreekFreak> canton7, I need to make it to change the ownership lol
<canton7> "make it to change the ownership"?
nvrch has joined #ruby
CreativeEmbassy has joined #ruby
|stef_204| has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
no0code has quit [Quit: Lost terminal]
<GreekFreak> canton7, It won't let me create the directory to begin with. And I need the directory to exist to change it's ownership (which I do want to do) lol
<canton7> ah, the first bit was the bit you didn't say
<canton7> if the user your script's running under doesn't have permission, then run your script under another user
ntz has joined #ruby
<ntz> hello
<canton7> like benzrf said
<canton7> it'd be a bit of a security hole if there was an API command to circumvent file system security :P
<apeiros> require 'rootkit'
stef_204 has quit [Ping timeout: 265 seconds]
cj3kim has joined #ruby
<apeiros> P0wn.create_dir_without_having_access_rights!('somedir')
<ntz> i am completely not familiar with ruby (however I am familiar with another script languages) .. how can I extend a path, where ruby checks for its libs ? something like perl @INC or include for C ?
<apeiros> ntz: $LOAD_PATH
_justin has quit [Quit: _justin]
yfeldblum has joined #ruby
<apeiros> plain ordinary array (can't assign, but can mutate)
aspires has joined #ruby
<GreekFreak> canton7, agreed. But it doesn't let me to do "$sudo rake ..." It says sudo: rake: command not found
<canton7> yay changeing environment stuffs
<ntz> apeiros: thanks .. does it overwrite default paths ? i need to just add /opt/msma/puppet-34/usr/lib/ruby/site_ruby/1.8/
<apeiros> ntz: it doesn't do anything. you do something to it :)
<canton7> there's a flag to sudo to stop it mucking about with your environment so much. can't remember what it is off the top of my head
tvw has joined #ruby
benzrf is now known as benzrf|offline
<apeiros> ntz: so if you want to keep the existing paths, then just modify it in a way which won't remove them. e.g. push your new path.
brain_shim has quit [Ping timeout: 265 seconds]
ghazi1 has joined #ruby
<ntz> apeiros: i don't know how
<ntz> can you show me example ?
Skelz0r_ has quit [Quit: Changing server]
<apeiros> ntz: again, it's a normal array. how do you add a value to an array?
Dreamer3 has quit [Ping timeout: 264 seconds]
<ntz> i don't play with any ruby code
<ntz> when I want to put something to array in perl i'd unshift or push
Dreamer3 has joined #ruby
mansi_ has joined #ruby
<apeiros> same here
ghazi has quit [Ping timeout: 240 seconds]
<apeiros> well, IMO learn you some ruby. but here you go: $LOAD_PATH << 'new_path'
jlast has joined #ruby
<ntz> apeiros: wait .. i'm fine to just write a wrapper launching our app
peterellisjones has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
cbreeze has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has quit [Ping timeout: 264 seconds]
<ntz> i don't want to modify any code .. i need to run './foo' but it wants what is actually in /opt/msma/puppet-34/usr/lib/ruby/site_ruby/1.8/
<apeiros> ruby -I
<ntz> apeiros: i can put this to /usr/lib/ruby and it works then
<ntz> okay, thanks !!!!
<Hanmac> ntz i need to warn you but ruby1.8 is totally dead
<apeiros> but it sounds to me like you installed your software badly
<apeiros> you shouldn't have to use -I for installed stuff
mansi_ has quit [Remote host closed the connection]
jrhe has joined #ruby
<ntz> apeiros: great .. it works with -I .. i'm stupid .. i was looking on rubby --help before
mansi_ has joined #ruby
yubrew has joined #ruby
<ntz> apeiros: and I was playing with -r
<apeiros> ntz: well, again, it should not be necessary for something you've installed properly
<apeiros> -r performs the actual loading
<apeiros> -I adds paths to $LOAD_PATH
chris_thomson has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<ntz> apeiros: it is installed properly .. default installation of this thing (lib for a foo) just populates /usr/lib/ruby which we don't want, so we use --destdir=/opt/msma/foo
arietis has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
dkamioka has joined #ruby
<GreekFreak> canton7, running system "sudo mkdir ..." seemed to work
<GreekFreak> thanks guys
thomas3141592653 has joined #ruby
thomasxie has joined #ruby
kevind has joined #ruby
nfk has quit [Excess Flood]
xbob has joined #ruby
mansi_ has quit [Ping timeout: 265 seconds]
jlebrech has quit [Write error: Broken pipe]
yubrew has quit [Ping timeout: 240 seconds]
krz has quit [Write error: Broken pipe]
ghr has quit [Ping timeout: 264 seconds]
makara has quit [Excess Flood]
tvw has quit [Write error: Broken pipe]
zxq9 has quit [Write error: Broken pipe]
Dreamer3 has quit [Ping timeout: 464 seconds]
gaussblurinc has joined #ruby
arietis has joined #ruby
mjs2600 has quit [Write error: Broken pipe]
mjs2600_ has joined #ruby
zxq9 has joined #ruby
makara has joined #ruby
GreekFreak has quit [Quit: Leaving]
sk87 has joined #ruby
juarlex has joined #ruby
nfk has joined #ruby
francisfish has joined #ruby
dkamioka has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
sailias has joined #ruby
jollyy has quit [Quit: jollyy]
gigetoo has joined #ruby
nateberkopec has joined #ruby
bradhe has joined #ruby
sambao21 has joined #ruby
ghr has joined #ruby
ZoanthusR has quit [Ping timeout: 264 seconds]
irishcoder has quit [Remote host closed the connection]
afreidah has joined #ruby
doodlehaus has joined #ruby
snath has quit [Ping timeout: 264 seconds]
chris_thomson has quit [Quit: Zzz...]
redlines has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jprovazn has quit [Quit: Leaving]
redlines has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
lolmaus has quit [Remote host closed the connection]
dik_dak has joined #ruby
samuel02 has quit [Remote host closed the connection]
samuel02 has joined #ruby
jeregrine has joined #ruby
irishcoder4 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
samuel02 has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
zachallett has joined #ruby
irishcoder4 has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
chrisseaton has quit []
jprovazn has joined #ruby
lolmaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chrisseaton has joined #ruby
cj3kim has joined #ruby
_maes_ has joined #ruby
pothibo has joined #ruby
njection_ has quit [Ping timeout: 240 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
aspires has quit []
diegoviola has joined #ruby
alexju has joined #ruby
CreativeEmbassy has joined #ruby
kaspergrubbe has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
sparrovv has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
blandflakes has quit [Ping timeout: 245 seconds]
dzhulk1 has joined #ruby
sk87 has joined #ruby
njection has joined #ruby
dzhulk has quit [Ping timeout: 240 seconds]
momigi has joined #ruby
hfp`away is now known as hfp
francisfish has joined #ruby
evenix has joined #ruby
codabrink has joined #ruby
lw has joined #ruby
<hfp> Hey guys! So I'm training to code for interviews and I am stuck on a fizzbuzz question. This is my code: https://eval.in/123622. The fizz buzz counting part works fine on its own when passed three digits but the question also demands that it takes the values from a file with three numbers separated by a space on every line. When I run this script, it returns the three numbers on each line of the file but not the actual fizzbuz
<hfp> z counting. What am I missing?
<gizmore> i want to execute a shell command and print lines as soon as they are available... something like:
<gizmore> system("git clone") do |line|
codabrink has quit [Client Quit]
<gizmore> is this somehow possible?
codabrink has joined #ruby
<apeiros> hfp: `tr('\n', '')` <-- '\n' is not a newline
momigi has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
<hfp> gizmore: I'm no expert, but have a look at the each_line method
<apeiros> hfp: '\n' is a literal backslash followed by a literal n
<apeiros> "\n" <-- this is a newline
Dreamer3 has joined #ruby
momigi has joined #ruby
<hfp> apeiros: Oh...
<apeiros> hfp: also, if you replace newlines with an empty string, why call .each_line on it afterwards? you don't have any lines anymore…
<gizmore> hfp: i doubt it helps, but i think process_open is what i want... thanks anyway :)
<hfp> apeiros: Right, I did this because each_line returns \n at the end of the string and this confused split
funktor has quit [Read error: Connection reset by peer]
lw has quit [Client Quit]
<gizmore> hfp: each_line with popen it is, i guess. Thx!
camilas__ has quit [Remote host closed the connection]
<hfp> apeiros: I removed the tr altogether but I'm still getting the same output
camilasan has joined #ruby
failshell has joined #ruby
<hfp> How am I supposed to see what went wrong? Is there something that will show you what your variables and values look like after every line?
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<apeiros> pry-byebug with ruby 2.0+
shaunbaker has quit [Remote host closed the connection]
<apeiros> lets you step your code
camilasa_ has quit [Read error: Connection reset by peer]
momigi has quit [Read error: Connection reset by peer]
funktor has joined #ruby
momigi has joined #ruby
<apeiros> hfp: you don't return result in the end
camilasan has joined #ruby
<apeiros> you return whatever .each_line returns
njection has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
crystal77 has quit [Quit: Computer has gone to sleep.]
camilasan has joined #ruby
<hfp> so I should but an explicit `return` when I do the join?
<apeiros> no, you should put that statement in the right place.
skammer has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
enebo has joined #ruby
camilasan has joined #ruby
<apeiros> but you can try to put an explicit return there, to see and learn why that will create a new problem.
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<hfp> Yes, I tried and it breaks the loop
lupine has quit [Ping timeout: 255 seconds]
camilasa_ has joined #ruby
<ntz> apeiros: completely resolved .. do you want to know how I did it ?
camilasan has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
Thanatermesis has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
njection has joined #ruby
robbyoconnor has joined #ruby
camilasan has joined #ruby
samuel02 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
lupine has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
<hfp> apeiros: So my problem is that line 16 is never executed because the each loop always breaks on one of the ifs. Thus, it never gets to line 16 ever, correct?
ntz has left #ruby [#ruby]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
funktor has quit [Remote host closed the connection]
tt1187 has joined #ruby
benzrf|offline is now known as benzrf
njection has quit [Ping timeout: 245 seconds]
wolfsoul has joined #ruby
wolfsoul has quit [Changing host]
wolfsoul has joined #ruby
ananke has joined #ruby
lkba has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
samuel02 has quit [Ping timeout: 246 seconds]
bynaryshef has joined #ruby
makara has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
razibog has joined #ruby
yubrew has joined #ruby
rdark has joined #ruby
njection has joined #ruby
TheLarkInn1 has quit [Quit: Leaving.]
yfeldblum has joined #ruby
TheLarkInn has joined #ruby
coderxin has joined #ruby
Celm has quit [Remote host closed the connection]
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
osvico has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
fgo has quit [Remote host closed the connection]
mando has joined #ruby
m4n1f3st0 has joined #ruby
jollyy has joined #ruby
Thanatermesis has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
momigi has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
momigi has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
momigi has quit [Read error: Connection reset by peer]
coderxin has quit [Ping timeout: 264 seconds]
SCommette has joined #ruby
momigi has joined #ruby
momigi has quit [Read error: Connection reset by peer]
momigi has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
bradhe has joined #ruby
duggiefresh has joined #ruby
zz_jrhorn424 is now known as jrhorn424
momigi_ has joined #ruby
mansi_ has joined #ruby
pu22l3r has joined #ruby
momigi_ has quit [Read error: Connection reset by peer]
claymore has joined #ruby
mansi_ has quit [Client Quit]
njection has quit [Ping timeout: 245 seconds]
snath has joined #ruby
wm3|lunch is now known as workmad3
mary5030 has joined #ruby
michael_lee has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
jprovazn has quit [Quit: Leaving]
lmickh has joined #ruby
x77686d has quit [Quit: x77686d]
alexju has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
njection has joined #ruby
jamto11 has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jjbohn has joined #ruby
<alexherbo2> Why spaces are used for function application and commas for argument ?
ghazi1 has quit [Read error: No route to host]
jamto11 has joined #ruby
kaen has joined #ruby
<Hanmac> alexherbo2: what do you mean?
<alexherbo2> → foo(1, 2) or even foo 1, 2
<alexherbo2> → foo 1 2
momigi has joined #ruby
<alexherbo2> like Lisp or Haskell
funktor has joined #ruby
<apeiros> alexherbo2: spaces are not used for function application
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<alexherbo2> Ha?
<apeiros> and commas are used because the syntax was defined that way.
eka_ has joined #ruby
sdouglas has joined #ruby
freerobby has joined #ruby
Celm has joined #ruby
crystal77 has joined #ruby
OdNairy has quit [Ping timeout: 265 seconds]
OdNairy has joined #ruby
<tobiasvl> alexherbo2: parentheses are optional in ruby, commas are not
tonni has quit [Remote host closed the connection]
<tobiasvl> if you skip the parens, you need a space
jprovazn has joined #ruby
<tobiasvl> spaces between commas are optional
<tobiasvl> that should cover it ;)
brain_shim has joined #ruby
jlast has joined #ruby
francisfish has quit [Remote host closed the connection]
yubrew has quit []
njection has quit [Ping timeout: 265 seconds]
<alexherbo2> tobiasvl: why commas are not optional ?
xcv has joined #ruby
<soahccc> As I write a lot of coffescript atm I omit commas in multiline hashes a lot, doesn't work :(
<alexherbo2> → foo bar(1 2) 3
camilasan has quit [Remote host closed the connection]
<alexherbo2> → foo (bar 1 2) 3
<tobiasvl> alexherbo2: weeeeell, good question.
camilasan has joined #ruby
<apeiros> alexherbo2: you can't just arbitrarily change syntax. that's why.
DrShoggoth has joined #ruby
<apeiros> if you remove comas, lots of things will become ambiguous.
camilasan has quit [Read error: Connection reset by peer]
<tobiasvl> apeiros: what things though?
m104 has joined #ruby
camilasan has joined #ruby
<tobiasvl> I was trying to think of an example
<Hanmac> alexherbo2: lets replace it with variables not numbers: foo bar(a b) is parsed as: foo(bar(a(b))) ... thats why your plan does not work
derek_c has joined #ruby
<workmad3> tobiasvl: foo bar baz buzz... is that foo(bar baz buzz), foo(bar(baz(buzz))), ...?
<tobiasvl> workmad3: of course there would have to be rules for precedence
arietis has quit [Quit: Computer has gone to sleep.]
prosperva has quit [Ping timeout: 245 seconds]
<apeiros> alexherbo2: if you think you can come up with a better syntax, go ahead and create a language. if you want to code in coffescript syntax, go ahead, use coffeescript.
f0ster has joined #ruby
<workmad3> tobiasvl: there already are... but if the rules aren't reasonably easy, it's just really annoying to keep them in mind while decoding some arbitrary code :)
<apeiros> syntax is all about tradeoffs.
<apeiros> matz chose to use , as arg separator. that's about it.
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<f0ster> so, I have a string that looks like , "---\nclient_id: 29\nstreet: 1142 N 13th way\nstate: AZ\nzip: '10005'\nphone: 'xxxxxxx'\ncity: Phoenix", etc,I am trying to pull out a certain field of info, right now I am just doing lines = string.split("\n"), which gives me an array of each "entry", is there an easy way I can create a hash from this array ?
<apeiros> there's IMO little point in questions like "why does ruby use syntax construct X?" - because matz chose to design the syntax that way. that's why.
relix has joined #ruby
<apeiros> f0ster: looks like yaml
<workmad3> f0ster: that kinda looks like yaml...
<workmad3> heh
<apeiros> f0ster: YAML.load(yourstring)
<apeiros> f0ster: pro-tip: figure what serialization your data uses instead of handrolling a parser which will fail.
Solnse has joined #ruby
<f0ster> ha I guess so, it is the object string from a Version record in papertrail
krz has joined #ruby
flowerhack has joined #ruby
cj3kim has joined #ruby
larsam has quit [Ping timeout: 264 seconds]
paolooo has joined #ruby
njection has joined #ruby
snath has quit [Quit: Leaving]
snath has joined #ruby
<apeiros> f0ster: I'm pretty sure the papertrail model has the deserialization built-in
<f0ster> hmm
bal has quit [Quit: bal]
<f0ster> im doing a hack data recovery because one of the junior devs rewrote a bunch of values in the database in sql
deadlock has joined #ruby
chrisseaton has quit []
<f0ster> but i have the original values when the records were created
cj3kim has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
sparrovv has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Guest86340 has joined #ruby
tonni has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
lemonsparrow has quit [Ping timeout: 245 seconds]
noop has quit [Ping timeout: 240 seconds]
Guest5613 is now known as digifiv5e
yubrew has joined #ruby
LastWhisper has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
sparrovv has joined #ruby
njection has quit [Ping timeout: 240 seconds]
geopet has joined #ruby
Doppp has joined #ruby
rdark has quit [Ping timeout: 245 seconds]
rm_ has quit [Remote host closed the connection]
meatherly has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has joined #ruby
wottam has joined #ruby
glebm has quit [Read error: Connection reset by peer]
Murci3lago has joined #ruby
glebm_ has joined #ruby
glebm has joined #ruby
sparrovv has quit [Remote host closed the connection]
rdark has joined #ruby
glebm has quit [Read error: Connection reset by peer]
thomasxie has left #ruby [#ruby]
glebm has joined #ruby
glebm has quit [Remote host closed the connection]
axsuul has joined #ruby
glebm has joined #ruby
njection has joined #ruby
yfeldblum has joined #ruby
cbreeze has joined #ruby
blackmesa has joined #ruby
rm_ has quit [Ping timeout: 265 seconds]
glebm_ has quit [Ping timeout: 264 seconds]
ga1j1n has joined #ruby
Guest86340 has quit []
gregf has quit [Quit: WeeChat 0.4.3]
wottam has quit [Quit: WeeChat 0.4.3]
Shidash has joined #ruby
skammer has quit [Ping timeout: 240 seconds]
momigi has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
mike_k has joined #ruby
<gaussblurinc> how to filter paths '.' and '..' directories in dir_object.each?
momigi has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
sski has joined #ruby
njection has quit [Ping timeout: 265 seconds]
soulcake has quit [Read error: Connection reset by peer]
momigi_ has joined #ruby
soulcake has joined #ruby
coderxin has joined #ruby
arietis has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sski has quit [Remote host closed the connection]
Azure has joined #ruby
sski has joined #ruby
baroquebobcat has joined #ruby
sk87 has joined #ruby
<benzrf> gaussblurinc: why not just do "next if ['.', '..'].include? dir"
momigi has quit [Ping timeout: 264 seconds]
juarlex has quit [Remote host closed the connection]
<crome> I wish ruby came with Object#is_in?(collection) instead of doing it the other way around
ayaz has joined #ruby
<gaussblurinc> crome: so, which way?
ayaz has quit [Max SendQ exceeded]
iceden|2 has joined #ruby
njection has joined #ruby
davidnl has joined #ruby
poguez_ has joined #ruby
greenride has joined #ruby
sski has quit [Ping timeout: 245 seconds]
greenride has left #ruby [#ruby]
<apeiros> crome: so Object has to know every possible type passed as `collection`? not very clever.
jkamenik has quit [Ping timeout: 240 seconds]
glebm has quit [Remote host closed the connection]
greenride has joined #ruby
<crome> apeiros: not reaily, it could just call include? self on it :)
<crome> half assed solutions ftw
glebm has joined #ruby
<apeiros> ew
havenwood has joined #ruby
<gaussblurinc> and why not include no_upwards method to Dir?
bradhe has joined #ruby
dzhulk has joined #ruby
_lynX has quit [Ping timeout: 265 seconds]
_lynX has joined #ruby
willb1 has quit [Read error: Operation timed out]
vadeRcUser has joined #ruby
Gate_ is now known as Gate
danno1 has joined #ruby
cj3kim has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
vadeRcUser has quit [Client Quit]
shaunbaker has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
jlebrech has joined #ruby
sdouglas has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 245 seconds]
mikemar10 has joined #ruby
mikemar10 has quit [Max SendQ exceeded]
mikemar10 has joined #ruby
lampe2 has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 245 seconds]
njection has quit [Ping timeout: 252 seconds]
mroth__ is now known as mroth
maletor has joined #ruby
mroth has quit [Changing host]
mroth has joined #ruby
mroth has joined #ruby
f0ster has quit [Remote host closed the connection]
beneggett has joined #ruby
beneggett has quit [Client Quit]
agjacome has joined #ruby
toastynerd has quit [Remote host closed the connection]
rayners has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
root828 has joined #ruby
geggam has joined #ruby
funktor has quit [Remote host closed the connection]
xbob has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 0.4.3]
njection has joined #ruby
SrPx has joined #ruby
wolfsoul has quit [Quit: Leaving]
XxLocutusxX has joined #ruby
ananke has left #ruby [#ruby]
rippa has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
XxLocutusxX has quit [Excess Flood]
byprdct has joined #ruby
willb1 has joined #ruby
IceDragon_ has joined #ruby
lw has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
lethjakman has joined #ruby
mmoretti has joined #ruby
<crome> apeiros: it wouldnt be too bad with a method on Enumerable
alexju has joined #ruby
tylersmith has joined #ruby
diegoviola has joined #ruby
lampe2 has joined #ruby
dx7 has joined #ruby
beneggett has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 245 seconds]
nichtdiebohne1 has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
IceDragon_ has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
glebm_ has joined #ruby
kevind_ has joined #ruby
blom_ has joined #ruby
njection has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
sski has joined #ruby
sambao21 has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
jprovazn has quit [Quit: Leaving]
geoffw8_ has joined #ruby
sdouglas has joined #ruby
bousquet has joined #ruby
_maes_ has joined #ruby
maasha has quit [Quit: Page closed]
kevind has quit [Ping timeout: 264 seconds]
kevind_ is now known as kevind
mrsolo has joined #ruby
glebm has quit [Ping timeout: 264 seconds]
meinside has quit [Quit: Connection closed for inactivity]
CreativeEmbassy has quit [Quit: FO SHO]
abdulsattar has quit [Ping timeout: 240 seconds]
mando has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
rm_ has joined #ruby
njection has joined #ruby
momigi_ has quit [Remote host closed the connection]
AlexRussia____ is now known as AlexRussia
momigi has joined #ruby
shaunbaker has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
cina has joined #ruby
tagrudev has quit [Ping timeout: 240 seconds]
ephemerian has quit [Ping timeout: 240 seconds]
r0nin has quit [Remote host closed the connection]
ga1j1n has quit [Remote host closed the connection]
_justin has joined #ruby
ga1j1n has joined #ruby
michaeldeol has joined #ruby
ga1j1n has quit [Remote host closed the connection]
ga1j1n has joined #ruby
cj3kim has joined #ruby
ga1j1n has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 264 seconds]
rainmanjam has joined #ruby
njection has quit [Ping timeout: 240 seconds]
jollyy has quit [Quit: jollyy]
m1lt0n_ has quit [Quit: Lost terminal]
Macaveli has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 0.4.3]
arietis has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mostlybadfly has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
jollyy has joined #ruby
baroquebobcat has quit [Client Quit]
jollyy has quit [Client Quit]
cj3kim has quit [Ping timeout: 264 seconds]
s2013_ has joined #ruby
<lolmaus> Is there a standard method to convert a file size into a human readable format?
arubin has joined #ruby
mercwithamouth has joined #ruby
njection has joined #ruby
brain_shim has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
<crome> lolmaus: divide it :)
s2013 has quit [Remote host closed the connection]
sk87 has joined #ruby
s2013_ is now known as s2013
benzrf is now known as benzrf|offline
juarlex has joined #ruby
m4n1f3st0 has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
<apeiros> crome: Enumerable already has #include?
<apeiros> and that's why you do enum.include?(value) and not value.is_in?(enum)
SrPx has quit [Remote host closed the connection]
<apeiros> because it's the enums responsibility to know whether it contains a value or not. not the value's.
<apeiros> lolmaus: activesupport has a method for it, human_number or somesuch. I keep forgetting the name.
davy_ has joined #ruby
wald0 has joined #ruby
davy_ has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: Leaving]
shaunbaker has joined #ruby
m4n1f3st0 has joined #ruby
benzrf|offline is now known as benzrf
lethjakman has quit [Ping timeout: 246 seconds]
davy_ has joined #ruby
m4n1f3st0 has quit [Client Quit]
vadviktor has quit [Read error: Operation timed out]
mikepack has joined #ruby
abstractj has quit [Read error: Operation timed out]
byprdct has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
<lolmaus> apeiros: thx
SonicX has joined #ruby
tt1187 has quit [Ping timeout: 265 seconds]
abstractj has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
sski has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
<lolmaus> apeiros: It's number_to_human_size and it's awesome, thank you.
vadviktor has joined #ruby
sski has joined #ruby
klaut has quit [Remote host closed the connection]
njection has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 240 seconds]
SrPx has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
sski has quit [Remote host closed the connection]
freerobby has joined #ruby
sski has joined #ruby
davidnl has quit []
davidnl has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
philcrissman has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
toastynerd has joined #ruby
beneggett has joined #ruby
SrPx has quit [Ping timeout: 265 seconds]
Cache_Money has joined #ruby
rvraghav93 has quit []
<gizmore> i am writing an irc bot. I am creating a thread that shall system("git clone $args"). This thread shall be able to read the shell output when new lines are available... how would i achieve this best?
byprdct has joined #ruby
<apeiros> by not using system
<apeiros> because that won't return you the output
<apeiros> see popen
njection has joined #ruby
<gizmore> apeiros: i am trying with popen... getting broken pipes
<gizmore> may i query you?
shaunbak_ has quit [Remote host closed the connection]
makara has joined #ruby
<apeiros> private consulting costs $250/h
rvraghav93 has joined #ruby
<gizmore> hehe
tonni has quit [Remote host closed the connection]
pietr0 has joined #ruby
RaCx has joined #ruby
<gizmore> .math 250 / 60
brain_shim has joined #ruby
<apeiros> >> 250.fdiv 60
<eval-in> apeiros => 4.166666666666667 (https://eval.in/123691)
<gizmore> so $4.10 a minute :P
<apeiros> no, smallest unit is 1h
<gizmore> so 29 minutes are free as it rounds down
<gizmore> kiddings ;)
Cache_Money has quit [Ping timeout: 240 seconds]
<apeiros> rounded up, payable up-front :-p
<apeiros> so 1min is the most expensive, at 250$
enebo has quit [Quit: enebo]
brain_shim has quit [Read error: Connection reset by peer]
zachallett has quit [Remote host closed the connection]
ahawkins has quit [Remote host closed the connection]
<apeiros> oh, actually at current exchange rates, it'd be more like 290$/h :D
m4n1f3st0 has joined #ruby
m4n1f3st0 has quit [Client Quit]
Voodoofish430 has joined #ruby
davidnl has quit [Remote host closed the connection]
klaut has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
njection has quit [Ping timeout: 252 seconds]
bradhe_ has joined #ruby
cj3kim has joined #ruby
thesheff17_ has joined #ruby
thesheff17_ has quit [Read error: Connection reset by peer]
tt1187 has joined #ruby
ixti has joined #ruby
OdNairy has joined #ruby
derek_c has joined #ruby
fabrice31 has quit [Remote host closed the connection]
browndawg has joined #ruby
maletor has joined #ruby
njection has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
aganov has quit [Remote host closed the connection]
dstynchula has joined #ruby
davidnl has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
inkblot_ has joined #ruby
shaunbaker has joined #ruby
inkblot_ has left #ruby [#ruby]
tt1187 has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
TripTastic has joined #ruby
CreativeEmbassy has joined #ruby
cj3kim has joined #ruby
marcdel has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
davidnl has quit [Client Quit]
kaen has quit [Ping timeout: 245 seconds]
makara has quit [Ping timeout: 240 seconds]
wald0 has quit [Read error: Connection reset by peer]
lethjakman has joined #ruby
brain_shim has joined #ruby
wald0 has joined #ruby
francisfish has joined #ruby
Doppp has quit [Ping timeout: 253 seconds]
njection has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
geopet has quit []
samuel02 has joined #ruby
apeiros has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<shevy> gizmore you can use select
sambao21 has joined #ruby
cj3kim has quit [Remote host closed the connection]
<gizmore> thxalotl shevy
jespada has quit [Quit: Leaving]
sambao21 has quit [Client Quit]
f0ster has joined #ruby
chrisseaton has joined #ruby
irishcoder4 has joined #ruby
sailias1 has quit [Quit: Leaving.]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Doppp has joined #ruby
ga1j1n has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
njection has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
<shevy> hey
<shevy> that sounds almost actec
blom_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy> like the great old Quetzalcoatl http://en.wikipedia.org/wiki/Quetzalcoatl
hobodave has quit [Quit: Computer has gone to sleep.]
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy> and his younger brother, the thxalotl
blom_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
x77686d has joined #ruby
dzhulk has quit [Quit: Leaving.]
sailias has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
derek_c has joined #ruby
wallerdev has joined #ruby
yfeldblum has joined #ruby
dstynchu_ has joined #ruby
funktor has quit []
blom_ has quit [Ping timeout: 245 seconds]
njection has quit [Ping timeout: 240 seconds]
dstynchula has quit [Ping timeout: 252 seconds]
byprdct has quit [Ping timeout: 265 seconds]
ohwhoa has joined #ruby
marcdel has quit []
marcdel has joined #ruby
marcdel has quit [Client Quit]
bradhe_ has quit [Remote host closed the connection]
xbob has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geopet has joined #ruby
zachallett has joined #ruby
AlexRussia has joined #ruby
byprdct has joined #ruby
njection has joined #ruby
nomenkun has quit [Remote host closed the connection]
geopet_ has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
enebo has joined #ruby
nomenkun has joined #ruby
sailias has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
xbob has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
beneggett has joined #ruby
blom_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
geopet has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
moted has quit [Ping timeout: 246 seconds]
rabeldable has joined #ruby
kbarry has joined #ruby
camilasan has quit []
nomenkun has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 240 seconds]
jollyy has joined #ruby
jamto11 has quit [Remote host closed the connection]
f0ster has quit [Remote host closed the connection]
keen_____ has quit [Read error: Connection reset by peer]
frem has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
keen_____ has joined #ruby
njection has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
poikon__ has joined #ruby
xbob has joined #ruby
shaunbaker has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
f0ster has joined #ruby
razibog has quit [Quit: Leaving.]
shaunbak_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
poikon_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
havenwood has joined #ruby
apeiros has joined #ruby
sdwrage has joined #ruby
shaunbak_ has joined #ruby
irishcoder4 has quit [Remote host closed the connection]
DouweM has joined #ruby
njection has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
havenn has joined #ruby
ga1j1n has quit [Remote host closed the connection]
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
toastynerd has quit [Remote host closed the connection]
ga1j1n has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
dgaffney has joined #ruby
xbob has quit [Ping timeout: 240 seconds]
zigomir has quit [Remote host closed the connection]
Spami has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 264 seconds]
dagobah has quit [Quit: Leaving...]
sski has quit []
coderxin has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
smathieu has joined #ruby
coderxin has joined #ruby
apeiros has joined #ruby
sepp2k has joined #ruby
arietis has joined #ruby
saarinen has joined #ruby
wallerdev has joined #ruby
hobodave has joined #ruby
bluenemo has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
njection has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
ga1j1n has quit [Ping timeout: 264 seconds]
RaCx has joined #ruby
<hfp> Hey, why is it that if I want to use Prime.new I have to also `require 'prime'` but if I do Random.new in another independent file I don't have to `require 'random'` ?
coderxin has quit [Ping timeout: 246 seconds]
LiohAu has joined #ruby
<Hanmac> hfp: Random is in core, while Prime is in stdlib
xbob has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
enebo has quit [Quit: enebo]
timonv has quit [Remote host closed the connection]
mjw1 has joined #ruby
timonv has joined #ruby
rm_ has joined #ruby
<redlines> what gem do people most often use for handling media transcodes?
toastynerd has joined #ruby
jim87 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sambao21 has joined #ruby
njection has joined #ruby
xbob has quit [Ping timeout: 240 seconds]
<RubyPanther> redlines: I call out to ffmpeg
mjw1 has quit [Client Quit]
<redlines> just directly, with a shell command?
sambao21 has quit [Client Quit]
timonv has quit [Ping timeout: 265 seconds]
<RubyPanther> I'm not sure what the difference would be, normally it doesn't matter
<RubyPanther> if you want to to things like read back the available formats, then I recommend popen3 or similar
maletor has quit [Quit: Computer has gone to sleep.]
<RubyPanther> Mostly I know what it will support, and I only need the exit value
shevy has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
<SirFunk> Anyone know a link to a good explanation of class/class instance/instance variables and how they work with class inheritance?
<redlines> hmm, well i'm writing something that checks the audio bitrate of a file and transcodes if it it's above a certain value, so i think i'd need a ruby gem for that functionality anyway
xbob has joined #ruby
maletor has joined #ruby
<SirFunk> I'm trying to understand a way that a class can have a variable that can be overridden in a class that inherits it and there can be methods defined in the parent class that act upon the variable overridden in the child
<hfp> Hanmac: Thanks, how do you know this?
banister has joined #ruby
jamto11 has joined #ruby
blandflakes has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
joonty has quit [Quit: WeeChat 0.3.8]
<hfp> Hanmac: Thanks. Is it safe to assume that if it's not in stdlib then it's in core?
ohwhoa has quit [Quit: woah!]
<Hanmac> hm yo Random is in core
robbyoconnor has joined #ruby
<RubyPanther> >> class Klass;@@omg = 'omg'; def self.omg;@@omg end end; class Klassy < Klass; @@omg = 'Ponies!!!' ; def self.omg; super end end ; Klassy.omg # SirFunk
<eval-in> RubyPanther => "Ponies!!!" (https://eval.in/123742)
pineapple25 has joined #ruby
KeyboardNotFound has joined #ruby
ga1j1n has joined #ruby
tonni has joined #ruby
<RubyPanther> >> class Klass;@@omg = 'omg'; def self.omg;@@omg end end; class Klassy < Klass; @@omg = 'Ponies!!!' ; end ; Klassy.omg
<eval-in> RubyPanther => "Ponies!!!" (https://eval.in/123745)
<hfp> Hanmac: Maybe that's why I was confused. I'm using http://devdocs.io/ruby and I guess they aggregate core with stdlib so it's hard to tell which is where without looking it up
<pineapple25> hello could anyone help me pick a good ide for dev please?
tewlz has quit [Ping timeout: 265 seconds]
<Hanmac> hfp hm yeah i think its better to use the primal source ;P
<hfp> Hanmac: Understood!
njection has quit [Ping timeout: 265 seconds]
<Hanmac> RubyPanther: ithink that shows it a bit more clean for SirFunk:
<Hanmac> >> class Klass;@@omg = 'omg'; def self.omg;@@omg end end; class Klassy < Klass; @@omg = 'Ponies!!!' ; end ; Klass.omg
<eval-in> Hanmac => "Ponies!!!" (https://eval.in/123748)
<RubyPanther> >> class Klass;@@omg = 'omg'; def self.omg;@@omg end end; class Klassy < Klass; end ; Klassy.omg
<eval-in> RubyPanther => "omg" (https://eval.in/123750)
shaunbak_ has quit [Remote host closed the connection]
jobewan has joined #ruby
<SirFunk> RubyPanther: I think i got it
shaunbaker has joined #ruby
<SirFunk> I could have sworn I was doing something like that.... maybe active record is messing with something. I shall try again
SCommette has joined #ruby
klaut_ has joined #ruby
pyrac has joined #ruby
<RubyPanther> SirFunk: Often people use an instance var at the class level to hide it from descendants
pineapple25 has left #ruby [#ruby]
<SirFunk> instance var is single @, right?
klaut has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
<SirFunk> err... that's a class instance?
axsuul has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
<SirFunk> the terminology is a little confusing
<Hanmac> each class is an instance of the class Class ;P
jibi has quit [Ping timeout: 264 seconds]
* Hanmac uses "confusion" ... it is very effective
<RubyPanther> Klass is a class of type Klass which subclasses Class and also an instance of Class
vlad_starkov has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<RubyPanther> I hope that clears it up
<SirFunk> Right, so class variables, class instance variables and instance variables are different things?
<wallerdev> morning rubyists
<RubyPanther> class instance variables and instance variables are exactly the same, just hanging off different objects
lkba has joined #ruby
jibi has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Altonymous has joined #ruby
<RubyPanther> whereas some people hate class variables because they are too shared by relatives. But usually those are Java people.
<RubyPanther> They hate their children, and don't want them to know what toys are in the garage
ghr has quit [Ping timeout: 265 seconds]
<wallerdev> i can never remember the inheritance rules for class instance variables and class variables haha
klaut_ has quit [Remote host closed the connection]
nvrch has quit [Quit: nvrch]
njection has joined #ruby
Hanmac1 has joined #ruby
<SirFunk> Ok. I think i've got it
<Altonymous> I'm not really good with bit masks.. so I can't even ask this question correctly.. but I'll try. Let's say I have the number 19 and I want to know the numbers that create it… 1, 2, 16 How would I go about that in ruby?
apeiros has quit [Ping timeout: 264 seconds]
mrfoto has joined #ruby
DaniG2k has quit [Quit: leaving]
sdwrage has joined #ruby
<wallerdev> you could bitshift it and check the last bit until the value is 0
Deele has joined #ruby
joelmo has joined #ruby
<Altonymous> The only way I can find to do it is.. to use something like 19.to_s(2) then loop through the result and look for on bits.. then figure out what they represent
benzrf is now known as benzrf|offline
<joelmo> what does for example: f.brew do ... code ... end mean? in ruby
Hanmac has quit [Ping timeout: 265 seconds]
<wallerdev> Altonymous: like x = 19; (x & 1) will be the last bit value, 0 or 1, then you move all the bits one to the right with x = x >> 1, then you can check the last bit value again with (x & 1)
<wallerdev> so youd get a 1, the first time, then a 1, then a 0, then a 0, then a 1
Mrdarknezz has quit [Ping timeout: 264 seconds]
<wallerdev> and those would represent *1*, *2*, 4, 8, *16*
bradhe has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
paulfm has quit []
<mostlybadfly> hola everyone
<Altonymous> thanks walterdev, i get what you're saying appreciate it
<wallerdev> np
<wallerdev> hola mostlybadfly
bradhe has joined #ruby
fgo has joined #ruby
<mostlybadfly> i had a quick question. are double quotes required for string interpolation?
<wallerdev> yes
<mostlybadfly> ok I guess i knew that based on my error :P
<wallerdev> or double quote equivalent
mikecmpbll has quit [Ping timeout: 264 seconds]
<mostlybadfly> just making sure
<mostlybadfly> what is double quote equivalent?
<canton7> something like %Q{hello}
<mostlybadfly> ah ok
<mostlybadfly> what is i wanted to do something like display double quotes as well as interpolate
<wallerdev> thats why for maximum speed you should rewrite all ruby apps to use single quotes where you dont need interpolation
shinobi_one has joined #ruby
<mostlybadfly> ' "quote" #{x}' ?
<wallerdev> you can use %Q if you want to use double quotes, or escape them
SonicX has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<mostlybadfly> ah ok
<wallerdev> %Q{ “quote” #{x}}
LiohAu has quit [Quit: LiohAu]
sdouglas has quit [Remote host closed the connection]
<mostlybadfly> ooooo ok
<mostlybadfly> interesting
seekage has joined #ruby
<wallerdev> or “ \”quote\” #{x}”
browndawg has left #ruby [#ruby]
<mostlybadfly> yeah i saw \ as an option but that seems like it can get convoluted
CorySimmons has joined #ruby
<Hanmac1> Altonymous & wallerdev
<Hanmac1> >> a=19;Math.log2(a).ceil.times.map {|i| a & (2 ** i) }.reject(&:zero?)
<eval-in> Hanmac1 => [1, 2, 16] (https://eval.in/123759)
<wallerdev> haha
vpretzel has quit [Remote host closed the connection]
<Altonymous> nice :P
<mostlybadfly> is %Q{"quote" #{x}} commong usage or should it be reserved only for cases like these?
njection has quit [Ping timeout: 265 seconds]
<canton7> %Q is pretty common if you want a string with both double quotes and interpolation in
<wallerdev> is log2 quick for integers
vhsmaia has joined #ruby
vpretzel has joined #ruby
ohwhoa has joined #ruby
ga1j1n has quit [Remote host closed the connection]
<mostlybadfly> but otherwise just do ''
<Hanmac1> >> a=19;(Math.log2(a).floor+1).times.map {|i| a & (2 ** i) }.reject(&:zero?)
<mostlybadfly> 'string'
<eval-in> Hanmac1 => [1, 2, 16] (https://eval.in/123760)
nanoyak has joined #ruby
ga1j1n has joined #ruby
jgabrielygalan has joined #ruby
<Hanmac1> using upto instead of times:
<Hanmac1> >> a=19; 0.upto(Math.log2(a).floor+1).map {|i| a & (2 ** i) }.reject(&:zero?)
<eval-in> Hanmac1 => [1, 2, 16] (https://eval.in/123761)
<Altonymous> wallerdev isn't %{} and %Q{} the same?
paulfm has joined #ruby
<wallerdev> yeah
sdouglas has joined #ruby
<wallerdev> but %q and %Q are different
ga1j1n has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geopet_ has quit []
blom_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<Altonymous> right
_justin has joined #ruby
<Altonymous> I suppose using %Q{} is just more pedantic :P
<wallerdev> you can also use other separators like %|some text|
blom_ has joined #ruby
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
shaunbaker has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 265 seconds]
tewlz has joined #ruby
njection has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
timonv has joined #ruby
centrx has joined #ruby
matchaw has quit [Read error: Operation timed out]
jamto11 has quit [Remote host closed the connection]
<seekage> How to remove tabs/whitespace in this example? https://gist.github.com/anonymous/3b6d99096c621429bb46
<RubyPanther> I find %Q to be more obvious because of %r %w etc
senayar has quit [Remote host closed the connection]
rmorello has joined #ruby
elaptics is now known as elaptics`away
blom_ has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
francisfish has quit [Remote host closed the connection]
mrfoto has quit []
matchaw has joined #ruby
TMM has quit [Quit: Ex-Chat]
<wallerdev> seekage: i think the usual way is to just write it on the left side of the text document instead of indenting it, or put it in a file
crystal77 has quit [Quit: Computer has gone to sleep.]
canton7-mac has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<wallerdev> but you can remove whitespace w/ gsub or something
Xeago has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
<seekage> wallerdev, moving it to the left didn't seem to work... let me try that again
Vovko has joined #ruby
<wallerdev> like move all the text to the left side
njection has quit [Ping timeout: 265 seconds]
perlsyntax has joined #ruby
toastynerd has joined #ruby
ghr has joined #ruby
RaCx has joined #ruby
timonv has quit [Read error: Connection reset by peer]
ohwhoa has quit [Quit: woah!]
obs has quit [Quit: Konversation terminated!]
jhass|off is now known as jhass
francisfish has joined #ruby
timonv_ has joined #ruby
enebo has joined #ruby
yacks has quit [Quit: Leaving]
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
mike_k has quit [Remote host closed the connection]
njection has joined #ruby
shaunbaker has joined #ruby
<seekage> wallerdev: yeah, that worked. for some reason it didn't take effect until restarting. thanks!
<wallerdev> np
ghr has quit [Ping timeout: 252 seconds]
irishcoder4 has joined #ruby
yfeldblu_ has joined #ruby
Sawbones has joined #ruby
bynaryshef has quit []
crystal77 has joined #ruby
mikepack has quit [Remote host closed the connection]
<Sawbones> Alright so I'm confused about something, When I call: puts convo['message'] I get the value returned, if I put puts convo[:message] it returns blank, why?
Xeago has joined #ruby
fannye has quit [Ping timeout: 240 seconds]
<crome> Sawbones: because :message and 'message' are actually different keys
yfeldblu_ has quit [Read error: Connection reset by peer]
<Sawbones> ???
yfeldblu_ has joined #ruby
mikepack has joined #ruby
<shinobi_one> Sawbones if you set convo['message'] = "the message", this is different from convo[:message] = "the message"
mikepack has quit [Remote host closed the connection]
<shinobi_one> they are different keys
mikepack has joined #ruby
<Sawbones> wow
<crome> :message is a symbol. 'message' is a string
<crome> they are totally differnt objects
<Sawbones> i don't know how i feel about that
bradhe has quit [Remote host closed the connection]
<crome> you should feel good about it
irishcoder4 has quit [Ping timeout: 240 seconds]
<crome> different objects are supposed to be different keys ina hash
yfeldblum has quit [Ping timeout: 265 seconds]
<shinobi_one> Sawbones: a symbol != a string
UserNameInvalid has joined #ruby
r0nin has joined #ruby
<Sawbones> So if I do something like list_of_stuff[myClassInstance] = 'a_thing' that will store my class instance as a key?
CorySimmons has quit [Quit: Zzz...]
bradhe has joined #ruby
njection has quit [Ping timeout: 240 seconds]
<crome> Sawbones: yes
<Sawbones> ok, then I can accept it
geoffw8_ has quit [Quit: Connection closed for inactivity]
SCommette has quit [Quit: SCommette]
<shinobi_one> Sawbones: you could do convo[:"message"] => "the message", and access it by either :message or :"message"
paolooo has joined #ruby
vpretzel_ has joined #ruby
<Sawbones> thanks for the tip!
mikecmpbll has joined #ruby
<Sawbones> I was using the cleverbot api to just play around and it was @params['message'] so I figured I could do that
<Sawbones> got more ruby learning to do
<crome> :'message' is really just a symbol, you can use this notation to create symbols with characters that would otherwise confuse the interpreter, like :'asd-qwe'
kirun has quit [Ping timeout: 240 seconds]
RubyNoviceH has joined #ruby
r0nin has quit [Remote host closed the connection]
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?!
blandflakes has quit [Ping timeout: 245 seconds]
shaunbaker has quit [Remote host closed the connection]
jgabrielygalan has quit [Quit: Leaving]
vpretzel has quit [Ping timeout: 240 seconds]
<GaryOak_> what's an equivalent to symbols in other languages?
matchaw_ has joined #ruby
<crome> atoms in erlang maybe?
matchaw has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
vpretzel_ is now known as vpretzel
karl___ has joined #ruby
tgkokk has quit [Client Quit]
<RubyNoviceH> Crome; Have you used google charts with ruby?/
<centrx> GaryOak_, Most languages have no equivalent except strings
njection has joined #ruby
<karl___> when assigning a string, is there an easy way to input it and escape all characters by default (such as using a different quoting scheme or something)?
jollyy has quit [Quit: jollyy]
<GaryOak_> centrx: aren't symbols like named pointers almost?
Advocation has quit [Quit: Advocation]
<crome> RubyNoviceH: nope
vhsmaia has quit [Remote host closed the connection]
<karl___> nvm
<RubyNoviceH> This is insane, I have spent the last 6 hours trying to do a simple graph!
<RubyNoviceH> I am evne putting in FIXED data
apeiros has joined #ruby
<RubyNoviceH> The chart is backwards
<RubyNoviceH> w.t.f
<centrx> GaryOak_, Can the names of named pointers be passed around and defined at runtime?
ga1j1n has joined #ruby
<GaryOak_> centrx: nope
samuel02 has joined #ruby
bahar has joined #ruby
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?!
CorySimmons has joined #ruby
Doc_X has joined #ruby
peterellisjones has quit [Quit: Leaving.]
samuel02 has quit [Ping timeout: 246 seconds]
ga1j1n has quit [Ping timeout: 265 seconds]
<GaryOak_> RubyNoviceH: did you mix up your y-min and y-max?
<RubyNoviceH> GaryOak; I didn't put any of those values, because they are 'default'
<RubyNoviceH> bar_chart = Gchart.bar(
afreidah has quit [Read error: Connection reset by peer]
pel_daniel has joined #ruby
seekage has quit [Quit: Linkinus - http://linkinus.com]
afreidah has joined #ruby
<RubyNoviceH> GaryOak; The only options I have are :size: :theme, :stacked:, :legend:, :axis_with_labels, :data
<RubyNoviceH> GaryOak; have you used this before??
<GaryOak_> RubyNoviceH: nope I'm looking at the documentation
toastynerd has quit [Remote host closed the connection]
mailo has quit [Quit: Leaving...]
LastWhisper is now known as janjos
njection has quit [Ping timeout: 265 seconds]
janjos is now known as janjos_
timonv has joined #ruby
<GaryOak_> RubyNoviceH: is some of the data negative so it's going from a negative to 0?
afex has joined #ruby
KeyboardNotFound has quit [Ping timeout: 264 seconds]
chrisseaton has quit []
paolooo has quit [Ping timeout: 245 seconds]
dumdedum has quit [Quit: foo]
CorySimmons has quit [Quit: Bye!]
timonv_ has quit [Ping timeout: 240 seconds]
RaCx has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Quit: WeeChat 0.4.3]
workmad3 has quit [Ping timeout: 240 seconds]
njection has joined #ruby
esposito has joined #ruby
yubrew has quit [Remote host closed the connection]
esposito has quit [Client Quit]
mrsolo has joined #ruby
freerobby has quit [Quit: Leaving.]
xbob has quit []
robbyoconnor has quit [Ping timeout: 246 seconds]
larsam has joined #ruby
freerobby has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Doppp has quit [Ping timeout: 245 seconds]
julio_ has joined #ruby
janjos_ has quit [Ping timeout: 245 seconds]
rdark has quit [Quit: leaving]
<havenn> hellooo
havenn is now known as havenwood
reset has joined #ruby
fgo_ has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
chipotle has quit [Ping timeout: 264 seconds]
fgo_ has quit [Remote host closed the connection]
s2013 has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
AlexRussia has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<centrx> Ahoy
<centrx> Oh it's you
rdark has joined #ruby
njection has quit [Ping timeout: 265 seconds]
thomas3141592653 has quit [Quit: Connection closed for inactivity]
timonv has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
<shinobi_one> why is ruby 1.9.3-p0 the latest 1.9.3 ruby on ubuntu 12.04 :-\
<wallerdev> because package managers are slow
<rdark> can anyone tell me why this happens: https://gist.github.com/rdark/9670800
<wallerdev> usually i skip them for things where im going to need the latest version
dorei has joined #ruby
<rdark> (TypeError/ no implicit conversion of Symbol into Integer)
endash_ has joined #ruby
RaCx has joined #ruby
<wallerdev> you set mock_dist on line 10
<centrx> shinobi_one, Because Ubuntu 12.04 is from 2011
<havenwood> rdark: on line 10 you set `mock_dist` to the String `"epel", then on line 11 you `"epel"[:release]`
tvw has joined #ruby
mosez has quit [Ping timeout: 252 seconds]
<havenwood> >> "epel"[:release]
<eval-in> havenwood => no implicit conversion of Symbol into Integer (TypeError) ... (https://eval.in/123809)
Xiti` has joined #ruby
Salve has quit []
<dorei> hello
<havenwood> dorei: hi
<dorei> any of u using capybara?
<shinobi_one> centrx: but it's LTS :(
kirun has joined #ruby
<rdark> havenwood: thanks, has been a long day, total code blindness
<centrx> shinobi_one, Right, that means security updates, not feature upgrades
<havenwood> shinobi_one: Trusty Tahr!
CaptainJet has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
* rdark lets out a long deep sigh
<wallerdev> ive used capybara
sepp2k1 has joined #ruby
njection has joined #ruby
<dorei> wallerdev: i'm submiting a form by sending :enter and then a sleep 5 so as to wait for the new page to load, do you know if there's a more elegant way?
<jhass> dorei: assert that some (unique) element on the new page (possibly a value you entered on the form?) is visible
senayar has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
smathieu has quit [Remote host closed the connection]
<jhass> you should never have the need to sleep
<shinobi_one> guess i'll just replace the system ruby from source >.>
toastynerd has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
chipotle has joined #ruby
endash_ has quit [Read error: Connection timed out]
<havenwood> dorei: maybe checkout the spreewald gem for its #patiently: https://github.com/makandra/spreewald#waiting-for-page-load
<shinobi_one> heh, actually installing puppet open-source from their apt repository installs ruby1.8
endash_ has joined #ruby
smathieu has quit [Remote host closed the connection]
<jhass> dorei: though capybara itself already does wait a bit for assertions to come true and tries them a few times
smathieu has joined #ruby
mosez has joined #ruby
<dorei> jhass: i'm using capybara with phantomjs for webscraping
arietis has quit [Quit: Computer has gone to sleep.]
decoponio has quit [Quit: Leaving...]
<wallerdev> shinobi_one: can always use rvm :p
<shinobi_one> eh i prefer not to use rvm on a production server
njection has quit [Ping timeout: 246 seconds]
<shinobi_one> puppet is the only thing that needs ruby on it anyway
oso|away is now known as oso96_2000
bradhe has quit [Remote host closed the connection]
mosez has quit [Read error: Operation timed out]
senayar has quit [Ping timeout: 264 seconds]
bynaryshef has joined #ruby
bitcycle has joined #ruby
dingus_khan has joined #ruby
irishcoder4 has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dx7 has quit [Read error: Connection reset by peer]
atno has quit [Ping timeout: 246 seconds]
<bitcycle> Hey all. Can someone help me with ruby > OpenSSL? I'm trying to add an extension to a public cert, but I'm not sure if I have the subject/issuer cert right. I'm having a hard time understanding what the subject certificate is, exactly. Can someone help me understand what the subject certificate in the extension factory is?
mike_k has joined #ruby
breakingthings has quit [Ping timeout: 252 seconds]
atno has joined #ruby
dx7 has joined #ruby
Astralum has joined #ruby
breakingthings has joined #ruby
jsilver-ipod has joined #ruby
basex has joined #ruby
bradhe has joined #ruby
mosez has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
maletor has joined #ruby
jollyy has joined #ruby
njection has joined #ruby
job_ has joined #ruby
r0bby has joined #ruby
r0bby has quit [Changing host]
r0bby has joined #ruby
toastynerd has quit [Remote host closed the connection]
Wolland has joined #ruby
apeiros has joined #ruby
<perlsyntax> hi all
xcv has quit [Remote host closed the connection]
poikon__ has quit []
ktosiek has joined #ruby
lw has joined #ruby
Speed has left #ruby ["WeeChat 0.4.3"]
mehlah has quit [Quit: Leaving...]
mjs2600_ has quit [Remote host closed the connection]
irishcoder4 has quit [Remote host closed the connection]
<Altonymous> anyone able to scroll far enough back in their IRC client to grab a small bit of code for me.. there was a method someone did that got the values of the on bits for a number.. so 9 = 1,8 or 19, 1,2,16
<Altonymous> 19 = 1,2,16
<Altonymous> My client doesn't scroll far enough back.. I want to look at it again
irishcoder4 has joined #ruby
davy_ has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
samuel02 has joined #ruby
jerius has joined #ruby
tacos1de has joined #ruby
<Hanmac1> >> a=19; 0.upto(Math.log2(a).floor+1).map {|i| a & (2 ** i) }.reject(&:zero?)
<eval-in> Hanmac1 => [1, 2, 16] (https://eval.in/123818)
<Hanmac1> Altonymous: like that?
<Altonymous> that yes thx
r0bby is now known as robbyoconnor
<havenwood> Altonymous: for future reference: http://irclog.whitequark.org/ruby/2014-03-20
<Altonymous> thanks!
yfeldblu_ has quit [Read error: Connection reset by peer]
Hanmac1 is now known as Hanmac
SHyx0rmZ has joined #ruby
yfeldblum has joined #ruby
njection has quit [Ping timeout: 265 seconds]
pfg has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
<RubyNoviceH> GaryOak; No. No date is Negative
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
ixti has quit [Quit: WeeChat 0.4.3]
ixti has joined #ruby
hiall has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
crystal77 has quit [Quit: Computer has gone to sleep.]
irishcoder4 has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
crystal77 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
senayar has joined #ruby
ga1j1n has joined #ruby
sk87 has joined #ruby
f0ster has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
jsilver-ipod has quit [Ping timeout: 252 seconds]
senayar has quit [Read error: Operation timed out]
sk87 has quit [Client Quit]
njection has joined #ruby
job_ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
yubrew has quit [Ping timeout: 240 seconds]
hiall has joined #ruby
hiall has quit [Client Quit]
crystal77 has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
<RubyNoviceH> GaryOak; No. No date is Negative
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?!
smathieu has quit [Remote host closed the connection]
afex has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
rayners has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
f0ster has joined #ruby
rdark has quit [Quit: leaving]
f0ster has quit [Read error: Connection reset by peer]
njection has quit [Ping timeout: 264 seconds]
pyrac has quit [Quit: pyrac]
bynaryshef has quit []
<lethjakman> property seems to be confusing me...would anyone happen to have a good example of using it?
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<lethjakman> I just understand you can declare event listeners in it
|stef_204| has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nanoyak has quit [Quit: Computer has gone to sleep.]
<centrx> lethjakman, What is property?
<lethjakman> this...
<lethjakman> I think the define_method is confusing me...I'm not sure how that is defining a bunch of methods.
<joelmo> if i have 5.times do |x|, can i do a conditional like: if true do 5.times else 2.times ?
robbyoconnor has quit [Remote host closed the connection]
<centrx> joelmo, Yes...?
<joelmo> how do i do that
<jhass> joelmo: (condition ? 5 : 2).times do |i|
r0bby has joined #ruby
<joelmo> i in this example i need begin if it is false instead of do, can i do that?
pietr0 has quit [Quit: pietr0]
<jhass> make a gist of your real problem, not the solution you think you need
<centrx> lethjakman, Isn't it defining just one: property?
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?!
crystal77 has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
<centrx> RubyNoviceH, You would probably do better by posting a gist of your code
jmpf has joined #ruby
njection has joined #ruby
timonv has joined #ruby
pietr0 has joined #ruby
afex has joined #ruby
<jhass> joelmo: just do an if else for that
pr0ggie has joined #ruby
sambao21 has joined #ruby
<jhass> if you need to deduplicate code, extract it into a (private) method
centrx is now known as sl1dercrank
r0bby has quit [Ping timeout: 246 seconds]
_justin has joined #ruby
<joelmo> ok, ty
baroquebobcat has joined #ruby
wald0 has quit [Quit: Lost terminal]
sl1dercrank is now known as centrx
njection has quit [Ping timeout: 240 seconds]
<RubyNoviceH> cemtrx; What site should i post this one
<RubyNoviceH> its literally ONE line
<RubyNoviceH> lol
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m8 has joined #ruby
juarlex has quit [Remote host closed the connection]
jackneill has joined #ruby
pyrac has joined #ruby
juarlex has joined #ruby
geopet has joined #ruby
SonicX has joined #ruby
blom_ has joined #ruby
<lethjakman> centrx: ohhhh would the define_method go inside of the def property(sym)?
<lethjakman> and that just floats around somewhere higher in the code?
<lethjakman> bleh not used to meta programming.
<centrx> I haven't read that whole page
<centrx> RubyNoviceH, You can paste the one line in here then
<centrx> lethjakman, define_method defines the method
Al__ has quit [Quit: Al__]
<centrx> lethjakman, define_method(:property) { |sym| puts sym } is functionally the same as def property(sym); puts sym; end
mr_wooh23422 has joined #ruby
<lethjakman> ahhhhh that makes sense
<lethjakman> thank you!
RaCx has joined #ruby
obs has joined #ruby
njection has joined #ruby
banister has joined #ruby
<lethjakman> where would you put the def property in your code? just somewhere you're abstracting from? or a module you're extending?
mjs2600 has joined #ruby
jmpf has quit [Ping timeout: 264 seconds]
gstamp has quit [Ping timeout: 256 seconds]
andrewlio has quit [Quit: Leaving.]
juarlex has quit [Ping timeout: 240 seconds]
Maitiu has quit [Ping timeout: 264 seconds]
<RubyNoviceH> asdfasd
<RubyNoviceH> asdfads
Maitiu has joined #ruby
andrewlio has joined #ruby
<centrx> lethjakman, inside a class or a module
gstamp has joined #ruby
JesseCW has quit []
<RubyNoviceH> Centrx; http://pastebin.com/zCfLs17t
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
<lethjakman> got it! thanks
Jrz has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
f0ster has joined #ruby
njection has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
rootshift has joined #ruby
nisstyre has joined #ruby
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
RaCx has quit [Ping timeout: 252 seconds]
<jhass> RubyNoviceH: please repost a lot less frequent
Doc_X_ has joined #ruby
Doc_X_ is now known as dylannorthrup_
Gabri has joined #ruby
wallerdev has quit [Quit: wallerdev]
<centrx> RubyNoviceH, Have you tried looking through the GCharts code?
Doc_X has quit []
obs has quit [Quit: Saliendo]
dylannorthrup_ is now known as Doc_X
<RubyNoviceH> centrx; Yes.. I have
geopet has quit []
<RubyNoviceH> Centrix; I spent 4 hours on this!
irishcoder has joined #ruby
<RubyNoviceH> Centrix; I even posted a question
<RubyNoviceH> Centrix, If you run that code you will see.... i am not CRAZY
<centrx> I'm just proposing the idea
<centrx> Your line of code looks fine based on the docs
<RubyNoviceH> Yes, see what the file generates
<RubyNoviceH> its a backwards graph!
<centrx> There might be something from tracking it through the code base that would explain
andrewlio has quit [Quit: Leaving.]
bradhe has joined #ruby
kristiandelay has quit [Remote host closed the connection]
njection has joined #ruby
perlsyntax has quit [Quit: Textual IRC Client: www.textualapp.com]
geopet has joined #ruby
sdwrage has joined #ruby
SonicX has quit [Remote host closed the connection]
razibog has joined #ruby
sparrovv has joined #ruby
sentinal8473 has joined #ruby
beneggett has joined #ruby
alvaro_o has joined #ruby
melik has joined #ruby
<melik> hey everyone i am trying to do some simple arithmetic; how can i get decimals?
<melik> irb(main):001:0> (1231731025 - 1231473279) / 86400
<melik> => 2
<jhass> make one operand a float (.0) or just use .fdiv instead of /
<canton7> in order to get a floating-point output, at least one of the inputs has to be floating-point
wallerdev has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lxsameer has quit [Quit: Leaving]
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
irishcoder has quit [Remote host closed the connection]
r0nin has joined #ruby
havenwood has quit [Remote host closed the connection]
andrewlio has joined #ruby
momigi has joined #ruby
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
havenwood has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
<centrx> RubyNoviceH, Did you try the vAxis/direction suggestion from the stack overflow question?
kpshek has joined #ruby
postmodern has joined #ruby
<canton7> pastie an image of the output
<canton7> ?
njection has quit [Ping timeout: 265 seconds]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
vpretzel has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
smathieu has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
vpretzel has joined #ruby
saarinen has joined #ruby
mansi has quit [Remote host closed the connection]
havenwood has joined #ruby
smathieu has joined #ruby
RaCx has joined #ruby
mansi has joined #ruby
xcv has joined #ruby
bklane has joined #ruby
shadoi1 has joined #ruby
coderxin has joined #ruby
anoldhacker has joined #ruby
bklane has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
mehlah has joined #ruby
<anoldhacker> If I store a block for use in an instance eval, how can I pass args to the block at the time of evaluation?
jlast has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bynaryshef has joined #ruby
jlast has joined #ruby
<centrx> anoldhacker, Example?
<anoldhacker> Oh. Looks like instance_exec might work...
njection has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
Wolland has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
smathieu has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
einarj has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
_justin has quit [Quit: _justin]
x1337807x has joined #ruby
SCommette has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
momigi has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
mrsolo has joined #ruby
momigi has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
arcanez has joined #ruby
mansi has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
lw has quit [Quit: s]
tvw has quit []
<arcanez> is there a better way to write 'foo = "bar" if options[:foo].sym != :bar'
<arcanez> er
<arcanez> to_sym, not sym
SHyx0rmZ has quit [Ping timeout: 240 seconds]
<arcanez> but any way I can not have to use .to_sym?
<centrx> store it as a symbol?
<canton7> != 'bar' ?
toastynerd has joined #ruby
<arcanez> I'd like to think I'd know if it was going to be a symbol or string
senayar has quit [Ping timeout: 240 seconds]
<arcanez> I'd also like to think we'd always use symbols
michael_lee has quit [Quit: Ex-Chat]
bitcycle has quit [Quit: Page closed]
andrewhl has joined #ruby
jlast has joined #ruby
davy_ has joined #ruby
nanoyak has joined #ruby
jollyy has quit [Quit: jollyy]
<arcanez> better to .to_sym when I set it or when I compare?
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
<centrx> what is the data?
<centrx> symbols are smaller and faster but not garbage collected
njection has quit [Ping timeout: 265 seconds]
<arcanez> AR pkey
<centrx> yeah just convert it before you set it
<arcanez> I think rails HashWithIndifferentAccess has spoiled people into forgetting if they're using symbols or strings
Gabri has quit [Quit: Gone to sleep. ZZZzzz…]
<arcanez> (I realize that only involves the keys, but it makes them forget to care)
<jhass> if it's user data .to_s instead of to_sym
<jhass> when in doubt .to_s too
<jhass> String#to_sym can be harmful if you're not sure about the data source / the possible values, Symbol#to_s doesn't have that problem
<anoldhacker> This code works, but I cannot pass a block in the final c.x, which is a problem. I want c.foo{ more_stuff_here } to work as well. https://gist.github.com/student/9672895
geggam has joined #ruby
<anoldhacker> If you want to know I I'm looking at something so complex, it's because @r really is a variable—it will change with time.
bricker has quit [Ping timeout: 246 seconds]
<jhass> I don't think you can pass a block to a block
sailias has quit [Ping timeout: 240 seconds]
<jhass> you could let your block optionally accept a proc and convert a passed block to one
claymore has joined #ruby
<jhass> but tbh. I have doubts the whole thing leads to a clean design
SonicX has joined #ruby
maximski has quit []
linojon has quit [Quit: linojon]
<jhass> if you want to stick to the general design another possibility is replace your @methods hash with calls to define_method inside declare
<anoldhacker> No doubt this is going ugly places. This is low-level plumbing of a system that violates some of the basic rules of what OO is. More of a demonstration about what can be done if these capabilities are in place than anything else.
afreidah has quit [Read error: Operation timed out]
toastynerd has quit [Remote host closed the connection]
njection has joined #ruby
larissa has joined #ruby
<shevy> ewww
DrShoggoth has quit [Quit: Leaving]
JBreit has joined #ruby
<anoldhacker> If I go with define method, I'll need another level of wrapping, as different R objects have different methods.
<anoldhacker> But yeah, I can see that getting me there.
<jhass> anoldhacker: right, you'd want to define_singleton_method inside the instance of R
nanoyak has quit [Read error: Operation timed out]
axsuul has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tewlz has quit [Ping timeout: 240 seconds]
TripTastic has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
lolmaus_ has joined #ruby
julio_ has quit [Quit: leaving]
baroquebobcat has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
<anoldhacker> Nope. Still bad. The block that is sent to R#method has to be executed in the context of the C instance. Using define_singleton_method ends up with it executing on the R instance...
maletor has joined #ruby
njection has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
itadder has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
afreidah has joined #ruby
<jhass> right, let's get dirty: @r.singleton_class.instance_method(meth).bind(self).call(*args, &block)
nanoyak has joined #ruby
sambao21 has joined #ruby
<jhass> if that ends up in any production code I'll personally find and kill you ;)
sdwrage has quit [Quit: This computer has gone to sleep]
<anoldhacker> I thought that required self and @r to be in the same class or module...
momigi has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
momigi has joined #ruby
<jhass> hm right
irishcoder has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<anoldhacker> yep. :( TypeError: singleton method called for a different object
pyrac has quit [Quit: pyrac]
toastynerd has joined #ruby
<RubyNoviceH> Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
<centrx> What have you tried so far?
RaCx has quit [Quit: Computer has gone to sleep.]
<RubyNoviceH> Its ONE line
Wolland has joined #ruby
<RubyNoviceH> searched through every databaswe
<RubyNoviceH> and tried every option, except for the right one!
dingus_khan has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
njection has joined #ruby
dkamioka has joined #ruby
<jhass> anoldhacker: you could define_singleton_method inside method_missing, call it and undef right after
sambao21 has joined #ruby
<jhass> in an ensure block to make sure it happens even with exceptions
crystal77 has quit [Quit: Computer has gone to sleep.]
<anoldhacker> Name mangling. I should have known it would come to that….
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> I mean I see no real world application for this anyway, so I wouldn't spend too much effort personally
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
dstynchula has joined #ruby
RubyNoviceH has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
Wolland has quit [Ping timeout: 265 seconds]
Jrz has joined #ruby
<anoldhacker> Sadly, there really is. Have you heard of DCI? It's a really powerful innovation from the guy that gave us MVC. I've come to the conclusion, however, that these objects are NOT proper OO objects. Because it take so much pain to make them work.
jrhorn424 is now known as zz_jrhorn424
crystal77 has joined #ruby
klaut has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<anoldhacker> s/take/takes/
lele` is now known as lele
<anoldhacker> gtg
anoldhacker has left #ruby [#ruby]
dstynchu_ has quit [Ping timeout: 264 seconds]
johncjensen has joined #ruby
beneggett has joined #ruby
ejfinneran has joined #ruby
jackneill has quit [Remote host closed the connection]
njection has quit [Ping timeout: 264 seconds]
mlpinit has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
apeiros has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
benzrf|offline is now known as benzrf
<benzrf> hej da
<shevy> die
<shevy> oops
<shevy> hi
lele is now known as lele|z
lele|z is now known as lele
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
shredding has joined #ruby
workmad3 has joined #ruby
zachallett has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 265 seconds]
njection has joined #ruby
cina has quit [Ping timeout: 264 seconds]
brain_shim has quit [Remote host closed the connection]
cina has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
wallerdev has joined #ruby
gregf has joined #ruby
agrinb has joined #ruby
pablovilas has joined #ruby
saarinen has joined #ruby
yubrew has joined #ruby
samuel02 has quit [Remote host closed the connection]
<hfp> Quick question: when you're writing code, do you start with setting the variables and then defining functions or the other way around?
SonicX has quit [Remote host closed the connection]
johncjensen has quit [Remote host closed the connection]
druiddesign has joined #ruby
njection has quit [Ping timeout: 265 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tewlz has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
claymore has quit [Quit: Leaving]
evenix has quit [Ping timeout: 246 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
circuit has joined #ruby
<pipework> hfp: I start with tests.
<pipework> Sometimes I spike things out a bit though.
kbarry has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: dblessing]
blom_ has quit [Remote host closed the connection]
juarlex has joined #ruby
blom_ has joined #ruby
kpshek has quit []
njection has joined #ruby
RaCx has joined #ruby
Wolland has joined #ruby
kobain has joined #ruby
senayar has joined #ruby
geopet has quit []
kbarry has joined #ruby
bricker has joined #ruby
<hfp> pipework: I mean when writing the actual ruby script, not when starting to plan a project/feature
Astralum has quit [Ping timeout: 246 seconds]
<shevy> hfp variables usually come after methods
dstynchula has quit [Remote host closed the connection]
<hfp> ok
<shevy> hfp the less variables you can get away with, the better
blom_ has quit [Read error: Operation timed out]
popl has quit [Ping timeout: 265 seconds]
bradhe has quit [Remote host closed the connection]
<hfp> I see, thanks.
<hfp> Any of you tried CodeEval as an exercise?
senayar has quit [Ping timeout: 240 seconds]
<shevy> not me
<shevy> hfp, I think most more advanced ruby users won't need many exercise, and the amount of newcomers here in the channel is ... I think 5%, many of which just idle silently to power
bricker_ has joined #ruby
<centrx> Your numbers are way off
x1337807x has joined #ruby
bricker_ is now known as bricker`work
x1337807x has quit [Max SendQ exceeded]
bricker has quit [Disconnected by services]
<centrx> Although a lot of newcomers join #ruby-lang instead
x1337807x has joined #ruby
irishcoder has quit [Remote host closed the connection]
<b00stfr3ak> thanks to who ever pointed me to dispatch tables
wjlafrance has joined #ruby
<philcrissman> hfp: had never heard of CodeEval. But I probably wouldn't bother; I did like codewars.com a lot though.
Speed has joined #ruby
tvw has joined #ruby
<philcrissman> Similar except it was just for personal progress, not for "unlocking awesome startup jobs".
dstynchula has joined #ruby
janjos_ has joined #ruby
x1337807x has quit [Client Quit]
pyrac has joined #ruby
blom_ has joined #ruby
njection has quit [Ping timeout: 265 seconds]
irishcoder4 has joined #ruby
Xeago has quit [Remote host closed the connection]
johncjensen has joined #ruby
timonv has quit [Remote host closed the connection]
shadoi1 has quit [Quit: Leaving.]
coderxin has quit [Remote host closed the connection]
kpshek has joined #ruby
jmpf has joined #ruby
evenix has joined #ruby
relix has joined #ruby
pyrac has quit [Ping timeout: 245 seconds]
failshell has quit []
agarie has quit [Remote host closed the connection]
agarie has joined #ruby
<gizmore> http://cxg.de/_10447b.htm weird exception for Open4::popen4 stdout :(
agarie has quit [Client Quit]
<wallerdev> looks like the first param is a number not a stream
<gizmore> it is IO:Fd
sambao21 has quit [Quit: Computer has gone to sleep.]
<gizmore> according to byebug and => stdout
<wallerdev> the docs say the first param is a pid
<wallerdev> Open4::popen4("sh") do |pid, stdin, stdout, stderr|
johncjensen has quit [Remote host closed the connection]
<gizmore> oh
njection has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<gizmore> let me try!
wjlafrance has quit [Quit: This computer has gone to sleep]
<gizmore> i copy and pasted that line somewhere... probably docs wrong
xcv has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
xcv has joined #ruby
rezzack has joined #ruby
<gizmore> awesome.... thx wallerdev!
glebm_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore> now i only need to find out when a user/password is requested in stdin
evenix has quit [Remote host closed the connection]
obs has joined #ruby
obs has quit [Client Quit]
<hfp> philcrissman: Yes it's also for my own progress but if I can "unlock an awesome startup job" I wouldn't mind
<philcrissman> more power, then.
<philcrissman> But startups are hiring like crazy right now. You seriously don't need CodeEval to get a startup job.
<hfp> Don't I need to show I know how to do something, even if I apply for junior positions?
<philcrissman> hfp: what's your experience level?
<wallerdev> yeah come to SF, tons of startups here
nari has quit [Ping timeout: 240 seconds]
<philcrissman> Or Seattle.
<philcrissman> hfp: that's what an interview is for.
<philcrissman> :)
ga1j1n has quit [Remote host closed the connection]
<shevy> hfp then go and write more code!
mjs2600 has quit [Remote host closed the connection]
<wallerdev> it can snow in seattle and no one knows how to drive in it though
<shevy> haha
<hfp> philcrissman: I'd say I'm junior. Never studied in school, self taught as a hobby for 10 years, now learning more seriously from the ground up to bridge the gaps I have
SHyx0rmZ has joined #ruby
ga1j1n has joined #ruby
alexju has quit [Remote host closed the connection]
<philcrissman> hfp: okay, if you're beginning and thinking jr dev position, yes, you want something to show. But OSS/github stuff is probably more meaningful than codeeval scores.
davy__ has joined #ruby
_lynX has quit [Quit: Leaving]
baroquebobcat has joined #ruby
danshultz has quit [Remote host closed the connection]
jmpf has quit [Quit: leaving]
<wallerdev> yeah tech companies love to see things on github
<philcrissman> hfp: 10 years, even part time, is not bad. I'm sure you could land a jr dev role. I mean, I don't know you, but, all things being equal, I'd say it's possible.
<hfp> philcrissman: I see. I found CodeEval through codingforinterviews.com because I wanted to see what are the kind of questions you get at coding interviews
bradhe has joined #ruby
danshultz has joined #ruby
geopet has joined #ruby
xcv has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
<shevy> mostly stupid questions
xcv has joined #ruby
<philcrissman> hfp: for that, it may be good practice. Interviews can be nerve wracking, always good to have some practice with that sort of problem.
njection has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
<philcrissman> wallerdev: it snowed twice here this year. Both times it lasted on the ground less than a day. But yeah, one time (iirc) was at night, so it was cold, and yep, people don't know how to drive in it. :(
claymore has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razibog has quit [Read error: Connection reset by peer]
<philcrissman> Still, not bad. I came here from Minnesota, so it felt like spring all winter long. :)
razibog1 has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
<wallerdev> i was there in like 2008 for a tech interview and they got me a rental car and it had no snow scraper, and everyone was going 25mph on the highway with like an inch of snow haha
<shevy> Minnesota is cold?
matcouto has joined #ruby
<philcrissman> shevy: :/
<hfp> I live in QC, we have about 40cm of snow in the garden right now :(
* philcrissman can't tell if trolling or serious
<shevy> hey I cant remember unimportant areas :)
<wallerdev> minnesota is next to texas shevy
<wallerdev> :p
ga1j1n has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
<shevy> we have ... california... texas... new york and perhaps florida. seattle should fall to canada already, the rest is like non existing
<philcrissman> wallerdev: for certain uses of the term "next to"
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
nhmood has quit [Quit: Connection closed for inactivity]
<philcrissman> but then what would Chris Cornell feel like when he was looking California? :(
samuel02 has quit [Ping timeout: 240 seconds]
* soahccc took out his bicycle today… tshirt weather
danshultz has quit [Ping timeout: 245 seconds]
<wallerdev> shorts weather today in SF, super nice out
<philcrissman> wallerdev: nice. It's nice here, too, but not shorts (though I've seen them around). Sweatshirt weather.
<maxmanders> If I have a Gemfilem I can specify a name, version, github source etc. and do bundle install / update. How do I achieve the same effect without a Gemfile, i.e. install directly into RVM from a Github source?
hobodave has quit [Quit: Computer has gone to sleep.]
<wallerdev> weather app says its 70 out right now here
<philcrissman> hm, only 48 here. You win.
doodlehaus has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
ga1j1n has joined #ruby
beneggett has joined #ruby
mmoretti has quit [Quit: Leaving...]
khagler_ has joined #ruby
basex has quit [Quit: basex]
Sawbones has quit []
Gabri has joined #ruby
<benzrf> what are the downsides of mruby atm
<benzrf> is it super slow or anything
<centrx> benzrf, It is a subset of the complete Ruby language. Also it's very new. Those are the downsides.
<benzrf> subset?
<benzrf> in what sense
njection has joined #ruby
<centrx> benzrf, "mruby is the lightweight implementation of the Ruby language complying with part of the ISO standard."
<centrx> I don't know what it's missing
<benzrf> oh
<shevy> benzrf you cant easily require stuff in it
itadder has quit []
jerius has quit []
mrsolo has quit [Quit: This computer has gone to sleep]
agrinb has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
agrinb has joined #ruby
jerius has joined #ruby
shadoi has quit [Client Quit]
<benzrf> oh dang
<benzrf> why not?
<shevy> dunno
<shevy> I think the focus may be different
<shevy> they praise embeddability all over the homepage
<benzrf> mm
Gabri has quit [Client Quit]
<shevy> so perhaps you may then have to compile stuff into it
<benzrf> well im planning on using it for my 'image-based' ruby widget
<benzrf> so requiring should not be such a big deal
<centrx> What is your image-based ruby widget?
irishcoder4 has quit [Remote host closed the connection]
<shevy> require 'pp'
<shevy> (mirb):1: undefined method 'require' for main (NoMethodError)
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<benzrf> 1 sec
perlsyntax has joined #ruby
<shevy> I really would like to know how to extend mruby
njection has quit [Ping timeout: 265 seconds]
pyrac has joined #ruby
<benzrf> centrx: im planning on working out serialization of mruby states
MatthewsFace has joined #ruby
<benzrf> should i be able to figure that shit out, i intend to set up some kind of framework for interacting with a running ruby instance, smalltalk/SLIME style
<wallerdev> thatd be cool
<benzrf> possibly with some kind of interface like a FUSE fs corresponding to namespaces and stuff
adam_ is now known as adam12
<wallerdev> will it have twitter integration?
<benzrf> should i work out enough to make it usable
tcstar has quit [Read error: Connection reset by peer]
<benzrf> (which i probably wont)
<hfp> philcrissman: I just checked codewars, looks so much nicer haha I might switch
coderxin has joined #ruby
<benzrf> id probably include some kinds of hooks for saving the code for methods
coderxin has quit [Read error: Connection reset by peer]
Xiti` has quit [Quit: Leaving]
<benzrf> so that you could then export to plain text when youre done for standard use
JBreit has left #ruby ["Leaving"]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderxin has joined #ruby
momigi has quit [Remote host closed the connection]
<benzrf> wallerdev: do you know how smalltalk/slime-style dev works
yubrew has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
<philcrissman> hfp: codewars is pretty cool.
<wallerdev> ive seen an old youtube video on it a few years back
<benzrf> codewars is the shit
ejfinneran has quit [Remote host closed the connection]
zachallett has joined #ruby
jollyy has joined #ruby
<wallerdev> basically you write live code while your application is running right?
<benzrf> try out my katas =3
<benzrf> wallerdev: sorta.
<benzrf> in smalltalk, at least, the env you use to program is the program that you are modifying
<benzrf> it's as if you did all your dev in pry
<benzrf> but x100
ner0x has joined #ruby
Jetchisel has joined #ruby
<benzrf> and also you can save the state of the VM and continue working later
<wallerdev> cool :)
<benzrf> so in the case that i actually make this thing work...
<wallerdev> yeah i remember reading a bit about it when i was looking at new languages to learn
<ner0x> Any UMO tools for linux (non KDE/Gnome) people in here use?
<shevy> benzrf cool, you do a smalltalk-like VM in ruby?
<ner0x> s/UMO/UML
<benzrf> you could, of course, add method definition hooks to the system you're interacting with to tweet that you made a new method
<wallerdev> ended up learning erlang instead haha
<benzrf> =]
afreidah1 has joined #ruby
<shevy> wallerdev hahaha
<benzrf> shevy: im planning on harnessing mruby to do something like that
<shevy> we need to assimilate erlang's pros into ruby
<benzrf> =o
<hfp> Is it less focussed on solving mathematics problems? I hate maths and a lot of the codeeval exercises are math-relted
momigi has joined #ruby
<hfp> related*
<benzrf> hfp: certainly
mrsolo has joined #ruby
<shevy> hfp is this really important... I mean, just write some good projects in ruby, you will learn the same as you go and solve real problems
michaeldeol has joined #ruby
<benzrf> hfp: just write a metacircular evaluator
nfk has quit [Quit: yawn]
<benzrf> u goddamn pleb
<hfp> shevy: What I like about these exercises is that they are made to show you some concepts/patterns. Kind of like the koans. If I write my own stuff I might always do things the same way and never go where the codewars/eval challenges take me
<benzrf> hmm
khagler_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> anything on rubyconf 2014 on the web
<benzrf> *about
njection has joined #ruby
<benzrf> rubyconf.org is still for 2013
afreidah has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
Hobogrammer_ has joined #ruby
jerius has quit []
SonicX has joined #ruby
<shevy> I dont know the koans either
<shevy> back then I had the pickaxe, and went through chris pine learn to program tutorial
<shevy> benzrf where will rubyconf 2014 be?
<benzrf> isnt it san diegok
<shevy> damn
<hfp> the koans are pretty cool but it's a lot to take in, you can't possibly remember eveything
<benzrf> if you have ice cream, i will give it to you
<benzrf> if you do not have ice cream, i will take it from you
<shevy> lol
<benzrf> this is an ice cream koan
rainmanjam has quit [Remote host closed the connection]
<hfp> haha
jamto11 has joined #ruby
<shevy> sounds like a simple toggle flag
<shevy> var = ! var
jamto11 has quit [Client Quit]
rm__ has joined #ruby
nfk has joined #ruby
heidi1 has joined #ruby
heidi1 has quit [Client Quit]
jamto11 has joined #ruby
pablovilas has quit [Quit: Leaving]
<hfp> yes it's only assertions to point out specific things in ruby. it's easy to cheat but it's not the point
Xiti has joined #ruby
coderxin has quit [Ping timeout: 240 seconds]
danno1 has quit [Ping timeout: 264 seconds]
nc__ has joined #ruby
tvw has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jerius has joined #ruby
sparrovv has joined #ruby
<nc__> hello, I am trying to use the Settingslogic gem with the newest version of Ruby 2.0 and running into some issues
<nc__> I am wondering if anyone can suggest a definitive fork of the gem
<nc__> I see that on github there are some languishing pull-requests to the gem that should fix the issues I'm facing (something wrong with to_ary handling in method_missing)
njection has quit [Ping timeout: 240 seconds]
ga1j1n has quit [Remote host closed the connection]
<nc__> .rvm/gems/ruby-2.0.0-p451/gems/settingslogic-2.0.9/lib/settingslogic.rb:189:in `missing_key': Missing setting 'to_str' in 'database' section in config/settings.yml (Settingslogic::MissingSetting)
Wolland has quit [Write error: Broken pipe]
stringoO has quit [Quit: stringoO]
<centrx> nc__, I don't know about a fork. There are several Configuration Management gems listed at https://www.ruby-toolbox.com/categories/Configuration_Management
<nc__> ok, thanks
<centrx> nc__, They are in order of popularity, and then you can measure how active they are by looking at the "Released" and "Last commit" fields
<nc__> cool
mrsolo has quit [Quit: This computer has gone to sleep]
mike_k has quit [Remote host closed the connection]
RaCx has joined #ruby
francisfish has quit []
afreidah1 has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
mary5030 has quit [Remote host closed the connection]
kirun_ has joined #ruby
senayar has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danno1 has joined #ruby
kirun_ has quit [Client Quit]
tonni has quit [Quit: Leaving...]
byprdct has quit [Ping timeout: 246 seconds]
Amart41 has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 240 seconds]
Amart41 has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
pyrac has quit [Ping timeout: 240 seconds]
njection has joined #ruby
AussieDownUnder has joined #ruby
rickruby has joined #ruby
toastynerd has quit [Remote host closed the connection]
beneggett has joined #ruby
toastynerd has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
beneggett has quit [Client Quit]
ifmatch has joined #ruby
shedd has joined #ruby
toastynerd has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
Amart41 has quit [Ping timeout: 265 seconds]
juarlex has quit [Remote host closed the connection]
juarlex has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
maletor has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
andrewhl has quit [Quit: andrewhl]
chipotle has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
sambao21 has joined #ruby
njection has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
juarlex_ has joined #ruby
danno1 has quit [Ping timeout: 240 seconds]
<nc__> fwiw, I was doing something silly (I made a mistake) - my bug was not a Settingslogic issue, but attempting to load some YAML that was already loaded.
<nc__> thanks all
<nc__> bye
nc__ has quit [Quit: nc__]
charliesome has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
glebm has joined #ruby
maletor has joined #ruby
Burgestrand has joined #ruby
saarinen has joined #ruby
toastynerd has joined #ruby
njection has joined #ruby
jerius has quit [Read error: Operation timed out]
mikepack has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
geggam has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
dingus_khan has joined #ruby
SHyx0rmZ has quit [Ping timeout: 245 seconds]
xcv_ has joined #ruby
userx has joined #ruby
Danibal has joined #ruby
xcv has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 245 seconds]
crystal77 has joined #ruby
toastynerd has joined #ruby
fgo has joined #ruby
claymore has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 240 seconds]
shadoi has joined #ruby
vpretzel has quit [Quit: Adios!]
njection has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
SHyx0rmZ has joined #ruby
teddyp1cker has joined #ruby
Wolland has joined #ruby
johncjensen has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
havenwood has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
havenwood has joined #ruby
lethjakman has joined #ruby
chris_thomson has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
njection has joined #ruby
dkamioka has quit [Remote host closed the connection]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
nateberkopec has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
dingus_khan has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Squarepy has quit [Quit: Leaving]
irishcoder has joined #ruby
h4mz1d has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
quatron has joined #ruby
h4mz1d has quit [Max SendQ exceeded]
vky has joined #ruby
workmad3 has joined #ruby
shedd has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
dstynchula has quit [Remote host closed the connection]
dstynchula has joined #ruby
mansi has quit [Remote host closed the connection]
SonicX has quit [Remote host closed the connection]
mansi has joined #ruby
<hfp> I hate regexes so much
h4mz1d has joined #ruby
<shevy> hfp yeah I do as well
h4mz1d has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
<shevy> but they are too useful to avoid them
<shevy> I try to keep them as simple as possible and use them only when it is really necessary or gives a clear advantage
<GaryOak_> if you can get away with not using them it's better
TMM has joined #ruby
<shevy> hfp do you know rubular?
<hfp> shevy: no?
njection has quit [Ping timeout: 265 seconds]
<shevy> I use it often to build up my regex
chipotle has quit [Quit: cya]
toastynerd has quit [Remote host closed the connection]
matcouto has joined #ruby
grayWolf has joined #ruby
irishcoder has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
<hfp> Nice, I was using regex101.com but I am never sure which engine to pick. I'll try rubular
dstynchula has quit [Ping timeout: 240 seconds]
atno has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
Avahey_ has joined #ruby
Speed has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: Burgestrand]
sailias has quit [Ping timeout: 240 seconds]
grayWolf is now known as Speed
<hfp> found my regex in 2 seconds with rubular. What is the name of Ruby's regex engine? When I try on regex101 with PCRE, Pythin or JS engines, I don't get the same matches than with Rubular
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mike_k has joined #ruby
<centrx> hfp, Onigurama I believe
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderxin has joined #ruby
<apeiros> no longer I think. it's still based in oniguruma, but patched up afair
mrsolo has quit [Quit: This computer has gone to sleep]
<workmad3> hfp: ruby 1.9 uses onigurama, ruby 2.0 uses Onigmo (a fork of onigurama)
dik_dak has quit [Quit: Leaving]
rickruby_ has joined #ruby
<workmad3> *oniguruma
jobewan has quit [Quit: Leaving]
<apeiros> "Regular expression engine is changed to Onigmo"
njection has joined #ruby
<apeiros> yeah
<apeiros> what workmad3 said
<apeiros> dunno about 2.1, but I guess still Onigmo
<workmad3> apeiros: heh :) my source was wikipedia ;)
zachallett has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
atmosx has joined #ruby
meatherly has joined #ruby
rickruby has quit [Ping timeout: 240 seconds]
mike_k has quit [Client Quit]
samuel02 has joined #ruby
coderxin has quit [Ping timeout: 240 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
shredding has quit [Quit: shredding]
thumpba has quit [Remote host closed the connection]
tcstar has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
lethjakman has quit [Ping timeout: 245 seconds]
MatthewsFace has joined #ruby
jollyy has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
nfk has quit [Quit: yawn]
<hfp> I see
michaeldeol has joined #ruby
wallerdev has quit [Quit: wallerdev]
mikemar10 has quit []
jsilver-ipod has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
<hfp> In this: http://rubular.com/r/6rYlQv0Pei, why (and what) does it match inbetween the non alpha characters?
jhass is now known as jhass|off
jlast has quit [Remote host closed the connection]
tewlz has quit [Ping timeout: 264 seconds]
Speed has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
njection has quit [Ping timeout: 240 seconds]
dstynchula has joined #ruby
Husel has joined #ruby
<apeiros> hfp: * is "zero or more"
<apeiros> so *zero* chars is a valid match, and that's what it matches.
spyderman4g63 has quit []
senayar has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
Nyyx has quit [Ping timeout: 255 seconds]
<hfp> I don't understand what is it matching exactly, it's not like there are any characters there
senayar has quit [Read error: No route to host]
Nyyx has joined #ruby
<hfp> between `&$` there is nothing
sepp2k1 has quit [Read error: Connection reset by peer]
<apeiros> it's matching the empty string
senayar has joined #ruby
<hfp> I hate regexes :)
<apeiros> as said, zero characters is a valid match
<hfp> I see
jlast has quit [Ping timeout: 265 seconds]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
afreidah1 has joined #ruby
njection has joined #ruby
<apeiros> well, regexes, like every other code, just does precisely what you tell it to do…
doodlehaus has joined #ruby
tils has joined #ruby
<apeiros> you tell it to match zero or more characters, and it happily matches zero characters.
doodlehaus has quit [Client Quit]
<dx7> hey
<hfp> apeiros: I understand it's just that logic can be very counter-intuitive
chrisseaton has joined #ruby
<apeiros> then don't use intuition
<hfp> that's why I'm learning
johncjensen has quit [Remote host closed the connection]
<apeiros> at least until you developed a matching one for regexes
timonv has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
<hfp> Now I have this regex http://rubular.com/r/Ff4k3VJNsE but when I try it there https://eval.in/123958 I'm getting a different result. Why is that? It seems to be stopping at the first match despite the regex?
kevind has quit [Quit: kevind]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> slice only gets you the first match
<apeiros> rubular shows you all possible matches
jsilver-ipod has quit [Ping timeout: 265 seconds]
blom_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
njection has quit [Ping timeout: 240 seconds]
geopet has quit []
blom_ has joined #ruby
dingus_khan has joined #ruby
lethjakman has joined #ruby
vky has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0a2/20140317004002]]
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
shedd has joined #ruby
<hfp> ah, that makes more sense
lolmaus has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<hfp> I appreciate the explanations, I hope I'm not coming across as thick as I feel like I do
rabeldable has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 252 seconds]
<shevy> well that would mean that people would care about it
blom_ has quit [Ping timeout: 240 seconds]
<shevy> hfp but what about those people who don't care one way or the other ;P
<bnagy> regex is hard to write and almost impossible to read
saarinen has quit [Quit: saarinen]
<bnagy> its only redeeming features are that it's concise and fast
afreidah1 has quit [Ping timeout: 245 seconds]
njection has joined #ruby
ifmatch has quit []
<bnagy> so just treat it as a last resort and move on with writing good code
shedd has quit [Ping timeout: 252 seconds]
Vovko has quit [Remote host closed the connection]
centrx has joined #ruby
<benzrf> parsec is the shit
<benzrf> too bad this is RubyPanther
<benzrf> *ruby
<benzrf> god dammit
rootshift has joined #ruby
megaputer has joined #ruby
<centrx> How has it benzrf
<gizmore> i receive ascii control chars from a stream. when i puts it, all looks short and fine... however when i send it to irc all the whole stuff is sent... can i somehow replay the cursor movement before sending?
mansi has joined #ruby
mikepack has joined #ruby
saarinen has joined #ruby
_reset has joined #ruby
njection has quit [Ping timeout: 265 seconds]
jjbohn has quit [Quit: Leaving...]
lmickh has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
<hfp> also, what do you favour when writing code? Readability, number of lines or execution speed?
flowerhack has quit [Quit: Connection closed for inactivity]
<dorei> execution speed and ruby? :D
Altonymous has quit [Quit: Altonymous]
ktosiek has quit [Remote host closed the connection]
<centrx> Clear, maintainable code is most important.
njection has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> centrx: NB
artgoeshere has quit [Quit: I'll see myself out.]
<Lewix> hello guys
sentinal8473 has quit [Quit: Textual IRC Client: www.textualapp.com]
chrisseaton has quit []
artgoeshere has joined #ruby
Wolland has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
<benzrf> hello Lewix
<benzrf> hows ig going
<benzrf> *it
atmosx has quit [Quit: Lost in trance]
<Lewix> hey benzrf
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
EminenceHC has joined #ruby
rm__ has quit [Read error: Connection reset by peer]
druiddesign has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has joined #ruby
njection has quit [Ping timeout: 265 seconds]
Voodoofish430 has quit [Ping timeout: 252 seconds]
Wolland has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
centrx has quit [Read error: Connection reset by peer]
centrx has joined #ruby
Voodoofish430 has joined #ruby
mansi has quit [Remote host closed the connection]
centrx is now known as Guest32626
Guest32626 is now known as centrx
sdouglas has quit [Remote host closed the connection]
mansi has joined #ruby
Husel has left #ruby [#ruby]
<bnagy> hfp: not my quote, but "source code is a way of telling other people what you wanted the computer to do"
shedd has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
bynaryshef has quit []
njection has joined #ruby
x1337807x has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
davy__ has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
YamakasY has quit [Ping timeout: 264 seconds]
Jrz has quit [Quit: Computer has gone to sleep.]
incade has joined #ruby
charliesome has joined #ruby
Vovko has joined #ruby
Inoperable has quit [Remote host closed the connection]
incade has quit [Client Quit]
incade has joined #ruby
Elico has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<dorei> isnt source code a way of communiting an algorithm to the computer?
njection has quit [Ping timeout: 252 seconds]
<mnemon> dorei: no, it will be translated for the computer ;)
juarlex_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
<bnagy> also the computer can just completely ignore you
ghr has joined #ruby
<bnagy> "Oh you wanted to copy that memory.. nah sorry. You wanted to write that to physical disk? Pff, let's do that later..."
m8 has quit [Quit: Sto andando via]
<bnagy> "nice recursion bro, but let's not"
<dorei> lol
axsuul has quit [Ping timeout: 246 seconds]
Doppp has joined #ruby
coderxin has joined #ruby
culturelabs_ is now known as culturelabs
Mapley is now known as Mapleh
Mapleh is now known as Mapley
workmad3 has quit [Ping timeout: 240 seconds]
<bnagy> "you only want to evaluate one side of this if because it's 'more efficient'?? - noob"
<bnagy> now I'm tempted to go and make a whole bunch of scumbag cpu memes :/
toastynerd has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
byprdct has joined #ruby
philcris_ has joined #ruby
philcris_ is now known as philcrissman_
njection has joined #ruby
mr_snowf1ake has joined #ruby
philcrissman_ has quit [Remote host closed the connection]