apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 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
graft_ is now known as graft
sdelmore has joined #ruby
combusean has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
dpswireless has quit [Remote host closed the connection]
MrWharfsnort has quit [Ping timeout: 264 seconds]
IceDragon_ has quit [Ping timeout: 252 seconds]
d34th4ck3r has joined #ruby
IceDragon_ has joined #ruby
jimmyhoughjr has joined #ruby
toastynerd has joined #ruby
vpretzel has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Olipro has joined #ruby
rm__ has quit [Remote host closed the connection]
nanoyak has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
papercode has joined #ruby
baweaver has joined #ruby
ce_afk is now known as cescalante
brunops has quit [Ping timeout: 240 seconds]
sunya7a has quit [Ping timeout: 252 seconds]
b1205_ has quit [Ping timeout: 252 seconds]
gabrielh has left #ruby [#ruby]
testcore has quit [Quit: [BX] Time wasted: 8 millenia 6 centuries 1 decades 5 years 8 months]
arrubin has joined #ruby
n_blownapart has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
samuel02 has joined #ruby
lethe has joined #ruby
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
omosoj has joined #ruby
zorak_ has quit [Remote host closed the connection]
b1205 has joined #ruby
<n_blownapart> hi there are two approaches here for the fibonacci sequence. the first one I get. the second one I (still) don't get. something about a temp assignment. thanks: https://gist.github.com/anonymous/cfe05ebda55b44c51777
<centrx> n_blownapart, you mean a, b = b, a + b ?
nanoyak has quit [Quit: Computer has gone to sleep.]
samuel02 has quit [Ping timeout: 265 seconds]
lethe has quit [Ping timeout: 252 seconds]
jhulten has quit [Remote host closed the connection]
cescalante is now known as ce_afk
<n_blownapart> centrx: yeah I'm confused by the assignment there ; it doesn't seem to work like the multiple assignments on line 16.
reactormonk has joined #ruby
timonv has joined #ruby
<centrx> n_blownapart, the right side is evaluated first, then assigned to the left side, so no need for an explicit temp variable
<n_blownapart> hmm. centrx what would be another way to write that line out, in longhand fashion ?
nanoyak has joined #ruby
<centrx> temp = [a, a + b]
<centrx> a, b = temp
simoz111115 has quit [Ping timeout: 252 seconds]
<centrx> n_blownapart, it is implicitly doing an array on the right side
ddv has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dreamer3 has quit [Ping timeout: 240 seconds]
tjsousa_____ has quit [Quit: Computer has gone to sleep.]
<n_blownapart> centrx: one sec trying to make sense of it.
goleldar has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 252 seconds]
dwayhs has quit [Quit: Computer has gone to sleep.]
andrewjanssen has quit [Quit: Leaving...]
oo_ has joined #ruby
pietr0 has quit [Quit: pietr0]
<n_blownapart> centrx: summa is just an accumulator, right?
senayar_ has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
Olipro has joined #ruby
JBreit has joined #ruby
<centrx> n_blownapart, yeah
<centrx> # Create sum of even Fibonnaci numbers
ddv has joined #ruby
nikolavp has joined #ruby
zz_karupa is now known as karupa
JBreit has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
senayar has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
<n_blownapart> centrx: yeah thanks so this part: temp = [a, a + b] ; a, b = temp I don't follow how that is implicitly created .. and also the second line a,b = temp
Es0teric has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d34th4ck3r has quit [Quit: zzz]
<centrx> n_blownapart, That is an example of it being explicit
<centrx> a, b = a, a + b is implicit
<sdelmore> I've been trying to build Ruby 2.1.2 for a while with no luck in mavericks, it always asks if openssl is installed (it is with brew).  Any tips on how to get Ruby 2.1.2?  Is there a known issue with Mavericks?  I have tried a bunch of different tips from google searches but none of them seem to work.
<sdelmore> 5:30
<sdelmore> The error is always "The Ruby openssl extension was not compiled. Missing the OpenSSL lib?"
d34th4ck3r has joined #ruby
Guest13053 is now known as ixx
<havenwood> sdelmore: did you try --with-opt-dir like i mentioned in rom?
<ericwood> sdelmore: not that I'm of any use, but what are you using to install it?
tris has joined #ruby
<n_blownapart> centrx: yeah that I get
rm__ has joined #ruby
<centrx> n_blownapart, that is just how commas work in assignment statements
<havenwood> sdelmore: e.g.: ./configure --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"
charliesome has joined #ruby
<sdelmore> havenwood: didn't see your message in rom for some reason. I will try it now.
<n_blownapart> centrx: are you fed up with this ? I'm missing something here.
brunops has joined #ruby
<havenwood> sdelmore: bottom example shows compiling against brew libs: https://github.com/postmodern/chruby/wiki/Ruby#install-212
<centrx> no, I am well fed but not fed up
<n_blownapart> centrx: nice !
andrewjanssen has joined #ruby
oo_ has joined #ruby
chrisseaton has quit []
nateberkopec has quit [Quit: Leaving...]
sepp2k has quit [Read error: Connection reset by peer]
<n_blownapart> centrx: well in the first example, a points to an array and I understand the use of a[-2] + a[-1] . but I can't visualize how the basic math and the array works on line 19.
except has quit [Ping timeout: 255 seconds]
brunops has quit [Ping timeout: 276 seconds]
<sdelmore> havenwood: I'm actually not getting past the openssl part, installing the ca certs. Openssl has been giving me fits for months in various forms, I really hate that library.
<havenwood> sdelmore: maybe give ruby-install a try, it's flexible and will compile against brew libs: https://github.com/postmodern/ruby-install#readme
<centrx> n_blownapart, a and b are just the last two fibonacci numbers. It only keeps track of the last two
<havenwood> sdelmore: mm, the openssl cert issues really are unfortunate
<centrx> n_blownapart, temp = [b, a + b]; a = temp[0]; b = temp[1]
<jimbow> (in /Users/admin/Documents/Learn Ruby/learn_ruby-master)
<jimbow> rake aborted!
<jimbow> /Users/admin/Documents/Learn Ruby/learn_ruby-master/Rakefile:2
<jimbow> undefined method `gem' for main:Object
<jimbow> (See full trace by running task with --trace)
<jimbow> ???
<sdelmore> Is there any way to just get a working version, or does it have to be compiled? I am reading tons of issues (with few fixes) on how to build it but it makes me wonder, does distribution have to be tied to compilation? Or is there an already compiled version I can get somewhere?
<centrx> jimbow, Use gist.github.com
chrisseaton has joined #ruby
lethe has joined #ruby
<centrx> sdelmore, I bet you have the openssl binary package installed, but the compiler needs the source/header files
axilla has joined #ruby
chrisseaton has quit [Client Quit]
<sdelmore> Been dying to try out Ruby 2.1 for a while now. 2.1.0 never worked, then 2.1.1, but I kept figuring soon it would be fixed, now with 2.1.2 I still can't build it and am looking for an alternative.
<centrx> sdelmore, I don't know what that's called in brew, but elsewhere it would be openssl-dev
<sdelmore> Could be, I just did brew install openssl. Is that the wrong way to go?
chrisseaton has joined #ruby
chrisseaton has quit [Client Quit]
<sdelmore> Ok, I'll look around and see what I can find.
<havenwood> sdelmore: did you?: brew tap raggi/ale && brew install openssl-osx-ca
<sdelmore> I did, it failed.
<havenwood> sdelmore: any issues in?: brew doctor
<sdelmore> brew tap worked, install openssl-osx-ca threw errors. Let me try it again and I will see what they are.
<havenwood> sdelmore: what'd it fail with?
<havenwood> k
Rahul_Roy has quit [Quit: Connection closed for inactivity]
axilla has quit [Ping timeout: 258 seconds]
<n_blownapart> centrx: ok down the line we have 89, 144, 233 in the sequence. How would that look in the array and the a, b, and temp assignments as you have it?
ce_afk is now known as cescalante
Hobogrammer has quit [Ping timeout: 240 seconds]
<centrx> at first, a = 89, b = 144
Riking has quit [Quit: ZNC - http://znc.sourceforge.net]
jimmyhoughjr has quit [Quit: jimmyhoughjr]
<centrx> then a, b = b, a + b means: a =(set) 144(b); b = 89(a) + 144(b)
Es0teric has joined #ruby
<centrx> n_blownapart, it's like a rolling window, at first the window shows 89, 144
<sdelmore> havenwood: IPS mode not supported.
<sdelmore> openssl directory not found
<sdelmore> make: *** [install] Error 1
<n_blownapart> ok...
<centrx> n_blownapart, then it gets shifted up (using addition by definition of Fib sequence)
<n_blownapart> what is the (set) notation ?
<n_blownapart> centrx:
<centrx> I just wanted to clarify
<centrx> everything in parentheses there is not part of the Ruby
nateberkopec has joined #ruby
<centrx> since I said at first, a = 89 when maybe I should have said at first a == 89
lw has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<n_blownapart> yeah ok I'm going to work on that . many thanks centrx
Riking has joined #ruby
<sdelmore> openssl seems screwed up, just running openssl —version returns "FIPS mode not supported".
<centrx> You are welcome
codeurge has joined #ruby
<j_mcnally> Are there any awsome frameworks for ncurses in ruby? Ive been using rbcurses but even it is a bit hackish.
<ericwood> they're all a bit hackish :(
<benzrf> curses!
<j_mcnally> lol gotcha. ok rbcueses seems ok, it give alot of ui primatives but makes a lot of assumptions to :/
<j_mcnally> thanks!
thomasxie has joined #ruby
skysploit has joined #ruby
marcdel has joined #ruby
cescalante is now known as ce_afk
vlad_starkov has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<EasyCo> Could this small sum iteration be done more efficiently: https://gist.github.com/trev/880d18597511e3d1dd20
<wallerdev> in terms of performance?
<wallerdev> or less code?
<centrx> EasyCo, inject would be more consice, but probably the same speed
<EasyCo> wallerdev: A bit of both.
ffranz has joined #ruby
<centrx> EasyCo, If there are very few elements where t.success == true then it could be faster to select those out of the array before adding
<centrx> EasyCo, but what you have there is probably the fastest for the general case
<wallerdev> then yeah id probably do select + reduce
marcdel has quit [Ping timeout: 258 seconds]
Hobogrammer has joined #ruby
<EasyCo> Cool thanks.
dik_dak has joined #ruby
orriols has quit [Ping timeout: 255 seconds]
<ericwood> is there a channel for rbenv?
yfeldblum has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
x1337807x has joined #ruby
Hobogrammer_ has joined #ruby
<havenwood> ericwood: nope
<havenwood> ericwood: #rvm or #chruby :P
<ericwood> :(
<jpic> hi all, ruby noob here, where can i read the source code for line 5 of this script ? http://dpaste.com/0J61J4D/
<ericwood> I'm getting weird build errors
<havenwood> ericwood: and we'll just heckle you about shims
<ericwood> havenwood: so chruby is what I need?
maletor has quit [Quit: Computer has gone to sleep.]
chipotle has joined #ruby
<sdelmore> havenwood: if you do openssl —version do you get a version number? All I get is FIPS mode not supported.
Royalb15 has quit [Read error: Connection reset by peer]
<havenwood> ericwood: it's a good option for switching rubies
orriols has joined #ruby
<ericwood> havenwood: what about with multiple projects with lots of gems?
<havenwood> sdelmore: openssl version
<havenwood> sdelmore: OpenSSL 0.9.8y 5 Feb 2013
<havenwood> ericwood: yeah, good option
Hobogrammer has quit [Ping timeout: 252 seconds]
<ericwood> havenwood: I'll give it a shot, then
<ericwood> kinda getting screwed over right now
nanoyak has joined #ruby
<sdelmore> havenwood: Thanks. I can't seem to get openssl to uninstall or update, but at least it seems like the issue isn't really with ruby.
<havenwood> sdelmore: :O
<centrx> jpic, Find the files for the Kitchen gem on your local machine, or find them on github/bitbucket/etc
<sdelmore> Maybe I'll have to go to docker or something to be able to get working.
mjsmith2 has joined #ruby
snath has quit [Ping timeout: 252 seconds]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ari-_-e has joined #ruby
<ericwood> fuck
brandonjmckay has quit [Quit: Leaving.]
<jpic> centrx: thanks, found them, but didn't find the source code for define_vms: https://github.com/test-kitchen/test-kitchen/search?q=define_vms&ref=cmdform
smathieu has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
<jimbow> okay i have enough
<jpic> tbh i don't know about the :: syntax, i googled for it but google sucked at finding the right man page
Tricon has quit [Quit: Leaving...]
nanoyak has quit [Client Quit]
<havenwood> sdelmore: well, not 2.1.2, but you could use rvm's prebuild 2.1.1 binary for 10.9: http://rvm.io/binaries/osx/10.9/x86_64/
yubrew has joined #ruby
<havenwood> sdelmore: or Tokaido
d34th4ck3r has quit [Quit: zzz]
moted has quit [Quit: moted]
danshultz has joined #ruby
robustus has joined #ruby
<havenwood> sdelmore: which also uses SM Framework to build a statically linked precompiled binary: https://github.com/tokaido/tokaidoapp#readme
lw has quit [Quit: s]
rm__ has quit [Remote host closed the connection]
<havenwood> (also 2.1.1)
thomasxie has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
danman has joined #ruby
<ari-_-e> jpic: :: is for accessing constants
aspires has quit []
<ari-_-e> so that line accesses the Vagrant constant inside of Kitchen
yubrew has quit [Ping timeout: 258 seconds]
<havenwood> sdelmore: or yeah docker, i need to take a look at that ;)
eka has joined #ruby
aspires has joined #ruby
danman has quit [Client Quit]
<j_mcnally> ericwood: i switch to chruby i like it ok
<ari-_-e> class and module definitions both create constants
eka has quit [Client Quit]
<centrx> jpic, I'm not able to find define_vms anywhere
dorei has joined #ruby
jumblemuddle has quit [Quit: Death]
jumblemuddle has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
mjsmith2 has quit [Remote host closed the connection]
aspires has quit []
danman has joined #ruby
danman has quit [Client Quit]
ascarter has joined #ruby
bradhe has quit [Remote host closed the connection]
alexju has joined #ruby
sdelmore has quit [Quit: Leaving.]
fgo has joined #ruby
ffranz has quit [Quit: Leaving]
senayar_ has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
hgl has joined #ruby
rm_ has joined #ruby
ce_afk is now known as cescalante
ericmathison has quit [Quit: leaving]
<queequeg1> is there a good rails newbie channel on freenode?
maletor has joined #ruby
<queequeg1> #rails is invite only
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<robert_> so is it possible to retrieve a list of locals in a particular binding/context/whateverit'scalled?
<havenwood> queequeg1: #rubyonrails just requires nick registration
<queequeg1> thanks
Mdgd has quit [Quit: Leaving]
<havenwood> queequeg1: /msg NickServ REGISTER password youremail@example.com
segfalt has quit [Quit: Connection closed for inactivity]
<havenwood> robert_: #local_variables
fgo has quit [Remote host closed the connection]
<robert_> so, eval("local_variables", binding) ?
subbyyy has quit [Ping timeout: 240 seconds]
lethjakman has quit [Ping timeout: 255 seconds]
lethjakman has joined #ruby
doodlehaus has joined #ruby
wallerdev has quit [Quit: wallerdev]
supermarin__ has joined #ruby
<robert_> (havenwood)
<havenwood> robert_: hem
axilla has joined #ruby
mjs2600 has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 252 seconds]
hamakn has quit [Remote host closed the connection]
raspberryfan has joined #ruby
Advocation has joined #ruby
axilla has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 276 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rylee_ is now known as rylee
snath has joined #ruby
<robert_> that's so weird; it doesn't get local variables inside the class.. hm.
Spami has quit [Quit: This computer has gone to sleep]
benzrf is now known as benzrf|offline
Megtastique has quit []
Advocation has quit [Ping timeout: 252 seconds]
sptx00 has joined #ruby
freerobby has joined #ruby
andrewjanssen has joined #ruby
doodlehaus has quit [Remote host closed the connection]
jamto11 has joined #ruby
krz has joined #ruby
s2013 has joined #ruby
doodlehaus has joined #ruby
p8952 has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby
larissa has joined #ruby
yfeldblum has joined #ruby
orriols has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
danshultz has quit [Remote host closed the connection]
noob101 has joined #ruby
<noob101> Hello ruby community.
<noob101> I have a question like always.
codeurge has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
danshultz has joined #ruby
<shevy> go
<noob101> What does it mean when you put this symbol -> ` $ ` in front of a variable. Example: ` $a `
<shevy> you make it a global variable
<robert_> https://ideone.com/DifSu8 -- bleh, this is as good as it's going to get; nobody supports ruby 2.0+ yet, wrt online "test your ruby" sites.
<j_mcnally> noob101: global
<noob101> Hi shevy.
andrewjanssen has quit [Quit: Leaving...]
<shevy> didn't you ask that before noob101? ;)
<noob101> What is special about global, is there any new features or some sort?
havenn has joined #ruby
<j_mcnally> noob101: it can be accessed anywhere
<shevy> this variable is available everywhere
cescalante is now known as ce_afk
kenneth has joined #ruby
timonv has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
<noob101> j_mcnally: I don't get it.
<noob101> j_mcnally: New rubyist, be easy with me please sorry.
<shevy> a variable has a scope
<j_mcnally> noob101: Say you have some sort of outbound communication client.... you could declare one instance and use it in any other instace / class
<noob101> Scope, hmm.
havenwood has quit [Remote host closed the connection]
<j_mcnally> $a = PushMessageBroker.new(blah)
<j_mcnally> then anywhere u could call
<j_mcnally> $a.sendMessage("Hello world")
<noob101> can you tell me more about global variable please?
<j_mcnally> i consider globals to be poor form tho
Valesk_ has joined #ruby
<noob101> Oh ok.
<j_mcnally> i dont know how others feel
<robert_> shevy: hai
Soda has quit [Remote host closed the connection]
<j_mcnally> better off with a singleton class
<centrx> Generally do not use global variables at all.
<j_mcnally> if u must
ixti has quit [Ping timeout: 258 seconds]
<j_mcnally> Globals are messy especially if they are Mutable
n_blownapart has quit []
yubrew has joined #ruby
<centrx> It is good for things like $debug or $global_config (global and immutable)
<robert_> I prefer to pretend they don't exist. :p
<noob101> What are "singleton classes" O_O
<j_mcnally> i used one breifly to expose an component that was a rack application and a service
oo_ has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
<j_mcnally> but deprecated it in favour of calling it directly from the rack interface via HTTP
<j_mcnally> noob101: a singleton class is a hybrid static / non static class that manages a single instance of itself
<j_mcnally> Someclass.getInstance().do_something
codeurge has joined #ruby
<j_mcnally> get instance will either return an existing instance declared statically or create a new one.
<robert_> noob101: A singleton is an object that can only exist once, hence the name SINGLEton.
sensen has joined #ruby
<j_mcnally> I prefer doubletons however
timonv has quit [Ping timeout: 252 seconds]
<noob101> Ah ok robert_ , thanks.
<j_mcnally> you never know when you need a 2nd one
<noob101> Thanks too j_mcnally
Shidash1 has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
<robert_> j_mcnally: or a tenth.
<j_mcnally> decatons are nice
yubrew has quit [Ping timeout: 240 seconds]
<shevy> hi robert_
radic has joined #ruby
<j_mcnally> but ive never needed one personally
s2013 has quit [Ping timeout: 252 seconds]
<robert_> how goes, shevy
<shevy> noob101 what is a global variable
<noob101> shevy ummmmm a global variable is.
<noob101> shevy: a variable that can be accessed anywhere in a program?
<noob101> I tried.
<shevy> noob101 yes but why would you want to have that?
<noob101> shevy: No, I was looking at some code. I don't know the big significance of it anyway. Bleh.
<shevy> k I will ask you again some time later
phinfonet has quit []
codeurge has quit [Quit: Quit.]
freerobby has quit [Quit: Leaving.]
radic_ has quit [Ping timeout: 240 seconds]
<ari-_-e> noob101: where are you learning from?
<noob101> ari-_-e: The koans, my mentor and websites like codecademy. However tbh, I am working on this assignment for a possible job, I don't user codecademy and stuff everyday.
<noob101> I usually work on my project to practice my programming skills.
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noob101> I develop a 21 blackjack game, I did that to work on my programming skills, I am working on it right now.
<robert_> shevy: https://ideone.com/DifSu8 -- bleh, this is as good as it's going to get; nobody supports ruby 2.0+ yet, wrt online "test your ruby" sites.. I'm trying to get a list of variables used by MyThunkTarget.work; any ideas?
jmeeuwen_ has joined #ruby
jmeeuwen has quit [Read error: Connection reset by peer]
dorei has quit []
jmeeuwen_ is now known as jmeeuwen
Es0teric has quit [Quit: Computer has gone to sleep.]
mattmcclure has quit [Quit: Connection closed for inactivity]
<shevy> robert_ I have no idea what's going on there
<ari-_-e> noob101: languages often have features that shouldn't be used very often
<shevy> I only use .instance_variables most of the time
<shevy> >> Kernel.local_variables
<eval-in__> shevy => [] (https://eval.in/155489)
<ari-_-e> noob101: that's useful when there actually is a legitimate reason to use them, but it's unfortunately also a tempting honeypot for new programmers
_justin has joined #ruby
<ari-_-e> global variables in ruby is one of these features
jimbow has quit [Ping timeout: 252 seconds]
<noob101> ari-_-e: what's so inappropriate about using Global Variables? Does it mess up your program like explain to me why you shouldn't really use it.
<ari-_-e> noob101: well, why were you confused about why you would want to have a global variable?
codeurge has joined #ruby
<centrx> noob101, Proper namespacing is important for proper code organization, avoiding bugs, and making software that can interoperate with other libraries.
rylee is now known as Rylee
<shevy> noob101 it is leaky, it leaks into everywhere, when you use code written by other people, their global variables can interfere
<noob101> ari-_-e: I was just asking what a global variable was, I was reading some code online. see -> http://www.tutorialspoint.com/ruby/ruby_loops.htm
<shevy> noob101 imagine if we all use global variables
<shevy> if I use: $config
<shevy> and you in your code also use $config
<shevy> and ari-_-e also uses $config
<shevy> then determine what is going on
<ari-_-e> noob101: hmm, that code is not very idiomatic
<centrx> noob101, Yeah, don't use that site
<shevy> yeah it sucks, noob101 if you learn from stupid sites you will hurt yourself
<j_mcnally> ^ hehe
<noob101> I don't know :(
<centrx> No problem!
toretore has quit [Quit: This computer has gone to sleep]
<noob101> Fine fine I will order a book. I am waiting till my birthday to come.
<centrx> noob101, Check out Ruby Koans or Ruby Monk!
<noob101> I downloaded ruby koans.
<shevy> noob101 you don't need a book, you need the ability to slowly think
<centrx> both free
<j_mcnally> yeah thats bad form, but i suppose in their defense that program is very simple lol.... but demonstrates bad ideas
<noob101> Books = no good?
<shevy> books are alright
<centrx> books are good too
<shevy> I liked the pickaxe in 2004
<j_mcnally> books are outdated quickly
<centrx> Depends on how you like to learn
<shevy> yeah
<j_mcnally> it would be like buying a computer.... its gonna be out of date in a few years
ta_ has joined #ruby
<j_mcnally> s/years/weeks
maletor has quit [Quit: Computer has gone to sleep.]
<centrx> noob101, http://pragprog.com/book/ruby4/programming-ruby-1-9 (The Pickaxe) is a good book
<centrx> noob101, You can also use the old first edition, free online, http://ruby-doc.com/docs/ProgrammingRuby/
<j_mcnally> i bought a rails book once, by the time i was ready to use it its was like Rails 3.0 had just come out and everything in the book was 2.x
<noob101> Psss, can I get the free pdf to the pick axe book.
<centrx> Still covers all the major things, if there might be a few kinks
<j_mcnally> noob101: thats neat piracy.......
<centrx> noob101, There is one, I found it somewhere, but I forget where it is
<noob101> centrx: Aw ok, it's ok but thanks.
kenneth has joined #ruby
ta has quit [Ping timeout: 265 seconds]
_justin has quit [Quit: _justin]
kies has quit [Ping timeout: 240 seconds]
<noob101> I wish there was the free pdf of the pick axe book, that would be so nice for a new rubyist who wants to become to the ruuuby community.
<centrx> noob101, The old version is actually fine, but you may run into differences since 1.9 (old first edition is Ruby 1.6, current Ruby is 2.1, big changes were in Ruby 1.9)
<centrx> That can be more problematic for noob 101 styles
<noob101> So the link you gave me to the book, that book 1.9, 2.0 is good right?
<centrx> noob101, Yes
<noob101> Cool.
<noob101> Alrighty thanks centrx
yxhuvud has quit [Ping timeout: 240 seconds]
<noob101> Question
<noob101> If I download an ebook, will I be able to still read the book?
rOOb has quit [Ping timeout: 258 seconds]
SCommette has joined #ruby
lyanchih has joined #ruby
rOOb has joined #ruby
JasmeetQA1 has joined #ruby
JasmeetQA has quit [Ping timeout: 240 seconds]
Avahey_ has joined #ruby
Shidash1 has quit [Ping timeout: 252 seconds]
agent_white has quit [Quit: brb]
jamto11 has quit [Remote host closed the connection]
eka has joined #ruby
eka has quit [Client Quit]
<centrx> noob101, You mean if you pay for the ebook do you get the paper copy with it free?
jgrevich_ has quit [Quit: jgrevich_]
lyanchih has quit [Quit: lyanchih]
dik_dak has quit [Quit: Leaving]
skyspl0it has joined #ruby
lyanchih has joined #ruby
robbyoconnor has joined #ruby
kies has joined #ruby
<noob101> I need help.
BeingUntoDeath has joined #ruby
binaryhat has quit [Quit: Leaving]
ylluminarious has joined #ruby
<noob101> centrx: no, I am saying if I download an ebook will it still work on my computer or does it work only for tablet or something?
mercwith1mouth has joined #ruby
rm__ has joined #ruby
moneydouble1 has joined #ruby
skysploit has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
radic has quit [Disconnected by services]
Xeago_ has joined #ruby
radic_ has joined #ruby
skysploit has joined #ruby
terrell_t has joined #ruby
XenoWolf_ has joined #ruby
<noob101> How can I store a random something in a variable and how a I able to refresh the variable so it will get a new value prior to where it gets it's random thing from?
Avahey__ has joined #ruby
deric_skibotn_ has joined #ruby
csmrfx_ has joined #ruby
r0bby has joined #ruby
<centrx> noob101, I'm sure it works on a regular computer, but I've never
<centrx> noob101, It says the ebook comes in three formats. one of which is PDF
<noob101> Like if that variable was in a loop and I want a local variable to get a new value everytime, a new random value.
s2013 has joined #ruby
<noob101> centrx: Oh ok, thanks.
robbyoconnor has quit [Ping timeout: 252 seconds]
<centrx> noob101, rand() or rand(5) e.g.
chihhsin1wego has joined #ruby
zeroXten_ has joined #ruby
<centrx> noob101, use irb to test it (REPL console)
justinmcp_ has joined #ruby
<noob101> centrx: Good idea. Thank you sir.
parus_ has joined #ruby
xargoon_ has joined #ruby
krzkrz has joined #ruby
NukePuppy has joined #ruby
axisys_ has joined #ruby
predator217 has joined #ruby
chipotle has quit [Quit: cya]
alexju_ has joined #ruby
george2|chakra has joined #ruby
saltsa has joined #ruby
wuest_ has joined #ruby
lotherk has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
rm_ has quit [Read error: Connection reset by peer]
Avahey_ has quit [Ping timeout: 265 seconds]
mercwithamouth has quit [Read error: Connection reset by peer]
Avahey__ is now known as Avahey_
supermarin__ has quit [Quit: Computer has gone to sleep.]
Azure_ has joined #ruby
supermarin__ has joined #ruby
Azure has quit [Disconnected by services]
Azure_ is now known as Azure
natewalck_ has joined #ruby
gsvolt_ has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
go|dfish1 has joined #ruby
stylus_ has joined #ruby
Kruppe has quit [Ping timeout: 258 seconds]
zeroXten has quit [Ping timeout: 258 seconds]
LACP has quit [Ping timeout: 258 seconds]
shalicke has quit [Ping timeout: 258 seconds]
XenoWolf has quit [Ping timeout: 258 seconds]
deric_skibotn has quit [Ping timeout: 258 seconds]
chihhsin_wego has quit [Ping timeout: 258 seconds]
lkba has quit [Ping timeout: 258 seconds]
Cope has quit [Ping timeout: 258 seconds]
parus has quit [Ping timeout: 258 seconds]
m_3 has quit [Ping timeout: 258 seconds]
willgorman_ has quit [Ping timeout: 258 seconds]
csmrfx has quit [Ping timeout: 258 seconds]
axisys has quit [Ping timeout: 258 seconds]
everett has quit [Ping timeout: 258 seconds]
ACPe has joined #ruby
nevans has quit [Ping timeout: 258 seconds]
xiphias has quit [Ping timeout: 258 seconds]
omosoj has quit [Ping timeout: 258 seconds]
ra4king has quit [Ping timeout: 258 seconds]
metadave has quit [Ping timeout: 258 seconds]
tommylom1ykins has quit [Ping timeout: 258 seconds]
zastern has quit [Ping timeout: 258 seconds]
Beoran has quit [Ping timeout: 258 seconds]
moneydouble has quit [Ping timeout: 258 seconds]
JordanJ2 has quit [Ping timeout: 258 seconds]
wuest has quit [Ping timeout: 258 seconds]
stylus has quit [Ping timeout: 258 seconds]
drago777 has quit [Ping timeout: 258 seconds]
willb1 has quit [Ping timeout: 258 seconds]
skyspl0it has quit [Ping timeout: 258 seconds]
xiphias has joined #ruby
drago777 has joined #ruby
Kruppe has joined #ruby
lotherk_ has quit [Ping timeout: 258 seconds]
saltsa_ has quit [Ping timeout: 258 seconds]
justinmcp has quit [Ping timeout: 258 seconds]
bijumon has quit [Ping timeout: 258 seconds]
gsvolt has quit [Ping timeout: 258 seconds]
SOLID000 has quit [Ping timeout: 258 seconds]
george2 has quit [Ping timeout: 258 seconds]
Rickmasta has quit [Ping timeout: 258 seconds]
cjk101010 has quit [Ping timeout: 258 seconds]
go|dfish has quit [Ping timeout: 258 seconds]
Quadlex has quit [Ping timeout: 258 seconds]
Riking has quit [Ping timeout: 258 seconds]
ylluminarious|aw has quit [Ping timeout: 258 seconds]
terrellt has quit [Ping timeout: 258 seconds]
Xeago has quit [Ping timeout: 258 seconds]
natewalck has quit [Ping timeout: 258 seconds]
xiphias has joined #ruby
xiphias has quit [Changing host]
ra4king1 has joined #ruby
willgorman_ has joined #ruby
supermarin___ has joined #ruby
xiphias has quit [*.net *.split]
willgorman_ has quit [*.net *.split]
Kruppe has quit [*.net *.split]
drago777 has quit [*.net *.split]
SOLID000 has joined #ruby
willgorman_ has joined #ruby
Kruppe has joined #ruby
xiphias has joined #ruby
drago777 has joined #ruby
everett has joined #ruby
Quadlex has joined #ruby
Jamo___ has joined #ruby
omosoj has joined #ruby
bijumon has joined #ruby
nevans has joined #ruby
supermarin__ has quit [Ping timeout: 252 seconds]
Avahey__ has joined #ruby
Beoran has joined #ruby
Rickmasta has joined #ruby
zastern has joined #ruby
metadave_ has joined #ruby
freerobby has joined #ruby
braincra- has quit [Quit: bye bye]
shalicke has joined #ruby
m_3 has joined #ruby
Riking has joined #ruby
cjk101010 has joined #ruby
willb1 has joined #ruby
george2|chakra is now known as george2
BeingUntoDeath has quit []
<ra4king1> neeeeeeet split
billy_ran_away has quit [Ping timeout: 252 seconds]
Jamo has quit [Ping timeout: 252 seconds]
MissionCritical has quit [Ping timeout: 252 seconds]
billy_ran_away has joined #ruby
Avahey_ has quit [Ping timeout: 252 seconds]
predator217 has quit [Ping timeout: 252 seconds]
Xuerian has quit [Ping timeout: 252 seconds]
tiguser has quit [Ping timeout: 252 seconds]
dioms_ has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Ping timeout: 252 seconds]
codeurge has quit [Ping timeout: 252 seconds]
im0b has quit [Ping timeout: 252 seconds]
__class__ has quit [Ping timeout: 252 seconds]
agjacome has quit [Ping timeout: 252 seconds]
Avahey__ is now known as Avahey_
optiz0r_ has quit [Quit: No Ping reply in 180 seconds.]
xargoon_ has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 256 seconds]
freerobby has quit [Client Quit]
b1205 has quit [Ping timeout: 252 seconds]
dioms_ has joined #ruby
tiguser has joined #ruby
xargoon_ has joined #ruby
im0b has joined #ruby
natewalck_ is now known as natewalck
agjacome has joined #ruby
yubrew has joined #ruby
krz has quit [*.net *.split]
alexju has quit [*.net *.split]
kenneth has quit [*.net *.split]
xargoon has quit [*.net *.split]
predator117 has quit [*.net *.split]
Sammael has quit [*.net *.split]
xargoon_ is now known as xargoon
thesheff17 has joined #ruby
NukePuppy has quit [Ping timeout: 252 seconds]
b1205 has joined #ruby
__class__ has joined #ruby
Xuerian has joined #ruby
codeurge has joined #ruby
SegFaultAX has quit [Excess Flood]
braincrash has joined #ruby
optiz0r has joined #ruby
ra4king1 is now known as ra4king
Cope has joined #ruby
r0bby has quit [Max SendQ exceeded]
jmurray has quit [Quit: jmurray]
r0bby has joined #ruby
tommylommykins has joined #ruby
predator117 has joined #ruby
ce_afk is now known as cescalante
yubrew has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
SegFaultAX has joined #ruby
pietr0 has joined #ruby
chipotle has joined #ruby
supermarin___ has quit [Quit: Computer has gone to sleep.]
soulcake has quit [*.net *.split]
magicien has quit [*.net *.split]
barratt has quit [*.net *.split]
netf has quit [*.net *.split]
timfoo_ has quit [*.net *.split]
tsunamie has quit [*.net *.split]
_JamieD_ has quit [*.net *.split]
codabrink has quit [*.net *.split]
phracker has quit [*.net *.split]
JordanJ2 has joined #ruby
supermarin___ has joined #ruby
s2013 has joined #ruby
kenneth has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
MissionCritical has joined #ruby
danijoo has joined #ruby
ylluminarious is now known as ylluminarious|aw
sptx00 has quit [Quit: Ex-Chat]
combusean has joined #ruby
krzkrz has quit [Quit: WeeChat 0.4.3]
krz has joined #ruby
bradhe_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
samuel02 has joined #ruby
zorak has joined #ruby
supermarin___ has quit [Ping timeout: 276 seconds]
bradhe has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
phracker has joined #ruby
r0bby has quit [Quit: Konversation terminated!]
IceDragon_ is now known as IceDragon
aspires has joined #ruby
bradhe_ has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 265 seconds]
St_Marx has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
RaptorJesus has quit [Write error: Broken pipe]
end_guy has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Broken pipe]
ra4king has quit [Quit: Leaving]
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
Es0teric has joined #ruby
oo_ has joined #ruby
St_Marx has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
tacos1de has joined #ruby
<ericwood> yo, having trouble building JRuby...any ideas? https://gist.github.com/eric-wood/0ac0c8b3c20fc16f74f2
<ericwood> I definitely fucked up some lib stuff but I can't seem to track down what argparser is and why it's missing
s2013 has quit [Ping timeout: 240 seconds]
Royalb15 has joined #ruby
<RubyPanther> ericwood: you're probably missing a C++ dev lib, or screwed up your include path
Sammael has joined #ruby
<ari-_-e> how do I make nokogiri create a document fragment in strict mode?
<ericwood> RubyPanther: I figured as much, no clue what is missing though, google searches haven't revealed which liibz
<RubyPanther> ericwood: it should be getting cstring from the stdlib
<ericwood> RubyPanther: lol seriously
<RubyPanther> that's why the searches don't show it as a package :)
<ericwood> GCC 4.6.3
<RubyPanther> I'm just trying, I don't actually know this one for your platform
<ericwood> I appreciate the help :D
aspires has quit []
aspires has joined #ruby
Lemur has quit [Remote host closed the connection]
moneydouble1 has quit [Quit: Leaving.]
b1205 has quit [Ping timeout: 276 seconds]
go|dfish1 is now known as go|dfish
zorak has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
pietr0 has quit [Quit: pietr0]
<ericwood> kinda wish ruby-build would cache downloaded rubies when the install fails
Guest15211 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
<ericwood> lol I did a brew update on gcc and the previous error went away
<ericwood> :shrug:
jimbow has joined #ruby
ra4king has joined #ruby
<ericwood> jk
<ericwood> how is my .rvm directory so large that it takes like forever to remove and I can't get a calculated size on it?
<shevy> hehe
<ericwood> seriously, though
agjacome has quit [Ping timeout: 252 seconds]
<shevy> perhaps it keeps a cache of p0rn
axilla has joined #ruby
mjs2600 has joined #ruby
<ericwood> huh, rm failed
<ericwood> wtf
<ericwood> woo sudo killed it
jimbow has quit [Ping timeout: 265 seconds]
<ericwood> RIP
<shevy> rm failed?
<ericwood> yeah
<ericwood> but sudo rm worked
* ericwood shrugs harder
<ericwood> wtf cstring problem is still happening
<drizz_> ericwood: probably gems like nokogiri
ce_afk is now known as cescalante
<ericwood> how is cstring not a valid file or directory
<ericwood> it's a stdlib thing
jaake has quit [Ping timeout: 276 seconds]
netf has joined #ruby
tsunamie has joined #ruby
codabrink has joined #ruby
timfoo has joined #ruby
barratt has joined #ruby
soulcake has joined #ruby
_JamieD_ has joined #ruby
netf has quit [Remote host closed the connection]
netf has joined #ruby
magicien has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
soulcake has quit [Changing host]
soulcake has joined #ruby
mjs2600 has quit [Ping timeout: 265 seconds]
lw has joined #ruby
havenwood has joined #ruby
momomomomo has quit [Quit: momomomomo]
n_blownapart has joined #ruby
alexju_ has quit [Remote host closed the connection]
timonv has joined #ruby
<n_blownapart> hi with some help earlier I thought I learned how line 22 works with multiple assignment. But when I write it out in what I thought was correct longhand I get a different result in the third example here: https://gist.github.com/anonymous/7488a73946ba3784f5d5
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
yacks has joined #ruby
JasmeetQA1 has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
yubrew has joined #ruby
shelling has joined #ruby
<shevy> multiple assignment
<shevy> a, b = 1,2
<shevy> >> a, *b = [1,2,3,4,5]
<eval-in__> shevy => [1, 2, 3, 4, 5] (https://eval.in/155510)
<shevy> >> a, *b = [1,2,3,4,5]; b
<eval-in__> shevy => [2, 3, 4, 5] (https://eval.in/155511)
oo_ has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
<n_blownapart> one sec shevy thanks
x1337807x has joined #ruby
<ari-_-e> n_blownapart: when you get to line 35, what is the value of a?
cescalante is now known as ce_afk
<n_blownapart> ari-_-e: er....
<ari-_-e> in general
timonv has quit [Ping timeout: 265 seconds]
<ari-_-e> what is it the same as
oo_ has joined #ruby
<noob101> I have a question.
Valesk_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<n_blownapart> I dont know ari-_-e hey shevy what is that a wildcard (*) ?
<shevy> n_blownapart it is called the splat operator
<shevy> n_blownapart you can think of it as collecting arguments into an array, from 0 arguments up to a lot
zorak has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
<j_mcnally> noob101: is it about global variables?
<shevy> no please :(
<shevy> we answered that already noob101
<n_blownapart> shevy: yeah thanks I remember it.
<ari-_-e> n_blownapart: think through exactly what is happening
<ari-_-e> n_blownapart: those two are not equivalent
<ericwood> *sigh* isn't there a way to download a pre-built version of jruby?
<shevy> hey it has j in it for java, it's supposed to be painful
<n_blownapart> ari-_-e: given the results it looks like one element was left out of the last examples summation.
<ari-_-e> n_blownapart: don't think about the result
<ericwood> jruby is usually not painful, I just happen to have screwed up a bunch of stuff with my computer
<ari-_-e> n_blownapart: look at the code
Valesk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
b1205 has joined #ruby
<n_blownapart> ari-_-e: ok I need some time thanks.
<j_mcnally> ericwood: u havin problems today huh?
<j_mcnally> `rvm install jruby` not working?
lkba has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has joined #ruby
<noob101> So I have an array. greetings = [["hello",1],["goodbye",2],["later",3]] The thing is that since this is an array of arrays, I was using one of the the last index of one of the arrays in the array greetings so basically, I would use the 1 in ["hello",1]by doing "greetings[rand(0)][1]". To get to the point, I would like to use a method that which would allow me to call the method on the "greetings[rand(0)][1]" so it would delete that
<noob101> How would I do that and what is the method for that.
lyanchih has quit [Quit: lyanchih]
<ericwood> j_mcnally: yah
<shevy> wat
<noob101> Phew, that is my long question. Not global variables.
<ericwood> gonna just download the binary for jrubyinstaed of using ruby-build for it
<ericwood> fuck this noise
<shevy> I did not understand the question
<shevy> all I understand is you have an array
<shevy> and you want to do what with it?
<noob101> Some of it got cut off I think :(
mary5030 has joined #ruby
<shevy> good
<shevy> it was too long anyway
<noob101> Well I want to use a method to delete an array in the array
<shevy> ok
crazymykl has quit [Remote host closed the connection]
<noob101> my array greetings is an array of arrays
<shevy> def foo(i = greetings); end
<noob101> huh
crazymykl has joined #ruby
<shevy> did you write that method already
<noob101> I am confused.
oo_ has quit [Remote host closed the connection]
<shevy> what about
<shevy> did you start writing anything yet
<noob101> Prior to what?
jaake has joined #ruby
<j_mcnally> ericwood: i would suggest at some point you unfuck your computer
<noob101> ^ lol
aspires has quit []
<shevy> noob101 you asked a question above
<ari-_-e> noob101: does it actually matter that you have an array of arrays?
<shevy> I ask for the current code
<ericwood> j_mcnally: I'll do that when I get a new one
<ericwood> too much tinkering with silly libraries and stupid shit
<noob101> I didn't write a method shevy
<j_mcnally> ericwood: i feel you
<shevy> noob101 go start writing it!
<noob101> ok look
SCommette has quit [Quit: SCommette]
try has joined #ruby
maestrojed has joined #ruby
<noob101> Is there a method in ruby that allows me to delete an array that is in an array with a bunch of arrays
<n_blownapart> ari-_-e: so should line 35 look like this? : b = [b, a + b]
jemas has joined #ruby
<ari-_-e> noob101: why does it matter where your arrays are?
<j_mcnally> noob101: have you read http://www.ruby-doc.org/core-2.1.2/Array.html ?
<noob101> Example greetings = [["Hello", 1]. ["Goodbye", 2], ["Later", 3]] I want to be able to delete ["Hello", 1]
<ari-_-e> noob101: it sounds like you just want to delete an element of an array
jemas is now known as gmas
<noob101> and no j_mcnally
<noob101> ari-_-e: yes
<j_mcnally> noob101: start there
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<j_mcnally> delete_at seems like a good canidate
<j_mcnally> or even delete
<ari-_-e> n_blownapart: do you want to set b to an array containing the values b and a+b ?
mary5030 has quit [Remote host closed the connection]
<shevy> noob see, you use delete_at ok, so now you only must find out how to obtain the right index - that is what your method will do
mary5030 has joined #ruby
<ari-_-e> n_blownapart: look at line 34
<n_blownapart> ari-_-e: I thought 'a, b = b, a + b' somehow creates a temporary array but I don't know what's going on.
<ari-_-e> you set a = b, yes?
<ari-_-e> now look at line 35
<j_mcnally> shevy: honest question because in say Obj-C it works differently but is ["hello', 123] == ["hello", 123] ?
<ari-_-e> what is the value of a?
<shevy> >> ["hello', 123] == ["hello", 123]
<eval-in__> shevy => /tmp/execpad-fde2b63422b1/source-fde2b63422b1:2: syntax error, unexpected tIDENTIFIER, expecting ']' ... (https://eval.in/155528)
skysploit has quit [Remote host closed the connection]
<j_mcnally> shevy thats neat, learn something every day
samuel02 has joined #ruby
<shevy> wat
<ericwood> woohoo, I think I got all this shit working
tjr9898 has joined #ruby
<j_mcnally> yay ericwood
<noob101> >> puts "chicken and rice yum"
<eval-in__> noob101 => chicken and rice yum ... (https://eval.in/155531)
larissa has quit [Quit: Leaving]
<j_mcnally> >> puts (["hello", 123] == ["hello", 123])
<ericwood> I used the jruby binary packages and did an ln -s jruby ruby inside the bin directory
<eval-in__> j_mcnally => true ... (https://eval.in/155532)
<j_mcnally> there we go
<ericwood> chruby picked it up instantly
<j_mcnally> my quote was wrong
<n_blownapart> I was merely trying to write out the multiple expression in 'longhand' for lack of a better word ari-_-e
<ari-_-e> n_blownapart: yes, I understand that
<ari-_-e> n_blownapart: I'm trying to show you how they're not the same
michaelchum has quit [Quit: Connection closed for inactivity]
<j_mcnally> ericwood: Congrats! on the down side you are now using jruby
<ericwood> wow, already preferring chruby
<ericwood> j_mcnally: jruby works great for what I use it for
<ericwood> aaaaaaaand chruby seems to do a better job picking up on what to use in which dir
<ericwood> finally
<havenwood> ericwood: :)
<n_blownapart> ari-_-e: sorry I'm fairly confused.
marcdel has joined #ruby
billy_ran_away has quit [Ping timeout: 252 seconds]
<ari-_-e> n_blownapart: do you see why those two pieces of code are different?
pasties has quit [Quit: ZNC - http://znc.in]
<n_blownapart> no because I don't know how line 22 creates an (implicit?) array.
samuel02 has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
<ari-_-e> n_blownapart: don't worry about arrays
<ari-_-e> just worry about the values that it sets the variables to
<ari-_-e> explain to me what line 22 does
<ari-_-e> just in terms of the variables
<ari-_-e> all that matters here is the behavior, not how ruby implements it
<n_blownapart> it does the addition first, then the sum is assigned to b ... ari-_-e
Xeago has joined #ruby
billy_ran_away has joined #ruby
timgauthier has quit [Ping timeout: 252 seconds]
<n_blownapart> b becomes the next a with : 'a = b'
jle` has quit [Quit: WeeChat 0.4.2]
rm__ has quit [Remote host closed the connection]
<ari-_-e> n_blownapart: let's consider the case of swapping values in variables
jle` has joined #ruby
<ari-_-e> you have a and b, and you want to swap their values
<ari-_-e> so you do a, b = b, a
<ari-_-e> what exactly happens there?
zapho has joined #ruby
Tamal has joined #ruby
yxhuvud has joined #ruby
<zapho> Can anyone help with this Rails error message: NoMethodError in RegisterController#home \ undefined method `headers' for nil:NilClass
rm_ has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
<zapho> I can't work out what it relates to. The erb template and its partials seem to be OK.
wallerdev has joined #ruby
<ericwood> go to #rubyonrails
<ericwood> also, show us your code
<ari-_-e> n_blownapart: or, consider this: what discrete steps would you have to take to swap the values in two variables?
brunops has joined #ruby
<ari-_-e> if you didn't have any fancy parallel assignment syntax
Asher1 has quit [Quit: Leaving.]
<n_blownapart> well visually, there is a moving window ( a two-element array), moving over the elements of the fibonacci sequence ari-_-e
kenneth has joined #ruby
<zapho> ericwood: Code isn't online so how would I do that on IRC?
<ericwood> !paste @ zapho
<ericwood> stupid bot
<zapho> Will try the other channel.
<ericwood> zapho: gist.github.com or pastebin.net or whatever
<ericwood> zapho: but you *have* to provide some context for the error message
<ericwood> namely the line the error message is pointing to!
<zapho> There's no line number mentioned.
<zapho> Otherwise it would be easy.
<zapho> Not on github as it's a private project.
zorak has quit [Read error: Connection reset by peer]
pasties has joined #ruby
<ericwood> you don't have to show us all of it
<ericwood> but we need snippets of the relevant parts
<Tamal> RegisterController#home to start
<ari-_-e> zapho: you can use any paste site
<zapho> Well there's nothing in the error pointing to anything specific
<ari-_-e> gist.github is only one
<ericwood> zapho: is there anywhere in that file where you call "headers" on something?
<ericwood> does that word appear in the file?
<ericwood> I'd start there
<zapho> No. I didn't define a headers method. It must be part of Rails.
<Hanmac> ari-_-e: the funny thing about a, b = b, a is that it does simultaneously ... even a more funnier thing is this does not throw an error ;P
<Hanmac> >> a,b = b,a
<eval-in__> Hanmac => [nil, nil] (https://eval.in/155533)
omosoj has quit [Ping timeout: 252 seconds]
<n_blownapart> ari-_-e: very sorry I am reading about 'discrete' steps.
<ari-_-e> Hanmac: why would it throw an error?
<ari-_-e> n_blownapart: I just meant list the steps
ascarter has joined #ruby
<ari-_-e> oh, you mean if the variables aren't defined?
<Hanmac> yeah, because variables are defined from left-to-right, while code is run from right-to-left
<ari-_-e> right...
agarie has quit [Ping timeout: 255 seconds]
b1205 has quit [Ping timeout: 240 seconds]
duncannz has joined #ruby
lw has quit [Quit: s]
<ari-_-e> it doesn't really do it simultaneously though - I assume it saves the values on the right somehow and then assigns them accordingly
agent_white has joined #ruby
lw has joined #ruby
RaptorJesus has joined #ruby
marcdel has quit [Ping timeout: 265 seconds]
<agent_white> Good evening
<wallerdev> yo
zapho has left #ruby [#ruby]
Asher has joined #ruby
oo_ has joined #ruby
r0bby has joined #ruby
<n_blownapart> all I know ari-_-e is that the multiple expression does the math first on the right and the sum is assigned to b on the left side, correct?
jamto11 has joined #ruby
<ari-_-e> n_blownapart: I have to go and will probably be back in about half an hour, but I guess it might help you to think of a, b = b, a as being equivalent to a, b = [b, a]
<ari-_-e> that's probably the "implicit array" thing that you were talking about
<n_blownapart> ari-_-e: ok I will work hard and will await your return. pax
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrWharfsnort has joined #ruby
<ari-_-e> n_blownapart: I'd really encourage you to think about this problem more abstractly, separately from the larger problem
<ari-_-e> just think about a, b = [b, a]
<ari-_-e> and what that actually does
<n_blownapart> ok will do ^
marcdel has joined #ruby
<ari-_-e> and why it's different from the other code
ari-_-e has quit [Quit: Leaving]
oo_ has quit [Ping timeout: 265 seconds]
jamto11 has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Quit: Leaving...]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
tkuchiki has joined #ruby
<ericwood> wow cd is totally way faster without rvm
<wallerdev> ??
omosoj has joined #ruby
<ericwood> it just is
<wallerdev> how slow can rvm make cd
<wallerdev> lol
<ericwood> noticeably slow, apparently
darkMatter is now known as haha_
<wallerdev> idk man ive got rvm installed
<wallerdev> cd is quick
<ericwood> cd'ing into a dir with a .rvmrc would add like a few seconds of delay
cantonic has quit [Quit: cantonic]
<ericwood> but that might just be my system
axilla has joined #ruby
<ericwood> I've heard of other people with the same problem, though
<wallerdev> yeah ive heard people complain about rvm before
<wallerdev> ive never experienced cd taking longer than like 0.10s haha
hgl has quit [Ping timeout: 252 seconds]
b1205 has joined #ruby
ce_afk is now known as cescalante
Advocation has joined #ruby
yubrew has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
sdelmore has joined #ruby
jimmyhoughjr has joined #ruby
aganov has joined #ruby
Bira has joined #ruby
lw has quit [Quit: s]
Xeago has joined #ruby
apeiros has quit [Remote host closed the connection]
bafbomb has joined #ruby
apeiros has joined #ruby
Advocation has quit [Ping timeout: 252 seconds]
sdelmore has quit [Client Quit]
yubrew has quit [Ping timeout: 240 seconds]
brunops has quit [Quit: leaving]
maestrojed has quit [Quit: Computer has gone to sleep.]
JasmeetQA has joined #ruby
timfoo has quit [*.net *.split]
tsunamie has quit [*.net *.split]
netf has quit [*.net *.split]
barratt has quit [*.net *.split]
soulcake has quit [*.net *.split]
magicien has quit [*.net *.split]
codabrink has quit [*.net *.split]
_JamieD_ has quit [*.net *.split]
apeiros has quit [Ping timeout: 258 seconds]
Avahey_ has quit [Quit: Connection closed for inactivity]
cescalante is now known as ce_afk
Xeago has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
psyko666 has joined #ruby
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
rubyshop has joined #ruby
marcdel has quit []
rubyshop has quit [Client Quit]
bahar has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
Arkaniad has quit [Ping timeout: 255 seconds]
Bira has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
mr_snowf1ake has quit [Ping timeout: 264 seconds]
lyanchih_ has joined #ruby
Bira has joined #ruby
Bira has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
ra4king has quit [Ping timeout: 252 seconds]
ra4king has joined #ruby
lethjakman has joined #ruby
Asher has quit [Read error: No route to host]
Asher1 has joined #ruby
skysploit has joined #ruby
DarthGandalf has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
raspberryfan has quit [Remote host closed the connection]
b1205 has quit [Ping timeout: 276 seconds]
raspberryfan has joined #ruby
shock_one has joined #ruby
Doppp has quit [Quit: leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivekananda has joined #ruby
SegFaultAX has quit [Excess Flood]
omosoj has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
SegFaultAX has joined #ruby
nopolitica has joined #ruby
x1337807x has joined #ruby
samuel02 has quit [Ping timeout: 252 seconds]
nopolitica has quit [Client Quit]
Asher1 is now known as Asher
Es0teric has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 252 seconds]
vpretzel has joined #ruby
ra4king has quit [Remote host closed the connection]
davedev24_ has quit [Remote host closed the connection]
echevemaster has quit [Remote host closed the connection]
oo_ has joined #ruby
<agent_white> cd faster without rvm? Sounds like you accidentally put your system through a grinder.
davedev24_ has joined #ruby
skysploit has quit [Ping timeout: 258 seconds]
Symbiosisz has quit [Quit: Leaving]
Morkel has joined #ruby
n_blownapart has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
ra4king has joined #ruby
bradhe has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
vpretzel has quit [Ping timeout: 258 seconds]
bradhe has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 252 seconds]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sensen has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
reference has joined #ruby
b1205 has joined #ruby
toastynerd has quit [Remote host closed the connection]
ra4king has quit [Remote host closed the connection]
Doppp has joined #ruby
ra4king has joined #ruby
bradhe has joined #ruby
ra4king has quit [Remote host closed the connection]
sigurding has joined #ruby
tobago has joined #ruby
akonny has joined #ruby
ampharmex is now known as perdent
perdent is now known as ampharmex
raspberryfan has quit [Ping timeout: 258 seconds]
memorozovm has joined #ruby
kies has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
Bira has joined #ruby
heftig has quit [Quit: Quitting]
Es0teric has quit [Client Quit]
yubrew has joined #ruby
Bira has quit [Ping timeout: 276 seconds]
ra4king has joined #ruby
mjs2600 has joined #ruby
axilla has joined #ruby
raspberryfan has joined #ruby
raspberryfan has quit [Remote host closed the connection]
nathancahill has quit [Quit: nathancahill]
raspberryfan has joined #ruby
yubrew has quit [Ping timeout: 258 seconds]
einarj has joined #ruby
bal has joined #ruby
ce_afk is now known as cescalante
agent_white has quit [Read error: Connection reset by peer]
mjs2600 has quit [Ping timeout: 252 seconds]
reference has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
axilla has quit [Ping timeout: 265 seconds]
reference has joined #ruby
agent_white has joined #ruby
akonny has quit [Quit: akonny]
Tamal has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
lyanchih_ has quit [Ping timeout: 276 seconds]
lethjakman has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
shock_one has quit [Ping timeout: 258 seconds]
bradhe has quit [Remote host closed the connection]
yfeldbl__ has joined #ruby
jimbow has joined #ruby
jimbow has quit [Disconnected by services]
yfeldblum has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
Macaveli has joined #ruby
yfeldblu_ has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
r0bby is now known as robbyoconnor
sensen has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
einarj has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
sgen has quit [Quit: Leaving]
Senjai has joined #ruby
Senjai has quit [Changing host]
noop has joined #ruby
ktosiek has joined #ruby
bahar has quit [Ping timeout: 258 seconds]
jaake has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
sinkensabe has joined #ruby
aiguu has joined #ruby
ra4king1 has joined #ruby
<aiguu> any clever way to create a hash map of integer -> array of objects in a single line?
maletor has quit [Quit: Computer has gone to sleep.]
<aiguu> right now I do something like: map = Hash[ foos.map{|f| [f.id, []]} ], then loop through foos and fill up the map
JoeGaudet has quit [Quit: Computer has gone to sleep.]
<aiguu> want to end up with [ 1 => [ { id: 1, foo: bar }]] etc
ra4king has quit [Ping timeout: 265 seconds]
Beoran__ has joined #ruby
samuel02 has joined #ruby
shelling has quit [Quit: Connection closed for inactivity]
SCommette has joined #ruby
fantazo has quit [Ping timeout: 264 seconds]
try has quit [Ping timeout: 258 seconds]
Gabri has joined #ruby
ra4king2 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
chipotle has quit [Quit: cya]
ra4king2 has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
marcdel has joined #ruby
b1205 has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
ra4king1 has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
marcdel_ has joined #ruby
vpretzel has joined #ruby
andrewjanssen has joined #ruby
MrWharfsnort has quit [Ping timeout: 258 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
andrewjanssen has quit [Client Quit]
marcdel has quit [Ping timeout: 265 seconds]
subbyyy_ has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
supermarin___ has joined #ruby
<Hanmac> aiguu: did you try group_by ?
<havenwood> aiguu: what are you starting with? something like this?: [[:foo, 'bar'], [:or, 'something_else']]
Retroid has quit [Ping timeout: 252 seconds]
<havenwood> aiguu: i understand output, just not input
jprovazn has joined #ruby
vpretzel has quit [Ping timeout: 276 seconds]
Retroid has joined #ruby
supermarin___ has quit [Remote host closed the connection]
supermarin has joined #ruby
<apeiros> aiguu: [1 => …] is not a thing. I guess you meant {1 => …}
<apeiros> ([] is always an array, {} is for hashes)
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> same problem as havenwood wrt input
shelling has joined #ruby
CorpusCallosum has joined #ruby
noop has quit [Ping timeout: 252 seconds]
alem0lars has joined #ruby
noop has joined #ruby
anarang has joined #ruby
PaulePan1er is now known as PaulePanter
Xovdes has joined #ruby
<agent_white> Note to self: Memorize methods in Enumerable :P
yubrew has joined #ruby
jamto11 has joined #ruby
Beoran__ has quit [Ping timeout: 240 seconds]
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
yubrew has quit [Ping timeout: 258 seconds]
bahar has quit [Ping timeout: 240 seconds]
combusean has quit [Ping timeout: 265 seconds]
Xovdes has quit [Ping timeout: 252 seconds]
rm_ has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 252 seconds]
IceDragon has quit [Quit: Space~~~]
noop has quit [Ping timeout: 240 seconds]
phansch has joined #ruby
axilla has joined #ruby
kai1 has joined #ruby
jtdowney has joined #ruby
Hobogrammer_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
jtdowney has quit [Client Quit]
duncannz has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
bahar has joined #ruby
duncannz has joined #ruby
Soliah has quit [Quit: Soliah]
axilla has quit [Ping timeout: 258 seconds]
kai1 has left #ruby [#ruby]
yfeldbl__ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mradmacher has joined #ruby
orriols has joined #ruby
zigomir has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
iamayam has quit [Ping timeout: 252 seconds]
relix has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
noop has joined #ruby
pehlert has joined #ruby
cescalante is now known as ce_afk
Bira has joined #ruby
bahar has joined #ruby
andikr has joined #ruby
ari-_-e has joined #ruby
marcdel_ has quit []
kitak has quit [Remote host closed the connection]
blackmesa has joined #ruby
skaflem has joined #ruby
fabrice31 has joined #ruby
Bira has quit [Ping timeout: 258 seconds]
havenwood has quit []
LiohAu has joined #ruby
jimmyhoughjr has quit [Ping timeout: 265 seconds]
subbyyy_ has quit [Ping timeout: 265 seconds]
kitak has joined #ruby
elabs-developer has joined #ruby
Burgestrand has joined #ruby
claymore has joined #ruby
gmas has quit [Ping timeout: 252 seconds]
ampharmex is now known as aelse
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
DEA7TH has joined #ruby
kaipaesslercom has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
supermarin has quit [Ping timeout: 258 seconds]
rm_ has joined #ruby
schaary is now known as schaary|afk
samuel02 has joined #ruby
Rahul_Roy has joined #ruby
TwinkleHood has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
<TwinkleHood> Hey, anybody know of library/way to determine whether, and where to lines intersect in 4 dimensions?
Xeago has joined #ruby
Morkel_ has joined #ruby
obs has joined #ruby
Doppp has quit [Quit: Lost terminal]
samuel02 has quit [Ping timeout: 252 seconds]
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
<pontiki> my maths aren't good enough to even begin to understand how to do that :(
Dr3amc0d3r is now known as Dr3amc0d3r|away
danjordan has joined #ruby
<TwinkleHood> Maybe NSA will lend me some serverz so I can bruteforce it in realtime.
parduse has quit [Killed (sendak.freenode.net (Nickname regained by services))]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<TwinkleHood> Still more plausible than switching to python.
vpretzel has joined #ruby
setra has joined #ruby
jimmyhoughjr has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
zz_nopc0de is now known as nopc0de
Doppp has joined #ruby
ephemerian has joined #ruby
tesuji has joined #ruby
WishBoy- has quit [Remote host closed the connection]
vpretzel has quit [Ping timeout: 265 seconds]
marcdel has joined #ruby
sk87 has joined #ruby
pehlert has quit [Quit: Lost terminal]
yubrew has joined #ruby
_broody has joined #ruby
Es0teric has joined #ruby
Hanmac1 has joined #ruby
magicien has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
yubrew has quit [Ping timeout: 258 seconds]
soulcake has joined #ruby
barratt has joined #ruby
timfoo_ has joined #ruby
netf has joined #ruby
tsunamie has joined #ruby
codabrink has joined #ruby
_JamieD_ has joined #ruby
ktun has joined #ruby
alex88 has quit [Ping timeout: 276 seconds]
alex88 has joined #ruby
tsunamie has quit [Max SendQ exceeded]
soulcake has quit [Changing host]
soulcake has joined #ruby
<certainty> tagrudev: yow :D
tsunamie has joined #ruby
<tagrudev> certainty, sup mate
_broody has quit [Read error: Connection reset by peer]
<certainty> tagrudev: at work, what about you?
<tagrudev> same
rm_ has joined #ruby
marr has joined #ruby
glenfe has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
monkegjinni has joined #ruby
ndrei has joined #ruby
mjs2600 has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
axilla has joined #ruby
kalleth_ is now known as kalleth
samuel02 has joined #ruby
sheperson has joined #ruby
<TwinkleHood> work work. I guess the room's so quiet because everyone is so busy focusing on work. lol. not.
ce_afk is now known as cescalante
rm_ has quit [Ping timeout: 252 seconds]
mjs2600 has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
Bira has joined #ruby
Nahra has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 252 seconds]
mercerist has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Nahra has joined #ruby
claymore has quit [Ping timeout: 276 seconds]
jambolina has joined #ruby
<pontiki> prolly not...
<pontiki> it's 3am
<pontiki> i should be pondering horizontal somnolence
timonv has joined #ruby
rdark has joined #ruby
marcdel has quit []
aiguu has left #ruby ["WeeChat 0.4.3"]
jambolina has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
rails426 has joined #ruby
nfk has joined #ruby
agent_white has quit [Quit: night]
cescalante is now known as ce_afk
Bira has quit [Ping timeout: 252 seconds]
timonv_ has joined #ruby
frogssgy has joined #ruby
charliesome has joined #ruby
klaut has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
Shidash has joined #ruby
shock_one has joined #ruby
jambolina has joined #ruby
roolo has joined #ruby
moneydouble has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 252 seconds]
alem0lars has quit [Quit: Going AFK...]
claymore has joined #ruby
frosgy has quit [Ping timeout: 264 seconds]
JoeGaudet has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivier_bK has joined #ruby
Bira has joined #ruby
bahar has joined #ruby
sinkensabe has quit [Remote host closed the connection]
_justin has joined #ruby
sinkensabe has joined #ruby
selite has joined #ruby
vlad_starkov has joined #ruby
<selite> How do I get the length of the hamiltonian path if I have the length of the travelling salesman path?
JoeGaudet has quit [Read error: No route to host]
<selite> TSP goes back to the source.
ohcibi_ is now known as ohcibi
JoeGaudet has joined #ruby
ninegrid has quit [Quit: leaving]
nopc0de is now known as zz_nopc0de
Bira has quit [Ping timeout: 276 seconds]
zz_nopc0de is now known as nopc0de
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Ping timeout: 264 seconds]
_axx_ has left #ruby [#ruby]
kitak has joined #ruby
kiri has joined #ruby
DaniG2k has joined #ruby
alem0lars has joined #ruby
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
ninegrid has joined #ruby
supermarin has joined #ruby
elaptics`away is now known as elaptics
JoeGaudet has quit [Read error: Connection timed out]
selite has quit [Quit: Page closed]
ndrei has joined #ruby
banister has joined #ruby
vpretzel has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
reference has quit [Remote host closed the connection]
<testol> I'm using an gem in my program - I'm done writing the "happy path" and now I need to think about exceptions... how do you guys tend to go about working out which exceptions to rescue?
<testol> Do you literally read all gems' source code that you use and rescue for every raise ? (Doesn't sound right)
yubrew has joined #ruby
Gabri has quit [Remote host closed the connection]
sinkensabe has joined #ruby
tvw has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
<pontiki> only for ones that the calling program should be expected to handle
LekeFly has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
alem0lars has quit [Quit: alem0lars]
heftig has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<pontiki> forex, if it's a rather simplistic command line script, i generally don't do anything except make sure the exception gets reported
duncannz has quit [Quit: Leaving]
<pontiki> if it's something the gem does to indicate a special condition, such as something not found when it should be (possibly something corrupted in transimission), but the calling program can continue anyway, i catch those and report them, and then just carry on
<pontiki> i mean, i don't know that there's a hard-and-fast rule about it, you know?
<testol> Well, my app is expected to keep running
<pontiki> so maybe catch them and log them some place, or notify something else
canton7-mac has joined #ruby
<pontiki> recent example, rails app calling a payment gateway, the gateway goes down for some reason. the rails app needs to keep running, but not do anything else with the gateway until it comes back
ridget has joined #ruby
wallerdev has quit [Quit: wallerdev]
Gue______ has joined #ruby
kiri_ has joined #ruby
wuest_ is now known as wuest
kiri has quit [Read error: Connection reset by peer]
<pontiki> but if the rails app requests some information that the gateway can't find (in this case, an id number of something that is supposed to be vaulted at the gateway, a credit card, a customer, an address,etc) then there is a data corruption, the rails app still needs to keep running, but the admins and support team need to be notified right away
dawkirst has joined #ruby
d34th4ck3r has joined #ruby
<pontiki> but if there's some other kind of exception, then it needs to be handled in a more general way
kiri_ has quit [Client Quit]
lobstah has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
<testol> pontiki: that makes sense. All the components in my app are equally critical to the process, and given that it's meant to work in a fairly sequential, ordered manner, I think it's better to just crash for unknowns
kiri has joined #ruby
ta_ has quit [Remote host closed the connection]
* pontiki nods
<pontiki> as long as the crash is actually noticeable
ndrei has quit [Quit: leaving]
Advocation has joined #ruby
<testol> pontiki: hehe, very good point
<pontiki> there are so many stories; "What do you mean we have no backups?!?!" "The backup system crashed a month ago and no one noticed.."
dilated_dinosaur has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 245 seconds]
_justin has joined #ruby
<certainty> testol: one thing is monitoring, another thing is possibly to rely a circuit breaker on external resources like payment gateways and add these to your monitoring too
<certainty> s/rely/install
<certainty> i don't know why i said rely
bigkevmcd has quit [Ping timeout: 252 seconds]
schickung has joined #ruby
moritzs has joined #ruby
deric_skibotn_ has quit [Ping timeout: 252 seconds]
ripnix has joined #ruby
<olivier_bK> i have question about how t ocall method class in another method
WishBoy has joined #ruby
ripnix has quit [Client Quit]
ripnix has joined #ruby
sheperson has quit [Quit: sheperson]
<canton7> olivier_bK, class names begin with an upper case
rm_ has joined #ruby
<canton7> and you'll need to "require 'class_d'" at the top of your class_a_b.rb
bahar has quit [Ping timeout: 245 seconds]
<olivier_bK> it's what i do
<canton7> olivier_bK, the upper-case/lower-case thing *is* important - it's not just convention. things that start with an upper-case letter are constants
<olivier_bK> i write require 'name_offile'
foooobear has joined #ruby
<canton7> well, it's now what you do in your pastie ;)
axilla has joined #ruby
<canton7> so if the pastie's wrong, update thepastie
psyko666 has quit [Read error: Connection reset by peer]
bahar has joined #ruby
ce_afk is now known as cescalante
nopc0de is now known as zz_nopc0de
workmad3 has joined #ruby
<olivier_bK> canton7, give me one minute please
<olivier_bK> :)
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
rm_ has quit [Ping timeout: 252 seconds]
kith has quit [Quit: kith]
<Hanmac1> canton7i think he might need require_relative more
ephemerian has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 276 seconds]
zz_nopc0de is now known as nopc0de
klaut has joined #ruby
blackmesa has joined #ruby
timonv has joined #ruby
LadyRainicorn has joined #ruby
_justin has quit [Quit: _justin]
dilated_dinosaur has joined #ruby
_justin has joined #ruby
d34th4ck3r has quit [Quit: zzz]
csmrfx_ is now known as csmrfx
setra has quit [Ping timeout: 258 seconds]
ephemerian has joined #ruby
cescalante is now known as ce_afk
Shidash has quit [Quit: Leaving.]
bahar has quit [Ping timeout: 258 seconds]
shelling has quit [Quit: Connection closed for inactivity]
alem0lars has joined #ruby
Advocation has quit [Quit: Advocation]
vlad_starkov has joined #ruby
ktun has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
fantazo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
wald0 has joined #ruby
workmad3 has quit [Quit: leaving]
subraminion has joined #ruby
noop has quit [Ping timeout: 258 seconds]
cina has joined #ruby
ra4king has joined #ruby
ktun has joined #ruby
ripnix has quit [Quit: Textual IRC Client: www.textualapp.com]
reference has joined #ruby
ta has joined #ruby
dawkirst has quit [Ping timeout: 265 seconds]
mercerist has quit [Remote host closed the connection]
d34th4ck3r has joined #ruby
vlad_starkov has joined #ruby
r0bby has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
dawkirst has joined #ruby
schaary|afk is now known as schaary
yubrew has quit [Ping timeout: 276 seconds]
vpretzel has joined #ruby
mengu has quit [Remote host closed the connection]
cina has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
cina has joined #ruby
Bira has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
mercerist has joined #ruby
d34th4ck3r has quit [Quit: zzz]
bahar has joined #ruby
vpretzel has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
ta has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
Lewix has joined #ruby
Bira has quit [Ping timeout: 258 seconds]
cina has quit [Ping timeout: 252 seconds]
kyb3r_ has joined #ruby
_justin has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
d34th4ck3r has joined #ruby
Advocation has joined #ruby
rezzack1 has joined #ruby
rezzack has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gue______ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moneydouble has quit [Quit: Leaving.]
alem0lars has quit [Quit: alem0lars]
Lewix has quit [Remote host closed the connection]
mrnugget has joined #ruby
merceris_ has joined #ruby
mercerist has quit [Ping timeout: 240 seconds]
shvelo has joined #ruby
moneydouble has joined #ruby
<shvelo> Arr
moritzs has joined #ruby
St_Marx has quit [Remote host closed the connection]
mjs2600 has joined #ruby
St_Marx has joined #ruby
rm_ has joined #ruby
mjs2600 has quit [Ping timeout: 258 seconds]
ce_afk is now known as cescalante
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rm_ has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
shredding has joined #ruby
d34th4ck3r has quit [Quit: zzz]
shredding has quit [Client Quit]
shredding has joined #ruby
fabrice31 has joined #ruby
toretore has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Vivekananda has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
mengu has joined #ruby
lethe has quit []
monkegjinni has quit [Remote host closed the connection]
sk87 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
rails426 has quit []
Gabri has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
claymore has quit [Ping timeout: 276 seconds]
cescalante is now known as ce_afk
mengu has quit [Ping timeout: 252 seconds]
rails426 has joined #ruby
dingus_khan has joined #ruby
benlieb has joined #ruby
<benlieb> what looping through an array with each, how do I refer to the next element in array? Or how do I refer to the array itself?
<benlieb> *while*
blackmesa has quit [Ping timeout: 240 seconds]
<lolmaus> benlieb: you have access to the variables declared in outer scope
<tobiasvl> benlieb: to refer to the next element, you can use each_index instead
<benlieb> lolmaus: it's actually a literal [d d d d ].each
<benlieb> not each_with_index?
<lolmaus> benlieb: put it into variable
<tobiasvl> array.each_index {|x| array[x]; array[x+1] }
<Wayneoween> Anyone who wants a keybasi.io invite?
shvelo has quit [Ping timeout: 252 seconds]
schickung has quit [Quit: schickung]
<benlieb> tobiasvl: that's what I usually do. I must have been doing too much JS. I just wanted to use "this" inside the loop.
orriols has quit [Ping timeout: 240 seconds]
<benlieb> I bet there's a secret var like $_ or something defined somewhere that refers to the array
<lolmaus> I've got two arrays of identical length. I would like to create a hash with keys being items from first array and values being items from the second array. I'm doing it pretty dim-wittedly. I'm sure there's some very sugarish way to do this. Please suggest one.
beatdown has joined #ruby
yubrew has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<beatdown> hi, I have installed 2 versions of a gem that offers a command to be run from the system shell. I know I can use _old.version_ to run the command bundled with the old version, but how can I make the older version the default one to be used from the CLI?
Fractional has joined #ruby
tjsousa_____ has joined #ruby
<Fractional> What is the simplest way to read all content from a file and store each line into an array?
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<certainty> Fractional: IO#readlines
<lolmaus> benlieb: in real life projects you rarely parse array literals. If you do though and you don't want to declare a variable, you can use tap: `[1, 2, 3].tap { |this| this.each_index { |index| puts this[index + 1] }}`
<certainty> IO.readlines even
thisirs has joined #ruby
<Fractional> File.read_lines(filepath)?
<certainty> File.readlines(path)
chipotle has joined #ruby
<benlieb> lolmaus: i dunno. I find myself using them all day long for one-off scripts like this (a rake task) https://gist.github.com/pixelterra/8da40d1f9c3d1bf5594b
yubrew has quit [Ping timeout: 276 seconds]
Wayneoween has quit [Changing host]
Wayneoween has joined #ruby
<LadyRainicorn> lolmaus: a.zip(b).to_h
<lolmaus> LadyRainicorn: you rock
<benlieb> I'm going to avoid tap though for now. I tried to understand it once.
<lolmaus> benlieb: still you've got them in variables :P
schickung has joined #ruby
Xeago has quit [Remote host closed the connection]
<benlieb> lolmaus: yeah
<benlieb> in this case I needed to refer to the next element
<lolmaus> benlieb: tap is REALLY easy to understand if you're originating from JS!
linojon has joined #ruby
<Fractional> certainty: Thanks!
<benlieb> lolmaus: I think it has to do with an old project in ruby 1.8.6 and rails 2.1.1 that I had to convert that gave me the misery
subraminion has quit [Quit: Computer has gone to sleep.]
<benlieb> There was some method deprivation that I had to replace with tap and it was nightmarish.
DEA7TH has left #ruby [#ruby]
<benlieb> deprication
<benlieb> lol
kyb3r_ has quit [Read error: Connection reset by peer]
<benlieb> spellcheck
subraminion has joined #ruby
blackmesa has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
karupa is now known as zz_karupa
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
reference-lost has joined #ruby
reference has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
chipotle has quit [Quit: cya]
benlieb has quit [Quit: benlieb]
chipotle has joined #ruby
zz_karupa is now known as karupa
Lewix has joined #ruby
chipotle has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
aganov has quit [Quit: Leaving]
sk87 has joined #ruby
chipotle has quit [Client Quit]
diegoviola has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
workmad3 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
chipotle has quit [Client Quit]
roolo has quit [Quit: Leaving...]
kiri has quit [Quit: Leaving]
mr_snowf1ake has joined #ruby
chipotle has joined #ruby
jamto11 has joined #ruby
sensen has quit [Quit: leaving]
chipotle has quit [Client Quit]
dingus_khan has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 252 seconds]
catphish has joined #ruby
chipotle has joined #ruby
chipotle has quit [Client Quit]
_justin has joined #ruby
chipotle has joined #ruby
Bira has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
chipotle has quit [Client Quit]
dawkirst has quit [Remote host closed the connection]
chipotle has joined #ruby
ktun has joined #ruby
magri has joined #ruby
Deele has joined #ruby
chipotle has quit [Client Quit]
chipotle has joined #ruby
rm_ has joined #ruby
Bira has quit [Ping timeout: 252 seconds]
chipotle has quit [Client Quit]
decoponio has joined #ruby
chipotle has joined #ruby
memorozovm has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
raspberryfan has quit []
krz has quit [Quit: WeeChat 0.4.3]
memorozovm has joined #ruby
basldex has joined #ruby
<basldex> hi
chipotle has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
<basldex> is it possible to create a TCPSocket object by file descriptor? I need to save the connections in a redis db and would like to send data to those file descriptors
rm_ has quit [Ping timeout: 252 seconds]
chipotle has quit [Client Quit]
yfeldblu_ has joined #ruby
chipotle has joined #ruby
<toretore> Socker.for_fd
chipotle has quit [Client Quit]
chipotle has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
<basldex> nice
<basldex> thanks, toretore
yfeldblu_ has quit [Ping timeout: 240 seconds]
chipotle has quit [Client Quit]
chipotle has joined #ruby
shredding has quit [Quit: shredding]
chipotle has quit [Client Quit]
chipotle has joined #ruby
jottr has joined #ruby
chipotle has quit [Client Quit]
cescalante is now known as ce_afk
Xeago has joined #ruby
chipotle has joined #ruby
Xeago has quit [Remote host closed the connection]
shvelo has joined #ruby
fabrice31 has joined #ruby
m8 has joined #ruby
chipotle has quit [Client Quit]
andikr has quit [Remote host closed the connection]
noob101 has quit [Ping timeout: 240 seconds]
bakflash has joined #ruby
basldex has quit [Quit: leaving]
chipotle has joined #ruby
jambolina has quit [Ping timeout: 265 seconds]
chipotle has quit [Client Quit]
andrewlio has joined #ruby
jambolina has joined #ruby
moneydouble has quit [Quit: Leaving.]
yubrew has joined #ruby
chipotle has joined #ruby
phutchins has joined #ruby
agjacome has joined #ruby
chipotle has quit [Client Quit]
chipotle has joined #ruby
chipotle has quit [Client Quit]
dawkirst has joined #ruby
chipotle has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
_aeris_ has left #ruby ["Konversation terminated!"]
chipotle has quit [Client Quit]
chipotle has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
mailo has joined #ruby
chipotle has quit [Client Quit]
iamayam has joined #ruby
chipotle has joined #ruby
phoo1234567 has joined #ruby
chipotle has quit [Client Quit]
freerobby has joined #ruby
postmodern has quit [Quit: Leaving]
chipotle has joined #ruby
kitak has quit [Remote host closed the connection]
JasmeetQA has quit [Read error: Connection reset by peer]
chipotle has quit [Client Quit]
chipotle has joined #ruby
chipotle has quit [Client Quit]
claymore has joined #ruby
charliesome has joined #ruby
Fractional has quit [Remote host closed the connection]
noop has joined #ruby
mjs2600 has joined #ruby
_justin has quit [Quit: _justin]
davividal has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
zeroXten_ has quit [Quit: leaving]
ldnunes has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<davividal> hi. I have a bash script to deploy my apps (around 10). This script uses ncurses and really helps us. We want to migrate to capistrano, but it would be nice if we could keep a ncurses-like interface. While I could create a bash script to wrap a bunch of ruby scripts, I think that it would be even better to use ruby-only. So, is there a ncurses-like library for ruby? I came across some 'ruby-ncurses' libs on github, but they are all very complex compared
<davividal> to bash + ruby approach.
dangerousdave has joined #ruby
danjordan has quit [Quit: danjordan]
blackmesa has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
jmurray has joined #ruby
lkba has joined #ruby
_justin has joined #ruby
Rahul_Roy has joined #ruby
danshultz has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<pagioss> hi all, which library can i use to detect keystrokes and do some action based on that/
<pagioss> need torun headless..
blackmesa has joined #ruby
ahmdrefat has joined #ruby
nopc0de is now known as zz_nopc0de
oo_ has quit [Remote host closed the connection]
Soda has joined #ruby
chrisseaton has joined #ruby
reference-lost has quit [Remote host closed the connection]
<lolmaus> I would like an equivalent of `.reject!` that would remove items from array and return an array of removed items. Is there a built-in method for that? PS I'm operating a HUGE array, 400 MB jsonified.
reference has joined #ruby
oo_ has joined #ruby
<sweeper> hmm. can I have a class and a module with the same name? e.g. MyLib::FooBar.new(yadda yadda), Mylib::FooBar::ThingInside
_justin has quit [Quit: _justin]
minver has joined #ruby
Emmanuel_Chanel has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
subraminion has quit [Quit: Computer has gone to sleep.]
subraminion has joined #ruby
rm_ has joined #ruby
<pagioss> can i catch the keystrokes if i am not highlighting the ruby program console? like listen to any keystroke anytime it is pressed
nateberkopec has joined #ruby
eka has joined #ruby
<pagioss> ill use the ncurse library thanks anwyas
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
axilla has joined #ruby
danjordan has joined #ruby
eka has quit [Client Quit]
<shvelo> pagioss, you need direct access to the keyboard
<shvelo> not sure how :D
nateberkopec has quit [Client Quit]
subraminion has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
rm_ has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
jespada has joined #ruby
danijoo has joined #ruby
dwayhs has joined #ruby
Doxin has joined #ruby
reference has quit [Remote host closed the connection]
<Doxin> I'm getting Errno::EACCES: Permission denied on a folder that has +rwx for everyone. what gives?
axilla has quit [Ping timeout: 276 seconds]
kaipaesslercom has left #ruby [#ruby]
nateberkopec has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
pontiki has joined #ruby
timgauthier has joined #ruby
yubrew has joined #ruby
skaflem has quit [Ping timeout: 265 seconds]
ta has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
karupa is now known as zz_karupa
cescalante is now known as ce_afk
Bira has joined #ruby
sk87 has joined #ruby
rails426 has quit []
linojon has quit [Quit: linojon]
oo_ has quit [Remote host closed the connection]
reference has joined #ruby
_justin has joined #ruby
andikr has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
moritzs has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
Bira has quit [Ping timeout: 258 seconds]
subraminion_ has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
kitak has joined #ruby
subraminion has quit [Ping timeout: 276 seconds]
shredding has joined #ruby
alex88 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
reference-lost has joined #ruby
ahmdrefat has quit [Quit: Computer has gone to sleep.]
ahmdrefat has joined #ruby
reference has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 252 seconds]
<davividal> Doxin: what about parent folder?
bal has quit [Quit: bal]
<Doxin> davividal: got write access there too
bal has joined #ruby
<Doxin> davividal: three folders up or so is all +rwx
Dreamer3 has joined #ruby
ahmdrefat has quit [Ping timeout: 252 seconds]
<davividal> Doxin: what about bash? Can you stat the target directory from CWD?
<Doxin> can I what the what from what ._.
bal has quit [Client Quit]
<davividal> Doxin: $ cd my-ruby-project ; stat target-dir
<Doxin> oh
blackmesa has quit [Ping timeout: 276 seconds]
<Doxin> davividal: it's run from the webserver
<Doxin> davividal: it's not allowed to mkdir for some reason: http://paste.pound-python.org/show/s96x6gX3cVyal9ucUw2G/
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<davividal> Doxin: sudo -u www-data stat target-dir
<Doxin> that works
yfeldblum has joined #ruby
<davividal> Doxin: output?
blackmesa has joined #ruby
fabrice31 has joined #ruby
thisirs has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
supermarin has joined #ruby
axilla has joined #ruby
Gabri has quit [Remote host closed the connection]
mjs2600 has joined #ruby
elaptics`away is now known as elaptics
Gabri has joined #ruby
thisirs has joined #ruby
bal has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
olivier_bK has quit [Remote host closed the connection]
<Doxin> davividal: any clue?
yfeldblum has quit [Ping timeout: 258 seconds]
paulfm has joined #ruby
St_Marx has joined #ruby
sigurding has quit [Quit: sigurding]
parallax-lawrenc has joined #ruby
olivier_bK has joined #ruby
<parallax-lawrenc> Hey guys, sorry - bit of a ruby noob unfortunately and was wondering if anyone could lend a hand. I’m trying to write an OpsWorks recipe that loops through an array but am getting a “no implicit conversion of String into Integer” error
<parallax-lawrenc> sample code:
Gabri_ has joined #ruby
<parallax-lawrenc> <% @node[:opsworks][:layers]['expose-servers'][:instances].each do |backend| -%>
<parallax-lawrenc> backend <%= backend['private_dns_name'] %>
alex88 has joined #ruby
Gabri has quit [Ping timeout: 258 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<canton7-mac> parallax-lawrenc, one of those is an array, and you're treating it like a hash
<parallax-lawrenc> Yeah, I did a bit of digging and came to the same conclusion
<canton7-mac> either '@node[:opsworks][:layers]' is an array, or 'backend' is
<parallax-lawrenc> ok, I think I understand
<parallax-lawrenc> sorry, i’m coming from php
moritzs has joined #ruby
<canton7-mac> :P
<tobiasvl> HAIL SATAN
<parallax-lawrenc> haha yeah yeah, i knew you’d say that ;)
<parallax-lawrenc> so i think @node[:opsworks][:layers] must be the hash
<parallax-lawrenc> as it isn’t numerically-indexed
<tobiasvl> yes parallax-lawrenc
<canton7-mac> an array is numerically-indexed
<tobiasvl> they're all hashes
<canton7-mac> a hash is indexed by anything
<tobiasvl> node is a deeply nested hash
<parallax-lawrenc> awesome. and i’m guessing i’m treating backend as a hash when it should actually be an array?
<parallax-lawrenc> yeah, so lots of [:value][:value]
<sweeper> what is the formatting called when you have a bunch of assignment operations in a row, and you line them up so the ='s are on the same column?
benzrf|offline is now known as benzrf
jtdowney has joined #ruby
<parallax-lawrenc> mmmh an array?
alexju has joined #ruby
<tobiasvl> sweeper: baybe continuation indentation
<parallax-lawrenc> oh. sorry, wrong person
yalue has joined #ruby
<tobiasvl> parallax-lawrenc: yes it seems like it. depends what line gives that error
<parallax-lawrenc> it’s the second one, the one with backend in
<tobiasvl> it's possible @node[:opsworks][:layers] is an array too
<tobiasvl> yeah okay
<tobiasvl> then that one's an array
supermarin has quit [Ping timeout: 258 seconds]
<parallax-lawrenc> it *might* be but i wasn’t getting that error from opsworks before i added the second line
fantazo has quit [Ping timeout: 252 seconds]
<parallax-lawrenc> i’m not sure if you do any consultancy but i’m more than happy to pay for half an hour on skype to figure this out?
<sweeper> tobiasvl: http://pastebin.com/DL4zg1kA
<tobiasvl> oh like that
jamto11 has joined #ruby
Bira has joined #ruby
<tobiasvl> I thought you meant like a = b\ = c\ = 3
<pagioss> test.rb:15: uninitialized constant Curses::Key::KEY_BACKSPACE (NameError)
<pagioss> any idea?
<Doxin> davividal: help? ;_;
<tobiasvl> pagioss: the constant Curses::Key::KEY_BACKSPACE is not initialized ;P
Zenigor has joined #ruby
tier has joined #ruby
<pagioss> i removed KEY it is fine
alexju has quit [Remote host closed the connection]
jrhe has joined #ruby
kpshek has joined #ruby
DaniG2k has quit [Quit: leaving]
<pagioss> what is meant by KEY_C1 .. 3 in http://docs.ruby-lang.org/en/2.0.0/Curses.html
<pagioss> which buttons are these
rails426 has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
qwyeth has joined #ruby
Megtastique has joined #ruby
<parallax-lawrenc> sorry guys, still struggling with this hash/array issue
duggiefresh has joined #ruby
jtdowney has quit []
Squarepy has quit [Quit: Leaving]
setra has joined #ruby
<oddmunds> sweeper: maybe "alignment of asssignments" or something like that
Vaporware has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
anaeem1_ has quit [Remote host closed the connection]
olivier_bK has quit [Remote host closed the connection]
rm_ has joined #ruby
reference-lost has quit [Remote host closed the connection]
vpretzel has joined #ruby
reference has joined #ruby
sk87 has joined #ruby
chrisseaton has quit []
chipotle has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
rm_ has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
<lolmaus> I've got a tree-like structure of hashes. E. g. `{id: 'Foo', children: []}. What is the simpliest method to calculate the number of items in the tree?
blackmesa has quit [Ping timeout: 258 seconds]
yubrew has joined #ruby
foooobear has quit [Quit: Computer has gone to sleep.]
ta has joined #ruby
chipotle has quit [Client Quit]
kiri has joined #ruby
timonv has quit [Remote host closed the connection]
reference has quit [Ping timeout: 252 seconds]
parallax-lawrenc has quit [Quit: parallax-lawrenc]
reference has joined #ruby
<oddmunds> lolmaus: the children array is full of hashes like the parent?
<sweeper> oddmunds: that was it, although the sublime package doesn't seem to be working D:
<lolmaus> oddmunds: yes sir
<lolmaus> oddmunds: i can only think of writing a custom recursive function. But i thought maybe Ruby has some sugary magic for that.
<jpic> hi all, i don't understand how to get the list of attributes of an object
yubrew has quit [Ping timeout: 265 seconds]
tkuchiki_ has joined #ruby
<oddmunds> lolmaus: it has flatten, but that doesn't work across hashes and arrays, i think
mjs2600 has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
ikaros has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
Quadlex has left #ruby [#ruby]
cescalante is now known as ce_afk
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
lw has joined #ruby
tkuchiki_ has quit [Ping timeout: 265 seconds]
ltdl has joined #ruby
dwayhs has quit [Quit: Computer has gone to sleep.]
sski has joined #ruby
davedev24_ has joined #ruby
Hanmac has joined #ruby
chipotle has quit [Quit: cya]
SCommette has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
<jpic> hi all, what's the most ruby-ish way to do this ? http://dpaste.com/35NTJGF/
<jpic> i'm sure there's a one-liner just like there would be in python
paulfm has quit []
sinkensabe has quit [Remote host closed the connection]
<ghr> jpic map
doodlehaus has joined #ruby
sinkensabe has joined #ruby
basldex has joined #ruby
<basldex> hi
<basldex> hi
<basldex> can I somehow reconstruct a Proc object by its source_location or anything like that?
<jpic> ghr: thanks for trying, i don't think i'm smart enough to make it with the 3 lines of desc and single example in the manual http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-map oh well ;D
mjs2600 has joined #ruby
<jpic> way cool !! thanks a heap ghr !
<ghr> no problem
dwayhs has joined #ruby
Zenigor has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Zenigor has joined #ruby
meatherly has joined #ruby
Zenigor has quit [Read error: Connection reset by peer]
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
Zenigor has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Bira has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
LadyRainicorn has joined #ruby
subraminion_ has quit [Quit: Computer has gone to sleep.]
reference has quit [Remote host closed the connection]
subraminion_ has joined #ruby
reference has joined #ruby
tkuchiki has joined #ruby
<Mon_Ouie> basldex: No. A proc is not just code, it also captures the environment around it (what's self, the values of local variables around it, where to look up constants, in which class methods are to be defined, etc.)
dwayhs has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
subraminion_ has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
reference has quit [Ping timeout: 252 seconds]
subraminion_ has joined #ruby
supermarin has joined #ruby
Advocation has quit [Quit: Advocation]
dwayhs_ has joined #ruby
timonv has joined #ruby
cescalante is now known as ce_afk
yfeldblum has quit [Ping timeout: 258 seconds]
pallavi_ has joined #ruby
rm_ has joined #ruby
mjsmith2 has joined #ruby
bruno- has joined #ruby
supermarin has quit [Ping timeout: 258 seconds]
Ankhers has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
cocotton has joined #ruby
piukeman has joined #ruby
ascarter has joined #ruby
chrisseaton has joined #ruby
jambolina has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
doev has joined #ruby
Advocation has joined #ruby
<doev> "gem list" show me two installed versions of a software. How can I set, wich version ist used?
subraminion_ has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
jambolina has joined #ruby
subraminion_ has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
jimmyhoughjr has quit [Quit: jimmyhoughjr]
endash has joined #ruby
jimmyhoughjr has joined #ruby
sdelmore has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sski has quit [Remote host closed the connection]
<shevy> normally it does that
<shevy> foo (0.0.1, 0.0.2)
sski has joined #ruby
<shevy> I think it will always default to the highest
sambao21 has joined #ruby
alexju has joined #ruby
paulfm has joined #ruby
krz has joined #ruby
tesuji has quit [Ping timeout: 252 seconds]
diegoviola has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
sski has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
theRoUS` is now known as theRoUS
<canton7-mac> there's a flag to specify the version to install
qhartman_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
diegoviola has joined #ruby
lotherk has left #ruby [#ruby]
mary5030 has joined #ruby
yubrew has joined #ruby
rgiscard has joined #ruby
SCommette has quit [Quit: SCommette]
theRoUS is now known as theRoUS|foo
theRoUS|foo is now known as theRoUS
moneydouble has joined #ruby
bmurt has joined #ruby
qhartman has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
cocotton has quit [Remote host closed the connection]
olivier_bK has joined #ruby
g0bl1n has joined #ruby
Gabri_ has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
jamto11 has joined #ruby
yubrew has quit [Ping timeout: 258 seconds]
segfalt has joined #ruby
MindfulMonk has quit [Quit: Have fun]
ahmdrefat has joined #ruby
MindfulMonk has joined #ruby
nateberkopec has joined #ruby
merceris_ has quit [Quit: Computer has gone to sleep.]
thesheff17 has joined #ruby
fantazo has joined #ruby
maroloccio has joined #ruby
baweaver has joined #ruby
ltdl has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
anaeem1_ has joined #ruby
failshell has joined #ruby
echevemaster has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
ryanleesipes has joined #ruby
bruno- has quit [Quit: leaving]
WillAmes has quit [Remote host closed the connection]
agarie has joined #ruby
WillAmes has joined #ruby
eka has joined #ruby
<davividal> Doxin: sorry, no idea. Your permission seems to be OK.
<Doxin> dang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
claymore has joined #ruby
SCommette has joined #ruby
basldex has quit [Quit: leaving]
timonv has joined #ruby
Rainicorn has joined #ruby
sdelmore has quit [Quit: Leaving.]
rayners has joined #ruby
dawkirst has quit [Remote host closed the connection]
havenwood has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
marahin has quit [Ping timeout: 252 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
ntesir has joined #ruby
sski has joined #ruby
EagleDelta has joined #ruby
cocotton has joined #ruby
franzip has joined #ruby
SCommette has quit [Client Quit]
timonv has quit [Ping timeout: 252 seconds]
vadzimt has joined #ruby
SCommette has joined #ruby
WishBoy has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
dawkirst has joined #ruby
chipotle has joined #ruby
Muz_ is now known as Muz
shvelo has quit [Ping timeout: 252 seconds]
vpretzel is now known as vpretzel|1420
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
kevind has joined #ruby
pu22l3r has joined #ruby
snath has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
s3ri0us has joined #ruby
tagrudev has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
nathancahill has joined #ruby
Gabri has joined #ruby
rizzatti has joined #ruby
dblessing_ has joined #ruby
kies`prime has joined #ruby
tier has joined #ruby
timonv has joined #ruby
kies has quit [Ping timeout: 258 seconds]
danjordan has quit [Quit: danjordan]
ffranz has joined #ruby
lmickh has joined #ruby
mengu has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
glenfe has joined #ruby
supermarin has joined #ruby
ixti has joined #ruby
subraminion_ has quit [Ping timeout: 245 seconds]
kiri has quit [Read error: Connection reset by peer]
ta has joined #ruby
nowthatsamatt has joined #ruby
TwinkleHood has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
kies`prime has quit [Quit: baaaaiiiiiiiiiii~]
yfeldblum has quit [Ping timeout: 265 seconds]
kies has joined #ruby
Ankhers has quit [Remote host closed the connection]
ce_afk is now known as cescalante
supermarin has quit [Ping timeout: 258 seconds]
Ankhers has joined #ruby
qwyeth has quit [Ping timeout: 245 seconds]
zz_nopc0de is now known as nopc0de
blackmesa has joined #ruby
dik_dak has joined #ruby
treehug88 has joined #ruby
b1205 has joined #ruby
toastynerd has joined #ruby
qhartman_ is now known as qhartman
ryanleesipes has quit [Quit: Leaving]
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
qwyeth has joined #ruby
nathancahill has quit [Quit: nathancahill]
Advocation has joined #ruby
b1205 has quit [Ping timeout: 264 seconds]
Gabri has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
mercerist has joined #ruby
memorozovm has quit [Remote host closed the connection]
cescalante is now known as ce_afk
kiri has joined #ruby
toastynerd has quit [Remote host closed the connection]
rails426 has quit []
JasmeetQA has joined #ruby
axilla has quit [Ping timeout: 258 seconds]
Xeago has joined #ruby
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
NukePuppy has joined #ruby
axilla has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ce_afk is now known as cescalante
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s3ri0us has joined #ruby
arrubin has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
moneydouble has quit [Quit: Leaving.]
phrozen7- has quit [Changing host]
phrozen7- has joined #ruby
geggam has joined #ruby
thesheff17 has joined #ruby
sk87 has joined #ruby
s2013 has joined #ruby
bal has quit [Quit: bal]
x0nic has joined #ruby
noop has quit [Ping timeout: 252 seconds]
noop has joined #ruby
OffTheRails has joined #ruby
vpretzel|1420 is now known as vpretzel|674
Gabri has joined #ruby
sk87 has quit [Client Quit]
jprovazn is now known as jprovazn_afk
shvelo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle_ has joined #ruby
apeiros has joined #ruby
benzrf is now known as benzrf|offline
relix has joined #ruby
garndt has joined #ruby
jxf has joined #ruby
chipotle has quit [Ping timeout: 276 seconds]
vadzimt has joined #ruby
beatdown has left #ruby [#ruby]
DaniG2k has quit [Quit: leaving]
cantonic has joined #ruby
Maitiu has quit []
Macaveli has quit [Ping timeout: 252 seconds]
enebo has joined #ruby
moted has joined #ruby
tobago has quit [Remote host closed the connection]
codeurge has joined #ruby
shock_one has quit [Remote host closed the connection]
vadzimt has quit [Client Quit]
chipotle has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
OffTheRails has quit [Ping timeout: 258 seconds]
chipotle_ has quit [Ping timeout: 252 seconds]
wuest has quit [Quit: :q]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shvelo> Ahoy
<doev> shevy, "nameOfGem _Version_" is the way you can choose from different installed versions.
vadzimt has joined #ruby
danshultz has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
danshultz has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
dwayhs_ has quit [Quit: Computer has gone to sleep.]
<GeorgesLeYeti> I try to make a ruby script but i have problem on this line: line1 = main[:text].truncate(main[:text].length/2, separator: ' ', omission: '') + "\n"
b00stfr3ak has joined #ruby
<GeorgesLeYeti> It says: undefined method `truncate' for #<String:0x00000002b179c8> (NoMethodError)
s2013 has joined #ruby
sdelmore has joined #ruby
benzrf|offline is now known as benzrf
<havenwood> GeorgesLeYeti: #rubyonrails
<GeorgesLeYeti> I guess it's because truncate is a ruby on rails func but how could i include it ?
terrell_t is now known as terrellt
<GeorgesLeYeti> havenwood: ok
<havenwood> GeorgesLeYeti: oh, if you're wanting to cherry pick it here is fine
LadyRainicorn has joined #ruby
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> GeorgesLeYeti: maybe: require 'active_support/core_ext/string/filters'
banister has joined #ruby
vadzimt has joined #ruby
Rainicorn has quit [Ping timeout: 276 seconds]
moneydouble has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
vadzimt has quit [Client Quit]
<GeorgesLeYeti> havenwood: ty a lot. It works
<shevy> havenwood answers ruby questions
<shevy> and saves kittens
omosoj has joined #ruby
<havenwood> shevy: coffeetime!
<shvelo> hey shevy
RaptorJesus has quit [Ping timeout: 272 seconds]
<sdelmore> Is there any way to install ruby 2.1.2 for use with rbenv without compiling? Can I download a compiled version somewhere?
skysploit has joined #ruby
OffTheRails has joined #ruby
anaeem1 has joined #ruby
NinoScript has quit [Ping timeout: 255 seconds]
<segfalt> sdelmore: Not sure about rbenv, but rvm will attempt to find a compiled archive if it can. Otherwise it will build for you. Ruby doesn't take too long to compile on anything recent-ish. 2-4 minutes?
<sdelmore> It isn't a compile time issue. I have spent many hours trying to get Ruby 2.1 to build on my system and keep getting openssl issues. I realized I am wasting my time as I don't really care about openssl, I just want to use ruby 2.1.
i_s has quit [Remote host closed the connection]
<sdelmore> Just can't figure out how to install it. I have been using rbenv for work but maybe that just won't work for me.
<segfalt> sdelmore: Ah, hmm.
<segfalt> You could try rvm, just for fun.
<segfalt> What's your OS?
<sdelmore> Mavericks
<segfalt> do you have HomeBrew installed?
<terrellt> Have you updated ruby-build?
<havenwood> sdelmore: You can install a precompiled binary if available, but there isn't one for 2.1.1 *yet*.
NinoScript has joined #ruby
<sdelmore> Any idea if rvm and rbenv being on the same system is asking for trouble?
<terrellt> I've got 2.1.1 running from rbenv right this second.
* segfalt isn't familiar with rbenv :-(.
<sdelmore> havenwood: Thanks, maybe I just wait for it.
mrnugget has quit [Ping timeout: 252 seconds]
redondo has joined #ruby
<sdelmore> Been wanting to try out 2.1. 2.1.1 has some issues with rails, I know they are fixed in 2.1.2 so I was trying to get that. How did you determine if there was a 2.1.2 build available so I can keep an eye out?
chipotle has quit [Quit: cya]
sski has quit [Remote host closed the connection]
<segfalt> I've built 2.1.2 with rvm on mavericks, without doing anything special except setting up Xcode/HomeBrew.
sski has joined #ruby
heftig has quit [Quit: Quitting]
<havenwood> sdelmore: If you're okay with 2.1.1, use the SM Framework precompiled binary.
<sdelmore> I don't think it is anything mavericks specific, I think it is because my work had me turn on fips mode in openssl and now it won't go away. But since solving that particular problem has proven beyond me or anyone at my office I was trying to take another approach.
<havenwood> you don't need to use RVM to use RVM's precompiled binaries
<havenwood> sdelmore: the binary i linked above is for 10.9
<havenwood> sdelmore: just move it to ~/.rbenv/versions
<havenwood> sdelmore: you don't need to install rvm to use its precompiled binaries
<havenwood> sdelmore: You could query mpapis in #rvm if there are any blockers on it.
<havenwood> sdelmore: the link above i posted is where it'll land
Burgestrand has quit [Quit: Burgestrand]
elabs-developer has quit [Quit: elabs-developer]
zorak has joined #ruby
<redondo> in ruby classes, is '@' equivalent to python's 'self', or 'this' in others?
andikr has quit [Remote host closed the connection]
<hoelzro_> kinda
fabrice31 has quit [Remote host closed the connection]
Kricir has joined #ruby
hoelzro_ is now known as hoelzro
<hoelzro> @ is used to access instance vars
Megtastique has quit []
<hoelzro> Ruby also has self
<sdelmore> havenwood: So I just download the tar and untar it into the rbenv directory for 2.1.1?
jimmyhoughjr has quit [Quit: jimmyhoughjr]
jilk23 has quit [Quit: jilk23]
<redondo> hoelzro, what are the differences between them (@ and self)?
<hoelzro> well, @ isn't anything by itself
<hoelzro> self is an actual object
<redondo> ok
<redondo> ok
<redondo> get it
<redondo> so I could use this.instance_var and algo @instance_var?
yfeldblum has joined #ruby
oo_ has joined #ruby
<hoelzro> well
<hoelzro> self.instance_var will be a method call
rippa has joined #ruby
<havenwood> sdelmore: yup
<hoelzro> and it also won't work if instance_var is private
<redondo> ok
<havenwood> sdelmore: that's it
anaeem1 has quit [Remote host closed the connection]
<sdelmore> havenwood: I'll take a shot. Thank you.
<hoelzro> since you must always call private methods without explicit self
sski has quit [Ping timeout: 245 seconds]
<redondo> ok
<hoelzro> if you have public accessors, they're functionally equivalent
<hoelzro> but
<hoelzro> I personally would prefer the method call, because then you can alter its implementation later if needed
<redondo> right
oo_ has quit [Read error: Connection reset by peer]
<redondo> in general, it is not good idea to have public accessors, right?
<redondo> hoelzro,
supermarin has joined #ruby
oo_ has joined #ruby
Vaporware has quit [Quit: Page closed]
zigomir has quit [Remote host closed the connection]
DrinkMachine has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
<segfalt> redondo: You mean like attr_reader vs def attr; @attr; end ?
DrinkMachine has quit [Client Quit]
s3ri0us is now known as s3ri0us|away
s3ri0us|away is now known as s3ri0us
yfeldblum has quit [Ping timeout: 264 seconds]
<redondo> segfalt, sorry, dont get it, still starting to know ruby syntax
<shevy> redondo why is it not a good idea
<shevy> how else do you want to access to internal state from the outside
rgiscard` has joined #ruby
marcdel has joined #ruby
<segfalt> A public reader on an object called Person for an attribute called height can be defined with attr_reader :height, or def height; return @height; end -- they're the same thing.
gregf has quit [Quit: WeeChat 0.4.3]
<segfalt> And there is nothing bad about them, at all.
supermarin has quit [Ping timeout: 252 seconds]
oo_ has quit [Ping timeout: 240 seconds]
<redondo> segfalt, ok, thanks.
Gabri has quit [Remote host closed the connection]
oo_ has joined #ruby
<hoelzro> public accessors are find
<hoelzro> *fine
<hoelzro> you just shouldn't go crazy
<segfalt> I actually really hate private accessors
<hoelzro> you may be thinking (assuming a Java background here) about public int myField;
<hoelzro> that's bad in Java because your fields are now part of the implementation
marcdel_ has joined #ruby
<hoelzro> Ruby doesn't have that problem, because all instance variables are private
<hoelzro> you may only access them with accessors
rbb has joined #ruby
<sdelmore> havenwood: That worked! Thank you.
hamakn has quit [Remote host closed the connection]
rgiscard has quit [Ping timeout: 240 seconds]
<redondo> hoelzro, shevy, ok, get it.
aspires has joined #ruby
<redondo> segfalt, what do you mean by private accesors?
<redondo> accessors
<segfalt> You can technically define an accessor method as private and use in other instance methods. It's gross.
pallavi_ has quit [Quit: Connection closed for inactivity]
marcdel has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<segfalt> Nothing you should worry about, or do. :-)
momomomomo has quit [Quit: momomomomo]
andrewjanssen has joined #ruby
<redondo> segfalt, ok.
<shevy> don't you call my code gross!!!
LekeFly has quit [Ping timeout: 258 seconds]
tier has quit [Remote host closed the connection]
phinfonet has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<segfalt> :-(
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
ktun has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Trev_ has joined #ruby
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
Trev_ is now known as DrinkMachine
DrinkMachine has quit [Changing host]
DrinkMachine has joined #ruby
Megtastique has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<ntesir> sdelmore: it seems like you lib libssl-dev?
oo_ has joined #ruby
mengu has quit [Remote host closed the connection]
<sdelmore> ntesir: Someone mentioned openssl-dev but I didn't know how to install it. I don't actually know what openssl is needed for but I know when I do openssl version all I get is "FIPS mode not supported.".
memorozovm has joined #ruby
Gnubie__ has quit [Remote host closed the connection]
Gnubie_ has joined #ruby
anaeem1_ has joined #ruby
kiri has quit [Quit: Leaving]
wallerdev has joined #ruby
rm_ has quit [Remote host closed the connection]
except has joined #ruby
tcstar has quit [Ping timeout: 276 seconds]
zeroXten has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
SOLEIL has joined #ruby
minver has quit [Quit: Page closed]
segfalt has quit []
flagg0204 has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
_justin has joined #ruby
<zeroXten> hi all. Give variables like x_path = "a.b.c"; x_value = 1; y_path = "a.d.e"; y_value = e how do I best turn that into a nest hash like "{ :a => { :b => { :c => 1 }, :d => { :e => 2 } } }". Obviously splitting on '.' first etc. I managed to get it to work for just one merge (ie. x) but if I try two then y override x at :a. Any hints?
memorozovm has quit [Ping timeout: 258 seconds]
mercerist has quit [Read error: Connection reset by peer]
NinoScript has quit [Ping timeout: 252 seconds]
OffTheRails has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
<zeroXten> uhh, variables should be: x_path = "a.b.c"; x_value = 1; y_path = "a.d.e"; y_value = 2
axilla has quit [Ping timeout: 264 seconds]
shredding has quit [Ping timeout: 264 seconds]
cina has joined #ruby
SOLEIL has quit [Quit: MegaIRC v4.06 http://ironfist.at.tut.by]
shevy has quit [Ping timeout: 252 seconds]
paulfm has quit []
NinoScript has joined #ruby
subbyyy_ has joined #ruby
dpswireless has joined #ruby
bradhe has joined #ruby
segfalt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
shvelo has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
paulfm has joined #ruby
ahmdrefat has quit [Quit: Computer has gone to sleep.]
SOLEIL has joined #ruby
mengu has joined #ruby
ahmdrefat has joined #ruby
<apeiros> zeroXten: result = {}; *base, last = *path.split("."); base.inject(result) { |h,k| h[k] ||= {} }[last] = value; result # once with path,value = x_path,x_value and once for y
toastynerd has joined #ruby
phansch has joined #ruby
_justin has quit [Quit: _justin]
lkba has quit [Ping timeout: 265 seconds]
mengu has quit [Remote host closed the connection]
smathieu has joined #ruby
enricostn has joined #ruby
jambolina has quit [Ping timeout: 240 seconds]
jimmyhoughjr has joined #ruby
sambao21 has joined #ruby
b1205 has joined #ruby
axilla has joined #ruby
phutchin1 has joined #ruby
cocotton has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
<zeroXten> wait .. is that inside a function definition?
hamakn has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
snath has joined #ruby
<apeiros> zeroXten: doesn't matter
ahmdrefat has quit [Ping timeout: 252 seconds]
<apeiros> I would certainly put it into a method
maletor has quit [Quit: Computer has gone to sleep.]
ptierno_ has joined #ruby
<enricostn> hi there, I have a module Alfa that I need to extend in another module Beta and include it in a class Teta (that will be instantiated). The problem is that Alfa defines a default constant PAPPA that including/extending classes/modules should be able to override
timonv has quit [Remote host closed the connection]
<enricostn> Alfa has a method that call self::PAPPA
phutchins has quit [Ping timeout: 252 seconds]
dEPy has joined #ruby
<enricostn> but I get <Teta:0x007f9b30b27028> is not a class/module (TypeError)
<enricostn> any idea?
olivier_bK has quit [Quit: Quitte]
<enricostn> for the moment I just created a method in Alfa instead of a constant
krz has quit [Quit: WeeChat 0.4.3]
tubuliferous has quit [Quit: Leaving]
<enricostn> so I can easily override it
lethjakman has joined #ruby
<zeroXten> apeiros: hmmm, i think i'm still doing something wrong... http://pastebin.com/8VWhyGak
<zeroXten> i get a similar result as before
mjuszczak has quit [Ping timeout: 252 seconds]
koderok has joined #ruby
danshultz has quit [Remote host closed the connection]
shevy has joined #ruby
danshultz has joined #ruby
koderok has quit [Client Quit]
shvelo has joined #ruby
Companion has left #ruby ["Leaving"]
danshultz has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
koderok has joined #ruby
<zeroXten> ah, i've got it
marcdel_ has quit []
michaeldeol has joined #ruby
momomomomo has joined #ruby
Morkel has quit [Quit: Morkel]
maestrojed has joined #ruby
jobewan has joined #ruby
lkba has joined #ruby
maletor has joined #ruby
binaryhat has joined #ruby
Macaveli has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
setra has quit [Ping timeout: 264 seconds]
axilla has quit [Ping timeout: 252 seconds]
echevemaster is now known as alexlove
brutalbutler has quit [Remote host closed the connection]
alexlove is now known as echevemaster
zigomir has joined #ruby
LekeFly has joined #ruby
SOLEIL has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
cina has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
s3ri0us has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
axilla has joined #ruby
<ntesir> sdelmore: what's your OS?
koderok has quit [Ping timeout: 252 seconds]
ra4king has quit [Ping timeout: 252 seconds]
zigomir has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
dEPy has quit [Quit: Lingo - http://lingoirc.com]
ra4king has joined #ruby
SOLEIL has joined #ruby
anarang has quit [Quit: Leaving]
michaeldeol has left #ruby ["Textual IRC Client: www.textualapp.com"]
canton7-mac has quit [Remote host closed the connection]
DrShoggoth has quit [Ping timeout: 252 seconds]
zigomir has quit [Ping timeout: 264 seconds]
deric_skibotn has joined #ruby
DrShoggoth has joined #ruby
claudiop has joined #ruby
mradmacher has quit [Quit: leaving]
EatMulti has joined #ruby
tvw has quit []
momomomomo has quit [Quit: momomomomo]
<claudiop> Hi. (Newbie question) How is a symbol any different from a global constant?
rm_ has quit [Remote host closed the connection]
<apeiros> claudiop: a symbol is an object, a constant is a variable
mikecmpbll has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
SOLEIL has quit [Quit: MegaIRC v4.06 http://ironfist.at.tut.by]
Doxin has quit [Remote host closed the connection]
alex88 has quit [Quit: Leaving...]
robert_ has quit [Read error: Connection reset by peer]
<apeiros> claudiop: i.e. you can call methods on a symbol, you can assign a symbol to a variable. you can't call a method on a constant (you call methods on the object it references), you can't assign a constant to a variable (you'll assign the object it references)
<apeiros> or in other words: a symbol is the same different from a constant as a string is.
<apeiros> or an integer. or an array.
j_mcnally has joined #ruby
rizzatti has quit [Quit: Leaving...]
oo_ has joined #ruby
subbyyy_ has quit [Ping timeout: 265 seconds]
thisirs has quit [Read error: Connection reset by peer]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_justin has joined #ruby
cantonic has quit [Ping timeout: 264 seconds]
supermarin has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
EatMulti has quit [Remote host closed the connection]
Tamal has joined #ruby
danijoo has joined #ruby
Freddan962 has joined #ruby
momomomomo has joined #ruby
wallerdev has quit [Quit: wallerdev]
<claudiop> apeiros: I understood but not totally. You cast methods on a symbol? How do you tell the simbol of an object?
<claudiop> *symbol
<ntesir> yeah, a symbol is _data_, a variable is just some dumb reference to data
<ntesir> correct me if I'm wrong, I don't know ruby.
dumdedum has quit [Quit: foo]
yfeldblum has quit [Ping timeout: 240 seconds]
<ericwood> a symbol is a reference to a string stored once in memory
<apeiros> claudiop: as said, a symbol *is* an object. just like a string or an integer is an object.
<ericwood> the idea being you can use them all over and they all point to the same thing without the overhead of creating new strings, etc.
<apeiros> >> x = :foo; x.class
<eval-in__> apeiros => Symbol (https://eval.in/155800)
cocotton has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
<apeiros> >> :foo.class
<eval-in__> apeiros => Symbol (https://eval.in/155801)
<ericwood> it's ruby, everything is an object!
spyderman4g63 has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> ericwood: well, not everything. as just established, variables are not :)
omosoj has quit [Ping timeout: 276 seconds]
<ntesir> ericwood: that sounds weird
<ericwood> apeiros: ur face is a object
RaptorJesus has joined #ruby
<ericwood> ntesir: no it's awesome
<apeiros> ericwood: I object!
<ntesir> ruby actually allocates a string? You can ask a symbol its name?
yfeldblum has joined #ruby
<ericwood> yes
<ericwood> >> :foo.to_s
<eval-in__> ericwood => "foo" (https://eval.in/155802)
<ericwood> :D
<ericwood> :D:D:D:D:D:D
<ericwood> coincidentally symbols are great because they look like smilies
<toretore> ntesir: a symbol is just an immutable singleton string
Valesk has joined #ruby
<ericwood> ^^^^^
AntelopeSalad has joined #ruby
<ericwood> they also don't get deallocated
_justin has quit [Client Quit]
<Freddan962> Dear Rubyists - what is a 'nicer' way to do this? "weather_data.each{|data| data = split_line(data)}
<Freddan962> #weather_data.each{|data| data = encode_line(data)}"?
oo_ has quit [Ping timeout: 276 seconds]
<apeiros> ericwood: that may not hold true for much longer, though
<ericwood> iirc tenderlove did something where he ruined his machine by allocating them until it crashed :)
<apeiros> ruby 2.2 has experimental gc for symbols
diegoviola has quit [Quit: WeeChat 0.4.3]
supermarin has quit [Ping timeout: 264 seconds]
<ericwood> nice
timonv has joined #ruby
<toretore> Freddan962: well, firstly, that's not going to work
blackmesa has quit [Ping timeout: 258 seconds]
JasmeetQA has quit [Ping timeout: 265 seconds]
_justin has joined #ruby
<Freddan962> toretore: It is working if you overlook the comment :P
s2013 has quit [Ping timeout: 252 seconds]
<toretore> define working
<ericwood> Freddan962: weather_data.map!(&:split_line)
<ericwood> assuming I even read that correctly
<claudiop> Let me see if i understood. A symbol is like a number that never changes, and the intrepretor knows it. Whenever you call a symbol it sees which object is assigned to that number and thus is a callable object?
<Freddan962> toretore: It does what it is meant to do.
linoespinoza has joined #ruby
<toretore> that won't work
<toretore> Freddan962: which is?
<apeiros> Freddan962: then either your code isn't how your example is or you're mistaken
<ericwood> claudiop: it's like a pointer to a string, to put it in C terms
koderok has joined #ruby
<apeiros> >> a = [1,2,3]; a.each do |x| x = x*10; end; a
<eval-in__> apeiros => [1, 2, 3] (https://eval.in/155803)
<apeiros> a is not modified
<ericwood> Freddan962: weather_data.map!(&:split_line)
<ericwood> use mine
<ericwood> mine is perfect
<ericwood> I am perfect
<Freddan962> For each element in the array, assign the return value from split_line(element_data)
<ericwood> use mine
<toretore> define assign
<apeiros> ericwood: you should change your nick to "nobody" then :)
simoz111115 has joined #ruby
<ericwood> lol
shvelo has quit [Ping timeout: 240 seconds]
<ericwood> but seriously mine is the right answer
sambao21 has joined #ruby
cocotton has quit [Ping timeout: 252 seconds]
<toretore> undefined method to_proc for nil
elaptics is now known as elaptics`away
<havenwood> Freddan962: map
<ericwood> Freddan962: weather_data.map!(&:split_line)
<havenwood> Freddan962: Gist the code?
<Freddan962> havenwood ericwood: Will gist the code!
<ericwood> Freddan962: weather_data.map!(&:split_line)
cina has joined #ruby
ra4king1 has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<ericwood> just try mine
<claudiop> ericwood, hmm... i think i got the idea, but really must try to make sure :)
blackmesa has joined #ruby
<claudiop> Anyone here writes python?
Macaveli has quit [Ping timeout: 252 seconds]
<Freddan962> Ericwood: private method 'split_line' called for #String<##>
fresham has joined #ruby
<claudiop> Whats the best ide for ruby comparable to pycharm/pydev?
<claudiop> Which suggest everything
sambao21 has quit [Client Quit]
jimmyhoughjr has quit [Quit: jimmyhoughjr]
<ericwood> claudiop: rubymine
<xargoon> sublime
<claudiop> ericwood: *opensource*
<claudiop> xargoon: Sublime doesn't suggests anything, and its not quite free
timonv has quit [Read error: Connection reset by peer]
<ericwood> 90% of ruby devs use a plain text editor and a debugger, not an IDE
RaptorJesus has quit [Ping timeout: 272 seconds]
<toretore> Freddan962: you want to take an array, then run n conversions on its elements before passing it to another method
<ericwood> Freddan962: weather_data.map! { |d| split_line(d) }
tkuchiki has quit [Remote host closed the connection]
<ericwood> Freddan962: my bad
<toretore> Freddan962: look up map
<ntesir> claudiop: emacs + robe + company
qhartman_ has joined #ruby
<claudiop> ericwood, thats better at some point, but not great to begin with :(
<ntesir> claudiop: if you're into masochism
<ericwood> vim + iterm2
timonv has joined #ruby
jambolina has joined #ruby
<ericwood> claudiop: no, it's perfect to begin with
<claudiop> ntesir, linux
ra4king has quit [Ping timeout: 276 seconds]
<ntesir> claudiop: ?
<ericwood> Freddan962: did my revised version work?
<ericwood> I bet it did
LekeFly has joined #ruby
<claudiop> ericwood, Its like start riding bikes without the side wheels. Makes it harder in the beggining
shvelo has joined #ruby
<claudiop> ntesir, 4get, i've read macintosh :b
<ericwood> claudiop: no it doesn't...
<ntesir> claudiop: supported
<ntesir> aquamacs
<ericwood> fall over a few times, you learn the ropes
eldina has joined #ruby
<ericwood> not like your code not working is the same as scraping your knees
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> it's not difficult.. if you don't want to learn vim or emacs right away, start with a simple editor like textedit
<ntesir> anyway, if you want a free IDE, netbeans has ruby support. dunno how good.
_justin has quit [Quit: _justin]
<ericwood> probably shitty
brunops has joined #ruby
<ericwood> pick from the 10000000 FOSS text editor
<ericwood> s
qhartman has quit [Ping timeout: 252 seconds]
<toretore> an ide is only going to get in your way because it sucks
klaut has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
s2013 has joined #ruby
<ericwood> only IDE I've ever seen ruby devs use successfully is rubymine
Hobogrammer has joined #ruby
<toretore> it sucks
<ericwood> agreed
<Freddan962> ericowod: toretore: Will try it
<mg^> Thankfully I don't do anything so big that I need anything more than a simple editor
<claudiop> ntesir: Im not really looking for a good IDE, im looking for a great ruby support, don't really care about the environment, just need the help :b.
<mg^> as long as it does syntax highlighting, I am happy
<ntesir> claudiop: help for what?
<ericwood> Freddan962: I'm leaving, so ask someone else for help if that doesn't work for some reason
* ericwood disappears
<claudiop> ntesir, i mean, code help/suggestions. warnings. Telling me how to format, and suggesting better solutions, like pychar
<fresham> Anyone here use IntelliJ IDEA for rails dev?
<claudiop> Oh well...vim should do the trick
timonv_ has joined #ruby
Tamal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ntesir> claudiop: see this: https://www.youtube.com/watch?v=BQ8D0heKLr4
acrussell has joined #ruby
qhartman_ has quit [Ping timeout: 276 seconds]
jhulten has joined #ruby
<ntesir> claudiop: sorry, wrong vid
shvelo has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 265 seconds]
cina has quit [Ping timeout: 240 seconds]
simoz111115 has quit [Ping timeout: 240 seconds]
<xargoon> fresham: rubymine is afaik basically intellij tailored for ruby
cina has joined #ruby
bigkevmcd has joined #ruby
<xargoon> rubymine is nice, but i just couldn't stand the absolute crap font rendering java has on linux
kotk_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<claudiop> ntesir: That language was way too normal to be ruby(not that ruby sounds like a bad language)... it would also be quite strange to have ruby files ending in .py
chabill has joined #ruby
<ntesir> claudiop: yeah, i guess the ugly syntax gave it away
<ntesir> actually can't find a demo of robe + flycheck + company. go with vim, it's nice.
nanoyak has joined #ruby
schickung has quit [Quit: schickung]
Gabri has joined #ruby
mrnugget has joined #ruby
kotk has quit [Ping timeout: 252 seconds]
omosoj has joined #ruby
alpha123 has joined #ruby
cocotton has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
nanoyak_ has joined #ruby
catphish has quit [Quit: Leaving]
terrell_t has joined #ruby
Advocation has quit [Quit: Advocation]
<Freddan962> How can you undo something you undoed? xD
wallerdev has joined #ruby
<ntesir> Freddan962: not using emacs, I see :-P
<Freddan962> ntesir: Sublime :P
cocotton has quit [Remote host closed the connection]
subbyyy_ has joined #ruby
Igrsrolqak has joined #ruby
_justin has joined #ruby
cocotton has joined #ruby
Spami has joined #ruby
nanoyak has quit [Ping timeout: 252 seconds]
paulfm has quit []
cocotton has quit [Remote host closed the connection]
joonty has quit [Quit: WeeChat 0.4.2]
mjuszczak has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
saarinen has joined #ruby
fantazo has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
doev has quit [Quit: Verlassend]
combusean has joined #ruby
omosoj has quit [Ping timeout: 265 seconds]
<Freddan962> Haha, what the.. http://puu.sh/8WHml.png
claudiop has quit [Quit: Page closed]
<Freddan962> Does anyone know what might be wrong?
rizzatti has joined #ruby
benzrf is now known as benzrf|offline
postmodern has joined #ruby
RaptorJesus has joined #ruby
Igrsrolqak has left #ruby [#ruby]
<Cork> Freddan962: unprintable characters?
<alpha123> ntesir: Vim ;)
<Freddan962> Cork: What do you mean?
paulfm has joined #ruby
<alpha123> (Vim has had emacs-style tree undo since like 7.2 or something)
<Cork> Freddan962: the difference might be in characters not printed
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
RaptorJesus has quit [Max SendQ exceeded]
tier has joined #ruby
<wallerdev> good morning!
<Freddan962> Cork: http://puu.sh/8WHBx.png this is the full message if it could help anything.
<Cork> Freddan962: it doens't what i meant is make a binary or hex value printout
<Cork> you might ex. have 32 and 255 for space or something like that
<Freddan962> Cork: $stdout.string.should == "Day 2 had the biggest variation (26.0 degrees)\n"
<Cork> (there is other not visible difference that can exist in a string)
RaptorJesus has joined #ruby
<Freddan962> Cork: The way i print it out is simply "puts string"
<Cork> Freddan962: yes, but that is the string reprecentation of it
mattmcclure has joined #ruby
nanoyak_ has quit [Quit: Computer has gone to sleep.]
eldina has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
<Cork> not all characters has a visible difference, or is even visible
moritzs has quit [Ping timeout: 252 seconds]
<Cork> Freddan962: basically, that is the only reason i can think of for that output
<Freddan962> Cork: As a Ruby beginner, I have no idea what you are talking about.
rm_ has quit [Ping timeout: 240 seconds]
<Cork> Freddan962: this isn't specifically ruby
mjuszczak has quit [Remote host closed the connection]
linoespinoza has quit [Quit: Computer has gone to sleep.]
<Cork> it is just a problem of visibly printing ascii/unicode/what ever
<Cork> Freddan962: so check the value of each position in the string
aspires has quit []
<Cork> and you should be able to find what causes it
nathancahill has joined #ruby
<ntesir> Freddan962: is that some sort of koans exercise?
<Freddan962> ntesir: It is for my programming class :)
x1337807x has joined #ruby
atmosx has joined #ruby
<ntesir> eh!
<ntesir> Freddan962: you're using a > instead of a )
<ntesir> you need to install terminus-font
<Freddan962> Ntesir: Oh, wow... thank you ntesir!
timonv_ has quit [Remote host closed the connection]
<ntesir> samething in the opening bracket
rgiscard` has quit [Ping timeout: 276 seconds]
tier has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
<Freddan962> ntesir: My bad - must have overlooked. Going to look into Terminus-font! :)
mrnugget has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
<ntesir> Freddan962: it's just a programming font designed to make such diffs obvious
JasmeetQA has quit [Quit: Leaving.]
AlexRussia has joined #ruby
Leroy has joined #ruby
<Freddan962> ntesir: Looks like something I can have use for! Thank you so much for the recommendations and solving my problem! :D
Leroy has left #ruby [#ruby]
<ntesir> Freddan962: glad to help
Leroy has joined #ruby
<Leroy> hey guys, this is my first time on irc. is this the place to pop a question regarding ruby on rails or is there another channel?
<apeiros> Leroy: #rubyonrails
qhartman has joined #ruby
<lethjakman> is there a version of constantize for ruby?
cina has quit [Remote host closed the connection]
binaryhat has quit [Quit: Leaving]
<Leroy> thanks apeiros!
<apeiros> lethjakman: Object.const_get
Leroy has left #ruby [#ruby]
mrnugget has joined #ruby
aspires has joined #ruby
nwkr is now known as Nowaker
SegFaultAX has quit [Excess Flood]
Advocation has joined #ruby
<apeiros> Module#const_get actually. ^ is just toplevel.
tier has joined #ruby
ntesir has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
SegFaultAX has joined #ruby
terrell_t has quit [Remote host closed the connection]
rm_ has joined #ruby
zigomir has joined #ruby
<lethjakman> apeiros: what if I don't have the object?
<lethjakman> oh
<lethjakman> I get what you're saying
<lethjakman> thank you! :)
Es0teric has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
cina has joined #ruby
tier has quit [Remote host closed the connection]
iceden has quit [Remote host closed the connection]
rezzack1 has quit [Quit: Leaving.]
yfeldblum has joined #ruby
carraroj has joined #ruby
moritzs has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
r0bby has quit [Ping timeout: 240 seconds]
terrellt has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
_justin has quit [Quit: _justin]
bogeyd6 has joined #ruby
benlieb has joined #ruby
memorozovm has joined #ruby
blindrage has joined #ruby
sambao21 has joined #ruby
<blindrage> i'm new to Gems, and this one is throwing me off: http://fpaste.org/104201/40077964/
<blindrage> not sure how to resolve it =\
anaeem1 has joined #ruby
<wallerdev> why would beaker depend on an exact version of nokogiri
<wallerdev> lol
meatherly has quit [Remote host closed the connection]
moneydouble has quit [Quit: Leaving.]
cantonic has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
<blindrage> dunno =\
meatherly has joined #ruby
<blindrage> any way to resolve that?
terrellt has quit [Ping timeout: 252 seconds]
flagg0204 has joined #ruby
<slash_nick> blindrage: pull requests are generally effective :)
<blindrage> =( yea, i could just build the gem off mine while i wait
nanoyak has joined #ruby
CorpusCallosum has quit [Read error: Connection reset by peer]
WishBoy has joined #ruby
<wallerdev> looks like they picked 1.5.10 because they want "ruby 1.8 compatability"
<slash_nick> blindrage: read the gemspec, the comment says why they pin it down
<slash_nick> right
i_s has joined #ruby
<blindrage> yea, was about to paste that
<blindrage> it's in my buffer lol
<slash_nick> jinx!
<wallerdev> honestly id just fork it and remove that requirement lol
<blindrage> i don't want to remove windows and centos support
<wallerdev> unless youre on 1.8
tier has joined #ruby
<blindrage> that's why it's on 1.8
anaeem1 has quit [Remote host closed the connection]
<blindrage> my CI host is centos 64, it would use it
nanoyak has quit [Client Quit]
magri has quit [Remote host closed the connection]
<blindrage> without making major changes to the agent to use rvm
kpshek has quit []
<wallerdev> 1.8 is deprecated
<blindrage> yea, but not LTS
foooobear has joined #ruby
<blindrage> i'm not defending it, just living with it
moritzs has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
<wallerdev> did you try uninstalling nokogiri
meatherly has quit [Ping timeout: 240 seconds]
<wallerdev> puppet-blacksmith doesnt appear to depend on a specific version of nokogiri
<slash_nick> right, why do you need a newer version?
<blindrage> no, bundler/gemfiles are pretty new to my toolbelt
iceden has joined #ruby
<blindrage> because i did bundle install before i introduced beaker
<blindrage> i'll try that
supermarin has joined #ruby
<slash_nick> take it out of your Gemfile (nokogiri), gem uninstall nokogiri (all versions), rm Gemfile.lock, bundle
Advocation has quit [Quit: Advocation]
<blindrage> k, trying that now
Advocation has joined #ruby
i_s_ has joined #ruby
nanoyak has joined #ruby
i_s has quit [Read error: Connection reset by peer]
<blindrage> that seems to have fixed the conflict
mjuszczak has joined #ruby
<blindrage> thanks a ton
<slash_nick> np
klaut has joined #ruby
<wallerdev> great work team
mikecmpbll has joined #ruby
<slash_nick> high fives all around
supermarin has quit [Ping timeout: 264 seconds]
<blindrage> ::starts self promoting slow clap::
danshult_ is now known as danshultz
<blindrage> ...no?
mrnugget has quit [Read error: Connection reset by peer]
<wallerdev> clap
<wallerdev> lol
<GeorgesLeYeti> Hi again
<wallerdev> hey GeorgesLeYeti
cina has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GeorgesLeYeti> I have a problem with encoding. I need to write file with encoding format: UTF-16LE
<wallerdev> thats an interesting requirement
Gabri_ has joined #ruby
<havenwood> utf-8 ALL THE THINGS!
<GeorgesLeYeti> but 'w+:UTF-16LE' doesn't work
mrnugget has joined #ruby
<wallerdev> what version of ruby are you on
<GeorgesLeYeti> 2.1.1p76
anaeem1 has joined #ruby
Rahul_Roy has joined #ruby
Gabri has quit [Ping timeout: 276 seconds]
<GeorgesLeYeti> here my error: `initialize': ASCII incompatible encoding needs binmode (ArgumentError)
Morkel has joined #ruby
aarkerio has joined #ruby
<wallerdev> on write?
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GeorgesLeYeti> when i add wb+... it works but my file format is application/octet-stream; charset=binary
noop has quit [Ping timeout: 240 seconds]
<aarkerio> hi! can I:
<aarkerio> function(params) and return if var == false
<wallerdev> are you in rails or something?
<blindrage> ok i just don't get gemfiles....bundle install | grep json showed json-1.8.1 being used...even added it to Gemfile as gem 'json', '>=1.8.1', bundle exec rspec spec/acceptance/test.rb errored with: /home/myoung/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find json-1.8.1 in any of the sources (Bundler::GemNotFound)
<GeorgesLeYeti> yes on File.open(..., 'w+:UTF-16LE) {|f|....}
<blindrage> gem install json, showed install and rdoc install output, same bundle command didn't error on it this time
obs has quit [Remote host closed the connection]
<blindrage> what would cause that?
<GeorgesLeYeti> wallerdev: no it's just a ruby script
aspires has quit []
<blindrage> i promise i'll get better guise
<aarkerio> I mean, can I call a method and return?
<havenwood> aarkerio: ya sure
cina has joined #ruby
Solnse has joined #ruby
memorozovm has quit []
<apeiros> GeorgesLeYeti: sounds like the string you try to write was not utf-16
<slash_nick> blindrage: i didn't quite understand that last bit
bklane has joined #ruby
dilated_dinosaur has quit [Ping timeout: 265 seconds]
<slash_nick> fwiw, you probably don't want to use "gem install" if you're using bundler... put `gem "gemname"` in your Gemfile then run bundle
mengu has quit [Remote host closed the connection]
<apeiros> GeorgesLeYeti: actually, might not be that that's the problem. from where do you get "application/octet-stream; charset=binary"?
<GeorgesLeYeti> apeiros: ok then how i pass my string utf-8 to utf-16LE
<GeorgesLeYeti> file -bi my_file.txt
jimbow has joined #ruby
failshel_ has joined #ruby
<jimbow> yans-imac:00_hello admin$ rake
<jimbow> (in /Users/admin/Documents/Learn Ruby/learn_ruby-master)
<jimbow> rake aborted!
<jimbow> /Users/admin/Documents/Learn Ruby/learn_ruby-master/Rakefile:2
<jimbow> undefined method `gem' for main:Object
<jimbow> (See full trace by running task with --trace)
<jimbow> :*(
jxf has joined #ruby
aarkerio has quit [Quit: Verlassend]
cocotton has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
beardtree has joined #ruby
aspires has joined #ruby
beardtree has left #ruby ["WeeChat 0.4.3"]
eka has joined #ruby
rdark has joined #ruby
<blindrage> slash_nick: so...i ran that bundle exec rspec command
<blindrage> errored with that error i pasted
MrWharfsnort has joined #ruby
<blindrage> so i made sure bundle install showed json-1.8.1 getting installed, it did..ran it, still same error
<havenwood> jimbow: which gem
<blindrage> so i manually ran gem install json, and it stopped the error
rdark has quit [Client Quit]
<jimbow> i have no idea
<havenwood> jimbow: type: which gem
<jimbow> oh
<jimbow> lol
rgiscard` has joined #ruby
<blindrage> i'm not sure why bundle install would show it being installed but it wasn't actually. maybe because i uninstall nokogiri?
<jimbow> /usr/local/rvm/rubies/ruby-1.8.6-p420/bin/gem
<blindrage> as i say that, i'll go look at my uninstall output from nokogiri
heftig has joined #ruby
failshell has quit [Ping timeout: 258 seconds]
<blindrage> not enough buffer to scroll bakc...i'll just assume that was it
brunops has quit [Ping timeout: 276 seconds]
jimmyhoughjr has joined #ruby
failshel_ has quit [Read error: Connection reset by peer]
failshell has joined #ruby
<slash_nick> ew blindrage you need to set your buffer history to unlimited
<havenwood> jimbow: command -v gem
<havenwood> jimbow: i'm curious as to the output of the commands ^
jambolina has quit [Ping timeout: 264 seconds]
<havenwood> jimbow: 1.8.6
tier has quit [Remote host closed the connection]
<havenwood> jimbow: That is a long dead Ruby.
<jimbow> havenwood: i am following a tutorial
enebo has quit [Quit: enebo]
<jimbow> and it says to use that version
<Hanmac> ruby 1.8.6 ? oO i am suprised that you could install it ;P
<slash_nick> lol
<havenwood> jimbow: really not a good idea
<havenwood> jimbow: 1.9.3+
<jimbow> i'm getting the same "old" error messages
cocotton has joined #ruby
<havenwood> jimbow: You're learning a lang that doesn't exist then.
<havenwood> jimbow: Live in the NOW!
<jimbow> well i have rvm instaled
<blindrage> slash_nick: it's in 'screen'
<jimbow> and i have multiple versions of ruby
<blindrage> just never configured it lol
<havenwood> jimbow: 1.9.3+ is fine.
<slash_nick> gotcha
<havenwood> jimbow: You're royally wasting your time with 1.8. Don't!
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
terrellt has joined #ruby
<havenwood> jimbow: (if you must try to fix it: gem update --system)
tier has joined #ruby
jimmyhoughjr has quit [Client Quit]
<havenwood> jimbow: but kill it with fire! install nothing pre-1.9.3, they are DEAD.
nanoyak has quit [Read error: Connection reset by peer]
shevy has quit [Ping timeout: 258 seconds]
nanoyak_ has joined #ruby
teddyp1cker has joined #ruby
mrnugget has quit [Read error: Connection reset by peer]
jimmyhoughjr has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
sambao21 has quit [Read error: Connection reset by peer]
RaptorJesus has joined #ruby
<wallerdev> 1.8.6 was when ruby first started beocming popular
axilla has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
<wallerdev> i think the first version of rails ran on 1.8.6
mailo has quit [Quit: Leaving...]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
_justin has joined #ruby
sambao21 has joined #ruby
mrnugget has joined #ruby
zB0hs has joined #ruby
<apeiros> wallerdev: huh? I doubt that
<havenwood> jimbow: if we didn't insist on its death we might find ourselves in a Python 2 situation
* havenwood shudders
<apeiros> I started with ruby 1.8.0 and I'm pretty sure rails was out back then
<wallerdev> hm really?
<havenwood> i started right about when 1.9.2 came out
<apeiros> hm
<wallerdev> ill check wikipedia haha
<apeiros> WP says first release of rails in 2005
WishBoy has quit [Remote host closed the connection]
<apeiros> did I really do ruby before rails?
<wallerdev> lol
* apeiros so confused right now
<havenwood> apeiros ate eggs before there were chickens
<ericwood> I started with pure ruby circa 2009-ish?
<wallerdev> yeah 1.8.5 came out in 2006
<wallerdev> soo i was a little off
<havenwood> chicken on eggs (makes as much sense as ruby on rails)
<jimbow> why would something be stuck on one error message?
<ericwood> we're all a little off
<apeiros> I'm not a little off. only by one.
<wallerdev> although rails wasnt immediately popular
<havenwood> i remember when rails came out and i couldn't figure out what it was
marahin has joined #ruby
rgiscard` has quit [Ping timeout: 276 seconds]
marahin is now known as Guest18993
<wallerdev> i read about rails when it came out but didnt try it til 2.0
<havenwood> wallerdev: ya, same here but not til 3.0
<havenwood> i still don't know what it is :P
<wallerdev> lol
<wallerdev> i remember the build a blog in 15 minutes video for rails
<wallerdev> that was about when i got my first mac :o
piukeman has quit [Quit: piukeman]
<slash_nick> i'm still using 1.8.5 :)
<havenwood> wallerdev: i was hackintoshing when i started ruby :O
<ericwood> :|
<havenwood> slash_nick: nooooooo
<wallerdev> i tried that
<wallerdev> system was so unstable
<wallerdev> lol
<havenwood> took so much ram
<havenwood> yup
<havenwood> painful
<wallerdev> its probably better now
<wallerdev> but back then you were lucky if you could even get wifi
mrnugget_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<jimbow> http://pastie.org/9199829#19,25,27,31,33-34
<jimbow> i'm getting the same error on line 19 when i've done the following steps and i am supposed to be getting error that's on line 33
<slash_nick> havenwood: no rubygems though... i'm only using rexml and csv
Lucky_ has joined #ruby
mrnugget has quit [Ping timeout: 276 seconds]
mrnugget_ is now known as mrnugget
dfinly has joined #ruby
Guest18993 is now known as marahin
Lucky_ has quit [Client Quit]
marahin has quit [Changing host]
marahin has joined #ruby
cocotton has quit [Remote host closed the connection]
Lucky_ has joined #ruby
rgiscard has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
<havenwood> interesting, a compiled self-executable fizzbuzz is 2.1M in golang but only 395K in mruby
<wallerdev> lol
<havenwood> clearly the most important metric :P
<jimbow> could someone please help me?!
nathancahill has quit [Quit: nathancahill]
<havenwood> now when mruby makes building as easy as golang we'll be talking! :D
<wallerdev> jimbow: sounds like you didnt create hello.rb ?
<wallerdev> lol
<havenwood> jimbow: Which Ruby version?
<jimbow> i did
<wallerdev> thats what it says in the instructions
<wallerdev> did you create it in the right directory?
<jimbow> hello.rb is created
<jimbow> and saved :(
cina has quit [Quit: leaving]
<jimbow> which directory should it be?
<havenwood> jimbow: What version of Ruby are you currently on?
<wallerdev> no idea, i dont have the 00_hello stuff
<jimbow> 2.1.1
<havenwood> jimbow: So... you're using Ruby 1.8.6 instruction with Ruby 2.1.1, which isn't going to work.
<wallerdev> lol
<jimbow> but i have multiple versions of ruby installed
<wallerdev> probably in a directory named test-first-teaching/hello
<havenwood> jimbow: You're following a tutorial for a dead version of Ruby.
<havenwood> jimbow: You'll be fixing it every step of the way. This is the tip.
benlieb has quit [Quit: benlieb]
<havenwood> jimbow: Use a Ruby 1.9.3+ Ruby with a Ruby 1.9.3+ tutorial and you'll be fine.
<jimbow> havenwood: i'm trying to get accepted into app academy and this is what they've sent me
<havenwood> jimbow: Things from a decade ago are no longer relevant enough to be anywhere near as useful as modern material, of which there is plenty.
<havenwood> jimbow: That is just evil of them.
<havenwood> i'll email them with my bitterness
gregf has joined #ruby
geggam has quit [Remote host closed the connection]
<havenwood> jimbow: This is part of the introductory packet they suggest?
<jimbow> yes
Azure has quit [Quit: Blue Sky Fish]
<havenwood> jimbow: any title i can refer to it by, or just that
<jimbow> they gave me the first code test
<jimbow> i'm going to check my emails
Kricir has quit []
anaeem1__ has joined #ruby
pushpak has joined #ruby
trampi has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
<havenwood> jimbow: where doy learn_ruby say to use 1.8.6?
<jimbow> some guy pointed it out yesterday
<jimbow> i need to find the link
jimmyhoughjr has quit [Quit: jimmyhoughjr]
omosoj has joined #ruby
vpretzel|674 is now known as vpretzel
agent_white has joined #ruby
Solnse has quit [Remote host closed the connection]
geggam has joined #ruby
<havenwood> ah, right, found it
Lutece has joined #ruby
<havenwood> jimbow: "We officially support Ruby 1.9 but probably work with 1.8.7 as well."
<havenwood> jimbow: 1.9 is fine
<havenwood> jimbow: so they didn't update the example of checking the ruby version: ruby -v #=> ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
<havenwood> i guess designed for 1.8.6, updated for 1.9, may support 1.8.7
kpshek has joined #ruby
geggam has quit [Remote host closed the connection]
<havenwood> jimbow: okay, so never mind my 1.8 rant, they just need to update the docs
sepp2k has joined #ruby
<havenwood> jimbow: maybe just use 1.9.3-p547 since 1.9 is what they're officially supporting?
wallerdev has quit [Quit: wallerdev]
trampi has quit [Quit: Bye]
Soda has quit [Remote host closed the connection]
kenneth has joined #ruby
jxf has quit [Quit: Leaving]
<havenwood> jimbow: i'll pull request an update to the `ruby -v` version in the docs, unless you want to
yubrew_ has joined #ruby
jackneill has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<jimbow> havenwood: i found it!
<jimbow> it's on the first page
<havenwood> jimbow: (just the 1.8.6 line of index.html, change it to: ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-darwin13.1.0])
Advocation has quit [Quit: Advocation]
danijoo has joined #ruby
<havenwood> jimbow: nice for you to pull request fixes for issues you run across
<jimbow> i've never done a pull request
<havenwood> jimbow: just do it through the Github interface then
enebo has joined #ruby
<havenwood> jimbow: click "Edit"
<havenwood> jimbow: replace line 124 and "Propose file change"
geggam has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
<havenwood> jimbow: Well, fill in the reason. (Update to latest stable Ruby 1.9 in example to avoid confusion.)
<havenwood> jimbow: But change the file and say why is all. It's easy.
alem0lars has joined #ruby
wallerdev has joined #ruby
axilla has joined #ruby
blindrage has quit [Quit: WeeChat 0.4.2]
donnoc has joined #ruby
atmosx has quit [Quit: Lost in trance]
<jimbow> like this?
carraroj has quit [Ping timeout: 245 seconds]
combusean has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
webgen has joined #ruby
<havenwood> jimbow: yup
Vivekananda has joined #ruby
<jimbow> wow thanks!
<havenwood> jimbow: grats on first pull request!
<havenwood> jimbow: keep doing em :)
<jimbow> yay!
<jimbow> :)
alpha123 has quit [Ping timeout: 240 seconds]
<jimbow> so now do i use ruby 1.9?
<havenwood> jimbow: yeah, i'd prolly do so since that's what they say they target
<jimbow> hopefully, now, i won't be stuck on the same errors
<havenwood> jimbow: rvm install ruby-1.9.3-p547 && rvm use ruby-1.9.3-p547
supermarin has joined #ruby
acrussell has quit [Remote host closed the connection]
spajus has joined #ruby
acrussell has joined #ruby
<jimbow> yes, for some reason i'm getting the same error
<havenwood> jimbow: does the file exist in the local directory?
<jimbow> well all the files are in the same directory if that's what you're asking
<havenwood> jimbow: including the particular one being required?
blackmesa has joined #ruby
<havenwood> jimbow: nope, the file isn't there
<GeorgesLeYeti> I found the solution: str = Iconv.conv("utf-16le", "utf-8", "\ufeff" + str)
<havenwood> jimbow: so create the file, they created the spec and i guess want you to make the file
rezzack has joined #ruby
<havenwood> jimbow: like wallerdev said a long while back :O hehe
spider-mario has joined #ruby
Advocation has joined #ruby
supermarin has quit [Ping timeout: 258 seconds]
centrx has joined #ruby
momomomomo has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
<havenwood> jimbow: and you're running it via rake? i ask because they're using 1.8 style require unless they've added the dir to the home path
provokeme has joined #ruby
<jimbow> what does that mean exactly?
<jimbow> i'm not completely understanding you
tjsousa_____ has quit [Quit: Computer has gone to sleep.]
<havenwood> jimbow: do you know what $LOAD_PATH is?
<jimbow> no
<havenwood> jimbow: in irb try: puts $LOAD_PATH
<havenwood> jimbow: p $LOAD_PATH
<havenwood> jimbow: it's where Ruby looks when you `require "something"`, it checks for each path in the array for path/something.
<havenwood> jimbow: so it's just an Array, a list of Strings
chrisseaton has quit []
s2013_ has joined #ruby
adnauseam has joined #ruby
<adnauseam> sup folks
<havenwood> jimbow: you can add or remove paths from $LOAD_PATH, since it's a normal Ruby Array
<havenwood> adnauseam: hi
<jimbow> how do i add a path?
chrisseaton has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
s2013 has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
<apeiros> jimbow: you know how to add an item to an array?
ss__ has joined #ruby
ringaring has joined #ruby
cescalante is now known as ce_afk
ce_afk is now known as cescalante
jprovazn_afk is now known as jprovazn
ss__ is now known as s2013
rezzack has quit [Quit: Leaving.]
<havenwood> jimbow: in Ruby 1.8, `require "hello"` would work if the file was in the current dir. in Ruby 1.9+ to get the same result you'd have to `require_relative "hello"` or `require "./hello"`, or edit the load path like `$LOAD_PATH << "."` as a simple example.
shashank_rs has joined #ruby
toastynerd has quit [Remote host closed the connection]
s2013_ has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Remote host closed the connection]
Lutece has quit [Quit: WeeChat 0.4.3]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi again. It's my last question (promise)
<Mon_Ouie> Notice the current path and the path where the current file is are two different things (hence the change)
sinkensa_ has quit [Remote host closed the connection]
acrussell has quit [Quit: Leaving.]
<GeorgesLeYeti> I need to insert between each file null char (i know it seems weird but it's encoded like that into the original file)
sinkensabe has joined #ruby
<Mon_Ouie> "." does not work if someone runs your script from another directory
<GeorgesLeYeti> sorry between each char not file
Tricon has joined #ruby
axilla has quit [Ping timeout: 245 seconds]
paulfm has quit []
g0bl1n has quit [Ping timeout: 258 seconds]
bradhe has quit [Remote host closed the connection]
cocotton has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
<havenwood> >> 'lunchtime'.each_char.with_object("\0").to_a.join
<eval-in__> havenwood => "l\x00u\x00n\x00c\x00h\x00t\x00i\x00m\x00e\x00" (https://eval.in/155824)
thesheff17 has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
Bira has quit [Remote host closed the connection]
<GeorgesLeYeti> havenwood: ty
meatherly has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
<apeiros> o0
<apeiros> >> 'lunchtime'.encode('utf-16le').b
<eval-in__> apeiros => "l\x00u\x00n\x00c\x00h\x00t\x00i\x00m\x00e\x00" (https://eval.in/155825)
shashank_rs has joined #ruby
<apeiros> (the .b is not necessary, it changes the encoding metadata to binary, which changes how the string is inspected)
<apeiros> i.e., the .b does not actually change the string-data.
foooobear has quit [Quit: Computer has gone to sleep.]
<havenwood> apeiros: nice
tier has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
thesheff17 has joined #ruby
<jimbow> so havenwood what should i edit
nanoyak_ has quit [Quit: Computer has gone to sleep.]
chrisseaton has quit [Remote host closed the connection]
<jimbow> apeiros: i don't know how to do that yet :(
donnoc has quit [Ping timeout: 240 seconds]
spajus has quit [Quit: This computer has gone to sleep]
lethjakman has joined #ruby
maletor has joined #ruby
<jimbow> 11:51 < havenwood> jimbow: in Ruby 1.8, `require "hello"` would work if the file was in the current dir. in Ruby 1.9+ to get the same result you'd have to `require_relative "hello"` or `require "./hello"`, or edit the load path like `$LOAD_PATH << "."` as a simple example.
<apeiros> jimbow: oh, ok. array << "item"
<apeiros> adds it to the end of the array
<havenwood> jimbow: change "hello" to "./hello"
<jimbow> oh thank you
<havenwood> jimbow: just as a quick and dirty fix
tier has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
<havenwood> jimbow: maybe before you embark on this, do TryRuby.org
<havenwood> jimbow: http://tryruby.org/
<jimbow> havenwood: that didn't work :(
<havenwood> jimbow: what's the failure now?
alem0lars has quit [Quit: alem0lars]
<jimbow> havenwood: the same failure
maoko has joined #ruby
<jimbow> /Users/admin/Documents/Learn Ruby/learn_ruby-master/00_hello/hello_spec.rb:116:in `require': cannot load such file -- ./hello (LoadError)
SOLEIL has joined #ruby
<havenwood> jimbow: from the command line: cat /Users/admin/Documents/Learn Ruby/learn_ruby-master/00_hello/hello.rb
SOLEIL has quit [Client Quit]
<havenwood> jimbow: No such file or directory?
supermarin has joined #ruby
tier has quit [Remote host closed the connection]
tier has joined #ruby
<jimbow> the command returned no output
<jimbow> yans-imac:~ admin$ cat /Users/admin/Documents/Learn\ Ruby/learn_ruby-master/00_hello/hello.rb
lw has quit [Quit: s]
<jimbow> yans-imac:~ admin$
<jimbow> i have to run to court... i'm going to be back in an hour
<havenwood> jimbow: okay, so the file is there
<jimbow> thank you so much for everything
<havenwood> g'luck
<jimbow> will you be on later?
SHyx0rmZ has joined #ruby
<jimbow> i completely forgot about court :(
<havenwood> maybe
ikaros has quit [Quit: Ex-Chat]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
aspires has quit []
Tricon has joined #ruby
nicksloan has joined #ruby
omosoj has quit [Ping timeout: 252 seconds]
supermarin has quit [Ping timeout: 265 seconds]
benlieb has joined #ruby
IcyDragon has joined #ruby
s2013 has quit [Quit: Leaving]
_justin has quit [Quit: _justin]
bradhe has joined #ruby
IceDragon has quit [Ping timeout: 265 seconds]
<redondo> must always a class name start with uppercase?
tjsousa_____ has joined #ruby
kevind_ has joined #ruby
<segfalt> redondo: Yep
rezzack has joined #ruby
dawkirst has joined #ruby
<apeiros> redondo: actually it's constant names (and as already said - yes)
<apeiros> >> foo = Class.new; foo.is_a?(Class)
<eval-in__> apeiros => true (https://eval.in/155832)
akonny has joined #ruby
wallerdev has quit [Quit: wallerdev]
<apeiros> >> foo = Array; foo.new
<eval-in__> apeiros => [] (https://eval.in/155833)
mr_blue has joined #ruby
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
jxf has joined #ruby
shvelo has joined #ruby
benzrf|offline is now known as benzrf
tjsousa_____ has quit [Client Quit]
<redondo> apeiros, that means that names starting with uppercase are "constant names"? not sure if I get it.
<apeiros> redondo: correct. variables which start with an uppercase letter are constants
<GeorgesLeYeti> Again Ty very much havenwood and apeiros
<GeorgesLeYeti> bb
GeorgesLeYeti has quit [Quit: Quitte]
<apeiros> redondo: and `class Foo; …; end` syntax does two things - it creates a new class, and it assigns it to the constant "Foo"
<redondo> ok
<apeiros> above, I gave two examples on how a class doesn't have to be assigned to a constant :)
tjsousa_____ has joined #ruby
IcyDragon is now known as IceDragon
ryanleesipes has joined #ruby
<redondo> apeiros, Why would you want a class not being assigned to a constant?
monkegjinni has joined #ruby
franzip has quit [Quit: ...]
geggam has joined #ruby
dawkirst has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 252 seconds]
bklane has quit [Remote host closed the connection]
mikewintermute has joined #ruby
alem0lars has joined #ruby
bklane has joined #ruby
benzrf is now known as benzrf|offline
mikewintermute has left #ruby [#ruby]
x1337807x has joined #ruby
<apeiros> redondo: for the same reason you want any other object not assigned to a constant - if it's ephemeral, if it's not necessary to be accessed from other scopes, etc.
yfeldblum has quit [Ping timeout: 240 seconds]
bklane has quit [Read error: Connection reset by peer]
memorozovm has joined #ruby
<redondo> get it, thanks
memorozovm has quit [Remote host closed the connection]
axilla has joined #ruby
<apeiros> sometimes you have it assigned to a constant and additionally want it assigned to another variable
<apeiros> e.g. to pass the class around
havenwood has quit []
<nicksloan> I'm automating the deployment of a rails app that depends on ruby 2.0, but the default ruby on ubuntu 14.04 is 1.x. My first thought was to just install ruby2.0, but that's going to gross up my ansible playbooks. my second instinct was to use rbenv, but having to build a ruby from scratch when I spin up new instances sounds slow and potentially fragile.
<nicksloan> how do people solve this?
paulfm has quit []
<slash_nick> nicksloan: alot of people use rvm
<segfalt> I build my own version of Ruby as .debs
Bira has joined #ruby
<segfalt> And just install them with Puppet
<segfalt> they end up in /usr/local/, e.g. /usr/local/bin/ruby2.1
<segfalt> I tell Passenger which Ruby to use, with PassengerRuby
x1337807x has quit [Ping timeout: 240 seconds]
lw has joined #ruby
failshell has quit []
subbyyy_ has quit [Quit: none 0.4.3]
rizzatti has quit [Quit: Linkinus - http://linkinus.com]
x1337807x has joined #ruby
<nicksloan> segfalt: sounds like the same sort of thing that would be required using ubuntu's ruby 2.0
paulfm has joined #ruby
<nicksloan> slash_nick: what is the benefit of rvm over rbenv in that case?
Rahul_Roy has quit [Ping timeout: 245 seconds]
<postmodern> nicksloan, just install ruby 2.0 via package manager or into /usr/local
<postmodern> nicksloan, you can use ruby-install or ruby-build to install into /usr/local
metadave_ has quit [Read error: Connection reset by peer]
ballPointPenguin has quit [Ping timeout: 264 seconds]
mattmcclure has quit [Ping timeout: 245 seconds]
Martxel has joined #ruby
<segfalt> nicksloan: Not sure if you can simply much beyond 'Install Ruby2.0, and use it.' -- Unless you want to build your software with an embedded copy of ruby and deploy that.
<segfalt> *simplify
Bira has quit [Ping timeout: 240 seconds]
ballPointPenguin has joined #ruby
metadave_ has joined #ruby
Rahul_Roy has joined #ruby
Advocation has quit [Quit: Advocation]
mattmcclure has joined #ruby
mrnugget has quit [Quit: mrnugget]
<rgiscard> nicksloan: I'm with segfalt. I bake my RPM and distribute it from private repo via automation framework. I actually take it one step further as I bake the RPM from the app, since I have to distribute apps to Internet reachable hosts.
bricker has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
Deejay_ has joined #ruby
chrisseaton has quit []
smathieu has quit [Remote host closed the connection]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
smathieu has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
danjordan has joined #ruby
x1337807x has joined #ruby
jimmyhoughjr has joined #ruby
Jetchisel has joined #ruby
rezzack has quit [Quit: Leaving.]
Morkel_ has joined #ruby
diegoviola has joined #ruby
shevy has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
rezzack has joined #ruby
nickgartmann has joined #ruby
rails426 has joined #ruby
jrunning_ is now known as jrunning
jrunning has quit []
jrunning has joined #ruby
Gabri has joined #ruby
relix has joined #ruby
shvelo has quit [Ping timeout: 252 seconds]
anaeem1__ has quit [Read error: Connection reset by peer]
ringaring has quit [Ping timeout: 264 seconds]
agent_white has quit [Quit: leaving]
NinoScript has quit [Quit: NinoScript]
mehlah has joined #ruby
bradhe has quit [Remote host closed the connection]
n_blownapart has joined #ruby
chrisseaton has joined #ruby
mattmcclure has quit [Ping timeout: 245 seconds]
Gabri has quit [Client Quit]
Gabri_ has quit [Ping timeout: 264 seconds]
<n_blownapart> hi I've been learning ruby and like it. Some of you say don't learn a second language that would confuse me. Others say learn C . Others say learn Python. What say you? thanks
jprovazn has quit [Quit: Odcházím]
mattmcclure has joined #ruby
vpretzel_ has joined #ruby
rails426 has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> n_blownapart: if you feel like learning another language - more power to you! go for it.
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> n_blownapart, Usually if you want to truly learn something, you focus on it for a while
<n_blownapart> thanks apeiros you are always kind and objective. My housemate says learn C along with Ruby. Many say learn python.
ktun has joined #ruby
ktun has quit [Client Quit]
sepp2k1 has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
<n_blownapart> thanks centrx and for yesterday's help !
<apeiros> n_blownapart: IMO python is quite similar to ruby. if I'd learn a second language, I'd probably try something much different
Bira has joined #ruby
<n_blownapart> apeiros: like ...
<centrx> n_blownapart, Learning Python won't teach you much that you don't learn in Ruby. Just different syntax
yeticry has joined #ruby
<apeiros> n_blownapart: scala, haskell, ocaml
<n_blownapart> apeiros: learn me a haskell ?
<centrx> n_blownapart, C and ASM too
<apeiros> n_blownapart: though, tbh, on my list, the top spot is taken by go. mostly because I expect it to be rather useful to me.
sambao21 has joined #ruby
decoponio has quit [Quit: Leaving...]
sepp2k has quit [Ping timeout: 252 seconds]
<n_blownapart> I heard its the next enterprise language along with python. apeiros
nanoyak has joined #ruby
emptymag00 has joined #ruby
<n_blownapart> one more thing since the bodhisattvas are here. What about going through the euler exercises? I started a few and they are tough (in ruby).
chrisseaton has quit []
<centrx> "Enterprise" things are not necessarily good. Java is the top "enterprise" language and it sucks.
dingus_khan has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<n_blownapart> centrx: good call.
<centrx> "Enterprise" means it's more likely the language was chosen not based on the merits of the language itself
<n_blownapart> yikes
<n_blownapart> I get advice and since ruby is written in C that does appeal to me.
<centrx> That said, Go is a good language to learn
fantazo has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
<apeiros> I've heard quite a lot of good things about go
Bira has quit [Ping timeout: 264 seconds]
ssx has joined #ruby
<apeiros> so if you need a lower level language for speed, it might be nice
ssx has left #ruby ["http://dor.ky"]
jhulten has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
kpshek has quit []
<apeiros> that said, no idea how well you can use it to write ruby extensions
<centrx> n_blownapart, Learning C will teach you more about how the computer works internally. Higher-level languages are hiding these operations
pu22l3r has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
cocotton has quit [Remote host closed the connection]
ringaring has joined #ruby
koderok has quit [Quit: koderok]
<n_blownapart> apeiros: centrx yeah also I'm into the math. I used to excel in math at school then forgot everything. So the euler problems are cool. so centrx do you think knowing C and ruby is an excellent foundation?
toastynerd has joined #ruby
chrisseaton has joined #ruby
<mjc_> wow Set include? is impressively fast compared to Array include?
<centrx> mjc_, It uses a hash
<mjc_> profiling ftw
<centrx> n_blownapart, Yes
sambao21 has joined #ruby
segfalt has quit [Ping timeout: 252 seconds]
<n_blownapart> apeiros: please chime in on that, or do you think Go is the way ? gonna buy a book to comfort myself.
mattyohe has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
ringaring has quit [Client Quit]
jhulten has joined #ruby
<centrx> n_blownapart, C is the fundamental language. Unix is written in C. iOS/OS X uses a derivative of C. Windows undoubtedly uses C or C++ underneath all the C#/.NET junk
kpshek has joined #ruby
cescalante is now known as ce_afk
cocotton has joined #ruby
<centrx> n_blownapart, Ruby, aside from being an excellent language, is also a good introduction to functional programming and other concepts like MapReduce
<centrx> s/introduction/stepping-stone/
danjordan has quit [Quit: danjordan]
segfalt has joined #ruby
Toger has joined #ruby
<n_blownapart> centrx: MapReduce. ? Will read up ... what is : s/introduction/stepping-stone/ ?
<centrx> Correcting my statement
jhulten has quit [Remote host closed the connection]
<centrx> It is common notation in Unix, e.g. in sed and vim (s for Substitute
mattyohe_ has joined #ruby
saarinen has quit [Ping timeout: 245 seconds]
mattyohe_ is now known as mattyohe
Slavox is now known as Slavox|AFK
tvw has quit []
frosgy has joined #ruby
jhulten has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
zybi1 has joined #ruby
<shevy> test
<centrx> test failed
<segfalt> can't hear you shevy
supermarin has joined #ruby
combusean has joined #ruby
<shevy> hmm
b1205 has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
r0bby has joined #ruby
robbyoconnor has joined #ruby
saarinen has joined #ruby
skysploit has quit [Remote host closed the connection]
agent_white has joined #ruby
<n_blownapart> shevy I've been asking here about learning Go or C ... for a ruby beginner to enhance his knowledge . or Python.
wallerdev has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
skysploit has joined #ruby
jhulten has quit [Remote host closed the connection]
frogssgy has quit [Ping timeout: 252 seconds]
rezzack has quit [Quit: Leaving.]
dpswireless has quit []
i_s_ has quit [Ping timeout: 265 seconds]
<shevy> hmm
supermarin has quit [Ping timeout: 252 seconds]
<shevy> sorry n_blownapart I don't remember you :)
<n_blownapart> aka crucify_me
<wallerdev> i remember you
<shevy> if it is Go vs. C then surely C is the winner
<n_blownapart> I'm a resident idiot
<shevy> ruby is written in C
<wallerdev> im a resident sleeper
<shevy> python is written in C
<shevy> the linux kernel is written in C
<n_blownapart> sorry wallerdev
<shevy> if we would not have a division C vs. C++ then the whole programming world would be written in C**
<toretore> so if you're looking to write an interpreter or an os, use c
<slash_nick> "C splat splat"
dingus_khan has quit [Remote host closed the connection]
<segfalt> Golangs first compiler is written in C, too.
<segfalt> IIRC.
agent_white has joined #ruby
<n_blownapart> toretore: shevy I just want to understand what the hell is going on. I once did well in Maths.
zorak has quit [Remote host closed the connection]
<toretore> don't worry too much.. just find something you enjoy
<apeiros> n_blownapart: sorry, watching a bit of videos over here
i_s has joined #ruby
<segfalt> I don't think Python would teach you anything new, if you know Ruby decently. Learning C would teach you quite a bit about why people use higher level languages :-)
ginkopc has joined #ruby
Xeago has quit [Remote host closed the connection]
<ginkopc> ciao
blackmesa has joined #ruby
<shevy> n_blownapart I never did well in higher maths but head calculations I was always among the top 3 fastest in all my classes
Xeago has joined #ruby
<n_blownapart> toretore: good call. no worries apeiros . segfalt good call now the big question: which C book for a beginner?
<n_blownapart> shevy: I'm decent at that too
<wallerdev> i was the best at mental math flash cards in 3rd grade
predator117 has quit [Ping timeout: 258 seconds]
<segfalt> I haven't read a C book in 10 years, and I don't remember what it was :-(.
vpretzel_ has quit [Remote host closed the connection]
vpretzel has joined #ruby
<shevy> wallerdev what happened after 3rd grade
<xargoon> if you want to learn a new language, just write tetris in it:)
<centrx> I know the alphabet forwards and backwards
<wallerdev> we stopped playing the mental math flash cards game
jxf has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
<n_blownapart> shevy: I learned chess in third grade. glad for it.
treehug88 has quit []
<wallerdev> i got 2nd place in a school-wide chess tournament in 5th grade
<wallerdev> so im basically a GM
<shevy> man wallerdev is a hidden genius
dingus_khan has joined #ruby
<wallerdev> agreed
ginkopc has quit []
diegoviola has quit [Quit: WeeChat 0.4.3]
blackmes1 has joined #ruby
predator117 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<n_blownapart> I was the fastest 220 yard sprinter for a few years.
einarj has joined #ruby
<n_blownapart> anyway thanks all of you...
EatMulti has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
shvelo has joined #ruby
vlad_starkov has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
jhulten has joined #ruby
<shevy> I was the fastest in my class too
<shevy> I broke the legs of all possible competition
Freddan962 has quit [Read error: Connection reset by peer]
<shevy> or actually, they all sucked in sports massively, plus it was like 70% girls in that class so competition was low anyway
cocotton has quit [Remote host closed the connection]
<n_blownapart> shevy: my sister and I were called the W***er gazelles.
omosoj has joined #ruby
zybi1 has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 265 seconds]
Nogbit has joined #ruby
b1205 has joined #ruby
caveat- has joined #ruby
<shevy> Wither gazelles?
<slash_nick> shevy: i think he's meaning "wigger"
<redondo> how do you define the ':' operator, as in 'attr_accessor :name'?
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sinkensabe has joined #ruby
cocotton has joined #ruby
lobstah has joined #ruby
aspires has quit []
rezzack has joined #ruby
<n_blownapart> shevy: its the family name
<shevy> is that an operator redondo
<shevy> looks like a symbol
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
<n_blownapart> slash_nick: ^
danijoo has quit [Read error: Connection reset by peer]
<wallerdev> it should be an operator
aspires has joined #ruby
NukePuppy has quit [Ping timeout: 258 seconds]
<wallerdev> think of the confusion you could cause
<shevy> n_blownapart like the smith gazelles?
<redondo> not sure what it is, sorry
renier has joined #ruby
<centrx> redondo, the : specifies a symbol
<slash_nick> n_blownapart: never seen that as a surname before
<centrx> redondo, like "" specifies a string
saarinen has quit [Quit: saarinen]
danijoo has joined #ruby
<n_blownapart> :)
jhulten has quit [Remote host closed the connection]
<shevy> redondo can you see that attr_accessor is actually attr_accessor() ?
zybi1 has joined #ruby
<centrx> redondo, Symbols are faster, smaller, immutable versions of strings with less functionality (although my_symbol.to_s is always available)
ce_afk is now known as cescalante
<redondo> shevy, sorry, dont get you
jhulten has joined #ruby
mengu has quit []
<shevy> redondo hmm you do not see that this is a method invocation?
webgen has quit [Quit: Leaving from xChat]
<Mon_Ouie> As far as MRI's concerned, if a symbol exists a string with the same name also exists — so they don't take up any less space
<redondo> shevy, now I do :)
<Mon_Ouie> >> a=:cocorico; ObjectSpace.each_object(String).any? { |s| s.to_sym == a}
<eval-in__> Mon_Ouie => true (https://eval.in/155837)
<shevy> ok, and it has one argument, which is :name
LadyRainicorn has quit [Ping timeout: 276 seconds]
Ankhers has quit [Remote host closed the connection]
<redondo> so attr_accessor :name is the same as attr_accessor(name) ?
<shevy> :name is similar to 'name' except that it has the same object id, unlike 'name' which will not
<redondo> shevy
<shevy> the : is retained
<shevy> don't drop it
<redondo> attr_accessor :name is the same as attr_accessor(:name)
<redondo> ?
<shevy> yeah
<shevy> now look at this:
yeticry has quit [Ping timeout: 252 seconds]
<shevy> >> :name.object_id
<eval-in__> shevy => 33048 (https://eval.in/155838)
<shevy> >> :name.object_id
<eval-in__> shevy => 33048 (https://eval.in/155839)
<shevy> ok you see it has the same object id; it must be the same object
<shevy> now look at this
<shevy> >> 'name'.object_id
<eval-in__> shevy => 554242730 (https://eval.in/155840)
<shevy> >> 'name'.object_id
<eval-in__> shevy => 542511780 (https://eval.in/155841)
<shevy> these are different objects
<redondo> ok
benzrf|offline is now known as benzrf
<shevy> so they must occupy more memory, if you have in your code two 'name', it will cost more than 2 :name
<centrx> Mon_Ouie, That corresponding string might be garbage-collected though, no?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
64MAARY20 has joined #ruby
<Mon_Ouie> I believe it exists because symbols are implemented using strings
<shevy> hmm
<centrx> hmm
saarinen has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
yeticry has joined #ruby
<wallerdev> does ruby 2 have copy on write semantics
<redondo> Mon_Ouie, it exists: the ':'?
jimmyhoughjr has quit [Quit: jimmyhoughjr]
<Mon_Ouie> Even in Ruby 1.9, string/array slices, etc. are copy-on-write
s2013 has joined #ruby
ra4king1 is now known as ra4king
<centrx> redondo, What are you asking?
<Mon_Ouie> redondo: No, we're talking about the fact Ruby internally creates a String 'name' when you use the symbol :name in your code
<Mon_Ouie> But that has no incidence on how your code will work
<redondo> centrx, what does ':'?
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<redondo> Mon_Ouie, ok.
<apeiros> redondo: it's part of the literal syntax
tier has quit [Remote host closed the connection]
<apeiros> redondo: just like " is part of string literal syntax
samuel02 has quit []
jackneill has quit [Ping timeout: 258 seconds]
<apeiros> or [] are part of array literal syntax. etc.
smathieu has quit [Remote host closed the connection]
s2013_ has joined #ruby
saarinen has quit [Client Quit]
smathieu has joined #ruby
<redondo> apeiros, centrx, shevy, get it. thanks, now reading the link centrx posted.
cescalante is now known as ce_afk
fantazo has quit [Ping timeout: 276 seconds]
ss__ has joined #ruby
tier has joined #ruby
troulouliou_dev has joined #ruby
<shevy> \o/
<Mon_Ouie> Yeah, looking at Ruby 1.9 code, when a new symbol is created, it stores an association with an ID and a frozen string object in a hash table.
<shevy> poor frozen object
<shevy> must be cold for it in there
<wallerdev> let it go
s2013 has quit [Disconnected by services]
ss__ is now known as s2013
<Mon_Ouie> (and that hash table isn't a Ruby object)
danshultz has quit [Remote host closed the connection]
Xeago has joined #ruby
danshultz has joined #ruby
meatherly has quit []
danshultz has quit [Read error: Connection reset by peer]
<apeiros> Symbol.all_symbols
nathancahill has joined #ruby
<lethjakman> so...I'm trying to figure out how to break inside of an inject cleanly I have this:
<redondo> why are symbols useful?
paulfm has quit []
<lethjakman> ['1', '2', '3', '4'].inject('') {|result, val| case result+val; when '123' then break; }
tier has quit [Client Quit]
<shevy> wow
<shevy> >> Symbol.all_symbols.size
<eval-in__> shevy => 2411 (https://eval.in/155842)
<wallerdev> lethjakman: lol
<shevy> hah
<shevy> when I start irb I have 11468
<benzrf> 'when then'?
<benzrf> oh wait
<benzrf> kk
<lethjakman> wallerdev: yes?
_echevemaster has joined #ruby
s2013_ has quit [Ping timeout: 252 seconds]
<benzrf> lethjakman: break val will send out val
<benzrf> lethjakman: i.e.
<benzrf> >> [1, 2, 3].each {break :wtf}
<eval-in__> benzrf => :wtf (https://eval.in/155843)
kirun has quit [Quit: Client exiting]
eka has joined #ruby
<lethjakman> that makes sense.
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<lethjakman> any clue what my syntax error is?
<lethjakman> << ['1', '2', '3', '4'].inject('') {|result, val| case result+val; when '123' then break; }
<lethjakman> err
<lethjakman> >> ['1', '2', '3', '4'].inject('') {|result, val| case result+val; when '123' then break; }
<eval-in__> lethjakman => /tmp/execpad-67d9c11c8b87/source-67d9c11c8b87:2: syntax error, unexpected '}', expecting keyword_end ... (https://eval.in/155844)
<benzrf> lethjakman: you dont got an end
<lethjakman> ahh the end.
<benzrf> lol
EatMulti has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
ce_afk is now known as cescalante
bluenemo has joined #ruby
EatMulti has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
vadzimt has joined #ruby
mr_blue has quit [Quit: leaving]
St_Marx has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
nerium has joined #ruby
vadzimt has quit [Client Quit]
<lethjakman> sorry, trying to get used to onelining things like this...
saarinen has joined #ruby
<lethjakman> >> ['1', '2', '3', '4'].inject('') { |result, val| ('123' == val) ? break(val) : result+val }
<eval-in__> lethjakman => /tmp/execpad-206b5bf2d81d/source-206b5bf2d81d:2: syntax error, unexpected (, expecting ':' ... (https://eval.in/155845)
<lethjakman> tells me : is unexpected
<nerium> Is there a way to get information about a locked thread in ruby?
Xeago has quit [Remote host closed the connection]
<lethjakman> not sure why though...seems like a valid ternary
vadzimt has joined #ruby
<nerium> I think I thread has dead locked, but I'm not sure
Xeago has joined #ruby
sambao21 has joined #ruby
<wallerdev> break isnt a method
<lethjakman> ahh
<wallerdev> you cant nest it in a ternary like that
<lethjakman> `so I'd need an if?
<wallerdev> i dont even understand the point of your code haha
fresham has left #ruby [#ruby]
<benzrf> wallerdev: i dont see why you shouldnt be able to
<benzrf> it
<benzrf> it's an expr like erverything else
<benzrf> >> a ? break : c
<eval-in__> benzrf => /tmp/execpad-d7300a609ec0/source-d7300a609ec0:2: Invalid break ... (https://eval.in/155846)
spider-mario has quit [Remote host closed the connection]
<wallerdev> isnt break a a keyword??
<benzrf> >> meth {a ? break : c}
<eval-in__> benzrf => undefined method `meth' for main:Object (NoMethodError) ... (https://eval.in/155847)
<lethjakman> honestly...just trying to figure out how some stuff works.
<benzrf> wallerdev: so?
<lethjakman> I got it t hough
<lethjakman> ['1', '2', '3', '4'].inject('') { |result, val| if ('123' == result) then break result else result+val end; }
<benzrf> in ruby, all things are expressions
<benzrf> :u
teddyp1cker has quit [Ping timeout: 240 seconds]
<wallerdev> you wish
<wallerdev> break changes the control flow
jxf has joined #ruby
<benzrf> wallerdev: it is also an expression
<benzrf> syntactically
<benzrf> >> break + 1
<eval-in__> benzrf => /tmp/execpad-1291ae7e002b/source-1291ae7e002b:2: Invalid break ... (https://eval.in/155848)
<wallerdev> lol
<benzrf> >> meth {break + 1}
<eval-in__> benzrf => undefined method `meth' for main:Object (NoMethodError) ... (https://eval.in/155849)
<lethjakman> thanks guys :)
<benzrf> ^no synt error
<wallerdev> keep trying
64MAARY20 has quit [Remote host closed the connection]
<benzrf> lethjakman: np
phansch has quit [Quit: WeeChat 0.4.3]
claymore has quit [Quit: Leaving]
phinfonet has quit []
havenwood has joined #ruby
yeticry has quit [Quit: leaving]
moneydouble has joined #ruby
EatMulti has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
aspires has quit []
_echevemaster has quit [Quit: WeeChat 0.4.3]
aspires has joined #ruby
lethjakman has quit [Ping timeout: 276 seconds]
akonny has quit [Quit: akonny]
nathancahill has left #ruby [#ruby]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_dev has quit [Remote host closed the connection]
lethjakman has joined #ruby
end_guy has quit [Ping timeout: 272 seconds]
end_guy has joined #ruby
x1337807x has joined #ruby
chabill has quit [Quit: WeeChat 1.0-dev]
supermarin has joined #ruby
<jimbow> okkk i'm back
<omosoj> can a module inherit from a class?
<jimbow> havenwood thank you for your help!
<benzrf> omosoj: what would that even mean
cocotton has quit [Remote host closed the connection]
<s2013> omosoj, no.. modules dont inherit
<s2013> modules can include other modules
<omosoj> if there was a class containing only methods, could a module inherit those methods and add whatever else?
<benzrf> >> Class.instance_methods(false)
<eval-in__> benzrf => [:allocate, :new, :superclass] (https://eval.in/155850)
<s2013> no that doesnt make sense
<benzrf> omosoj: what do you mean 'a class containing only methods'
bluenemo has quit [Quit: Verlassend]
ktosiek has quit [Read error: Connection reset by peer]
<benzrf> what else can a class contain
<s2013> i feel module is more for namespacing than anything else
rezzack1 has joined #ruby
alexju has quit [Remote host closed the connection]
<omosoj> benzrf, instance variables?
<benzrf> omosoj: um, modules can access those too...
<omosoj> what happens if you write up the syntax; is there an error?
<jimbow> why would an error message not change?
<omosoj> (to inherit a class)
jrhe has quit [Quit: Connection closed for inactivity]
yokel has quit [Ping timeout: 240 seconds]
<s2013> you cannot inherit a class
cocotton has joined #ruby
<s2013> it doesnt make sense
cocotton has quit [Remote host closed the connection]
<s2013> classes can inherit another class
<s2013> you can instantiate a new object of a class you want the methods of
<jimbow> i'm taking a test driven development tutorial and the error message isn't changing
cocotton has joined #ruby
<s2013> or you can include another module that only has methods
ldnunes has quit [Quit: Leaving]
cocotton has quit [Remote host closed the connection]
<apeiros> you can subclass Module, though. which can be funny.
Morkel has quit [Quit: Morkel]
supermarin has quit [Ping timeout: 265 seconds]
EagleDelta has quit []
<omosoj> hm, ok. so is this object oriented programming 101? i need to study up on this stuff.
<s2013> yes
<benzrf> omosoj: no, this is ruby 101
<benzrf> OOP is characterized by message sends
<benzrf> and polymorphism thereof
<omosoj> ok. there is something unique about modules in ruby, right? don't remember what
Martxel has quit [Read error: Connection reset by peer]
rezzack2 has joined #ruby
<benzrf> omosoj: modules are just classes that cant be instantiated or subclass or be extended
Deejay_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> >> Class.instance_methods(false)
<eval-in__> benzrf => [:allocate, :new, :superclass] (https://eval.in/155851)
g0bl1n has joined #ruby
<benzrf> omosoj: ^those are the only methods on classes that arent on modules
rezzack has quit [Ping timeout: 265 seconds]
<benzrf> omosoj: basically, a module can do everything a class can, except be instantiated
phutchin1 has quit [Ping timeout: 258 seconds]
<jimbow> i'm getting the error on line 19 when i should be getting the error on lines 33 and 34
<benzrf> omosoj: plus it can be mixed into other modules or classe
<benzrf> s
sinkensabe has quit [Remote host closed the connection]
<omosoj> whoa, cool benzrf. ok i get it now. so if there's no superclass it obviously can't inherit from a class, either.
<jimbow> i'm supposed to be getting the error that's on lines 33-42
<benzrf> omosoj: no superclass?
<benzrf> omosoj: well
<jimbow> but i'm only getting the error that's on line 19
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jimbow> why?
<benzrf> strictly, you can mix in another module into yours
<benzrf> so that's like extending
sinkensabe has joined #ruby
n_blownapart has quit [Remote host closed the connection]
rezzack2 has quit [Client Quit]
<benzrf> omosoj: but you cannot mix in a class, iirc
rezzack has joined #ruby
<omosoj> superclass can be called on method but not on module. wait-- i'm assuming that means the name of the class it inherits from. might be wrong
<benzrf> moneydouble: oic yeah
<benzrf> * omosoj
<benzrf> i didnt realize you meant the method
<omosoj> superclass can be called on class, not on module
saarinen has quit [Quit: saarinen]
<benzrf> yeah youre right
<omosoj> no, that was a typo
rezzack1 has quit [Ping timeout: 258 seconds]
mjs2600 has quit [Remote host closed the connection]
mercerist has joined #ruby
SCommette has joined #ruby
yokel has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rbb> \\\\
mehlah has quit [Quit: Leaving...]
sinkensabe has quit [Ping timeout: 240 seconds]
Lutece has joined #ruby
<Lutece> Anyone here know how to use the sign function on the rsa gem?
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<Lutece> Can't get it to validate
<s2013> hmm Class inherits from Module?
<s2013> intersting
<terrellt> Which is part of why you can use both for namespacing.
yokel has quit [Ping timeout: 276 seconds]
agarie has quit [Remote host closed the connection]
bmurt has quit []
havenwood has quit [Ping timeout: 272 seconds]
vadzimt has quit [Quit: Textual IRC Client: www.textualapp.com]
chabill has joined #ruby
yokel has joined #ruby
workmad3 has joined #ruby
klaut has quit [Remote host closed the connection]
larissa has joined #ruby
doodlehaus has quit [Remote host closed the connection]
havenwood has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
maxamillion has joined #ruby
<maxamillion> is there a recommended approach to verifying that a string is shell safe?
saarinen has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
<wallerdev> i dont think you can verify something like that
<wallerdev> but if its user input you can escape it for a shell
tjsousa______ has joined #ruby
<xybre> What do you mean "shell safe"? I believe there is a shell escape function.
<wallerdev> if you just have a string and you dont know if its escaped or not i dont believe theres any verification you can do on it to determine whether or not it should be escaped
yokel has joined #ruby
<ari-_-e> you can also just not use the shell
workmad3 has quit [Ping timeout: 240 seconds]
<xybre> Gotta wodner why you're passing untrusted strings directly to the commandlien anyway.
<centrx> maxamillion, There's Shellwords#shellescape, and also system/exec support separating the command-line arguments into multiple method arguments which should be safe for most/all
blackmes1 has joined #ruby
<maxamillion> centrx: much appreciated
<xibalba> php broke me ten years ago, ruby is breathing new life into me
<eam> the preferred approach is to not invoke a shell at all
<ari-_-e> system uses the shell
<eam> not necessarily
<centrx> system doesn't really use the shell, if you use bash built-in functions they don't work
<maxamillion> eam: if ruby could handle file attributes properly I wouldn't have to, but I can't set a file immutable otherwise ... so here we are :/
<eam> centrx: it does use the shell, sometimes
tjsousa_____ has quit [Ping timeout: 276 seconds]
kyb3r_ has joined #ruby
<eam> maxamillion: you don't need a shell to run programs
<ari-_-e> the doc says "executes command..." in a subshell
sambao21 has quit [Quit: Computer has gone to sleep.]
<eam> ari-_-e: doc lies, ruby optimizes away the shell depending on a heuristic
<ari-_-e> wonderful
<maxamillion> eam: that's fair, all I really want is to sanitize strings being passed to external commands and "shell safe" is just the most common way I could think to describe that
<ari-_-e> maxamillion: what do you mean by file attributes?
<eam> maxamillion: if you tokenize the command yourself and pass >1 args they will be handed to execve() directly
testcore has joined #ruby
<maxamillion> ari-_-e: chattr/lsattr
<eam> for example ruby -e'system "echo", "*"'
<xybre> Hmm, there's both a rest-client and a rest_client library on my system.
<eam> versus ruby -e'system "echo *"' # uses a shell
<ari-_-e> maxamillion: so you just want to run one of those commands?
<maxamillion> eam: yes
<maxamillion> ari-_-e: right, but I want to sanitize the string I pass to it in this function
<ari-_-e> maxamillion: well again, you don't need the shell to run those commands
MrSamuel has joined #ruby
<eam> maxamillion: if you want to avoid the shell, don't pass a string pass an array of strings (a parsed out ARGV)
<maxamillion> that is irrelevant
LiohAu has quit [Quit: LiohAu]
<ari-_-e> what's irrelevant?
saarinen has quit [Ping timeout: 240 seconds]
vpretzel has quit [Remote host closed the connection]
s2013_ has joined #ruby
saarinen has joined #ruby
<xybre> Kinda greedy with their naming.
<maxamillion> it doesn't matter how it's invoked, shell or not, I want to properly sanitize the data being passed to 'chattr' ... that's the only thing I wanted to know how to do, I don't know why we're hung up on the method used to execute the external program
<eam> maxamillion: because it's the safe way to do what you're doing
<xybre> rest_client rest-client and restclient all do the same thing, but they can be each loaded on their own due to require's semantics.
<ari-_-e> maxamillion: if you don't invoke it with the shell, then... it doesn't need to be shell safe
yokel has quit [Ping timeout: 252 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
enebo has quit [Quit: enebo]
<maxamillion> nevermind, I'm apparently not communicating this properly
<maxamillion> thank you for your help, have a nice day
maxamillion has left #ruby [#ruby]
dfinly has quit [Quit: Farewell]
shalicke has quit [Ping timeout: 258 seconds]
aspires has quit []
lw has quit [Quit: s]
yubrew has joined #ruby
aspires has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
n_blownapart has joined #ruby
niharvey has quit [Quit: No Ping reply in 180 seconds.]
yubrew_ has quit [Ping timeout: 240 seconds]
niharvey has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
TDJACR has joined #ruby
alem0lars has quit [Quit: alem0lars]
andrewjanssen has joined #ruby
endash has quit [Quit: endash]
shalicke has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<ari-_-e> eam: ok, the doc actually does say that it doesn't use the shell in some cases
<eam> ah then :)
vlad_starkov has joined #ruby
axilla has joined #ruby
havenwood has quit [Remote host closed the connection]
sambao21 has joined #ruby
fantazo has joined #ruby
sambao21 has quit [Client Quit]
ryanleesipes has quit [Quit: Leaving]
andrewjanssen has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
MrSamuel has quit [Ping timeout: 252 seconds]
sambao21 has quit [Client Quit]
testcore has quit [Quit: [BX] Bender uses BitchX. Bite my shiny metal ass!]
testcore has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
eka has joined #ruby
rbb has quit [Quit: Leaving]
axilla has quit [Ping timeout: 265 seconds]
benzrf is now known as voicemeplease
voicemeplease is now known as benzrf
<benzrf> wrong channel soz
<redondo> join @rubyonrails
<redondo> oh
<centrx> #
kpshek has quit []
havenwood has joined #ruby
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
BHensley has joined #ruby
wallerdev has quit [Quit: wallerdev]
chubchubcharles has joined #ruby
qwyeth has quit [Quit: Leaving]
wallerdev has joined #ruby
sambao21 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<chubchubcharles> hi
shashank_rs has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
<Lutece> Hello
garndt has quit [Quit: Connection closed for inactivity]
nanoyak has joined #ruby
shashank_rs has joined #ruby
<chubchubcharles> im new to irc. what usually happens here?
mjsmith2 has quit [Read error: Connection reset by peer]
<segfalt> people chat about things.
<chubchubcharles> hm ok.
smathieu has quit [Remote host closed the connection]
<shevy> chubchubcharles we chat about the programming language ruby here
<shevy> in other channels they chat about other things
<segfalt> sometimes we chat about doctor who
dangerou_ has joined #ruby
<segfalt> but that's off topic
<centrx> chubchubcharles, Freenode is most commonly used for software projects, mostly open-source
smathieu has joined #ruby
<benzrf> chubchubcharles: i mean you can make any channel you like
fantazo has quit [Remote host closed the connection]
<benzrf> chubchubcharles: but yeah freenode tends to be the network for tech stuff
r0bby has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
chabill has quit [Quit: WeeChat 1.0-dev]
dangerousdave has quit [Ping timeout: 240 seconds]
zorak has joined #ruby
_Andres has joined #ruby
pierre1_ has joined #ruby
<chubchubcharles> cooooool.
einarj has quit [Remote host closed the connection]
chubchubcharles has left #ruby [#ruby]
supermarin has joined #ruby
x1337807x has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
cina has joined #ruby
chubchubcharles has joined #ruby
chubchubcharles has left #ruby [#ruby]
n_blownapart has quit [Remote host closed the connection]
einarj has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
omosoj has quit [Ping timeout: 252 seconds]
<cina> is it possible to get arrow keys to work as expected in `gets`?
jobewan has quit [Quit: Leaving]
dingus_khan has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
supermarin has quit [Ping timeout: 245 seconds]
<cina> or, is there a standalone *nix commandline tool for reading user input (like `read`) that works well with arrow keys?
<lethjakman> so...I've seen things like delay in sidekiq...but I don't think I understand how it takes everything after it and shoves it into redis. is Proxy not an internet thing?
<arrubin> cina: What do you expect them to do?
DrinkMachine has quit [Quit: Lost terminal]
dblessing_ has quit [Quit: dblessing_]
deric_skibotn has quit [Ping timeout: 240 seconds]
<wallerdev> probably expects them to move the cursor around
<cina> arrubin: when I press left instead of moving left it prints ^[[D and moves right
<wallerdev> lol
<shevy> cina not in gets but in Readline module
<shevy> cina in irb, try: require 'readline'
einarj has quit [Ping timeout: 240 seconds]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<cina> shevy: perfect! Readline.readline does exactly what I was looking for. thanks
_Andres has joined #ruby
<shevy> \o/
chubchubcharles has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
chubchubcharles has left #ruby [#ruby]
Megtastique has quit []
skysploit has quit [Ping timeout: 252 seconds]
skysploit has joined #ruby
omosoj has joined #ruby
banister has joined #ruby
aspires has quit []
michaelchum has joined #ruby
oetjenj has left #ruby ["Textual IRC Client: www.textualapp.com"]
apeiros has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
nanoyak has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omosoj has quit [Ping timeout: 258 seconds]
rayners has quit [Remote host closed the connection]
KAO has joined #ruby
aspires has joined #ruby
jimbow has quit [Quit: Lost terminal]
Valesk_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
samuel02 has joined #ruby
BHensley_ has joined #ruby
einarj has joined #ruby
BHensley has quit [Read error: No route to host]
BHensley_ has quit [Client Quit]
charliesome has joined #ruby
TDJACR has quit [Quit: ZNC - http://znc.in]
gr33n7007h has joined #ruby
roolo has joined #ruby
SegFaultAX has quit [Excess Flood]
einarj has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
MrSamuel has joined #ruby
m8 has quit [Quit: Sto andando via]
dangerousdave has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
imaleaf has joined #ruby
larissa has quit [Quit: Leaving]
KAO has quit [Quit: Lost terminal]
vpretzel has joined #ruby
john3213 has joined #ruby
<imaleaf> I asked ##php if there was a place specifically for php bashing, and they said to come here
<imaleaf> :)
rgiscard has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<wallerdev> haha i doubt that
<wallerdev> we love php here
<centrx> hah
<benzrf> imaleaf: nice
<benzrf> ignore wallerdev
<segfalt> uh
<benzrf> php is shit
<segfalt> do we
<segfalt> lol
Valesk_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
binaryhat has joined #ruby
<wallerdev> php haters are in #rubyonrails
combusean has quit [Ping timeout: 265 seconds]
<benzrf> php is proof that inadvertant evil can produce worse results than malignance
<imaleaf> wow, they weren't kidding :D centrx read that before I learned php :)
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> I would choose COBOL over PHP
<arrubin> centrx: PHP, JS, or ColdFusion?
dw1 has joined #ruby
Bad_Advice_Cat has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
<centrx> JS
einarj has quit [Ping timeout: 276 seconds]
moneydouble has quit [Quit: Leaving.]
ziyadb_ has joined #ruby
<centrx> JS is actually a decent language, just verbose
<benzrf> js is gorse
john3213 has left #ruby [#ruby]
<benzrf> *grose
<centrx> Only three choices were given :(
ta has joined #ruby
samuel02_ has joined #ruby
<arrubin> benzrf: Gross?
<benzrf> y
zybi1 has quit [Quit: gn8!]
vlad_starkov has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
combusean has joined #ruby
Arkaniad has joined #ruby
florida has joined #ruby
samuel02 has quit [Ping timeout: 276 seconds]
MrWharfsnort has quit [Quit: Leaving]
cina has quit [Ping timeout: 276 seconds]
n_blownapart has joined #ruby
gigetoo has quit [Remote host closed the connection]
ss__ has joined #ruby
aspires has quit []
<xybre> PHP is written in Ruby.
Toger has quit [Read error: Connection reset by peer]
n_blownapart has quit [Remote host closed the connection]
aspires has joined #ruby
ashleah- has left #ruby ["Leaving"]
axilla has joined #ruby
Valesk_ has joined #ruby
gigetoo has joined #ruby
florida has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
s2013_ has quit [Ping timeout: 264 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
b1205 has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
aspires has quit [Client Quit]
ta has quit [Remote host closed the connection]
s2013_ has joined #ruby
64MAAR0ZT has joined #ruby
64MAAR0ZT has quit [Remote host closed the connection]
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
rafaelmagu has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
TDJACR has joined #ruby
axilla has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
ss__ has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
jamto11 has quit [Remote host closed the connection]
endash has joined #ruby
s2013_ has quit [Ping timeout: 240 seconds]
n_blownapart has joined #ruby
Xeago has joined #ruby
jxf has joined #ruby
arrubin has quit []
aspires has joined #ruby
mercwith1mouth has quit [Ping timeout: 252 seconds]
agarie has joined #ruby
aspires has quit [Client Quit]
andrewlio has quit [Quit: Leaving.]
aspires has joined #ruby
bradhe has quit [Remote host closed the connection]
imaleaf has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
rm__ has joined #ruby
omosoj has joined #ruby
oops has joined #ruby
Megtastique has joined #ruby
supermarin has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
oops is now known as imaleaf
mercwithamouth has joined #ruby
aspires has quit []
dilated_dinosaur has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
shvelo has quit [Ping timeout: 245 seconds]
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lw has joined #ruby
dingus_khan has joined #ruby
jhulten has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: Leaving]
supermarin has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Royalb15 has quit [Read error: Connection reset by peer]
yokel has joined #ruby
aspires has joined #ruby
einarj has joined #ruby
dingus_khan has quit [Ping timeout: 276 seconds]
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
dingus_khan has joined #ruby
toastynerd has quit [Remote host closed the connection]
aspires has quit [Client Quit]
thomasxie has joined #ruby
phoo1234567 has quit [Quit: Leaving]
aspires has joined #ruby
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
aspires has quit [Client Quit]
<imaleaf> so do things actually happen here? like, people coding and stuff
<imaleaf> :p
dingus_khan has quit [Ping timeout: 264 seconds]
predator217 has joined #ruby
thomasxie has quit [Client Quit]
<centrx> imaleaf, Yeah we type all our code into IRC
<centrx> imaleaf, Then Freenode compiles it for us
<benzrf> imaleaf: this channel is nearly as awesome as #haskell-lens
<benzrf> * #haskell
<imaleaf> centrx: well I'm just surprised by the lack of questions and activity on a channel with 840+ people on it :P
<centrx> imaleaf, Freenode is most active during the daytime of America/Europe
samuel02_ has quit [Remote host closed the connection]
samuel02 has joined #ruby
aspires has joined #ruby
<centrx> imaleaf, Many people leave their IRC clients logged in 24/7
<imaleaf> ah, I see
<benzrf> i do!
<benzrf> but i switch nicks when offline
predator117 has quit [Ping timeout: 240 seconds]
* segfalt has been using irccloud
duggiefresh has quit [Ping timeout: 252 seconds]
<imaleaf> I'm still trying to get smuxi to work properly with my remote server, so unfortunately I keep missing bits and pieces throughout the day
<benzrf> smuxi?
<benzrf> i use irssi + znc
<benzrf> znc is pretty sweet B-)
<wallerdev> i used to use irssi
<wallerdev> it was really pretty
<benzrf> wallerdev: no more?
bmcorser has quit [Quit: Connection closed for inactivity]
<wallerdev> no more
<benzrf> y not
<wallerdev> because i use my terminal for other things and didnt want to have two terminal windows separate
<wallerdev> and didnt want to leave it on a tab
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<imaleaf> I'll check out znc. I kind of like having a guified irc client though, it minimizes to the tray when I don't need it
samuel02 has quit [Ping timeout: 276 seconds]
Bad_Advice_Cat has left #ruby ["Leaving"]
kevind has quit [Quit: kevind]
<benzrf> imaleaf: znc is a bouncer
<benzrf> it
<benzrf> it's mostly client-agnostic
Megtastique has quit []
<imaleaf> but that's more syntax to learn, and I'm still trying to figure out how php uses references! :p
yfeldblum has joined #ruby
vlad_starkov has joined #ruby
Slavox|AFK is now known as Slavox
nanoyak has quit [Quit: Computer has gone to sleep.]
jespada has quit [Quit: Leaving]
lambo has joined #ruby
apeiros has joined #ruby
dilated_dinosaur has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
Royalb15 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 252 seconds]
<lambo> hello im in trouble with gem : http://pastie.org/9200727 the weird stuff is that bundle install works just fine also their is no auto clompletion with gem is that the default?
freezey has joined #ruby
nanoyak has joined #ruby
s2013 has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
lw has quit [Quit: s]
baweaver has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
lw has joined #ruby
thomasxie has joined #ruby
<shevy> lambo your openssl seems broken
<lambo> how can gem doesnt work and bundle does?
<shevy> I am the wrong to ask, I do not use bundle
<shevy> gem works perfectly fine here
saarinen has quit [Quit: saarinen]
<shevy> gem version: 2.2.2
<shevy> openssl: 1.0.1g
thomasxie has quit [Client Quit]
mikecmpbll has joined #ruby
<lambo> OpenSSL 1.0.1f
DrShoggoth has quit [Quit: Leaving]
<lambo> gem has autocompletion as default?
baweaver has quit [Ping timeout: 240 seconds]
<shevy> what is autocompletion
s00pcan has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
nfk has quit [Quit: yawn]
<lambo> tab to comple commande
jrhe has joined #ruby
<lambo> whatever it is realy called ^^
x1337807x has joined #ruby
<shevy> aha, I don't think it has tab-completion out of the box
doodlehaus has joined #ruby
n_blownapart has quit []
Megtastique has joined #ruby
<lambo> well its at least one thing in order here
axilla has joined #ruby
Megtastique has quit [Client Quit]
duggiefresh has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
agjacome has joined #ruby
yfeldblum has joined #ruby
duggiefr_ has joined #ruby