sepp2k has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
kireevco has joined #ruby
razum2um has joined #ruby
ghr has joined #ruby
terrellt has quit [Ping timeout: 256 seconds]
nanoyak has joined #ruby
sepp2k has joined #ruby
momomomomo has quit [Quit: momomomomo]
sdouglas has joined #ruby
pietr0 has quit [Quit: pietr0]
momomomomo has joined #ruby
mattstratton has joined #ruby
havenwood has quit []
bwilson has quit [Quit: bwilson]
djbkd has quit [Remote host closed the connection]
Ankhers has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<lanox>
Anyone knows much about yeoman
temple3188 has quit [Remote host closed the connection]
bruno- has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hakunin_ has joined #ruby
<theharshest>
how to pick a random element from set?
hakunin has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
mikepack has joined #ruby
<centrx>
theharshest, my_set.to_a.sample
mikepack has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 264 seconds]
m3_del_ has quit [Remote host closed the connection]
<theharshest>
centrx: thanks
sdouglas has quit [Remote host closed the connection]
m3_del has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
Shidash has joined #ruby
momomomomo has quit [Quit: momomomomo]
sdouglas has joined #ruby
tacos1de has quit [Ping timeout: 264 seconds]
ddv has joined #ruby
tacos1de has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
necros has quit []
macclearich has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
sdwrage_ has joined #ruby
nickenchuggets has joined #ruby
sdwrage has quit [Ping timeout: 272 seconds]
phutchins has quit [Ping timeout: 240 seconds]
Wolland has quit [Remote host closed the connection]
lanox has quit [Quit: Lost terminal]
zz_karupa is now known as karupa
xargoon has quit [Ping timeout: 245 seconds]
nmokru has quit [Quit: nmokru]
Takle has joined #ruby
asdasdasdasss has joined #ruby
snath has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
andrewjanssen has joined #ruby
FLeiXiuS has joined #ruby
FLeiXiuS has joined #ruby
doodlehaus has joined #ruby
jamto11 has joined #ruby
doodlehaus has quit [Client Quit]
bmurt has quit []
JoshGlzBrk has joined #ruby
asdasdasdasss has quit [Ping timeout: 260 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
tjr9898 has joined #ruby
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 240 seconds]
snath has joined #ruby
m3_del has quit [Remote host closed the connection]
momomomomo has joined #ruby
FLeiXiuS has quit [Ping timeout: 272 seconds]
arrubin has joined #ruby
jespada has quit [Ping timeout: 272 seconds]
banjara has quit [Quit: Leaving.]
kayloos has joined #ruby
existensil has joined #ruby
shadowshell has quit [Remote host closed the connection]
Karpuragauram has joined #ruby
oo_ has joined #ruby
tkuchiki has joined #ruby
northfurr has quit [Quit: northfurr]
kayloos has quit [Ping timeout: 240 seconds]
existensil has quit [Read error: Connection reset by peer]
existensil has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
enebo has quit [Quit: enebo]
Karpuragauram has quit [Quit: Leaving]
snath has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
nateberkopec has joined #ruby
lolmaus has joined #ruby
snath has joined #ruby
northfurr has joined #ruby
AlexRussia_ is now known as AlexRussia
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
sevenseacat has joined #ruby
treehug88 has joined #ruby
lw has quit [Quit: s]
aspires has quit []
washtubs has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
Sgeo has joined #ruby
<Sgeo>
Hi all.
<Sgeo>
Question about Ruby DSLs: Suppose some library gives an arbitrary DSL, going to pretend something like Sinatra, but not necessarily sinatra:
<Sgeo>
get "/" { puts request.url }
washtubs has joined #ruby
<Sgeo>
Now, if I want to abstract that puts request.url into a function, and have request magically visible from there like it is in the block passed to get, how can I do that?
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carif has joined #ruby
<centrx>
Not sure what you mean
<centrx>
blocks can be passed around as Procs, is that what you are referring to?
<toretore>
normally it would be run as an instance method on the class, so any other instance methods can run with the same scope
chipotle has joined #ruby
<Sgeo>
toretore: and most similar DSLs do something like that?
Hobogrammer has quit [Ping timeout: 240 seconds]
<toretore>
class MyApp < SomeShittyDSL; get('/'){ hello }; def hello; p request; end; end
datafirm has joined #ruby
<toretore>
it depends on the implementation
fabrice31 has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<Sgeo>
Hmm :/. I guess I'm trying to compare to Haskell monad-based DSLs, where it's easy to abstract into a function
<toretore>
if you *really* want to make sure you can do instance_eval(&unbound_method)
bradleyprice has joined #ruby
saarinen has quit [Quit: saarinen]
<toretore>
ruby doesn't have first class functions; methods are always bound to an object
<Sgeo>
toretore: and that works with most similar DSLs?
washtubs has quit [Ping timeout: 260 seconds]
<Sgeo>
I'm also under the impression that using instance_eval can be an issue, but as long as most DSLs are consistent so things can be abstracted in similar ways, I guess that's ok by me
<toretore>
i would advise that you don't try to write ruby like you would haskell
washtubs has joined #ruby
jamto11 has quit [Remote host closed the connection]
<toretore>
instance_eval has its gotchas, yes
<zenspider>
toretore: doesn't have first class functions?
<toretore>
nope
<zenspider>
are you distinguishing "function" from "method" or somesuch?
<toretore>
of course
bruno- has joined #ruby
<toretore>
i'm talking about a function as a primitive that can be passed around
fabrice31 has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
isthisreallife has joined #ruby
isthisreallife has left #ruby [#ruby]
<zenspider>
that sounds like a lambda to me
vpretzel has quit [Ping timeout: 240 seconds]
<toretore>
well
<zenspider>
and our lambdas and methods are both first class... so...
<toretore>
a lambda is a Proc object on which you call a method :)
bradleyprice has quit [Ping timeout: 264 seconds]
<zenspider>
not sure what you mean by "primitive", because that doesn't really mean much in ruby
vpretzel has joined #ruby
<toretore>
i should say, rather, that ruby *doesn't have functions*
<toretore>
only methods
<zenspider>
if you can assign it to a variable or pass it as an arg, it's first class
<toretore>
sure, but it's not a function
<zenspider>
I'm gonna have to disagree on that one
datafirm has quit [Ping timeout: 240 seconds]
<toretore>
sure, you can use lambdas pretty much as you would use functions
<zenspider>
lambda { |n| 2 * n }[2] => 4 vs ((lambda (n) (* 2 n)) 2) => 4 ? not much difference
aspires has quit []
<zenspider>
not pretty much.
<toretore>
the difference is [] vs ()
<toretore>
or the abomination that is .()
<zenspider>
and that somehow is a difference in your mind?
<zenspider>
syntax?
washtubs has quit [Ping timeout: 260 seconds]
<toretore>
yes, i don't consider lambdas in ruby to be functions
mehlah has quit [Quit: Leaving...]
<zenspider>
well... then you'd be wrong.
washtubs has joined #ruby
<zenspider>
I can implement a scheme on ruby using only lambdas... those lambdas are functions.
ghr has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 272 seconds]
xargoon has joined #ruby
rubytor has quit [Ping timeout: 240 seconds]
lanox has joined #ruby
foo-bar- has joined #ruby
nmokru has joined #ruby
<toretore>
zenspider: ok, i've thought about it, and you're right. lambdas are functions
<toretore>
but it's not different from `o = Object.new; def o.call; 'hello'; end`
nmokru has quit [Client Quit]
bricker has quit [Ping timeout: 264 seconds]
<zenspider>
and?
rafacv has quit []
<toretore>
just saying
NinoScript has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<zenspider>
just saying what, exactly?
nerdy has joined #ruby
<zenspider>
how do you think functions work? they have to have storage
<zenspider>
guess what is a good storage mechanism? objects
foo-bar- has quit [Ping timeout: 240 seconds]
<zenspider>
see alan kay's COLA, combined object lambda architecture
deric_skibotn has quit [Ping timeout: 272 seconds]
m3_del has joined #ruby
<zenspider>
objects for storage, lambdas for functionality. each uses the other to co-exist
fold has joined #ruby
WillAmes has joined #ruby
* zenspider
goes to forage for foods
maestrojed has quit [Quit: Computer has gone to sleep.]
Hobogrammer has joined #ruby
m3_del has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
carif has quit [Quit: Ex-Chat]
Atrumx has quit [Quit: Exit]
maestrojed has joined #ruby
fighella has quit [Quit: fighella]
dc_ has joined #ruby
<toretore>
ok, you're right
<toretore>
Sgeo: here's what you do: create a function (or a "method"), pass `self` to that function
Asher has quit [Quit: Leaving.]
<centrx>
first-class behavior
andrewjanssen has joined #ruby
Asher has joined #ruby
jfran has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdwrage_ has quit [Quit: This computer has gone to sleep]
robustus has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
bahar has quit [Changing host]
<Sgeo>
toretore: that works, but it means that such a function uses the DSL differently than the code that's natively accessing the DSL
oo_ has quit [Remote host closed the connection]
<toretore>
so?
<toretore>
instance_eval it
<Sgeo>
(Also, still assuming that these DSLs are done pretty much all the same way, but I'm guessing that that's a safeish assumption?)
iamjarvo has joined #ruby
<toretore>
if they're all done the same way (instance_evaled on an instance of the class), you can just define methods
robustus has joined #ruby
<toretore>
but honestly, i wouldn't spend too much energy worrying about it
<Sgeo>
I guess I can look at a few DSL creation libraries and see if they usually use the same trick to define the DSL
Shidash has quit [Ping timeout: 264 seconds]
lewix has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
lukec has joined #ruby
chipotle has quit [Quit: cya]
sepp2k has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
tus has joined #ruby
<toretore>
beer time, bbl
alexju has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
lanox has quit [Quit: leaving]
troyready has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ixti has quit [Ping timeout: 240 seconds]
wang has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
hakunin_ has quit []
sdouglas has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn_ is now known as devyn
snath has joined #ruby
<sevenseacat>
fun
<Cages>
rkazak: An error
<sevenseacat>
how did you install ruby?
<sevenseacat>
btw - 'an error' doesnt help anyone, telling us what the error is, might
<Cages>
sevenseacat: It was already on my mac
Zebroid has quit [Read error: Network is unreachable]
Ankhers has quit [Ping timeout: 264 seconds]
<Cages>
Error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb/input-method.rb:68:in `initialize': No such file or directory - —version (Errno::ENOENT)
<rkazak>
mozzarella: how do I stop that em stuff...
washtubs has quit [Ping timeout: 256 seconds]
washtubs has joined #ruby
<mozzarella>
well, is it your irc client or your keyboard layout?
dopie has joined #ruby
sputnik13 has joined #ruby
<dopie>
hey #ruby the nicest place on earth
<rkazak>
irc, I type - - but it changes....
<dopie>
muuunis, stop spamming me
drawingthesun has quit [Read error: Connection reset by peer]
Samm has joined #ruby
<mozzarella>
which client is that? is it xchat?
<Samm>
hi
foo-bar- has joined #ruby
<rkazak>
Colloquy
oo_ has quit [Remote host closed the connection]
<drizz>
heh, that sounds like really annoying behaviour
dc_ has quit []
terrellt has quit [Quit: Leaving...]
<rkazak>
test - -
<rkazak>
test --
<Samm>
hi
Adran has joined #ruby
<rkazak>
OK, there was a setting which converts input to utf8 set that to leave as ascii...
<rkazak>
Cages: what does irb —prompt default show ?
<rkazak>
damm.
<Cages>
i get an error
<drizz>
I think rkazak means `irb --simple-prompt`
Rudisimo has quit [Quit: Leaving]
<Cages>
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb/input-method.rb:68:in `initialize': No such file or directory - —prompt (Errno::ENOENT) "
<Sgeo>
Any online sandboxes where I can use arbitrary gems?
<rkazak>
actually why not so irb —help ….
<Cages>
drizz: That displays >>
<Sgeo>
I want to play with that delimited continuation gem a bit
<sevenseacat>
Sgeo: install it and play with it?
washtubs has quit [Ping timeout: 260 seconds]
<Sgeo>
sevenseacat: I'd need to install Ruby first
foo-bar- has quit [Ping timeout: 240 seconds]
<sevenseacat>
so... install ruby?
<Sgeo>
Which version? 1.9.3, or try to get 2.1.0 or something working on Windows?
washtubs has joined #ruby
<sevenseacat>
whatever is compatible with the gems you want to use?
<rkazak>
Sgeo: whatever the gem needs….
<rkazak>
:)
<sevenseacat>
doesnt seem like rocket surgery
<rkazak>
Cages: irb —help prints ‘>>’
<dopie>
Sgeo, wprd of advice
<dopie>
DO NOT USE WINDOWS WITH RUBY
<dopie>
:)
<Sgeo>
:(
jenskarlsen has joined #ruby
<rkazak>
Cages: cut your losses and go with ruby-install and chruby…. and I think you will find 1.9.3 as the oldest supported version….
<sevenseacat>
rkazak: he's following a book that uses 1.8.7 and wants to be the same as the book
<Cages>
irb --help works i believe " --prompt prompt-mode --prompt-mode prompt-mode Switch prompt mode. Pre-defined prompt modes are `default', `simple', `xmp' and `inf-ruby' "
<Cages>
is the ket here
<Cages>
key*
<Sgeo>
I should probably actually relearn Ruby instead of coasting on what I learned years ago + the occasional snippit now
<rkazak>
Cages: ‘default’ should give you the prompt you were lookng for…
<Cages>
rkazak: it does not
Ankhers has joined #ruby
<sevenseacat>
rkazak: unless something changed the default
<rkazak>
Cages: Have you just installed this ?
<sevenseacat>
sigh
<sevenseacat>
rkazak: he's using his system ruby
washtubs has quit [Ping timeout: 240 seconds]
<Cages>
yes
dideler has joined #ruby
washtubs has joined #ruby
<Cages>
goal is to change my default prompt
owen1_ has quit [Ping timeout: 240 seconds]
vsoftoiletpaper has quit []
yfeldblu_ has joined #ruby
<sevenseacat>
create an .irbrc file, put your new prompt command in it
vsoftoiletpaper has joined #ruby
<mozzarella>
find / -name '*irbrc*' 2>/dev/null
ramfjord has quit [Ping timeout: 260 seconds]
<Cages>
ok sevenseacat and mozzarella i appreciate the help
<Sgeo>
Bindings need to be used with string evaluation?
<Sgeo>
:/
yfeldblum has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
amargherio has quit [Remote host closed the connection]
mikepack has joined #ruby
_maes_ has joined #ruby
Frank13760 has quit []
shevy has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 250 seconds]
<war32>
oh, u mean copy/paste for rspec challenge, sorry
g0bl1n has quit [Quit: g0bl1n]
techsethi has quit [Quit: techsethi]
<godd2>
okay so there's like 20 test suites for Ruby; how do I figure out which one(s) to use? Do I user more than one at once? Do I use all of them at once?
tmcgoo has joined #ruby
pasties has joined #ruby
<tmcgoo>
why cant i join ruby on rails
<tmcgoo>
says
<tmcgoo>
i need to be identified with services
<godd2>
you need to be identified with services
<godd2>
you need to register your nick
djbkd has joined #ruby
lukec has quit [Quit: lukec]
<tmcgoo>
how do i go about that
<godd2>
try /msg NickServ help
banjara has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
gimpygoo has quit [Ping timeout: 240 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
<tmcgoo>
i cant even enter the channel
<tmcgoo>
to msg nickserv
asdasdasdasss has joined #ruby
pu22l3r has joined #ruby
Eyes is now known as Eyess
<godd2>
no, messaging NickServ is something you get by virtue of having connected to freenode
<godd2>
you don't have to enter any channel
pasties has quit [Ping timeout: 250 seconds]
sevvie has quit [Quit: Bye]
<tmcgoo>
oh ok
manacit is now known as manacit[ICANTTLK
<tmcgoo>
so i registered awhile ago
<tmcgoo>
how do i log back into that nick?
manacit[ICANTTLK is now known as manacit[VOICEME}
funktor has joined #ruby
manacit[VOICEME} is now known as manacit[SEA]
shevy has joined #ruby
<Samm>
hi
<godd2>
tmcgoo if you know the password just do /msg NickServ identify mypassword
manacit[SEA] is now known as manacit
asdasdasdasss has quit [Ping timeout: 264 seconds]
<godd2>
the shortened version is /ns identify whatever_your_password_is
zkay11 has quit [Quit: Leaving.]
sigurding has joined #ruby
yfeldblum has joined #ruby
<tmcgoo>
sweet
<tmcgoo>
thanks guys!
ramfjord has joined #ruby
nerdy has joined #ruby
bruno- has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
vyorkin has joined #ruby
oo_ has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
gimpygoo has joined #ruby
mgberlin_ has joined #ruby
aaaaaaa has joined #ruby
kayloos has joined #ruby
<aaaaaaa>
should i learn ruby?
<dopie>
should you eat?
<dopie>
and feed your family or yourself?
mgberlin has quit [Ping timeout: 250 seconds]
claw_ has joined #ruby
claw has quit [Quit: Konversation terminated!]
bruno- has quit [Ping timeout: 264 seconds]
michael_lee has joined #ruby
pu22l3r has quit [Remote host closed the connection]
kayloos has quit [Ping timeout: 240 seconds]
codabrink has quit [Ping timeout: 240 seconds]
aaaaaaa has quit [Quit: Page closed]
j_mcnally has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
theharshest has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
pontiki has joined #ruby
<jameyd>
what the heck are people using to parse subcommands in ruby command line tools?
<pontiki>
GLI, thor
<pontiki>
probably others
<jameyd>
i see some recent posts bending optpare to their will and it's fugly compared to general ruby, there's a subcommand gem that hasn't been pushed to in 4 years, and there's something called trollop which a lot of people are excited about but doesn't seem to exist anywhere
aganov has joined #ruby
<jameyd>
i mean it's on rubygems but no source code
<pontiki>
well, check both of those, see if they do what you want
<jameyd>
gli looks cool, thanks pontiki
<jameyd>
many many stars, too
<jameyd>
don't know why that doesn't come up in google searches
<jameyd>
or maybe my google-fu is weak right now
<Samm>
hi
<godd2>
>> StopIteration.ancestors
<Samm>
hello
<Samm>
hi jameyd
<pontiki>
idk, jameyd, it's by dave copeland of 'awesome command line tools in ruby'
<pontiki>
gli, i mean
<pontiki>
thor is part of rails
<jameyd>
hi Samm
<jameyd>
i was looking specifically for things with the keyword subcommand
<Sgeo>
OO-based web servers make me feel twitchy, but lately I've started to realize it would be simple enough to write a class that's just initialized with a function
tacos1de has quit [Ping timeout: 264 seconds]
<Sgeo>
Oh, WEBrick comes with • HTTPServlet::ProcHandler
<Samm>
jameyd from ?
<jameyd>
what?
jamto11 has joined #ruby
tacos1de has joined #ruby
mary5030 has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Channel6 has quit [Quit: Leaving]
GriffinHeart has quit [Remote host closed the connection]
Matix has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
<Samm>
where r u from
<jameyd>
usa, west coast
<jameyd>
i'm off to bed, night people
<jameyd>
pontiki: if i'm remembering irc handles correctly, that's the 400th thing you've helped me with. thanks again
<pontiki>
lol
<pontiki>
sure
<dopie>
pontiki, i lov eyou
<dopie>
:)
tobago has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
<pontiki>
like a mother?
<dopie>
no
Matip has quit [Ping timeout: 240 seconds]
<dopie>
like a older jedi
funburn has quit [Quit: funburn]
<pontiki>
i'm probablyold enough to be you mother, even your grandmother
<dopie>
depends
yliu has joined #ruby
<dopie>
at what age did you have kids?
<pontiki>
looks as good you won't when my age you reach
<pontiki>
30
<dopie>
how old is your kidnow?
<pontiki>
27
<dopie>
hmmm
<dopie>
yeah
<dopie>
you can be my mother
<dopie>
:)
phutchins has quit [Ping timeout: 240 seconds]
<pontiki>
but i'm NOT so clean up your own messes!!
<dopie>
so how'd u gt into coding/
toastynerd has quit [Remote host closed the connection]
<pontiki>
at age 11
<pontiki>
my brother dragged me into summer school computing class so i could write programs to calculate trajectories for his model rockets
gdd229 has quit [Quit: Leaving.]
pasties has joined #ruby
<dopie>
wow
zenojis has quit [Quit: btc-e]
<Samm>
hi
<Samm>
pontiki
<Samm>
dopie
<dopie>
hey Samm
<Samm>
hi dear
<Samm>
where u from
landodger has joined #ruby
<dopie>
what?!
larissa has quit [Quit: Leaving]
SCommette has quit [Quit: SCommette]
<Samm>
which country ?
<dopie>
you can find out pretty easy
mgberlin_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Cages has quit [Quit: Page closed]
<Samm>
what you interested in ?
Zebroid has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
kyb3r_ has joined #ruby
vyorkin has joined #ruby
GriffinHeart has joined #ruby
Aaaal has joined #ruby
timgauthier has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
zenojis has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
meinside has joined #ruby
heftig has quit [Quit: Quitting]
asdasdasdasss has joined #ruby
tomoyuki28jp has joined #ruby
<tomoyuki28jp>
Question regarding the slop gem. Is there a built-in way to create a command alias?
Wolland has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
rkazak has left #ruby [#ruby]
b00stfr3ak has joined #ruby
rkazak has joined #ruby
relix has joined #ruby
zenojis is now known as xenogis
mary5030 has quit [Remote host closed the connection]
theharshest has quit [Quit: This computer has gone to sleep]
asdasdasdasss has quit [Ping timeout: 256 seconds]
hmsimha has joined #ruby
tokik has quit [Remote host closed the connection]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tokik has joined #ruby
whyy has joined #ruby
funktor has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
<apeiros>
moin
kireevco has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 264 seconds]
muuunis was kicked from #ruby by apeiros [spambots are unwelcome]
theharshest has joined #ruby
tagrudev has joined #ruby
washtubs has quit [Ping timeout: 264 seconds]
djbkd has quit [Quit: My people need me...]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
theharshest has quit [Client Quit]
robbyoconnor has joined #ruby
why_away has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik1_ has joined #ruby
<tomoyuki28jp>
apeiros: moin
whyy has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<godd2>
almost looks like apres moi
papercode has quit [Quit: WeeChat 0.4.3]
why_away is now known as whyy
emergion has quit [Quit: Connection closed for inactivity]
foo-bar- has joined #ruby
anaeem1_ has joined #ruby
theharshest has joined #ruby
buub has joined #ruby
buub_ has joined #ruby
compAz has joined #ruby
theharshest has quit [Client Quit]
foo-bar- has quit [Ping timeout: 250 seconds]
mercwithamouth has joined #ruby
Samm has quit [Quit: Page closed]
senayar has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
sdwrage has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
Aaaal has quit [Quit: Aaaal]
toretore has joined #ruby
yano has joined #ruby
IceDragon has quit [Quit: Space~~~]
starkhalo has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
olivier_bK has quit [Ping timeout: 256 seconds]
techsethi has joined #ruby
agjacome has joined #ruby
mios has joined #ruby
bal has joined #ruby
sigurding has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass>
choose better names, I've no idea what the data represents actually
<niik00>
Mmmm in fact I tried to use regex to parse my string so that I don't have to split manually the string
qba73 has joined #ruby
<jhass>
but why if it's easier?
foo-bar- has quit [Ping timeout: 240 seconds]
<niik00>
Just because I'll receive my string : regex.match(string) and it's done.
ghr has joined #ruby
<jhass>
is it really if you have to invest that much time in understanding the regex?
<jhass>
and then invest that time again if you later need to change it?
jottr has joined #ruby
funburn has joined #ruby
guardian has joined #ruby
funburn has quit [Client Quit]
<guardian>
hello, I would like to understand more about the following
<guardian>
I'm using nanoc and I updated gems. nanoc requires cri ~> 2.3. It happens after having updated my gems I have both cri 2.6.0 and 2.6.1 installed
<guardian>
when launching 'nanoc compile' I get "WARN: Unresolved specs during Gem::Specification.reset"
<guardian>
but when launching 'bundle exec nanoc compile' I don't have any warning
jack_rabbit has quit [Ping timeout: 240 seconds]
<guardian>
I think it's because bundler somehow ties the execution to 2.6.1 while launching 'nanoc compile' ruby's confused about 2 gems being available
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<guardian>
what's the proper way to fix that? as a user, I can gem cleanup and as soon as only cri 2.6.1 remains installed I don't face the warning anymore
<guardian>
but as a developer, is there something I could change in nanoc to avoid this situation?
timonv_ has joined #ruby
timfoo has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
elaptics`away is now known as elaptics
reset has joined #ruby
JoshGlzBrk has joined #ruby
Pharaoh2 has joined #ruby
Takle has quit [Remote host closed the connection]
timgauthier has quit [Remote host closed the connection]
timgauthier has joined #ruby
blueOxigen has joined #ruby
sk87 has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
schaary|afk is now known as schaary
dumdedum has joined #ruby
<jhass>
bundle exec is pretty much the right solution, you can get the same effect by having require 'bundler/setup' as the first require, though that ties it to a Gemfile. For more to say the full error message could help
cobakobodob has quit [Ping timeout: 256 seconds]
<jhass>
niik00: so as said, I definitely prefer the split version in this case, but you're probably looking for String#scan
<niik00>
jhass: you're right I just wanted to understand why my regex isn't working here. I tested it on rubular and I worked
timgauthier has quit [Client Quit]
<niik00>
I'm always getting the first match but I added the multiline option on my regex
<niik00>
Even if I put all the sequences on the same line it doesn't work.
Joulse has joined #ruby
<niik00>
It's probably a little mistake or I'm using the methods wrongly
<jhass>
well, you only ever match a single pair of [ ], so you'd need to extend that or better use String#scan
senayar has quit [Read error: Connection reset by peer]
marr has joined #ruby
lanox has joined #ruby
<niik00>
I've just tried with String#scan and it's all the same
senayar has joined #ruby
<jhass>
you need to adjust the regex to match a single line of course
funktor has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
roolo has joined #ruby
tmcgoo has quit [Ping timeout: 256 seconds]
<niik00>
What do you mean ? Isn't supposed to match all the [...] with that one ?
<jhass>
String#scan reexecutes the regex as long as there was a match in the previous iteration, offsetting from the last match
febuiles_ has quit [Remote host closed the connection]
febuiles has joined #ruby
godd2 has quit [Remote host closed the connection]
<niik00>
yeah so my regex is *supposed* to work like that then. If it found the first [], it should also find the second one right ?
Takle has joined #ruby
<jhass>
I think so
Pharaoh2 has quit [Remote host closed the connection]
<jhass>
can you post your rubular link?
Takle has quit [Remote host closed the connection]
<guardian>
jhass: it's "WARN: Unresolved specs during Gem::Specification.reset: cri (>= 2.3)" "WARN: Clearing out unresolved specs."
<jhass>
that's the whole output?
<guardian>
jhass: there are lots of mentions of that kind of error in the wild, solution is to gem cleanup
Takle has joined #ruby
einarj has joined #ruby
<guardian>
jhass: yeah whole output reconstructed by what I read since I did gem cleanup already :/
timonv_ has quit [Remote host closed the connection]
<olitree>
One question:
vyorkin has quit [Read error: Connection reset by peer]
ephemerian has joined #ruby
vyorkin has joined #ruby
<niik00>
jhass: Yeah I know that it would absolutely easier with split but I'm trying to learn some new stuffs here. Thanks for your help. It's ok now.
yetanotherdave has joined #ruby
<niik00>
jhass: btw I think I'm gonna use another regex to parse all the params :p I'm just like a masochist :D
OffTheRails has quit [Quit: Leaving]
alem0lars has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
<jhass>
olitree: note that IRC has a character limit per message, if you're still typing on it...
SouL has quit [Remote host closed the connection]
Xeago has joined #ruby
Pharaoh2 has joined #ruby
<olitree>
jhass: what´s the number of limit?
whyy has joined #ruby
<jhass>
oh I dunno
arup_r has joined #ruby
<jhass>
some clients split automatically into multiple messages
<jhass>
some just sent to the server which cuts off
temple3188 has joined #ruby
<jhass>
in any case, if your message is getting that long, IRC might not be the right medium, or at least you want to make a gist of it (gist.github.com)
mijicd has joined #ruby
<olitree>
I understand. I will put (if possible) all in one line.
<niik00>
olitree: if you have to write a lot : put your text in paste and then drop the link
<olitree>
ok
gaussblurinc1 has joined #ruby
<jhass>
krz: no, the second time @var is still set in Bar's singleton class
<jhass>
krz: extending the module again doesn't create a new singleton class for Bar, it changes the existing one
<jhass>
krz: the instance variable belongs to the target class, not the module
yetanotherdave has quit [Ping timeout: 264 seconds]
postmodern has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
lolmaus has quit [Remote host closed the connection]
alexandrite has joined #ruby
<alexandrite>
does Socket.puts send \r\n ?
<jhass>
krz: meh, "set in the singleton class" is a bit fishy, it's set in the Class instance that is assigned to Bar
<krz>
hmm i see jhass thanks for that explanation
<niik00>
alexandrite: I think that if you use inspect on the string received you can know it easily
basex has joined #ruby
<jhass>
alexandrite: I never checked, but I'd expect it to have the same semantics as Kernel#puts, add \n if there's not one already. Also never checked but I can imagine that on windows it's \r\n instead of \n
<apeiros>
alexandrite: if you puts "\r\n" yes. on its own, puts only sends \n
rdark has joined #ruby
Oxelist has joined #ruby
<alexandrite>
apeiros: so s.puts "NICK alex\r" would send NICK alex\r\n ?
<apeiros>
alexandrite: it should. but why don't you just test it? and/or read the docs?
<alexandrite>
i'm on windows
<alexandrite>
oh
<alexandrite>
i'll test it now
_JokerDoom has joined #ruby
<jhass>
gregf now for multiple [ ] ;)
<apeiros>
ah, on windows it might also depend on how you opened the IO. binary vs. textmode (silly distinction)
timonv_ has joined #ruby
<gregf_>
jhas: the same :/
Takle has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
mattstratton has quit [Ping timeout: 264 seconds]
JokerDoom has quit [Ping timeout: 272 seconds]
PanPan_ has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
Oxelist has quit []
qba73 has joined #ruby
zigomir has joined #ruby
postmodern has joined #ruby
timonv^ has joined #ruby
PanPan has quit [Read error: Connection reset by peer]
PanPan_ is now known as PanPan
tesuji has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
fumk has quit [Ping timeout: 250 seconds]
emergion has joined #ruby
hmsimha has quit [Ping timeout: 250 seconds]
warprobot has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
jamto11 has joined #ruby
warprobot has quit [Client Quit]
marr has quit [Ping timeout: 256 seconds]
fumk has joined #ruby
sevenseacat has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
tomoyuki28jp has quit [Remote host closed the connection]
<arup_r>
I am working in a project. Where I have a directory called json_dir. I want to build a monitor script, which can all the time monitor that dir, after my pc boot up, and invoke the script say a.rb only when there are any json files.. Any idea about this? How to approach ?
marr has joined #ruby
reset has quit [Quit: Leaving...]
sk87 has joined #ruby
<olitree>
One question:
<apeiros>
arup_r: there is a gem which hooks into the systems' notification service
<apeiros>
better than polling
klaut has joined #ruby
<niik00>
Well I didn't realized before today that ruby channel is a mine of information
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shidash has quit [Quit: Leaving.]
namdam has joined #ruby
Hanmac has joined #ruby
<arup_r>
apeiros: Will God work ?
memph1s has quit [Ping timeout: 256 seconds]
<namdam>
I have Sublime Text on my Mac but in my new company i have to work with Linux - what are you using as Ruby IDE on Linux?
<apeiros>
god's purpose is process monitoring. not FS monitoring. afaik.
<apeiros>
namdam: ST runs on linux too, no?
memph1s has joined #ruby
<namdam>
it does - but may ther is sth better? :D
Hanmac1 has quit [Ping timeout: 256 seconds]
mengu has quit [Remote host closed the connection]
<niik00>
namdam: ST works fine on Linux usef it for about 2 years without any problem
vsoftoiletpaper has joined #ruby
<arup_r>
apeiros: Makes sense.. What is the Gem name you are recommending ?
<Poky>
namdam, there's nothing on linux that is not on mac basically as far as I know. if you actually want ide, then most people probably only use rubymine. for texteditors, st/vim/emacs everything works on linux as well. only thing you're losing is textmate probably.
lkba has quit [Ping timeout: 240 seconds]
<arup_r>
apeiros: Thanks
Aaaal has joined #ruby
namdam has left #ruby [#ruby]
Takle has joined #ruby
axsuul has joined #ruby
cgj has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Guest93190 has quit [Ping timeout: 250 seconds]
axsuul has quit [Ping timeout: 264 seconds]
mehlah has joined #ruby
phil has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phil is now known as Guest38133
malditogeek has joined #ruby
lanox has quit [Remote host closed the connection]
ixti has joined #ruby
asdasdasdasss has joined #ruby
lanox has joined #ruby
relajo has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
anarang has joined #ruby
asdasdasdasss has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
reset has joined #ruby
yetanotherdave has joined #ruby
karupa is now known as zz_karupa
Xeago has joined #ruby
reset has quit [Ping timeout: 260 seconds]
cgj has joined #ruby
senayar has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
matti has joined #ruby
Takle has quit [*.net *.split]
_JokerDoom has quit [*.net *.split]
kaspergrubbe has quit [*.net *.split]
vyorkin has quit [*.net *.split]
mijicd has quit [*.net *.split]
Elhu has quit [*.net *.split]
ephemerian has quit [*.net *.split]
shredding has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
kalusn has quit [*.net *.split]
tvw has quit [*.net *.split]
Morkel has quit [*.net *.split]
drawingthesun has quit [*.net *.split]
devyn has quit [*.net *.split]
naw has quit [*.net *.split]
farn has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
kith has quit [*.net *.split]
riotjones has quit [*.net *.split]
mr-foobar has quit [*.net *.split]
magicien has quit [*.net *.split]
fearoffish has quit [*.net *.split]
tekk has quit [*.net *.split]
elico has quit [*.net *.split]
_Havoc_ has quit [*.net *.split]
mjuszczak has quit [*.net *.split]
Koshian has quit [*.net *.split]
felixjet has quit [*.net *.split]
nevans has quit [*.net *.split]
Nowaker has quit [*.net *.split]
Rylee has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
droptone has quit [*.net *.split]
freggles has quit [*.net *.split]
helpa has quit [*.net *.split]
voodoofish has quit [*.net *.split]
fwaokda has quit [*.net *.split]
anekos_ has quit [*.net *.split]
KWALL has quit [*.net *.split]
SJr has quit [*.net *.split]
ptierno_ has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
felipe has quit [*.net *.split]
iceyec has quit [*.net *.split]
niharvey has quit [*.net *.split]
miah has quit [*.net *.split]
Guest9909 has quit [*.net *.split]
bhaak has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
ra4king has quit [*.net *.split]
GGMethos has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
monsieurp has quit [*.net *.split]
relajo has quit [*.net *.split]
memph1s has quit [*.net *.split]
emergion has quit [*.net *.split]
gaussblurinc1 has quit [*.net *.split]
sigurding has quit [*.net *.split]
dopiee has quit [*.net *.split]
Poky has quit [*.net *.split]
tokik has quit [*.net *.split]
claw_ has quit [*.net *.split]
braincrash has quit [*.net *.split]
yacks has quit [*.net *.split]
xargoon has quit [*.net *.split]
maletor has quit [*.net *.split]
binaryhat has quit [*.net *.split]
wang has quit [*.net *.split]
e4xit has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
tcstar has quit [*.net *.split]
lbwski has quit [*.net *.split]
jpierre03 has quit [*.net *.split]
wiscas has quit [*.net *.split]
gomikemi1e has quit [*.net *.split]
Pulpie has quit [*.net *.split]
Elfix has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
xm has quit [*.net *.split]
clocKwize has quit [*.net *.split]
iaj_ has quit [*.net *.split]
crodas has quit [*.net *.split]
marcel has quit [*.net *.split]
machty has quit [*.net *.split]
Seich has quit [*.net *.split]
oddalot has quit [*.net *.split]
FaresKAlaboud has quit [*.net *.split]
Moonlightning has quit [*.net *.split]
patronus has quit [*.net *.split]
tenseiten has quit [*.net *.split]
joelroa has quit [*.net *.split]
metadave has quit [*.net *.split]
supermat has quit [*.net *.split]
ahuman has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
Fusl has quit [*.net *.split]
spacemud has quit [*.net *.split]
axisys has quit [*.net *.split]
LBRapid has quit [*.net *.split]
skmp has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
pdtpatr11k has quit [*.net *.split]
linduxed has quit [*.net *.split]
froy has quit [*.net *.split]
cyphactor has quit [*.net *.split]
Guest22956 has quit [*.net *.split]
gzl has quit [*.net *.split]
akitada has quit [*.net *.split]
peterhu has quit [*.net *.split]
zenspider has quit [*.net *.split]
clamstar has quit [*.net *.split]
lupine has quit [*.net *.split]
tris has quit [*.net *.split]
rrva has quit [*.net *.split]
raddazong has quit [*.net *.split]
tiagonobre has quit [*.net *.split]
franka_ has quit [*.net *.split]
Takumo has quit [*.net *.split]
todor_ has quit [*.net *.split]
adamholt has quit [*.net *.split]
kevinfagan_ has quit [*.net *.split]
ryanneufeld has quit [*.net *.split]
benzrf|offline has quit [*.net *.split]
tchebb has quit [*.net *.split]
culturelabs__ has quit [*.net *.split]
natewalck has quit [*.net *.split]
antonishen has quit [*.net *.split]
goshdarnyou has quit [*.net *.split]
rmill has quit [*.net *.split]
hoelzro has quit [*.net *.split]
peeja has quit [*.net *.split]
tziOm has quit [*.net *.split]
Riking has quit [*.net *.split]
maZtah has quit [*.net *.split]
jrunning has quit [*.net *.split]
drPoggs has quit [*.net *.split]
mattyohe has quit [*.net *.split]
orionstein_away has quit [*.net *.split]
G has quit [*.net *.split]
tadejm has quit [*.net *.split]
gf3 has quit [*.net *.split]
mozzarella has quit [*.net *.split]
rapha has quit [*.net *.split]
eam has quit [*.net *.split]
dfedde has quit [*.net *.split]
mist has quit [*.net *.split]
mateu has quit [*.net *.split]
blenny has quit [*.net *.split]
bijumon has quit [*.net *.split]
kke has quit [*.net *.split]
postmodern has quit [*.net *.split]
olleromo__ has quit [*.net *.split]
xenogis has quit [*.net *.split]
gimpygoo has quit [*.net *.split]
Klumben has quit [*.net *.split]
ggherdov has quit [*.net *.split]
cnj has quit [*.net *.split]
aetaric has quit [*.net *.split]
RandyT has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
redlegion has quit [*.net *.split]
matchaw has quit [*.net *.split]
lagweezle has quit [*.net *.split]
angorabedsock has quit [*.net *.split]
crudson has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
touzin has quit [*.net *.split]
pygospa has quit [*.net *.split]
frankS2 has quit [*.net *.split]
Akuma has quit [*.net *.split]
Cork has quit [*.net *.split]
vali has quit [*.net *.split]
ozzloy has quit [*.net *.split]
verto has quit [*.net *.split]
nw has quit [*.net *.split]
pgmcgee has quit [*.net *.split]
Scient has quit [*.net *.split]
danshultz has quit [*.net *.split]
chridal has quit [*.net *.split]
mosez has quit [*.net *.split]
ponyfleisch has quit [*.net *.split]
blackjid has quit [*.net *.split]
C0deMaver1ck has quit [*.net *.split]
ViperChief has quit [*.net *.split]
callumacrae has quit [*.net *.split]
lng_ has quit [*.net *.split]
Derander_ has quit [*.net *.split]
VooDooNOFX has quit [*.net *.split]
gilesw has quit [*.net *.split]
nisstyre has quit [*.net *.split]
epochwolf has quit [*.net *.split]
Liothen has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
troter has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
nighter has quit [*.net *.split]
gyre007 has quit [*.net *.split]
Nightmare has quit [*.net *.split]
mroth has quit [*.net *.split]
PhilK has quit [*.net *.split]
LACP has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
intnsity has quit [*.net *.split]
ikanobori has quit [*.net *.split]
cschneid has quit [*.net *.split]
sfr^ has quit [*.net *.split]
mjmac has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
pusewicz has quit [*.net *.split]
bjeanes has quit [*.net *.split]
msch has quit [*.net *.split]
initself_ has quit [*.net *.split]
Kamilion has quit [*.net *.split]
Anarch has quit [*.net *.split]
ryotarai has quit [*.net *.split]
acalewin has quit [*.net *.split]
FL1SK has quit [*.net *.split]
jamo_ has quit [*.net *.split]
gremax has quit [*.net *.split]
bcavileer___ has quit [*.net *.split]
DefV has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
Radar has quit [*.net *.split]
george2 has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
jeregrine has quit [*.net *.split]
hostess has quit [*.net *.split]
rfv has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
paulog has quit [*.net *.split]
lectrick has quit [*.net *.split]
vcoinminer____ has quit [*.net *.split]
charles81____ has quit [*.net *.split]
rickruby__ has quit [*.net *.split]
genta has quit [*.net *.split]
jpinnix has quit [*.net *.split]
glowcoil has quit [*.net *.split]
frode15243 has quit [*.net *.split]
m_3 has quit [*.net *.split]
dandrade has quit [*.net *.split]
Karunamon has quit [*.net *.split]
Wayneoween has quit [*.net *.split]
dmoe______ has quit [*.net *.split]
CJD14___ has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
schaary has quit [*.net *.split]
dioms_ has quit [*.net *.split]
ceej has quit [*.net *.split]
Macacity has quit [*.net *.split]
callenb has quit [*.net *.split]
kenichi has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
Paradox has quit [*.net *.split]
manacit has quit [*.net *.split]
lfox has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
dmarr has quit [*.net *.split]
dyreshark has quit [*.net *.split]
lazyguru has quit [*.net *.split]
xsdg has quit [*.net *.split]
juni0r has quit [*.net *.split]
Aaaal has quit [*.net *.split]
Hanmac has quit [*.net *.split]
workmad3 has quit [*.net *.split]
alex88 has quit [*.net *.split]
whyy has quit [*.net *.split]
roolo has quit [*.net *.split]
dumdedum has quit [*.net *.split]
apeiros has quit [*.net *.split]
_tpavel has quit [*.net *.split]
luckyruby has quit [*.net *.split]
buub_ has quit [*.net *.split]
techsethi has quit [*.net *.split]
kyb3r_ has quit [*.net *.split]
GriffinHeart has quit [*.net *.split]
Matix has quit [*.net *.split]
jenskarlsen has quit [*.net *.split]
camt has quit [*.net *.split]
ValicekB has quit [*.net *.split]
gigetoo has quit [*.net *.split]
minecoins has quit [*.net *.split]
existensil has quit [*.net *.split]
Vivekananda_y510 has quit [*.net *.split]
oz has quit [*.net *.split]
chaos___________ has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
Xiti has quit [*.net *.split]
armyriad has quit [*.net *.split]
blackgoat has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
Kabaka has quit [*.net *.split]
tiguser has quit [*.net *.split]
larsam has quit [*.net *.split]
udoprog1 has quit [*.net *.split]
SloggerKhan has quit [*.net *.split]
donnoc_ has quit [*.net *.split]
Xuerian has quit [*.net *.split]
shanlar has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
machete has quit [*.net *.split]
wlanboy has quit [*.net *.split]
b1nd has quit [*.net *.split]
nomadic has quit [*.net *.split]
terlar has quit [*.net *.split]
zarul has quit [*.net *.split]
sarlalian has quit [*.net *.split]
moshee has quit [*.net *.split]
Dr3amc0d3r|away has quit [*.net *.split]
thoolihan has quit [*.net *.split]
jwang has quit [*.net *.split]
Nilium has quit [*.net *.split]
sfiggins has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
yasu has quit [*.net *.split]
Jelco_ has quit [*.net *.split]
jameyd has quit [*.net *.split]
zaargy has quit [*.net *.split]
dayepa has quit [*.net *.split]
musl_ has quit [*.net *.split]
DanKnox has quit [*.net *.split]
seanmarcia has quit [*.net *.split]
bier has quit [*.net *.split]
marahin has quit [*.net *.split]
kaihara has quit [*.net *.split]
daed has quit [*.net *.split]
Hamled has quit [*.net *.split]
ReBoRN- has quit [*.net *.split]
Drakevr has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
davidcelis has quit [*.net *.split]
Mongey has quit [*.net *.split]
quantsini_ has quit [*.net *.split]
micah` has quit [*.net *.split]
saltsa has quit [*.net *.split]
n88 has quit [*.net *.split]
kloeri has quit [*.net *.split]
wwalker_ has quit [*.net *.split]
okinomo_ has quit [*.net *.split]
eval-in__ has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
shtirlic has quit [*.net *.split]
bluntman has quit [*.net *.split]
willgorman_ has quit [*.net *.split]
Kruppe has quit [*.net *.split]
jayne has quit [*.net *.split]
paul_k has quit [*.net *.split]
ccooke has quit [*.net *.split]
grug has quit [*.net *.split]
hfp has quit [*.net *.split]
Jamo has quit [*.net *.split]
_izz has quit [*.net *.split]
RichiH has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
FifthWall has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
sindork has quit [*.net *.split]
philtr_ has quit [*.net *.split]
nug has quit [*.net *.split]
TTilus has quit [*.net *.split]
Roa has quit [*.net *.split]
JarJarBinks has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
skinny_much has quit [*.net *.split]
fumduq has quit [*.net *.split]
justinmcp has quit [*.net *.split]
cid404 has quit [*.net *.split]
freannrak has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
Tarential has quit [*.net *.split]
bstrie has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
rs0 has quit [*.net *.split]
mahlon has quit [*.net *.split]
rcs has quit [*.net *.split]
bmn has quit [*.net *.split]
chihhsin_wego has quit [*.net *.split]
cwc has quit [*.net *.split]
shaquile has quit [*.net *.split]
xiphias has quit [*.net *.split]
<olivier_bK>
hy
unshadow has joined #ruby
malditogeek has quit [Quit: Leaving.]
ghr has quit []
tacos1de has quit [Remote host closed the connection]
ghr has joined #ruby
lanox has quit []
tacos1de has joined #ruby
lupine has joined #ruby
Elhu has joined #ruby
bhaak has joined #ruby
niharvey has joined #ruby
shredding has joined #ruby
riotjones has joined #ruby
_Havoc_ has joined #ruby
Rylee has joined #ruby
mikecmpbll has joined #ruby
magicien has joined #ruby
kiki_lamb has joined #ruby
devyn has joined #ruby
_JokerDoom has joined #ruby
freggles has joined #ruby
ptierno_ has joined #ruby
samuelkadolph has joined #ruby
Guest9909 has joined #ruby
iceyec has joined #ruby
helpa has joined #ruby
naw has joined #ruby
mr-foobar has joined #ruby
shaman42_ has joined #ruby
Morkel has joined #ruby
miah has joined #ruby
Takle has joined #ruby
nemesit|znc has joined #ruby
vyorkin has joined #ruby
felipe has joined #ruby
farn has joined #ruby
KWALL has joined #ruby
kith has joined #ruby
mjuszczak has joined #ruby
fwaokda has joined #ruby
anekos_ has joined #ruby
SJr has joined #ruby
Koshian has joined #ruby
mijicd has joined #ruby
fearoffish has joined #ruby
droptone has joined #ruby
tvw has joined #ruby
tekk has joined #ruby
bricker`LA has joined #ruby
ephemerian has joined #ruby
kalusn has joined #ruby
kaspergrubbe has joined #ruby
voodoofish has joined #ruby
nevans has joined #ruby
elico has joined #ruby
drawingthesun has joined #ruby
felixjet has joined #ruby
Nowaker has joined #ruby
monsieurp has joined #ruby
ra4king has joined #ruby
GGMethos has joined #ruby
<olitree>
Any one talks Portuguese
<shevy>
I speak python
Rylee has quit [Max SendQ exceeded]
malditogeek has joined #ruby
<shevy>
PortuPython
<shevy>
zZShshshh bem shshShshs
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Rylee has joined #ruby
<shevy>
Zshshs va' shshsh se shshZZahahahhsss foder
<jhass>
also note that the @firstname outside a def is a different @firstname
<jhass>
guinsly: ^
<shevy>
I never needed undef, I did need undef_method (or actually... remove_method it was...)
<guinsly>
jhass, this the realcode except class foo is name LoadFile
<jhass>
why did you change it?
<jhass>
but your issue is probably what I just said
<apeiros>
weird indent. tabs mixed with spaces? o0
hgl has joined #ruby
<guinsly>
jhass, ok thks!
<jhass>
apeiros: probably editor set to tabs and sometimes manually indented with spaces, would happen to me all the time too if I didn't set softtabs
<shevy>
apeiros I had that when I used tabs myself!
<shevy>
I kept on wanting to indent comments via spaces
<shevy>
to align nice cool fancy ascii art
<shevy>
# ===========
<shevy>
# cool dragon pic here
<shevy>
# ===========
<shevy>
since then I eliminated tabs
francisfish has joined #ruby
senayar has joined #ruby
timonv^ has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
<arup_r>
shevy: I didn't find any diff.. Is there any ? By mistake I used it... suddenly found it is undef.. So quick reading doesn't reveal any diff between them.. So I asked.
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<inukshuk>
arup_r: there is a sublte differene
<arup_r>
I also use undef_method..but by mistake I used undef and discover it...
Pharaoh2 has joined #ruby
compAz has quit [Remote host closed the connection]
tacos1de has joined #ruby
<arup_r>
What? one is keyword and another is method.. Is this or functionality wise ?
<shevy>
arup_r not sure, I actually never used undef
<inukshuk>
arup_r: with undef you need to use an identifier, iirc, with undef_method (and remove_method) you can pass in a computed symbol/string
yetanotherdave has joined #ruby
Arkaniad has quit [Ping timeout: 240 seconds]
<inukshuk>
arup_r: this is a consequence of undef being a keyword obviously
<shevy>
arup_r you will find it easier to manipulate methods, and quite impossible to manipulate keywords
<inukshuk>
arup_r: also note that when using remove_method you can still inherit the method from somewhere else
maximski has quit []
anaeem1 has joined #ruby
alexandrite has quit [Quit: Leaving]
<inukshuk>
shevy: true
anaeem1__ has joined #ruby
<shevy>
inukshuk did you have to use undef yourself so far?
<shevy>
because sinatra in top level scope also defines a method called body()
theharshest has quit [Client Quit]
yacks has quit [Read error: Connection reset by peer]
<shevy>
so if I then pull in the method body() from HtmlTags module, sinatra acts all crazy
<shevy>
too me quite a while to find out why sinatra behaves oddly too
<inukshuk>
I think between undef_method and undef it is really a toss-up (undef is probably faster but that's silly of course) and undef_method is definitely more flexible. I think I've used undef_method during debugging... but otherwise only remove_method
jhass is now known as jhass|off
Trudko has joined #ruby
<Trudko>
just found out that Martin Fowler is Rubyist,
anaeem1 has quit [Ping timeout: 250 seconds]
Joulse has quit [Quit: Joulse]
<inukshuk>
shevy: I've used remove_method when there were name like this and when I wanted to override a method (to suppress warnings)
<inukshuk>
*name clashes I mean
niik00 has left #ruby [#ruby]
<shevy>
yeah
<shevy>
quite odd sometimes, how ruby features that might seem useful at first glance, don't seem that important
jhass|off is now known as jhass
hgl has quit [Ping timeout: 240 seconds]
<inukshuk>
I guess undef_method is useful if you want to mix-in or inherit a method but do not want to use it and also make sure no one else can use it through your object.
yetanotherdave has quit [Ping timeout: 240 seconds]
meinside has quit [Quit: Connection closed for inactivity]
yagooar has joined #ruby
jamto11 has quit [Ping timeout: 250 seconds]
luckyruby has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lw has quit [Quit: s]
Vivekananda_y510 has quit [Ping timeout: 264 seconds]
Ankhers has joined #ruby
djcp has joined #ruby
Elhu has joined #ruby
vsoftoiletpaper has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nerdy has quit [Quit: Computer has gone to sleep.]
axsuul has joined #ruby
Zenigor has joined #ruby
edwardly has quit [Quit: Leaving]
bdc has joined #ruby
axsuul has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
bdc is now known as bclune
sailias has joined #ruby
robbyoconnor has joined #ruby
bclune has left #ruby [#ruby]
doodlehaus has joined #ruby
Gonzih has joined #ruby
ffranz has joined #ruby
<DefV>
so
billy_ran_away has quit [Ping timeout: 245 seconds]
<DefV>
turns out you're all a bunch of newbie-hating assholes when I'm not looking
<DefV>
shame on you all
<jhass>
arup_r: isn't the name's value also accessible via #[] ?
phutchins has joined #ruby
<arup_r>
I am using ::Slope.. where things are handled by method_missing..
<arup_r>
But Node#name and Module::name will be the wall there..
<arup_r>
Thus I though lets remove it for this scope..
guinsly has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
<arup_r>
jhass But not sure... if it is the right way to do this or not ?
<jhass>
doesn't feels like
<arup_r>
so I asked you guys..
<arup_r>
Humm jhass
<jhass>
looks like the normal ::Node methods are still available
SCommette has quit [Quit: SCommette]
<jhass>
doc.lesson.css('name').text
<jhass>
I'd go with that
<jhass>
maybe at instead of #css
<arup_r>
Humm.. That is the way of secure to go... It seems #search, #xpath and #css..
<arup_r>
But why my code is smell ? asking for knowledge ...
yagooar has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
yagooar has joined #ruby
<jhass>
meh, not sure I can come up with good arguments. It just doesn't feel right and looks very ugly
<jhass>
and requires 4 lines instead of 1 ...
yfeldblum has joined #ruby
anarang has quit [Quit: Leaving]
<arup_r>
hahaha.. :-)
<arup_r>
I do bad..so that I can learn good
<jhass>
the "trying to be smart" density is just too high, method chaining onto do end, using return value of a block, class, send
mark_locklear has joined #ruby
<jhass>
and then there's that simple alternative
compAz has quit [Remote host closed the connection]
<jhass>
it just doesn't feel right ;)
Benny1992 has joined #ruby
<jhass>
certainly a "wtf, go away" if I'd encounter that in production code ;)
sigurding has quit [Quit: sigurding]
<arup_r>
jhass: I agree. :-)
asdasdasdasss has quit [Ping timeout: 240 seconds]
mattmcclure has joined #ruby
jackneill has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
kaspergrubbe has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
kaspergrubbe has joined #ruby
jackneill has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
NinoScript has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
iamjarvo has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
jespada has quit [Remote host closed the connection]
bal has quit [Ping timeout: 264 seconds]
jespada has joined #ruby
momomomomo has quit [Client Quit]
gigetoo has quit [Remote host closed the connection]
larissa has joined #ruby
bal has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
kloeri has quit [Remote host closed the connection]
Matix has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
momomomomo has joined #ruby
kloeri has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
jshultz has joined #ruby
alexju has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
jobewan has joined #ruby
lw has joined #ruby
acrussell has joined #ruby
orionstein_away is now known as orionstein
jamto11 has joined #ruby
codabrink has joined #ruby
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
pipework has joined #ruby
pipework has quit [Changing host]
pipework has joined #ruby
mikesplain has joined #ruby
r0bby has joined #ruby
mengu has quit [Remote host closed the connection]
mikespla_ has joined #ruby
mikesplain has quit [Read error: Connection reset by peer]
goshdarnyou has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
r0bby is now known as robbyoconnor
jmbrown412 has quit [Remote host closed the connection]
mikespla_ has quit [Read error: Connection reset by peer]
jmbrown412 has joined #ruby
reset has joined #ruby
yacks has joined #ruby
mikesplain has joined #ruby
ascarter has joined #ruby
yetanotherdave has joined #ruby
Ankhers has quit [Remote host closed the connection]
elikem has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CodeLicker has quit [Ping timeout: 260 seconds]
kevind has joined #ruby
sinfex has left #ruby [#ruby]
jmbrown412 has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Connection closed for inactivity]
robbyoconnor has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
mikesplain has quit [Read error: Connection reset by peer]
obscured has joined #ruby
iamjarvo has joined #ruby
mikesplain has joined #ruby
arup_r has quit [Remote host closed the connection]
jamto11 has quit []
tvw has quit []
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
bclune has joined #ruby
NinoScript has joined #ruby
qmfnp has joined #ruby
compAz has joined #ruby
reprazent has joined #ruby
SCommette has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
zeropx has quit [Read error: Connection timed out]
vyorkin has quit [Quit: WeeChat 0.4.3]
compAz has quit [Read error: Connection reset by peer]
compAz has joined #ruby
sk87 has joined #ruby
root_empire has joined #ruby
dodofxp has joined #ruby
zeropx has joined #ruby
dodofxp has left #ruby [#ruby]
vdmgolub has joined #ruby
freerobby has joined #ruby
Trudko has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
<shevy>
huh
malkomalko has joined #ruby
<shevy>
why is it
<shevy>
require 'open-uri'
<shevy>
the - vs _ confuses me
michael_lee has quit [Ping timeout: 250 seconds]
memph1s has quit [Ping timeout: 272 seconds]
maximski has quit []
compAz has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
<existensil>
yeah, it doesn't make much sense. usually constants like OpenURI would be named open_uri.rb, open-uri almost suggests Open::URI
<existensil>
but ruby conventions are sometimes all over the place with naming
jonathan_alban has joined #ruby
yetanotherdave has joined #ruby
rayners has joined #ruby
alem0lars has quit [Quit: alem0lars]
arya_ has joined #ruby
Gonzih has quit [Ping timeout: 240 seconds]
pu22l3r_ has joined #ruby
geggam has joined #ruby
havenwood has joined #ruby
marr has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
axsuul has joined #ruby
SouL has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
<shevy>
what do you guys think about rewriting old, and large ruby projects?
pu22l3r has quit [Ping timeout: 250 seconds]
<xmj>
"kill it with fire"
<shevy>
hehe
mengu has quit []
<shevy>
it's almost 30° Celsius again here ...
<existensil>
it sucks, but starting from scratch often fails. The best path for me has been to try and break it into peices and slowly move things out to smaller apps/gems.
<shevy>
I can't code like that :(
<existensil>
It takes longer than a re-write, but actually succeeds more often
<shevy>
yeah existensil
banjara has quit [Quit: Leaving.]
pu22l3r_ has quit [Remote host closed the connection]
<shevy>
that's kinda what I am doing too since a while, but I also have some failed rewrites lurking about
<existensil>
might even be worth sacraficing a chromebook if you want that physical release
rayners has quit [Read error: Connection reset by peer]
darkxploit has joined #ruby
<shevy>
lol
user258467 has joined #ruby
<shevy>
I am kinda in that position again, though thankfully there are only two .rb files
snath has quit [Ping timeout: 240 seconds]
<shevy>
both files accept an archive format, extract it, configure, make, make install it
<user258467>
Hi, how do I get 'foo' from an instance variable called :@foo ?
lmickh has quit [Remote host closed the connection]
hamakn has joined #ruby
<shevy>
one uses prefix /usr by default, the other one a specialized dir
<shevy>
I have a lot of duplication obviously, so the logical thing to do would be to write one main class, and then just subclass with different prefixes (or perhaps not even subclassing, as one could simply provide the different prefix)
<havenwood>
shevy: i guess nicer to write it :@foo[1..-1]
<shevy>
user258467, there you go!
<havenwood>
aye
malditogeek has quit [Quit: Leaving.]
Biohazard has joined #ruby
<shevy>
yeah, I use [] all the time, but I wasn't even thinking of the possibility of using it somehow
<shevy>
my brain was like "ok let's turn this symbol into a string"
<shevy>
and then "ok now we have a string, let's kill @
<shevy>
and then "it's too hot here, I need a beer"
<shevy>
evenix are you like asterix and obelix?
<user258467>
shevy, thanks a lot but it seems I am wrong I tried to get all attr_accessor inside my class so I do instance_variables and iterate through it but it returns the value and not the key as the doc said
asdasdasdasss has joined #ruby
<shevy>
user258467 not sure I managed to understand what you wrote just now
Biohazard has quit [Read error: Connection reset by peer]
amargherio has joined #ruby
malditogeek has joined #ruby
<shevy>
I mean
<shevy>
you already have the key when you do .instance_variables or?
<jhass>
user258467: attr_accessors are just normal methods, not instance variables. And not all instance variables must have an accessor
Prawnzy has joined #ruby
<shevy>
so there you have an array, you can run .each on it, and then use the code havenwood gave you
Elhu has quit [Quit: Computer has gone to sleep.]
<jhass>
user258467: so is that about learning what you can do with some object you got or some sort of metaprogramming?
jottr has quit [Ping timeout: 260 seconds]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
metaprogramming!
<shevy>
until ruby programs write other ruby programs
<jhass>
pretty sure that's happening already
kachi8 has joined #ruby
Elhu has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
lukec has joined #ruby
<user258467>
shevy, jhass shevy yes I need metaprogramming I iterate thought a Hash where key name correspond to attr_accessor of my object
JoshGlzBrk has joined #ruby
<jhass>
user258467: I'd think about a custom 'attr_accessor' method that keeps track of the defined accessors
<jhass>
or as a last resort even overriding it
<shevy>
well ok so the key name equals to a method
arussel has joined #ruby
<user258467>
jhass, overriding attr_accessor good idea :)
<arussel>
how do you install rvm system wide ?
<shevy>
user258467 an attr_accessor is actually making a method for you in a convenient way; attr_accessor :foo, is combination of attr_writer :foo and attr_reader :foo. attr_reader :foo means this: def foo; @foo; end and attr_writer :foo means this: def foo=(i); @foo = i; end
<jhass>
user258467: not too much, I'm more thinking of something like : def property *args; @defined_accessors.concat args; attr_accesor *args; end
maestrojed has joined #ruby
<shevy>
so don't get too confused about attr_accessor, it is just a method corresponding to an @ivar
<jhass>
user258467: still not sure what the value of your hash would be
malkomalko has quit []
JoshGlzBrk has quit [Client Quit]
<user258467>
shevy, jhass thanks a lot for all these profitable information, understanding it will take me some time ruby is really good for metaprogramming
<existensil>
ascarter: sudo
timonv_ has quit [Remote host closed the connection]
marr has joined #ruby
<arussel>
I'm not a ruby dev, I've got some postgres backup scripts that need ruby and some gem, I'm in ubuntu AWS, what is the best way to have this ?
<shevy>
you could even easily create your own attr* methods btw, rails/active* does that as far as I know
mikesplain has joined #ruby
<existensil>
err..., arussel: sudo
duggiefresh has joined #ruby
<shevy>
what's wrong with ubuntu ruby
<shevy>
;-)
<arussel>
existensil: you mean normal rvm install but using sudo ?
Takle has joined #ruby
<jhass>
user258467: but as said, if you maybe describe your actual problem, not the path you think you need, we may be able to show you something even more beautiful ;)
<shevy>
can't those ubuntu folks fix their ruby
<existensil>
nothing, just saying, if you want to install rvm globally, then "sudo -i" and install it from a root shell
<ccooke>
shevy: can't ruby fix its insane anti-sysadmin approach? ;-)
<havenwood>
arussel: You could install ruby2.0 and ruby2.0-dev apt packages. Or you could ruby-install to /usr/local/. But yeah, if you want a multiple user RVM install, sudo and it'll install to /usr/local/rvm.
<existensil>
but, the ubuntu repo ruby may be plenty for some scripts
<ccooke>
(Okay, that's my troll quota for the month done with)
<arussel>
havenwood: can I know, looking at the script what ruby version it needs ?
mijicd has joined #ruby
<shevy>
ccooke what part in particular does not work for a sysadmin?
Ankhers has quit [Remote host closed the connection]
orionstein is now known as orionstein_away
<ccooke>
shevy: Firstly I wasn't entirely serious. Secondly, the ruby community is a little dev-focussed sometimes which can cause - fixable - friction from other viewpoints.
thisirs has quit [Read error: Connection reset by peer]
<shevy>
it starts with distributions taking away mkmf
amystephen has joined #ruby
<shevy>
because a server OS does not need mkmf!!!
p0sixpscl has joined #ruby
<jhass>
arussel: someone with quite some experience maybe can. Looking at the errors it produces is much easier
<ccooke>
shevy: yes, and? :-)
<havenwood>
arussel: Sometimes they'll specify in the Gemfile if it's strict. Looking at a travis.yml or like file often shows what all Rubies the tests are run on, if they use CI.
kachi8 has quit [Remote host closed the connection]
vdmgolub is now known as memph1s
kachi8 has joined #ruby
<user258467>
shevy, jhass thanks a lot for all these profitable information, understanding it will take me some time ruby is really good for metaprogramming
<shevy>
it continues all the way from there until it ends up to a point where a source compilation fixes all the issues
<havenwood>
evenix: latest ruby 2.0 binary for 10.10 is ruby-2.0.0-p481
<evenix>
but my homebrew is still using ruby 2.0.0 i guess i will have to reinstall it
<shevy>
\o/
<shevy>
out with the old, in with the new!
timonv_ has joined #ruby
<havenwood>
evenix: there is a binary for 2.1.2 if you just want to go to latest stable
Hanmac has joined #ruby
zigomir has quit [Remote host closed the connection]
<evenix>
havenwood: true, but my homebrew is using the old one.. im going to reinstall it.. but funny enough i need "brew cleanup" but that won't even work since 'brew' doesnt work.
ndrei has joined #ruby
terrellt has joined #ruby
<havenwood>
evenix: I'm getting a bit confused. You've mentioned an RVM binary, a Homebrew Ruby and system Ruby. Which is it?!?
<havenwood>
There can be only one!
zigomir has joined #ruby
NinoScript has quit [Ping timeout: 256 seconds]
<evenix>
well it all started when i tried to install the lastest ruby 2.1.2 but then it failed (i think i forgot to use sudo and some permission didnt work). Then i tried to run brew on the side for a separate project and it crashed.
<havenwood>
evenix: The error you linked above was system Ruby, not brew.
<pontiki>
o/
<havenwood>
evenix: That isn't the brew Ruby. :P
<havenwood>
evenix: That is system Ruby that comes installed on Yosemite.
<evenix>
ooooh i see.
enebo has joined #ruby
NinoScript has joined #ruby
<havenwood>
evenix: Looks like your brew has choked on Yosemite losing ruby 1.8. Update brew or reinstall for Yosemite fixes.
kayloos has joined #ruby
<evenix>
havenwood: i wish "brew update" would work. I think i have to completely deinstall homebrew
<evenix>
and reinstall it
shadowshell has quit [Remote host closed the connection]
<evenix>
(uninstall*)
reset has joined #ruby
<havenwood>
evenix: Pre-Mavericks the system Ruby was 1.8 (what brew uses). In Mavericks the system 1.8 Ruby remained even though Current got linked to a new 2.0 system Ruby. In Yosemite they dropped 1.8 altogether so brew had to make changes to accomidate.
Pharaoh2 has quit [Remote host closed the connection]
rubytor has joined #ruby
mikepack has joined #ruby
Pharaoh2 has joined #ruby
Fire-Dragon-DoL has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
bal has quit [Quit: bal]
<evenix>
havenwood: oh man *headache* lol
<evenix>
thanks
maximski has joined #ruby
kayloos has quit [Ping timeout: 250 seconds]
mskog has joined #ruby
Ankhers has joined #ruby
_tpavel has quit [Quit: Leaving]
zorak has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
Pharaoh2 has quit [Ping timeout: 250 seconds]
senayar has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
senayar has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elikem has joined #ruby
jfran has joined #ruby
Takle has quit [Remote host closed the connection]
<havenwood>
discreet: using ternary operator ^ or you can assign the variable to the if statement
<arup_r>
suppose I have a method which is taking elements from (1..5).cycle. But at any point of time, any chance to calculate how many times that enumerator cycled ?
<havenwood>
discreet: your erb is wrong, but sure - you can also assign the variable to the if statement
<havenwood>
discreet: server = if @splunk_cluster...
kure_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<havenwood>
discreet: DRY
<havenwood>
discreet: You can't do multiple return values, so put your multiple values in an Array: [ip1, ip2]
senayar_ has quit [Remote host closed the connection]
datafirm has joined #ruby
senayar has joined #ruby
mikeg has joined #ruby
<discreet>
havenwood: i would need to do ['ip1','ip2'] for the values, but how would i do that inline with the server = ?
anaeem1__ has quit [Remote host closed the connection]
<havenwood>
discreet: server = if ...; ['ip1', 'ip2']; else; ['ip3'...
mikesplain has joined #ruby
<havenwood>
discreet: newlines where there're semi-colons of course
<havenwood>
discreet: with an `end` at the end, and indent properly
<agent_white>
Good morning!
thumpba has quit [Read error: Connection reset by peer]
<havenwood>
discreet: presumably you need erb tags, i dunno what you're meaning to do
kachi8 has quit [Ping timeout: 264 seconds]
<havenwood>
agent_white: g'morning
senayar has quit [Ping timeout: 240 seconds]
voodoofish1 has joined #ruby
<discreet>
havenwood: right right, totally forgot about the end
yfeldblum has joined #ruby
claw_ has joined #ruby
voodoofish has quit [Ping timeout: 240 seconds]
kayloos has joined #ruby
claw has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 0.4.3]
<discreet>
havenwood: more like this then? http://pastebin.com/ZmHgmyQn I essentially want server = to either be ip1,ip2 if splunk_cluster == SplunkClusterProd, or server = ip3,ip4 if it is anything else (well the else would be SplunkClusterTest)
root_empire has quit [Quit: Ex-Chat]
Guest38133 has quit [Remote host closed the connection]
<havenwood>
discreet: i don't think you understand erb templating
<havenwood>
discreet: or neither of those and something else?
CodeLicker has joined #ruby
<discreet>
havenwood: what does the pound sign mean?
jottr_ is now known as jottr
<havenwood>
discreet: String interpolation #{}.
arup_r has quit [Ping timeout: 256 seconds]
Shidash has joined #ruby
<discreet>
havenwood: gotcha. i'm thinking the first one. essentially server = ip1,ip2 will be a string. ip1 and ip2 aren't going to be dynamically generated, it will be hard coded ip addresses
qmfnp has joined #ruby
deric_skibotn has joined #ruby
<havenwood>
discreet: aha, then yup the first should be all that's needed
<discreet>
havenwood: thank you
<havenwood>
discreet: no prob
<discreet>
my ruby skills are noobish
<discreet>
havenwood: quick question though, instead of just <% else %> can i do <% else if @splunk_cluster == SplunkCluster Test %>
sdwrage has quit [Quit: Leaving]
<havenwood>
discreet: elsif
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eyess has quit [Quit: X probably crashed]
Hobogrammer has joined #ruby
<discreet>
havenwood: right....lack of coffee
Eyes has joined #ruby
Eyes is now known as Eyess
xaxisx has joined #ruby
<Eulipion>
havenwood: is there a way to chruby without having a shell?
shtirlic has joined #ruby
ghr has joined #ruby
dapz has joined #ruby
MindfulMonk has quit [Ping timeout: 240 seconds]
shlant has joined #ruby
<shlant>
anyone familiar with sidekiq install/config?
<mostlybadfly>
Hi guys can Array#sample give duplicate replies? For example in an array of a-z if I do array.sample(10) , will it always give unique replies?
MCDev has joined #ruby
sdouglas has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
Zenigor has quit [Remote host closed the connection]
sdouglas has joined #ruby
kachi8 has joined #ruby
g0bl1n has joined #ruby
<jhass>
"The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements." - http://ruby-doc.org/core-2.1.1/Array.html#method-i-sample
jxf has joined #ruby
michael_lee has joined #ruby
Zenigor has joined #ruby
thetabyte has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<eam>
interesting, #sample doesn't raise if you ask for more samples than entries
g0bl1n has quit [Client Quit]
sdouglas has quit [Ping timeout: 240 seconds]
<thetabyte>
Let's say I want to write a DSL to enable associating a list of items with a particular class, and have them be retrievable from class methods on said class — is there a best way to do this? Is there a reason to avoid storing the items in this list in a class variable, or a good reason to avoid class variables in a production environment in general?
<mostlybadfly>
Yeah I guess I should've asked if there was a way to get it to not do that but I'd probably have to use rand
sepp2k has joined #ruby
dayepa1 has joined #ruby
fabrice31 has joined #ruby
timonv_ has quit [Remote host closed the connection]
<jhass>
thetabyte: the issue with class variables is that they are shared among the ancestry chain, that means if you change them in a subclass, it's changed in the parent classes too. Because of that most people resort to instance variables in the Class object
dayepa has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
<jhass>
*parent class and other subclasses
tus has quit []
Gonzih has joined #ruby
jheg has joined #ruby
braxtonplaxco has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
michael_lee has quit [Quit: Ex-Chat]
braxtonplaxco has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<thetabyte>
jhass: if the plan is for the class to never be subclassed, is there an advantage to either class variables or class instance variables?
awc737 has joined #ruby
Jake232 has joined #ruby
mikepack has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
<jhass>
I see none, I never needed class variables so I avoided their potential for trouble
oso96_2000 is now known as oso|away
Ayey_ has quit [Quit: leaving]
mikepack has joined #ruby
Ayey_ has joined #ruby
<Ayey_>
How do you access methods defined in a module? If its even possible to do
kireevco has quit [Read error: Connection reset by peer]
n_blowna_ has joined #ruby
<jhass>
>> module A; def foo; @@foo; end; def foo= v; @@foo = v; end; end; class B; extend A; end; class C; extend A; end; B.foo = :a; C.foo = :b; [B.foo, C.foo] # thetabyte, see, it's true for modules too
<xybre>
Ayey_: You include or extend the module on something.
<jhass>
slash_nick: do you know what an objects singleton class is?
<shevy>
module Foo; def foo; puts 'yo from foo'; end; end
<shevy>
class Cat; end
benzrf|offline is now known as benzrf
<shevy>
cat = Cat.new
<shevy>
cat.extend Foo
<shevy>
now cat has the method foo()
<slash_nick>
jhass: no i guess not
<xybre>
If you jsut "need" that one method, why not extract the method and rebind it?
<eam>
I wish modules weren't a thing
senayar has joined #ruby
<shevy>
eam hehehe
<xybre>
eam++
mehlah has joined #ruby
<shevy>
I don't like class vs. module distinction in regards to extending functionality
<eam>
and I especially hate that I can't just say something like class Foo::Bar::Baz
<shevy>
yeah you must know whether it is a class or module
<eam>
ruby could and should totally figure out the type of Foo and Bar for me
<jhass>
slash_nick: so every ruby object has an (on demand created) intermediate class in it's ancestry chain that only that single object has. In this class are all methods defined that are unique to that single object.
<shevy>
yep eam
<jhass>
slash_nick: extend simply is an include inside that singleton class
<shevy>
perhaps in ruby 3.0
davispuh has quit [Read error: Connection reset by peer]
<jhass>
slash_nick: so obj.singleton_class.send(:include, Foo) basically
tzero has joined #ruby
baweaver has joined #ruby
<eam>
ruby takes a lot from many languages. the class/module dichotomoy must be a nod to visual basic
<shevy>
not sure
<slash_nick>
so if just that object needs it (the junk in the module) you extend, but if all instances of that class are known to need the stuff, include?
<shevy>
I think it derived from matz using C++
kireevco has joined #ruby
<jhass>
slash_nick: you may recognize the def self. pattern for "class methods", that's the same thing, defining methods in the Class objects singleton class
<shevy>
and he hates C++
jheg has quit [Quit: jheg]
<shevy>
like linus
Biohazard has quit [Remote host closed the connection]
davispuh has joined #ruby
<jhass>
slash_nick: pretty much, though the most common usage is to add the module methods as "class methods"
charliesome has quit [Ping timeout: 240 seconds]
xaxisx has quit [Quit: xaxisx]
tzero has left #ruby ["WeeChat 0.4.3"]
rubytor has quit [Ping timeout: 264 seconds]
<xybre>
It probably came from Ada or Perl.
<xybre>
Most likely perl.
<eam>
perl doesn't have module, perl only has class (called package)
xaxisx has joined #ruby
sunya7a has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
baweaver has quit [Ping timeout: 260 seconds]
senayar_ has joined #ruby
Gonzih has quit [Ping timeout: 240 seconds]
<slash_nick>
i wonder if the original intent was to extend objects
n_blowna_ has quit [Remote host closed the connection]
<eam>
the "object" system is rather exposed and mutable sure
n_blownapart has joined #ruby
<benzrf>
>perl
<benzrf>
>objects
<benzrf>
lel
alvaro_o_ has joined #ruby
memph1s has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
tcstar has quit [Quit: Leaving]
<eam>
benzrf: perl oo is pretty swank
tcstar has joined #ruby
<xybre>
perl6 oo is O_o
<eam>
perl6 isn't perl
<shevy>
perl6 was too good for its own sake
<xybre>
eam: thank god
<shevy>
well that actually was a mistake
blackmesa has joined #ruby
<xybre>
perl6 isn't "was", its actively developed
<eam>
ruby is perl7
<shevy>
because I recall people who used perl5, including devs, stating that they do not even care about perl6
<shevy>
so the community was fragmented
andrewjanssen has quit [Quit: Leaving...]
<xybre>
Same with Python
thetabyte has left #ruby [#ruby]
chipotle has joined #ruby
<shevy>
come on
<xybre>
They're lazy fucks who don't want to upgrade.
<shevy>
it's not soooooooooo bad with python
<xybre>
Yeah? Who the hell uses Py3?
<shevy>
I!!!
<xybre>
I use perl6, so what?
<shevy>
that is not perl xybre, you heard it here before
<shevy>
:-)
choke has joined #ruby
jonathan_alban has joined #ruby
<shevy>
python3 surely fixed some need
<shevy>
print() vs print
<shevy>
ohhh
<shevy>
benzrf, Oejet from #gobolinux knows you
<n_blownapart>
hey anyone use freebsd ? I heard you cant put python 3 on it
<shevy>
<Oejet> shevy: benzrf is 17 years old, and is pretty active in #haskell-blah.
<shevy>
benzrf, he also said that he is not smart enough for C; yet he used haskell
<shevy>
so that implies, haskell is easier than C
<shevy>
n_blownapart I found freebsd harder to use than linux
naw has quit [Read error: Connection reset by peer]
<choke>
n_blownapart you can put python 3 on freebsd... I haven't done it myself as I don't do much python work... default is 2.6, but you can install 3.1 or later... just have to set the PYTHON_DEFAULT_VERSION
naw has joined #ruby
naw has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
<shevy>
wow
<shevy>
python 2.6
<shevy>
freebsd is still faster than centos
<choke>
yeah, that's circa 2011 era lol
anaeem1 has joined #ruby
<xybre>
python 3 came out in like 2009 and people still default to 2.
DrCode has quit [Ping timeout: 264 seconds]
<eam>
shevy: eh that ain't true
naw has joined #ruby
<eam>
linux pretty reliably crushes freebsd in performance
<choke>
centos just sucks.... centos is only good, if you're running a shared web host and NEED cpanel/whm....
exgf has quit [Ping timeout: 264 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
<n_blownapart>
shevy: I am putting the desktop version on a new machine as per suggestion of friend. its called pc-bsd.
<eam>
choke: centos is great -- it's the only real alternative for large deployments
havenwood has joined #ruby
charliesome has joined #ruby
<n_blownapart>
thanks choke shevy
<choke>
All of my servers run ubuntu
<eam>
choke: how large is your deployment in terms of servers, and in terms of developers building for your platform?
<eam>
from what I've seen ubuntu is used primarily by small shops
<eam>
both in terms of dev and footprint
<eam>
(at that scale, who cares)
anaeem1 has quit [Read error: Connection reset by peer]
papercode has joined #ruby
memph1s has joined #ruby
rubytor has joined #ruby
<choke>
Right now, personally I have 4 servers with just me.... My company servers however, we've got 18 running right now, and a total of 12 developers spread across 3 projects
naw has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
naw has joined #ruby
naw has quit [Read error: Connection reset by peer]
Cork has joined #ruby
decoponio has quit [Quit: Leaving...]
<eam>
centos (RHEL) has a ton of value when you've got thousands of developers and tens or hundreds of thousands of varied hardware
<havenwood>
Eulipion: You mean a non-login shell? Since chruby is written in shell you'd need shell. :P
naw has joined #ruby
vdmgolub has quit [Ping timeout: 256 seconds]
<eam>
software lifecycle planning is a huge factor
anaeem1 has joined #ruby
nanoyak has joined #ruby
<eam>
if you've got just a handful of boxes then you can afford to just rebuild everything
naw has quit [Read error: Connection reset by peer]
<eam>
and hardware support is enumerable and managable
elaptics is now known as elaptics`away
naw has joined #ruby
naw has quit [Read error: Connection reset by peer]
fjfish has joined #ruby
<choke>
eam, Yeah I could see that being the case -- though the current setup I don't think we'll really have much of an issue if we ever got that large ( I don't really see us getting any bigger than maybe 30 developers total ) seeing as 99% of our work is closed-source
<eam>
yeah, at that scale you can kinda pick any platform
naw has joined #ruby
DrCode has joined #ruby
<eam>
you can probably recompile your whole software base in a few hours if you want to switch up to a new distro
Cork has quit [Read error: Connection reset by peer]
xaxisx has quit [Quit: xaxisx]
axl_ has quit [Quit: axl_]
axl__ is now known as axl_
<havenwood>
Eulipion: I actually played around with porting chruby to go, then you'd not need shell. >.> There're problems though, like no os.Unsetenv existing, etc.
francisfish has quit [Ping timeout: 250 seconds]
Shidash has quit [Quit: Leaving.]
<havenwood>
Eulipion: But yeah you can get chruby working with a non-login shell if that's what you mean.
exgf has joined #ruby
<n_blownapart>
eam choke so bail on bsd ? I have a laptop with bodhi (ubuntu) . My friend was talking about superior security of bsd.
zorak has joined #ruby
St_Marx has joined #ruby
Hamburglr has quit [Read error: Connection reset by peer]
<eam>
n_blownapart: learn whatever you like. In terms of function, the application requirements typically dictate the platform
<Eulipion>
havenwood: im using poise-ruby now. at this point im about to make my devs package their code with omnibus.
rubytor has quit [Ping timeout: 260 seconds]
jheg has joined #ruby
xaxisx has joined #ruby
<eam>
n_blownapart: there's not really any superior security, though
<eam>
nor performance
<eam>
(in either direction)
<havenwood>
Eulipion: Haven't heard of poise, I'll have to take a look.
<Eulipion>
none the ruby env switchers do everything that i need for automcated deployments, really wish ruby used virtualenv like python
<eam>
at least not on the level relevant to what you'll be doing
jheg has quit [Client Quit]
<Eulipion>
poise is @coderanger's chef cookbook
<n_blownapart>
eam interesting. thanks. I like mac and I live in berkeley CA. my needs are minimal, it is more symbolic maybe.
geardev has joined #ruby
<xybre>
BSD is supposed to be secure by default, linux distros usually leave that up to you.
<eam>
personally I prefer the ideals behind the GPL to the BSD approach
<havenwood>
Eulipion: Installing Ruby to /usr/local with ruby-install works well for me. I don't run more than one Ruby in production anyways.
<benzrf>
py3 is where they fix the flaws that would break backwards compatability
<geardev>
any chance that the next version of ruby will drop the `end` keyword and allow you to use whitespace to signify blocks? coffeescript does this, and i love it
<havenwood>
Eulipion: And chruby works well for dev.
<havenwood>
geardev: no chance
phutchins has quit [Ping timeout: 272 seconds]
<geardev>
havenwood: why?
mehlah has quit [Quit: Leaving...]
senayar_ has quit [Read error: Connection reset by peer]
davispuh has quit [Remote host closed the connection]
<n_blownapart>
xybre: thanks cool . eam i.e. the ideals behind the GPL *of* the BSD approach?
bruno- has quit [Ping timeout: 256 seconds]
<eam>
n_blownapart: hm?
thetabyte has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vsoftoiletpaper has joined #ruby
<eam>
n_blownapart: I mean, I prefer to support copyleft systems over BSD licensed
<n_blownapart>
eam copyleft sorry no capiche
<deepy>
I'm the opposite, whenever I see a 2 or 3 clause BSD license I feel inclined to send patches
davispuh has joined #ruby
<eam>
n_blownapart: linux is licensed under the GPL, which requires sharing of development. BSD does not, so the product can be incorporated into a closed system (for example, there's BSD code in Microsoft Windows)
<eam>
and the tools are better as there's more development activity
xaxisx has quit [Quit: xaxisx]
<xybre>
Linux will have more resources, but as a dark horse BSD will have a more educated community and be more apt to help you troubleshoot.
<shevy>
frem is a nil?
<eam>
but OTOH there's a lot of crap in many popular distro
<atmosx>
hello
rubytor has joined #ruby
<shevy>
frem yeah it is I just tested your code
<xybre>
For instance I've gotten a lot of help troubleshotting any issue with Haiku, but Linux people usually jsut say some variation on RTFM.
<shevy>
I get: Array Array NilClass
<n_blownapart>
dang ok many thanks. deepy eam shevy
i_s has joined #ruby
<eam>
xybre: depends on which part of the enormous community you're in :)
<atmosx>
xybre: BSD people are way less kind than many linux communities (as in distributions)
<n_blownapart>
xybre: that is worth considering thanks
<shevy>
I am innocent, I didn't do anything!
<thetabyte>
Looking for design critique. I have a series of classes that are workers for the Sidekiq queueing system. I have a process requires that a series of jobs be run. Each of these jobs (excepting the first) has a list of other jobs that must complete before they can be run. Additionally, some of these jobs cannot be enqueued until previous jobs complete, because their arguments rely on the output of previous jobs. I'm thinking of writing a cen
<shevy>
Haiku is cool
sigurding has quit [Quit: sigurding]
timonv_ has quit [Remote host closed the connection]
<frem>
shevy: I don't understand. What's an array, now?
<jhass>
frem: the block returns nil when n is nil, so in the next iteration a is nil. You want #each_with_object
ndrei has quit [Ping timeout: 264 seconds]
<shevy>
frem for instance this is an array: array = [1,2,3]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<shevy>
frem the nil object in ruby is not very useful, and your variable called a is nil in the last iteration
n_blownapart has quit [Remote host closed the connection]
senayar has joined #ruby
<frem>
Oh, ok. Thanks!
thisirs` has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
danijoo has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
<shevy>
do you guys use colours in your commandline .rb files?
<jhass>
what are "commandline .rb files"?
godd2 has joined #ruby
<shevy>
those you run from the commandline and that do something, and eventually may also output stuff to you
ndrei has joined #ruby
<godd2>
I'm trying to get pry to trigger inside an rspec it block. any reason why binding.pry isn't working?
<jhass>
mmh, sometimes
<jhass>
godd2: that worked fine for me in the past
jottr is now known as elementz
nobitanobi has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
zenojis has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Gonzih has joined #ruby
Vivekananda_y510 has joined #ruby
sunya7a has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
<nobitanobi>
Guys, when I use Process.spawn from a Ruby process, does the spawned process share memory with the parent?
braxtonplaxco has quit [Quit: braxtonplaxco]
<eam>
nobitanobi: no
<nobitanobi>
uhm
zenojis has joined #ruby
<nobitanobi>
eam: so who decides how much memory does this new process have? The OS directly?
guinsly has joined #ruby
<eam>
nobitanobi: yes
<godd2>
jhass did you have to have pry-debugger installed for it to work?
<nobitanobi>
eam: interesting
<jhass>
godd2: I do have pry-byebug but I don't think that's what made it work
jheg has joined #ruby
<eam>
nobitanobi: just like when you run a command on the commandline -- it's a separate program, allocates its own memory, etc
<nobitanobi>
Eulipion: try specifying the pg-config when installing the gem. On OSX I do this: gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config
<jhass>
godd2: any caching going on? guard? spork?
rubytor has quit [Ping timeout: 260 seconds]
<nobitanobi>
eam: yeah, it's an interesting and non consistent problem when trying to parse some pages using PhantomJS
<godd2>
Im not using guard or spork. they aren't even installed
<nobitanobi>
so, it's ok, I need to debug it further :)
<nobitanobi>
just wanted to make sure it wasn't PhantomJS running out of memory because Ruby wasn't giving it enough
garethrees has quit [Ping timeout: 250 seconds]
<eam>
nobitanobi: definitely not the case. You can look at your limits with ulimit -a
<eam>
(and set them that way too)
<nobitanobi>
eam: perfect
ctp has joined #ruby
<nobitanobi>
thanks :)
<Eulipion>
nobitanobi: same thing
<godd2>
does rspec override $STDOUT ?
<jhass>
godd2: what's the output with --format documentation
xaxisx has joined #ruby
<nobitanobi>
Eulipion: I don't know then, sorry.
Eyes is now known as Eyess
<jhass>
godd2: $STDOUT I don't know, but $stdout, no, not that I would have noticed
<Eulipion>
ruby should marry php, move somewhere, and die together
Guest79430 has quit [Read error: Connection reset by peer]
Zenigor has quit [Remote host closed the connection]
shime has quit [Ping timeout: 272 seconds]
shtirlic has joined #ruby
jheg has joined #ruby
obscured has quit [Quit: leaving]
supermat has joined #ruby
Eiam has joined #ruby
jheg has quit [Client Quit]
rubytor has joined #ruby
<Eiam>
I want to print out the arguments values passed into a function; I tried something like method(__method__).parameters.map{|arg| eval arg[1].to_s} but I can't get the values just the requirement and name
armyriad has quit [Ping timeout: 264 seconds]
Fusl has joined #ruby
<Eiam>
basically i want to find the *args construct without defining it on the function in advance
armyriad has joined #ruby
<jhass>
You need to override and pass on to the original
<apeiros>
Eiam: you can't get the arguments passed to the method through introspection
<Eiam>
damn, I don't want to type them again when I pass them onto another function
<apeiros>
then use *args
sameerynho has joined #ruby
<Eiam>
I don't want to define *args on the function =)
tomblomfield has quit [Quit: Computer has gone to sleep.]
<apeiros>
*method
senayar has quit [Read error: Connection reset by peer]
<apeiros>
no functions in ruby
ItSANg___ has quit [Read error: Connection reset by peer]
<Eiam>
w/e
<apeiros>
well, then you're out of luck, I guess
<Eiam>
okay so, not possible to get arguments
<Eiam>
thats a bummer
senayar has joined #ruby
<Eiam>
why can you get the parameters and type but not the value?
<apeiros>
nope. no `arguments` like in js
ItSANgo_ has joined #ruby
<apeiros>
you can't get the type
<Eiam>
you can get if its requried or optional
<Eiam>
sorry
<apeiros>
you can only get the method definition. not what got passed.
<Eiam>
thats what i meant by "type"
<centrx>
Binding may work, but this just sounds like a bad design
<Eiam>
its more because i want to see if it can be done
<Eiam>
not like a design pattern being implemented anywhere =)
thisirs` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
thisirs has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<centrx>
Eiam, The method signature requires the args to be specified
paulfm has quit []
jheg has joined #ruby
jaimef has quit [Excess Flood]
ItSANgo_ has quit [Read error: Connection reset by peer]
jxf has quit [Ping timeout: 250 seconds]
<centrx>
Eiam, You may be able to access the args a different way, though the Binding, if called at the beginning of the method, but this might include other variables too
<Eiam>
centrx: hmm im not familiar with this contruct lemme google
ItSANg___ has joined #ruby
jfran has joined #ruby
tomblomfield has joined #ruby
<Eiam>
binding.local_variable_get
saarinen has quit [Quit: saarinen]
duggiefresh has quit []
<Eiam>
hmm, requires i know the parameter name though
<centrx>
It's a level of introspection that is generally not required because the variable is right in the code
codabrink has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Eiam>
I know =)
<Eiam>
I've already totally implemented the code by just passing the value on, I'm just being curious now =)
jfran_ has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
saarinen has joined #ruby
CaptainJet has quit []
tomblomfield has quit [Client Quit]
<Eiam>
okay, don't think any of this leads me to a nice little "args[0]" type construct that will just forward the value on without significantly more code so
g0bl1n has quit [Quit: g0bl1n]
jaimef has joined #ruby
SBoolean has quit [Remote host closed the connection]
MCDev has quit [Ping timeout: 250 seconds]
Xeago__ has joined #ruby
<centrx>
def initialize(*args); @args = args; end is not so bad
<centrx>
You could even put it in a module so it only needs to be written once
Xeago has quit [Ping timeout: 240 seconds]
<Eiam>
I know, that wasn't the point however
oso|away has quit [Ping timeout: 256 seconds]
<Eiam>
I'm just writing a little script to generate some analytics based on some data, it'll be run once to just look at some information and I was playing around with ruby because its fun to do so
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivoais has quit [Ping timeout: 256 seconds]
<Eiam>
i literally wanted to do something that was completely unnecessary and had several cleaner, obvious ways to solve the problem. (it wasn't even a problem, just a curiosity)
PixelCrumbs has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
wasamasa has quit [*.net *.split]
l3kn has quit [*.net *.split]
adambeynon has quit [*.net *.split]
aalmenar has quit [*.net *.split]
dwts has quit [*.net *.split]
ereslibre has quit [*.net *.split]
Mars` has quit [*.net *.split]
kalleth has quit [*.net *.split]
mclee has quit [*.net *.split]
Jello_Raptor has quit [*.net *.split]
artmann has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
inukshuk has quit [*.net *.split]
stian has quit [*.net *.split]
Su7 has quit [*.net *.split]
Tranquility has quit [*.net *.split]
contradictioned has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
xybre has quit [*.net *.split]
jorendorff has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
sirecote has quit [*.net *.split]
ninegrid has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
lxsameer has quit [Write error: Connection reset by peer]
Xeago_ has quit [Ping timeout: 260 seconds]
oso|away has joined #ruby
PaulePanter has joined #ruby
Su7 has joined #ruby
Jello_Raptor has joined #ruby
cHarNe2 has joined #ruby
<shevy>
oh damn
PixelCrumbs has joined #ruby
wasamasa has joined #ruby
oso|away is now known as oso96_2000
ninegrid has joined #ruby
inukshuk has joined #ruby
<shevy>
all the time I thought eam and Eiam are the same person! :(
xybre has joined #ruby
tessi_zz has joined #ruby
sivoais has joined #ruby
sivoais has quit [Changing host]
sivoais has joined #ruby
xybre has quit [Changing host]
xybre has joined #ruby
adambeynon has joined #ruby
jorendorff has joined #ruby
l3kn has joined #ruby
cbetta has joined #ruby
Mars` has joined #ruby
sirecote has joined #ruby
<shevy>
now I am confused... who of you is the perl guru really?
Tranquility has joined #ruby
Dreamer3 has joined #ruby
<Eiam>
shevy: sorry, we are not
<Eiam>
I'm the better, superior version.
stian has joined #ruby
kalleth has joined #ruby
contradictioned has joined #ruby
artmann has joined #ruby
weeb1e has joined #ruby
BackEndCoder has joined #ruby
<Eiam>
100% not me
<Eiam>
I f'ing hate perl
<Eiam>
=)
frellnet has quit [Remote host closed the connection]
mclee has joined #ruby
vsoftoiletpaper has quit []
alexa_ has quit [Ping timeout: 240 seconds]
* Eiam
cedes that title to eam
<Eiam>
eam: stay away from my repo's
frellnet has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
aalmenar has joined #ruby
ereslibre has joined #ruby
aalmenar has joined #ruby
ereslibre has joined #ruby
<Eiam>
I have a new hire that just started and he has never used Ruby (but came from Scala) and has started to really like Ruby
<Eiam>
so, go Ruby =)
<jameyd>
is anybody having trouble pinging rubygems
<jameyd>
our deploys are dying
<Eiam>
64 bytes from 176.74.176.178: icmp_seq=0 ttl=46 time=170.071 ms
<Eiam>
170ms is stupid long for me so
<jameyd>
dang
<Eiam>
thats double every other site i try at the moment
<Eiam>
(but still not like, concerning overall)
sixxy has joined #ruby
vsoftoiletpaper has joined #ruby
dwts has joined #ruby
<Eiam>
shevy: but you still like me right? we cool?
<Eulipion>
Eiam: that's 1 of many reasons why u should have ur own gem repo
senayar has quit [Read error: Connection reset by peer]
<Eiam>
Eulipion: => jameyd
<jameyd>
several people around the city can't ping it.....
<Eiam>
jameyd: perhaps a gateway router is having issues
treehug88 has quit []
<Eiam>
what city?
frellnet has quit [Ping timeout: 240 seconds]
<Eiam>
chicago?
graft has quit [Quit: Lost terminal]
<Xeago__>
My pings are fine, slightly higher than usual, but my bandwidth is below a kB…
<Eiam>
or hte UK?
<jameyd>
Eulipion: i know... right now we are developing on diff architecture than in production, bad bad, but it's a new project. so i've had trouble caching the downloads because things like libv8 pull down diff gems
<shevy>
Eiam hmm ok good
charliesome has joined #ruby
<shevy>
one of you two loves perl, the other one hates perl - that is easy to remember
<jameyd>
portland
senayar has joined #ruby
<Eiam>
shevy: =) yup. I'm also the guy in #swift-lang and hes not so there is that? =)
<jameyd>
Eiam: i've found a spiritual bond between scala and ruby
<shevy>
swift is too new to remember
ldnunes has quit [Quit: Leaving]
<Eiam>
and I 100% stole that channel name from #ruby-lang
testcore has joined #ruby
<Eiam>
thats exactly why I named it that channel. (and #swift was taken)
diegoviola has quit [Quit: WeeChat 0.4.3]
<centrx>
-ChanServ- [#swift] This channel is for the student organization at Cal Poly Pomona. Please look elsewhere for help with Openstack or Apple's language.
compAz has quit [Remote host closed the connection]
<Eiam>
centrx: yeah they could just redirect to #swift-lang but, w/e
dblessing has quit [Quit: dblessing]
timonv_ has quit [Ping timeout: 256 seconds]
charliesome has quit [Read error: Connection reset by peer]
<Eiam>
oh, they did in the title, good on them =)
charliesome_ has joined #ruby
jerius has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
claymore has quit [Quit: Leaving]
havenwood has quit []
rubytor has joined #ruby
jarray52 has joined #ruby
charliesome_ has quit [Read error: Connection reset by peer]
zorak has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
jerius has quit [Client Quit]
djbkd has joined #ruby
kevind has quit [Quit: kevind]
bruno- has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit []
mikesplain has quit [Ping timeout: 240 seconds]
discreet has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
dapz has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
Xeago__ has quit [Ping timeout: 256 seconds]
qwyeth has quit [Quit: Leaving]
hmsimha has quit [Ping timeout: 264 seconds]
rubytor_ has joined #ruby
rubytor_ is now known as Guest80913
xaxisx has quit [Quit: xaxisx]
mattstratton has joined #ruby
rubytor has quit [Ping timeout: 260 seconds]
kevind has joined #ruby
Xeago has joined #ruby
mattstratton has quit [Client Quit]
thumpba_ has joined #ruby
zorak has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
xerxas has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
Guest80913 has quit [Ping timeout: 240 seconds]
jonathan_alban has quit [Ping timeout: 260 seconds]
failshell has quit []
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tacos1de has quit [Ping timeout: 264 seconds]
dapz has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
centrx has quit [Quit: Mead error: Connection reset by beer]
mikepack_ has joined #ruby
jay has joined #ruby
p0sixpscl has quit [Quit: went to sleep. ZZzz.]
<jameyd>
does this ring a bell to anybody? on deployment vms, getting "Could not find rake-10.3.2 in any of the sources" on bundle install
<jameyd>
was not happening this morning
Gonzih has quit [Ping timeout: 240 seconds]
rubytor has joined #ruby
perety1 has joined #ruby
hmsimha has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
mijicd has joined #ruby
perety1 has left #ruby [#ruby]
charliesome has quit [Ping timeout: 260 seconds]
rubytor has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
datafirm has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
danijoo has quit [Read error: Connection reset by peer]
rubytor has joined #ruby
danijoo has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
sixxy has quit [Remote host closed the connection]
icarus has quit [Ping timeout: 272 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white>
Is there any pre-built bots out there for parsing code inside a channel? -- Basically looking to drop a Ruby bot in a channel of mine, so I can shoot it snippets of code like the bot here.
djbkd has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
x1337807x has joined #ruby
edgarjs is now known as edgarjs_afk
andrewlio has quit [Quit: Leaving.]
buub has quit [Remote host closed the connection]
buub_ has quit [Remote host closed the connection]
rubytor has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jay has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
jay has joined #ruby
nobitanobi has quit [Ping timeout: 264 seconds]
echevemaster has joined #ruby
rubytor has joined #ruby
wldcordeiro has joined #ruby
MrL0ngbowman has joined #ruby
benzrf|offline is now known as benzrf
lw has quit [Quit: s]
phutchins has joined #ruby
doodlehaus has quit [Remote host closed the connection]
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rydekull has quit [Changing host]
Rydekull has joined #ruby
MrL0ngbowman has quit [Client Quit]
weems|work has quit [Quit: weems|work]
MrL0ngbowman has joined #ruby
rubytor has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
jay has quit [Read error: Connection reset by peer]
jay____ has joined #ruby
rubytor has joined #ruby
axsuul has joined #ruby
saarinen has quit [Quit: saarinen]
treehug88 has joined #ruby
kirun_ has joined #ruby
Poky has quit [Ping timeout: 272 seconds]
xanatos has quit [Quit: Saliendo]
saarinen has joined #ruby
treehug88 has quit [Client Quit]
kirun has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
elementz has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
aspires has quit []
MrL0ngbowman has quit [Quit: Leaving]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
ylluminate has quit [Read error: Connection reset by peer]
edgarjs_afk is now known as edgarjs
hobodave has quit [Quit: Computer has gone to sleep.]
senayar has quit [Read error: Connection reset by peer]
jelera has quit [Remote host closed the connection]
jelera has joined #ruby
anaeem1 has quit [Remote host closed the connection]
nobodyzzz has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
<agent_white>
jameyd: Hehe no worries.
<agent_white>
I may just look into spinning up my own. Just need to figure out sandboxing.
sunya7a has joined #ruby
<jhass>
theharshest: you did require 'f1' in f2?
<theharshest>
jhass: no, coz module B is defined in module A
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
jobewan has quit [Quit: Leaving]
<jhass>
but how should f2 know it if that code is never loaded?
garethrees has quit [Ping timeout: 272 seconds]
<theharshest>
jhass: I'm using "include B"
<jhass>
yes, but if you don't require f1, that code is never loaded and thus B is never defined
mary5030 has joined #ruby
<jhass>
and that's what the error is telling you
ramfjord has joined #ruby
kirun_ has quit [Quit: Client exiting]
FarLight has joined #ruby
<theharshest>
jhass: oh ok, thanks
SCommette has quit [Quit: SCommette]
anaeem1 has joined #ruby
rubytor has quit [Read error: Connection reset by peer]
ffranz has quit [Quit: Leaving]
rubytor has joined #ruby
sunya7a has quit [Ping timeout: 272 seconds]
nowthatsamatt has joined #ruby
linojon has quit [Quit: linojon]
mary5030_ has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<wasamasa>
agent_white: namespaces?
danijoo has joined #ruby
billy_ran_away_ has joined #ruby
baweaver has joined #ruby
MCDev has joined #ruby
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white>
wasamasa: What's that?
anaeem1 has quit [Remote host closed the connection]
MrL0ngbowman has quit [Remote host closed the connection]
jelera has quit [Read error: Connection reset by peer]
<wasamasa>
agent_white: well, if I remember correctly that matz guy though elisp was so well designed he let himself inspire by that you could do the very same by using the sandboxing approach fsbot on #emacs does
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
ARCADIVS has joined #ruby
<wasamasa>
agent_white: which takes the command, turns the symbols into strings, prepends a namespace, turns them into symbols again, then looks up whether they're in the pool of safe symbols
SilkFox has joined #ruby
asdasdasdasss has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
<agent_white>
wasamasa: Ooo... good idea! I'll look into that! Thank you! :D
asdasdasdasss has quit [Ping timeout: 240 seconds]
rubytor has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tunabee_ has joined #ruby
mordof has quit [Ping timeout: 240 seconds]
tunabee_ has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
tunabee has quit [Ping timeout: 272 seconds]
jhass is now known as jhass|off
armyriad has quit [Ping timeout: 272 seconds]
SCommette has joined #ruby
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
timonv_ has joined #ruby
ylluminate has joined #ruby
yetanotherdave has joined #ruby
Zenigor has joined #ruby
ItSANg___ has quit [Read error: Connection reset by peer]
ItSANgo__ has joined #ruby
johnmolina has quit [Remote host closed the connection]
athan has joined #ruby
ItSANgo__ has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
ItSANgo_ has joined #ruby
johnmolina has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cloaked1 has joined #ruby
lolmaus has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<athan>
Hi folks! Is there a [(Bison,Flex),(Happy,Alex),(CUP,JLex)] analogue for Ruby?
ylluminarious has joined #ruby
jottr has joined #ruby
DivineEntity has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
johnmolina has quit [Ping timeout: 264 seconds]
kaiserpathos has quit []
<Eulipion>
can someone help me build the "pg" gem. been banging my head for hours on this one. http://pastebin.com/PXJhmQQc
jaimef has quit [Excess Flood]
<jameyd>
Eulipion: did you install postgres via brew
snath has quit [Ping timeout: 240 seconds]
<Eulipion>
jameyd: its debian 7
SilkFox has quit [Ping timeout: 272 seconds]
<jameyd>
ah ok
<jameyd>
i have the rapid answer for os x :)
tmcgoo has joined #ruby
edgarjs is now known as edgarjs_afk
yfeldblum has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
yfeldblum has joined #ruby
FarLight has quit [Quit: Leaving]
jaimef has joined #ruby
<jameyd>
(i assume you've installed the necessary postgres packages)
yfeldblum has quit [Read error: Connection reset by peer]
<Eulipion>
jameyd: yes, all the possible libs, even build it from src
asdasdasdasss has joined #ruby
dangerousdave has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
edgarjs_afk is now known as edgarjs
CodeLicker2 has joined #ruby
<cloaked1>
good day everyone. So, curious...I want to create a module with methods that are called by classes within the module. See http://hastebin.com/epamufokiy.coffee
yfeldblum has joined #ruby
<cloaked1>
Like to know what I'm doing wrong to make that work the way I'd expect.
CodeLicker has quit [Ping timeout: 264 seconds]
dangerou_ has quit [Ping timeout: 240 seconds]
<jameyd>
Eulipion: including libpq-dev?
edgarjs is now known as edgarjs_afk
ItSANgo_ has quit [Quit: Leaving...]
snath has joined #ruby
<jameyd>
Eulipion: are you using rvm
MCDev has quit [Ping timeout: 250 seconds]
<Eulipion>
jameyd: im using poise-ruby, which is essentially system
<jameyd>
peopel have things to say about one of the glaring errors in your gist
kachi8 is now known as kachi8|
<jameyd>
lots of them about versions of ruby being used
Sgeo has joined #ruby
armyriad has joined #ruby
<Eulipion>
jameyd: saw that earlier, fixed my path, added some flags, still nothing
edgarjs_afk is now known as edgarjs
<jameyd>
shoot, well good luck. pg can be one of those pain points. hopefully somebody else has more insight.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cloaked1>
Eulipion, use apt-get to install libpq-dev or did you install libpq-dev some other way?
<Eulipion>
i used apt
mikepack has quit [Remote host closed the connection]
asdasdasdasss has quit [Ping timeout: 240 seconds]
Wolland has quit [Remote host closed the connection]
Spami has joined #ruby
ziyadb has joined #ruby
kireevco has quit [Quit: Leaving.]
Wolland has joined #ruby
<cloaked1>
hmm
kireevco has joined #ruby
davispuh has joined #ruby
<jameyd>
cloaked1: pretty sure modules cab't be initialized
<cloaked1>
Eulipion: do you need to use postgres?
CodeLicker2 has quit [Ping timeout: 250 seconds]
CodeLicker has joined #ruby
SCommette has quit [Quit: SCommette]
<jameyd>
cloaked1: typical module use is to define them alone with theur own methods and then include them in classes where you want access to those methods
tus has joined #ruby
<Eulipion>
cloaked1: yes for the next month till i switch over to mysql. but im rebuilding what is in heroku now, and i cant switch too many things at the same time
Zenigor has quit [Remote host closed the connection]
Wolland_ has joined #ruby
<jameyd>
or namespace with them, but they don't get instantiated
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
hgl has joined #ruby
dblessing has quit [Quit: dblessing]
aspires has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
saarinen has joined #ruby
dapz has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
bradleyprice has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
britneywright has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adelcampo has joined #ruby
adelcampo is now known as doritostains
<androidbruce>
Any advice for someone with little scripting skills in a new gig using chef and ruby
<androidbruce>
Kinda learning through trial by fire
armyriad has quit [Ping timeout: 240 seconds]
<Eiam>
androidbruce: have fun..
<Eiam>
atleast its not puppet? =)
<Sgeo>
Why do some libraries that attempt to clone Sinatra in other languages suck at it?
<androidbruce>
Last gig was puppet Eiam
<jameyd>
Eiam: is that true? i use puppet and complain to my friends sometimes and he's like, no, i hate chef too
<androidbruce>
Puppet was easier to understand from a novice standpoint
<Sgeo>
Sinatra allows you to point to another Sinatra app from a route, right? Well, the Haskell library that some people like that is supposedly inspired by Sinatra doesn't allow that
<Eiam>
jameyd: well, I used Chef then moved to Puppet and I preferred Chef myself. =)
Hobogrammer has joined #ruby
armyriad has joined #ruby
<jameyd>
i see. i want to try it! new job coming up uses it, so i'm sure i'll get to take a peek.
<Eiam>
I could see enterprise IT liking Puppet more but
<androidbruce>
Is the code academy ruby tutorial worth it?
asdasdasdasss has quit [Ping timeout: 250 seconds]
<Eiam>
I'm just a dude trying to manage af ew servers so.. god damn. it was just a sledgehammer
<jameyd>
yeah i call it rambo sometimes
<jameyd>
it'll get ya
macclearich has quit [Quit: Computer has gone to sleep.]
Vivekananda_y510 has quit [Ping timeout: 264 seconds]
macclearich has joined #ruby
maestrojed has joined #ruby
<androidbruce>
The knife utilities are quite nice esp in the AWS centric env I am in