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
michaeldeol has quit [Client Quit]
Bira has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
wallerdev has joined #ruby
wyman has joined #ruby
bmcorser has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Quit: Computer has gone to sleep.]
codabrink has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 276 seconds]
evenix has joined #ruby
andy___ has quit [Ping timeout: 264 seconds]
wyman has quit [Client Quit]
wyman has joined #ruby
nisstyre has joined #ruby
x77686d has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
Lemur has joined #ruby
Lewix has quit [Remote host closed the connection]
<wallerdev> Solnse: i find it easier to find things if every class always has its own file
weaksauce has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
afex has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
troyronda has quit [Remote host closed the connection]
marahin has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 252 seconds]
m3nTe has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
dotemacs has quit [Quit: Connection closed for inactivity]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
Bira has joined #ruby
troyronda has joined #ruby
<Firebox> shevy: Beginning Linux programming 4th edition is good for learning english?
troyronda has quit [Remote host closed the connection]
<Firebox> learning liunx?
mr_rogerz has joined #ruby
codeFiend has joined #ruby
<terrellt> Almost for sure not english.
instantaphex has joined #ruby
<instantaphex> can anyone tell me what the || does in front of an equals sign?
troyronda has joined #ruby
skysploit has quit [Quit: Leaving]
<instantaphex> for example: @words ||= 0
<terrellt> >> words = 1; words ||= 2; words
wjimenez5271 has quit [Ping timeout: 265 seconds]
crystal77 has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
<terrellt> Fine then.
jcs222 has joined #ruby
<terrellt> << words = 1; words ||= 2; words
<terrellt> =(
<terrellt> instantaphex: Shortcut for "set this variable unless it's set already"
<instantaphex> ahhh
<terrellt> eval-in: Why you hatin'?
<instantaphex> an or seems like a strange way to do that
jjbohn has joined #ruby
<terrellt> instantaphex: It's a shortcut for words = words || value
kyb3r_ has quit [Ping timeout: 255 seconds]
<instantaphex> Ohhh
meatherly has joined #ruby
<instantaphex> now I get it
<instantaphex> thanks!
razrunelord has quit [Remote host closed the connection]
wyman has quit [Quit: wyman]
Guest89644 has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
stantona has quit [Remote host closed the connection]
<shevy> Firebox you really should train your english first
<shevy> make it your primary language for some months
shinobi_one has quit [Quit: shinobi_one]
<Firebox> ok i see. shevy
<Firebox> Beginning Linux programming 4th edition is good for learning linux? shevy
kyb3r_ has joined #ruby
fgo has joined #ruby
testcore has quit [Quit: [BX] Uh oh... I'm getting a blip on the gaydar. Richard Simmons is coming!]
rahult has joined #ruby
<shevy> you should learn english first
<shevy> then, learn ruby
<shevy> and after that, go learn linux
jamto11 has quit [Remote host closed the connection]
bradhe has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
troyronda has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 252 seconds]
wyman has joined #ruby
Solnse has quit [Quit: Leaving.]
<Firebox> english ->ruby->linux?
popl has quit [Ping timeout: 252 seconds]
<Firebox> english : 3 years, ruby : 2 month, linux : 6 month.
<Firebox> i think so.
Hanmac has quit [Ping timeout: 264 seconds]
<wallerdev> you really should use linux before learning ruby
afex has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<terrellt> See you in three years.
<Lemur> Those two are pretty well interchangeable.
stantona has joined #ruby
<Lemur> Linux and Ruby, you need to know both really.
<wallerdev> well
<Lemur> well, unix like system. Mac counts too
<wallerdev> learning ruby on windows is gonna make you hate ruby
<terrellt> I have to train some student workers here shortly. I'm seriously considering putting them in front of a terminal and unplugging the mouse. 1. Tmux, 2. Vim, 3. Ruby
<Lemur> leaning anything on windows will make you hate it.
x1337807x has joined #ruby
<wallerdev> yes get a mac :D
<wallerdev> at least give them emacs haha
<Lemur> Mac at work
<Lemur> Linux at home
<wallerdev> vim is not good to start on
<Lemur> Vim + Tmux <3
<wallerdev> they wont be able to even type lol
<terrellt> Psh, right in the deep end!
<Lemur> oi, I started vim
<Lemur> just give them a good cheat sheet
jeregrine has quit [Quit: Connection closed for inactivity]
djbkd has quit [Remote host closed the connection]
<Lemur> sublime text is probably the simplest to get people started on.
<Firebox> i have many anti for 1 day.
<Lemur> vim if they're already versed in command line.
<Lemur> I was a sysadmin long before I knew ruby
cjsarette has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
<Lemur> so me starting to program ruby in vim was a given by that point.
aspires has joined #ruby
<terrellt> Right in the deep end I say!
vlad_starkov has joined #ruby
<terrellt> I understand the difficulty, I certainly didn't start this way. I just honestly feel like you have to feel comfortable with the computer, and I think you get that feeling the most when you're hotkeying your way around a tmux session.
tyfighter has quit [Quit: tyfighter]
<Lemur> show them about mapping caps lock to control and the action key to a
<Lemur> saves a huge amount of annoyance
stantona has quit [Ping timeout: 252 seconds]
<shevy> Firebox man, you need 3 years to learn english??? what is your native language?
<Firebox> japanese
<Lemur> that, and index starting at 1 for more natural pane selection
pwh has quit []
<terrellt> Lemur: I have action key set to a, never thought about switching control to caps lock.
<Lemur> faster for me at least
fgo has joined #ruby
jamto11 has joined #ruby
<Lemur> keeps me from botching things up when I type too fast as well.
<shevy> Firebox k, then you would be in good company, matz' english is still not perfect, but his ruby code is excellent
<shevy> but he uses emacs + linux (debian)
senayar has joined #ruby
<terrellt> Well I mean
tvw has quit []
<terrellt> I'd hope Matz' ruby code is good.
<terrellt> Being his language.
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> terrellt not sure, he writes a lot of C every day :\
<shevy> let me try to find some examples of his ruby in mruby
IceDragon has joined #ruby
<terrellt> That makes his ruby even better! "This doesn't feel right...oh look new feature, ruby 2.1.2"
<Firebox> shevy: i think i will stop programming.
<Lemur> about the same as Guido never claiming to be an expert in Python.
<Firebox> i spend too many time for programming
<shevy> matz uses the no () style :(
<Lemur> aha, seattle ruby
<Lemur> he spent too long with tenderlove again
<shevy> Firebox k, go bboying then! https://www.youtube.com/watch?v=_vNdFx6iBsY
<terrellt> shevy: For function defs?
<shevy> terrellt yeah
mehlah has quit [Quit: Leaving...]
<shevy> his methods are very short
<terrellt> shevy: Except for between.
vlad_starkov has quit [Ping timeout: 252 seconds]
<shevy> hehe
<terrellt> Nothing about this looks bad. He prefers clear branches instead of inline ifs, but that's in a lot of coding standards.
djbkd has joined #ruby
cjsarette has joined #ruby
<Firebox> my iq is just 152
<Firebox> too low
psyko666 has joined #ruby
<terrellt> Rofl.
eynj has joined #ruby
<terrellt> And suddenly I'm done with that guy.
<benzrf> implying thats actually ur iq
senayar has quit [Ping timeout: 252 seconds]
<Lemur> humblebrag?
<shevy> Firebox do you really want to waste your life sitting before a computer?
roadie has joined #ruby
x77686d has quit [Quit: x77686d]
<Firebox> shevy: how can i do? i don’t know really.
<Lemur> ignoring the irrelevance of iq
<Firebox> givme advice.
<Firebox> give me advice
<Firebox> shevy:
<shevy> no, that is your freedom to decide what you want to do Firebox
kaspergr_ has joined #ruby
m00nlight has quit [Ping timeout: 240 seconds]
<Firebox> i study programming for 2 year. now i am too exhausted.
<Lemur> How old are you anyways?
<shevy> Firebox then you are simply having a burn out
<Firebox> i m in university.
meatherly has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
<dnordstrom> I.e., he could be 16, could be 56.
<Firebox> oh
wyman has quit [Quit: wyman]
<Firebox> i m student.
<Firebox> in university
bradhe has quit [Remote host closed the connection]
Kricir has joined #ruby
wyman has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
<Lemur> started programming at 8, burned out on PHP. Wanted to become an artist or a musician. went back to programming at 18, doing fine.
<Lemur> plenty of time to be had.
<Firebox> i m good till studying hacking, but after studying hacking my life is changed.
<Lemur> define hacking
cjsarette has quit [Ping timeout: 252 seconds]
<Firebox> web database hacking and system hacking.
<dnordstrom> doxing them trolls for the lolz n giggles
<Firebox> when i good for stduying c, c++, perl, python, php etc,,,,, but all is chaned after studying hacking.
meatherly has quit [Ping timeout: 265 seconds]
<Lemur> how so?
jlast has joined #ruby
<Firebox> no confidence.
Lewix has quit [Remote host closed the connection]
<Lemur> against hacking?
<Firebox> yes
<Lemur> you're fine
<Firebox> and to my life
<Firebox> and i always think why i study programming
ce_afk is now known as cescalante
<Lemur> just keep up on trends and it's a non-issue. More often than not it's a matter of common sense and keeping things updating.
<creethy> Guys, does anyone have experience with Timeout::timeout? I’m using it to limit the time Socket.getaddrinfo may take, but it doesn’t interrupt when the timeout is over. Does anyone know why? I’m building a small DNS forwarder, merely as a learning projeject, and want to make sure things don’t take forever. See https://gist.github.com/fza/4b452fd2c539890aed35
Hanmac1 has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
binaryhat has joined #ruby
Kricir has quit [Ping timeout: 276 seconds]
<dnordstrom> Practice STD.
skysploit has quit [Ping timeout: 252 seconds]
<dnordstrom> Stop. THINK. Do. == It's all good.
centipedefarmer has joined #ruby
<Lemur> Firebox, that's why you have senior programmers
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Firebox> Lemur: then my skill is good?
<Lemur> not a clue
<Lemur> but being paranoid about security is going to drive you insane
<Firebox> i can hack something.
<Lemur> don't
<Firebox> dont do it?
MatthewsFace has quit [Quit: This computer has gone to sleep]
<Lemur> don't hack anything if it's remotely illegal
Hanmac has quit [Ping timeout: 276 seconds]
<jacky> ^
pwh has joined #ruby
<Firebox> ok i see.
<Lemur> not worth it remotely
dik_dak has quit [Quit: Leaving]
pskosinski_ has joined #ruby
terrellt has quit [Quit: Leaving...]
<Lemur> behave, and keep learning.
<dnordstrom> Meh, I thought it was "don't hack anything if it's remotely legal, not worth it"
toastynerd has joined #ruby
andy___ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
cjsarette has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
danshultz has joined #ruby
dev_ has joined #ruby
pskosinski has quit [Ping timeout: 272 seconds]
andrewlio has joined #ruby
jlast has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
yubrew has joined #ruby
<Firebox> Lemur: ok thanks
<Firebox> i will do it.
voidfire has joined #ruby
<dnordstrom> Nah, makes sense, I read yesterday about that poor university student who ran LOIC for 2-3 days in the background to assist a DDoS raid for some fun, didn't really know what he was doing. Got prison time.
<havenwood> Hack the planet!
<shevy> hack your pants!
<Firebox> me? s?
<Firebox> me? shevy ?
<dnordstrom> On skateboards and rollerblades preferably.
tjsousa__ has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
jamto11 has quit [Remote host closed the connection]
hermanmunster has joined #ruby
<Firebox> who use vmware?
tjsousa__ has joined #ruby
andrewlio has quit [Client Quit]
tjsousa__ has quit [Read error: Connection reset by peer]
<dnordstrom> vmware-what?
cjsarette has quit [Ping timeout: 276 seconds]
Hanmac1 has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 264 seconds]
<Firebox> it is good vmware player in the windows?
MatthewsFace has joined #ruby
existensil has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
<havenwood> shevy: hack your pants starter kit ^
meatherly has joined #ruby
<benzrf> http://windows95tips.com/ <- helpful
<dnordstrom> Firebox: I shouldn't answer since I haven't used Windows in 8 years. But it probably is, sure. Only used VMware on Mac, great there.
<Firebox> dnordstrom: there is no free vmware in mac?
<Firebox> i use vmware fusion on the mac.
<Firebox> but it is not free.
moritzs has quit [Ping timeout: 265 seconds]
cjsarette has joined #ruby
FenixFyreX has joined #ruby
sevenseacat has joined #ruby
michaeldeol has joined #ruby
<dnordstrom> Firebox: Not sure, but I don't think so, I also used Fusion. But switched to Parallels Desktop.
pen has quit [Remote host closed the connection]
<dnordstrom> Now I'm trying VirtualBox.
helpD has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
helpD has joined #ruby
<dev_> Hi Please would need help on this,
<Firebox> i use virtualbox too. virtualbox is good, but there is some issue.
<dev_> i have a Json response - {"statusCode":"000040","statusMessage":"OK"},
<dev_> how do i put it in single quotes -
<dev_> '{"statusCode":"000040","statusMessage":"OK"}'
Sirupsen has joined #ruby
<FenixFyreX> Can anyone explain to me why rb_num2uint is turning up as an undefined reference? I've custom built Ruby-2.1.1 on Windows 7 using mingw.
cjsarette has quit [Ping timeout: 252 seconds]
<FenixFyreX> I've googled the entirety of the internet about undefined reference to rb_num2uint, nothing has turned up really..not sure why ruby isn't including it as it builds...
djbkd has quit [Remote host closed the connection]
Hanmac has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Es0teric has joined #ruby
Firebox has left #ruby [#ruby]
Es0teric has quit [Max SendQ exceeded]
jonr22 has joined #ruby
dev_ has quit [Read error: Connection reset by peer]
<FenixFyreX> line 2072 of numeric.c of Ruby's core reads #if SIZEOF_INT < SIZEOF_LONG
codeFiend has quit [Quit: codeFiend]
helpD has quit [Ping timeout: 276 seconds]
x1337807x has joined #ruby
amclain has joined #ruby
dinoex has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
dev_ has joined #ruby
echevemaster has joined #ruby
oo_ has joined #ruby
Es0teric has joined #ruby
creethy has quit [Ping timeout: 265 seconds]
m00nlight has joined #ruby
<FenixFyreX> My question; why is Ruby 2.1.1 discriminant to builds whose LONG is equal to that of INT
cjsarette has joined #ruby
cescalante is now known as ce_afk
SilkFox has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
m00nlight_ has joined #ruby
existensil has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
dev__ has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
troyronda has joined #ruby
dev__ has quit [Client Quit]
afex has quit [Ping timeout: 240 seconds]
m00nlight has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
sski has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
danijoo has joined #ruby
aspires has quit []
rm__ has quit [Remote host closed the connection]
troyrond_ has joined #ruby
troyronda has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
binaryhat has quit [Quit: Leaving]
aspires has joined #ruby
sski has quit [Ping timeout: 264 seconds]
FenixFyreX has quit [Quit: Page closed]
redondos has quit [Excess Flood]
dapz has joined #ruby
redondos has joined #ruby
rm___ has joined #ruby
Hobogrammer has joined #ruby
rm___ is now known as Guest5920
rm__ has quit [Read error: No route to host]
troyrond_ has quit [Remote host closed the connection]
andy___ has quit [Remote host closed the connection]
stantona has joined #ruby
andy___ has joined #ruby
troyronda has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
Solnse has joined #ruby
x77686d has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
andy___ has quit [Ping timeout: 240 seconds]
goleldar has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x77686d has quit [Client Quit]
alvaro_o has quit [Quit: Ex-Chat]
Soda has joined #ruby
thomasxie has joined #ruby
afex has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
fly2web has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
ddv has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dev_ has quit [Read error: Connection reset by peer]
pen has joined #ruby
yvemath has quit [Ping timeout: 265 seconds]
troyronda has quit [Remote host closed the connection]
Hanmac has joined #ruby
JoeGaudet has joined #ruby
wyman has quit [Quit: wyman]
lmickh has quit [Remote host closed the connection]
Kricir has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ce_afk is now known as cescalante
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
ddv has joined #ruby
MatthewsFace has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
near77 has joined #ruby
<near77> hi
<near77> im going crazy
<near77> using curses in ruby
<near77> Im not able to destroy the screen
<near77> and go back to normal inside my script
<fly2web> :)
<fly2web> take easy.
danshultz has joined #ruby
<fly2web> :)
crzrcn has quit [Quit: Leaving.]
pen has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 252 seconds]
<near77> ahhah
<near77> its so frustrating
kitak has quit [Ping timeout: 240 seconds]
<near77> after init_screen
<near77> its impossible to go back
duggiefresh has quit [Remote host closed the connection]
Guest1866 has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
endash has quit [Quit: endash]
phinfonet has quit []
troyronda has joined #ruby
pen has joined #ruby
reset has quit [Quit: Leaving...]
cescalante is now known as ce_afk
<near77> or does anyone know how to open a function in ruby in a different tty ?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<postmodern> is there a google-safebrowing library that isn't a rails plugin?
<wallerdev> why would that be a rails plugin haha
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evenix has quit [Remote host closed the connection]
tuppa has joined #ruby
Loryto2014 has quit [Remote host closed the connection]
<postmodern> hmm looks like google-safe-browsing-lookup is the only non-rails lib
<wallerdev> could probably cut the code out of the other one if you needed to
pen has quit [Ping timeout: 264 seconds]
andy___ has joined #ruby
dinoex has joined #ruby
tuppa has left #ruby [#ruby]
jcs222 has quit [Ping timeout: 255 seconds]
jcs222 has joined #ruby
mansi has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
mansi has joined #ruby
wallerdev has quit [Quit: wallerdev]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
Lewix has joined #ruby
larissa has quit [Quit: Leaving]
<sevenseacat> mozzarella: hi.
<mozzarella> holyshit
<mozzarella> you're back
<sevenseacat> :P
fly2web has left #ruby [#ruby]
jcs222 has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
tyll has quit [Ping timeout: 276 seconds]
jcs222 has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
cjsarette has joined #ruby
tyll has joined #ruby
danshultz has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
lethjakman has joined #ruby
s2013 has joined #ruby
cjsarette has quit [Ping timeout: 240 seconds]
jcs222 has quit [Remote host closed the connection]
jcs222 has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
Solnse has quit [Quit: Leaving.]
agjacome has quit [Quit: leaving]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
afex has quit [Ping timeout: 252 seconds]
psyko666 has quit [Remote host closed the connection]
mojoe has joined #ruby
ClarusCogitatio has joined #ruby
jcs222 has quit [Remote host closed the connection]
Speed has joined #ruby
jcs222 has joined #ruby
ClarusCogitatio has quit [Excess Flood]
psyko666 has joined #ruby
cina has quit [Remote host closed the connection]
leslie has joined #ruby
ClarusCogitatio has joined #ruby
rostam has quit [Remote host closed the connection]
cjsarette has joined #ruby
kitak has joined #ruby
speakingcode has joined #ruby
kitak_ has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
sensen has joined #ruby
Nexus_x1 has joined #ruby
rostam has joined #ruby
s2013 has quit [Ping timeout: 276 seconds]
cina has joined #ruby
JimHy has joined #ruby
Firebox has joined #ruby
abdulsattar has joined #ruby
stantona has joined #ruby
pen has joined #ruby
rahult is now known as rahult_
Hanmac1 has joined #ruby
kitak_ has quit [Remote host closed the connection]
senayar has joined #ruby
ClarusCogitatio has joined #ruby
wjimenez5271 has joined #ruby
krz has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
rahult_ is now known as rahult
troyronda has quit [Remote host closed the connection]
stantona has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
aspires has quit []
kitak has quit [Read error: No route to host]
kitak_ has joined #ruby
j_mcnally has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
j_mcnally has left #ruby [#ruby]
<benzrf> where do i start a motion to add methods to String that let you find out which sections were interpolated in
senayar has quit [Ping timeout: 252 seconds]
bthesorceror has joined #ruby
kitak has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
bthesorceror has quit [Read error: Connection reset by peer]
<benzrf> and-or added together
sepp2k has quit [Quit: Leaving.]
kitak_ has quit [Read error: Connection reset by peer]
<benzrf> with these powers we can STOP PEOPLE FROM INJECTING SQL
Firebox has left #ruby [#ruby]
bthesorceror has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
Bira has joined #ruby
eynj has left #ruby [#ruby]
poguez_ has joined #ruby
s2013 has joined #ruby
near77 has quit [Quit: Page closed]
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
meatherl_ has joined #ruby
mrdtt has joined #ruby
MattStratton has joined #ruby
Kricir has joined #ruby
ce_afk is now known as cescalante
AlexRussia has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
pskosinski_ has quit [Quit: Til rivido Idisti!]
wallerdev has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
Kricir has quit [Ping timeout: 255 seconds]
evenix has quit [Remote host closed the connection]
Guest5920 has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
rm__ has joined #ruby
rahult is now known as rahult_
fuhgeddaboudit has joined #ruby
wjimenez5271 has quit [Quit: Leaving.]
toastynerd has joined #ruby
radic has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 265 seconds]
radic has joined #ruby
toastynerd has quit [Remote host closed the connection]
Guedes0 has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
rm__ has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
s2013 has quit [Ping timeout: 252 seconds]
deric_skibotn has quit [Ping timeout: 265 seconds]
bthesorceror has quit [Remote host closed the connection]
cjsarette has quit [Ping timeout: 252 seconds]
bthesorceror has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
jamto11_ has joined #ruby
mojoe1 has joined #ruby
pwh has quit []
mojoe has quit [Ping timeout: 264 seconds]
bthesorceror has quit [Ping timeout: 255 seconds]
jamto11_ has quit [Ping timeout: 255 seconds]
guyz has quit [Quit: quit]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
danshultz has joined #ruby
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
Cache_Money has joined #ruby
braincrash has quit [Quit: bye bye]
Dreamer3 has joined #ruby
toastynerd has joined #ruby
zorak8 has quit [Quit: Saliendo]
x77686d has joined #ruby
braincrash has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
cina has quit [Ping timeout: 252 seconds]
wjimenez5271 has joined #ruby
ClarusCogitatio has joined #ruby
bthesorceror has joined #ruby
cjsarette has joined #ruby
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
rahult_ is now known as rahult
Kricir has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
sparrovv has joined #ruby
x77686d has quit [Quit: x77686d]
jjbohn has quit [Quit: Leaving...]
sparrovv has quit [Ping timeout: 264 seconds]
Nexus_x1 has quit [Quit: Lingo - http://www.lingoirc.com]
skysploit has quit [Remote host closed the connection]
red234324 has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
sambao21 has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 255 seconds]
wjimenez5271 has quit [Quit: Leaving.]
St_Marx has quit [Remote host closed the connection]
atmosx has quit [Write error: Broken pipe]
end_guy has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Broken pipe]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
afex has joined #ruby
pwh has joined #ruby
x1337807x has joined #ruby
stantona has joined #ruby
toastynerd has joined #ruby
cjsarette has quit [Quit: ZNC - http://znc.in]
x1337807x has quit [Client Quit]
kjf has quit [Ping timeout: 252 seconds]
mojoe has joined #ruby
vlad_starkov has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest41524
afex has quit [Ping timeout: 255 seconds]
instantaphex has quit [Ping timeout: 255 seconds]
pietr0 has quit [Quit: pietr0]
stantona has quit [Ping timeout: 252 seconds]
rahult is now known as rahult_
dmitriialk has joined #ruby
rm__ has joined #ruby
rahult_ is now known as rahult
mojoe1 has quit [Ping timeout: 252 seconds]
yacks has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
ClarusCogitatio has quit [Ping timeout: 265 seconds]
andrewjanssen has joined #ruby
x1337807x has joined #ruby
yacks has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
dmitriialk has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
yubrew has quit [Ping timeout: 264 seconds]
ClarusCogitatio has joined #ruby
binaryhat has joined #ruby
ce_afk is now known as cescalante
ClarusCogitatio has quit [Excess Flood]
Kricir has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
ClarusCogitatio has joined #ruby
charliesome has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ClarusCogitatio has quit [Excess Flood]
binaryhat has quit [Quit: Leaving]
robbyoconnor has joined #ruby
wyman has joined #ruby
wyman has quit [Client Quit]
ClarusCogitatio has joined #ruby
danshultz has quit [Remote host closed the connection]
rm__ has quit [Remote host closed the connection]
mr_rogerz has quit []
s2013 has joined #ruby
rm__ has joined #ruby
danshultz has joined #ruby
ghr has joined #ruby
<reactormonk> how do I chop off everything including the last dot in a string?
<reactormonk> so last dot -> EOS
twidx has quit [Quit: Connection closed for inactivity]
cescalante is now known as ce_afk
kevinfag- has joined #ruby
arietis has joined #ruby
<RubyPanther> >> 'Foo. Bar baz. Bing!'.gsub!(/\.[^\.]+?\z/,'')
<eval-in> RubyPanther => "Foo. Bar baz" (https://eval.in/143524)
rm__ has quit [Ping timeout: 252 seconds]
lethjakman has quit [Ping timeout: 276 seconds]
danshultz has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 264 seconds]
<RubyPanther> >> (s='Foo. Bar baz. Bing!')[s.rindex('.')..-1] = '';s
<eval-in> RubyPanther => "Foo. Bar baz" (https://eval.in/143525)
redondos has quit [Changing host]
redondos has joined #ruby
Bira has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
mansi has joined #ruby
wyman has joined #ruby
rm__ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
binaryhat has joined #ruby
binaryhat has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
eynj has joined #ruby
Megtastique has quit []
mjsmith2 has joined #ruby
benzrf is now known as benzrf|offline
pu22l3r__ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 240 seconds]
s2013 has quit [Remote host closed the connection]
pu22l3r_ has quit [Ping timeout: 255 seconds]
<havenwood> >> 'Foo. Bar baz. Bing!'.split(?.)[0..-2].join(?.)
<eval-in> havenwood => "Foo. Bar baz" (https://eval.in/143526)
nemesit|znc has joined #ruby
pu22l3r__ has quit [Remote host closed the connection]
<havenwood> >> 'Foo. Bar baz. Bing!'.reverse[/\.(.*)/, 1].reverse
<eval-in> havenwood => "Foo. Bar baz" (https://eval.in/143527)
pu22l3r has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
kevinfag- has quit [Ping timeout: 255 seconds]
fgo has quit [Remote host closed the connection]
St_Marx has joined #ruby
tacos1de has joined #ruby
<havenwood> >> 'Foo. Bar baz. Bing!'[/.*(?=\.)/]
<eval-in> havenwood => "Foo. Bar baz" (https://eval.in/143528)
alexju has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
<havenwood> reactormonk: a lookahead assertion ^ maybe?
mary_synthesizin has joined #ruby
speakingcode has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
GoudaCoin has joined #ruby
<GoudaCoin> !balance
wyman has quit [Quit: wyman]
wyman has joined #ruby
Deele has joined #ruby
GoudaCoin has left #ruby [#ruby]
lethjakman has joined #ruby
newUser1234 has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
rezzack has quit [Ping timeout: 265 seconds]
s2013 has joined #ruby
wyman has quit [Client Quit]
vlad_starkov has joined #ruby
Rollabunna has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
skysploit has quit []
redondos has quit [Excess Flood]
redondos has joined #ruby
sensen has quit [Ping timeout: 240 seconds]
stantona has joined #ruby
meatherl_ has quit [Remote host closed the connection]
Rollabunna has quit [Read error: No route to host]
yfeldblum has quit [Read error: Connection reset by peer]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
seuros1 has quit [Quit: Leaving.]
end_guy has joined #ruby
Speed has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
yubrew has joined #ruby
evenix has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Es0teric has quit [Quit: Computer has gone to sleep.]
mimo_m has joined #ruby
brunops has quit [Quit: leaving]
andrewjanssen has quit [Quit: Leaving...]
redondos has quit [Excess Flood]
mary_synthesizin has quit [Remote host closed the connection]
mimo_m has left #ruby [#ruby]
ClarusCogitatio has joined #ruby
Bira has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<reactormonk> havenwood, I went for string[/\..*?/] = "foo"
yubrew has quit [Ping timeout: 264 seconds]
evenix has quit [Ping timeout: 255 seconds]
bthesorceror has joined #ruby
havenwood has quit [Remote host closed the connection]
Hanmac has joined #ruby
havenwood has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
<reactormonk> how do I explicitly copy a string?
rahult is now known as rahult_
rahult_ is now known as rahult
garndt has joined #ruby
<reactormonk> clone() should work
evenix has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
<reactormonk> hmm, needs lookback
bthesorc_ has joined #ruby
atmosx has joined #ruby
crystal77 has joined #ruby
sensen has joined #ruby
bthesorceror has quit [Ping timeout: 264 seconds]
kevinfag- has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 276 seconds]
mikepack has joined #ruby
ce_afk is now known as cescalante
bthesorc_ has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Excess Flood]
mrnugget has joined #ruby
subraminion has joined #ruby
robbyoconnor has joined #ruby
Rollabunna has joined #ruby
codeFiend has joined #ruby
mikepack_ has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
rahult is now known as rahult_
rahult_ is now known as rahult
michaeldeol has joined #ruby
fantasticsid has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
IceDragon has quit [Quit: Space~~~]
Rollabunna has joined #ruby
Spleeze has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 0.4.3]
cescalante is now known as ce_afk
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Cache_Money has quit [Quit: Cache_Money]
the_f0ster has quit [Remote host closed the connection]
jamto11_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
Spleeze has joined #ruby
mgorbach has quit [Ping timeout: 252 seconds]
edwardly has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 252 seconds]
tchebb has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
Geko has joined #ruby
Rollabunna has joined #ruby
arietis has joined #ruby
mercwithamouth has joined #ruby
mansi has joined #ruby
nateberkopec has joined #ruby
Speed has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
jamto11_ has quit [Ping timeout: 265 seconds]
aganov has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
Chamkila has joined #ruby
sla3k has joined #ruby
Rollabunna has quit [Remote host closed the connection]
crzrcn has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
edwardly has joined #ruby
mgorbach has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
tchebb has joined #ruby
sski has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Chamkila has quit [Changing host]
Chamkila has joined #ruby
sdouglas has joined #ruby
MattStratton has joined #ruby
lurch_ has joined #ruby
northfurr has quit [Ping timeout: 265 seconds]
Morkel has joined #ruby
m00nlight_ has quit [Ping timeout: 252 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
taiansu_ has joined #ruby
Geko has left #ruby ["Leaving"]
ClarusCogitatio has quit [Ping timeout: 276 seconds]
jamto11 has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arubin> >> 'noël'.size
<eval-in> arubin => 4 (https://eval.in/143531)
<arubin> Why does that return 5 in 2.1.1?
<arubin> I understand why it is likely returning 5, but it seems broken.
cina has joined #ruby
taiansu_ is now known as taiansu
andy___ has quit [Remote host closed the connection]
<arubin> >> puts RUBY_VERSION
<eval-in> arubin => 2.1.0 ... (https://eval.in/143532)
<cina> I can't install a gem using 'gem install' on my server -- is it enough to copy the gem from my local gems/ directory into the servers gems/ directory? I'm using the exact same Ruby version (using RVM)
jjbohn has joined #ruby
<arubin> Are the machines the same architecture?
<arubin> And OS?
<arubin> Or is the gem pure Ruby?
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cina> it's pure Ruby
pontiki has joined #ruby
<arubin> Should be fine.
<arubin> Although I do not know the details of the gems directory hierarchy.
<cina> it doesn't seem to find it
lw has quit [Quit: s]
<cina> ~/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find http_parser.rb (= 0.6.0.beta.2) amongst [list of gems, but not http_parser.rb]
tagrudev has joined #ruby
<cina> why is there a 1.9.1 version in the middle? It should be using 1.9.3-p484
<sevenseacat> api version
mrj has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 252 seconds]
Speed has quit [Ping timeout: 240 seconds]
jjbohn has quit [Ping timeout: 276 seconds]
n0n3 has quit []
fantasti` has joined #ruby
<cina> I see, so it's okay.
pu22l3r_ has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
<arubin> From what I gather from SO, you might need to copy the specification into a specifications directory.
fantasticsid has quit [Ping timeout: 252 seconds]
ClarusCogitatio has quit [Excess Flood]
yubrew has joined #ruby
larsam has quit [Quit: larsam]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
<Hanmac> arubin: 'noël'.size returns 4 for me, RUBY_VERSION #=> "2.2.0" what is your encoding?
<arubin> Hanmac: How do I determine that?
toastynerd has joined #ruby
ClarusCogitatio has quit [Excess Flood]
<Hanmac> 'noël'.encoding
<sevenseacat> >> 'noël'.encoding
<eval-in> sevenseacat => #<Encoding:UTF-8> (https://eval.in/143535)
Arkaniad|Laptop has quit [Remote host closed the connection]
jimbauds has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
<Hanmac> >> 'noël'.b.size
<eval-in> Hanmac => 5 (https://eval.in/143536)
<arubin> => #<Encoding:UTF-8>
pu22l3r has quit [Ping timeout: 255 seconds]
ClarusCogitatio has joined #ruby
x77686d has joined #ruby
Speed has joined #ruby
x77686d has quit [Client Quit]
<sevenseacat> i get size = 4 on ruby 1.9.3, 2.0 and 2.1
davedev24 has quit [Remote host closed the connection]
stantona has joined #ruby
m00nlight_ has joined #ruby
<sevenseacat> i only get 5 on ree
davedev24 has joined #ruby
<cina> arubin: where is specification?
Rollabunna has joined #ruby
pwh has quit []
armyriad has joined #ruby
<joelteon> it sucks that strings and bytestrings are the same thing in ruby :/
<arubin> Now I am getting 4. =/
rahult is now known as rahult_
armyriad has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 265 seconds]
<Hanmac> joelteon: your problem? goto ##php if you want other strings
<arubin> This is from earlier in my irb session: http://pastie.org/9121745
<joelteon> PHP has the same problem...
<arubin> But now I am getting 4 for size...
<Hanmac> no PHP is the problem ;P
<joelteon> ok
* arubin is baffled.
armyriad has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
stantona has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Remote host closed the connection]
shashank_rs has joined #ruby
havenn has quit [Remote host closed the connection]
havenwood has joined #ruby
krz has joined #ruby
Lewix has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
timonv has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 276 seconds]
pu22l3r_ has quit [Remote host closed the connection]
Soliah has joined #ruby
bradhe has joined #ruby
<arubin> Here we go.
<arubin> It returns 5.
ta has quit [Ping timeout: 240 seconds]
<arubin> If I then copy it from the terminal and paste it, it returns 4.
sski has quit [Remote host closed the connection]
sski has joined #ruby
ce_afk is now known as cescalante
jamto11 has joined #ruby
<arubin> Hmm. s.bytesize is 6.
mary_synthesizin has joined #ruby
<sevenseacat> suspect s has some invisible character or something in it
<sevenseacat> (though i am certainly no encoding expert)
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
rm__ has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
relix has joined #ruby
apeiros has joined #ruby
<arubin> irb(main):016:0> s.chars
<arubin> => ["n", "o", "e", "̈", "l"]
<arubin> That is even odder.
<sevenseacat> dafuq
heftig has quit [Quit: Quitting]
rahult_ is now known as rahult
<arubin> >> 'noël'.size
<eval-in> arubin => 5 (https://eval.in/143538)
<arubin> There you go.
timonv has quit [Remote host closed the connection]
<arubin> When I paste it into ST, it clearly shows 5 characters.
sski has quit [Ping timeout: 255 seconds]
<arubin> n, o, e, the umlaut, and the l.
mary_synthesizin has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 264 seconds]
flughafen has joined #ruby
HashNuke has joined #ruby
<arubin> >> 'noël'.reserve
<eval-in> arubin => undefined method `reserve' for "noël":String (NoMethodError) ... (https://eval.in/143539)
<arubin> >> 'noël'.reverse
<eval-in> arubin => "lëon" (https://eval.in/143540)
<Hanmac> they both are NOT the same, look:
<Hanmac> >> 'ë' == 'ë'
<eval-in> Hanmac => false (https://eval.in/143541)
rm__ has quit [Ping timeout: 264 seconds]
<arubin> Hanmac: So what is going on?
evenix has quit [Remote host closed the connection]
<Hanmac> arubin: i pasted both strings into my terminal and then "thanks to the font" i did see it ...
<Hanmac> >> 'ë'.size # this is the combined char ... means two displayed as one
<Hanmac> >> 'ë'.size # this is the original char ... means only one char
<eval-in> Hanmac => 2 (https://eval.in/143542)
<eval-in> Hanmac => 1 (https://eval.in/143543)
* popl slow claps
<popl> geez
nolic has joined #ruby
cescalante is now known as ce_afk
monkegjinni has joined #ruby
bluOxigen has joined #ruby
subraminion has quit [Remote host closed the connection]
<arubin> Hanmac and apeiros: Thank you.
<arubin> I feel more sane now.
subraminion has joined #ruby
<apeiros> arubin: yw. normalization in unicode is hard.
anarang has joined #ruby
monkegjinni has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 265 seconds]
<myke> yep
<myke> requires at least a basic knowledge of algebraic structures to understand
<myke> hardcore
[[prienge]] has quit [Ping timeout: 276 seconds]
ta has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
<apeiros> myke: it's mostly hard because so many tools fuck it up :)
<apeiros> oracle f.ex., yay!
* apeiros off for commute
apeiros has quit [Remote host closed the connection]
shaileshg has joined #ruby
apeiros has joined #ruby
<myke> pretty sure i ran into that osx/samba issue many years ago but didn't understand at the time what was going on
[[prienge]] has joined #ruby
<myke> so you're gonna have unicode-aware filenames, but not case sensitivity
eynj has left #ruby [#ruby]
armyriad has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<myke> good job apple
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
helpD has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
x1337807x has quit [Client Quit]
kitak_ has joined #ruby
Hanmac1 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Ping timeout: 276 seconds]
[[prienge]] has quit []
bthesorceror has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
ping-pong has quit [Ping timeout: 255 seconds]
bthesorceror has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
tvw has joined #ruby
moritzs has joined #ruby
bal has joined #ruby
mrnugget has quit [Quit: mrnugget]
mrnugget has joined #ruby
moritzs has quit [Max SendQ exceeded]
mrnugget has quit [Client Quit]
jamto11 has joined #ruby
moritzs has joined #ruby
fgo has quit [Remote host closed the connection]
Macaveli has joined #ruby
ayaz has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
ozzloy has quit [Quit: leaving]
armyriad has joined #ruby
yubrew has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
brucelee_ has joined #ruby
<brucelee_> perl has something like document.getElementById('slct-w').style.display = 'block';
<brucelee_> does ruby have an equivalent?
jamto11 has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 276 seconds]
<Hanmac1> brucelee_: nokogiri
Hanmac1 is now known as Hanmac
noop has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
ping-pong has joined #ruby
ClarusCogitatio has quit [Ping timeout: 255 seconds]
ClarusCogitatio has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
red234324 has joined #ruby
andy___ has joined #ruby
brucelee_ has quit [Ping timeout: 276 seconds]
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
stantona has joined #ruby
amclain has quit [Quit: Leaving]
subraminion has joined #ruby
zorak has joined #ruby
Lewix has quit [Remote host closed the connection]
ta has joined #ruby
BoyGR has joined #ruby
mehlah has joined #ruby
JensOfSweden has joined #ruby
JensOfSweden has left #ruby [#ruby]
JensOfSweden has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andy___ has quit [Ping timeout: 255 seconds]
kitak_ has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
stantona has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
anaeem1 has joined #ruby
seuros has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
red234324 has quit [Quit: Leaving]
BoyGR has left #ruby [#ruby]
wildroman2 has joined #ruby
cover has joined #ruby
shock_one has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
m00nlight_ has quit [Quit: Konversation terminated!]
m00nlight__ has joined #ruby
sent-hil has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
jprovazn has joined #ruby
jamto11 has joined #ruby
ce_afk is now known as cescalante
sensen has joined #ruby
bradhe has quit [Remote host closed the connection]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
brucelee_ has joined #ruby
m00nlight__ has quit [Client Quit]
m00nlight__ has joined #ruby
rm__ has joined #ruby
robbyoconnor has joined #ruby
klaut has joined #ruby
ClarusCogitatio has joined #ruby
sdouglas has quit [Remote host closed the connection]
ClarusCogitatio has quit [Excess Flood]
jamto11 has quit [Ping timeout: 252 seconds]
ClarusCogitatio has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
SCommette has quit [Quit: SCommette]
rm__ has quit [Ping timeout: 265 seconds]
ponga has quit [Quit: Leaving :)]
moritzs has quit [Remote host closed the connection]
cescalante is now known as ce_afk
robbyoconnor has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
moritzs has joined #ruby
makara has joined #ruby
m00nlight__ has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
moritzs has quit [Remote host closed the connection]
moritzs has joined #ruby
funburn has quit [Quit: funburn]
schaary|afk is now known as schaary
ClarusCogitatio has quit [Ping timeout: 255 seconds]
moritzschaefer has joined #ruby
moritzschaefer has quit [Client Quit]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
crzrcn has quit [Quit: Leaving.]
akonny has joined #ruby
mansi has joined #ruby
ClarusCogitatio has joined #ruby
kitak_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
cina has quit [Ping timeout: 252 seconds]
<brucelee_> is nokogiri the right tool to do the perl equivalent of "document.getElementById('slct-w').style.display = 'block';"
jamto11 has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
<sevenseacat> where does perl come into things?
<brucelee_> my friend has a perl script that does this: document.getElementById('slct-w').style.display = 'block';
<brucelee_> i just want to do the ruby equivalnt
<sevenseacat> thats javascript
<brucelee_> oh
<brucelee_> :P
<brucelee_> ok
<brucelee_> didnt realize that
<brucelee_> then i guess i would be able to do that too
<brucelee_> im trying to get selenium to work
<brucelee_> fyi :p
ClarusCogitatio has quit [Excess Flood]
mansi has quit [Ping timeout: 265 seconds]
ClarusCogitatio has joined #ruby
moritzschaefer has joined #ruby
fabrice31 has joined #ruby
ClarusCogitatio has quit [Excess Flood]
fgo has joined #ruby
ClarusCogitatio has joined #ruby
m00nlight__ has joined #ruby
nateberkopec has joined #ruby
fgo has quit [Read error: No route to host]
moritzschaefer has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
moritzs has joined #ruby
alem0lars has joined #ruby
nfk has joined #ruby
ClarusCogitatio has quit [Excess Flood]
andikr has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
kitak_ has quit [Remote host closed the connection]
Darryl has joined #ruby
ClarusCogitatio has joined #ruby
yubrew has joined #ruby
kitak_ has joined #ruby
moritzschaefer has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
SCommette has joined #ruby
blackavr has quit [Quit: blackavr]
moritzschaefer has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
MacTrash has joined #ruby
moritzs has joined #ruby
ta has quit [Ping timeout: 265 seconds]
thomasxie has left #ruby [#ruby]
kitak_ has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
ta has joined #ruby
JensOfSw_ has joined #ruby
omosoj has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
Lewix has joined #ruby
JensOfSweden has quit [Ping timeout: 276 seconds]
wildroman2 has quit [Remote host closed the connection]
ta has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
razrunelord has joined #ruby
blackmesa has joined #ruby
Rollabunna has joined #ruby
mrnugget has joined #ruby
kitak_ has joined #ruby
spider-mario has joined #ruby
stantona has joined #ruby
SCommette has quit [Quit: SCommette]
moritzs has quit [Ping timeout: 276 seconds]
<ayaz> Hello. I'm wondering: does the `.gsub()` method not support word boundaries `\b` in regular expressions it takes? For example: 'hello www.test.com test.com www.test.com'.gsub(/\btest.com\b/, '')
razrunelord has quit [Ping timeout: 264 seconds]
KanKava has joined #ruby
funburn has joined #ruby
mikecmpbll has joined #ruby
<apeiros> ayaz: gsub supports word boundaries.
heftig has joined #ruby
stantona has quit [Ping timeout: 252 seconds]
jcs222 has quit [Remote host closed the connection]
<ayaz> apeiros: Well, am I doing something wrong in that simple test, because as far as I can tell, it is not respecting word boundaries there?
jcs222 has joined #ruby
<ayaz> It gives me "hello www. www."
<tobiasvl> that seems correct, doesn't it? period is a word boundary
sk87 has joined #ruby
mengu has quit [Remote host closed the connection]
<ayaz> Hmmm
dev_ has joined #ruby
lele has joined #ruby
<ayaz> I see, okay
<dev_> Please i need help on this
<dev_> i have a JSON response - {"statusCode":"000040","statusMessage":"OK"}
<dev_> how can i put is in single quotes - '{"statusCode":"000040","statusMessage":"OK"}'
x77686d has joined #ruby
x77686d has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
tvw has quit []
sla3k has quit [Quit: Changing server]
<tobiasvl> dev_: the JSON response is a string? or a hash? (what you pasted isn't a valid hash syntax)
<tobiasvl> what gave you that response
<tobiasvl> if it is a hash in spite of the invalid syntax, to_s or inspect will give you the string
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<tobiasvl> >> puts {"statusCode"=>"000040", "statusMessage"=>"OK"}.to_s
<eval-in> tobiasvl => /tmp/execpad-88e387e82658/source-88e387e82658:2: syntax error, unexpected =>, expecting '}' ... (https://eval.in/143585)
alem0lars has quit [Quit: Going AFK...]
<tobiasvl> oh lol
<tobiasvl> >> a = {"statusCode" => "000040","statusMessage" => "OK"}; puts a
<eval-in> tobiasvl => {"statusCode"=>"000040", "statusMessage"=>"OK"} ... (https://eval.in/143586)
anaeem1 has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
anaeem1_ has joined #ruby
Astralum has joined #ruby
JensOfSw_ is now known as JensOfSweden
LiohAu has joined #ruby
<dev_> tobiasvl, thanks
<dev_> got it sorted out
qba73 has joined #ruby
echevemaster has quit [Remote host closed the connection]
alem0lars has joined #ruby
ta has joined #ruby
ce_afk is now known as cescalante
dANOKELOFF has joined #ruby
rahult is now known as rahult_
hermanmunster has quit [Remote host closed the connection]
yihangho has joined #ruby
srji has joined #ruby
rm__ has joined #ruby
KanKava has quit [Quit: leaving]
sce has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
rahult_ has quit [Ping timeout: 276 seconds]
senayar_ has joined #ruby
lxsameer has quit [Quit: Leaving]
rm__ has quit [Ping timeout: 252 seconds]
jforlunch has joined #ruby
cescalante is now known as ce_afk
obs has joined #ruby
fantasti` has quit [Remote host closed the connection]
fantasti` has joined #ruby
Psy-Q has quit [Quit: Changing machines.]
senayar has quit [Read error: Operation timed out]
sputnik13 has quit [Ping timeout: 252 seconds]
seuros has quit [Ping timeout: 240 seconds]
obs has quit [Remote host closed the connection]
poikon has joined #ruby
obs has joined #ruby
codeFiend has quit [Quit: codeFiend]
elaptics`away is now known as elaptics
ghr has joined #ruby
ValicekB has quit [Ping timeout: 276 seconds]
crzrcn has joined #ruby
mansi has joined #ruby
mikecmpbll has joined #ruby
timonv has joined #ruby
nateberkopec has joined #ruby
crzrcn1 has joined #ruby
shashank_rs has quit [Quit: shashank_rs]
brucelee_ has quit [Ping timeout: 252 seconds]
subraminion_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
jnor has joined #ruby
Chamkila_ has joined #ruby
crzrcn has quit [Ping timeout: 265 seconds]
jhass|off is now known as jhass
yubrew has joined #ruby
subraminion_ has quit [Client Quit]
subraminion has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
bthesorceror has joined #ruby
crzrcn1 has quit [Ping timeout: 252 seconds]
nvrch has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Chamkila has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
fgo has joined #ruby
kaspergrubbe has joined #ruby
dev_ has quit [Read error: Connection reset by peer]
ghr has quit []
ValicekB has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Soliah has quit [Quit: Soliah]
<jnor> hi, have some trouble with thin not creating any pids: http://pastebin.com/33gxPrsV
seuros has joined #ruby
kaspergr_ has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
moritzs has joined #ruby
pgmcgee has quit [Ping timeout: 252 seconds]
Chamkila has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
klaut has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 276 seconds]
francisfish has joined #ruby
pgmcgee has joined #ruby
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
subraminion_ has joined #ruby
einarj has joined #ruby
Chamkila_ has quit [Ping timeout: 252 seconds]
Chamkila has quit [Changing host]
Chamkila has joined #ruby
seuros has quit [Ping timeout: 255 seconds]
ikaros has joined #ruby
|JD| has joined #ruby
<|JD|> hi there
<|JD|> im having some issues while trying to install snorby on ubuntu 12.04
<|JD|> getting this error: http://pastebin.com/5KHPKaRT
<|JD|> any ideas how i can fix this? im not very familiar with ruby
<popl> snorby?
wildroman2 has joined #ruby
<|JD|> popl: its a frontend for snort(intrusion preventions/detection system)
<popl> |JD|: This is really a channel about the Ruby programming language, not to troubleshoot problems with applications that happen to be written for RoR/in Ruby. :)
northfurr has joined #ruby
<|JD|> popl: uhmm yeah. but a bit help, in other words a kick in the right direction would be just nice and appreciated :)
<popl> I don't know a fucking thing about your stupid application. Go check out #snorby, on this network, like the website says.
<Hanmac> imo it looks like that bundler fucked up something ... |JD| did you try this channel for help? #bundler
<popl> Sorry, is that clearer? :P
<sevenseacat> \
chipotle has joined #ruby
<|JD|> Hanmac: not yet. did not know there is a bundler channel :)
<popl> Look, there's even a link to the mailing list.
<|JD|> popl: yes, more clear. get lost ;p
<popl> and a support email address
subraminion_ has quit [Quit: Lingo - http://www.lingoirc.com]
<popl> and there's a community link, where I bet you could probably search for an answer to your problem.
subraminion has joined #ruby
<popl> I guess that's too hard.
yihangho has quit [Quit: yihangho]
wildroman2 has quit [Ping timeout: 255 seconds]
<jnor> I'am confused as root I get ruby -v ruby 1.8.7 and as my user I get ruby 1.9.3p545
<jnor> I installed rvm
<|JD|> popl: blah? guess what i did befoer? ehh? seaerched a web for a solution
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
<popl> |JD|: Did you check out the snorby website?
<popl> What about the #snorby IRC channel on this network?
wildroman2 has joined #ruby
<|JD|> popl: yes i did
olivier_bK has joined #ruby
<|JD|> and yes i am in that channel
<|JD|> ideling there for days...
j416_ is now known as j416
<|JD|> popl: otherwise i would 'not' ask in here
francisfish has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
<Nilium> What's a snorby and is it as gross as the name sounds?
<ddv> jnor: under which user did you install rvm?
elaptics is now known as elaptics`away
<popl> some RoR app and the problem is an RoR problem
<ddv> jnor: maybe under root it pickups the globally installed ruby
<ddv> jnor: also ditch 1.9.3, and go for 2.1.1
northfurr has quit [Ping timeout: 276 seconds]
<Nilium> Ah, rails. Begone, rails.
stantona has joined #ruby
elaptics`away is now known as elaptics
kaspergr_ has quit [Remote host closed the connection]
<|JD|> popl: thanks. will try that out :)
kaspergrubbe has joined #ruby
<popl> that's like the second Google hit when I searched for the error message + snorby
helpD has quit [Remote host closed the connection]
<sevenseacat> i forgot how much people dislike rails in this channel
helpD has joined #ruby
<popl> I don't give a shit about it one way or the other.
<popl> no cargo culting for me
<|JD|> popl: very weird. since i get absolutely differnt results when searching for the exact same term... weird
<popl> yeah, very weird
<popl> heh
stantona has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
<jnor> I just did apt-get install ruby1.91 but ruby -v says 1.8.8 ??
<|JD|> ofc the cache is deleted, no cookies left etc..
<jnor> 1.9.1 and 1.8.7 even
<sevenseacat> try ruby1.9 -v :)
<popl> ok, time to go
popl has left #ruby [#ruby]
<sevenseacat> or ruby19
<jnor> ohh ok
<sevenseacat> or whatever silly debian does
<jnor> so I have both running ?
<sevenseacat> not running, but you have both installed
<jnor> how can I check which one is running?
<Hanmac1> jnor look at "update-alternatives --config ruby" & "update-alternatives --config gem"
<sevenseacat> none are running unless you start them
<jnor> alright thanks :)
<ddv> jnor: don't use your package manager to handle ruby, use rbenv
Milly_Bays has quit [Ping timeout: 264 seconds]
Arnvald has joined #ruby
helpD has quit [Ping timeout: 240 seconds]
<jnor> I tried using rvm but had some trouble with thin no one could help me with so now i starting over only using system packages
relix has joined #ruby
<sevenseacat> that was a bad call
<jnor> how do I know what ruby version gem uses then?
AlSquire has joined #ruby
senayar_ has quit [Remote host closed the connection]
<Hanmac1> jnor "gem env"
Hanmac1 is now known as Hanmac
<jnor> hamakn: can I switch that? uses 1.8.15 rather than 1.9.1
<jnor> 1.8.7 even err
<ddv> 1.8.15 and 1.9.1 are ancient
jforlunch has quit [Quit: Textual IRC Client: www.textualapp.com]
<ddv> yeah
<jnor> hmm
<jnor> say I install rvm again, should I do it for my root account or personal user
<ddv> personal user
<ddv> and use rbenv
<jnor> should I purge my current installed ruby versions before
<ddv> yes get rid of it
<jnor> rbenv alternative to rvm ?
<postmodern> jnor, there is also chruby
kaspergr_ has joined #ruby
nateberkopec has joined #ruby
<sevenseacat> +1 for chruby
<jnor> chruby, rvm, rbenv hmm life is not easy
<postmodern> jnor, also package manager is OK if you are OK with everything running under one ruby
<apeiros> postmodern: and potentially waiting years (no kidding) for up-to-date ruby versions…
<sevenseacat> hey hey hey, ubuntu got ruby 2.0! ...in 13.10
<postmodern> apeiros, roll your own packages with fpm
qba73 has quit [Read error: Connection reset by peer]
<postmodern> apeiros, also do you really want to run production on 2.1.0...
<apeiros> postmodern: because joe average does that.
<postmodern> apeiros, there's bluebox group packages...
<sevenseacat> 14.04 even has 2.0.0-p484! such modern
<apeiros> postmodern: no, but that's because I don't use old versions :-p
<apeiros> I want 2.1.1
<postmodern> apeiros, hipster :-P
<apeiros> and yes, for new stuff, I indeed use/want 2.1.1 in prod
pen has quit [Ping timeout: 252 seconds]
* Hanmac is living in the future and has "2.2.0"
* sevenseacat has just upgraded one app to use 2.0
thomasxie has joined #ruby
<apeiros> much more than I want to be stuck on a broken 1.8.3 release apt had for like 3 years
* postmodern calls the time police on Hammac
kaspergrubbe has quit [Ping timeout: 276 seconds]
* sevenseacat still has an app running on ree
funburn has quit [Quit: funburn]
<apeiros> sevenseacat: yeah, we have a zombie here too. rails 1.2.3 with ruby 1.8.2 :)
<postmodern> nothing wrong with running production on older rubies that are known to work and are supported
* apeiros will not touch that server, ever.
<sevenseacat> apeiros: holy crap
<postmodern> however, you _should_ upgrade off of 1.8.x
senayar has joined #ruby
jamto11 has joined #ruby
<apeiros> sevenseacat: if there should ever be a feature request for that app, the time estimate will automatically be <estimated time for feature> + 2 months
<sevenseacat> oh i know. its on the agenda.
nateberkopec has quit [Ping timeout: 240 seconds]
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<sevenseacat> will be pushed to 1.9.3, and rails 3, and then ruby 2, and then rails 4 >_>
rahult has joined #ruby
<apeiros> our other apps are scheduled for ruby 2.1 and rails 4.1 next month, yay! :)
ce_afk is now known as cescalante
<apeiros> biggest pain point will be migrating syck to psych
dev_ has joined #ruby
xiaoguo has joined #ruby
claymore has quit [Quit: Leaving]
<blackms> mariadb vs mysql
<blackms> what do u think about it? :)
pen has joined #ruby
<ddv> mariadb
seuros has joined #ruby
<blackms> i have to try galera but i don't know if to use mysql or mariadb
Kuda_ has joined #ruby
<Arnvald> mariadb
<Arnvald> or percona
<blackms> percona is commercial afaik
<apeiros> mariadb +1
<ddv> blackms: mariadb is the default in many distro's for some time now
<apeiros> mysql is oracle. fuck oracle.
<jnor> mariadb +1
roadie has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blackms> ddv, like?
mcrmfc has joined #ruby
<apeiros> blackms: but seriously, use postgres :)
<ddv> blackms: arch, fedora
jamto11 has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
roadie has quit [Remote host closed the connection]
<blackms> apeiros, i'm afraid is not an option
<blackms> ddv, ok :) i will try with mariadb
<apeiros> you're right to be afraid!
<apeiros> curious, though - why isn't it an option?
<blackms> because my boss asked me to try mysql with galera
<blackms> :)
roadie has joined #ruby
rm_ has joined #ruby
<Arnvald> afaik percona is on gpl just as mariadb
timonv has quit [Read error: Connection reset by peer]
<Arnvald> anyway, whatever of these 2 you choose
<ddv> your boss is an idiot
<Arnvald> it's better than mysql
<ddv> blackms: don't listen to suits
<apeiros> postgres uses MIT/BSD <3
DouweM has quit [Ping timeout: 276 seconds]
<blackms> ok i will check percona too
<blackms> so percona or maria
<blackms> get it :)
pencilcheck has joined #ruby
<apeiros> blackms: your boss asking you to try mysql with galera doesn't mean you must not try postgres :-p
sputnik13 has joined #ruby
<blackms> ddv, no we are just italians we are far behind in techs thing :)
<apeiros> as a good employee, you should provide better options
pen has quit [Ping timeout: 276 seconds]
<blackms> a better option here is not seen as a better option :)
<blackms> but as another thing to study and people wont study anymore :)
<apeiros> "I work for morons"?
<blackms> apeiros, definitely
<ddv> lol
rm_ has quit [Ping timeout: 255 seconds]
yihangho has joined #ruby
cescalante is now known as ce_afk
Martxel has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tvw has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
jamto11 has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
yubrew has joined #ruby
mengu has quit [Remote host closed the connection]
mansi has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
xiella has joined #ruby
decoponio has joined #ruby
Milly_Bays has joined #ruby
workmad3 has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
senayar has quit [Ping timeout: 255 seconds]
anidear has joined #ruby
crzrcn has joined #ruby
funburn has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
tagrudev has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 255 seconds]
<krz> '1,2,3'.split(',') turns it into an array of strings
rahult is now known as rahult_
<krz> how do i make it so it turns into an array of ints
<sevenseacat> map(&:to_i) ?
<krz> ah!!!!
<krz> i was doing map(&:.to_i
xiaoguo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
weems has quit [Ping timeout: 252 seconds]
crzrcn has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
<Veejay> krz: It's basically Symbol#to_proc
sevenseacat has quit [Quit: Leaving.]
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
relix has joined #ruby
fgo has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
sdouglas has quit [Ping timeout: 252 seconds]
xiella has quit [Ping timeout: 265 seconds]
<anidear> what if, they are all in hex, like 'a0,2f,7a' ? how can convert it to int array?
bluOxigen has joined #ruby
sk87 has joined #ruby
<Hanmac> anidear: like that?
<Hanmac> >> 'a0,2f,7a'.scan(/\h+/).map(&:hex)
<eval-in> Hanmac => [160, 47, 122] (https://eval.in/143660)
relix has quit [Client Quit]
kitak_ has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
pagios has quit [Remote host closed the connection]
<anidear> oh there's '\h', and .hex() I didn't know. Thanks :)
sk87 has quit [Client Quit]
qba73 has joined #ruby
<apeiros> scanf!
<apeiros> (no, no, don't, really, it's bad)
mrnugget has quit [Read error: Operation timed out]
mrnugget has joined #ruby
<Hanmac> apeiros: scanf might not work if you dont know how many numbers you get
LadyRainicorn has joined #ruby
nanashiRei has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
relix has joined #ruby
fgo has joined #ruby
relix has quit [Client Quit]
Ancient has left #ruby [#ruby]
<jnor> chruby setup script takes awhile huh :)
francisfish has joined #ruby
pen has joined #ruby
pencilcheck has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 276 seconds]
<apeiros> Hanmac: I wouldn't use it even if I knew how many numbers
kitak has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 265 seconds]
thomasxie has quit [Remote host closed the connection]
dev_ has quit [Ping timeout: 240 seconds]
sensen has joined #ruby
kilk_ has joined #ruby
psyko666 has quit [Remote host closed the connection]
HashNuke has quit [Quit: Connection closed for inactivity]
akonny has quit [Quit: akonny]
marr has joined #ruby
GreatPotato has joined #ruby
mengu__ has joined #ruby
m3nTe_ has joined #ruby
_justin has joined #ruby
pen has quit [Ping timeout: 240 seconds]
<GreatPotato> Hey guys, total ruby newb here - im setting up a “dashing” dashboard, which i have running nicely, and i want to populate it from data on an mssql database
<shock_one> How would I find all the classes that include some module?
<GreatPotato> Anybody have any ideas on how i can do this?
thomasxie has joined #ruby
pen has joined #ruby
<LadyRainicorn> By using the tutorial you just linked?
moritzs has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
senayar has joined #ruby
<GreatPotato> That covers mysql though, not mssql...
<apeiros> shock_one: only for debugging/development, not production: ObjectSpace.each_object(SomeModule.singleton_class).to_a
m3nTe has quit [Ping timeout: 252 seconds]
<apeiros> oh, fun, wait, doesn't work
JJMalina has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
toretore has joined #ruby
<apeiros> how to crash ruby: ObjectSpace.each_object(Enumerable).to_a :D
yihangho has quit [Quit: yihangho]
<apeiros> shock_one: ObjectSpace.each_object(Class).select { |c| c < SomeModule }
<shock_one> apeiros, I need it in production. Probably I'll register the classes on inclusion.
m3nTe_ has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
m3nTe has joined #ruby
<jhass> shock_one: maybe there's a better design for what you want to achieve with that
<Arnvald> @GreatPotato there must be some mssql gem for ruby, check it on github or ruby-toolbox.com
<jnor> chruby setup script failed to compile Rubinius, does it create some log or something? I want to see what else failed
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<GreatPotato> Arnvald: ok i found this: https://rubygems.org/gems/mssql
<GreatPotato> So if i install that, can i do “require ‘mssql’” and use it like that?
<GreatPotato> Sorry total ruby newb until about an hour ago
roadie has joined #ruby
<postmodern> jnor, the failure is in the output
<LadyRainicorn> shock_one: ObjectSpace.each_object(Class).select{|c|c.include?(Module)}
<jhass> GreatPotato: click on Documentation on that page
<jnor> postmodern: also latest ruby should be installed now but ruby -v shows an older version, do I need to reload ruby ?
<LadyRainicorn> oh < is more fun
JJMalina has quit [Ping timeout: 240 seconds]
mengu__ has quit [Ping timeout: 252 seconds]
<shock_one> jhass, I have an ActiveSupport::Concern called Schedulable, which is included into some models. Among other things this concern defines a callback after_end, similar to standard Rails callbacks. The function that invokes this callback has to get all the instances of all the classes that include Schedulable.
<jhass> "has to get", I love that argument
<shock_one> jhass, OK, I registered callbacks, and not I have to execute them somehow.
flops has joined #ruby
<postmodern> jnor, after installing a new ruby, with chruby, you should restart the shell
funburn has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 264 seconds]
m00nlight has joined #ruby
funburn has joined #ruby
kitak has quit [Remote host closed the connection]
<jnor> hmm restarted shell and ruby -v ruby 1.8.7
<jhass> shock_one: you can call methods of the class you're included into
<postmodern> jnor, chruby X.Y.Z
kitak has joined #ruby
<flops> Hey, I have a problem with the camping framework. I'd like to use a postgres database but I get the following error when running the 'create' method: ActiveRecord::StatementInvalid: PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "first"
monkegjinni has joined #ruby
<flops> And I have no clue where that "first" is coming from. Everything worked with sqlite
<jhass> >> module Foo; def bar; foo; end; end; class Bar; extend Foo; def self.foo; :foo; end; end; Bar.bar
<eval-in> jhass => :foo (https://eval.in/143682)
<jhass> shock_one: ^
jamto11 has joined #ruby
m00nlight__ has quit [Ping timeout: 240 seconds]
<jnor> postmodern: sorry for my stupidity, but could ypu elaborate on that :)
danijoo has quit [Read error: Connection reset by peer]
senayar has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
flops has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
senayar has joined #ruby
Milly_Bays has quit [Read error: Connection reset by peer]
<postmodern> jnor, you switch to rubies via the chruby command: https://github.com/postmodern/chruby#examples
flops has joined #ruby
<jnor> chruby command not found wtf
ndrei has joined #ruby
Arnvald has quit [Remote host closed the connection]
<postmodern> jnor, you need to load chruby into your shell
<postmodern> jnor, just like rvm or rbenv
sent-hil has quit [Quit: Connection closed for inactivity]
klaut has quit [Remote host closed the connection]
<shock_one> jhass, think of after_save, for example. I want to call a method on an instance of a class that includes Schedulable. Moreover, on instances that match some criteria.
kitak has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
<jhass> after_save runs on the instance after some event happened in that instance, not after it happened in any instance
<jnor> so I manually need to add alias to my bashrc for the executable ?
<ddv> jnor: you need to read the documentation
<jnor> i followed the install section in the documents
<jnor> then ran the setup script
senayar has quit [Remote host closed the connection]
robustus has joined #ruby
senayar has joined #ruby
m00nlight has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
Rollabunna has quit [Remote host closed the connection]
SubSignal has joined #ruby
<shock_one> jhass, my problem is that no event happens. Or rather this event is a particular point of time.
pagioss has joined #ruby
seuros has quit [Ping timeout: 264 seconds]
seuros has joined #ruby
francisfish has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
subraminion has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
<jhass> you probably should have a central scheduler then and your Scheduable module is just some syntactic sugar for it's API, that registers the instances on Foo#initialize or something
tjsousa__ has joined #ruby
tjsousa__ has quit [Remote host closed the connection]
ixti has joined #ruby
yubrew has joined #ruby
tjsousa__ has joined #ruby
<jhass> like a wrapper that does def initialize; Scheduler.in(10.minutes, self, :method); end or whatever
senayar has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: alem0lars]
andrewlio has joined #ruby
SubSignal has quit [Ping timeout: 252 seconds]
<jnor> ddv vould you point me to the place in documentation that states how I load chruby into my shell? I have done the installation process. Sorry for all the trouble but all the ruby stuff is killing me
rm_ has quit [Ping timeout: 276 seconds]
<jhass> probably with some weird AR / AS hook so you don't have to super in your classes #initialize
cescalante is now known as ce_afk
<ddv> jnor: I have never used chruby.
<postmodern> jnor, exec $SHELL
<postmodern> jnor, or manually `source` the chruby.sh and auto.sh files into the shell
armyriad has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
klaut has joined #ruby
francisfish has joined #ruby
senayar has joined #ruby
<jnor> postmodern: thanks okay so I added source <those to files>, think it worked
<jnor> two*
klaut has quit [Read error: Connection reset by peer]
klaut has joined #ruby
unl0ck has joined #ruby
moritzs has joined #ruby
mansi has joined #ruby
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
funburn has quit [Quit: funburn]
<jnor> if I want to remove jruby-1.7.8 how would I do it using chruby?
crzrcn has joined #ruby
<postmodern> jnor, rm -rf the directory and restart the shell
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jnor> postmodern: ok cool
mansi has quit [Ping timeout: 264 seconds]
<jnor> postmodern: say I want to install thin, should I use this "ruby-instal thinl" or "gem install thin"?
bthesorceror has joined #ruby
<postmodern> jnor, gem install thin
<postmodern> jnor, just to make sure, do you just want one ruby on your system or multiple?
crzrcn has quit [Ping timeout: 265 seconds]
fannye has joined #ruby
<jnor> postmodern: my objective is to get ruby program redmine running with thin behind nginx
<postmodern> jnor, ah ha
<jnor> so maybe I will need multiple rubys to find the one working :p
roadie has joined #ruby
<postmodern> jnor, than i recommend removing chruby
<jnor> thin was not working with 1.8
anidear has quit [Quit: Leaving]
<jnor> hmm X)
<postmodern> jnor, install ruby into /usr/local using `ruby-install -i /usr/local ruby X.Y`
<shevy> jnor come to 2.1 man
<workmad3> jnor: many things don't work with 1.8, and that situation will just get worse as 1.8 is *dead*
seuros has quit [Quit: Leaving.]
Guedes0 has joined #ruby
VictorBjelkholm has joined #ruby
Kuda_ has quit [Quit: Byebye!]
seuros has joined #ruby
Stalkr^ has joined #ruby
bthesorceror has quit [Ping timeout: 276 seconds]
<jnor> yeah alright but ruby-2.0.0-p353/ is installed into /opt/rubies with chruby, maybe I should install 2.1 there too?
Alina-malina has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
Alina-malina has joined #ruby
<postmodern> jnor, the -i option controls where it installs into
kaspergr_ has quit [Ping timeout: 255 seconds]
moritzs has quit [Ping timeout: 265 seconds]
wildroman2 has quit [Remote host closed the connection]
<jnor> postmodern: should I really remove chruby?
<postmodern> jnor, if you only need one ruby, you do not need ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
Stalkr_ has joined #ruby
<jnor> is ruby-install not aprt of chruby?
Guedes0 has quit [Ping timeout: 252 seconds]
<postmodern> jnor, correct, it is a separate util
ndrei has joined #ruby
<jnor> so if i remove chruby how can I install latest ruby
iamstalkr has joined #ruby
<postmodern> jnor, ruby-install ruby X.Y.Z
Stalkr^ has quit [Read error: Connection reset by peer]
<postmodern> jnor, ruby-install installs whatever version you give it
francisfish has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
<GreatPotato> Can anybody give me a snippet for using this? http://rubygems.org/gems/mssqlclient
<GreatPotato> Total newb and can not work it out
bluOxigen has joined #ruby
francisfish has joined #ruby
tiagonobre_ has joined #ruby
claymore has joined #ruby
Stalkr_ has quit [Ping timeout: 276 seconds]
<workmad3> GreatPotato: I wouldn't suggest using that
<workmad3> GreatPotato: it's not been updated for 8 years...
mrnugget has quit [Quit: mrnugget]
yihangho has joined #ruby
yihangho has quit [Client Quit]
northfurr has joined #ruby
<GreatPotato> workmad3: anything you can suggest?
<GreatPotato> Just want to be able to query a mssql db
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
<apeiros> GreatPotato: seems sequel works with mssql
Xeago has quit [Remote host closed the connection]
<shevy> jnor the source is always available at wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
wildroman2 has joined #ruby
Xeago has joined #ruby
<workmad3> GreatPotato: http://rubygems.org/gems/tiny_tds for an SQL adapter
<GreatPotato> apeiros: i dont see mssql listed on there?
<workmad3> GreatPotato: and https://rubygems.org/gems/activerecord-sqlserver-adapter for activerecord
atno has joined #ruby
<apeiros> but indeed, in the website, it doesn't list it. either an oversight, or the adapter isn't mature.
armyriad has joined #ruby
northfurr has quit [Ping timeout: 252 seconds]
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
stantona has joined #ruby
nanashiRei has joined #ruby
rahult_ is now known as rahult
sski has joined #ruby
<jnor> Im trying to purge ruby completly from my system now and start fresh, is it safe to delete /usr/include/ruby*? theres a bunch of 1.9.1 stuff, already did apt-get purge ruby1.9.1
mrdtt has quit [Read error: Connection reset by peer]
tyll has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
<shevy> I would hope that apt-get handles removal cleanly
<apeiros> jnor: it's generally not a good idea to mix manual deinstallation with package management
<LadyRainicorn> It often leaves stuff.
stantona has quit [Ping timeout: 252 seconds]
tyll has joined #ruby
dangerousdave has joined #ruby
<workmad3> jnor: /usr/include/ruby* was probably added by ruby1.9.1-dev
yfeldblum has quit [Remote host closed the connection]
<workmad3> jnor: so maybe purge that package too ;)
<jnor> my oc thanks you workmad3 !!
<jnor> ocd*
jackneill has quit [Quit: WeeChat 0.4.3]
thomasxie has quit [Quit: Leaving.]
nvrch has quit [Quit: nvrch]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
tyll has quit [Ping timeout: 252 seconds]
banister_ has joined #ruby
_justin has quit [Quit: _justin]
ktun has joined #ruby
banister has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
phoo1234567 has joined #ruby
Fire-Dragon-DoL has joined #ruby
Martxel has joined #ruby
timgauthier has joined #ruby
atno has quit [Remote host closed the connection]
ce_afk is now known as cescalante
rahult is now known as rahult_
yubrew has joined #ruby
mrnugget has joined #ruby
canton7-mac has joined #ruby
rm_ has joined #ruby
<flops> Does anyone have experience with the camping framework and postgres?
_justin has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<jhass> don't try to find the right person for your problem
dANOKELOFF has quit [Remote host closed the connection]
<flops> Hey, I have a problem with the camping framework. I'd like to use a postgres database but I get the following error when running the 'create' method: ActiveRecord::StatementInvalid: PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "first"
Rollabunna has joined #ruby
dANOKELOFF has joined #ruby
<flops> And I have no clue where that "first" is coming from. Everything worked with sqlite
rm_ has quit [Ping timeout: 265 seconds]
cescalante is now known as ce_afk
_tpavel has joined #ruby
<ddv> flops: debug your code?
<jhass> flops: show the statement that causes that
dANOKELOFF has quit [Ping timeout: 240 seconds]
<flops> I didn't write the first and I can't find it in the source of camping, too...
<flops> s/first/"first"/g
jamto11 has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
<jhass> what's the generated query?
fella5s has quit [Read error: Connection reset by peer]
fella5s has joined #ruby
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
teryurrr has joined #ruby
<DefV> r/4
<flops> don't know any more details
tyll has joined #ruby
<flops> Is there the possibility to show the exact query?
hermanmunster has joined #ruby
<jhass> well, $1 will be "first" for whatever reason
jamto11 has quit [Ping timeout: 252 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
<flops> jhass: Do you have an idea where I can find the place $1 is set?
teryurrr is now known as gdd229
crzrcn has joined #ruby
gdd229 has quit [Client Quit]
tyll has quit [Ping timeout: 265 seconds]
gdd229 has joined #ruby
senayar_ has joined #ruby
DouweM has joined #ruby
jimbauds has quit [Ping timeout: 252 seconds]
gdd229 has quit [Client Quit]
sensen has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 240 seconds]
crzrcn has quit [Ping timeout: 276 seconds]
<jhass> hm, I'd suspect https://github.com/camping/camping/blob/master/lib/camping/ar.rb#L50 but then the trace doesn't indicate a call to first
<jhass> but then that code is eval'd for no reason so that framework is crap anyway
<flops> so I better switch to sinatra or something?
<jhass> yes
<flops> ok, then I will do this tonight
<flops> thanks for your helpt
<flops> *help
<LadyRainicorn> wow wtf is with that code?
<jhass> staying below 4Kb is a nice fun conditions but worthless for anything serious
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
dANOKELOFF has joined #ruby
rdark has joined #ruby
jxport has quit [Quit: leaving]
Rollabunna has joined #ruby
<jhass> ah, we should look at the released code
<jhass> so the released version is simply incompatible with AR 4.1 and the author failed to properly declare deps
m0rd0 has joined #ruby
tyll has joined #ruby
<flops> I'd try fixing it but I guess I won't succeed ;)
Rainicorn has joined #ruby
mercwithamouth has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 252 seconds]
LadyRainicorn has joined #ruby
mrnugget has quit [Ping timeout: 265 seconds]
tyll has quit [Ping timeout: 240 seconds]
LadyR has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
MR-0x41 has joined #ruby
Rollabunna has joined #ruby
MR-0x41 has left #ruby [#ruby]
Rainicorn has quit [Ping timeout: 265 seconds]
andrewlio has quit [Quit: Leaving.]
LadyRainicorn has quit [Disconnected by services]
mercwithamouth has quit [Ping timeout: 240 seconds]
LadyR is now known as LadyRainicorn
vlad_starkov has joined #ruby
tyll has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
psyko666 has joined #ruby
mikecmpbll has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
_m_g_ has quit [Read error: Connection reset by peer]
_m_g_ has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
gaussblurinc1 has joined #ruby
<gaussblurinc1> hi! how to make Shellwords work with UTF-8?
nateberkopec has joined #ruby
<jhass> it doesn't?
tjr9898 has joined #ruby
gdd229 has joined #ruby
<apeiros> `echo #{["ä", "ö"].shelljoin}` # => "ä ö\n"
<apeiros> works fine for me
monkegjinni has joined #ruby
fella5s has quit [Ping timeout: 240 seconds]
poikon has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<gaussblurinc1> jhass: it fails :( I try to make service in mac, that take filepath and run script
<jhass> I doubt ruby says "it fails"
nateberkopec has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
<apeiros> `say "it fails"`
<apeiros> works
<jnor> I have installed ruby using ruby-install script, how do I configure ubuntu to use that version for entire system?
<apeiros> jnor: remove all users except the one you installed ruby for. #thoughtleaderintraining
poikon has joined #ruby
<apeiros> hurray for screenshots of error messages
<jnor> aspiers: :p
<apeiros> gaussblurinc1: make a vine please.
<gaussblurinc1> apeiros: sorry, fastest way to copy :(
tpo has joined #ruby
<apeiros> without animation, we don't see what's wrong
yfeldblum has quit [Ping timeout: 264 seconds]
<apeiros> also, with sound please. because much sound, very audio, much wow
<apeiros> /kick apeiros unhelpful, stahp.
lkba has joined #ruby
<Mon_Ouie> The encoding of your string is set to ASCII, not UTF-8, which makes them invalid
<apeiros> Mon_Ouie: fun, I refused to even look at the pic :D
<apeiros> sidenote: US-ASCII != 8BIT-ASCII
yubrew has joined #ruby
gdd229 has quit [Quit: Page closed]
<apeiros> ascii-8bit? retarded name anyway.
subraminion has quit [Ping timeout: 276 seconds]
<apeiros> how to upgrade your git: remove old values from $PATH, done.
sski has quit [Remote host closed the connection]
Lewix has joined #ruby
jamto11 has joined #ruby
sski has joined #ruby
wildroman2 has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
sensen has joined #ruby
mntzn has joined #ruby
Sirupsen has joined #ruby
subraminion has joined #ruby
mcrmfc has quit [Quit: mcrmfc]
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
<jnor> aspiers: i realize my question was retarded my apologies :p
wildroman2 has joined #ruby
subraminion has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 265 seconds]
subraminion has joined #ruby
<mikecmpbll> lmfao at vine for error messages.
ce_afk is now known as cescalante
danshultz has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 265 seconds]
<tpo> could someone tell me why in the following code https://gist.github.com/tpo/11397855 a variable becomes very unexpectedly defined?
<tpo> (please)
northfurr has joined #ruby
helpD has joined #ruby
matiasmm has joined #ruby
sensen has quit [Ping timeout: 240 seconds]
srji has quit [Ping timeout: 252 seconds]
<jhass> tpo: the variable is defined when the parser sees it, not when it's assigned
fella5s has joined #ruby
<jhass> you need to separate parsing and running the code here
bthesorceror has joined #ruby
<LadyRainicorn> huhh, I didn't know defined? worked that way.
sk87 has joined #ruby
helpD has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
<matiasmm> Hey I'm getting this error http://pastebin.com/qLfJyWKU after running: " /usr/local/rvm/wrappers/ruby-2.0.0-p451/unicorn -D -E production -c /etc/unicorn/bugs.ru"
rm_ has joined #ruby
<tpo> jhass, what a semantic breakdown. Is this behaviour defined somewhere (where?). Thanks a lot jhass
jhass is now known as jhass|off
ndrei has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Alina-malina has quit [Ping timeout: 264 seconds]
Snarkz has joined #ruby
charliesome has joined #ruby
rahult_ is now known as rahult
rahult has quit [Quit: Back to the world of zombies]
m00nlight has joined #ruby
vlad_starkov has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
osvico has joined #ruby
<sce> hello
maq has joined #ruby
cescalante is now known as ce_afk
wildroman2 has quit [Remote host closed the connection]
tsnfoo has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
lyanchih has quit [Ping timeout: 240 seconds]
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
klaut has quit [Remote host closed the connection]
<timgauthier> hi
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
iamstalkr has quit [Read error: Connection reset by peer]
_justin has quit [Quit: _justin]
Stalkr^ has joined #ruby
Bira has joined #ruby
srji has joined #ruby
nvrch has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
Alina-malina has joined #ruby
crzrcn has joined #ruby
<timgauthier> Today, is break day. Today I break something
bthesorceror has quit [Remote host closed the connection]
crzrcn has quit [Ping timeout: 264 seconds]
troyronda has joined #ruby
<timgauthier> anyone need their blog broken?
mengu has quit [Remote host closed the connection]
<matiasmm> Hey, I'm getting this error when running unicorn: Exception `EOFError' at /usr/local/rvm/gems/ruby-2.0.0-p451/gems/unicorn-4.8.2/lib/unicorn/launcher.rb:46 - end of file reached . log: http://pastebin.com/4fAwSEvA
sski has joined #ruby
<flops> timgauthier: How do you plan to break it?
<olivier_bK> timgauthier, try to brake code babes
<olivier_bK> :)
<timgauthier> haha not that sort of break :P
<timgauthier> though that site needs to disapear :P
<timgauthier> I was thinking of designing something
Lewix has joined #ruby
<flops> designing a blog?
ValicekB has joined #ruby
<timgauthier> flops i'm a designer, who pretends to program sometimes. I'm having a really tough design issue with my own portfolio, so i was thinking of redesigning something else without any pressure
<timgauthier> i don't think i actually want to redesign someone specifics blog though, then there is pressure. bleh
Lewix has quit [Remote host closed the connection]
sambao21 has joined #ruby
lmickh has joined #ruby
jxf has quit [Quit: Leaving]
jxf has joined #ruby
_justin has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
troyronda has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
mehlah has quit [Quit: Leaving...]
kitak has joined #ruby
benzrf is now known as benzrf|offline
<olivier_bK> how to use specifique version of gem in ruby script ?
rdark has quit [Ping timeout: 276 seconds]
<timgauthier> bundler?
kitak has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
kitak has joined #ruby
<Mon_Ouie> Just gem "name", "version constraint"
rdark has joined #ruby
<Mon_Ouie> e.g. (where version constraint is something like '= 1.0.0' or '~> 1.9' or '> 3.0')
vpretzel has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
<olivier_bK> i try that in my script bu i get an error require 'green_shoes' '= 1.1.373'
senayar has joined #ruby
<Mon_Ouie> Not require, gem
<Mon_Ouie> Then you need to use require just as before
mark_locklear has joined #ruby
_justin has quit [Quit: _justin]
troyronda has joined #ruby
m3nTe has quit [Ping timeout: 265 seconds]
troyronda has quit [Remote host closed the connection]
troyronda has joined #ruby
SubSignal has joined #ruby
benzrf is now known as benzrf|offline
klaut has joined #ruby
ClarusCogitatio has quit [Ping timeout: 264 seconds]
tjr9898 has quit []
stantona has joined #ruby
jnor has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
ClarusCogitatio has joined #ruby
tpo has quit [Quit: Leaving]
troyronda has quit [Ping timeout: 240 seconds]
kiri has quit [Quit: Leaving]
jxf has quit [Ping timeout: 276 seconds]
stantona has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
yfeldblum has joined #ruby
kaspergrubbe has joined #ruby
KevinSjoberg has quit [Max SendQ exceeded]
jjbohn has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
KevinSjoberg has joined #ruby
KevinSjoberg has quit [Max SendQ exceeded]
KevinSjoberg has joined #ruby
benzrf|offline is now known as benzrf
<gaussblurinc1> great solution: item = Shellwords.escape(f.to_s.strip.encode(f.to_s.encoding).force_encoding(%q(utf-8)))
ndrei has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 276 seconds]
nisstyre has joined #ruby
simono has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
jamto11 has joined #ruby
tjsousa__ has quit [Quit: Computer has gone to sleep.]
jxf has joined #ruby
senayar has quit [Remote host closed the connection]
jnor has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
ClarusCogitatio has joined #ruby
senayar has joined #ruby
Rollabunna has joined #ruby
srji has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
vlad_starkov has quit []
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
subraminion has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
northfurr has quit [Quit: northfurr]
mercwithamouth has joined #ruby
mansi has joined #ruby
maximski has joined #ruby
rm_ has joined #ruby
davedev24 has joined #ruby
<apeiros> f.to_s.strip.encode(f.to_s.encoding) # <-- errr, what? encode to its current encoding is a no-op, entirely pointless.
jottr has joined #ruby
jottr has quit [Client Quit]
ndrei has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
flops_ has joined #ruby
jottr has joined #ruby
danshult_ has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
matiasmm has left #ruby [#ruby]
centipedefarmer has quit [Remote host closed the connection]
flops_ has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
jottr has quit [Client Quit]
cescalante is now known as ce_afk
flops has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
jamto11 has quit [Remote host closed the connection]
jottr has quit [Client Quit]
danshultz has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<pontiki> bah
<pontiki> this code
flops has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Morkel_ has joined #ruby
jottr has joined #ruby
MattStratton has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
jottr has quit [Client Quit]
jamto11 has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
jottr has quit [Client Quit]
dblessing has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
flops has quit [Read error: Connection reset by peer]
crzrcn has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
flops has joined #ruby
Avahey_ has joined #ruby
fantasti` has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
jcarouth has left #ruby [#ruby]
sski has quit []
maq has quit [Quit: Nettalk6 - www.ntalk.de]
jnor has quit [Quit: WeeChat 0.4.3]
qba73_ has joined #ruby
srji has joined #ruby
sski has joined #ruby
chipotle has quit [Quit: cya]
diegoviola has joined #ruby
crzrcn has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
SubSignal has quit [Remote host closed the connection]
moritzs has joined #ruby
Stalkr_ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
srji has quit [Client Quit]
kiri has joined #ruby
codabrink has joined #ruby
Rollabunna has joined #ruby
ktun has joined #ruby
banister_ is now known as banisterfiend
<olivier_bK> who is the best GUI in ruby
instantaphex has joined #ruby
jottr has joined #ruby
jottr has quit [Client Quit]
kevind has joined #ruby
ClarusCogitatio has joined #ruby
helpD has joined #ruby
bthesorceror has joined #ruby
Stalkr^ has quit [Ping timeout: 276 seconds]
tjsousa__ has joined #ruby
altatistic has joined #ruby
skysploit has quit [Remote host closed the connection]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
jottr has joined #ruby
jjbohn has quit [Quit: Leaving...]
Stalkr_ has quit [Quit: Leaving...]
ClarusCogitatio has quit [Excess Flood]
kiri has quit [Ping timeout: 252 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
Guest89644 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
tjsousa__ has quit [Ping timeout: 255 seconds]
kiri has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
enebo has joined #ruby
danijoo has joined #ruby
Bira has quit [Remote host closed the connection]
gwb3 has joined #ruby
gwb3 has quit [Client Quit]
_bart has joined #ruby
obs has quit [Remote host closed the connection]
AGreyCrane has quit [Quit: Leaving]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
mrmargolis has joined #ruby
PragCypher has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
ta has joined #ruby
rudisimo has joined #ruby
flughafen has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
gwb3 has joined #ruby
Stalkr^ has joined #ruby
andrewjanssen has joined #ruby
alexju has joined #ruby
andrewjanssen has quit [Client Quit]
yubrew has joined #ruby
gwb3 has quit [Client Quit]
Chamkila has quit [Remote host closed the connection]
mary_synthesizin has joined #ruby
mary_synthesizin has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
subraminion has quit [Remote host closed the connection]
mary_synthesizin has joined #ruby
amundj has quit [Ping timeout: 240 seconds]
Rudde has quit [Ping timeout: 252 seconds]
<Stalkr^> I am trying to write a tool for 4chan, that's supposed to download some images. I am using their API (json), and was recommended to use something like VCR for the API data. How would I write a test to download images?
troyronda has joined #ruby
ta has quit [Ping timeout: 240 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
stantona has joined #ruby
Rudde has joined #ruby
gwb3 has joined #ruby
nateberkopec has joined #ruby
akemrir has joined #ruby
ClarusCogitatio has quit [Excess Flood]
MikeLeman has joined #ruby
kiri has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
ClarusCogitatio has joined #ruby
Alina-malina has joined #ruby
mr_snowf1ake has joined #ruby
ClarusCogitatio has quit [Excess Flood]
yubrew has quit [Ping timeout: 252 seconds]
kiri has joined #ruby
beef-wellington has joined #ruby
ClarusCogitatio has joined #ruby
mosez has quit [Ping timeout: 252 seconds]
andrewjanssen has joined #ruby
mosez has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
wildroman2 has quit [Remote host closed the connection]
andrewjanssen has quit [Client Quit]
nateberkopec has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
mr_snowf1ake has quit [Client Quit]
Kuda_ has joined #ruby
pu22l3r has joined #ruby
kiri has quit [Ping timeout: 265 seconds]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
troyronda has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 276 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
ta has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
ClarusCogitatio has joined #ruby
Alina-malina has joined #ruby
mcrmfc has joined #ruby
sailias has joined #ruby
blackavr has joined #ruby
rm_ has joined #ruby
rm_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
rm_ has joined #ruby
ce_afk is now known as cescalante
ClarusCogitatio has quit [Ping timeout: 252 seconds]
beef-wellington has joined #ruby
rm_ has quit [Read error: No route to host]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rm_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
mrdtt has joined #ruby
pu22l3r has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
professor_soap has joined #ruby
<professor_soap> hi people
diegoviola has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
<benzrf> hi professor_soap
<benzrf> where do u profess soap for
wildroman2 has quit [Client Quit]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Excess Flood]
jcs222 has quit [Quit: leaving]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
meatherly has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
soahccc has joined #ruby
<Morkel> I have a integer 15607 how can i convert it to BigDecimal? This is a value in USD so it should be 156.07 as Big Decimal
ta has quit [Ping timeout: 240 seconds]
<soahccc> Hey guys, I just tried to install a signed gem with medium security. Can someone tell me where this certificate it is complaining about is coming from? https://gist.github.com/2called-chaos/e7e47d5f27bfd4698502
mjsmith2 has quit [Remote host closed the connection]
nisstyre has quit [Quit: WeeChat 0.4.3]
Kuda_ has quit [Quit: Byebye!]
professor_soap has quit [Client Quit]
sparrovv has joined #ruby
jamto11 has joined #ruby
freerobby has joined #ruby
ClarusCogitatio has quit [Excess Flood]
mjsmith2 has joined #ruby
m0rd0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<soahccc> Morkel: in rails 4 you can do .to_d
sparrovv has quit [Remote host closed the connection]
<soahccc> Morkel: oh nvm
<altatistic> Morkel: Also, check out the money rubygem (http://rubygems.org/gems/money)
Kricir has joined #ruby
<momomomomo> +1 for the money gem
cescalante is now known as ce_afk
nateberkopec has joined #ruby
<Morkel> soahccc: But its not 156.07 its 15701.0
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
<altatistic> Morkel: BigDecimal.new(156.07) Will work in anything else
ClarusCogitatio has joined #ruby
jamto11_ has joined #ruby
<altatistic> You have to divide by 100
ihhiuhhiu has joined #ruby
nateberkopec has quit [Client Quit]
<altatistic> It's an integer, so it assumes the decimal point is at the end
<Morkel> altatistic: Thx this works, i thougt thats not possible
zz_jrhorn424 is now known as jrhorn424
ihhiuhhiu has left #ruby [#ruby]
<Morkel> value.to_d / 100 works fine
<altatistic> Morkel: NP
<altatistic> There you go :)
andrewjanssen has quit [Quit: Leaving...]
<soahccc> Morkel: it's a bit weird… 100/26 != 100/26.0
jrhorn424 is now known as zz_jrhorn424
osvico has quit [Ping timeout: 255 seconds]
compleatang has left #ruby [#ruby]
<pontiki> if you were going to store a percentage, would you store it at 30.0 or 0.3 ?
jamto11_ has quit [Ping timeout: 255 seconds]
<altatistic> pontiki: .3
<pontiki> me, too
twiceaday has joined #ruby
SilkFox has joined #ruby
<altatistic> That way you can use number_to_percenatge in your views
<altatistic> Assuming rails
<pontiki> i'd consider 30.0 a display issue
<pontiki> well, it's rails, but it's also a general consideration
Mon_Ouie has quit [Ping timeout: 252 seconds]
<pontiki> this code ...
<altatistic> True
ta has joined #ruby
<pontiki> and the money gem just mentioned
<pontiki> this app is all about money
<altatistic> Yeah, That gem is super helpful :)
<pontiki> and here there are things going from BigDecimal to Float and back
<pontiki> it's just crazymaking
flops has quit [Read error: Connection reset by peer]
<altatistic> Floats shouldn't be used for money :)
twiceday has quit [Read error: Operation timed out]
beef-wellington has quit [Ping timeout: 252 seconds]
tvw has quit [Ping timeout: 252 seconds]
<pontiki> ya think??
Stalkr^ has quit [Quit: Leaving...]
fgo has quit [Remote host closed the connection]
<pontiki> yet here we are
<altatistic> hahahaha
flops has joined #ruby
<altatistic> Sounds like where I'm at right now lol
<altatistic> But not with money
<pontiki> someone's put this in: (100 * BigDecimal.new(self.lti_award_paid) / BigDecimal.new(self.base_salary)).truncate(3)
mansi has joined #ruby
<altatistic> Shiiiiiiiit
<altatistic> Get that outta there
<pontiki> i mean, WTAF
crzrcn has joined #ruby
Stalkr^ has joined #ruby
baweaver has joined #ruby
<pontiki> what else is fun about that, is that the first variable could actually be nil, which is something meaningful here
<benzrf> >> BigDecimal(nil)
<eval-in> benzrf => undefined method `BigDecimal' for main:Object (NoMethodError) ... (https://eval.in/143791)
<benzrf> >> BigDecimal.new(nil)
<eval-in> benzrf => uninitialized constant BigDecimal (NameError) ... (https://eval.in/143792)
<benzrf> >> require 'bigdecimal'; BigDecimal.new(nil)
<eval-in> benzrf => (https://eval.in/143793)
<benzrf> >> require 'bigdecimal'; BigDecimal.new(nil).nil?
<benzrf> >> u there
<eval-in> benzrf => undefined local variable or method `there' for main:Object (NameError) ... (https://eval.in/143794)
<benzrf> >> require 'bigdecimal'; BigDecimal.new(nil).nil?
<eval-in> benzrf => (https://eval.in/143795)
<benzrf> huh.
<altatistic> lol I get your point
<pontiki> try:
<pontiki> >> require 'bigdecimal'; BigDecimal.new(nil);
<eval-in> pontiki => (https://eval.in/143796)
tjsousa__ has joined #ruby
<pontiki> boom
<workmad3> benzrf: 'Forbidden access to file `/'' is in your error trace
<workmad3> benzrf: a.k.a. eval-in won't let you require bigdecimal
<pontiki> there's no coercion of nil to BigDecimal
<pontiki> this is interesting:
<pontiki> >> require 'bigdecimal'; BigDecimal.new(nil.to_s);
<eval-in> pontiki => (https://eval.in/143797)
<altatistic> Woah
<altatistic> Weird
<pontiki> anyway
x77686d has joined #ruby
<pontiki> :'(
<altatistic> I get your point though
<pontiki> this freaking code base
x77686d has quit [Client Quit]
mansi has quit [Ping timeout: 264 seconds]
andy___ has joined #ruby
blackavr has quit [Quit: blackavr]
crzrcn has quit [Ping timeout: 264 seconds]
andrewjanssen has joined #ruby
<pontiki> no one on the team understands how things work, including the architect and lead
<altatistic> Isn't that the best?
<pontiki> oh quite
<altatistic> I've been there too many times.....
<pontiki> this is where i'm happy to be a freelancer
<altatistic> Hahaha Yep
meatherly has quit [Remote host closed the connection]
<altatistic> I'm kinda a chronic contractor
speakingcode has quit [Ping timeout: 264 seconds]
Stalkr^ has quit [Read error: Connection reset by peer]
<pontiki> as long as you work for yourself
andrewjanssen has quit [Remote host closed the connection]
twss has joined #ruby
meatherl_ has joined #ruby
<altatistic> The app I'm working with now literally has a controller 1000+ lines long, and a model with 20
<twss> that's what she said
speakingcode has joined #ruby
twss has left #ruby [#ruby]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<altatistic> That's not my code, and It's pissing me off lol
bean has joined #ruby
yubrew has joined #ruby
tvw has joined #ruby
yacks has quit [Read error: Connection reset by peer]
Vovko has joined #ruby
ksevelyar has joined #ruby
ksevelyar has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
ksevelyar has joined #ruby
<pontiki> oh gods, look at this guard clause:
<pontiki> unless self.lti_award_paid.to_f == 0 | self.base_salary.to_f == 0
MikeLeman has quit [Quit: www.twitch.tv/hoochrrr]
mrj has joined #ruby
<pontiki> spot the error
duggiefresh has joined #ruby
<altatistic> Geez
danshult_ has quit [Remote host closed the connection]
arietis has joined #ruby
<altatistic> Is that in the guardfile?
<pontiki> altatistic: that just makes me weep
SCommette has joined #ruby
<benzrf> >using glyph binary operators
<benzrf> >not 'and'/'or'
danshultz has joined #ruby
ksevelyar has quit [Client Quit]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rostam has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
<instantaphex> doing some bit twiddling with salaries?
jespada has joined #ruby
ksevelyar has joined #ruby
Soda has joined #ruby
obscured has joined #ruby
<altatistic> pontiki: that's pretty awful. The guys I'm working with now hadn't ever heard of a job queue (ie, resque/sidekiq) when I got here.....
stephen_jenkins has joined #ruby
<altatistic> Everything was done in the request
<altatistic> And there were no workers
momomomomo has quit [Quit: momomomomo]
bluenemo has quit [Quit: Verlassend]
<altatistic> Such a mess
<altatistic> And no f*cking
<altatistic> specs*
ClarusCogitatio has quit [Ping timeout: 264 seconds]
<altatistic> No test suite at all
jgabrielygalan has joined #ruby
flops has quit [Quit: leaving]
obscured has quit [Client Quit]
<instantaphex> altatistic: did they bring you in to fix the project?
rostam has joined #ruby
fantasti` has joined #ruby
<altatistic> Yes, but I had no idea how bad it was
<altatistic> And the other devs were still there.....
danshultz has quit [Ping timeout: 252 seconds]
timgauthier has joined #ruby
ta has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
fflush_ has joined #ruby
fflush_ has joined #ruby
fflush_ has quit [Changing host]
<altatistic> Are* still there
<timgauthier> hmm
<stephen_jenkins> that's what she said
<timgauthier> so why doesn't guard seem to be working :( has anyone ever set up guard to watch sass file and compile them?
<stephen_jenkins> that's what she said
workmad3 has quit [Ping timeout: 264 seconds]
ClarusCogitatio has joined #ruby
jjbohn has joined #ruby
stephen_jenkins has left #ruby ["later"]
mengu has quit [Remote host closed the connection]
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
yacks has joined #ruby
<timgauthier> yes
<altatistic> Never used it, but worth a look: https://github.com/hawx/guard-sass
workmad3 has joined #ruby
<baweaver> Well at least it's Ruby
vpretzel is now known as vpretzel|998
<baweaver> When the same is done for Java or lord forbid RPG...
<timgauthier> altatistic yeah, trying to make it work. I think i got it! yay!
michael_lee has joined #ruby
freerobby has quit [Quit: Leaving.]
<timgauthier> now my problems are just other jekyll related issues.
freerobby has joined #ruby
SubSignal has joined #ruby
benzrf is now known as benzrf|offline
sdouglas has joined #ruby
benzrf|offline is now known as benzrf
endless_walrus has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<fflush_> bonjour
dyoko has joined #ruby
flughafen has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
rudisimo|away has joined #ruby
SCommette has quit [Quit: SCommette]
mjsmith2 has joined #ruby
rudisimo|away is now known as rudisimo_
mercwithamouth has joined #ruby
mrnugget has joined #ruby
yano has quit [Quit: WeeChat, The Better IRC Client -- http://weechat.org/]
SCommette has joined #ruby
Rollabunna has quit [Remote host closed the connection]
snath has quit [Ping timeout: 252 seconds]
speakingcode has quit [Ping timeout: 252 seconds]
lw has joined #ruby
noop has quit [Ping timeout: 252 seconds]
treehug88 has joined #ruby
stantona has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
MattStratton has joined #ruby
rudisimo has quit [Ping timeout: 276 seconds]
ta has joined #ruby
ClarusCogitatio has joined #ruby
ScottJohn has joined #ruby
rudisimo_ is now known as rudisimo
yano has joined #ruby
rudisimo is now known as rudisimo_
rudisimo_ is now known as rudisimo|away
rudisimo|away is now known as rudisimo
ClarusCogitatio has quit [Excess Flood]
fgo has joined #ruby
stantona has quit [Ping timeout: 252 seconds]
MattStratton has quit [Client Quit]
carlyle has joined #ruby
yfeldblum has joined #ruby
fgo has quit [Read error: No route to host]
wallerdev has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
fgo has joined #ruby
andrewjanssen has joined #ruby
ClarusCogitatio has quit [Excess Flood]
makara has quit [Ping timeout: 252 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
<elico> Anyone know what are the maximum size of a url and\or a domain? Thanks!
ffranz has joined #ruby
fannye has quit [Ping timeout: 265 seconds]
andrewjanssen has quit [Client Quit]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ClarusCogitatio has quit [Excess Flood]
yfeldblum has quit [Ping timeout: 265 seconds]
michaeldeol has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<altatistic> elico: 2,083 characters for ie, anything longer and you'll hit issues.
ClarusCogitatio has joined #ruby
mansi has joined #ruby
snooc has joined #ruby
ClarusCogitatio has quit [Excess Flood]
michaeldeol has quit [Client Quit]
michael_lee has quit [Remote host closed the connection]
lethjakman has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
andrewjanssen has joined #ruby
pwh has joined #ruby
ClarusCogitatio has quit [Excess Flood]
danshultz has joined #ruby
aganov has quit [Quit: Leaving]
chipotle has joined #ruby
iceden has joined #ruby
Bira has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ClarusCogitatio has joined #ruby
bal has quit [Quit: bal]
crzrcn has joined #ruby
crystal77 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
anarang has quit [Quit: Leaving]
ta has quit [Ping timeout: 265 seconds]
Bira_ has joined #ruby
sgen has joined #ruby
jobewan has joined #ruby
Firebox has joined #ruby
<Firebox> hi
<elico> hi Firebox
<Firebox> :)
jprovazn has quit [Quit: Leaving]
mrmargolis has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 276 seconds]
michael_lee has joined #ruby
x77686d has joined #ruby
atmosx has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
mrmargolis has joined #ruby
ClarusCogitatio has quit [Ping timeout: 255 seconds]
arubincloud has joined #ruby
evenix has joined #ruby
sdouglas has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
ta has joined #ruby
rm_ has joined #ruby
ClarusCogitatio has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
Solnse has joined #ruby
andy___ has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrdtt has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
etqqkoiflwhb has joined #ruby
ta has quit [Read error: Connection reset by peer]
rm_ has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
sdouglas_ has joined #ruby
s2013 has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abra has quit [Ping timeout: 252 seconds]
maoko has joined #ruby
ScottJohn has quit [Remote host closed the connection]
terrellt has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
abra has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
jonDeer has joined #ruby
skysploit has quit [Remote host closed the connection]
ua has joined #ruby
Hobogrammer has joined #ruby
sambao21 has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
Cache_Money has joined #ruby
BWStearns has joined #ruby
MattStratton has joined #ruby
mrnugget has quit [Quit: mrnugget]
<jonDeer> I started ruby and I'm not sure why I'm having problems with something so basic. I included my irb shell input along with the error message: http://ideone.com/xQFXeo
mrdtt has joined #ruby
dik_dak has joined #ruby
george2|chakra has joined #ruby
mark_locklear has quit [Quit: Leaving]
george2 has quit [Ping timeout: 240 seconds]
skysploit has joined #ruby
<apeiros> jonDeer: only explanation I see is that you have more than one zombie.rb and you're looking at the wrong one
BizarreCake has quit [Ping timeout: 240 seconds]
<jonDeer> oh wait that might be the case
<jonDeer> hopefully it is let me see
kitak has quit [Remote host closed the connection]
<ua> or you havent saved changes in zombie.rb
xvikvi has joined #ruby
rm_ has joined #ruby
s00pcan has joined #ruby
ClarusCogitatio has joined #ruby
<mgorbach> Anyone using default Ruby with OS X?
<mgorbach> I'm just trying to install gem on a buildserver ... the clive gem installs and is put into place, but my ruby won't load it with require 'clive'
ce_afk is now known as cescalante
<mgorbach> Even though the gem files appear to be located in the right place. Any tips?
Kricir has quit [Remote host closed the connection]
_maes_ has joined #ruby
jamto11 has quit []
HashNuke has joined #ruby
<jonDeer> yes! thank you :)
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
m00nlight_ has joined #ruby
dawkirst has joined #ruby
lethjakman has joined #ruby
Spami has joined #ruby
m00nlight has quit [Ping timeout: 276 seconds]
s2013 has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
centrx has joined #ruby
rm_ has quit [Remote host closed the connection]
<Firebox> shevy: hi
rm_ has joined #ruby
Cku has quit [Quit: Page closed]
ndrei has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
Nukepuppy has joined #ruby
Kricir has joined #ruby
endash has joined #ruby
pskosinski has joined #ruby
MacTrash has quit [Quit: This computer has gone to sleep]
snooc has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 252 seconds]
snooc has joined #ruby
coderhs has joined #ruby
s2013 has joined #ruby
apeiros has quit [Remote host closed the connection]
gdd229 has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
flops has joined #ruby
apeiros has joined #ruby
flughafen has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
ksevelyar has quit [Remote host closed the connection]
george2 has joined #ruby
mjsmith2 has joined #ruby
coderhs has quit [Client Quit]
sski has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
sski has joined #ruby
george2|chakra has quit [Ping timeout: 252 seconds]
SilkFox has quit [Ping timeout: 252 seconds]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
Firebox has left #ruby [#ruby]
gdd229 has left #ruby [#ruby]
benzrf is now known as benzrf|offline
Avahey_ has quit [Quit: Connection closed for inactivity]
tafryn has left #ruby [#ruby]
_tpavel has quit [Quit: Leaving]
<Solnse> mgorbach: try including the path ?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 276 seconds]
parduse has quit [Ping timeout: 252 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
sski has quit [Ping timeout: 240 seconds]
sdouglas_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
stantona has joined #ruby
coderhs has quit [Ping timeout: 276 seconds]
fantasti` has quit [Ping timeout: 240 seconds]
stantona has quit [Client Quit]
aspires has joined #ruby
Kricir has quit [Remote host closed the connection]
dyoko has quit [Quit: Leaving.]
mishoch has joined #ruby
fgo has joined #ruby
mark_locklear has joined #ruby
aspires has quit [Read error: Connection reset by peer]
aspires_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
lethjakman has quit [Ping timeout: 276 seconds]
sdouglas has quit [Read error: Connection reset by peer]
juco has joined #ruby
sdouglas has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
fgo has quit [Ping timeout: 276 seconds]
albertgrala has joined #ruby
flughafen has joined #ruby
mrnugget has joined #ruby
_maes_ has joined #ruby
MatthewsFace has joined #ruby
jeregrine has joined #ruby
rippa has joined #ruby
djbkd has joined #ruby
GreatPotato has left #ruby [#ruby]
simono has joined #ruby
ndrei has joined #ruby
toastynerd has joined #ruby
dANOKELO_ has joined #ruby
coderhs has joined #ruby
dANOKELO_ has quit [Client Quit]
phinfonet has joined #ruby
bthesorceror has quit [Remote host closed the connection]
kilk_ has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Quit: Leaving...]
kilk__ has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
snooc_ has joined #ruby
saarinen has joined #ruby
<mishoch> hi people, I am trying to upload a file server-side via Net::HTTP on Ruby 2.1.0 and I get the error [Errno::ECONNRESET: Connection reset by peer from /home/deployer/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/openssl/buffering.rb:326:in `syswrite'...] whereas if using Ruby 1.9.3 the code executes without a problem. Do you know how to solve this issue because it seems like a Ruby 2.1.0 library problem?
dANOKELOFF has quit [Ping timeout: 252 seconds]
snooc has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
jcs222 has joined #ruby
Kricir has joined #ruby
altatistic has quit []
toastynerd has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
carlyle_ has joined #ruby
juco has quit [Quit: Leaving]
cocotton has joined #ruby
qba73_ has quit []
Hobogrammer has quit [Ping timeout: 240 seconds]
MrJoshua has quit [Quit: MrJoshua]
newUser1234 has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.3]
carlyle has quit [Ping timeout: 246 seconds]
andrewjanssen has joined #ruby
Lewix has joined #ruby
acrussell has joined #ruby
Sirupsen has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby
apeiros has joined #ruby
danshultz has joined #ruby
dstynchula has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
bean has joined #ruby
SilkFox has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
havenwood has joined #ruby
|JD| has quit [Quit: Verlassend]
mattmcclure has joined #ruby
phantasm66 has joined #ruby
snath has joined #ruby
mishoch has left #ruby [#ruby]
_bart has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
AlexRussia has joined #ruby
jjbohn has quit [Quit: Leaving...]
fflush_ has quit [Quit: fflush_]
duggiefresh has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
goleldar has joined #ruby
dapz has joined #ruby
danshultz has joined #ruby
maestrojed has joined #ruby
andikr has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
kitak has joined #ruby
andy___ has quit [Ping timeout: 276 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Remote host closed the connection]
blackmesa has joined #ruby
andy___ has joined #ruby
bradhe has joined #ruby
nateberkopec has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
pietr0 has joined #ruby
pagioss has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
spider-mario has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
spider-mario_ has joined #ruby
geggam has joined #ruby
lethjakman has joined #ruby
senayar_ has joined #ruby
spider-mario_ is now known as spider-mario
omosoj has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
gaussblurinc1 has joined #ruby
Hobogrammer has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
cout is now known as Teck1a
cndiv has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
michaeldeol has joined #ruby
pwh has quit []
mrnugget has quit [Read error: Operation timed out]
Xeago has joined #ruby
lurch_ has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
coz has joined #ruby
yfeldblum has joined #ruby
poguez_ has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
andrewjanssen has joined #ruby
jgabrielygalan has quit [Quit: Leaving]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
bean has joined #ruby
pagioss has joined #ruby
m8 has joined #ruby
lw has quit [Quit: b]
endless_walrus has quit [Quit: Textual IRC Client: www.textualapp.com]
subraminion has joined #ruby
razrunelord has joined #ruby
kevind_ has joined #ruby
troyronda has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
_justin has joined #ruby
albertgrala has quit [Quit: Leaving]
skysploit has quit []
tvw has quit []
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
kevind has quit [Ping timeout: 240 seconds]
kevind_ is now known as kevind
clov3r has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
andy___ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has joined #ruby
wallerdev has quit [Quit: wallerdev]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
troyronda has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 276 seconds]
Kricir has quit [Remote host closed the connection]
dangerousdave has joined #ruby
subraminion has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
fgo has joined #ruby
MatthewsFace has joined #ruby
rm_ has joined #ruby
Kricir has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
deric_skibotn has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 252 seconds]
instantaphex has quit [Ping timeout: 276 seconds]
crystal77 has joined #ruby
Teck1a is now known as cout
mikecmpbll has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
snooc_ has quit [Ping timeout: 252 seconds]
agarie has joined #ruby
sparrovv has joined #ruby
bklane has joined #ruby
x77686d has quit [Client Quit]
olivier_bK has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
nvrch has quit [Quit: nvrch]
andrewjanssen has quit [Quit: Leaving...]
jack_rabbit has joined #ruby
einarj has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
carlyle_ has quit [Remote host closed the connection]
xiaoguo has joined #ruby
xiaoguo has quit [Client Quit]
carlyle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
carlyle has quit [Remote host closed the connection]
echevemaster has joined #ruby
LiohAu has quit [Quit: LiohAu]
michaeldeol has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
Snarkz has joined #ruby
bthesorceror has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
michael_lee has quit [Quit: Ex-Chat]
_justin has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
rokob has joined #ruby
descala has quit [Ping timeout: 240 seconds]
the_f0ster has joined #ruby
heath_ has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
cover_ has joined #ruby
andrewlio has joined #ruby
<heath_> question: I'm running 'bundle exec <gemname>' and getting a 'Gemfile not found' error. It doesn't happen if I'm in the gem's directory...but I don't want to have to be. Ideas?
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cover has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
srji has joined #ruby
<heath_> I'm trying to ensure when I deploy this executable I can safely run it using the same dependencies in the Gemfile.lock
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<srji> if $0 == __FILE__ i don't understand this line
snooc has joined #ruby
harumph has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
psyko666 has quit [Quit: Leaving]
<centrx> heath_, bundle gets its information from the Gemfile in the current directory
<apeiros> srji: true if the current file is also the one directly executed (as opposed to being required, f.ex.)
franzip has joined #ruby
fflush_ has joined #ruby
fflush_ has quit [Changing host]
fflush_ has joined #ruby
<heath_> centrx: so there's no way to execute a gem so that it only uses the dependencies in the Gemfile.lock?
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<heath_> we are having issues where the executable fails in PROD because there's newer versions of gems installed on the system
<srji> apeiros: ty
cover has joined #ruby
<apeiros> yw
_bart has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<centrx> heath_, Gemfile.lock is used, but Gemfile is always in the directory with it, I assume it's required
<centrx> heath_, Gemfile will have the general dependencies, Gemfile.lock is generated from the Gemfile with the exact versions used.
bean has joined #ruby
pu22l3r has joined #ruby
<Senjai> heath_: I venture that you dont lock down your versions properly
coderhs has joined #ruby
cover_ has quit [Ping timeout: 276 seconds]
<heath_> Senjai: it's not my gemfile that is not locked properly but are sub-dependencies of gemfiles that are out of my controle
harumph has left #ruby [#ruby]
centrx has quit [Quit: All this computer hacking is making me thirsty]
wallerdev has joined #ruby
wald0 has joined #ruby
descala has joined #ruby
razrunel_ has joined #ruby
<Senjai> heath_: Do you package and upload the Gemfile.lock when you deploy?
razrunel_ has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
<heath_> Senjai: yeah, it's part of the package
<Senjai> heath_: Then it should use the exact same gems as your local dev does
razrunel_ has joined #ruby
<Senjai> heath_: Some gems have external deps, like phantomjs, or other executables that are not provided by ruby
<Senjai> imagemagick, etc
<Senjai> heath_: Also you can specify the gemfile to use with --gemfile IIRC
RohanRNS has quit []
bthesorceror has joined #ruby
<Senjai> but there is no reason not to be in that directory
RohanRNS has joined #ruby
RohanRNS has quit [Changing host]
RohanRNS has joined #ruby
RohanRNS has quit [Client Quit]
<heath_> Senjai: so my only solution is to execute 'bundle exec <gemname>' from within the gem directory?
Es0teric has quit [Quit: Computer has gone to sleep.]
heftig has quit [Quit: Quitting]
SCommette has quit [Quit: SCommette]
Xeago has quit [Read error: Connection reset by peer]
razrunelord has quit [Ping timeout: 276 seconds]
<heath_> in order to ensure it only uses the versions of gems in the Gemfile.lock?
aspires_ has quit [Remote host closed the connection]
<havenwood> heath_: if you want to execute the command in the context of the bundle, bundle exec
<havenwood> heath_: or use a tool like `rubygems-bundler` that will `bundle exec` for you
cocotton has quit [Remote host closed the connection]
<havenwood> heath_: nothing wrong with doing it manually
aspires has joined #ruby
<havenwood> heath_: the rubygems-bundler gem ships with RVM and thereby has become widely used
SilkFox has joined #ruby
cover_ has joined #ruby
RohanRNS has joined #ruby
RohanRNS has quit [Changing host]
RohanRNS has joined #ruby
cover has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
nanoyak has joined #ruby
<heath_> I guess I was hoping that I could use 'bundle exec <gemname>' from any directory on the system (like I can when just executing any installed gem) and have it honor the Gemfile.lock. Sounds like if I want to always ensure that specific versions of sub-dependencies are used I'll need to execute it from within the gem's directory.
VictorBjelkholm has quit [Ping timeout: 252 seconds]
cocotton has joined #ruby
RohanRNS has quit [Client Quit]
JoeGaudet has joined #ruby
<havenwood> heath_: yeah, you have to specify the Gemfile somehow, otherwise how'd it know which bundle to context?
pu22l3r_ has joined #ruby
<havenwood> heath_: kinda sounds like you don't want to use bundles :P
dapz has joined #ruby
agjacome has joined #ruby
Advocation has joined #ruby
andrewlio has quit [Quit: Leaving.]
ACPe has quit [Quit: I used /quit.]
saarinen has joined #ruby
ACPe has joined #ruby
Kricir has joined #ruby
<heath_> havenwood: I was thinking that bundler had a way of knowing where the installed gem was and opening it to examine the Gemfile.lock
<heath_> or something like that
workmad3_ has joined #ruby
<havenwood> heath_: the installed gem could be installed in multiple bundles and on the system though
SCommette has joined #ruby
<havenwood> heath_: so how'd it ever know which you meant to use?
pen has quit [Remote host closed the connection]
canton7-mac has quit [Remote host closed the connection]
<heath_> yeah
<heath_> I'm installing this particular gem on a Windows machine and it seems everything has to be in the system gemset
pu22l3r has quit [Ping timeout: 255 seconds]
<havenwood> heath_: if you want the gems in your Gemfile installed on the system, try: bundle --system
<wallerdev> good mroning
<havenwood> wallerdev: g'morn
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RohanRNS has joined #ruby
SCommette has quit [Client Quit]
bluOxigen has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
subbyyy has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
testcore has joined #ruby
SCommette has joined #ruby
tvw has joined #ruby
workmad3_ has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 252 seconds]
<Hanmac> havenwood: did you watch DoctorWho recently?
pushpak has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
instantaphex has joined #ruby
<havenwood> Hanmac: on S3E8
pel_daniel has joined #ruby
<havenwood> "42"
<havenwood> Hanmac: been busy!
sambao21 has joined #ruby
WishBoy- has joined #ruby
noop has joined #ruby
WishBoy has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
bricker has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
<Hanmac> havenwood: the next ones S3E10 and S3E11 are one of my favorits ;P
nanoyak has joined #ruby
<havenwood> Hanmac: nice, i need to keep watching :)
ACPe has quit [Quit: I used /quit.]
Xeago has quit [Remote host closed the connection]
ACPe has joined #ruby
bricker has joined #ruby
roadie has joined #ruby
Xeago has joined #ruby
Kricir has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<the_f0ster> can I define functions, not methods, although I guess its a method on something since everything is an object in ruby, can I just do something like if { def thing; stuff end; thing } ?
<the_f0ster> basically just want to make function in the scope of an if statement then call it later inside of that if statement
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<Mon_Ouie> No, `if` does not create a new scope for method definitions (so it will still be defined and callable later)
<havenwood> >> always_true = def thing; end; always_true
<eval-in> havenwood => :thing (https://eval.in/143871)
<the_f0ster> Mon_Ouie: ah i see, but basically i have to define it before I can call it, since everything is just interpreted, right ?
<Mon_Ouie> Yes, but it doesn't have to do with interpretation or compilation (some implementations do in fact compile the code)
<Mon_Ouie> (and most of them compile it to bytecode beforehand still)
Jnco has joined #ruby
<havenwood> the_f0ster: you can always define then undefine methods, though do you really want the method to be fleeting?
dawkirst has quit [Remote host closed the connection]
flughafen has quit [Ping timeout: 252 seconds]
MattStratton has quit [Ping timeout: 264 seconds]
<the_f0ster> im just hacking somethign crazy together for a seed script to import data from another db into my data model for testing, wanted to have a little more encapsulation by just using functions
testcore has quit [Quit: [BX] If you gaze into the abyss, the abyss gazes also into you]
<havenwood> the_f0ster: like passing around lambdas?
shinobi_one has joined #ruby
<the_f0ster> i just want to separate the tables i am importing into their own functions
<apeiros> the_f0ster, Mon_Ouie: interpreted vs. compiled vs. various mixed forms is not a language feature
<the_f0ster> so not really lambdas
<apeiros> or s/feature/attribute/
testcore has joined #ruby
SilkFox has quit [Read error: Operation timed out]
<heath_> havenwood: thx for helping me out
<havenwood> so windy out today!
<the_f0ster> but functions have to be def before they are referenced ?
<havenwood> heath_: np
<heath_> centrx: thx for helping me out :)
<Mon_Ouie> Yes, and that rule holds even when an implementation compiles your code to native code before running it
<heath_> Senjai: appreciate the help.
<apeiros> the_f0ster: yes, in the order of code execution, a method's definition must be executed before you can call it
<apeiros> the_f0ster: that doesn't mean the definition has to be lexically before the call
AlSquire has quit [Quit: This computer has gone to sleep]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
<apeiros> the_f0ster: e.g. at_exit do foo end; def foo; puts "yay, I was lexically defined after the invocation"; end
sambao21 has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
wald0 has quit [Quit: Lost terminal]
<Jnco> Hey All - I'm looking for an advanced ruby programmer / architect to help a startup (getsortbox.com). I definetly need some help! If looking for work, please msg me to talk - Thanks ! :)
chrisja has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ndrei has joined #ruby
<mordof> so.. I'm doing this: mystr = IO.readlines('textfile').join; mystr.each { |c| # stuff in here for handling per-character } but i'm getting 'undefined method `each' for #<String:memloc> .. is anything required to use .each in a regular ruby file?
srji has quit [Ping timeout: 252 seconds]
<mordof> oh.. i'm using 1.9.3 also
danshultz has quit [Read error: Connection reset by peer]
<mordof> >> "test".each { |c| print c, " " }
danshult_ has joined #ruby
<havenwood> mordof: #each_char
yfeldblum has joined #ruby
badhatter_ has quit [Ping timeout: 276 seconds]
<apeiros> mordof: also, File.read('textfile') instead of .readlines.join
<Hanmac> havenwood: long time ago ... the BBC did show doctor who episodes to young children ... (5-10) and they should rank how scary they where ... from a scale of 1-5 Episode S3E11 got a "5.5 (Off the scale!)"
SilkFox has joined #ruby
<wallerdev> spoilers
Kricir has joined #ruby
<mordof> bah.. this tutorial
twidx has joined #ruby
<mordof> neither of those are listed, lol
<shevy> mordof tutorial
<shevy> are you still reading tutorials
<mordof> shevy: was using it as a reference because it had things nicely organized
ascarter has joined #ruby
<mordof> but clearly it's not a full reference
<mordof> so i'm abandoning it now
<shevy> this all happens because you decided to start with a boring project
<Mon_Ouie> Though if you want to just iterate character per character there's no reason to read the whole string at once. IO#each_char exists as well
<mordof> shevy: ssshhh
<shevy> now you are back to read incomplete, outdated tutorials :(
Xeago has joined #ruby
<apeiros> Mon_Ouie: d'uh, right :D
<shevy> mordof in regards to docu and tutorials though - I think in the end the best way is to collect useful tidbits on your own
bakflash has joined #ruby
rdark has quit [Quit: leaving]
<apeiros> d'oh?
<shevy> mordof what was the tutorial about?
<apeiros> meh
<shevy> apeiros mah!
<mordof> shevy: it was a a guide to ruby
vpretzel|998 is now known as vpretzel
<mordof> shevy: went through a large list of things
<apeiros> shevy: mimimi
<shevy> hmm... large list of things...
* mordof went through the majority of that
<shevy> oh, class String!
<shevy> now you know class String
<shevy> damn, that is awful style that tutorial
<mordof> shevy: obviously not just Strings
codeFiend has joined #ruby
<mordof> that's just the page that was on
<shevy> myStr = String.new("THIS IS TEST")
<shevy> foo = myStr.downcase
fgo has joined #ruby
<mordof> that I was on*
<shevy> he does that on purpose!
<shevy> I swear... the guy who wrote that tutorial
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crzrcn has quit [Quit: Leaving.]
<shevy> mordof nono it's time for a quiz
<mordof> lol
<mordof> ok
<shevy> mordof to see how much you learned about class String
doodlehaus has joined #ruby
testcore has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
<shevy> a moment, I must look at my own docu for rare stuff ;)
<mordof> why are you focusing just on strings? and obviously i'm probably going to fail
<mordof> i used that website just to get a general idea of what was available
<mordof> not for specifics
skulker has joined #ruby
<shevy> mordof it was part of the tutorial
<mordof> ok
* mordof didn't memorize everything
<shevy> we have to start somewhere
fgo has quit [Read error: No route to host]
<shevy> mordof - what ways to create strings in ruby do you know?
<shevy> know *of
fgo has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
<shevy> mordof if you can name two then I am content and we can move to the next question
<mordof> string literal, String.new, um.. could do Fixnum.to_s and the like with other types.. hm
michaeldeol has joined #ruby
metamaterial has joined #ruby
<shevy> k
bean has joined #ruby
ponga has quit [Quit: Leaving :)]
senayar_ has quit [Read error: Connection reset by peer]
<shevy> mordof you are given the character 'k', how can you obtain the next character?
<shevy> (alphabet)
senayar has joined #ruby
<mordof> oohh i know this..
niftylettuce_ has joined #ruby
<shevy> admittedly it is a very simple question
<mordof> something like ('k'.byte_code + 1).to_s haha, i'm aware that's not right
srji has joined #ruby
tyll has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
<mordof> but the idea is correct
<shevy> the question even has the answer :(
<mordof> shevy: i'm not looking at the tutorial
<shevy> well you don't have to implement stuff your own here
<shevy> *on your own
<mordof> is there a 'k'.next_char or something?
<shevy> almost!
<shevy> we mark it as correct
<shevy> now the next question:
Shidash has joined #ruby
* mordof has not encountered a language that does that before
nanoyak has quit [Quit: Computer has gone to sleep.]
<mordof> lol
<shevy> you are given the string "hEllo". How can you make this string into "Hello"?
<Mon_Ouie> It's called succ (and also handles multiple characters)
<mordof> i've always had to do charCode + 1
flughafen has joined #ruby
<shevy> mordof for most of the simple operations, ruby has methods available
<mordof> ok
<shevy> mordof soon the questions will become more difficult
<mordof> shevy: strings have a function for that, i just don't know exactly what it's called. proper word case something or other
<mordof> i saw that in the page
<shevy> yeah, you passed that one, the method would have been .capitalize, easy to remember
* mordof isn't going to look though, since it's a quiz
<mordof> ok
<shevy> now for something much harder!
fgo has quit [Ping timeout: 252 seconds]
<shevy> mordof we are going to replace stuff in a string
<mordof> woo
dawkirst has joined #ruby
<shevy> hmm or rather, change a string
<havenwood> shevy: make: "mcCoffee" #=> "McCoffee"
<mordof> shevy: for the record, i barely looked through the strings section, i just bookmarked it for easy reference. most of it is common sense
<havenwood> shevy: in a single expression!
<mordof> shevy: i've been through all the pages on that site for ruby
anaeem___ has joined #ruby
<shevy> havenwood wat
anaeem1_ has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
<havenwood> shevy: cap first letter without downcasing the rest
dawkirst has quit [Remote host closed the connection]
<shevy> havenwood .upchar!!!
<shevy> do I have a variable?
<havenwood> shevy: nope
<mordof> "mcCoffee"[0].capitalize! lol
<mordof> >.>
<shevy> damn
<Mon_Ouie> That won't work
<mordof> haha, no i figured
<mordof> i'd have to replace it back in
<Mon_Ouie> "mcCooffe"[0] copies the first character in a new string object
<shevy> havenwood gsub?
<havenwood> shevy: well, only need to sub one char
<havenwood> gless
<mordof> i know - i'm just spouting out strange responses because i don't have this info memorized, or even really known yet
paulfm has quit []
<shevy> mordof ok you are given the string: string = "James Bond"
<mordof> >> "mcCoffee"[0] = "mcCoffee"[0].capitalize;
<eval-in> mordof => "M" (https://eval.in/143893)
<shevy> mordof how would you remove all vowels?
<mordof> "James Bond".consenants ? lol
<shevy> hmm
Guest41524 has quit [Changing host]
Guest41524 has joined #ruby
Guest41524 is now known as guyz
nateberkopec has joined #ruby
<mordof> rofl
<shevy> now there we found a method that class String actually does not have... at least not that I can see, but it is easy to build it yourself
tyll has joined #ruby
nanoyak has joined #ruby
<mordof> i know
mrdtt has quit [Remote host closed the connection]
<mordof> oh
<shevy> mordof actually one way was already mentioned here
<mordof> i have this in my own file, hold on
weems has quit [Read error: Connection reset by peer]
<shevy> I got an idea
<shevy> if you can name two ways, without showing the syntax, you passed
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<shevy> well perhaps 3 ways... but one is like an alias...
<mordof> well, the one.. there's a function to remove letters from a string
<shevy> it's hanmac style the last one
<shevy> yes
<mordof> so you could do "James Bond".removechars (conflict or w/e) ('aeiou') or whatever
<mordof> if it's arguments separate
<shevy> yes
<shevy> now what is the name of that method
<mordof> i can't find my file, lol
testcore has joined #ruby
<Mon_Ouie> String#delete
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yes
<shevy> Mon_Ouie passed
<mordof> haha
<Mon_Ouie> yay!
timonv has joined #ruby
<shevy> mordof ok, the other way that was mentioned was .sub or .gsub
<Mon_Ouie> sub wouldn't work (or it wouldn't help at least)
<shevy> true
paulfm has joined #ruby
<shevy> mordof what means the g before sub in .gsub() ?
<shevy> it's also easy to remember
<mordof> is it the same as the g in regex?
<Hanmac> >> "mcCoffee".sub(/\A./,&:upcase)
<eval-in> Hanmac => "McCoffee" (https://eval.in/143894)
<shevy> mordof hmm not sure, what does the g in regex mean?
<flughafen> >> puts "hello"
<eval-in> flughafen => hello ... (https://eval.in/143895)
senayar has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
<shevy> flughafen!!! why are you here and not in #berlin ???
tacos1de has quit [Remote host closed the connection]
<Hanmac> xD
<Mon_Ouie> Regex is the contraction of 'regular expresion'. Not the same.
<s2013> ich bin ein berliner
senayar has joined #ruby
<flughafen> shevy: gute frage
sambao21 has joined #ruby
SegFaultAX has quit [Excess Flood]
<mordof> Mon_Ouie: wha?
<flughafen> haha ;)
tyll has quit [Ping timeout: 276 seconds]
<s2013> g stands for gangsta shevy
tacos1de has joined #ruby
SegFaultAX has joined #ruby
s3ri0us has joined #ruby
<mordof> it's the modifier that says to match all occurances, isn't it?
<mordof> or is that the one to match accross newlines..
<shevy> mordof yeah
<mordof> i forget
<mordof> ok
<shevy> mordof I remember it as "g" for "global"
<shevy> .sub replaces only once
<mordof> m is newlines i think?
<Mon_Ouie> Oh, that's what you mean. I thought you meant the g in the regexp word.
jxf has quit [Ping timeout: 255 seconds]
<mordof> Mon_Ouie: no
<Mon_Ouie> There's no g modifier in Ruby either
<mordof> well
<mordof> sub vs gsub
Torgoton has joined #ruby
<shevy> yeah!
<mordof> there isn't one in php either - it's preg_replace vs preg_replace_all
<mordof> but the concept is there
metamaterial has quit [Ping timeout: 272 seconds]
St_Marx has quit [Ping timeout: 272 seconds]
<shevy> mordof kk you passed the #ruby tutorial for today but more difficult ones will await you in the future
<apeiros> //m makes . match \n too, without it, . is [^\n]
<mordof> lol
testcore has quit [Remote host closed the connection]
<shevy> we may even have to combine different ruby classes together ...
Kricir has quit [Remote host closed the connection]
sparrovv has joined #ruby
<shevy> ah since you know regexes mordof or probably have to do some for your html parser anyway
<mordof> apeiros: right - that's what m is
sambao21 has quit [Client Quit]
<shevy> mordof you can use: "foobar"[/YOUR_REGEX_HERE/]
<mordof> shevy: nope, not using regular expressions for a parser
<shevy> !!!
<mordof> that's a poor way of doing it
<shevy> this is the strangest first project of any ruby beginner to have had
<mordof> well, it's one way
<mordof> state machines!
<shevy> you may end up like apeiros
<mordof> ?
<shevy> when he was young, he went on to create his own programming language
<mordof> lol
<wallerdev> string[/regex/, num] is the most useful method in ruby haha
<mordof> like i said, i've already done that
<shevy> nowadays, he has gotten fat and lazy thanks to rails :(
<mordof> xD
<Torgoton> Where would be the place to go for help with Ruby's OpenSSL library?
sambao21 has joined #ruby
<Hanmac> Narnia?
<shevy> lol
pwh_ has joined #ruby
<mordof> wallerdev: what's the num arg for?
<shevy> Torgoton dont think there is a special place; #ruby is for all ruby related questions, if it is a bug then the bug tracker at bugs.ruby-lang.org/projects/ruby-trunk
pwh_ has quit [Client Quit]
<wallerdev> gets the grouped value
senayar has quit [Ping timeout: 252 seconds]
pwh has quit [Ping timeout: 276 seconds]
tacos1de has quit [Remote host closed the connection]
<Torgoton> Not sure if it's a bug. I'm trying to encrypt a file with a public key. Having trouble creating the key from the file. "Not enough data" error.
<wallerdev> >> "apple stem"[/\w+ (\w+)/, 1]
<eval-in> wallerdev => "stem" (https://eval.in/143896)
<Torgoton> The file imports fine into GPG4Win, fwiw.
<mordof> wallerdev: oh nice!
tacos1de has joined #ruby
<mordof> wallerdev: that is super handy
<flughafen> mordof: what arey ou trying to do?
<wallerdev> yeah i use it all the time for pulling info out of a string
<mordof> flughafen: i'm making an html parser
mansi has quit [Remote host closed the connection]
tyll has joined #ruby
<mordof> flughafen: that's not really anything to do with what's been discussed though
Kricir has joined #ruby
<flughafen> ok
<baweaver> >> "apple stem".scan(/\w+/)[1]
<eval-in> baweaver => "stem" (https://eval.in/143899)
<wallerdev> an SGML parser? ;)
<mordof> flughafen: shevy just went on some spree with a quiz, lol
<flughafen> spree is in #berlin
<wallerdev> using scan there is a waste haha
mansi has joined #ruby
sambao21 has quit [Client Quit]
<baweaver> >> "apple stem".split[1]
<eval-in> baweaver => "stem" (https://eval.in/143900)
St_Marx has joined #ruby
<wallerdev> >> "stem"
<eval-in> wallerdev => "stem" (https://eval.in/143901)
metamaterial has joined #ruby
mansi_ has joined #ruby
<wallerdev> if you want to just simplify the problem to something irrelevant lol
heath_ has quit [Ping timeout: 240 seconds]
nanoyak has quit [Read error: Connection reset by peer]
<apeiros> >>
<eval-in> apeiros => nil (https://eval.in/143902)
<apeiros> who cares
danman_ has joined #ruby
<shevy> hmm
<Mon_Ouie> >> "stem"
<eval-in> Mon_Ouie => "stem" (https://eval.in/143904)
<shevy> >> nil
<eval-in> shevy => nil (https://eval.in/143905)
dapz has joined #ruby
<Mon_Ouie> Even aster and produces the correct result!
nanoyak has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mordof> can i not do when "<" and !recordTag in ruby?
<Hanmac> shevy my system has a big problem ... Xorg uses more ram than my firefox ... oO
<mordof> thought there was full expression capabilities for when..
<shevy> Hanmac weird
<shevy> Hanmac play more flash games, then your firefox will explode
<Mon_Ouie> Yes but "<" and !recordTag will evaluate to !recordTag (because "<" is always true in a boolean expression)
<Hanmac> shevy i think you dont get my problem ... firefox currently uses 3.7GB ram ... Xorg uses MORE!! ...
tyll has quit [Ping timeout: 252 seconds]
Musashi1 has joined #ruby
<mordof> Mon_Ouie: oh, i see
<mordof> lol, that makes a lot of sense.. i'm just having a dumb moment
<Mon_Ouie> !recordTag is one of false, true or nil. Because it appears in a `when`, it will be compared to the object in your case using ===. Unless your object happens to be one of those three it won't work.
* mordof nods
<shevy> Hanmac lol
mansi has quit [Ping timeout: 276 seconds]
<shevy> Hanmac you are playing a flash porn game then
<mordof> Mon_Ouie: understood. the full expression compares, for whatever reason i derped and thought just the first portion would compare, haha
<Hanmac> currnetly not ... only horting tabs
echevemaster has quit [Ping timeout: 265 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
testcore has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
crystal77 has quit [Quit: Computer has gone to sleep.]
razrunel_ has quit [Remote host closed the connection]
crzrcn has joined #ruby
ascarter has joined #ruby
soahccc has quit [Quit: Legalize it!]
bluOxigen has joined #ruby
aspires has quit []
<Torgoton> My OpenSSL issue gist: https://gist.github.com/torgoton/11407854
kaspergrubbe has joined #ruby
seuros has quit [Ping timeout: 240 seconds]
andrewjanssen has joined #ruby
<mordof> shevy: there - got all tags identified, and right shortly will have all tags with hierarchy and data identified. total lines of code will probably be under 100
pen has joined #ruby
dh64 has joined #ruby
<mordof> organized, easy to understand.. it's actually not that hard
Mon_Ouie has quit [Ping timeout: 276 seconds]
tyll has joined #ruby
<mordof> well, later on it starts getting a bit complex. oh well
kobain has joined #ruby
reset has joined #ruby
sdouglas has quit [Remote host closed the connection]
papercode has joined #ruby
<flops> http://pastebin.com/GBg2RnC4 Anyone got an idea why the SQL is off? Line 7 shows the format... However I can't insert anything.
razrunelord has joined #ruby
Solnse has quit [Quit: Leaving.]
<Hanmac> flops seems like the array was not inserted correctly into the sql string
<flops> But how can that happen? I am using ActiveRecord and appearently the table is created correctly
m3nTe has quit [Ping timeout: 276 seconds]
pen has quit [Ping timeout: 240 seconds]
Speed has joined #ruby
Soda has quit [Read error: Connection reset by peer]
* Hanmac point and laugh at ActiveShit
dawkirst has joined #ruby
<Hanmac> flops: did you try to ask at #rubyonrails ? AR & AS are their children ... they should take care of it
<flops> Hanmac: I didn't but I will ask there. Thanks for your help
mehlah has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cina has joined #ruby
<lagweezle> flops: Show us your class. :p
senayar has joined #ruby
mikecmpbll has joined #ruby
* lagweezle peers at the example.
chipotle has quit [Quit: cya]
<lagweezle> word = Word.create(:text => "Test")
<lagweezle> word.save()
<lagweezle> What if you did that?
mrmargolis has quit [Remote host closed the connection]
<flops> lagweezle: same
mrmargolis has joined #ruby
ascarter has joined #ruby
* lagweezle shrugs.
<lagweezle> Been waaaay too long for me, it seems. :(
<flops> lagweezle: why?
timonv has quit []
<flops> man, that's really weird. I have no idea why it does not work
dawkirst has quit [Ping timeout: 264 seconds]
<lagweezle> I remember none of the syntax it seems. Although if you look at http://guides.rubyonrails.org/active_record_querying.html you may not have actually defined any of the active record fields for the class at all.
<lagweezle> You've declared that there are fields which need accessors, but you haven't told ActiveRecord about them.
crystal77 has joined #ruby
<flops> so I have to use has_one, has_many and so on? because earlier I followed this tutorial http://mherman.org/blog/2013/06/08/designing-with-class-sinatra-plus-postgresql-plus-heroku/#.U1_S3qZ8wp5 and it worked without me doing that
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
carlyle has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
benzrf|offline is now known as benzrf
<wallerdev> flops: you shouldnt use attr_accessor for activerecord properties
<lagweezle> Yeah. I dunno. Looks like things should work.
<wallerdev> the accessors will be automatically defined for you and youre just overwriting them with your own
momomomomo has joined #ruby
<flops> wallerdev: thanks, I will try that.
nari has quit [Ping timeout: 252 seconds]
WishBoy- has quit [Remote host closed the connection]
Es0teric has quit [Remote host closed the connection]
bklane has quit [Quit: Leaving...]
<flops> wallerdev: thanks a lot. That worked
<wallerdev> np
carraroj has joined #ruby
carlyle has quit [Ping timeout: 246 seconds]
simono has joined #ruby
sparrovv has quit [Remote host closed the connection]
codabrink has quit [Read error: Connection reset by peer]
verto has quit [Ping timeout: 245 seconds]
picca has joined #ruby
picca has left #ruby [#ruby]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
Es0teric has joined #ruby
verto has joined #ruby
predator217 has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
timgauthier has joined #ruby
sparrovv has joined #ruby
dhoss has quit [Remote host closed the connection]
codabrink has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
sgen has quit [Quit: Leaving]
sambao21 has quit [Client Quit]
Trynemjoel has quit [Quit: Trynemjoel]
afex has joined #ruby
fgo has joined #ruby
dblessing has quit [Quit: dblessing]
senayar has joined #ruby
instantaphex has quit [Quit: leaving]
_djbkd has joined #ruby
s3ri0us is now known as s3ri0us|away
blueOxigen has joined #ruby
nolic has quit [Quit: Lost terminal]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
mib_mib has joined #ruby
User740 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
andy___ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
andy___ has joined #ruby
User740 has quit [Client Quit]
dangerousdave has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
mcrmfc has quit [Quit: mcrmfc]
codeFiend has quit [Quit: codeFiend]
kirun has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
<mib_mib> hi - trying to make a gem - i put everything in a lib/ folder and added a .gemspec file with the correct stuff, and did gem build my-gem.gemspec which says successfuly, and then gem install my-gem which works, then in irb when i do require 'my-gem' it says cannot load such file -- 'my-gem' - any ideas?
alem0lars has joined #ruby
<Senjai> mib_mib: Do you have a lib/my-gem.rb?
<Stalkr_> mib_mib: Have you added the lib files to the gemspec?
cina has quit [Quit: leaving]
<mib_mib> Senjai: it created a lib/my/gem.rb and a lib/my/gem/version.rb
_bart has quit [Ping timeout: 276 seconds]
<Stalkr_> mib_mib: You should use the name my_gem and not my-gem
predator117 has quit [Remote host closed the connection]
<Stalkr_> my-gem means it's an extension for my, which I guess is not true?
bean has joined #ruby
Kricir has quit [Remote host closed the connection]
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
flughafen has quit [Ping timeout: 252 seconds]
tylerkern has joined #ruby
<mib_mib> Stalkr_: okay - is there any way i can do this without renaming my github repo? kind of want to avoid that
<mib_mib> Stalkr_: or is it completely independent?
WillAmes has joined #ruby
Kricir has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has quit [Remote host closed the connection]
jottr has joined #ruby
<Mon_Ouie> It's completely independent. You can have a gem called foo and put all of your code in lib/bar.rb
<Stalkr_> mib_mib: The repo can still be named my-gem
<Mon_Ouie> You're just breaking conventions if you do that
rm_ has joined #ruby
yacks has quit [Quit: Leaving]
jimbauds has joined #ruby
<apeiros> it's a good idea to name your repo like your gem. and let your gem name follow conventions.
cover has joined #ruby
cover_ has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
<Stalkr_> I am trying to write an image download tool for 4chan. I was told to look at VCR for the API data, but how would I make a sure a thread didn't die, and I can download the images (to test they were actually downloaded)?
<wallerdev> doesnt vcr cache the responses so it never even contacts the server so it wouldn't matter if it died?
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> i don't think you need to/should use vcr to consume a json api
rm_ has quit [Read error: No route to host]
acrussell has left #ruby [#ruby]
<wallerdev> 4chan has a json api?
omosoj has quit [Ping timeout: 252 seconds]
cocotton has quit [Remote host closed the connection]
WishBoy has joined #ruby
rm_ has joined #ruby
<Stalkr_> wallerdev: Yes, for example http://a.4cdn.org/wg/thread/5777265.json -- toretore: I can cache the JSON reponse (see previous link), but I am not sure about the thread http://boards.4chan.org/wg/thread/5777265
poikon has quit []
momomomomo has quit [Quit: momomomomo]
pwh has joined #ruby
<wallerdev> thats pretty cool
cocotton has joined #ruby
<Stalkr_> My code talks with the domain, so I am not sure how it's supposed to talk with a cached version
cocotton has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
ktun has joined #ruby
cocotton has joined #ruby
<Stalkr_> wallerdev: Just append .json to any thread
s3ri0us|away is now known as s3ri0us
predator117 has joined #ruby
<toretore> i don't get what the problem is
pmd` has joined #ruby
carlyle has joined #ruby
<toretore> can't you just fetch the json, go through the list of images and download them?
Cache_Money has quit [Quit: Cache_Money]
andrewjf has joined #ruby
jheg_ has joined #ruby
<Stalkr_> toretore: The JSON doesn't actually contain the images, just data (such as file name and extension). I would have to cache both the thread and the JSON, not sure if that's possible
<Stalkr_> and then make my test speak with the cached version instead, which I am not sure is possible
rm_ has quit [Ping timeout: 252 seconds]
<toretore> oh, that kind of thread
tjsousa__ has quit [Ping timeout: 265 seconds]
blueOxigen has quit [Read error: No route to host]
senayar has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<toretore> are you writing tests for this?
senayar has joined #ruby
<Stalkr_> That was my plan, but only if it's actually possible
<toretore> that depends on exactly what it is you want to test
<Stalkr_> It's no problem to write tests for say the file name, comment or something, but the binary image itself.. I don't know
alem0lars has joined #ruby
<Stalkr_> Okay, an example:
<toretore> you can't test against the live 4chan server obviously and have it be predictable
<toretore> i say screw the tests
<toretore> just write the thing and see if it works
cover_ has joined #ruby
<Stalkr_> I want to test my download_thread method. It should create an image `out` and contain six images
carlyle has quit [Ping timeout: 246 seconds]
<Stalkr_> You don't think that's possible to do?
cover has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
pmd` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<toretore> i don't know enough about your code nor your project to have an opinion on that
jimbauds has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
_tpavel has joined #ruby
SilkFox has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Read error: No route to host]
bluOxigen has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
SilkFox has joined #ruby
paulfm has quit []
<pontiki> have you looked a webmock and vcr?
<pontiki> at*
Snarkz has joined #ruby
jottr has quit [Read error: Operation timed out]
<pontiki> assuming you testing a remote http service...
<pontiki> (for Stalkr_ )
<Stalkr_> pontiki: Yes, I mentioned VCR (and use either webmock or fakeweb). I still don't know how to utilize the library for my example though
ghr has quit [Ping timeout: 252 seconds]
<pontiki> you can't figure it out from the READMEs?
<Stalkr_> Nope
<pontiki> huh
_tpavel has quit [Client Quit]
<pontiki> i can't do much besides parrot the same info
<Stalkr_> Have you read my example?
alexju has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<pontiki> no
<pontiki> i just looked in
toastynerd has quit [Remote host closed the connection]
cescalante is now known as ce_afk
_tpavel has joined #ruby
<pontiki> but if you're trying to test code that deals with gathering data from remote web sites, those would be it
afex has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
_djbkd has quit [Remote host closed the connection]
<timgauthier> flops you thar?
jespada has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
sepp2k has joined #ruby
djbkd has joined #ruby
rmorello has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<Stalkr_> pontiki: I will try something and see if it actually works
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
ta has joined #ruby
mib_mib has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 252 seconds]
dstynchu_ has joined #ruby
benzrf is now known as benzrf|offline
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
timonv has joined #ruby
dstynchula has quit [Ping timeout: 255 seconds]
freggles has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
bthesorceror has quit [Remote host closed the connection]
omosoj has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bthesorceror has joined #ruby
jespada has joined #ruby
bthesorceror has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby
vpretzel is now known as vpretzel|1211
LostDatagram has quit [Quit: Bye :P - znc.in]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof> hmm
<mordof> will something like hash.each.strip work?
_bart has joined #ruby
<apeiros> mordof: no
<apeiros> .each without a block returns an Enumerator, and that doesn't have a strip method
<mordof> ah
<apeiros> array.each(&:strip) would work
<apeiros> hash.each(&:strip) would not work, because the each yields an array [key, value] which again, does not have strip
<Hanmac> but each(&:strip) does nothing ... you need eigher map(&:strip) or each(&:strip!)
sambao21 has joined #ruby
<baweaver> >> ['foo\n','bar\n'].map(&:strip)
<eval-in> baweaver => ["foo\\n", "bar\\n"] (https://eval.in/143936)
<baweaver> >> ['foo\n','bar\n'].map(&:chomp)
<eval-in> baweaver => ["foo\\n", "bar\\n"] (https://eval.in/143937)
<apeiros> ay, true.
<baweaver> odd
<apeiros> baweaver: '\n' is not a newline
rezzack has joined #ruby
<baweaver> fine fine
<mordof> i don't think strip or chomp would consider that, would it?
<Hanmac> so '\n' is a NaN ? "Not a Newline"? ;P
Squarepy has quit [Quit: Leaving]
paulfm has joined #ruby
<baweaver> no, literal eval
<baweaver> >> ["foo\n","bar\n"].map(&:chomp)
<eval-in> baweaver => ["foo", "bar"] (https://eval.in/143938)
<baweaver> >> ['foo\n','bar\n'].map(&:chomp)
<eval-in> baweaver => ["foo\\n", "bar\\n"] (https://eval.in/143939)
<mordof> i'm currently doing hash.each { |k, v| hash[k] = hash[k].strip } ... heh
<mordof> oh i guess it does, that's good to know
<baweaver> 2.1.1 #to_h
<apeiros> mordof: you could at least do v.strip
<mordof> apeiros: heh, true
dapz has joined #ruby
<Hanmac> mordof: hash.each_value(&:strip!)
<baweaver> that returns an array of values
<mordof> ooh
jxf has joined #ruby
<apeiros> Hanmac: only viable if mutating the values is ok, though
olivier_bK has joined #ruby
alvaro_o has joined #ruby
<baweaver> {a: "1\n"}.each_value(&:strip)
<mordof> that's what i'm doing though, so that's appropriate for this situation
jackneill has quit [Remote host closed the connection]
<baweaver> >> {a: "1\n"}.each_value(&:strip)
<eval-in> baweaver => {:a=>"1\n"} (https://eval.in/143940)
<mordof> hm
<Mon_Ouie> That's not the same as what your code was doing
<mordof> no?
<Hanmac> baweaver: you did something wrong ;P
<Mon_Ouie> Your code was creating new string objects, his mutates the existing one
<baweaver> >> {a: "1\n"}.each_value(&:strip!)
<eval-in> baweaver => {:a=>"1"} (https://eval.in/143941)
<baweaver> fine fine
cina has joined #ruby
<baweaver> probably should have used puts on it.
<lagweezle> Erm, suggestions for a gem to help in taking a web page and extracting data from it? I have a local copy of the html.
Kricir has quit [Remote host closed the connection]
<baweaver> nokogiri
<mordof> Mon_Ouie: right. well that's more efficient anyway and ends up being what i want
<baweaver> or grep
mcrmfc has joined #ruby
Kricir has joined #ruby
<Mon_Ouie> So if you got those string from somewhere and you use Hanmac's code, the change will be observable at other places in your code (potentially, at least)
mcrmfc has quit [Client Quit]
<mordof> right.. if i did hash.each { |v| v.strip! } it's teh same thing as what was proposed
<mordof> right
* mordof nods
<mordof> understood
fijimunkii has joined #ruby
razrunelord has quit [Remote host closed the connection]
<Mon_Ouie> Well that wouldn't work. It would be either 'each { |k, v|' or 'each_value { |v|'
<apeiros> example:
<baweaver> hash.map { |k,v| [k,v.strip] }.to_h
<baweaver> example ninja'd
<apeiros> >> x = "hello"; h = {"key" => x}; h.each_value(&:strip!); x
<eval-in> apeiros => "hello" (https://eval.in/143944)
<mordof> Mon_Ouie: oh right, because it comes back as an array
<apeiros> dang, I wanted to use upcase!
<apeiros> >> x = "hello"; h = {"key" => x}; h.each_value(&:upcase!); x
<eval-in> apeiros => "HELLO" (https://eval.in/143945)
<baweaver> >> hash.map { |k,v| [k,v.strip] }.to_h
<eval-in> baweaver => undefined method `map' for 394795786:Fixnum (NoMethodError) ... (https://eval.in/143946)
<apeiros> there :)
jespada has quit [Quit: Leaving]
jack_rabbit_ has joined #ruby
<Hanmac> imo Hash totally needs a map! method ... or a map method that returns a new Hash
<baweaver> >> {a: "1\n"}.map { |k,v| [k,v.strip] }.to_h
<eval-in> baweaver => {:a=>"1"} (https://eval.in/143947)
<baweaver> I mentioned it to Matz once.
<apeiros> Hanmac: yes, map_keys, map_values and map_pairs have been proposed
<baweaver> didn't really go far.
fgo has joined #ruby
<apeiros> but rejected by the core devs
* lagweezle gets to work.
<Hanmac> *sad face*
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dyreshark has quit [Quit: I just dont know what went wrong!]
jack_rabbit has quit [Ping timeout: 276 seconds]
<mordof> oh - everything is passed as reference right? there's no value copying in ruby?
<apeiros> mordof: not on the level you operate :)
dyreshark has joined #ruby
<mordof> definitely makes things more convenient
<apeiros> you pass around an opaque object
<Stalkr_> toretore: pontiki: I feel pretty stupid for not at least trying first. VCR seems to be awesome enough to include the JSON response as well, so it works perfectly
<mordof> js is all value copying unless you pass an object specifically, then it's a reference
<toretore> what
jack_rabbit_ is now known as jack_rabbit
dapz has joined #ruby
bradhe has quit [Remote host closed the connection]
<apeiros> I think in js it's irrelevant whether primitives are copied or not, as they're immutable anyway
<toretore> i've never seen js do that
razrunelord has joined #ruby
dapz has quit [Client Quit]
<toretore> it would be like ruby's immediate objects
LostDatagram has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<mordof> apeiros: technically yeah. though sometimes it would be nice to have a variable that's containing a number to be passed to a different scope and still modify the original
jonDeer has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
razrunelord has quit [Remote host closed the connection]
rokob has quit [Remote host closed the connection]
<toretore> that would be horrible
<mordof> toretore: why?
fgo has quit [Ping timeout: 252 seconds]
<apeiros> kills encapsulation
<toretore> unpredictable
<mordof> true
<toretore> kills babies too
cocotton has quit [Remote host closed the connection]
<mordof> so ruby doesn't behave this way i take it?
<toretore> no
bthesorceror has quit [Remote host closed the connection]
MindfulMonk has quit [Ping timeout: 252 seconds]
<mordof> ok - then i was misunderstanding what was happening with the code block
djbkd has joined #ruby
wallerdev has quit [Quit: wallerdev]
bthesorceror has joined #ruby
Xeago has joined #ruby
cocotton has joined #ruby
<apeiros> mordof: a block has a property which goes in that direction. it's a closure. but that's not what you use there.
cocotton has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
<apeiros> in the pieces above, the block is just used as an anonymous function, to which the method you call passes arguments.
cocotton has joined #ruby
Milly_Bays has joined #ruby
confounds has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
zz_jrhorn424 is now known as jrhorn424
* mordof nods
benzrf|offline is now known as benzrf
Musashi1 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
MindfulMonk has joined #ruby
<apeiros> closure means it knows about the surrounding lexical context and can manipulate it. example:
nickgartmann has quit [Quit: Connection closed for inactivity]
yokel has joined #ruby
<apeiros> >> x = 1; proc { x = 2 }.call; x
<eval-in> apeiros => 2 (https://eval.in/143959)
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
dapz has joined #ruby
<mordof> hmm
djbkd has quit [Ping timeout: 240 seconds]
<mordof> for something like a .each { |k, v| } the k, v are only within that scope though correct?
<apeiros> correct
bluOxigen has quit [Ping timeout: 252 seconds]
bthesorceror has quit [Ping timeout: 255 seconds]
dstynchula has joined #ruby
<mordof> and yet it still is aware of the variables of the outter context
pel_daniel has quit [Ping timeout: 265 seconds]
<apeiros> you can also explicitly mark non-argument locals as scope-local:
<apeiros> >> x = 1; proc { |;x| x = 2 }.call; x
<eval-in> apeiros => 1 (https://eval.in/143960)
<mordof> oh, interesting
Xeago has quit [Ping timeout: 265 seconds]
<apeiros> but since you shouldn't shadow variables anyway, that's rarely ever used
Parker0 has joined #ruby
<benzrf> apeiros: looks like smalltalk
<mordof> mhmm. i can only thing of one or two use cases where it would make sense
<apeiros> use a different name instead. makes the code much more readable.
<mordof> >> x = 1; proc { y = x; y += 2 }.call; x
<eval-in> mordof => 1 (https://eval.in/143961)
* mordof nods
_tpavel has quit [Quit: Leaving]
dstynchu_ has quit [Ping timeout: 276 seconds]
vpretzel|1211 is now known as vpretzel
carraroj has quit [Quit: Konversation terminated!]
eka has joined #ruby
nanoyak has joined #ruby
<Hanmac> mordof: there was a differnce betwenn 1.8 and newer, because in 1.8 there was no shadowing it was always overwriding ...
<apeiros> >> x = 1; proc { |x| }.call(2); x
<eval-in> apeiros => 1 (https://eval.in/143962)
<apeiros> 18>> x = 1; proc { |x| }.call(2); x
<eval-in> apeiros => 2 (https://eval.in/143963)
<Hanmac> >> $-w = true;x = 1; proc { |x| x = 2 }.call; x
<eval-in> Hanmac => 1 (https://eval.in/143964)
<apeiros> second one is 1.8 behavior
ephemerian has joined #ruby
nanoyak has quit [Client Quit]
Lewix has joined #ruby
<Hanmac> hm ok the warning is not visible with evalin
<Hanmac> i got " warning: shadowing outer local variable - x"
<mordof> apeiros: good to know :)
<apeiros> IMO not really
<apeiros> 1.8 is dead.
<apeiros> for good
fflush_ has quit [Quit: fflush_]
jrhe has joined #ruby
nanoyak has joined #ruby
<mordof> ah.. that's why 1.9.3 is the minimum normal use
<mordof> so if i end up on 1.8 i'm in trouble? xD
jxf has quit [Ping timeout: 265 seconds]
nanoyak has quit [Client Quit]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
carlyle has joined #ruby
djbkd has joined #ruby
fflush_ has joined #ruby
fflush_ has quit [Changing host]
fflush_ has joined #ruby
nanoyak has joined #ruby
Martxel_ has joined #ruby
rm_ has joined #ruby
fijimunkii has quit [Quit: Lost terminal]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kilk__ has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
elaptics is now known as elaptics`away
decoponio has quit [Quit: Leaving...]
Torgoton has quit [Read error: Operation timed out]
Shidash has quit [Ping timeout: 264 seconds]
mrnugget has joined #ruby
the_f0ster has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
Torgoton has joined #ruby
Martxel has quit [Ping timeout: 240 seconds]
jheg_ has quit [Quit: jheg_]
soulcake has quit [Read error: Connection reset by peer]
<mordof> &:symbol ends up turning into a block that's { |x| x.symbol } right?
confounds has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carlyle has quit [Ping timeout: 246 seconds]
jheg_ has joined #ruby
* mordof isn't quite sure what to call that
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<centrx> mordof, & calls to_proc on :symbol
<benzrf> mordof: well, it passes :symbol as the proc
<benzrf> *block
Martxel__ has joined #ruby
soulcake has joined #ruby
<centrx> mordof, that block is equivalent, ys
ghr has joined #ruby
toastynerd has joined #ruby
<apeiros> technically, & does not call to_proc on symbol
seuros has joined #ruby
<apeiros> foo(&var) tells ruby that var is to be treated as a block
monkegjinni has quit [Remote host closed the connection]
<apeiros> if var is not a Proc, ruby will call to_proc
moritzs has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
ndrei has joined #ruby
<mordof> ooh ok, that puts the pieces together, thanks
<apeiros> and since :symbol is not a Proc, it'll do :symbol.to_proc
<mordof> i was wondering internally how the difference between a block and a proc would be handled
mrnugget has quit [Client Quit]
* mordof nods
<apeiros> which in turn is defined as something similar to: def to_proc; proc { |x, *args| x.__send__(self, *args) }; end
<mordof> but if the & turns a proc into a block, that works
mansi_ has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
<apeiros> which is why :upcase.to_proc --> proc { |x| x.__send__(:upcase) } --> proc { |x| x.upcase }
Martxel_ has quit [Ping timeout: 240 seconds]
Kricir_ has quit [Remote host closed the connection]
mansi has joined #ruby
* mordof nods
bthesorceror has joined #ruby
<mordof> __send__ being similar in nature to js' .call i take it
sdouglas has joined #ruby
<apeiros> more like apply
<mordof> right
<apeiros> send invokes a method by name
dblessing has joined #ruby
Kricir has joined #ruby
<mordof> ooh right
<mordof> so x can still be a string or whatever
<mordof> nice :)
crystal77 has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
gheegh has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
<benzrf> >> 3.send :to_s
roadie has quit [Ping timeout: 240 seconds]
<benzrf> >> method = :to_s; 3.send method
<eval-in> benzrf => "3" (https://eval.in/143966)
bradhe has quit [Read error: Connection reset by peer]
srji has quit [Ping timeout: 252 seconds]
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
<gheegh> i typed this in #rails. .but it's really a ruby question.. If I've got a hash.. like this h = {"1"=>{"2"=>"Yay"}} and the keys for it in an array ["1", "2"].. how would I easily query h to get the "Yay" out?
<Mon_Ouie> inject(h, :[])
<apeiros> heh, :[], nice
<gheegh> trying.. :-)
bradhe has joined #ruby
bthesorceror has quit [Ping timeout: 255 seconds]
mansi has quit [Ping timeout: 265 seconds]
sailias has quit [Quit: Leaving.]
altatistic has joined #ruby
sailias has joined #ruby
razrunelord has joined #ruby
crystal77 has joined #ruby
alem0lars has quit [Quit: alem0lars]
altatist_ has joined #ruby
<gheegh> i'm clearly at the limit of my ruby.. :-) if the array is k = ["1", "2"]
seuros1 has joined #ruby
kilk__ has joined #ruby
relix has joined #ruby
altatist_ has quit [Client Quit]
jottr has joined #ruby
mansi has joined #ruby
<benzrf> gheegh: k.inject(h, :[])
simono has joined #ruby
<gheegh> :-) i was going backwards.. :-)
altatistic is now known as r0ast
<benzrf> do you know how inject works?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jxf has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
dpyzhov has left #ruby [#ruby]
r0ast has quit [Client Quit]
altatistic has joined #ruby
altatistic is now known as r0ast
davispuh has joined #ruby
seuros has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
Royalb15_1 has quit [Ping timeout: 264 seconds]
noop has quit [Read error: Operation timed out]
razrunelord has quit [Ping timeout: 276 seconds]
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
funburn has joined #ruby
davispuh has quit [Remote host closed the connection]
bthesorceror has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
michael_mbp has joined #ruby
ascarter has joined #ruby
r0ast_ has joined #ruby
wallerdev has joined #ruby
r0ast has quit [Client Quit]
r0ast_ has quit [Client Quit]
r0ast has joined #ruby
doodleha_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
apeiros has joined #ruby
r0ast_ has joined #ruby
anaeem___ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
doodlehaus has quit [Ping timeout: 276 seconds]
crystal77 has joined #ruby
Torgoton has left #ruby [#ruby]
davispuh has joined #ruby
r0ast has quit [Remote host closed the connection]
bthesorceror has quit [Ping timeout: 240 seconds]
r0ast_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<mordof> even after fiddling with it, having trouble understanding exactly what it's doing
r0ast has joined #ruby
<benzrf> mordof: hmm?
<benzrf> whats the issue here
toastynerd has joined #ruby
<mordof> in regards to gheegh's question
lurch_ has joined #ruby
<benzrf> u mean inject?
* mordof nods
<benzrf> it's just fold/reduce
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> inject is a smalltalk name for it
<wallerdev> lol
<gheegh> i got exactly what i wanted.. :-) working great.
srji has joined #ruby
ascarter has joined #ruby
<gheegh> thanks everyone!
<benzrf> in smalltalk, map is collect, find/detect, filter/select, inverse filter/reject, fold/inject
<benzrf> somebody likes being cut
nateberkopec has joined #ruby
<benzrf> e
lurch_ has quit [Client Quit]
<wallerdev> i always use reduce instead of inject for performance reasons
<benzrf> lele:
<benzrf> *lel
r0ast_ has joined #ruby
<benzrf> >> [].reduce
<eval-in> benzrf => nil (https://eval.in/143971)
<benzrf> huh
<benzrf> didnt know that was an option
jheg_ has quit [Quit: jheg_]
davispuh has quit [Read error: Connection reset by peer]
<wallerdev> >> ['benzrf is amazing'].method(:reduce).call(&lambda { |x| so_is_ewaller })
<eval-in> wallerdev => "benzrf is amazing" (https://eval.in/143972)
toastynerd has quit [Remote host closed the connection]
<benzrf> ewaller?
jheg_ has joined #ruby
<wallerdev> yeah thats me !
<wallerdev> my other irc name
<wallerdev> that i dont use here
r0ast has quit [Ping timeout: 240 seconds]
rokob has joined #ruby
<benzrf> kk
cocotton has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
chipotle has joined #ruby
<wallerdev> anyway no idea what that even does
<wallerdev> i guess the block is ignored
<Mon_Ouie> It's' ignored because the array has only one element
r0ast_ has quit [Ping timeout: 264 seconds]
<wallerdev> ah
<wallerdev> >> [1].reduce { aerjoiwejroweijr }
<eval-in> wallerdev => 1 (https://eval.in/143975)
omosoj has quit [Ping timeout: 276 seconds]
<Mon_Ouie> And if you don't specify an initial value for the accumulator, it uses the first element of the array and then applies the block while iterating over every other element
<wallerdev> interesting
<wallerdev> makes sense
cocotton has joined #ruby
kyb3r_ has joined #ruby
JBreit has joined #ruby
cocotton has quit [Remote host closed the connection]
<timgauthier> woah, i just did my first pull request on github! :O!
Bira_ has quit [Remote host closed the connection]
<wallerdev> link us
rudisimo has quit [Read error: Connection reset by peer]
<timgauthier> lol
<wallerdev> we'll review your code
cocotton has joined #ruby
<wallerdev> literally the first pull request for the repository
<timgauthier> I redesigned flops site
<timgauthier> first pull request for the repo
<timgauthier> first pull request i've ever done
<benzrf> timgauthier: nice :-O
<timgauthier> he posted a repo of his own blog for me, i redesigned it, and now i'm pulling it for him
michaeldeol has joined #ruby
<timgauthier> a preview
SegFaultAX has quit [Excess Flood]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<dideler|work> timgauthier: looks good
<wallerdev> ruby and php
banister has joined #ruby
<wallerdev> interesting
<benzrf> grose
<wallerdev> i cant imagine loving both haha
coderhs has quit [Ping timeout: 252 seconds]
<timgauthier> haha I wrote that :P
fgo has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bthesorceror has joined #ruby
<timgauthier> ok i'm done for the night
troyronda has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<timgauthier> i love the way things on this page work though http://timgauthier.com/flopska/2014/speedup-vagrant-execution-by-using-a-ramdisk/ the code boxes and the blockquote snugging up to the window edge on resize mmm yummy
SegFaultAX has joined #ruby
senayar has joined #ruby
<timgauthier> ok cya!
<mordof> oh that is nice
banisterfiend has quit [Ping timeout: 252 seconds]
<mordof> timgauthier: though when it's full width, it could use a tad bit more padding left
<mordof> the alignment is slightly off
Arkaniad has joined #ruby
<timgauthier> on the code blocks?
* mordof nods
sdouglas has joined #ruby
<timgauthier> oh good catch, yeah thats cause the pygments.css is literally just the github one.. i'll do that
<timgauthier> LATER!
<timgauthier> muahhah!
* mordof waves
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
carlyle has joined #ruby
funburn has quit [Quit: funburn]
fgo has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
troyronda has quit [Ping timeout: 276 seconds]
SubSignal has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby
dapz has joined #ruby
arietis has joined #ruby
thumpba_ has joined #ruby
Bira has joined #ruby
Arkaniad has quit [Ping timeout: 240 seconds]
dstynchu_ has joined #ruby
ce_afk is now known as cescalante
LastWhisper has joined #ruby
<LastWhisper> hey guys what does -1 : 1 mean in a 1 line if statement?
kpshek has joined #ruby
<hoelzro> LastWhisper: example?
<LastWhisper> i've got this big ass line pages.sort { |a,b| a.display != b.display ? (a.display && !b.display ? -1 : 1) : a.display ? a.position <=> b.position : a.title <=> b.title }
<LastWhisper> and im trying to break it down and make it readable
<hoelzro> that bit
<hoelzro> is the same as this:
jottr has quit [Quit: WeeChat 0.4.2]
<hoelzro> if a display && !b.display then -1 else 1 end
snooc has quit [Ping timeout: 265 seconds]
<hoelzro> by that, I mean a.display != b.display ? (a.display && !b.display ? -1 : 1
<hoelzro> it's called the ternary operator
<hoelzro> and using that many in sequence makes me cry.
kaspergr_ has joined #ruby
razrunelord has joined #ruby
dstynchula has quit [Ping timeout: 265 seconds]
banister is now known as banisterfiend
<LastWhisper> yeah hence the refactor :X
postmodern has quit [Quit: Leaving]
thumpba_ has quit [Remote host closed the connection]
<LastWhisper> Does the ( ) mean they are nested within it?
SubSignal has joined #ruby
<hoelzro> it's for precedence rules
<hoelzro> that code is basically "sort by display, then position, then title"
Cache_Money has joined #ruby
<hoelzro> in Perl I would do $a->display cmp $b->display || $a->position <=> $b->position || $a->title cmp $b->title
<hoelzro> but unfortunately (in this case), Ruby treats 0 as truthy
Bira has quit [Ping timeout: 276 seconds]
danijoo has quit [Read error: Connection reset by peer]
klaut has joined #ruby
djbkd has quit [Remote host closed the connection]
danijoo has joined #ruby
bthesorceror has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 252 seconds]
SegFaultAX has quit [Excess Flood]
kirun has quit [Quit: Client exiting]
srji has quit [Quit: das beste was ich in meinem leben tun kann ist andere menschen dazu zu bringen mich toeten zu wollen]
djbkd has joined #ruby
kaspergrubbe has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
Bira has joined #ruby
SegFaultAX has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
afex has joined #ruby
WishBoy has quit [Remote host closed the connection]
Bira_ has joined #ruby
jottr has joined #ruby
anaeem1_ has joined #ruby
omosoj has quit [Ping timeout: 264 seconds]
paulfm has quit []
benzrf is now known as benzrf|offline
kaspergr_ has quit [Ping timeout: 264 seconds]
s2013_ has joined #ruby
alexju has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
sailias has quit [Quit: Leaving.]
timgauthier has joined #ruby
binw has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
SHyx0rmZ has joined #ruby
ss__ has joined #ruby
kavinder has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
zach23 has joined #ruby
timgauthier has quit [Client Quit]
mrj has quit [Read error: Connection reset by peer]
testcore has quit [Ping timeout: 272 seconds]
s2013_ has quit [Ping timeout: 252 seconds]
dstynchula has joined #ruby
djbkd has quit [Remote host closed the connection]
workmad3 has joined #ruby
dstynchu_ has quit [Read error: Operation timed out]
Morkel has quit [Quit: Morkel]
JaTochNietDan has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
havenwood has quit [Remote host closed the connection]
mcrmfc has joined #ruby
havenwood has joined #ruby
wjlafrance has joined #ruby
djbkd has joined #ruby
<LastWhisper> sorry hoelzro got sidetracked
<hoelzro> np
nanoyak has quit [Quit: Computer has gone to sleep.]
danijoo has quit [Read error: Connection reset by peer]
testcore has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
danijoo has joined #ruby
twidx has quit [Quit: Connection closed for inactivity]
nanoyak has joined #ruby
cocotton_ has joined #ruby
testcore has quit [Client Quit]
<LastWhisper> what's the significance of <=>
ss__ has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
crucify_me has joined #ruby
Squarepy has joined #ruby
havenn has joined #ruby
<workmad3> LastWhisper: it's the minimal method interface required for implementing comparable objects
crucify_me has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
danshult_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Kricir has joined #ruby
SubSignal has quit [Remote host closed the connection]
havenn has quit [Client Quit]
danshultz has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
s2013 has quit [Disconnected by services]
<hoelzro> LastWhisper: it returns a value depending on the ordering of its two inputs
<hoelzro> usually -1, 0, or 1
<hoelzro> but sometimes it's <0, 0, or >0
s2013 has joined #ruby
andy___ has quit [Quit: Leaving...]
momigi has joined #ruby
cocotton has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
pskosinski has joined #ruby
cocotton_ has quit [Ping timeout: 276 seconds]
<n_blownapart> hi could anyone recommend an example of deep_clone, one slightly more complex than a fooBar example?
flops has quit [Quit: leaving]
bradhe has joined #ruby
dblessing has quit [Quit: dblessing]
sdouglas has quit [Remote host closed the connection]
n_blownapart is now known as crucify_me
<wallerdev> crucify_me: usually you have to implement your own deep cloning and copy the info you actually want to be copied
sdouglas has joined #ruby
<wallerdev> or serialize to json if you just need simple data
JaTochNietDan has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
<crucify_me> thanks wallerdev yeah I'm learning the differences between clone and deep clone and need to study something aside from a foobar example. noob here.
havenwood has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
bradhe has quit [Read error: Connection reset by peer]
bradhe_ has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
<wallerdev> basically just create a method deep_clone or something, and in that method you call deep_clone on all the attributes you want to clone recursively til you get to basic types
Es0teric has quit [Quit: Computer has gone to sleep.]
benzrf|offline is now known as benzrf
jgwong has joined #ruby
mark_locklear has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 252 seconds]
<crucify_me> ok wallerdev that is helpful insofar that I now know to clone up to parent classes, etc. right ? thanks
Spami has joined #ruby
<wallerdev> yeah
<workmad3> you need to be careful with cycle-detection when doing deep cloning
failshel_ has joined #ruby
jgwong has quit [Quit: leaving]
pskosinski has quit [Ping timeout: 272 seconds]
Bira_ has quit [Remote host closed the connection]
<crucify_me> I understand freezing to an immutable state and cloning and the differences in dupe. cycle detection? I only know the cycle method from a deck of cards example.
<crucify_me> *dup
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> crucify_me: let me show u what is meant
michaeldeol has joined #ruby
<workmad3> crucify_me: class A; attr_accessor :b; end; a = A.new; a.b = a
<workmad3> crucify_me: imagine deep-cloning that ;)
<benzrf> bah, workmad3 beat me to it
<Hanmac> workmad3: Marshal can do that ;P
jgwong has joined #ruby
tylerkern has joined #ruby
<LastWhisper> hey hoelzro
<crucify_me> benzrf: workmad3 wallerdev hmm .. what's that bit a.b = a ?
<workmad3> Hanmac: yeah, I didn't claim you couldn't... just that you need to be careful and have some form of cycle-detection or recognition that you've already cloned this item
<LastWhisper> is this implementation an aberration
<cschneid> Is there a "AND" version of Regexp.union, which is an OR?
<hoelzro> LastWhisper: yes?
ahawkins has joined #ruby
<LastWhisper> it was mostly a
<LastWhisper> "ihavenoideawhatimdoing.jpg"
<cschneid> Regexp.and(r1, r2, r3) makes sure all 3 match in that order on an input
<workmad3> crucify_me: setting the attribute 'b' on the instance to itself
ffranz has quit [Quit: Leaving]
Es0teric has joined #ruby
Nukepuppy has quit [Ping timeout: 240 seconds]
<hoelzro> ah =)
<hoelzro> it's not bad
failshell has quit [Ping timeout: 252 seconds]
<crucify_me> cool so I would apply deepClone to that ? workmad3
<LastWhisper> i can reup it on gist
<hoelzro> I'm betting there's a more idiomatic way to do it in Ruby, though
<LastWhisper> might be easier to comment
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<workmad3> cschneid: yes... /#{r1}#{r2}#{r3}/
<workmad3> cschneid: a.k.a. slapping the patterns together ;)
<cschneid> workmad3: I figured that one out, felt a bit odd doing interpolation like that :)
troyronda has joined #ruby
failshel_ has quit [Ping timeout: 240 seconds]
<LastWhisper> workmad3: you have any suggestions on how to improve my "readability solution" http://pastebin.com/dGK4PZgB
<banisterfiend> workmad3 hey :D
Es0teric has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
<workmad3> crucify_me: I'm trying to point out that if you tried a naieve deep-clone on that, where you simply clone all the attributes then you end up with infinite recursion when there's a 'cycle' and the same object appears multiple times in the clone
<workmad3> banisterfiend: o/
jgwong has quit [Client Quit]
<workmad3> LastWhisper: you start by not using the most horrific-looking pastebin out there ;)
kavinder has quit [Remote host closed the connection]
<reactormonk> how would you split a string and keep the character position of each splitted element?
<LastWhisper> ugh sorry haha
<LastWhisper> let me gist
wjlafrance has quit [Quit: This computer has gone to sleep]
<crucify_me> ok I copy that . thanks workmad3 !
Hanmac1 has joined #ruby
jgwong has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
nateberkopec has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
pskosinski has joined #ruby
<wallerdev> LastWhisper: wtf is that lol
SteveBenner09 has joined #ruby
<LastWhisper> exactly:(
relix has joined #ruby
jgwong has left #ruby [#ruby]
yubrew has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
<wallerdev> you know you can return an array to sort_by and itll try the next one if the first one is the same
<wallerdev> pages.sort_by { |p| [p.display, p.position, p.title] }
dvarrui has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
<LastWhisper> really?
nateberkopec has joined #ruby
St_Marx has joined #ruby
<wallerdev> yeah
nateberkopec has quit [Client Quit]
<LastWhisper> the initial code isnt mine
<LastWhisper> so i dont really understand it in it's entirety
<LastWhisper> liek i understand what it achieves, but now how it achieves it
kobain has quit [Ping timeout: 252 seconds]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
motto has joined #ruby
<workmad3> wallerdev: that isn't quite the same as the setup though
mcrmfc has quit [Ping timeout: 252 seconds]
<SteveBenner09> guys is there anyone who knows a lot about the issues surrounding gcc use in OSX 10.9
<wallerdev> haha well i was just guessing based on what it looked like
<wallerdev> didnt really look at what it was doing too long
<workmad3> wallerdev: it's subtly different ;)
mcrmfc has joined #ruby
<havenwood> SteveBenner09: Like what do you mean?
<wallerdev> i use os x
<SteveBenner09> I've noticed several cases where I run into problems building software because either the llvm/clang support is required or newer versions of gcc are not compatible
<workmad3> wallerdev: if left and right displays are the same, it should sort on position if display is true, and on title if display is false
dennus has joined #ruby
<SteveBenner09> like, I just failed to build nokogiri becase I was installing with gcc-4.8 installed with homebrew and can't for the life of me figure why, because the build output gets too vague
eavgerinos has joined #ruby
m8 has quit [Ping timeout: 265 seconds]
<SteveBenner09> it said some flags were not supported, then just failed without a description while linking some html_document.o file
<wallerdev> probably not building with gcc then
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> sounds like a clang error
<SteveBenner09> I just want to learn more about how these things function if I can
fgo has joined #ruby
<wallerdev> gcc is symlinked to clang on os x 10.9
<SteveBenner09> so this would necessitate knowledge about C compilers >.<
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<SteveBenner09> no way can I learn that in a day
kaspergrubbe has quit [Ping timeout: 252 seconds]
<SteveBenner09> I know, all you have to do is type 'gcc -v' :)
Nukepuppy has joined #ruby
<wallerdev> theres a flag you can pass to clang to ignore those errors
<wallerdev> thats what most people suggest doing
pel_daniel has joined #ruby
<SteveBenner09> wallerdev: thats what I found out, because I assumed it was the newer gcc tha twas causing hte issue; I use the CC env variable to build
<SteveBenner09> I built with the system gcc and it worked
kaspergrubbe has joined #ruby
x1337807x has joined #ruby
<LastWhisper> thanks workmad3! That is what I was looking for
<LastWhisper> I think your rephrasing of left/right also helped me understand better
<LastWhisper> :)
ahawkins_ has joined #ruby
<workmad3> LastWhisper: np :)
ahawkins_ has quit [Read error: Connection reset by peer]
ahawkins1 has joined #ruby
marr has quit []
<SteveBenner09> wallerdev: interesting, I did not know that. Where can I find out more info? Can you suggest a set of terms to google
ahawkins has quit [Disconnected by services]
ahawkins1 is now known as ahawkins
<SteveBenner09> I posted the issue with nokogiri in the google group: https://groups.google.com/forum/#!forum/nokogiri-talk
x1337807x has quit [Client Quit]
<SteveBenner09> it should appear soon
fgo has quit [Ping timeout: 264 seconds]
dennus has quit []
<wallerdev> if you pastebin the error i can probably find where i found the flag before
<wallerdev> but i dont recall the flag off the top of my head right now
<SteveBenner09> Luckily I can build with system gcc, but I'm dying to know the underlying reason why there are so many issues with gcc :) I guess that's a personal dilemma haha
CMoH has joined #ruby
<wallerdev> clang just fails if you pass it an unrecognized parameter since it doesnt want to build something incorrectly
olivier_bK has quit [Ping timeout: 246 seconds]
<wallerdev> so if you use some gcc specific flag that clang doesnt support then it will fail to build
andrewjanssen has quit [Quit: Leaving...]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Remote host closed the connection]
<SteveBenner09> right; I'm assuming this is a nokogiri issue since I didn't alter anything but the gcc version
<SteveBenner09> pastebin: http://pastebin.com/BYw3qkDp
cescalante is now known as ce_afk
andrewjanssen has joined #ruby
senayar has quit [Read error: Connection reset by peer]
<SteveBenner09> gem make output: http://pastebin.com/reRpi9kE
nateberkopec has joined #ruby
senayar has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<wallerdev> SteveBenner09: yeah found it
<wallerdev> ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GemName
AlexRussia has quit [Remote host closed the connection]
<wallerdev> such a long flag haha
Es0teric has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
testcore has joined #ruby
kaspergrubbe has quit [Ping timeout: 255 seconds]
x1337807x has quit [Client Quit]
wjlafrance has joined #ruby
imkmf has joined #ruby
<SteveBenner09> Hmm, there appears to be a lot of helpful information here: http://stackoverflow.com/questions/14128298/homebrew-gcc-llvm-and-c11/16241608#16241608
nateberkopec has quit [Ping timeout: 240 seconds]
<SteveBenner09> wallerdev: wow, nice catch
<SteveBenner09> thanks for digging that up
<wallerdev> np
<SteveBenner09> I definitely thought it had to do with building gems because it stopped on the 'building nokogiri libraries' part
pwh has quit []
moritzs has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
fflush_ has quit [Quit: fflush_]
mercwithamouth has joined #ruby
danman_ has quit [Quit: danman_]
kaspergrubbe has joined #ruby
sambao21 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
shock_one has quit [Ping timeout: 264 seconds]
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
eavgerinos has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
afex has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
JBreit has left #ruby ["Leaving"]
St_Marx has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 255 seconds]
St_Marx has joined #ruby
nfk has joined #ruby
soheil has joined #ruby
jheg_ has quit [Quit: jheg_]
charliesome has joined #ruby
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
xvikvi has quit [Quit: Page closed]
crystal77 has quit [Quit: Computer has gone to sleep.]
Nukepuppy has quit [Ping timeout: 252 seconds]
evenix has quit [Remote host closed the connection]
crystal77 has joined #ruby
crystal77 has quit [Client Quit]
jamto11 has joined #ruby
nateberkopec has joined #ruby
evenix has joined #ruby
AlexRussia has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
AlexRussia has joined #ruby
bradhe_ has quit [Remote host closed the connection]
jonr22 has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
n0n3 has joined #ruby
momomomomo has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
testcore has quit [Ping timeout: 272 seconds]
kpshek has quit []
ghr has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
Arkaniad has joined #ruby
aspires has quit []
<SteveBenner09> hahahaha Stallman
<CMoH> hello. anybody here familiar with the thin web server? can it be made to log via syslog?
gheegh has quit [Quit: Zzzzzz]
<havenwood> CMoH: Thin::Logging.logger = SyslogLogger.new
<benzrf> SteveBenner09: http://rms.sexy/
<CMoH> havenwood, thanks! but where would i write that?
<mary_synthesizin> hi :)
<mary_synthesizin> i had a question regarding this line i hope someone can help me
<SteveBenner09> CMoH: in your config.ru I imagine
<mary_synthesizin> devices_cfg.each {|configuration| configuration.network_device.associate_with_environment(nil) }
ghr has quit [Ping timeout: 255 seconds]
<SteveBenner09> or your main app ruby file
<benzrf> mary_synthesizin: ?
<SteveBenner09> benzrf: that made my day holy shit
nateberkopec has quit [Quit: Leaving...]
<SteveBenner09> I was just lol'ing at Stallman's epic message prefix
<mary_synthesizin> if the relationship of network_device is stale and I am getting undefined method `associate_with_environment' for nil:NilClass
bradhe has joined #ruby
<mary_synthesizin> how can i go about this
<SteveBenner09> stallman is my hero
<mary_synthesizin> around a stale relationship
lmickh has quit [Remote host closed the connection]
x77686d has joined #ruby
mjsmith2 has quit []
jamto11 has quit [Remote host closed the connection]
<SteveBenner09> is that mt. fuju???
Squarepy has quit [Quit: Leaving]
<SteveBenner09> lol
yubrew has joined #ruby
jobewan has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
SilkFox has quit [Ping timeout: 252 seconds]
geggam has quit [Remote host closed the connection]
doodleha_ has quit [Remote host closed the connection]
afex has joined #ruby
carlyle has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
troyronda has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<natewalck> Any idea what could cause this? https://gist.github.com/natewalck/0d6e5510ac4704d27e10
<natewalck> if I do gem list
<natewalck> I see zendesk_acpi listed
<natewalck> zendesk_api*
troyronda has joined #ruby
<natewalck> but I cannot require it via irb
motto has quit [Quit: Sto andando via]
<wallerdev> maybe you have multiple ruby versions installed
<wallerdev> or thats not the name of the file that needs to be required
agarie has quit [Remote host closed the connection]
jheg_ has joined #ruby
northfurr has joined #ruby
<natewalck> I do have multiple versions
bthesorceror has joined #ruby
<natewalck> this is ubuntu
<SteveBenner09> natewalck: try typing `gem env` on the command line
dawkirst has joined #ruby
<natewalck> SteveBenner09: Ugh!
<natewalck> how do I change it?
<natewalck> I need it to be 1.9.1
yubrew has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: This computer has gone to sleep]
<SteveBenner09> check the paths to see if they are in order
<SteveBenner09> well, what did you install ruby with
arquebus has joined #ruby
<natewalck> apt-get
aspires has joined #ruby
<CMoH> ty SteveBenner09, havenwood. now... let me read about what config.ru may be
<SteveBenner09> I would recommend using a ruby manager
momomomomo has joined #ruby
zach23 has quit [Quit: zach23]
<natewalck> Is there a simple way to point gem at a different version of ruby?
jrhorn424 is now known as zz_jrhorn424
<natewalck> I'd like to move this to a standalone environment going forward
<wallerdev> you should install ruby 2
ua has quit [Quit: Leaving]
<natewalck> but for now it is proof of concept
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
meatherl_ has quit [Remote host closed the connection]
troyronda has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
<havenwood> natewalck: update-alternatives --config ruby
sambao21 has quit [Ping timeout: 252 seconds]
<natewalck> havenwood: that is already done
<natewalck> see above paste
heftig has joined #ruby
<havenwood> natewalck: update-alternatives --config gem
<natewalck> ahh
<SteveBenner09> CMoH: you are actually looking at Rack in this case, which is the software Thin uses as configuration
<natewalck> aha!
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dawkirst has quit [Ping timeout: 265 seconds]
<natewalck> havenwood: thanks!
<SteveBenner09> Thin seems to have very poor documentation, but actually that's because it's just basically several other software components wrapped together
testcore has joined #ruby
<natewalck> I think that will fix it, I just need to reinstall the gems now
<SteveBenner09> Rack is what determines the logger in most cases
aspires has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
<SteveBenner09> natewalck: I HIGHLY recommend chruby for a version manager, personally
<havenwood> chruby \o/
<SteveBenner09> haha
nfk has quit [Quit: yawn]
<natewalck> SteveBenner09: Yea
aspires has joined #ruby
<natewalck> I plan on it
<natewalck> I want a standalone env for this
<natewalck> as clearly apt managing ruby is a nightmare
<SteveBenner09> it has made my life less painful in many ways haha
<SteveBenner09> oh trust me, apt isn't the only one
ahawkins has quit [Read error: Connection reset by peer]
<SteveBenner09> you should develop on Mac OSX ..
<SteveBenner09> heh
<havenwood> CMoH: Rack Webserver (Unicorn Rainbows! Thin Puma Passenger Webrick Reel-Rack) -> Rack & Rack Middleware -> Rack Framework (Rails Sinatra NYNY Hobbit Cuba Ramaze Camping Scorched)
<SteveBenner09> as in, 'try developing on osx' and you'll see what I mean
<SteveBenner09> its also irksome
<momomomomo> SteveBenner09: natewalck You don't have to - you could run a virtual machine inside of Vanguard or something
<wallerdev> i love os x
<wallerdev> dont hate
<momomomomo> erm * Vagrant
<SteveBenner09> dude me too
vpretzel has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 240 seconds]
jnor has joined #ruby
vpretzel has joined #ruby
<natewalck> SteveBenner09: I developed on OS X
razrunelord has quit []
<natewalck> but am moving it to ubuntu
<natewalck> vm
s3ri0us has quit [Ping timeout: 252 seconds]
<SteveBenner09> but they only just got around to updating ruby in 10.9 for gods sake and they still can't figure out how to consolodate their own Ruby frameworks used in developer tools
<SteveBenner09> geez
jonr22 has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
<Stalkr_> When writing a Ruby gem, do I have to (in my Gem module file), require all lib/gem/* files manually?
jonr22 has joined #ruby
cover_ has quit [Remote host closed the connection]
aspires has quit [Client Quit]
andrewlio has quit [Quit: Leaving.]
<jnor> hmm why is this so difficult, thin refuses to start a pid, it start without any error (but it dosen't) and then when I stop it sats cant find thin.0.pid.. it can write to the pid folder.. this is killing me
<Stalkr_> Is it possible to do require_relative './gem/*'?
razrunelord has joined #ruby
nanoyak has joined #ruby
<SteveBenner09> Stalkr_: You can use `Dir.glob('../gem/*.rb')` to collect all the ruby files if you want
<SteveBenner09> or better, add the path to your $LOAD_PATHS
<SteveBenner09> which will make them available for requiring normally
<Stalkr_> Are there anything wrong with that or does gem developers do that as well?
Avahey_ has joined #ruby
SegFaultAX has quit [Excess Flood]
aspires has joined #ruby
SegFaultAX has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
ikaros has quit [Quit: Ex-Chat]
nanoyak has quit [Quit: Computer has gone to sleep.]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires_ has joined #ruby
nanoyak has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
nanoyak has quit [Read error: Connection reset by peer]
brutalbutler has joined #ruby
guardian` has joined #ruby
einarj has joined #ruby
pwh has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
pwh has quit [Max SendQ exceeded]
frem has joined #ruby
Adran has quit [Ping timeout: 258 seconds]
brutalbu1ler has quit [Ping timeout: 258 seconds]
dmarr has quit [Ping timeout: 258 seconds]
guardian has quit [Ping timeout: 258 seconds]
Port3M5[Work] has quit [Ping timeout: 258 seconds]
PhilK has quit [Ping timeout: 258 seconds]
ggherdov has quit [Ping timeout: 258 seconds]
Kruppe has quit [Ping timeout: 258 seconds]
pipework has quit [Ping timeout: 258 seconds]
rhys_ has joined #ruby
shtirlic has quit [Ping timeout: 258 seconds]
mburns has quit [Ping timeout: 258 seconds]
rhys has quit [Ping timeout: 258 seconds]
mburns has joined #ruby
franzip has quit [Quit: ...]
xiella has joined #ruby
aspires has quit [Client Quit]
jnor has quit [Ping timeout: 265 seconds]
nanoyak_ has joined #ruby
sambao21 has joined #ruby
<SteveBenner09> I think that's what youre looking for
PhilK_ has joined #ruby
The_Doctor has joined #ruby
PhilK_ is now known as PhilK
dvarrui has quit [Remote host closed the connection]
shtirlic has joined #ruby
dmarr has joined #ruby
pipework has joined #ruby
mcrmfc has quit [Quit: mcrmfc]
mengu has quit [Read error: Connection reset by peer]
fgo has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
pwh has joined #ruby
dapz has joined #ruby
Kruppe has joined #ruby
ggherdov_ has joined #ruby
troyronda has joined #ruby
Shidash has joined #ruby
<crucify_me> http://pastie.org/9125497 this is what I've boiled up to study deep_clone. obviously clueless...
hermanmunster has quit [Remote host closed the connection]
grzywacz has joined #ruby
Vovko has quit [Remote host closed the connection]
<crucify_me> anyone explain how I can get that to return infinite recursive behavior or somesuch? ^^
postmodern has joined #ruby
meatherly has quit [Remote host closed the connection]
<benzrf> ...
<benzrf> crucify_me: you're missing the point
fgo has quit [Ping timeout: 255 seconds]
<benzrf> 1. don't def b
<benzrf> attr_accessor does that
<benzrf> 2.
<benzrf> you need to say:
vpretzel has quit [Remote host closed the connection]
<benzrf> obj1.b = obj1
<benzrf> in order to induce a loop
<crucify_me> ok benzrf working.... thanks
dapz has quit [Client Quit]
arquebus has quit [Quit: Konversation terminated!]
<benzrf> :-)
dapz has joined #ruby
omosoj has joined #ruby
mansi has quit [Remote host closed the connection]
bakflash has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
jnor has joined #ruby
meatherly has joined #ruby
ahawkins has joined #ruby
jcs222 has quit [Ping timeout: 240 seconds]
sski has joined #ruby
saarinen has quit [Quit: saarinen]
<crucify_me> benzrf: this line is correct though? obj2 = DeepClone.clone obj1
troyronda has quit [Remote host closed the connection]
* benzrf shrugs
<benzrf> i dont know how deepclone works
ahawkins has quit [Read error: Connection reset by peer]
<crucify_me> in deep over my head ^^
<benzrf> haha
<crucify_me> thanks
meatherl_ has joined #ruby
george2 has quit [Remote host closed the connection]
<crucify_me> meatherl_: nice moniker
lbwski has quit [Ping timeout: 276 seconds]
mansi has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 240 seconds]
senayar has quit []
mary_synthesizin has quit [Remote host closed the connection]
jnor has quit [Quit: WeeChat 0.4.3]
troyronda has joined #ruby
thumpba_ has joined #ruby
meatherly has joined #ruby
zach23 has joined #ruby
<SteveBenner09> lol
sdouglas has joined #ruby
cherry_lin has joined #ruby
drago777 has quit [Ping timeout: 258 seconds]
<CMoH> havenwood, SteveBenner09, thanks - in the end i gave up; the rackup file seems to be fine for logging application output to syslog, not thin (as container)
troyronda has quit [Remote host closed the connection]
<CMoH> but learned a lot
newUser1234 has quit [Quit: Leaving...]
meatherly has quit [Remote host closed the connection]
billy_ran_away has quit [Ping timeout: 258 seconds]
cherry_l1n has quit [Ping timeout: 258 seconds]
<CMoH> ?
drago777 has joined #ruby
<SteveBenner09> CMoH unsure what you mean by that but okay.
AlexRussia has quit [Remote host closed the connection]
<SteveBenner09> thin is a server, rackup is a configuration interface for servers and applications
<CMoH> well, if say redmine crashes for some reason, the exception is logged in the thin log
<SteveBenner09> you want to configure the logger in either the rackup config file (.ru) or your actual app (.rb)
billy_ran_away has joined #ruby
AlexRussia has joined #ruby
<CMoH> which, without syslog, can't be transported on my admin server
<SteveBenner09> and you want to divert this from Redmine to your own script? or ..?
<CMoH> no, i don't have any script. i just want to get an email when the stuff crashes (which does happen)
Kricir has joined #ruby
crucify_me has quit [Remote host closed the connection]
<CMoH> and i have set up the email thing for syslog already centralized for N hosts
meatherl_ has quit [Ping timeout: 264 seconds]
<CMoH> what remains is to convince this thin to use syslog instead of a plain file
fluve has joined #ruby
clov3r has quit [Remote host closed the connection]
<SteveBenner09> have you seen this: https://papertrailapp.com/
<CMoH> redmine's logger can be set from some .rb file :D
nanoyak_ has quit [Read error: Connection reset by peer]
clov3r has joined #ruby
<CMoH> :) stopped reading after the word "Pricing" :D
troyronda has joined #ruby
funburn has joined #ruby
<SteveBenner09> lol it has a free
<SteveBenner09> what about nagios
nanoyak has joined #ruby
the_f0ster has joined #ruby
<SteveBenner09> you know that one right
<the_f0ster> is macruby a good solution to "bundle" a ruby program with deps as an executable ?
baweaver has quit [Remote host closed the connection]
<CMoH> well, tbh, this is the first program that i had no success making it syslog; first idea was to ask those that used it more than i had
<momomomomo> CMoH: Why not tell Thin to log to stdout and pipe that to syslog
<CMoH> nagios, yeah
<momomomomo> if that's truly what you're tyring to accomplish
<SteveBenner09> CMoH what about this one: http://logstash.net/
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<SteveBenner09> thats actually what I was looking for earlier.
<SteveBenner09> that is open source apache software
blackmesa has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
jtdowney has joined #ruby
troyronda has quit [Remote host closed the connection]
<CMoH> thanks - i'll look into it
<momomomomo> SteveBenner09: this is neat
centipedefarmer has joined #ruby
clov3r has quit [Ping timeout: 255 seconds]
thumpba_ has quit [Remote host closed the connection]
<CMoH> momomomomo, piping the thin command through logger only logs the initial command output (like 'Staring blah'). next thin somehow forks or whatnot and the real server is started with a different stdout
cmoneylulz has joined #ruby
<SteveBenner09> yeah I haven't used it but am highly interested and impressed with their demo video. Sorry ignore papertrail haa, I was looking for logstash initially
<the_f0ster> any suggestions on going from ruby code -> executable on mac
<SteveBenner09> I was making suggestions for that because you seem less accustomed to developing the internals of ruby server softwaer
<SteveBenner09> you can configure Thin to do that but i haven't used redmine myself so not sure where to help out there
<CMoH> no, i don't know ruby :D
spider-mario has quit [Remote host closed the connection]
<SteveBenner09> the_f0ster: yes, you can create a simple executable from a gem: http://robdodson.me/blog/2012/06/14/how-to-write-a-command-line-ruby-gem/
<CMoH> well, thanks a lot for your interest - i'll take it another go when my mind is a bit more fresh
troyronda has joined #ruby
<the_f0ster> SteveBenner09: sorry, native executable
troyronda has quit [Remote host closed the connection]
<the_f0ster> need to install on a computer that wont need ruby tools installed
<SteveBenner09> ok
<SteveBenner09> that's platform -dependnet
kevind has quit [Quit: kevind]
roadie has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
andrewjanssen has quit [Quit: Leaving...]
caiges has joined #ruby
kevind has joined #ruby
mikemac has joined #ruby
crazymykl has quit [Read error: Connection reset by peer]
arubincloud has quit []
vpretzel has joined #ruby
carlyle has joined #ruby
andrewjanssen has joined #ruby
rm_ has quit [Remote host closed the connection]
danman_ has joined #ruby
rm__ has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
danman_ has quit [Client Quit]
andrewjanssen has joined #ruby
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
nateberkopec has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vpretzel has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 264 seconds]
carlyle has quit [Ping timeout: 246 seconds]
andrewjanssen has quit [Client Quit]
jheg_ has quit [Quit: jheg_]
jtdowney has quit []
momigi has quit [Remote host closed the connection]
SteveBenner09 has quit []
ephemerian has quit [Quit: Leaving.]
snath has quit [Ping timeout: 252 seconds]
Xiti has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Remote host closed the connection]
WillAmes has quit [Ping timeout: 276 seconds]
AlexRussia has joined #ruby
cina has quit [Quit: leaving]
crzrcn has quit [Quit: Leaving.]
vpretzel has joined #ruby
fuhgeddaboudit has joined #ruby
mengu has quit [Remote host closed the connection]
fgo has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
m00nlight_ has quit [Quit: Konversation terminated!]
Guedes0 has joined #ruby
sparrovv has quit [Remote host closed the connection]
instantaphex has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
Jakee`__ has quit [Quit: Connection closed for inactivity]
wjlafrance has joined #ruby
m00nlight has joined #ruby
Bira has joined #ruby
soheil has quit [Remote host closed the connection]
nisstyre has joined #ruby
soheil has joined #ruby
arubin has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
MatthewsFace has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
kilk__ has quit [Quit: Leaving]
sdouglas has quit [Remote host closed the connection]
kilk_ has joined #ruby
einarj has quit [Remote host closed the connection]
vpretzel has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
MattStratton has joined #ruby
meatherly has joined #ruby
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
osvico has joined #ruby
tkuchiki has joined #ruby
saarinen has joined #ruby
Vovko has joined #ruby
zz_jrhorn424 is now known as jrhorn424
sambao21 has quit [Quit: Computer has gone to sleep.]
Kricir has quit []
sdouglas has joined #ruby
kevind has quit [Quit: kevind]
Kricir has joined #ruby
endash has quit [Quit: endash]
klaut has joined #ruby
<shevy> test
endash has joined #ruby
monkegjinni has quit [Ping timeout: 265 seconds]
pel_daniel has left #ruby [#ruby]
snath has joined #ruby
WillAmes has joined #ruby
baroquebobcat has quit [Ping timeout: 240 seconds]
<arubin> F
klaut has quit [Remote host closed the connection]
dstynchula has quit [Remote host closed the connection]
olivier_bK has joined #ruby
agarie has joined #ruby
momomomomo has quit [Quit: momomomomo]
endash has quit [Client Quit]
LostDatagram has quit [Ping timeout: 264 seconds]
aspires_ has quit []
<shevy> what is the proper way to add documentation to gem-based projects on rubygems.org ?
instantaphex has quit [Read error: Operation timed out]
bbloom has joined #ruby
saarinen has quit [Quit: saarinen]
<havenwood> shevy: There isn't one right way. YARD, TomDoc, RDoc or nodoc are options. Some info here: http://guides.rubygems.org/make-your-own-gem/#documenting-code
<shevy> hmm
<shevy> ok
anaeem1 has quit [Remote host closed the connection]
SCommette has joined #ruby
<crome> balls
AlexRussia has quit [Remote host closed the connection]
AlexRussia has joined #ruby
razrunelord has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Toordog has quit []
andrewjanssen has joined #ruby
freerobby has quit [Quit: Leaving.]
mikemac is now known as crazymykl
predator117 has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
gheegh has joined #ruby
aspires has joined #ruby