apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
zachlatta has joined #ruby-lang
<zachlatta> Any advice for getting started writing a gem for the console? I can't seem to find any resources online.
lsegal has joined #ruby-lang
komagome has quit [Quit: Leaving]
ykk` has joined #ruby-lang
<rickhull> are you comfortable with e.g. hello world as a gem?
<rickhull> "gem for the console" is unclear. you just mean without a (G)UI?
<zachlatta> yeah
<rickhull> er, explicitly a CLI i guess
<zachlatta> i've made a basic gem
<zachlatta> the goal is for the user to do something like:
<zachlatta> gitignorer create -Java -Maven
<zachlatta> in bash or zsh or whatever
<zachlatta> i know how to do the backend, i'm just not sure how to get and process user input
io_syl has quit [Remote host closed the connection]
<zachlatta> *get userinput and respond to it
<rickhull> ok, let's ignore the fact of a gem for now
<rickhull> really you just want to write a command line program
<zachlatta> yeah, i know i can use OptionParser to get the options from the user
<rickhull> ARGV is where command line arguments end up
<rickhull> OptionParser consumes ARGV
<zachlatta> ah
<zachlatta> thanks for the correction
<rickhull> but you could consume ARGV yourself
<rickhull> one sec, i'll throw up a basic script
GeissT has joined #ruby-lang
<zachlatta> well, i guess my main question is how can i "install" the program with a gem so the user doesn't need to explicitly download and run the script. instead, i'm hoping for them to be able to just type the gem's name directly in their console to start the program.
<rickhull> inside your gem, executables go inside bin/
<zachlatta> ah
<rickhull> and then you make add bin/ to the shell's PATH
<rickhull> s/make//
<zachlatta> so instead of putting the source files in lib i put them in bin?
<rickhull> right, there is a distinction between executables and library files
<zachlatta> and just say that's where the files are in the gemspec
<rickhull> libraries should just declare classes and modules
io_syl has joined #ruby-lang
<rickhull> and executables require the libs, and actually do stuff
Deece has joined #ruby-lang
<rickhull> so you keep your class definitions inside lib/
<zachlatta> lib = controller/model and bin = view?
<rickhull> no
<rickhull> that's rails stuff, which is sort of a different world than command line apps
<zachlatta> i'm thinking more of the mvc paradigm in general
<zachlatta> i like to use it whenever i can, i find i produce cleaner code when i do
<rickhull> yeah that doesn't apply here
<rickhull> for instance, you don't chmod 755 your rails files
<rickhull> (chmod +x)
<zachlatta> i see that there's a technical difference, but i'm speaking in conceptual terms
Nisstyre-laptop has joined #ruby-lang
<rickhull> MVC makes sense for GUIs. I've not ever tried to use it outside of that realm
guns has joined #ruby-lang
<zachlatta> i think i kind of understand what i need to do, thanks for making the distinction between bin and lib in gems for me! i'll come back here if i have any questions.
headius has joined #ruby-lang
<zachlatta> thanks!
__butch__ has quit [Quit: Leaving.]
Deece has left #ruby-lang [#ruby-lang]
Cakey has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
<rickhull> er, crap
<zachlatta> lol
<rickhull> now check. bin_doubler.rb really means bin/doubler.rb
headius has quit [Quit: headius]
<zachlatta> Alright, thanks! Mind if I PM you with any more questions?
<zachlatta> *if I have any more questions?
<rickhull> one thing to be aware of: ARGV will be full of string representations. the library handles that, but you may want to coerce numbers-as-strings into numbers-as-numbers inside the bin script
<rickhull> nah, just ask in here
<zachlatta> Alright, thanks again!
mbj has quit [Read error: Operation timed out]
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
swav_ has joined #ruby-lang
swav has quit [Read error: Connection reset by peer]
buzzybron has joined #ruby-lang
hogeo has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
snarfmason has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
cjs226 has joined #ruby-lang
nathanstitt has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
dhruvasagar has joined #ruby-lang
cofin has joined #ruby-lang
rmascarenhas has joined #ruby-lang
GeissT has quit [Read error: Connection reset by peer]
GeissT has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
yxhuvud has quit [Read error: Connection reset by peer]
ryez has joined #ruby-lang
apeiros has joined #ruby-lang
Kero has quit [Read error: Operation timed out]
yxhuvud has joined #ruby-lang
Kero has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
arooni-mobile__ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
tenderlove has joined #ruby-lang
bentis has quit [Ping timeout: 248 seconds]
nathanstitt has quit [Quit: I growing sleepy]
torrieri has quit [Quit: Leaving...]
nathanstitt has joined #ruby-lang
teleological has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 252 seconds]
arooni-mobile__ has quit [Ping timeout: 252 seconds]
mikewintermute has quit [Quit: mikewintermute]
teleological has quit [Remote host closed the connection]
pr0ton has quit [Quit: pr0ton]
torrieri has joined #ruby-lang
torrieri has quit [Changing host]
torrieri has joined #ruby-lang
dingus_khan has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
krombr has quit [Remote host closed the connection]
swav_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
stoutMinder has joined #ruby-lang
torrieri has joined #ruby-lang
torrieri has quit [Changing host]
torrieri has joined #ruby-lang
hogeo_ has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
hogeo has quit [Ping timeout: 240 seconds]
ikrima has joined #ruby-lang
Stoutman has joined #ruby-lang
igaiga has joined #ruby-lang
igaiga has quit [Client Quit]
LinkedoT has quit [Quit: This computer has gone to sleep]
ruby-lang600 has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
ruby-lang600 has quit [Client Quit]
arooni-mobile has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
bentis has joined #ruby-lang
hogeo_ has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
sush24 has quit [Quit: This computer has gone to sleep]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
Johz has quit [Quit: AH HELP ITS ALL CRASHING AT ONCE I CANT STOP IT HELP HELP HELP <transmission ends>]
igaiga has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
amerine has quit [Ping timeout: 252 seconds]
igaiga has quit [Ping timeout: 252 seconds]
teleological has joined #ruby-lang
amerine has joined #ruby-lang
ryez has quit [Ping timeout: 250 seconds]
zukin has joined #ruby-lang
io_syl has quit [Read error: Operation timed out]
teleological has quit [Ping timeout: 248 seconds]
hogeo_ has joined #ruby-lang
hogeo_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
Glass_saga has quit [Remote host closed the connection]
Glass_saga has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 248 seconds]
hashkey has quit [Ping timeout: 264 seconds]
help has joined #ruby-lang
help is now known as Guest51310
Guest51310 is now known as hashkey
guns has quit [Quit: guns]
swav has joined #ruby-lang
torrieri has joined #ruby-lang
swav has quit [Ping timeout: 256 seconds]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
jsullivandigs has quit [Ping timeout: 240 seconds]
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
ohsix has quit [Read error: Connection reset by peer]
sush24 has quit [Ping timeout: 256 seconds]
ohsix has joined #ruby-lang
havenwood has joined #ruby-lang
sush24 has joined #ruby-lang
jsullivandigs has joined #ruby-lang
io_syl has joined #ruby-lang
igaiga has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
torrieri has quit [Quit: Leaving...]
sush24 has quit [Quit: This computer has gone to sleep]
dingus_khan has quit [Remote host closed the connection]
Senjai has quit [Ping timeout: 256 seconds]
igaiga has quit [Ping timeout: 252 seconds]
nathanstitt has quit [Quit: I growing sleepy]
zukin has quit [Quit: irssi]
Stoutman has left #ruby-lang [#ruby-lang]
stoutMinder has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
<zachlatta> I'm iterating over an array. I'd like an extra variable while iterating through the array (must be a Fixnum). Is there any way I can do something like array.each do |element, extra_var| ?
hogeo has joined #ruby-lang
<havenwood> zachlatta: I wonder if you mean something like `array.each_with_object(0) do |e, the_fixnum|
<lianj> >> [1,2,3].each.with_object(99){|i,e| p [i,e] }
<eval-in> lianj => [1, 99] ... (http://eval.in/32343)
<zachlatta> I'm having a bit of trouble understanding the documentation for that one. So is obj in each_with_object(obj) the type of object I'm iterating over? Or is that my extra variable?
hogeo has quit [Remote host closed the connection]
infecto has joined #ruby-lang
<lianj> >> [1,2,3].each.with_object(99){|i,e| p [i,e] }
<eval-in> lianj => [1, 99] ... (http://eval.in/32344)
<zachlatta> Alright. Now is there a way for that object to not reset after each iteration? I'm currently doing array.each_with_object(0) do |word, i| {}
<infecto> anyone have any decent light reading/illustrations on the benefits of meta-programming in ruby?
<infecto> awesome, thanks!
<lianj> zachlatta: .inject
<zachlatta> what do i use that method on? i?
<lianj> >> [1,2,3].inject(10){|e,i| p [e, i]; e+i }
<eval-in> lianj => [10, 1] ... (http://eval.in/32345)
Guest51310 has joined #ruby-lang
hashkey is now known as Guest89619
Guest51310 is now known as hashkey
Guest89619 has quit [Ping timeout: 256 seconds]
teleological has joined #ruby-lang
DomKM1 has joined #ruby-lang
DomKM1 has quit [Client Quit]
DomKM has quit [Read error: No route to host]
hogeo has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
djwonk has joined #ruby-lang
teleological has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
hogeo has joined #ruby-lang
djwonk has quit [Client Quit]
singpolyma has quit [Ping timeout: 246 seconds]
djwonk has joined #ruby-lang
singpolyma has joined #ruby-lang
nazty has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
djwonk has quit [Client Quit]
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
nignaztic has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby-lang
infecto has quit [Quit: Leaving.]
rippa has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby-lang
rmascarenhas has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
torrieri has joined #ruby-lang
teleological has joined #ruby-lang
postmodern has quit [Ping timeout: 276 seconds]
<Senjai> Ohai
jsullivandigs has joined #ruby-lang
cordax has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 252 seconds]
ikrima has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
torrieri has quit [Ping timeout: 256 seconds]
nathanstitt has joined #ruby-lang
ikrima has joined #ruby-lang
sush24 has joined #ruby-lang
dingus_khan has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
nyuszika7h has quit [Ping timeout: 256 seconds]
kke has quit [Ping timeout: 256 seconds]
kke has joined #ruby-lang
postmodern has joined #ruby-lang
nyuszika7h has joined #ruby-lang
dingus_khan has quit [Ping timeout: 252 seconds]
nathanstitt has quit [Ping timeout: 256 seconds]
AgentWillyWonka has joined #ruby-lang
dingus_khan has joined #ruby-lang
brianpWins has joined #ruby-lang
igaiga has joined #ruby-lang
infecto has joined #ruby-lang
teleological has quit [Remote host closed the connection]
ykk` has quit [Quit: ykk`]
igaiga has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby-lang
teleological has joined #ruby-lang
dhoss has quit [Remote host closed the connection]
ffio has joined #ruby-lang
agile has quit [Ping timeout: 264 seconds]
_ffio_ has quit [Ping timeout: 248 seconds]
teleological has quit [Ping timeout: 248 seconds]
symm- has joined #ruby-lang
hhatch has joined #ruby-lang
swav has joined #ruby-lang
noop has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
hogeo has quit [Remote host closed the connection]
hogeo_ has joined #ruby-lang
igaiga has joined #ruby-lang
torrieri has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
torrieri_ has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
MouseTheLuckyDog has joined #ruby-lang
<MouseTheLuckyDog> Is there a way to "record" an irb session? Aside from script which puts a lot of crap in the file.
hogeo has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
hogeo_ has quit [Ping timeout: 252 seconds]
vlad_sta_ has joined #ruby-lang
cored has quit [Ping timeout: 276 seconds]
<bnagy> MouseTheLuckyDog: I think pry might be more what you're looking for
vlad_starkov has quit [Ping timeout: 276 seconds]
<havenwood> +1 Pry
igaiga has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
<MouseTheLuckyDog> pry in and of itself looks interesting, but-- how do you record a session in it?
hogeo_ has joined #ruby-lang
igaiga has joined #ruby-lang
setmeaway has joined #ruby-lang
benlovell has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
igaiga has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 276 seconds]
__carlos has quit [Quit: __carlos]
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby-lang
teleological has joined #ruby-lang
hogeo_ has joined #ruby-lang
<havenwood> MouseTheLuckyDog: Here is a script to edit your .irbrc file to write the irb log to 'irb.log' on exit: https://gist.github.com/havenwood/5683196
justinmb_ has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 252 seconds]
teleological has quit [Read error: Operation timed out]
nathanstitt has joined #ruby-lang
solars has joined #ruby-lang
hakunin_ has quit [Remote host closed the connection]
elia has joined #ruby-lang
workmad3 has joined #ruby-lang
sush24 has joined #ruby-lang
hakunin has joined #ruby-lang
Guest51310 has joined #ruby-lang
<MouseTheLuckyDog> havenwood, thanks
hashkey has quit [Ping timeout: 256 seconds]
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby-lang
Guest51310 is now known as hashkey
elia has quit [Client Quit]
igaiga has joined #ruby-lang
nathanstitt has quit [Ping timeout: 256 seconds]
symm- has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
gnufied has joined #ruby-lang
igaiga has quit [Ping timeout: 256 seconds]
infecto has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
krz has joined #ruby-lang
igaiga has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
hogeo has joined #ruby-lang
hogeo_ has joined #ruby-lang
KillerFox has quit [Ping timeout: 248 seconds]
igaiga has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 240 seconds]
nathanstitt has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Client Quit]
swav has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
Nisstyre has joined #ruby-lang
teleological has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
swav has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
agile has joined #ruby-lang
LinkedoT has joined #ruby-lang
poga has quit [Ping timeout: 248 seconds]
mucker has joined #ruby-lang
teleological has quit [Ping timeout: 252 seconds]
stamina1 has joined #ruby-lang
GeissT has quit [Ping timeout: 248 seconds]
nathanstitt has quit [Ping timeout: 240 seconds]
FlyingLeap_ has joined #ruby-lang
hogeo_ has quit [Remote host closed the connection]
kuja_ has joined #ruby-lang
fallenhitokiri has joined #ruby-lang
Nom-_ has joined #ruby-lang
rtl_ has joined #ruby-lang
Karql_ has joined #ruby-lang
swav has quit [Remote host closed the connection]
igaiga has joined #ruby-lang
hogeo has joined #ruby-lang
amateurhuman has joined #ruby-lang
davidbalbert has joined #ruby-lang
danrabinowitz_ has joined #ruby-lang
znz_v has joined #ruby-lang
FlyingLeap has quit [*.net *.split]
joast has quit [*.net *.split]
znz_v0 has quit [*.net *.split]
sluukkonen has quit [*.net *.split]
amateurhuman_ has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
Nom- has quit [*.net *.split]
lupine has quit [*.net *.split]
dabradley has quit [*.net *.split]
fallenhi1okiri has quit [*.net *.split]
Rubennn has quit [*.net *.split]
danrabinowitz has quit [*.net *.split]
bjb_credil has quit [*.net *.split]
kuja has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
Karql has quit [*.net *.split]
DefV has quit [*.net *.split]
davidbalz has quit [*.net *.split]
vgoff has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
sora_h has quit [*.net *.split]
rtl has quit [*.net *.split]
hogeo_ has joined #ruby-lang
elia has joined #ruby-lang
hogeo has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
<yorickpeterse> morning
sora_h has joined #ruby-lang
stamina1 has quit [Quit: WeeChat 0.4.1]
stamina has joined #ruby-lang
bjb_credil has joined #ruby-lang
dabradley has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
ia___ has joined #ruby-lang
swav has joined #ruby-lang
__carlos has joined #ruby-lang
henrikhodne has joined #ruby-lang
poga has joined #ruby-lang
mbj has joined #ruby-lang
nathanstitt has joined #ruby-lang
GeissT has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
hhatch has quit [Read error: Operation timed out]
GeissT has quit [Read error: No route to host]
GeissT has joined #ruby-lang
tbuehlmann has joined #ruby-lang
hogeo_ has quit [Read error: Connection reset by peer]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<Senjai> morning yorickpeterse
alessio_rocco has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
jsullivandigs has joined #ruby-lang
teleological has joined #ruby-lang
nathanstitt has quit [Ping timeout: 256 seconds]
<judofyr> morning Senjai
<Senjai> mornin
dhruvasagar has quit [Ping timeout: 248 seconds]
jsullivandigs has quit [Ping timeout: 252 seconds]
teleolog_ has joined #ruby-lang
teleological has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
teleolog_ has quit [Remote host closed the connection]
joast has joined #ruby-lang
weeb1e_ has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
sluukkonen has joined #ruby-lang
Rubennn has joined #ruby-lang
vgoff has joined #ruby-lang
lupine has joined #ruby-lang
DefV has joined #ruby-lang
shaman42_ has joined #ruby-lang
headius has joined #ruby-lang
saarinen has quit [Quit: saarinen]
vlad_starkov has quit [Remote host closed the connection]
cordax has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
Guest51310 has joined #ruby-lang
hashkey has quit [Ping timeout: 240 seconds]
Guest51310 is now known as hashkey
vlad_starkov has quit [Ping timeout: 256 seconds]
rolfb has joined #ruby-lang
lguardiola has quit [Read error: Connection reset by peer]
lguardiola has joined #ruby-lang
Guest51310 has joined #ruby-lang
hashkey has quit [Killed (holmes.freenode.net (Nickname regained by services))]
Guest51310 is now known as hashkey
noop_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 241 seconds]
marr has joined #ruby-lang
dhruvasagar has joined #ruby-lang
theoros has joined #ruby-lang
noop has quit [Ping timeout: 252 seconds]
<injekt> moin
nathanstitt has joined #ruby-lang
sepp2k has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
Nisstyre has joined #ruby-lang
<yorickpeterse> so that ruby-lang counter was pretty anti climatic
<yorickpeterse> I was hoping for a new design that doesn't screan 2004 all over the place, but instead it's just a migration to Jekyll
<yorickpeterse> & sream
<yorickpeterse> damn it
<injekt> yeah it's still all good though, now people can actually submit designs
Oloryn_lt21 has joined #ruby-lang
face has joined #ruby-lang
<yorickpeterse> true
dfdf has joined #ruby-lang
<yorickpeterse> didn't somebody try to redesign it a while ago?
<yorickpeterse> I recall seeing this design with way too much red in it
<injekt> I thought that
<injekt> I thought there was a few submitted
faces has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby-lang
Oloryn_lt2 has quit [Ping timeout: 264 seconds]
elia has joined #ruby-lang
<zzak> hi
<yorickpeterse> zzak: how's the food?
dr_bob has joined #ruby-lang
allolex has joined #ruby-lang
<zzak> yorickpeterse: :bento:
<yorickpeterse> I hate you so much
<yorickpeterse> How's anne's hostel? Is it still super hot in the living room?
<zzak> its beautiful today..
<zzak> perfect weather
<zzak> sunny + breezy
mbj has quit [Quit: leaving]
<yorickpeterse> :<
<yorickpeterse> hm, 21C here apparently
<yorickpeterse> heh, it also seems you went to the exact same cat cafe as I did
<yorickpeterse> well "cafe"
<yorickpeterse> more like a tiny room with cats
nathanstitt has quit [Ping timeout: 256 seconds]
blaix has joined #ruby-lang
<zzak> lol
<zzak> tiny room with 20 cats
Cakey has quit [Ping timeout: 240 seconds]
igaiga has quit [Remote host closed the connection]
allolex has quit [Quit: See you around]
poga has quit [Read error: Connection reset by peer]
poga has joined #ruby-lang
GarethAdams has joined #ruby-lang
kleech has joined #ruby-lang
teleological has joined #ruby-lang
dfdf has quit [Remote host closed the connection]
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
teleological has quit [Ping timeout: 256 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
vgoff has quit [Ping timeout: 264 seconds]
Senjai has quit [Ping timeout: 256 seconds]
TheMoonMaster has quit [Quit: Later!]
<yorickpeterse> WARNING: NOKOGIRI WAS BUILT AGAINST LIBXML DERP BUT HAS DYNAMICALLY LOADED HERP
DEac- has joined #ruby-lang
<yorickpeterse> ugh, C extensions
<judofyr> Nokogiri is surprisingly painful to install
lupine has quit [Excess Flood]
<injekt> heh
vgoff has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
lupine has joined #ruby-lang
dfdf has joined #ruby-lang
DEac- has quit [Client Quit]
<judofyr> I've wanted to write a pure-Ruby HTML parser
<judofyr> based on the HTML5 parser
nathanstitt has joined #ruby-lang
<judofyr> algorithm
<judofyr> maybe using Ragel for sanity
<whitequark> judofyr: WHY
<judofyr> whitequark: because Nokogiri is a pain to install
<whitequark> no, seriously, why
<whitequark> and $yourthing will be a pain to use
<judofyr> why?
<whitequark> slow
<injekt> I've never had an issue installing nokogiri once all its deps are installed
<injekt> that said, I'm debugging like 3 open issues that have installation problems
<judofyr> whitequark: depends on the use-case. if you're parsing large data you'll have to use SAX anyway
teleological has joined #ruby-lang
<apeiros> judofyr: REXML is pure ruby
<erikh> rexml is horrible
<yorickpeterse> well then, I think I just accidently deployed staging code to production
<yorickpeterse> oops
<erikh> with apologies to the authors
<erikh> it's barely an xml parser.
<apeiros> erikh: never used it, but before nokogiri it was touted as "the best html parser in the whole world!!!!"
kalleth has joined #ruby-lang
<whitequark> erikh: judofyr: chances that REXML will be much ffaster than your thing
<erikh> apeiros: exactly :P
<erikh> hey, I didn't write anything
<apeiros> probably because then's html/xml parsers for java/php were even more horrible. no idea.
igaiga has joined #ruby-lang
<erikh> C#'s xml parser is so nice.
<whitequark> 'cause Ruby's regexp engine, while not being that fast on its own, it's far slower than just slicing the damn thing with regexeps
<erikh> I keep telling myself I'll adapt it, but I just have no xml needs anymore
* apeiros wrote a "sax" XML parser in php once
<apeiros> that was actually fun
<erikh> whitequark: xml is quite complicated
<erikh> it's not a real "parser" if it just looks for angle brackets.
<lupine> you can't sanely parse xml in regexps
<lupine> ever
<erikh> ^
<apeiros> hm? xml is rather easy to parse
<apeiros> but yes, won't do with regexen
<whitequark> erikh: exactly
<whitequark> lupine: huh?
<lupine> since you've got backreferences, it's just about possible
<erikh> apeiros: how about namespaces and validating schemas and entities and CDATA and and and
<lupine> but... no
<apeiros> but with ruby, I'd say writing one using stringscanner should be easy to do
<whitequark> I was talking about using regexps to make a lexer
<apeiros> erikh: that's more than parsing ;-)
<erikh> I disagree
<erikh> it's not an xml parser unless it can do all that.
<apeiros> xpath, css etc. are a lot more work than the parser
<erikh> I'm not even talking about walking the nodes
<erikh> I'm just talking about "here's a document that's valid xml -- ensure that"
<apeiros> hen you're misusing the term "parser" :-p
<apeiros> *then
<erikh> eh
<whitequark> xml library
<apeiros> but agreed, providing a complete xml toolkit with parser, xpath, css, xsd, relax-ng and whatever that other schema thingy was is hard
yorickpeterse is now known as yorick-cowboy
<erikh> yorick-cowboy: pink sombrero.
ikrima has quit [Quit: Computer has gone to sleep.]
<yorick-cowboy> still need to order one
<erikh> anyone play with docker.io yet?
<erikh> I've been tinkering a bit, looks really nice.
dfdf has quit [Remote host closed the connection]
* whitequark has figured out that KVM is utterly unsuitable for running windows vms
<whitequark> HORRIBLE io perf
<whitequark> like, my toaster could run that faster if it was native
<erikh> hvm?
<erikh> did you get full vt-x and vt-d?
<whitequark> erikh: I'm fairly sure it used the intel-kvm module, so vt-x is in
<whitequark> vt-d doesn't play here
<whitequark> as no passthrough
ikrima has joined #ruby-lang
<erikh> bummer
<whitequark> ie. xen with qcow2 totally levels kvm with same qcow2
<whitequark> they even have most parts same
<erikh> oh
<erikh> images
<erikh> dude
<erikh> use lvm.
<whitequark> erikh: mmm
<lupine> whitequark, wfm, etc
<erikh> mmmmmmmmm
<whitequark> erikh: qcow2 on a tmpfs?
<lupine> getting virtio in helps
kleech has quit [Remote host closed the connection]
blaix has left #ruby-lang [#ruby-lang]
<erikh> whitequark: dat smartos
<erikh> :P
<whitequark> lupine: wasn't able to get virtio working with this winxp setup
<whitequark> maybe hands.sys
<lupine> that's why it's slow, then ^^
* whitequark shrugs
<whitequark> it just worked(c) with xen
<erikh> I think citrix is largely responsible for that
<whitequark> (I wasn't able to get its virtio equivalent for block devices to work on this winxp setup, either)
<lupine> try the q35 model, maybe. it emulates easier hardware than 'pc'
<whitequark> (but that didn't slow it down much.)
<whitequark> lupine: thanks, will try
<erikh> q35?
<whitequark> btw
<lupine> but it's not surprising that xen would be faster than qemu without virtio
<whitequark> is there a way to tell qemu to preserve the damn aspect ratio?
<whitequark> lupine: qemu-kvm, mind you
<lupine> same thing now
<whitequark> they're supposed to work mostly the same, no?
teleological has quit [Remote host closed the connection]
<lupine> erikh, -M q35 - it emulates an ahci interface and no isa
<lupine> whitequark, no, they're actually the same thing now
<lupine> qemu-kvm was merged into qemu mainline for qemu 1.3
<whitequark> lupine: no, I meant xen and kvm from the pov of the virtualized machine
<lupine> the only really noticeable change is that -enable-kvm is no longer the default
<erikh> lupine: oh, nice
<lupine> ah, I see. no, not the same
<whitequark> as in, they both use vt-x for screwing around with memory and qemu hvm or whatnot for emulating devices
<lupine> different emulated hardware, etc
<whitequark> I see
<whitequark> thanks
* lupine has been living, sleeping, breathing qemu for the last month
<lupine> can't recommend it ^^
<whitequark> lol
<bougyman> no?
<whitequark> have no choice
<bougyman> I really like it.
<lupine> qemu is fine, dealing with it constantly is not
<bougyman> We use lxc, too.
<bougyman> I have dozens of qemu vms here.
<lupine> been bringing up 700 or so VMs to use 1.5.0 instead of 0.15.0
<whitequark> virtualbox mainly dereferences NULLs, xen cannot wake up from ACPI S3
<bougyman> ah.
<bougyman> yeah, that's a different scale.
<lupine> caaaaaarefully
<bougyman> using any cfgengine for it?
<lupine> no, these are customer VMs
<lupine> we don't have any real control over the guest OS
<bougyman> frightening.
<yorick-cowboy> brrrrr
<bougyman> cold?
<yorick-cowboy> nah, friday deployments
<yorick-cowboy> best deployments
<lupine> it's kind of fun, actually. we do all the management and supervision in ruby
<bougyman> we did some last friday, they all went smooth.
<lupine> and we never, ever deploy on a friday ^^
<bougyman> we deploy to au and apac on fridays.
torrieri_ has quit [Quit: Leaving...]
<bougyman> then UK and US on saturdays
poga has quit [Remote host closed the connection]
<bougyman> really we just watch chef and tell QA when the new code is finished rolling out, unless there's some special upgrade or migration.
snarfmason has joined #ruby-lang
<yorick-cowboy> lupine: I was supposed to deploy yesteday but didn't get to it
<yorick-cowboy> * yesterday
<yorick-cowboy> darn lag
nathanstitt has quit [Ping timeout: 252 seconds]
<yorick-cowboy> and ugh, Capistrano is a fucking pain
<yorick-cowboy> can't wait until we get rid of it
<gnufied> yorick-cowboy: what are you getting it rid with?
<gnufied> capistrano has gone stale kinda
Jinie has joined #ruby-lang
* apeiros wanted to replace cap with a ~15 line shell script at work
<apeiros> which I wrote in ~30min and probably could get nicely scripted in another 2h
<apeiros> but well… 1w of work later by a coworker we're back at cap…
elia has quit [Ping timeout: 248 seconds]
<gnufied> capi is pretty hard to test to begin with
<gnufied> cap*
<gnufied> as in not your deploy scripts, but capistrano itself.
<gnufied> many critical areas don't have any kind of unit tests
<apeiros> well, I'm not worried about that
<apeiros> as we don't use cap unsupervised
weeb1e has joined #ruby-lang
<yorick-cowboy> gnufied: a package based system
poga has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
shaman42 has joined #ruby-lang
Rubennn_ has joined #ruby-lang
DefV_ has joined #ruby-lang
joast has quit [Ping timeout: 264 seconds]
shaman42_ has quit [Ping timeout: 264 seconds]
lupine has quit [Ping timeout: 264 seconds]
sluukkonen has quit [Ping timeout: 264 seconds]
Rubennn has quit [Ping timeout: 264 seconds]
weeb1e_ has quit [Ping timeout: 264 seconds]
DefV has quit [Ping timeout: 264 seconds]
lupine has joined #ruby-lang
lupine has joined #ruby-lang
<gnufied> I am hearing rallying cry of package based system from network admins from time immemorial. So are we going to create deb. packages of rails apps? and how does it work with rubygems?
sluukkonen has joined #ruby-lang
<gnufied> :-)
<gnufied> there is just too much inertia I think
<apeiros> pack your rails app into a gem
<yorick-cowboy> that only solves a small part of the problem
<yorick-cowboy> what we're doing is basically creating tarballs and extracting those on the server
adambeynon has joined #ruby-lang
<gnufied> okay and how does migrations, data migrations, etc run?
headius has quit [Ping timeout: 248 seconds]
buzzybron has quit []
<gnufied> or asset precompilation. shell scripts?
LinkedoT has quit [Ping timeout: 276 seconds]
<yorick-cowboy> we run those locally
<yorick-cowboy> though when building a package you can specify shell commands to run before building
<yorick-cowboy> e.g. bundle install --deployment
LinkedoT has joined #ruby-lang
poga has quit [Remote host closed the connection]
elia has joined #ruby-lang
lupine has quit [Ping timeout: 264 seconds]
lupine has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
nathanstitt has joined #ruby-lang
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
ikrima has quit [Quit: Computer has gone to sleep.]
ruurd has joined #ruby-lang
yorick-cowboy is now known as yorickpeterse
stamina has quit [Ping timeout: 260 seconds]
<judofyr> lupine: yes, you can parse HTML with regexes. not with one big one, but with several small ones it's quite effective: https://github.com/kraih/mojo/blob/master/lib/Mojo/DOM/HTML.pm
<injekt> Perl, where you can parse anything but Perl
<bougyman> judofyr: you can make a parser which utilizes regex, sure.
<bougyman> in perl you could probably do it in one regex.
<bougyman> since they allow full logic in their regex.
<lianj> but is it a good idea?
<judofyr> bougyman: "parsing with regexes" is very ambiguous.
<bougyman> about as good an idea as sqlonrails
<lupine> "it can't be done" is relevant only to FSMs, which modern regexen aren't. "it shouldn't be done" is relevant to regexes
<lianj> close enough
<judofyr> bougyman: and I think it's far from "parsing with regexes" to "construct a regex that extracts a tree when matched"
<judofyr> sorry, just tired of hearing "OMG, you can't parse XML with regexes" all the time
<judofyr> (with a link to stackoverflow.com)
<injekt> I still love that answer
<injekt> (the SO one)
<judofyr> agreed
<judofyr> but people misunderstood: he tried to say "you can't extract data from XML with a regex, you have to use a proper parser", but people read "you can't use regex to implement a XML parser"
<judofyr> or, that's what I hear all the time
mytrile has quit [Remote host closed the connection]
areil has joined #ruby-lang
retro|cz has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
postmodern has quit [Quit: Leaving]
priodev has quit [Ping timeout: 240 seconds]
priodev has joined #ruby-lang
dr_bob has joined #ruby-lang
MartynKeigher has joined #ruby-lang
priodev has quit [Ping timeout: 260 seconds]
mbj has joined #ruby-lang
dfdf has joined #ruby-lang
Jinie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
Jinie has joined #ruby-lang
<PaulePanter> Regarding Parser and AST, I do not understand the example in the description for Node.to_a http://whitequark.github.io/ast/AST/Node.html#to_a-instance_method
torrieri has joined #ruby-lang
machuga|away is now known as machuga
<PaulePanter> What is that `s` function doing?
<judofyr> PaulePanter: that's from AST::Sexp
<judofyr> PaulePanter: s(:foo, :bar) is the same as Node.new(:foo, [:bar])
<PaulePanter> judofyr: Ok, S-expression.
<PaulePanter> judofyr: Thanks.
<PaulePanter> judofyr: Did you IDE show you that or did you browse the documentation?
<judofyr> PaulePanter: I knew it :) I've used it before
sush24 has joined #ruby-lang
<judofyr> PaulePanter: but you'll find it under "Method List" here: http://whitequark.github.io/ast/
<PaulePanter> judofyr: I see. How can I integrate your brain in my vim editor?
<judofyr> PaulePanter: gem install judofyr
<PaulePanter> gem not found ;-)
torrieri has quit [Ping timeout: 256 seconds]
toretore has joined #ruby-lang
rippa has joined #ruby-lang
ryez has joined #ruby-lang
barttenbrinke has joined #ruby-lang
mawueli has joined #ruby-lang
vivekrai has quit [Ping timeout: 256 seconds]
mawueli is now known as Guest68175
fallenhitokiri has quit [Ping timeout: 252 seconds]
khaase has quit [Ping timeout: 245 seconds]
henrikhodne has quit [Quit: Computer has gone to sleep.]
PaulePanter has quit [Ping timeout: 256 seconds]
jwollert- has quit [Ping timeout: 245 seconds]
mbr has quit [Ping timeout: 252 seconds]
eval-in has quit [Ping timeout: 256 seconds]
fallenhitokiri has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 252 seconds]
eval-in has joined #ruby-lang
Guest68175 has quit [Ping timeout: 256 seconds]
PaulePanter has joined #ruby-lang
faces has joined #ruby-lang
sleepy_keita has joined #ruby-lang
face has quit [Ping timeout: 252 seconds]
mbr has joined #ruby-lang
<kke> bumped into this jewel in the legacy monstrosity i'm working on --> if (invoice_image = ia && ia.get_file.to_s).to_s.size > 0
<kke> beautiful
<injekt> heh
mytrile has joined #ruby-lang
<apeiros> awwsumm!
<injekt> awzum
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 256 seconds]
vivekrai has joined #ruby-lang
Johz has joined #ruby-lang
ykk` has joined #ruby-lang
jwollert- has joined #ruby-lang
<PaulePanter> kke: What does that do? Check if the file exists?
khaase has joined #ruby-lang
mdedetrich has joined #ruby-lang
<kke> i think so
<kke> and reads it into a variable if it does
gnufied has quit [Quit: Leaving.]
<PaulePanter> Is not `(invoice_image = ia && ia.get_file.to_s).to_s.size > 0` always true, as the () only results in true or false?
<kke> i think it results into get_file contents or nil
<kke> so to_s is "" or get_file output
<injekt> yeah
<erikh> injekt: was the big announcement at kaigi yesterday? what was it?
<injekt> erikh: ruby-lang.org being open sourced and jekllyified
<injekt> jekyll*
<erikh> ah
<erikh> should be nice on server costs, for sure.
<injekt> yup
krz has quit [Quit: krz]
<PaulePanter> kke: Ah right. I forget, that always the last expression(?) is returned.
<injekt> erikh: zomg last day today
<erikh> congrats dude
<erikh> I actually have to bail
<erikh> no sleep == heading into work at 4am
<injekt> ouch
<kke> if image_format.downcase == "TIFF".downcase
<kke> i love this
<erikh> image_format =~ /^tiff$/i will likely be faster.
<kke> also the guy that made these has a keyboard where the markings for c and v have totally worn out
<chris2> erikh: and wrong
<erikh> wat
<chris2> use \A\z
<erikh> well, it probably won't matter here
<erikh> but yes.
<injekt> tehe
<injekt> dem lines
<chris2> it never matters until its too late
<erikh> I do frequently forget perl's /m is on by default
<chris2> hehe
<erikh> anyhow I really do have to bail, sorry
<erikh> have fun folks
<injekt> cya
<erikh> i'll probably be on when I'm on the train
<chris2> doenst ruby have a strcasecmp?
<injekt> yup
<chris2> image.casecmp("tiff") == 0
<injekt> I wonder what's the fastest
<chris2> bench it :P
<injekt> i said that hoping someone else would
<injekt> :D
<chris2> i'm on my phone
<chris2> too lazy to type that in
dfdf has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
<kke> two consecutive 180 lines long methods where difference is 3 lines of code
<chris2> quite a difference
<injekt> yup
<lianj> :)
<chris2> so does it do unicde collation? :P
kristofferrr has joined #ruby-lang
torrieri has joined #ruby-lang
gnufied has joined #ruby-lang
<judofyr> here's what I'm getting:
<judofyr> casecmp is faster than regexp by 2x ± 0.1
<judofyr> regexp is similar to downcase
<chris2> downcase is two method calls
<injekt> so pretty much the same
<judofyr> using fruity: http://pastie.org/7988414
<chris2> rx is inlined
<lianj> injekt: hehe if you chang it to match "foo" vs "FAR" the regex is faster
kristofferrr has quit [Client Quit]
jsullivandigs has quit [Ping timeout: 252 seconds]
<chris2> but casecmp should exit early too...
<injekt> yup
<injekt> short strings too
<chris2> yeah
pskosinski has joined #ruby-lang
torrieri has quit [Ping timeout: 256 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
Jinie has quit [Quit: Textual IRC Client: www.textualapp.com]
Jinie has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
machuga is now known as machuga|away
<yorickpeterse> question about testing: if I have app A that depends on Gems B and C, and I want to run the tests of all 3 together, what would be a good way to do this? [...]
<yorickpeterse> I was thinking of just symlinking the test directories and running them
<yorickpeterse> (this is a Rails app with engines btw)
<injekt> im confused, are the gems not available?
<injekt> oh
igaiga has joined #ruby-lang
<injekt> I somehow missed 'all 3 together'
cjs226 has quit [Read error: Operation timed out]
igaiga has quit [Remote host closed the connection]
machuga|away has quit [Excess Flood]
machuga has joined #ruby-lang
barttenbrinke has joined #ruby-lang
<yorickpeterse> They are
<yorickpeterse> basically app X includes Gems Y and Z (Rails engines), these all have a spec/ directory with decent tests etc
<yorickpeterse> I want to run them together to see if they don't shit each other up
GarethAdams has quit [Quit: Leaving...]
sush24 has quit [Quit: This computer has gone to sleep]
<yorickpeterse> The dirty way would be to find these directories, symlink them as spec/some-engine and just run everything in spec
<yorickpeterse> but that feels, well, dirty
ldnunes has joined #ruby-lang
jxie has quit [Quit: leaving]
henrikhodne has joined #ruby-lang
ykk` has quit [Quit: ykk`]
<erikh> rubygems-test heh
<erikh> gotta go
<yorickpeterse> the thing is that I don't want to run these Gems isolated
<yorickpeterse> I actually want to test them as if they were actually inside the container app
<PaulePanter> Do I have to keep something in mind, wanting to print something from a class?
<PaulePanter> Running `ruby ruby_parse.rb test.prawn` I do not get any output with the following file.
<PaulePanter> $ more test.prawn
<PaulePanter> pdf.draw_text "X", :size => font_size_x, :at => px2pt(476, 813, pdf) if @bla.foo == "a"
<PaulePanter> pdf.draw_text "X", :size => font_size_x, :at => px2pt(968, 813, pdf) if @bla.foo == "b"
sabfer has joined #ruby-lang
sabfer has quit [Client Quit]
sabfer has joined #ruby-lang
Jinie has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
breakingthings has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
cjs226 has joined #ruby-lang
torrieri has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
torrieri has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
torrieri has quit [Ping timeout: 248 seconds]
mistym has quit [Remote host closed the connection]
sandbags2 has joined #ruby-lang
cored has quit [Ping timeout: 276 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
yalue has joined #ruby-lang
melter has quit [Remote host closed the connection]
ffio_ has joined #ruby-lang
ffio has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby-lang
cofin has joined #ruby-lang
tomzx_mac has joined #ruby-lang
shong has joined #ruby-lang
scampbell has joined #ruby-lang
wallerdev has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
tenderlove has quit [Remote host closed the connection]
kennyvb has joined #ruby-lang
shong has quit [Quit: Leaving...]
Jinie has joined #ruby-lang
elia has joined #ruby-lang
carloslopes has joined #ruby-lang
mbj_ has joined #ruby-lang
wmoxam has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
mbj has quit [Ping timeout: 252 seconds]
ia___ has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
torrieri has joined #ruby-lang
ikrima has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
<yorickpeterse> I'll just leave this here
henrikhodne has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
henrikhodne has joined #ruby-lang
torrieri has quit [Ping timeout: 260 seconds]
nathanstitt has joined #ruby-lang
<charliesome> yorickpeterse: hehe
vlad_starkov has quit [Ping timeout: 256 seconds]
Jinie has quit [Remote host closed the connection]
ikrima has quit [Quit: Computer has gone to sleep.]
rolfb has quit [Ping timeout: 256 seconds]
<__carlos> the answers are awesome… I love the description lol
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 260 seconds]
nathanstitt has quit [Quit: Laters]
wallerdev has quit [Quit: wallerdev]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<andrewvos> Blows my mind
<yorickpeterse> old
<__carlos> wow
<__carlos> so pro
sandbags2 has quit [Remote host closed the connection]
wesside has joined #ruby-lang
charliesome_ has joined #ruby-lang
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
skade has joined #ruby-lang
<yorickpeterse> what the fuck
<yorickpeterse> the commit message makes no sense either
<andrewvos> hehehe
rwilcox has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
zommi has joined #ruby-lang
wallerdev has joined #ruby-lang
deception has joined #ruby-lang
mbj_ is now known as mbj
rwilcox has quit [Ping timeout: 252 seconds]
<ericwood> fuck computers
<ericwood> that is all. carry on.
<gnufied> ok
<yorickpeterse> Does anybody know if there's a way to tell bundler to also load the development dependencies of some Gem?
<yorickpeterse> I have gem X in my Gemfile but I also want to make the development dependencies available (really only for testing though)
ia___ has joined #ruby-lang
<gnufied> not that I know of. you already know several workarounds though I guess. (Add those dependencies explicituly in gemfile)
<yorickpeterse> note that in this case said dependencies are specified in a Gemspec
<yorickpeterse> so I can't just concat the files
<gnufied> can you not just add those in your Gemfile?
<yorickpeterse> No
<yorickpeterse> simply put: that doesn't scale
<gnufied> use Mongo
<ericwood> Gemfile ROFLScaling
<ericwood> yorickpeterse: you wouldn't have these problems with node.js
<yorickpeterse> we'll end up with about 5 Gems at least, each having a handful of dev deps
<yorickpeterse> ericwood: go stick a fist up your ass
<ericwood> :D
<ericwood> one step ahead of ya
<yorickpeterse> you already have an arm in it?
<ericwood> yep
<ericwood> not going to lie, I wouldn't recommend it
<erikh> daaaaamn
vbatts|work has quit [Ping timeout: 248 seconds]
<yorickpeterse> Hm, Bundler probably also doesn't allow you to load multiple Gemfiles at once
<yorickpeterse> blegh
<erikh> uh, I bet require works
<yorickpeterse> hm that's true though, it is Ruby
<erikh> there are also groups
rtl_ has left #ruby-lang [#ruby-lang]
<erikh> group :testing { gem blabla }
<yorickpeterse> but I'm not sure if it would work with paths and such being different
<yorickpeterse> erikh: I know this
<erikh> okie doke.
rtl has joined #ruby-lang
<erikh> just trying to help
<yorickpeterse> but basicaly ./Gemfile has to load spec/engine/derp/Gemfile
<erikh> ah ok
<yorickpeterse> which in turn loads spec/engine/derp/derp.gemspec
<erikh> yeah, require should work for that.
<erikh> give it a shot.
<yorickpeterse> well load in this case, since they don't have .rb extensions
<erikh> require "./foo/bar.rb
<yorickpeterse> also, I'm pretty sure `gemspec` is relative to PWD
<yorickpeterse> not the file
<yorickpeterse> (as in, where it gets the Gemfile from)
mistym is now known as mistym_meeting
<erikh> Dir.chdir(asdfasdf) { require "./blah.gemspec" }
<erikh> I know you know some of this, so yeah
carloslopes has quit [Remote host closed the connection]
<yorickpeterse> fuck, Gemfiles are loaded before my own code so I can't check for RAILS_ENV
<yorickpeterse> hmpf
<yorickpeterse> hm then again, I might not have to
<gnufied> this is what comes to when you try, package deployment.
<gnufied> :-)
<gnufied> just curious, what are you trying?
<yorickpeterse> This has absolutely nothing to do with that
<yorickpeterse> I'm trying to install tests from external Gems (= Rails engines) into my container app so we can test to see if they fuck each other up
<ericwood> (= smileyface
<yorickpeterse> and god damn it, I'm not copying over the Gemfile
<yorickpeterse> since I'm only copying over the spec/ directory
<yorickpeterse> fffff
<yorickpeterse> hm, I might be able to do some Bundler-inception
* yorickpeterse puts on a rubber glove
torrieri has joined #ruby-lang
ia___ has quit [Remote host closed the connection]
<yorickpeterse> Hmpf, something like `gem 'derp', :include_groups => [:development]` would solve my issue
torrieri has quit [Ping timeout: 252 seconds]
vbatts|work has joined #ruby-lang
<yorickpeterse> oh shit, they have an IRC channel
<yorickpeterse> OFF WE MUST!
GeissT has quit [Quit: MillBroChat AdIRC User]
sandbags2 has joined #ruby-lang
Jinie has joined #ruby-lang
<ericwood> hey, anyone here know what the weather in Belgium is like in October?
Jinie has quit [Client Quit]
cofin has quit [Quit: cofin]
Jinie has joined #ruby-lang
<ericwood> jk I figured it out
ryez has quit [Ping timeout: 250 seconds]
__carlos has quit [Quit: __carlos]
vlad_starkov has joined #ruby-lang
Cakey has joined #ruby-lang
brianpWins has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
<yorickpeterse> man, I feel like I'm using babies to beat a hammer in a wall here
judofyr has quit [Remote host closed the connection]
joast has joined #ruby-lang
cofin has joined #ruby-lang
sandbags2 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 252 seconds]
arooni-mobile__ has quit [Ping timeout: 276 seconds]
<yorickpeterse> bah fuck it, this is too much effort
<yorickpeterse> because when you solve the Gemfile problem of course Rails goes all "OOOOHO SHIT WTF ARE YOU DOING"
<yorickpeterse> omakase etc
<yorickpeterse> basecamp
vlad_starkov has quit [Ping timeout: 256 seconds]
jsullivandigs has joined #ruby-lang
mytrile_ has joined #ruby-lang
cordax has joined #ruby-lang
zzak has quit [Quit: leaving]
rippa has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
infecto has joined #ruby-lang
infecto1 has joined #ruby-lang
areil has quit [Remote host closed the connection]
mistym_meeting is now known as mistym
jsullivandigs has joined #ruby-lang
zzak has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
infecto has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving.]
barttenbrinke has quit [Remote host closed the connection]
io_syl has quit [Read error: Operation timed out]
cordax has quit [Quit: Computer has gone to sleep.]
tbuehlmann has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
infecto1 has quit [Quit: Leaving.]
kristofferrr has joined #ruby-lang
machuga is now known as machuga|away
mikewintermute has joined #ruby-lang
cordax has joined #ruby-lang
retro|cz has quit [Read error: Operation timed out]
Oloryn_lt21 has quit [Read error: Connection reset by peer]
ikrima has joined #ruby-lang
carloslopes has joined #ruby-lang
mbj has left #ruby-lang [#ruby-lang]
Cakey has quit [Ping timeout: 256 seconds]
nathanstitt has joined #ruby-lang
infecto has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
infecto1 has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
barttenbrinke has joined #ruby-lang
somasonic has left #ruby-lang ["fin."]
infecto has quit [Ping timeout: 276 seconds]
ia___ has joined #ruby-lang
fail_ has joined #ruby-lang
mucker has joined #ruby-lang
crudson has quit [Ping timeout: 252 seconds]
tbuehlmann has joined #ruby-lang
cmckni3 has quit [Quit: Textual IRC Client: www.textualapp.com]
arubin has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 252 seconds]
__butch__ has joined #ruby-lang
gearaholic has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
judofyr has joined #ruby-lang
KillerFox has joined #ruby-lang
krohrbaugh has joined #ruby-lang
__carlos has joined #ruby-lang
sabfer has quit [Quit: sabfer]
judofyr has quit [Remote host closed the connection]
vbatts|work has quit [Ping timeout: 248 seconds]
elia has quit [Quit: Computer has gone to sleep.]
noop_ has quit [Ping timeout: 240 seconds]
Criztian has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
machuga|away is now known as machuga
barttenbrinke has quit [Read error: Connection reset by peer]
barttenbrinke has joined #ruby-lang
alessio_rocco has quit [Remote host closed the connection]
swav has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby-lang
noop_ has joined #ruby-lang
havenwood has joined #ruby-lang
elia has joined #ruby-lang
cofin has quit [Quit: cofin]
jxie has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
elia has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby-lang
Criztian has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
vbatts|work has joined #ruby-lang
teleological has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
cofin has joined #ruby-lang
sabfer has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
pr0ton has joined #ruby-lang
<injekt> zzak: ping
<injekt> zzak: also go to sleep
<injekt> but after you've ponged
<injekt> ok i guess sleep has happened already
krohrbaugh has joined #ruby-lang
sabfer has quit [Quit: sabfer]
teleological has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
teleological has joined #ruby-lang
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
mikewintermute has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
mikewintermute has joined #ruby-lang
sabfer has joined #ruby-lang
sabfer has quit [Client Quit]
justinmb_ has joined #ruby-lang
teleological has quit [Ping timeout: 246 seconds]
infecto1 has quit [Quit: Leaving.]
mytrile_ has quit [Remote host closed the connection]
infecto has joined #ruby-lang
barttenbrinke has joined #ruby-lang
DomKM has joined #ruby-lang
DomKM has quit [Client Quit]
DomKM has joined #ruby-lang
fail_ has quit [Quit: fail_]
ia___ has quit [Quit: ia___]
ia___ has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 252 seconds]
rwilcox has joined #ruby-lang
cofin has quit [Quit: cofin]
justinmb_ has quit [Remote host closed the connection]
cordax has quit [Quit: Computer has gone to sleep.]
justinmb_ has joined #ruby-lang
JohnThePreacher has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> hai
<yorickpeterse> I'm home
<erikh> congratulations
dhruvasagar has joined #ruby-lang
<yorickpeterse> yeah it was quite the challenge
<yorickpeterse> I had to cycle home in the sun
JohnThePreacher has quit [Read error: Connection reset by peer]
pr0ton has quit [Quit: pr0ton]
pr0ton has joined #ruby-lang
<rue> NOT THE SUN
ikrima has joined #ruby-lang
<yxhuvud> it is horrid warm out there.
infecto has quit [Read error: Connection reset by peer]
infecto has joined #ruby-lang
vlad_starkov has joined #ruby-lang
brianpWins has joined #ruby-lang
saarinen has joined #ruby-lang
cofin has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<Aloysius1> Hey, guys. I'm running into a situation where a line I execute in irb works but fails in a script.
<Aloysius1> Not sure where to begin, past making sure the parameters all agree (they do).
gearaholic has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 256 seconds]
<Aloysius1> The call is to "RestClient.post(aurl, somedata)
pr0ton has quit [Quit: pr0ton]
<Aloysius1> Oh. Fuck me.
<Aloysius1> never mind
<Aloysius1> Thanks. ;-)
workmad3 has joined #ruby-lang
<rue> Does irb still execute in eval context?
<Aloysius1> OK, on a less stupid question, I notice that when I get an exception inside a code block that's being passed to another routine, even if I rescue, the block is never called again.
carloslopes has joined #ruby-lang
__carlos has quit [Quit: __carlos]
<Aloysius1> In this particular case, I'm monitoring a message queue and making a RestClient call with whatever shows up in the message queue.
<TTilus> weird encoding shit going on :-/
scampbell has quit [Remote host closed the connection]
<TTilus> File.join(foo, bar) returns string w encoding ASCII-8BIT
<TTilus> foo and bar both have encoding UTF-8
KillerFox has quit [Ping timeout: 248 seconds]
<TTilus> and neither of them has any characters outside ASCII
KillerFox has joined #ruby-lang
<TTilus> this is in production
dingus_khan has joined #ruby-lang
<TTilus> in my dev machine all of those are utf-8
<TTilus> both have 1.9.3
mytrile_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
mytrile_ has quit [Ping timeout: 248 seconds]
rwilcox has quit [Ping timeout: 245 seconds]
marr has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has joined #ruby-lang
<cored> hello
<cored> is there something equivalent to rspec --init
<cored> but for cucumber
<cored> ?
symm- has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
teleological has joined #ruby-lang
Criztian has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby-lang
ndrst has quit [Ping timeout: 256 seconds]
noop_ has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
<TTilus> i always go look my old projects
<TTilus> there are generators for rails projects in cucumber-rails
vlad_sta_ has joined #ruby-lang
<TTilus> and looks like there are other boilerplate generators too, see https://github.com/blaix/bddgen
<TTilus> never used bddgen, just googled "cucumber boilerplate"
<ericwood> boiled cucumbers
<ericwood> bleh
sabfer has joined #ruby-lang
<TTilus> gonna go bother people at #ruby with my encoding problems...
JpC0utur3 has quit [Quit: leaving]
vlad_starkov has quit [Ping timeout: 276 seconds]
teleological has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
nyuszika7h has quit [Quit: WeeChat 0.4.1]
infecto has quit [Quit: Leaving.]
JpC0utur3 has joined #ruby-lang
machuga has quit [Excess Flood]
machuga has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
deception_ has joined #ruby-lang
wycats__ is now known as wycats
krohrbaugh has quit [Quit: Leaving.]
workmad3 has joined #ruby-lang
saarinen has quit [Quit: saarinen]
workmad3 has quit [Ping timeout: 248 seconds]
tbuehlmann has joined #ruby-lang
mytrile_ has joined #ruby-lang
pskosinski has quit [Quit: pskosinski]
<darix> TTilus: if neither string has chars outside ascii ... returning an ascii string is valid dont you think?
<darix> TTilus: the more interesting question is ... what happens if you pass a string that actually has UTF-8 chars in it
<TTilus> darix: ascii-8bit is an alias for binary
<darix> TTilus: what locale is your production stuff running in?
pr0ton has joined #ruby-lang
deception_ has quit [Quit: Goodbye]
<TTilus> en_US.UTF-8
<TTilus> i would be perfectly happy if it returned ascii
<TTilus> but it doesn't
deception has quit [Quit: Goodbye]
<TTilus> File.join of "real" utf-8 parts returns utf-8
dlackty____ has quit [Quit: Connection closed for inactivity]
<TTilus> ...and im not gonna "solve" this by ensuring that all my filenames are gonna contain multibyte chars :)
carloslopes has quit [Remote host closed the connection]
nyuszika7h has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
carloslopes has joined #ruby-lang
dingus_khan has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
mikewintermute has quit [Quit: mikewintermute]
JpC0utur3 has quit [Quit: leaving]
sabfer has quit [Quit: sabfer]
krohrbaugh has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
LinkedoT has quit [Quit: This computer has gone to sleep]
saarinen has joined #ruby-lang
ia___ has quit [Quit: ia___]
ruby-lang563 has joined #ruby-lang
<TTilus> uhh, it was a bug in ruby
<TTilus> fixed in 1.9.3p154 and prod has earlier version...
ruby-lang563 has quit [Client Quit]
NOOOB has joined #ruby-lang
NOOOB has quit [Client Quit]
postmodern has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
__carlos has joined #ruby-lang
krohrbaugh has joined #ruby-lang
mytrile_ has quit [Remote host closed the connection]
infecto has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
cmckni3 has joined #ruby-lang
cofin has quit [Quit: cofin]
__carlos has quit [Quit: __carlos]
krames has joined #ruby-lang
<krames> quick question
<krames> why would you use IO#read vs IO#sysread?
cmckni3 has quit [Client Quit]
KillerFox has quit [Ping timeout: 248 seconds]
amerine has quit [Quit: Textual IRC Client: www.textualapp.com]
cmckni3 has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
sabfer has joined #ruby-lang
cored has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rikai_ has joined #ruby-lang
justinmb_ has quit [Remote host closed the connection]
ihme-TTilus has joined #ruby-lang
eval-in_ has joined #ruby-lang
rikai has quit [Read error: Connection reset by peer]
TTilus has quit [Ping timeout: 252 seconds]
eval-in has quit [Ping timeout: 252 seconds]
KillerFox has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
amerine has joined #ruby-lang
amerine has quit [Client Quit]
machuga is now known as machuga|away
amerine has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
melter has joined #ruby-lang
rmascarenhas has joined #ruby-lang
ndrst has joined #ruby-lang
krames has quit [Ping timeout: 260 seconds]
ikrima has quit [Quit: Computer has gone to sleep.]
zommi has quit [Remote host closed the connection]
jmeeuwen has joined #ruby-lang
rikai_ is now known as rikai
yalue has quit [Quit: Leaving]
wesside has quit [Quit: Computer has gone to sleep.]
jmeeuwen has quit [Client Quit]
__butch__ has joined #ruby-lang
jmeeuwen has joined #ruby-lang
infecto has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
rmascarenhas has quit [Ping timeout: 256 seconds]
nick_h has quit [Read error: Operation timed out]
ruskie has quit [Read error: Operation timed out]
cjs226 has quit [Quit: cjs226]
infecto has joined #ruby-lang
nick_h has joined #ruby-lang
cofin has joined #ruby-lang
forrest has joined #ruby-lang
jmeeuwen has quit [Remote host closed the connection]
ruskie has joined #ruby-lang
saarinen has quit [Quit: saarinen]
pr0ton has quit [Ping timeout: 252 seconds]
pr0ton_ has joined #ruby-lang
ldnunes has quit [Quit: Saindo]
<whitequark> quick
<whitequark> what's the encoding of result of File.read(...) ?
_ffio_ has joined #ruby-lang
ffio_ has quit [Ping timeout: 252 seconds]
cmckni3 has quit [Quit: Textual IRC Client: www.textualapp.com]
rmascarenhas has joined #ruby-lang
swav has joined #ruby-lang
izuriel has joined #ruby-lang
tylersmith has joined #ruby-lang
justinmb_ has joined #ruby-lang
izuriel has quit [Client Quit]
krohrbaugh has quit [Quit: Leaving.]
jmeeuwen has joined #ruby-lang
swav has quit [Ping timeout: 245 seconds]
wmoxam has quit [Ping timeout: 248 seconds]
brandonbuck has joined #ruby-lang
sabfer has quit [Quit: sabfer]
<matti> whitequark: ?
mbj has joined #ruby-lang
<whitequark> matti: hm?
<matti> File.read?
* matti confused
<whitequark> um
<whitequark> yes?
<matti> I just resumed screen
<matti> Do I miss something?
<matti> ;]
<whitequark> no
<whitequark> that was just my question
<matti> Ah.
brandonbuck has quit [Quit: leaving]
forrest has quit [Quit: Leaving]
izuriel has joined #ruby-lang
cjs226 has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
rmascarenhas has quit [Ping timeout: 245 seconds]
pr0ton_ has quit [Ping timeout: 276 seconds]
ykk` has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mistym has quit [Remote host closed the connection]
swav has joined #ruby-lang
Criztian_ has quit [Read error: Connection reset by peer]
Criztian has joined #ruby-lang
<rickhull> whitequark: a rhetorical question?
<rickhull> File.read('/etc/hosts').encoding #=> #<Encoding:UTF-8>
<rickhull> file /etc/hosts #=> /etc/hosts: ASCII text
saarinen has joined #ruby-lang
<whitequark> rickhull: no, not a rhetorical one.
<whitequark> you just showed me one example.
<whitequark> I'm interested in all factors which influence the resulting encoding.
<whitequark> Ruby version, Ruby impl, environment variables, ...
pr0ton has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
Guest51310 has joined #ruby-lang
<rickhull> sure seems like a rhetorical question
mytrile_ has joined #ruby-lang
pkrnj_ has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
arubin_ has joined #ruby-lang
jmeeuwen has joined #ruby-lang
mytrile_ has quit [Remote host closed the connection]
breakingthings has quit [Quit: breakingthings]
davidbalbert_ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
cjs226 has quit [*.net *.split]
__butch__ has quit [*.net *.split]
tbuehlmann has quit [*.net *.split]
pkrnj has quit [*.net *.split]
io_syl has quit [*.net *.split]
arubin has quit [*.net *.split]
joast has quit [*.net *.split]
Johz has quit [*.net *.split]
hashkey has quit [*.net *.split]
davidbalbert has quit [*.net *.split]
rue has quit [*.net *.split]
FiXato has quit [*.net *.split]
Guedes0 has quit [*.net *.split]
schroedinbug has quit [*.net *.split]
egypt has quit [*.net *.split]
awkisopen has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
Caius has quit [*.net *.split]
anekos_ has quit [*.net *.split]
GitNick has quit [*.net *.split]
pkrnj_ is now known as pkrnj
<whitequark> rickhull: what?
<whitequark> how is it rhetorical?
izuriel has quit [Quit: leaving]
pipework has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mucker has quit [Quit: leaving]
saarinen has quit [Quit: saarinen]
rue has joined #ruby-lang
Guedes0 has joined #ruby-lang
GitNick has joined #ruby-lang
FiXato has joined #ruby-lang
awkisopen has joined #ruby-lang
cjs226 has joined #ruby-lang
schroedinbug has joined #ruby-lang
io_syl has joined #ruby-lang
Caius has joined #ruby-lang
ioga_wrk has joined #ruby-lang
Johz has joined #ruby-lang
egypt has joined #ruby-lang
spike|spiegel has joined #ruby-lang
anekos_ has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
mbj has quit [Quit: leaving]
awkisopen has quit [Changing host]
awkisopen has joined #ruby-lang
jmeeuwen has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
mrsolo has quit [Quit: Leaving]
saarinen has joined #ruby-lang
saarinen has quit [Client Quit]
Guest51310 is now known as hashkey
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
ykk` has quit [Quit: ykk`]
cofin has quit [Quit: cofin]
jmeeuwen has joined #ruby-lang
<rickhull> i'd suggest to trace Encoding.find('filesystem')
<whitequark> hm, interesting
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
infecto has quit [Quit: Leaving.]
<rickhull> prefacing a comprehensive question with "quick" is what triggered the rhetorical flag for me, i guess
<rickhull> quick, how do molecules work?
<whitequark> there can be a short answer to the encoding question, unlike that
<whitequark> ie. "Encoding.default_internal which gets set from $LANG". I'd expect something on that order.
<rickhull> quick, what are all the factors influencing X
<rickhull> anyway, the horse is dead :)
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
<Olipro> is there a method that'll convert a username to a UID
<Olipro> platform specific is fine, namely Linux
Criztian has quit [Remote host closed the connection]
<rickhull> (note, that's 1.9.2 stdlib)
<lupine> works in 1.8.7 too :)
DomKM has quit [Quit: Leaving.]
tomzx_mac has joined #ruby-lang
infecto has joined #ruby-lang
saarinen has joined #ruby-lang
arubin_ is now known as arubin
cofin has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
rmascarenhas has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
wmoxam has joined #ruby-lang
Senjai has quit [Ping timeout: 256 seconds]
ruurd has quit [Quit: Leaving...]
fbernier has quit [Read error: Connection reset by peer]
epus has joined #ruby-lang
<rickhull> anyone familiar with treetop?
epus_ has joined #ruby-lang
ruurd has joined #ruby-lang
<whitequark> me
<rickhull> this project i'm working on depends on json_select > treetop > polyglot
<rickhull> and polyglot has taken over require functionality project-wide, which I'm trying to see if I can revert
<whitequark> hmm
fbernier has joined #ruby-lang
<whitequark> I don't think so
<whitequark> well... class Kernel; alias require polyglot_original_require; end
swav has quit [Remote host closed the connection]
<rickhull> is it it necessary for json_select or treetop to have auto-required polyglot in the first place?
<rickhull> from the doc portion i pasted, i would think no. but maybe it's just a question of requiring polyglot first, even though it will be required anyway
infecto has quit [Quit: Leaving.]
<whitequark> is polyglot a problem for you?
<rickhull> it was a few weeks ago, trying to find the example
<rickhull> but may have been environmental
<epus> hey guys. I am just starting with RoR, can u suggest any learning materials when I am away from pc, like in train or bus?
<rickhull> i.e. it seemed like it was
joast has joined #ruby-lang
<rickhull> epus: rails pdf on kindle
<rickhull> the rails way or something like that
Aloysius1 has quit [Remote host closed the connection]
ruurd has quit [Quit: Leaving...]
<epus> i thought so, but it is hard to read the book about programming without trying by myself when i am in public transport
epus has left #ruby-lang [#ruby-lang]
<rickhull> are you away from your pc or not?
marr has quit [Ping timeout: 245 seconds]
epus has joined #ruby-lang
<rickhull> if you don't have an execution environment, you'll just have to make do
<epus> thats the thing, here in london it is impossible to use laptop on a train in a peak time. need to figure out other options for studying. otherwise it is a waste of time 2-3hours a day in a train
<rickhull> whitequark: i got a require failure from polyglot for a (confirmed) valid path. though it was on a CI server that may have been in a bad state. not something i can easily reproduce at the moment
lsegal has joined #ruby-lang
<rickhull> epus: you could try a tablet or phone, but i'm pretty wedded to a physical keyboard for such things
<rickhull> whitequark: do you think that doc is out of date? it sure looks to me like treetop now enables Polyglot dynamic loading be default
<rickhull> in lib/treetop/polyglot.rb, which is required by lib/treetop.rb
solars has quit [Read error: Operation timed out]
<whitequark> seems so
kuja_ is now known as kuja
<rickhull> i'd prefer the documented behavior obviously
<rickhull> messing with Kernel#require by default just seems sketchy
benanne has joined #ruby-lang
<epus> i definitely need a physical keyboard. other question I have finished ruby course on code academy and started straight away with hartl's RoR tutorial. now i am on chapter 4 and it is going pretty well, but maybe i need to learn more ruby itself? sorry for this kind of questions, just don't want learn to code in a bad way
<rickhull> rails uses a lot of magic and shortcuts, which are very useful for experienced programmers. but i think it can be very confusing and misleading for new ruby programmers
<rickhull> so, if possible, i'd suggest working with ruby for a few weeks before getting heavy into rails
pr0ton has quit [Ping timeout: 256 seconds]
<rickhull> if all you want to do, ever, is rails, then maybe not necessary
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
<epus> currently i am a second year student (software engineering course), have a bit of experience in java / c++ / php, but nothing very serious. when i tried ruby on code academy i got hooked by ruby and i believe it is a language on which i want to concentrate the most
epus_ has quit [Quit: Page closed]
<rickhull> sounds like a good plan to me. find things to use ruby on, even if just exercises
Olipro has quit [Ping timeout: 246 seconds]
krombr has joined #ruby-lang
<rickhull> and if you have a need for rails, do that too
davidh_ has joined #ruby-lang
<epus> any suggestions for a good materials to dive into ruby?
<epus> amazing, thank you
<rickhull> whitequark: i'm expecting this thread to go places ;) https://github.com/nathansobo/treetop/issues/28#issuecomment-18779020
voker57_ has joined #ruby-lang
voker57 has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 245 seconds]
jxpx777 has joined #ruby-lang
__carlos has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
wmoxam_ has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
Olipro has joined #ruby-lang