apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<crocket> toretore, If you specify how to construct a config database in the repo, you don't need to keep config in the repo.
<eladmeidar> toretore: i like your ways.
<eladmeidar> Configurations does not belong in the db, nor in source control.
eka has joined #ruby
<toretore> crocket: i still don't see how a database is better
<crocket> toretore, My coworkers approve stupid ways of doing things as long as they don't violate deadlines.
<toretore> crocket: with the db you're still going to have to populate it or you're back to no config
<crocket> toretore, I agree that a database is not much better, but it's better than commiting changes to config.
<pontiki> some wag will likely come along and write a migration to load configuration data and BOOM config in repo yet again
<ramfjord> yeah, one advantage of db is you can have the db password stored elsewhere on the host
<ramfjord> and could have changing prod passwords somewhere in the deploy script
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xargoon has joined #ruby
<crocket> toretore, However, it's a good idea to keep config structure in the repo.
<toretore> provide a config sample
<ramfjord> at least a dev config
<crocket> yes
<crocket> It's a config structure for ui tests.
j_mcnally has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
nateberkopec has joined #ruby
oso96_2000 is now known as oso|away
nicholas040 has joined #ruby
brunops has joined #ruby
<ramfjord> it is kind of sad to need to do dev to avoid config file changes - code reviews would be a good way of keeping people from cowboy pushing changes
willgorman_ has quit [Ping timeout: 240 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
<crocket> ramfjord, toretore : For now, the config is http://pastebin.com/pCyNCC2q in ~/.profile
<toretore> oh wow that is a lot of config
omosoj has joined #ruby
eka has quit [Ping timeout: 240 seconds]
<toretore> (i am being sarcastic)
Hanmac1 has quit [Ping timeout: 248 seconds]
<crocket> toretore, The amount of config will grow.
yano has quit [Ping timeout: 630 seconds]
<crocket> I want to reign the complexity before it grows.
<eladmeidar> of course.
<toretore> ok, here's what you do: provide a default config file that is checked in; then allow another config file that overrides the first, not checked in
<eladmeidar> environemnt.config.example.yml
<eladmeidar> or event
<eladmeidar> even*
<crocket> toretore, Like ui_test.yml.example?
<eladmeidar> .rb
<toretore> YAML.load(default).deep_merge(YAML.load(per_user))
xargoon has quit [Ping timeout: 240 seconds]
testcore has quit [Quit: BitchX for president.]
yfeldblum has quit [Remote host closed the connection]
<crocket> toretore, Manually keeping up with config directives was a nightmare for many ruby installations.
<crocket> An admin nightmare
nateberkopec has quit [Ping timeout: 240 seconds]
* eladmeidar likes deep_merge
yfeldblum has joined #ruby
<eladmeidar> i like deep merge and i cannot lie!
<toretore> it's a rails thing though :/
Takle has quit [Remote host closed the connection]
<crocket> toretore, However, copying config.js.example to config.js would be simple and do the job for my ui tests.
terrell_t has quit [Remote host closed the connection]
<eladmeidar> indeed
<eladmeidar> long story short
<crocket> It's better than keeping up with the complexity of database migration.
<eladmeidar> keep an example file in the repo, real configuration, not in the repo
bradhe has quit [Remote host closed the connection]
<toretore> there is probably some java xml configuration framework you can use
<crocket> eladmeidar, I may put the real config in .gitignore
* eladmeidar waits for hifve
* eladmeidar 's hand is in the air
<eladmeidar> crocket: exactly
mehlah has quit [Quit: Leaving...]
xargoon has joined #ruby
<toretore> eladmeidar: hifive!
Asher has joined #ruby
<toretore> can't leeave you hanging
ddv has quit [Ping timeout: 245 seconds]
<crocket> toretore, I'm workin on nodejs.
<eladmeidar> toretore: thank you
<crocket> a json config would be simpler.
yfeldblu_ has joined #ruby
<eladmeidar> toretore: 4 years ago you would have guessed it.
<toretore> guessed what?
St_Marx has joined #ruby
<eladmeidar> crocket: that he is working on nodejs
<toretore> oh
<toretore> did nodejs exist 4 years ago?
bradhe has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
<eladmeidar> you would have known it anyway, you and your laser eyes
<toretore> Initial releaseMay 27, 2009
<toretore> damnit
<crocket> I'm writing ui tests in nodejs.
<crocket> I need to keep ui test configuration somewhere.
ddv has joined #ruby
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
icarus_ has quit [Ping timeout: 256 seconds]
xargoon has quit [Ping timeout: 240 seconds]
<eladmeidar> HA
dorei has quit []
djbkd has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
yano has joined #ruby
djbkd has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omosoj has quit [Ping timeout: 264 seconds]
<Eiam> hmm.. inline rescue of Errno::ENOENT
starkhalo has quit [Ping timeout: 240 seconds]
<Eiam> I have a library I don't own that will sometimes fail with Errno:ENOENT which is if a file doesn't exist on disk. I'd like to just swallow it and return nil instead. so I tried THING::Thingy.find_thing(blah) rescue Errno::ENOENT || nil
<Eiam> unfortunately that gets me Errno::ENOENT and not nil
starkhalo has joined #ruby
<wallerdev> well
arrubin has joined #ruby
<wallerdev> when you rescue something it returns the error message it just stops raising it
<wallerdev> so it simplifies to Errno::ENOENT || nil
<wallerdev> || nil isnt going to do anything there since Errno::ENOENT isnt falsy
<Eiam> right, which gives me the left side
nateberkopec has joined #ruby
<Eiam> right, so point me towards the bridge I can cross
<Eiam> to solve this gap =)
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<wallerdev> if result == Errno::ENOENT; return nil; end
<Eiam> I mean I guess i could just do a big begin/rescue block
<wallerdev> lol
<Eiam> hmm
<Eiam> rather conditionally create it
<Eiam> x = result if result != Errno::ENOENT
<wallerdev> if you do it often id just wrap it in a method
<Eiam> except without repeating myself twice
<Eiam> nah just this once
<Eiam> (twss)
starkhalo has quit [Ping timeout: 248 seconds]
<toretore> begin; find_thing; rescue ENOENT; nil; end
<Eiam> bah
<Eiam> wanted to avoid that
<Eiam> but a least you ended up at the same place i did
<toretore> why?
<Eiam> cause its 3 lines of code
<wallerdev> code golf of course
<wallerdev> lol
nerdy has joined #ruby
<Eiam> for something that ultimately i shouldn't have to do
<Eiam> I'm tempted to just implement Maybe or a NullObject just to solve this
<Eiam> but i don't want to drop it into the entire codebase so
nateberkopec has quit [Ping timeout: 240 seconds]
prdx_ has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
timgauthier has joined #ruby
<wallerdev> yeah unfortunately rescue is kinda limited in terms of usage like that
zorak has quit [Read error: Connection reset by peer]
OffTheRails has joined #ruby
crocket has left #ruby ["Leaving"]
edgarjs is now known as edgarjs_afk
<Eiam> hmm no inject!
<Eiam> any clean way to just assign it back into the object you were enumerating without using a temp value and re-assgning?
<Eiam> maybe it'll work with @blah = @blah.inject
<wallerdev> object.tap ?
grieg has quit [Ping timeout: 240 seconds]
closer009 has quit [Ping timeout: 252 seconds]
<Eiam> nah @blah = @blah.inject worked
<Eiam> don't get why we don't have @blah.inject! but w/e
xcv has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
<wallerdev> ! methods are dumb anyway
* Eiam shrugs
<Eiam> just tools
closer has joined #ruby
tyfighter has quit [Quit: <3]
marr has quit [Ping timeout: 260 seconds]
upsell5 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
zz_karupa is now known as karupa
enebo has joined #ruby
stytown has joined #ruby
senayar has quit [Remote host closed the connection]
CrAzOiD has quit [Quit: Leaving]
Panicky has joined #ruby
eladmeidar has quit [Quit: eladmeidar]
senayar has joined #ruby
Doppp has joined #ruby
mg^^ is now known as mg^afk
enebo has quit [Client Quit]
AlexRussia has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Panicky has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
maddtech has quit [Quit: Leaving]
CorpusCallosum has joined #ruby
<zenspider_> inject! ???
<zenspider_> that's... icky
zenspider_ is now known as zenspider
<wallerdev> lol
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> you dont want to replace your array variable with a value?
sevenseacat has joined #ruby
dapz has joined #ruby
CodeLicker has joined #ruby
dapz has quit [Client Quit]
<zenspider> wallerdev: just the concept of it is entirely borked.
nateberkopec has quit [Ping timeout: 240 seconds]
<zenspider> like... what if there is more than one reference to it? why should it know that? Why should it track that?
<wallerdev> im not really sure what hes using inject for in the first place lol
<zenspider> I guess at that point, we might as well have smalltalk's #become:
<zenspider> (which is awesome... but more in the dictionary sense of the word)
<wallerdev> yeah that sounds neat
Mon_Ouie has quit [Ping timeout: 260 seconds]
zorak has joined #ruby
<zenspider> until you reassign nil w/ some other object and everything goes to hell
<zenspider> but smalltalk has tools for that too
<wallerdev> lol
<wallerdev> i never got into smalltalk
oo_ has joined #ruby
Aryasam_ has quit [Ping timeout: 240 seconds]
upsell5 has quit [Quit: upsell5]
<wallerdev> looked at it a little then decided erlang would be a more practical skillset to learn
Hanmac1 has quit [Ping timeout: 264 seconds]
CodeLicker has quit [Ping timeout: 240 seconds]
j_mcnally has joined #ruby
mikeg has joined #ruby
djbkd has quit [Remote host closed the connection]
CodeLicker has joined #ruby
duncannz has quit [Quit: Leaving]
cpruitt has joined #ruby
nfk has quit [Quit: yawn]
Hanmac has joined #ruby
<eam> does ruby have an equiv to perl's =~ s///e ?
xcv has joined #ruby
hgl has joined #ruby
<eam> ignore that, gsub takes a block
kfs has joined #ruby
DivineEntity has joined #ruby
mikeg has quit [Ping timeout: 264 seconds]
pietr0 has quit [Quit: pietr0]
<ericwood> ugh, does instance_eval not continue execution after it runs?
<ericwood> I have something like: if block_given?; instance_eval(&block); puts "lol"; end
willgorman_ has joined #ruby
<ericwood> and the "lol" never prints :(
CorpusCallosum has quit [Ping timeout: 245 seconds]
<ericwood> oh whoops
<ericwood> that's because I didn't rebuild the gem
<ericwood> ignore me, I am stupid
aspires has quit []
cpruitt has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
Noob101 has joined #ruby
nateberkopec has joined #ruby
CodeLicker has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
wallerdev has quit [Quit: wallerdev]
hgl has quit [Remote host closed the connection]
andrewjanssen has quit [Ping timeout: 240 seconds]
hgl has joined #ruby
xargoon has joined #ruby
andrewjanssen has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
simoz1111116 has quit [Ping timeout: 264 seconds]
whyy has quit [Ping timeout: 240 seconds]
CodeLicker has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
andrewjanssen has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
CorpusCallosum has joined #ruby
bradhe has quit [Remote host closed the connection]
wallerdev has joined #ruby
idiocrash has joined #ruby
nateberkopec has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
<zenspider> so stupid. :P
bricker`work has quit [Ping timeout: 264 seconds]
<zenspider> ericwood: stop rebuilding the gem and set up your load path correctly for development?
<ericwood> in other news my Roomba DSL is working with a real live roomba now
<ericwood> zenspider: please teach me your ways
<ericwood> PLEASE
<zenspider> ROOMBA DSL!?!?!
<ericwood> yes
<zenspider> how are you running / testing / whatevering?
mgberlin has joined #ruby
nerdy has joined #ruby
<ericwood> I've actually made a few changes since I pushed that branch last
<ericwood> zenspider: I plan on putting together a comprehensive guide to ruby roomba hacking soon
<ericwood> but, basically it's a serial cable and some ruby and BAM
<zenspider> sounds cool
<ericwood> DSL example (which works): https://gist.github.com/eric-wood/2904a5d6c866e49a80b2
<zenspider> basically: ruby -I ~/path/to/gem/lib test/test_whatever.rb
<ericwood> oh sweet, thanks!
<wallerdev> haha
<zenspider> or, set up your rake task to include the right pathing
<zenspider> or ... whatever.
<wallerdev> didnt realize you could control roombas
CodeLicker has quit [Read error: Connection reset by peer]
<zenspider> holy crap
<zenspider> I really want this
<zenspider> we've got some kids we're trying to teach
Hanmac1 has joined #ruby
<zenspider> and having REAL LIFE LOGO would be amazing
<wallerdev> teach them to clean
<zenspider> fuck that.... I'm putting a turtle head and feet on the thing
<ericwood> zenspider: yeah I want to use this to teach kids
<ericwood> going to test it out on my coworker's children
<ericwood> it'll be boring until I figure out how to do the sensors in the DSL
<ericwood> zenspider: you have a roomba?
<zenspider> ericwood: this is jane. She's 7. She's brilliant: https://t.co/FOp0a5nub8.
<zenspider> I do. but I'd buy a new/clean one for this
<ericwood> I can use you as part of my experimental roomba test group
<zenspider> done. consider me signed up
<ericwood> zenspider: iRobot Creat, it's designed solely for this kind of thing
<ericwood> $120 new
<ericwood> chasis has a bunch of extension stuff, I'm going to power an rPi off of mine
<zenspider> that's the hacker version?
<ericwood> yeah
<zenspider> yeah. I'll buy one for that
<ericwood> it's meant for education, I used them for projects in college
<ericwood> zenspider: I'll be in touch with you as this progresses :)
Hanmac has quit [Ping timeout: 240 seconds]
<zenspider> thank you
<zenspider> so... $220 w/ battery & charger? haha
<ericwood> sweet, maybe I can get some pull requests out of this :D
CodeLicker has joined #ruby
<ericwood> zenspider: oh shit, forgot about the battery
<ericwood> if you have another roomba you can use its battery
robustus has quit [Ping timeout: 252 seconds]
<ericwood> that is what I did
<ericwood> roomba batteries are bestly and expensive
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> how do you pen up / pen down on the thing? :D
<zenspider> there are 3rd party batteries that are pretty cheap... dunno about the charger tho
<ericwood> charger is just a 24V AC
<ericwood> zenspider: GPIO on the rPi to mess with a servo
<ericwood> for the pen up and down :)
ramfjord has quit [Ping timeout: 248 seconds]
<zenspider> that'll have to be v2
<ericwood> yes of course
Stuttergart has joined #ruby
<ericwood> it'll basically be logo :P
<Stuttergart> Is there a library in core or stdlib for querying list of system users?
robustus has joined #ruby
<zenspider> hrm... is it possible to do wireless connections?
<Stuttergart> sorry, s/library/function/g
<ericwood> zenspider: yes, I have a bluetooth serial (yes, that's a thing) adapter that rocks
<ericwood> zenspider: otherwise you risk your computer getting dragged
<zenspider> Stuttergart: you mean logged in? otherwise look at Etc
<ericwood> yes, I have done that
<Stuttergart> @zenspider: not logged in. Just present.
<Stuttergart> thx!
<zenspider> ericwood: I'm not that interested in waiting. can you drop me an email w/ details of your setup and I'll catch up?
saarinen has quit [Quit: saarinen]
* zenspider is NOT patient
<ericwood> zenspider: sure, I'll write that up later tonight!
oo_ has quit [Remote host closed the connection]
<ericwood> zenspider: you'll have to put together your own roomba serial cable but go ahead and google that
oo_ has joined #ruby
<ericwood> there's DIY ones
<ericwood> mine is the one that comes with the Create
<ericwood> zenspider: something something https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=diy%20roomba%20serial%20cable&safe=off
<zenspider> kk. thanks. I'd like to get this set up and running by the end of the month so I can show it at the next monthly meeting w/ Jane
<ericwood> that's totally feasible
<ericwood> we can make that happen
<ericwood> there's also Artoo, but it's overkill imho
lw has joined #ruby
<ericwood> this is just pure ruby and easy to hack
<ericwood> artoo uses the player framework
<zenspider> *nod*
<zenspider> they're not up to ruby programming (can barely type), but this will be a much more tangible reason to get into this stuff
<ericwood> one of the demos I got out of that random pull request was a key-driven remote
<ericwood> so you can control it via the arrow keys (just tested it, it works!)
b1nd_ is now known as b1nd
<ericwood> that should blow some minds
<zenspider> nice
<zenspider> ok... I need to not distract myself... more slides
<ericwood> get back to it man!
vt102 has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
zorak has quit [Read error: Connection reset by peer]
SilkFox has quit [Ping timeout: 240 seconds]
tokik has joined #ruby
ARCADIVS has joined #ruby
Channel6 has joined #ruby
lw has quit [Remote host closed the connection]
mrmargolis has joined #ruby
frankjpinto has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
britneywright has joined #ruby
edgarjs_afk is now known as edgarjs
jack_rabbit has joined #ruby
T_Hunt has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
toretore has quit [Quit: This computer has gone to sleep]
benlieb has joined #ruby
hamakn has quit [Remote host closed the connection]
tus has quit []
ekinmur has quit []
Stuttergart has quit [Quit: Leaving]
zorak has joined #ruby
zorak_ has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
yetanotherdave has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
starkhalo has joined #ruby
stytown has quit [Quit: stytown]
wallerdev has quit [Quit: wallerdev]
andrewhl has quit [Quit: andrewhl]
Cache_Money has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
mattknox has joined #ruby
s34n has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
thoolihan has quit [Ping timeout: 240 seconds]
zorak has quit [Quit: Saliendo]
phoo1234567 has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
hamakn has joined #ruby
edgarjs is now known as edgarjs_afk
thoolihan has joined #ruby
nateberkopec has quit [Quit: Leaving...]
havenwood has joined #ruby
duncannz has joined #ruby
cpruitt has joined #ruby
snath has joined #ruby
alexju has joined #ruby
ghr has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cpruitt has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
nateberkopec has joined #ruby
eka has joined #ruby
mattknox has quit [Quit: Page closed]
alexju has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 256 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
banjara has quit [Quit: Leaving.]
ValicekB has quit [Ping timeout: 264 seconds]
darkxploit has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Remote host closed the connection]
<ramblinpeck> Is there a way to increment a range eg: (1..5) -> (2..6) without converting at an array, mapping +, and creating a new ones from the minmax?
<theharshest> What is the difference between "spec.add_development_dependency" in gemspec and "require" in Gemfile (of the gem)?
Hobogrammer has quit [Read error: Connection reset by peer]
CorpusCallosum has quit [Ping timeout: 255 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Photism has quit [Quit: Leaving]
neiled has joined #ruby
<OffTheRails> ramblinpeck, not that I can think of
<OffTheRails> you could create a new range with first/last of existing range
<OffTheRails> r = (1..3)
<OffTheRails> (r.first+1..r.last+1)
ValicekB has joined #ruby
<ramblinpeck> OffTheRails: that is a little cleaner, thanks. need a sliding window kind of behavior and nothing I can find says specifically that ranges are immutable it seems like they pretty much are
<OffTheRails> I'm looking at the api and I don't think it offers what you're looking for
bmurt has joined #ruby
saarinen has joined #ruby
StephenA1 has joined #ruby
xcv has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
freerobby has joined #ruby
Hobogrammer has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
troyready has quit [Ping timeout: 255 seconds]
heftig has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
saarinen has joined #ruby
gregf has quit [Client Quit]
gregf has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
freerobby has quit [Quit: Leaving.]
ekinmur has quit []
saarinen has quit [Quit: saarinen]
cpruitt has quit [Quit: cpruitt]
cpruitt has joined #ruby
radic has quit [Ping timeout: 248 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
jack_rabbit has quit [Ping timeout: 240 seconds]
dik_dak has quit [Quit: Leaving]
yetanotherdave has joined #ruby
alexju has joined #ruby
heftig has quit [Ping timeout: 252 seconds]
Doppp has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
radic has joined #ruby
StephenA1 has quit [Quit: StephenA1]
Hanmac has joined #ruby
andrewhl has joined #ruby
timgauthier has joined #ruby
heftig has joined #ruby
dc_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whyy has joined #ruby
keepguessing has joined #ruby
andrewhl has quit [Quit: andrewhl]
whyy has quit [Ping timeout: 255 seconds]
andrewjanssen has joined #ruby
Soda has quit [Remote host closed the connection]
absolutezeroff has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
dc_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
eka has joined #ruby
eka has quit [Client Quit]
wallerdev has joined #ruby
oo_ has joined #ruby
agent_white has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
brunops has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<agent_white> Herro
mgberlin has quit [Remote host closed the connection]
diegoviola has joined #ruby
brunops has joined #ruby
dc_ has joined #ruby
braincrash has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
oo_ has joined #ruby
whomp has joined #ruby
<whomp> how do i do a join on 2 2-d arrays?
joonty has quit [Ping timeout: 252 seconds]
<whomp> HOW DO I DO A JOIN ON 2 2-D ARRAYS?
arya_ has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
kireevco has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
absolutezeroff has joined #ruby
Xiti has quit [Quit: Leaving]
<benzrf> whomp: huh?
<benzrf> >> [[1, 2, 3], [4, 5, 6]].join
<eval-in_> benzrf => "123456" (https://eval.in/170297)
<benzrf> oh
<agent_white> join traverses any dimension of array
<agent_white> Kewl beans.
<agent_white> >> [ [[[[[5]]]]], [[1]] ].join
<eval-in_> agent_white => "51" (https://eval.in/170298)
<whomp> join like a sql join
<havenwood> >> [[1, 2, 3], [3, 4, 5]].inject(:|)
<eval-in_> havenwood => [1, 2, 3, 4, 5] (https://eval.in/170299)
<havenwood> a monkey face
arya_ has joined #ruby
<whomp> still not grokking
<havenwood> (:|)
<whomp> :P
Xiti has joined #ruby
<agent_white> >> [1,2,3] | [3,4,5]
<eval-in_> agent_white => [1, 2, 3, 4, 5] (https://eval.in/170300)
<agent_white> I think I may understand inject now, havenwood. :)
<whomp> not a concatenation
<OffTheRails> what is your desired output whomp?
<OffTheRails> and example input...
<goshdarnyou> ok this might be a silly question but is there a guide/walkthrough somewhere for test first ruby? it's cool and all but figuring out what to do with zero explanation besides the rspec test is getting difficult as i reach the later exercises...
<havenwood> >> [[1, 2, 3], [3, 4, 5]].inject(:&)
<eval-in_> havenwood => [3] (https://eval.in/170301)
<havenwood> but that isn't a neat monkey face
<whomp> OffTheRails, check that link
<OffTheRails> goshdarnyou, everydayrails is good
<OffTheRails> no, whomp, what is an example input/output in ruby, not sql
PanPan has joined #ruby
<OffTheRails> show us a 2-d array, and how you'd like it to look
<whomp> [["user1", 20], ["user1", 30]], ["user1", 20, 30]
<whomp> where "user1" is what *joins* the two arrays
arya_ has quit [Ping timeout: 240 seconds]
<havenwood> >> [["user1", 20], ["user1", 30], ["user2", 10]].chunk { |k, v| k }.map { |k, v| [k, v.map(&:last)] }
<eval-in_> havenwood => [["user1", [20, 30]], ["user2", [10]]] (https://eval.in/170302)
cpruitt has joined #ruby
<gr33n7007h> >> [["user1", 20], ["user1", 30]].flatten.uniq
<eval-in_> gr33n7007h => ["user1", 20, 30] (https://eval.in/170303)
joonty has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
cpruitt has quit [Read error: Connection reset by peer]
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
mgberlin has joined #ruby
<havenwood> or if you really want it flat
<havenwood> >> [["user1", 20], ["user1", 30], ["user2", 10]].chunk { |k, v| k }.map { |k, v| [k, *v.map(&:last)] }
<eval-in_> havenwood => [["user1", 20, 30], ["user2", 10]] (https://eval.in/170304)
<OffTheRails> >> [["user1", 20], ["user1", 30], ["user2", 4]].flatten.uniq
<eval-in_> OffTheRails => ["user1", 20, 30, "user2", 4] (https://eval.in/170305)
moritzs has joined #ruby
cpruitt has joined #ruby
agent_white has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
<whomp> OffTheRails, not quite there... it would really help to understand sql joins
<havenwood> whomp: if `["user1", 20], ["user1", 30], ["user2", 10]]` is the input the desired output is...?
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<whomp> i don't think anyone here knows what a sql join is
<havenwood> whomp: i refuse to talk in sql
<sevenseacat> lol
<havenwood> whomp: output!
jack_rabbit has joined #ruby
<sevenseacat> saying 'an sql join' makes zero sense when youre talking about ruby arrays
overmacht has joined #ruby
foo-bar- has joined #ruby
neiled has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<OffTheRails> whomp, I was just showing that gr33n7007h solution didn't work, sadly
chipotle has quit [Quit: cya]
agent_white has joined #ruby
<whomp> i give up, but thank you guys for trying
<havenwood> whomp: given the input above is there a particular output you'd like? or is that input not appropriate to your question?
<whomp> it's alright, it wasn't crucial to do this
<OffTheRails> havenwood, works right whomp ?
<havenwood> whomp: okay. next time try giving an expected input and desired output. will really make it easier to help you.
<OffTheRails> yes but it's a problem, and we MUST solve it!
<gr33n7007h> I thought he meant orginal => `[["user1", 20], ["user1", 30]]` and output => `["user1", 10, 20]`
<havenwood> gr33n7007h: the expected output is sekret, shhhh
<gr33n7007h> havenwood, :P
cpruitt has quit [Quit: cpruitt]
<OffTheRails> gr33n7007h, no, he meant join by the first elements
<gr33n7007h> I see now
troyready has joined #ruby
ARCADIVS has quit [Ping timeout: 240 seconds]
Rahul_Roy has joined #ruby
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
whomp has quit [Quit: leaving]
freerobby has joined #ruby
cpruitt has joined #ruby
shtirlic_ has quit [Ping timeout: 248 seconds]
agent_white has quit [Quit: brb]
charlied3 has joined #ruby
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
_maes_ has joined #ruby
pencilcheck has joined #ruby
dc_ has quit [Remote host closed the connection]
shtirlic has joined #ruby
kireevco has joined #ruby
bmurt has quit []
OffTheRails has quit [Quit: Leaving]
reset has quit [Quit: Leaving...]
reset has joined #ruby
akosednar has quit [Ping timeout: 255 seconds]
erichmenge has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
ra4king has quit [Remote host closed the connection]
erichmenge has joined #ruby
ra4king has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
<bricker`LA> Does anybody happen to know if there are any rundeck config files which require a rundeckd restart?
kireevco has quit [Ping timeout: 248 seconds]
akosednar has joined #ruby
mrmargolis has quit [Remote host closed the connection]
arya_ has joined #ruby
reset has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc_ has joined #ruby
<timgauthier> uhhh shevy, or someone haml knowledgable
<timgauthier> trying to edit my haml layout file to include a title for the page based on a variable, i don't know the haml syntax
benzrf is now known as benzrf|offline
<sevenseacat> for?
<timgauthier> well i'm in middlemanapp
ascarter has joined #ruby
Arkaniad|Laptop has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
benzrf|offline is now known as benzrf
yacks has quit [Ping timeout: 272 seconds]
yacks has joined #ruby
johnrover has joined #ruby
<timgauthier> i converted it, nm, thanks
<sevenseacat> winner.
ramfjord has joined #ruby
yfeldblu_ has joined #ruby
<timgauthier> indeed, i was just lazy asking because of my dogbrain
dik_dak has joined #ruby
Wolland has quit [Remote host closed the connection]
<agent_white> dogbrains is much better than zombie brains!
theharshest has joined #ruby
Wolland has joined #ruby
<timgauthier> mmmm, brains
yfeldblum has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
jaimef has quit [Excess Flood]
yfeldblu_ has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
havenwood has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
phoo1234567 has quit [Quit: Leaving]
Deele has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noober3 has joined #ruby
<noober3> can someone recommend a good source to learn rspec? i was going to buy the official book but it seems outdated.
Takle has joined #ruby
jaimef has joined #ruby
ghr has joined #ruby
<keepguessing> noober3: have you tried this? https://relishapp.com/rspec
<keepguessing> noober3: or this one? https://www.relishapp.com/rspec/rspec-rails/docs
Takle has quit [Ping timeout: 240 seconds]
<noober3> second link looks good thanks
arya_ has quit [Ping timeout: 245 seconds]
johnrover has left #ruby [#ruby]
thomasxie has quit [Quit: Leaving.]
johnrover has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
acconrad has quit [Quit: acconrad]
kireevco has joined #ruby
pencilcheck has quit [Remote host closed the connection]
pen has joined #ruby
oo_ has joined #ruby
whyy has joined #ruby
anaeem1_ has joined #ruby
arya_ has joined #ruby
overmacht has quit [Quit: overmacht]
dc_ has quit [Remote host closed the connection]
noober3 has quit [Quit: Oh, so they have Internet on computers now!]
zkay11 has left #ruby [#ruby]
wildroman2 has joined #ruby
hgl_ has joined #ruby
shevy has quit [Ping timeout: 256 seconds]
agent_white has quit [Read error: Connection reset by peer]
thrownaway has quit []
danielpclark has quit [Remote host closed the connection]
Doppp has joined #ruby
hgl has quit [Ping timeout: 240 seconds]
charlied3 has quit [Ping timeout: 240 seconds]
Jeticus has quit []
<bricker`LA> What's the difference between each_with_object and reduce, except that the arguments are reversed?
<bricker`LA> Here are two examples:
<bricker`LA> >> (1..10).each_with_object([]) { |i, a| a << i*2 }
<eval-in_> bricker`LA => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/170308)
<bricker`LA> >> (1..10).reduce([]) { |a, i| a << i*2 }
<eval-in_> bricker`LA => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/170309)
heftig has quit [Ping timeout: 252 seconds]
<bricker`LA> hm, it's subtle but I think I get it
<bricker`LA> or do I? That's for you to decide.
charlied3 has joined #ruby
srnty has joined #ruby
sigurding has joined #ruby
<havenwood> >> 99.downto(96).with_object(:bottles_of_beer).to_a
<eval-in_> havenwood => [[99, :bottles_of_beer], [98, :bottles_of_beer], [97, :bottles_of_beer], [96, :bottles_of_beer]] (https://eval.in/170310)
CorpusCallosum has joined #ruby
hgl_ has quit [Remote host closed the connection]
hgl_ has joined #ruby
<havenwood> 4 beers is plenty. drinking the other 95 would be insane.
<sevenseacat> hah
heftig has joined #ruby
shevy has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3]
wildroman2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
wildroman2 has joined #ruby
pencilcheck has joined #ruby
dik_dak has quit [Quit: Leaving]
LexicalScope has joined #ruby
LexicalScope` has joined #ruby
kfs has quit [Quit: Connection closed for inactivity]
wildroman2 has quit [Ping timeout: 240 seconds]
pen has quit [Ping timeout: 240 seconds]
<shevy> I am trying to install
<shevy> rcairo
<shevy> but it attempts to use an old path that no longer exists:
<shevy> /usr/bin/ginstall: cannot create regular file '/usr/lib64/ruby/site_ruby/1.9.1/cairo': No such file or directory
<shevy> my ruby version is: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
<shevy> how comes that rcairo attempts to pick up an old ruby? as far as I am aware, I eliminated all of that old ruby
hgl_ has quit [Remote host closed the connection]
agent_white has joined #ruby
<shevy> oops
hgl_ has joined #ruby
<shevy> there was a /usr/include/ruby-1.9.1/ still left
<shevy> it works fine now
pencilcheck has quit [Remote host closed the connection]
pencilcheck has joined #ruby
yfeldblum has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jimbow has joined #ruby
ecksit has joined #ruby
<jimbow> what is the best intro to computer programming book?
<jimbow> is is any good?
wildroman2 has joined #ruby
<ecksit> hey, i have installed https://rubygems.org/gems/acquia_toolbelt on MRI 1.9.3 and it creates the executable however when trying to install on 2.1.2 it doesn't create the executable. any ideas?
mgberlin_ has joined #ruby
agent_white has joined #ruby
mbuf has joined #ruby
<grug> jimbow: don't get caught up in what is "the best" or you'll never get started :P
<mbuf> when using 'gem install activerecord-import-0.5.0.gem' on Ubuntu 12.04, I get ERROR: Loading command: install (LoadError) cannot load such file -- zlib
<mbuf> trying to use rbenv and have zlib1g, zlib1g-dev and zlibc already installed
mgberlin has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
<mbuf> what could be the problem?
<jimbow> well, what's the most popular book that is easy to understand
CorpusCallosum has quit [Ping timeout: 240 seconds]
charlied3 has quit [Ping timeout: 245 seconds]
charlied3 has joined #ruby
<gzl> jimbow: I think "how to think like a computer scientist" (which is based in python, I think) is pretty decent.
<jimbow> is there one for ruby?
<gzl> I don't know.
<gzl> but python and ruby are similar enough at that level that it wouldn't be a big deal to read one that happens to use python and then learn ruby separately after.
hgl_ has quit [Remote host closed the connection]
ekinmur has quit []
StephenA1 has joined #ruby
hgl_ has joined #ruby
<ecksit> mbuf, have you installed zlib-devel ?
Akuma has joined #ruby
Channel6 has quit [Quit: Leaving]
<mbuf> ecksit, no zlib-devel on Ubuntu
brunops has quit [Ping timeout: 240 seconds]
<mbuf> ecksit, I am hitting the 'missing zlib' error mentioned at https://github.com/sstephenson/ruby-build/wiki, but, not sure what is meant by 'rebuild Ruby'
wildroman2 has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 240 seconds]
<ecksit> uninstall the version and then reinstall it
johnrover has quit [Ping timeout: 240 seconds]
IceDragon has quit [Quit: Space~~~]
pencilcheck has quit [Read error: Connection reset by peer]
pencilcheck has joined #ruby
<ecksit> i.e. rbenv uninstall <verison> && rbenv install <version> is probably the quickest way
cpruitt has quit [Quit: cpruitt]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stytown has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
uffs has joined #ruby
bradleyprice has joined #ruby
starkhalo has quit [Ping timeout: 245 seconds]
CorpusCallosum has joined #ruby
nerdy has joined #ruby
hgl_ has quit [Remote host closed the connection]
larsam has quit [Read error: Connection reset by peer]
hgl_ has joined #ruby
srnty has quit [Quit: srnty]
aganov has joined #ruby
foo-bar- has quit [Remote host closed the connection]
existensil has joined #ruby
jaimef has quit [Excess Flood]
foo-bar- has joined #ruby
klue has joined #ruby
pencilcheck has quit []
diegoviola has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
kali___ has joined #ruby
mijicd has joined #ruby
<kali___> ..
yfeldblum has quit [Remote host closed the connection]
hgl_ has quit [Remote host closed the connection]
diegoviola has joined #ruby
hgl_ has joined #ruby
foo-bar- has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
Arkaniad has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Soliah has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
moritzs has quit [Ping timeout: 264 seconds]
WillAmes has quit [Ping timeout: 264 seconds]
jaimef has joined #ruby
mengu has joined #ruby
mijicd has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
banjara has joined #ruby
ponga has joined #ruby
troyready has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
shredding has joined #ruby
treehug88 has joined #ruby
klue has quit [Quit: leaving]
hgl__ has joined #ruby
kali___ has left #ruby [#ruby]
ponga has quit [Client Quit]
mijicd has joined #ruby
StephenA1 has quit [Remote host closed the connection]
StephenA1 has joined #ruby
heftig has quit [Quit: Quitting]
hgl_ has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
rkazak has joined #ruby
ta has quit [Remote host closed the connection]
Guest30871 has joined #ruby
User458764 has joined #ruby
Georg3 has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
Guest30871 has quit [Client Quit]
bluOxigen has joined #ruby
hgl__ has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
shredding has joined #ruby
hgl__ has joined #ruby
uffs has quit [Ping timeout: 240 seconds]
LexicalScope has quit [Quit: Leaving]
bousquet has joined #ruby
kyb3r_ has joined #ruby
relix has joined #ruby
tobago has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
treehug88 has quit []
jimbow has quit [Ping timeout: 240 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
LexicalScope` has quit [Quit: Leaving]
tagrudev has joined #ruby
Kricir has joined #ruby
dontwork has joined #ruby
foo-bar- has joined #ruby
kireevco has quit [Quit: Leaving.]
hgl__ has quit [Quit: Computer has gone to sleep.]
User458764 is now known as User458764_NotHe
robbyoconnor has quit [Max SendQ exceeded]
Kricir has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
wildroman2 has joined #ruby
foo-bar- has quit [Ping timeout: 264 seconds]
hgl__ has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
SilverKey has quit [Quit: Halted.]
kireevco has joined #ruby
sigurding has joined #ruby
Kricir has joined #ruby
wildroman2 has quit [Read error: No route to host]
chrishough has quit [Quit: chrishough]
stytown has quit [Quit: stytown]
User458764_NotHe has quit [Ping timeout: 255 seconds]
FLeiXiuS`` has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
ItSANgo_ has quit [Quit: Leaving...]
<FLeiXiuS``> Whats the best way to convert a hex string to raw hex? Given a dynamic hex string
<agent_white> You mean a string to hex?
Kricir has joined #ruby
<FLeiXiuS``> agent_white, I have a string of hex values, 'FF00FF' as an example. I want to convert that to \xFF\x00\xFF
<FLeiXiuS``> The raw hex equivalent
bousquet has quit []
shredding has quit [Quit: shredding]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
qwyeth has quit [Ping timeout: 260 seconds]
<agent_white> FLeiXiuS``: >> "FF00FF".scan(/../).map(&:hex).map(&:chr).join
<agent_white> >> "FF00FF".scan(/../).map(&:hex).map(&:chr).join
<eval-in_> agent_white => "\xFF\x00\xFF" (https://eval.in/170317)
<shevy> agent white is a very clever agent
hgl__ has quit [Remote host closed the connection]
sigurding has quit [Ping timeout: 248 seconds]
<agent_white> shevy: Meh, second result I got on google.
<agent_white> ;)
hgl__ has joined #ruby
<pontiki> a very clever agent indeed
<FLeiXiuS``> agent_white, What did you search for?
<eam> >> ["FF00FF"].pack('H*')
<eval-in_> eam => "\xFF\x00\xFF" (https://eval.in/170318)
<agent_white> eam: That'
<agent_white> That's what I was looking for! I was tryin ["FF", "00", "FF"].pack ... instead.
<agent_white> FLeiXiuS``: "hex string to hex ruby"
<eam> speaking of, why is pack a method on Array instead of on String?
<agent_white> eam: Iono, string has unpack?
<FLeiXiuS``> ruby hex string to raw hex was apparently way off
<eam> agent_white: String should have both afaict
<agent_white> Hahah. Simplify it a bit more.
<agent_white> eam: Well I guess... an array is multiple elements, so packing them into one makes sense. While a string is one big lump, to be unpacked?
<eam> I think these two functions didn't translate well from perl
<pontiki> you pack an array, and unpack a string
<eam> you pack and unpack strings, which are arrays of bytes :)
<pontiki> sortamaybe
<eam> hey now I have a ruby question: I want to learn about ruby bindings tonight
<eam> >> eval "x = 1", binding; eval "puts x", binding
<eval-in_> eam => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/170319)
stytown has joined #ruby
<eam> >> b = binding; eval "x = 1", b; eval "puts x", b
<eval-in_> eam => 1 ... (https://eval.in/170320)
<eam> what's the difference?
Noob101 has quit [Ping timeout: 246 seconds]
<existensil> >> [binding.object_id, binding.object_id]
<eval-in_> existensil => [555569810, 555569800] (https://eval.in/170321)
<existensil> each call to binding produces distinct Binding objects
<existensil> so...
<existensil> >> binding != binding
<eval-in_> existensil => true (https://eval.in/170322)
<eam> I get that they're different, and representing a point in time
<eam> so I'd expect each call to provide a distinct binding object
Georg3 has quit [Quit: Lingo - http://www.lingoirc.com]
hgl__ has quit [Quit: Lingo - http://www.lingoirc.com]
hgl has joined #ruby
Kricir has quit [Remote host closed the connection]
<eam> but what I don't get is why eval "x = 1", binding; doesn't create "x" in my current context
dapz has joined #ruby
<Mon_Ouie> Because eval creates its own sub-binding
<existensil> yeah, i'm not sure why two binding objects from the same instance scope appear to have distinct scopes themselves
aspires has joined #ruby
<eam> Mon_Ouie: right, but I supplied a binding from my current binding
<existensil> nvm. Mon_Ouie to the rescue
<eam> if I said eval "x = 1"; I'd understand
<eam> but shouldn't eval "x = 1", binding; cause it to share my outer binding?
ItSANgo has joined #ruby
chrishough has joined #ruby
<eam> I suppose binding provides a copy, not a reference, in other words?
<FLeiXiuS``> agent_white, I forgot to say thanks! Thank you very much...
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<Mon_Ouie> I believe so, yes
<existensil> or its own sub-binding?
<eam> that would make sense
<Mon_Ouie> Well, not really though
<agent_white> FLeiXiuS``: Yup yup! Though look at eam's way of doing it. He made it a bit more tidy...
<Mon_Ouie> If you change a variable that's actually part of the binding later, b.eval "y" will still give you the right value
quazimodo has joined #ruby
<agent_white> [hexstring].unpack("H*")
arup_r has joined #ruby
<eam> Mon_Ouie: which means it must copy the entire current scope?
sigurding has joined #ruby
Macaveli has joined #ruby
hgl_ has joined #ruby
Spami has joined #ruby
<arup_r> What is find-minimum mode and find-any mode in Range#bsearch http://www.ruby-doc.org/core-2.1.1/Range.html#method-i-bsearch
mike24 has joined #ruby
rkazak has quit [Quit: rkazak]
<existensil> "copying" sounds expensive and not all objects are going to be clone-able, so guessing its not actually copying
<Mon_Ouie> Actually I think it returns a child binding of the current one
<eam> copying the bound VALUE, I mean, not a deep copy
kireevco has quit [Ping timeout: 240 seconds]
hgl__ has joined #ruby
<Mon_Ouie> That wouldn't work
<Mon_Ouie> >> y = 1; b = binding; y = 2; b.eval("y")
<eval-in_> Mon_Ouie => 2 (https://eval.in/170323)
kireevco has joined #ruby
<eam> oh that's interesting
hgl has quit [Ping timeout: 240 seconds]
RoryHughes has quit [Ping timeout: 272 seconds]
<eam> ah I see, the docs I'm looking at are wraping binding() in a method call and capturing that binding
<eam> of the method
hgl_ has quit [Ping timeout: 240 seconds]
<eam> that's the "copy" aka the separate binding of the method context
<eam> IOW my mistake :)
kiri has joined #ruby
<eam> so then, in that case, why doesn't this work if the two bindings are equivilent?
hgl__ has quit [Ping timeout: 264 seconds]
<eam> >> eval "x = 1", binding; eval "puts x", binding
<eval-in_> eam => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/170324)
<Mon_Ouie> Because binding returns a *new* binding
<Mon_Ouie> Which is a sub-binding of the current one
<eam> is there a definition of sub-binding?
<Mon_Ouie> Each binding has a reference to a parent binding. Variable look up basically works like this: def lookup(var); table.has_key?(var) if table.has_key? var then table[var] elseif parent then parent.lookup(var) else raise NameError end; end
ta has joined #ruby
<existensil> the bindings seem to behave like they are a nested scope, so if the variable exists in the outer scope (where binding is called) it works, but if defined in one nested scope the other nested scope won't see it
<existensil> >> x = 0; eval "x = 1", binding; eval "puts x", binding
<eval-in_> existensil => 1 ... (https://eval.in/170329)
<eam> Mon_Ouie: is there a way to get a handle on the current binding? What if I want to, for example, call #local_variable_set on the current binding context (not in a stringy eval?)
moritzs has joined #ruby
bal has joined #ruby
scotty2 has joined #ruby
<eam> existensil: that is super helpful thanks (and thanks Mon_Ouie)
<Mon_Ouie> local_variable_set will work if the existing variable is there
<eam> but if it isn't? I should add, I'm trying to understand ruby's scoping boundaries
<existensil> I've haven't played with binding much. This is fascinating.
<existensil> and confusing
<eam> and why, for example, an if / else / end stanza seems to not create a separate binding at all
<scotty2> can you help me http://goo.gl/bxEQJ1
<existensil> dick
sputnik13 has joined #ruby
<existensil> ^ scotty2
sigurding has quit [Quit: sigurding]
<eam> ruby's scoping behavior is very unlike the c/perl I'm accustomed to where a scope is bound by a block
<existensil> that appears to be some kind of flood thing
<existensil> are you trying to get us to help you DDOS?
<scotty2> im just testing somthing
<scotty2> no
<Mon_Ouie> I don't know that there's any way to add new variables to those bindings. Probably because variables are resolved lexically
<Mon_Ouie> i.e. it would make it weird(er) what is a variable reference vs. what is a method lookup
<scotty2> i want to see how fast google analytics updates
<Mon_Ouie> method call*
<eam> >> if true; else; x = 5; end; x
<eval-in_> eam => nil (https://eval.in/170333)
<Mon_Ouie> Yes, conditions and loops don't create their own scopes
<Mon_Ouie> class, module, def, and blocks do
<eam> what I'm sort of playing with is whether it would be possible to dynamically modify the instantiation of the local variable
<eam> it looks like it may not be
<existensil> its ruby. there is pretty much always a way
<existensil> :-P
<Mon_Ouie> This also creates funny differences between for-loops vs #each :)
toretore has joined #ruby
<eam> this is super helpful
<Mon_Ouie> What do you mean exactly by "instanciation of local variables"?
dangerousdave has joined #ruby
scotty2 has left #ruby [#ruby]
aspires has quit []
quazimodo has quit [Ping timeout: 240 seconds]
<eam> to perform whatever mechanations are necessary such that the code: eval "x" returns the value of x (where x = ... appears nowhere in the code)
<eam> for example: eval gets; eval gets
<eam> and pass a local variable betweeen
Morkel has joined #ruby
<eam> what I'm hearing is that it can only be done by creating a sub-binding and running the eval in that
<shevy> ewwww
<shevy> eval
<existensil> yay, eval!
overmacht has joined #ruby
arya_ has joined #ruby
<Mon_Ouie> Yes, that's how REPLs like Pry and IRB do it
<shevy> I always need to wash my body after using eval
<eam> well, eval is only necessary to stave off the compile time pass check
<shevy> let's wash eam!
<existensil> its also good at staving off bordom
<eam> I'm so covered in perl I'll never be clean
<existensil> *boredom
<existensil> and sanity
<shevy> I know what sanity was
<shevy> a long time ago
overmacht has quit [Max SendQ exceeded]
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
overmacht has joined #ruby
alem0lars has joined #ruby
overmacht has quit [Max SendQ exceeded]
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
alem0lars has quit [Client Quit]
mehlah has joined #ruby
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
arya_ has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
agent_white has quit [Ping timeout: 248 seconds]
overmacht has joined #ruby
tectonic has joined #ruby
techsethi has joined #ruby
agent_white has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
overmacht has quit [Client Quit]
jack_rabbit has quit [Ping timeout: 245 seconds]
overmacht has joined #ruby
dc_ has joined #ruby
mehlah has quit [Ping timeout: 240 seconds]
overmacht has quit [Client Quit]
schaerli has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
<Mattias> How would one install a self-signed certificate on another machine? Is it different depending on which application will use it? Like one way for php and another for ruby?
jack_rabbit has joined #ruby
peret has quit [Remote host closed the connection]
charlied3 has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
kireevco has left #ruby [#ruby]
overmacht has joined #ruby
zegerjan has joined #ruby
jhass|off is now known as jhass
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
shevy has quit [Ping timeout: 240 seconds]
Poky has joined #ruby
riotjones has joined #ruby
qwyeth has joined #ruby
dc_ has quit [Remote host closed the connection]
jprovazn has joined #ruby
benlieb has joined #ruby
ta has quit [Ping timeout: 256 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
mocchi has quit [Ping timeout: 272 seconds]
StephenA1 has quit [Quit: StephenA1]
mocchi_ has joined #ruby
senayar has joined #ruby
<arup_r> >> ary = [0, 1, 4, 4, 7, 10, 12 ] ; (0...ary.size).bsearch {|i| ary[i] >= -1 }
<eval-in_> arup_r => 0 (https://eval.in/170337)
<arup_r> Why returns 0 ?
dontwork has quit [Remote host closed the connection]
<Mon_Ouie> Because the first element greater than -1 in your array is 0
<arup_r> shouldn't be false ?
senayar has quit [Remote host closed the connection]
<Mon_Ouie> >> 0 >= -1
<eval-in_> Mon_Ouie => true (https://eval.in/170338)
claymore has joined #ruby
Xiti` has joined #ruby
shvelo has joined #ruby
stytown has quit [Quit: stytown]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
oo_ has quit [Remote host closed the connection]
<arup_r> Mon_Ouie: Can you give one example, where it returns false ?
Xiti has quit [Ping timeout: 240 seconds]
<Mon_Ouie> It never returns false (unless false is a member of your array), but it does return nil
oo_ has joined #ruby
<Mon_Ouie> >> [1, 2, 3].bsearch { |x| x >= 10 }
<eval-in_> Mon_Ouie => nil (https://eval.in/170342)
ta has joined #ruby
mehlah has joined #ruby
<Mattias> ericwood: You don't happen to know how to install a self-signed certificate (the one on my ftp server) to another machine? Does it differ depending on if I do it for ruby or for php? Or is it global for the machine? (Both servers runs ubuntu)
techsethi has quit [Quit: techsethi]
senayar has joined #ruby
ecksit has joined #ruby
<Hanmac> Mon_Ouie: i am still unsure about when using .find and when using .bsearch ... :/
ascarter has joined #ruby
doev has joined #ruby
<arup_r> Shall I need to use >= always in #bsearch ?
StephenA1 has joined #ruby
<jhass> arup_r: no, did you read the docs?
ecksit has quit [Client Quit]
<arup_r> jhass: reading and trying
<jhass> they clearly say that it has two modes
<arup_r> docs used only >=
<arup_r> okie
<arup_r> My question is wromg
<arup_r> I meant to say
<jhass> one where it should return true/false and one where it should return a number < 0, = 0, > 0
<arup_r> In find-minimum mode, should I need to use only >= ?
<jhass> the requirement of the method is that your block returns true/false, how you achieve that is on your own
<jhass> well, return true false given some circumstances, that the simple examples with >= fulfill
<jhass> but how you achieve that behavior is not dictated anywhere
<arup_r> jhass: got it
<arup_r> Now the thing is when block retunr false ?
shevy has joined #ruby
shvelo has quit [Ping timeout: 248 seconds]
<jhass> "the block returns false for any element whose index is less than i, and"
<jhass> "the block returns true for any element whose index is greater than or equal to i."
<zenspider> more of this?
<zenspider> and in two channels?
vyorkin has joined #ruby
lxsameer has joined #ruby
peret has joined #ruby
keepguessing has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
vyorkin has quit [Ping timeout: 256 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> jhass: Whatever example I try, I got nil if element not found, or the element..
<jhass> that's what the method does
ghr has quit [Ping timeout: 245 seconds]
overmacht has quit [Read error: Connection reset by peer]
<arup_r> means false return is internally . .. we can't see it :)
quazimodo has joined #ruby
<jhass> "the block returns false" means it should do that for a correct implementation
shevy has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
ndrei has joined #ruby
shevy has joined #ruby
vyorkin has joined #ruby
alex88 has joined #ruby
klaut has joined #ruby
JBreit has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
JBreit has left #ruby [#ruby]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> jhass: that's finding for me now.. how to create one example where I can see block returns false...
<arup_r> I am trying and but failing in every attempt
kalusn has joined #ruby
<jhass> >> [false].bsearch { true }
<eval-in_> jhass => false (https://eval.in/170356)
blackmesa has joined #ruby
<Mon_Ouie> The block is not bsearch, it's what *you* pass to bsearch
vyorkin has quit [Ping timeout: 240 seconds]
StephenA1 has quit [Quit: StephenA1]
klaut has quit [Ping timeout: 248 seconds]
<arup_r> jhass: OMG.. You made it. But how can I fit this line *the block returns false for any value which is less than x,* there ?
uresu has joined #ruby
<arup_r> Where is that comparison made..?
Spami has quit [Quit: This computer has gone to sleep]
dontwork has joined #ruby
ecksit has joined #ruby
Xeago has joined #ruby
klaut has joined #ruby
<ecksit> hey, i have installed https://rubygems.org/gems/acquia_toolbelt on MRI 1.9.3 and it creates the executable however when trying to install on 2.1.2 it doesn't create the executable. any ideas?
<jhass> arup_r: as Mon_Ouie said, you're confusing the block with the method
Takle has joined #ruby
<jhass> >> def foo; print "block returns: #{yield} "; :method; end; result = foo { :block }; print "method returns #{result}"
<eval-in_> jhass => block returns: block method returns methodnil (https://eval.in/170357)
<jhass> arup_r: ^
dc_ has joined #ruby
<arup_r> jhass: Let me check
Macaveli has quit [Quit: Leaving]
shevy has quit [Ping timeout: 240 seconds]
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
overmacht has joined #ruby
echevemaster has quit [Remote host closed the connection]
sputnik13 has joined #ruby
foo-bar- has joined #ruby
<arup_r> jhass: >> [1,2,3].bsearch { true }
<arup_r> It seems I got it
Takle has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
mehlah has quit [Quit: Leaving...]
alem0lars has quit [Quit: alem0lars]
<arup_r> I have to put my comparison logic inside the block.. block will perform the computation for each element until it gets a true value.. In doing so, if all iteration is done and it couldn't find any true value, it will return `nil`, or if it get `true` for any iteration, then that iteration *x* will be returned.
alem0lars has joined #ruby
<arup_r> While performing iteration, if block find any false value, it will go for next iteration. But if it get `true` value, then it will stop and return that iteration *x*
<arup_r> Am I get it correctly ?
foo-bar- has quit [Ping timeout: 264 seconds]
<arup_r> >> [false, false, 1, true].bsearch { |x| x }
<eval-in_> arup_r => true (https://eval.in/170358)
<jhass> almost, it will search for the lowest i that returns true
<arup_r> jhass: wait
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> it's a binary search, so it starts in the middle, and since your data has to be sorted it has to look at log n elements at most
sk87 has joined #ruby
<Mon_Ouie> Well things like your example won't really work well
<arup_r> Opps.. It seems it understand *true* only.. it don't know in Ruby all Ruby objects is truth except nil and false...
<Mon_Ouie> Because your block is supposed to return only false for the first part of your array and then only true
<arup_r> I expect it to rerun 1
<Mon_Ouie> Oh, nvm, that is the case in your example
<jhass> >> [false, false, 1, true].bsearch { |x| x == 1 }
<eval-in_> jhass => 1 (https://eval.in/170360)
<jhass> >> [false, 2, 3, 1, true].bsearch { |x| [1, 2, 3].include? x }
<eval-in_> jhass => 2 (https://eval.in/170361)
<Mon_Ouie> Well no, there's the other problem that "1" is an integer that would cause find-any mode to be used. As said in the docs, you cannot mix both of them.
alem0lars has quit [Client Quit]
JBreit has joined #ruby
<jhass> well, in his example it should hit the second false as first element and start find-min mode
overmacht has quit [Quit: overmacht]
alem0lars has joined #ruby
JBreit has left #ruby [#ruby]
claymore has quit [Ping timeout: 240 seconds]
* zenspider sighs
<zenspider> he infects ruby-talk, #ruby-lang, and #ruby... no escape
<DefV> ?
<sevenseacat> heh
<Mon_Ouie> "it is undefined which value is actually picked up at each iteration"
<Mon_Ouie> So I wouldn't make those types of assumptions
Joulse has joined #ruby
<arup_r> zenspider: If I don't do mistake, You are Ryan davis.. Am I right ?
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<sevenseacat> too many ryans in the ruby world
<arup_r> zenspider: What is your problem, if people want to learn through discussion..
claymore has joined #ruby
<arup_r> sevenseacat: He is https://github.com/zenspider
<sevenseacat> arup_r: i know.
<arup_r> sevenseacat: I don't he has a problem with me and my question since 1 year back
<arup_r> He always insulted me... every where he could
<arup_r> Now here he also started
fabrice31 has joined #ruby
<arup_r> He will convince people so that people can stop helping me....
dumdedum has joined #ruby
<sevenseacat> people can make up their own minds.
kaspergrubbe has joined #ruby
ta has quit [Remote host closed the connection]
<jhass> arup_r: just put him on ignore and be done with it
<arup_r> sevenseacat: He personally emailed me and told I am a leech and more and he insulted me..
<sevenseacat> good to know, but irrelevant to this channel.
<arup_r> jhass: see now he said **he infects ruby-talk, #ruby-lang, and #ruby... no escape**
<arup_r> It is insulting...
<jhass> arup_r: welcome to the internet. Learn your tools. IRC: /ignore, your MUA should have filters
eladmeidar has joined #ruby
<jhass> arup_r: and that'll be it for this discussion or I vote that you have to leave too
roolo has joined #ruby
<arup_r> I am asking questions.. which myself couldn't help me out.. I am not well like you guys.. so I am trying to learn it with you people..
<ecksit> let me just slip this in here...
<ecksit> hey, i have installed https://rubygems.org/gems/acquia_toolbelt on MRI 1.9.3 and it creates the executable however when trying to install on 2.1.2 it doesn't create the executable. any ideas?
<jhass> ecksit: did you receive any warnings upon installation?
<ecksit> nope, seems to install just fine.
elaptics`away is now known as elaptics
<arup_r> jhass: sorry, I shouldn't say.. But he made me to start.. sorry again
ghr has joined #ruby
<jhass> ecksit: gist your `gem env`
tectonic has quit []
eladmeidar has quit [Client Quit]
<Mon_Ouie> Are you sure your PATH isn't just set wrong (i.e. you don't have the PATH for Ruby 2.1.2 gem binaries in it)?
tesuji has joined #ruby
alexju has quit [Remote host closed the connection]
<ecksit> here is both (1.9.3 and 2.1.0) https://gist.github.com/jacobbednarz/7a40b4d4c990223c427a
carlo has joined #ruby
francisfish has joined #ruby
carlo is now known as Guest62341
Mattx has quit [Ping timeout: 248 seconds]
<ecksit> seems like 1.9.3 doesn't have as much in it :S
<Mon_Ouie> That's because the rubygems version is different
<ecksit> i noticed that
<arup_r> Mon_Ouie: What you meant to say by - "it is undefined which value is actually picked up at each iteration" ?
<arup_r> I was out of track for some time
<ecksit> but i don't have the knowledge to understand too much more then that
<Mon_Ouie> That's a quote from the documentation
<Mon_Ouie> It means you shouldn't rely on which exact element it's going to be passing to your block
<arup_r> ok
obs has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
CpuID has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
techsethi has joined #ruby
<ecksit> hmm, actually, Mon_Ouie what version are you running locally?
andrewlio has joined #ruby
<zenspider> arup_r: let's get something straight. You wrote ME asking ME for help AFTER your help vampirism drove me to unsubscribe from ruby-talk. I refused and gave my reasons why. If you find that insulting, tough.
pontiki has joined #ruby
<Mon_Ouie> gem -v is 2.2.2, ruby -v is 2.1.2p95
timonv has quit [Remote host closed the connection]
<ecksit> do you mind attempting to install acquia_toolbelt locally? maybe it is just my setup.
<ecksit> (i am using chruby and i may have b0rked it)
<jhass> ecksit: so, /Users/jacob/.gem/ruby/2.1.0/bin is empty?
moritzschaefer has joined #ruby
<ecksit> nope, it has other gems in it
<zenspider> ecksit: do you still have the output from your failed 2.0 install?
<ecksit> just not the one i am after
<Mon_Ouie> Meh, it seems to have many dependencies, I don't really feel like installing/uninstalling all of that
chrishough has quit [Quit: chrishough]
<zenspider> Mon_Ouie: pro tip: gem i -i xxx somegem
<zenspider> then you just rm -rf xxx
hgl___ has joined #ruby
<ecksit> sure, let me go again zenspider
<Mon_Ouie> Does it at least appear when you list local gems?
<zenspider> wow. that's a lot of stuff
CpuID has joined #ruby
CpuID has quit [Client Quit]
<zenspider> yup. I just installed it clean
<zenspider> and nothing in the bin
<zenspider> aaaand NOTHING in the gem
<zenspider> huh...
qba73 has joined #ruby
<ecksit> :S
Macaveli has joined #ruby
Xeago has quit [Remote host closed the connection]
<ecksit> 1.9.3 works and it passes the CI builds on all versions
<ecksit> maybe something changed in the ruby gems release and i just haven't kept an eye on it close enough
timonv has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
<zenspider> ecksit: dude. the gem is empty. totally empty
arup_r has quit [Remote host closed the connection]
<zenspider> gem unpack acquia_toolbelt; ls acquia_toolbelt*
dscrd has joined #ruby
<ecksit> is that required? i never had to add them to have it work
<jhass> might be a rather recent behavior change, but afaik you need it
<zenspider> filing a bug
banister has joined #ruby
<ecksit> zenspider, against my gem or ruby gems?
<ecksit> jhass, thanks - i will have a look
hgl___ has quit [Ping timeout: 256 seconds]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
ephemerian has joined #ruby
<ecksit> hmm, let me try uninstalling on 1.9.3 and reinstalling it
mehlah has joined #ruby
s34n has joined #ruby
<zenspider> ecksit: against acquia_toolbelt... if that is yours, then yours :P
<zenspider> oops. :D
<ecksit> thanks. just redoing 1.9.3
<zenspider> and yes, you definitely need to specify spec.files for a gem to package properly
<Mon_Ouie> I wonder how it ever worked though
jackneill has joined #ruby
<zenspider> may have had a cached gem file that it installed from?
<zenspider> or installed via a rake task, not actually the shipped gem?
sameerynho has joined #ruby
sputnik13 has joined #ruby
<ecksit> shit son
<ecksit> i had others install it
<ecksit> ok, thanks. let me have a look
<zenspider> 2.0.1 was 94kb
<zenspider> 2.1.0 up to 2.3.0 were all 3.5kb
<zenspider> which is roughly the size of an empty gem + spec
yetanotherdave has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
<zenspider> yup. 2.0.1 installs fine
<jhass> rubygems should probably print a fat warning if it's building an empty gem. Second time in a week I see this issue
<ecksit> ah blast
einarj has joined #ruby
lxsameer_ has joined #ruby
arya_ has joined #ruby
<zenspider> dangerousdave: the culprit is from /usr/local/share/gems1.9/gems/mime-types-2.3/lib/mime/types/loader.rb:210:in `load_from_json'
<zenspider>
<dangerousdave> zenspider, how do i resolve?
ta has joined #ruby
<zenspider> dangerousdave: no clue. :)
<dangerousdave> zenspider, works in development uner ruby 2
<zenspider> poking
<dangerousdave> zenspider, pokes back
<zenspider> yeah. well... that's why you develop and test on the same version you ship with
<jhass> dangerousdave: can you get a `locale` output on both systems?
mehlah has quit [Ping timeout: 245 seconds]
<zenspider> the last thing you want is to see this on deploy
<ecksit> zenspider, would something like spec.files = `git ls-files`.split($/) work?
<zenspider> #encoding: is the internal encoding... the ruby source itself... it is NOT the files read in
apeiros has quit [Remote host closed the connection]
<dangerousdave> jhass, probably, what's the command? not come across it before
mikecmpbll has joined #ruby
<zenspider> ecksit: I _hate_ it, but yeah... it will work
apeiros has joined #ruby
<ecksit> what do you prefer?
<jhass> dangerousdave: locale, literally
<ecksit> (and more importantly) why? so that i know
<dangerousdave> jhass, stand by
<jhass> ecksit: +1, I prefer Dir[] but it'll work
<zenspider> ecksit: maintaining a manifest and using its contents for spec.files
sameerynho has quit [Ping timeout: 245 seconds]
<zenspider> ecksit: I use Hoe for all my gems. it isn't for everyone.
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
mehlah has joined #ruby
<ecksit> ok, so Dir.glob instead?
<jhass> ecksit: you make your project dependent on the repo, you can't download the gem, unpack it and repack it
<zenspider> the second you do `git add -A`, your strategy is suspect.
<zenspider> ecksit: no, a real hand checked manifest
banjara has quit [Quit: Leaving.]
<ecksit> as in list them all?
<jhass> ecksit: I'd go with something like Dir["lib/**/*.rb", "bin/*", "README.md", "LICENSE", "whatnot"]
<zenspider> jhass: and then you ship `bin/whatever~`
<jhass> zenspider: yeah, I hate backup files. I disable them
<zenspider> because of course, if you're lazy enough to use a glob, you're lazy enough to package from your development directory. :D
<zenspider> you get my point. globs are bad
wallerdev has quit [Quit: wallerdev]
timonv has quit [Remote host closed the connection]
lxsameer_ has quit [Ping timeout: 255 seconds]
<zenspider> dangerousdave: regardless, you should file a bug on mime-types with your details. then everyone benefits
<zenspider> ok. it is 01:30 and still hot as hell... I'm gonna go sit under a fan and drink something cool. g'night
<dangerousdave> zenspider, you think it's a bug? it's usually my fault.
<jhass> dangerousdave: meh, was my best bet. if fails locally under 1.9.3 too, as said file a bug against mine-types
sameerynho has joined #ruby
Xeago has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
<dangerousdave> jhass, you just tried it?
rdark has joined #ruby
<jhass> no, you should
<dangerousdave> oh, i see
<dangerousdave> jhass, ok, thanks
lxsameer_ has joined #ruby
<dangerousdave> jhass, is this the bug? https://github.com/mikel/mail/pull/733
<ecksit> thanks heaps jhass and zenspider
<jhass> dangerousdave: doesn't feel like it
<dangerousdave> jhass, bum
<jhass> dangerousdave: that's only a spec file anyway
sameerynho has quit [Ping timeout: 240 seconds]
relix has quit [Ping timeout: 240 seconds]
relix has joined #ruby
olivier_bK has joined #ruby
marr has joined #ruby
workmad3 has joined #ruby
oo__ has joined #ruby
_fumk is now known as fumk
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Ca1us has quit [Ping timeout: 255 seconds]
helpa has quit [Read error: Connection reset by peer]
vyorkin has joined #ruby
arup_r has joined #ruby
mengu has quit [Remote host closed the connection]
<ecksit> awesome, it's working again!
<gr33n7007h> I need help with rvm I've just installed ruby 2.1.2 and every time I close the terminal and reopen it defaults back to 1.9.3 ?
<ecksit> many many thanks
oo_ has quit [Ping timeout: 264 seconds]
workmad3 has quit [Client Quit]
RoryHughes has joined #ruby
workmad3 has joined #ruby
idiocrash has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
<sevenseacat> did you set 2.1.2 as your default ruby?
<jhass> gr33n7007h: rvm use --default 2.1.2, also #rvm
<gr33n7007h> sevenseacat, jhass did that
<gr33n7007h> I'll have to join #rvm coz rvm missing too now
<sevenseacat> lol
<sevenseacat> shell probably not set as a login shell, guessing
<jhass> ^
<jhass> gr33n7007h: does it work after a bash -l ?
<gr33n7007h> let me check
<gr33n7007h> yes
<jhass> so, as said, make sure your terminal launches a login shell
<gr33n7007h> jhass, doing it now :)
Takle has joined #ruby
spider-mario has joined #ruby
<gr33n7007h> that's done now to see if it stays
<workmad3> I've found that gnome is somewhat annoying when it comes to running .bash_profile and .bashrc
Xeago has quit [Remote host closed the connection]
<DefV> I've found that gnome is somewhat annoying.
<workmad3> it's what prompted me to rewrite .bash_profile to just do '. .bashrc'...
<workmad3> DefV: ah yeah, that too
<workmad3> DefV: but less so than unity ;)
* sevenseacat uses unity :(
<gr33n7007h> what is rvm command to use 1.9.3 again?
Caius has joined #ruby
<sevenseacat> `rvm use 1.9.3` :P
<jhass> gr33n7007h: or rvm use system
<gr33n7007h> do both work
<workmad3> sevenseacat: you poor poor person :(
<workmad3> gr33n7007h: the second one works if your system ruby is 1.9.3
dscrd has quit []
<sevenseacat> i dont mind it actually.... its the best of an annoying bunch
<DefV> < OSX
mengu has joined #ruby
<DefV> works like a charm
<gr33n7007h> Awesome, all is working thank god oh and sevenseacat jhass :)
<DefV> (if I beat it into submission now & again)
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<sevenseacat> gr33n7007h: good stuff
<workmad3> DefV: tbh, most unix/linux windows managers work like a charm for me... what I want out of them is a terminal I can run vim and other command line stuff from, and chrome, firefox and spotify
<workmad3> DefV: preferably with 2 monitors so I can shove half of it out the way when I don't need it fully visible :)
* gr33n7007h is a happy chappy
FLeiXiuS`` has quit [Ping timeout: 264 seconds]
osvimer has joined #ruby
<arup_r> In find-any mode - there must be two values x and y (x <= y) .. Are picking up the values for x and y also undefined ?
nfk has joined #ruby
lewis_ has joined #ruby
<gr33n7007h> ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] is the most upto date ruby now
lewis_ is now known as lewix
<sevenseacat> i thought ruby ditched patch levels now that theyre doing their semver stuff
<workmad3> sevenseacat: I thought that too... but just checked my ruby-installed 2.1.2 and it also has a p95
<jhass> arup_r: the block is still yielded one value. Which element is picked from your array is said to be undefined
<sevenseacat> huh, so does mine
hgl___ has joined #ruby
banjara has joined #ruby
<sevenseacat> o.O
jzigmund has quit [Ping timeout: 252 seconds]
<jhass> I think they don't do patchlevel releases anymore, but failed to rip that out of the build system
<sevenseacat> i'm positive i would have just done `ruby-build 2.1.2`
<workmad3> jhass: heh :) I was just about to speculate similar
<workmad3> sevenseacat: hell, I just did 'ruby-install ruby 2.1' ;)
jzigmund has joined #ruby
jack_rabbit has joined #ruby
<workmad3> and the source tarball doesn't have a patchlevel... so yeah, I guess they just haven't removed all code and build traces of it yet
<arup_r> jhass: I don't know if possible or not. Still asking, any way can it be coded to see the block output for every iteration? In what iteration, what output is being generated I meant to say.
jackneill has quit [Ping timeout: 240 seconds]
<workmad3> arup_r: could you gist the code you have so far please?
<jhass> arup_r: sure, just print iti with p
<jhass> arup_r: btw. did you do any real ruby program yet?
<arup_r> zenspider: stop please. Let me learn something here.. Awesome people around here.. I know what else you wrote.. But just ignore all..
Takle has quit [Remote host closed the connection]
<wasamasa> arup_r: do you understand what he's complained about?
timonv has joined #ruby
hgl___ has quit [Ping timeout: 240 seconds]
<jhass> arup_r: what is wrong with you? just ignore him
<jhass> seriously
<arup_r> jhass: yes.. But now I am learning some methods from doco, which I have never used.
banjara has quit [Ping timeout: 248 seconds]
<sevenseacat> he didnt even say anything >_>
oo__ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Takle has joined #ruby
<arup_r> jhass: what I learned I practiced http://stackoverflow.com/users/2767755/arup-rakshit here.. But there is still more thing I don't know in Ruby.. so seeking for help from you people.. :-)
mehlah has quit [Read error: Connection reset by peer]
<sevenseacat> ah ive seen you around on SO
garethrees has joined #ruby
<jhass> arup_r: it's because in my experience it's way more efficient to only skim what's there a few times and then learn it if you have an actual usecase. You seem to be investing a lot of time in stuff you may never need.
<jhass> Focusing on getting some actual developer experience instead will also ease understanding these parts
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Pro|_> how should i reformat this? SomethingDb.database.soft_cache.builders.map { |k, v| [k, v.get] }.select { |v| v[1] != nil }.map { |v| "#{v[1].getCurrentState}: #{v[0]}" }.join("\n---\n"); end
<jhass> Pro|_: for starters |k, v| in the select
<jhass> Pro|_: then replace k, v with descriptive names
<jhass> Pro|_: not sure where that end is coming from
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<Pro|_> i don't like it as a oneliner also
ghr has quit [Ping timeout: 264 seconds]
<Pro|_> so should i do object = object.operation
<Pro|_> each time i do map/select/etc
<arup_r> jhass: you are right. Thing is I always do some experiment with methods in API, so that I can familiar with it.. and if I met such situation, then I can use it directly...:-)
<workmad3> Pro|_: so split it over several lines with some descriptive temp variable names
<pontiki> or just have one map{}.join, and do the other operations inside the map body
<workmad3> Pro|_: you don't have to do 'object = object.op'... you can rename it to a more appropiate name at that point
<arup_r> >> "abscbbdf".count('^b')
Xeago has joined #ruby
<workmad3> pontiki: he'd need map{}.compact.join still ;)
<pontiki> or maybe map{}.compact.join
<workmad3> hehe
<arup_r> is awesome trick I was not aware of 7 months back.. and I used to do it more complicated way..
Joulse has quit [Quit: Joulse]
<pontiki> even so
<arup_r> familiarty with API handle this situations very easily.. so I try to learn from API...
<pontiki> keep reading the docs, arup_r
moritzs has joined #ruby
<pontiki> just don't forget to actually apply them to something real
<workmad3> .map{|k,v| v.get ? "#{v.get.getCurrentState}: #{k}" : nil}.compact.join("\n---\n")
<arup_r> workmad3: Use #select.. then don't need to use #compact although...
Xeago has quit [Remote host closed the connection]
<workmad3> arup_r: compact is much nicer reading there :P
<arup_r> workmad3: No issue.. :-)
<pontiki> the important operations are all in one block there, arup_r, that's why it's cleaner
arya_ has quit [Ping timeout: 256 seconds]
jackneill has joined #ruby
Joulse has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
<arup_r> pontiki: Read it incorrectly.. :-) #map is perfect in this case
<jhass> I'd sa map.compact over select.map is purely personal preference, I do prefer select.map
<arup_r> jhass: +1 to you..
jackneill has quit [Remote host closed the connection]
banister has joined #ruby
sandstrom has joined #ruby
<pontiki> even in the case Pro|_ has presented?
<pontiki> that just seems convoluted
<workmad3> jhass: sure... but here you'd need to either do '.map{...}.select{|h| !h.nil?}' (or, cleaner, .reject{|h| h}) or just use compact
uresu has quit [Quit: uresu]
<workmad3> jhass: or you'd need to introduce another .map at the start to prevent two calls to 'v.get'
<sandstrom> I've upgraded from 1.9.3 to 2.1.2 and trying to debug a failing test. `def foo; my_var = 1; ensure; puts my_var; end;` here, my_var in the ensure block is nil, it seems (boiled down example)
<workmad3> (I know in my case I didn't bother avoiding that, but it would be a simple change)
<sandstrom> Could it be the GC that has removed the object?
<pontiki> .tap might be useful in there
<jhass> sandstrom: pretty sure that example doesn't reproduce your issue without even trying it
uresu has joined #ruby
<workmad3> sandstrom: jhass is right, your example doesn't reproduce your issue
<workmad3> sandstrom: just tried it on 2.1.2
<jhass> workmad3: I don't follow... he filters out the nils for v.get and I'd keep it that way
<pontiki> it's split over three blocks, jhass
<jhass> yeah, I see no issue in that tbh.
<jhass> everybody's gonna hate me for that, but there's this style: http://paste.mrzyx.de/pfc4bd609/
<sandstrom> jhass: workmad3 Your right! I just can't phantom how this happens
<Mon_Ouie> I can ghost it either
<pontiki> you mean the line breaks, jhass ?
<jhass> sandstrom: your method probably raises before the assignment happens, but that's wild guessing
<workmad3> jhass: you forgot to escape your line breaks
<workmad3> jhass: so your code would break ;)
arya_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
jackneill has joined #ruby
<workmad3> hmm... ok, so maybe not
<jhass> no, that's actually valid ruby
<jhass> you can also leave the dot on the previous line
<workmad3> yeah, I've not encountered it that way around
<jhass> but even me hates that :P
CorpusCallosum has quit [Ping timeout: 248 seconds]
<workmad3> I was under the impression that would need line-break escapes to stop ruby interpretting it like that
<workmad3> *interpretting it weirdly
<workmad3> jhass: but still... why 3 explicit blocks over 1 explicit block? :)
<sandstrom> jhass: you are right, that does indeed seem to be the case!
<jhass> workmad3: maybe I'm just used to that chained thinking over evaluating the condition, imagining the possible results and what operation to follow on that
<jhass> I just dislike maps with conditional operations
arya_ has quit [Ping timeout: 248 seconds]
francisfish has quit [Remote host closed the connection]
Xeago has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> that's not logical
<pontiki> (see what i did there)
krz has joined #ruby
benlieb has quit [Quit: benlieb]
yfeldblum has quit [Remote host closed the connection]
<workmad3> jhass: I'm not fond of them in the first case, when figuring out what to do... but they can be a good cleanup once you have the process, and added to that, 4 iterations with 3 of them having to call back to ruby with each object is pretty expensive, as opposed to 3 iterations with only 1 of them having to call back to ruby with each object
mr_foobar_baz has joined #ruby
mengu has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
sigurding has joined #ruby
arya_ has joined #ruby
<jhass> let me elaborate a bit more: I'd be more okay with .map {|k, v| v = v.get; v ? "#{v.getCurrentState}: #{k}" : "" }.join than .map {|k, v| v = v.get; "#{v.getCurrentState}: #{k}" if v }.compact.join; The former is defining an alternative result that is consumable by .join for the case v.get returns nil. The later defines a special value that is filtered out afterwards, it's not an alternative result, it's basically a magic value.
Takle has joined #ruby
<jhass> I still do prefer the .select.map over both of these
shaileshg has joined #ruby
<workmad3> jhass: the first one doesn't work in this case though
EvanR has joined #ruby
<workmad3> jhass: because it introduces extra sets of the join string into the final result
<jhass> yeah, I just needed something to highlight what I mean
EvanR is now known as Guest67134
<pontiki> i do see your point, jhass
mailo has joined #ruby
cek has left #ruby [#ruby]
<workmad3> jhass: sure... except you managed to pick an example that also introduced a special value that needed filtering out ;)
timonv has quit [Remote host closed the connection]
EvanR__ has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
<workmad3> jhass: but you could do .reject(&:empty?) on it rather than .compact...
<jhass> I have a reason to say that I prefer the select.map over both
<pontiki> filter before rather than filter after?
<jhass> yes
<workmad3> jhass: except in this case you're filtering in the middle, not before or after
roolo has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
<workmad3> jhass: if you wanted a filter before, you could do '.select{|, v|
kaspergrubbe has quit [Read error: No route to host]
<jhass> select.map filters out the invalid datapoints, map.select filters the result of the map, requiring to introduce a special value to mark the invalid datapoints
kaspergrubbe has joined #ruby
agjacome has joined #ruby
<workmad3> jhass: if you wanted a filter before, you could do '.select{|_, v| v.get}.map{|k, v| "#{v.get.getCurrentState}: "#{k}"}.join(...)'
funktor has joined #ruby
skaflem has joined #ruby
<jhass> the first map is building the dataset needed for the operation by transforming the given one
<workmad3> jhass: which is a completely unnecessary step in this situation
<pontiki> welll.... you're call v.get twice
<jhass> necessity and clarity are rather opposing things
francisfish has joined #ruby
<workmad3> jhass: not always ;)
<jhass> I'm already more at the general case anyway
<workmad3> jhass: we're not arguing general case though
<workmad3> jhass: we're arguing specific case ;)
<jhass> if you got to optimize this one, you're probably right, it's not what I'm saying
<workmad3> jhass: but that's exactly what my point was
<workmad3> jhass: I wasn't disagreeing in general... I was disagreeing in this specific case
<jhass> where did Pro|_ said that piece is performance critical?
foo-bar- has joined #ruby
<jhass> and if it's not performance critical I rather optimize for code clarity
<workmad3> jhass: performance critical != completely screw over performance for the sake of *maybe* a tiny bit of debatable clarity
Takle has joined #ruby
Xeago has quit [Remote host closed the connection]
<workmad3> jhass: again, debatable clarity in this specific case, not the general case ;)
mijicd has quit [Remote host closed the connection]
<jhass> that it'd completely screw performance is slightly exaggerated...
<pontiki> you're both being rather hyperbolic
duncannz has quit [Ping timeout: 248 seconds]
<pontiki> i'd go with your first remark, jhass: it's taste
<jhass> sure it is
<pontiki> gustibus non disputatum
<pontiki> or something like that
hgl___ has joined #ruby
mijicd has joined #ruby
<Mon_Ouie> disputandum I believe
sputnik13 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
PanPan_ has joined #ruby
Photism has joined #ruby
<apeiros> one of the three most often misquoted latin phrases :)
PanPan_ has quit [Client Quit]
sk87 has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
<Mon_Ouie> Quidquide latine dictum sit, altum videtur!
<Mon_Ouie> -e
foo-bar- has quit [Ping timeout: 255 seconds]
<pontiki> now that we're off the previous topic...
PanPan has quit [Ping timeout: 248 seconds]
<apeiros> :)
hgl___ has quit [Remote host closed the connection]
<workmad3> Fabricati Diem, Pvnkti? :)
<pontiki> sorry, my latin sucks, as we've all seen
hgl___ has joined #ruby
<workmad3> pontiki: that one doesn't take much figuring out ;)
Takle has quit [Remote host closed the connection]
<pontiki> i only know a couple of misquotes
<pontiki> make the day?
uresu has quit [Quit: uresu]
<workmad3> pontiki: pretty much... now turn it into a colloquialism with a liberal interpretation of 'pvnkti' ;)
<workmad3> pontiki: most of my 'latin' comes from Discworld books btw...
nemesit|znc has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
<workmad3> pontiki: so the only other phrase I really 'know' is 'Quanti canicula illa a fenestra'
tvw has quit []
<workmad3> *ille
noop has joined #ruby
<pontiki> oh, right
<pontiki> make my day, punk
<workmad3> :)
<pontiki> from night watch?
<workmad3> I think it was first in guards guards
<workmad3> it's the city watch slogan though :)
<pontiki> the other one is how much is that doggie in the window
<workmad3> yup
nemesit|znc has joined #ruby
mijicd has quit [Remote host closed the connection]
<pontiki> which is supposed to show AM denizens keen interesting in both animals and commerce, i think
<workmad3> welcome to the limits of my 'latin' :)
hgl___ has quit [Quit: Lingo - http://www.lingoirc.com]
hgl has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<arup_r> Actually this post I first read, where author stressed on the x selections.. But doc said it is undefined about *x* selections... clever doco..
<pontiki> i don't remember all that much, tho i did read them all in order like two years ago
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
Takle has joined #ruby
<workmad3> I read them way too much growing up...
mijicd has joined #ruby
banjara has joined #ruby
nub is now known as callumacrae
qwyeth has quit [Ping timeout: 240 seconds]
banjara has quit [Ping timeout: 245 seconds]
lewix has quit [Remote host closed the connection]
qwyeth has joined #ruby
pencilcheck has joined #ruby
banister has joined #ruby
shevy has joined #ruby
postmodern has quit [Quit: Leaving]
mengu has joined #ruby
jack_rabbit has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
lewix has joined #ruby
havenwood has joined #ruby
yfeldblum has joined #ruby
azkah2 has quit [Quit: WeeChat 0.4.3]
havenwood has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
sandstrom has quit [Remote host closed the connection]
sputnik13 has joined #ruby
osvimer has quit [Ping timeout: 240 seconds]
<arup_r> >> proc { |x=0, y| }.arity
<eval-in_> arup_r => 1 (https://eval.in/170451)
osvimer has joined #ruby
<arup_r> Here mandatory argument n = 1 . So as per the doc it should be -n-1 # => 2
hgl_ has joined #ruby
<arup_r> Why 1 ?
arya_ has quit [Ping timeout: 248 seconds]
gizmore has quit [Ping timeout: 252 seconds]
hgl_ has quit [Client Quit]
sputnik13 has quit [Client Quit]
kalusn has quit [Read error: No route to host]
kalusn has joined #ruby
fabrice31 has quit [Remote host closed the connection]
eka has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
mailo has quit [Quit: Leaving...]
sputnik13 has joined #ruby
jsaak has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
kalusn has quit [Remote host closed the connection]
kalusn has joined #ruby
jottr has joined #ruby
<jhass> >> lambda { |x=0, y| }.arity
<eval-in_> jhass => -2 (https://eval.in/170452)
<jhass> "Returns the number of arguments _that would not be ignored_."
Atttwww has quit [Ping timeout: 240 seconds]
<jhass> read: it would raise if that number isn't supplied
alem0lars has quit [Quit: alem0lars]
<jhass> a proc doesn't raise
CorpusCallosum has joined #ruby
arya_ has joined #ruby
havenwood has joined #ruby
Mattx has quit [Quit: Leaving]
CingulateCortex has joined #ruby
timonv has joined #ruby
senayar has quit []
schaerli_ has joined #ruby
Royalb15 has joined #ruby
CorpusCallosum has quit [Ping timeout: 240 seconds]
Dwarf has joined #ruby
jsaak has joined #ruby
<arup_r> >> proc { |x, *y| }.arity
<eval-in_> arup_r => -2 (https://eval.in/170453)
<arup_r> why then it is 2 ? It obeys the rule -n-1
Dwarf has quit [Client Quit]
schaerli has quit [Ping timeout: 248 seconds]
<arup_r> >> proc { |x, y-0| }.arity
<eval-in_> arup_r => /tmp/execpad-b448d4d49166/source-b448d4d49166:2: syntax error, unexpected '-', expecting '|' ... (https://eval.in/170455)
wildroman2 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<arup_r> >> proc { |x, y=0| }.arity
<eval-in_> arup_r => 1 (https://eval.in/170456)
senayar has joined #ruby
Dwarf has joined #ruby
<arup_r> If I am not wrong both case y is optional ?
ecksit has quit [Quit: Computer has gone to sleep.]
timonv has quit []
sputnik13 has joined #ruby
<jhass> >> lambda {|x=0,*y| }.arity # does it?
<eval-in_> jhass => -1 (https://eval.in/170457)
User458764 has joined #ruby
<arup_r> It is clear because n is 0. so -0-1 # =
<arup_r> >1
<arup_r> -0-1 #=> 1
<arup_r> But in case of proc it is confusing
sputnik13 has quit [Client Quit]
timonv has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
Hobogrammer has quit [Ping timeout: 256 seconds]
drawingthesun has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
phinfonet has joined #ruby
wildroman2 has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
wildroman2 has joined #ruby
sputnik13 has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
tokik has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
drawingthesun has joined #ruby
Joulse has quit [Quit: Joulse]
lewix has quit [Remote host closed the connection]
Royalb15 has quit [Quit: Leaving]
eka has joined #ruby
Xeago has quit [Remote host closed the connection]
kalusn has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jhass> good thing that we adhere to duck-typing in ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> just let the interpreter yell if the caller gives you something you don't expect
<jhass> so, unless you do very esoteric metaprogramming, you won't need arity anyway
Xeago has joined #ruby
phutchins has joined #ruby
User458764 is now known as User458764_NotHe
<Hanmac> jhass: i did use it once in a archive lib, where the data are only loaded when you give them two parameters in the block (or not one)
banjara has joined #ruby
<jhass> Hanmac: thanks for proving my point. You're Hanmac after all
yfeldblum has quit [Ping timeout: 248 seconds]
* Hanmac is now getting very esoteric
Xiti` has quit [Quit: Leaving]
roolo has joined #ruby
decoponio has joined #ruby
<arup_r> Hanmac: Is your code in GitHub.. I am not a metaprogrammer.. as per my curiosity I wanted to see it.
<jhass> arup_r: stop right here. you still have a chance!
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<jhass> you don't want to read through Hanmac code! trust me!
User458764_NotHe has quit [Ping timeout: 240 seconds]
<jhass> :P
banjara has quit [Ping timeout: 240 seconds]
<arup_r> jhass: I didn't get any of your points..
<workmad3> jhass: reading through Hanmac's code is absolutely fine... if you like C++!
<arup_r> Ahh.. C++... Then I wouldn't be able to read it..
<arup_r> jhass: Is this what you meant C++ ?
<jhass> Hanmac manages to spit out incomprehensible constructs on a regular basis
<Hanmac> there https://github.com/Hanmac/libarchive-ruby/blob/master/ext/archive.cpp#L596-L611 is what i did, hm and yeah i need to upgrade that gem for newest ideas
<workmad3> Hanmac: that looks more like C than C++ ;)
<Hanmac> jhass: thats one of my more "cleaner" projects ... means not massive use of C-macros and C++ templates ;P
<Hanmac> workmad3: hm yeah because libarchive is in C so i dont need massive C++ for my doing ...
diegoviola has quit [Quit: WeeChat 0.4.3]
<workmad3> :)
<arup_r> jhass: But my confusion still unexplained... :(
banjara has joined #ruby
Takle has quit [Remote host closed the connection]
Xiti has joined #ruby
banjara1 has joined #ruby
banjara has quit [Read error: Connection reset by peer]
thomasxie has quit [Quit: Leaving.]
Takle has joined #ruby
osvimer has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
Takle has quit [Remote host closed the connection]
banjara1 has quit [Ping timeout: 248 seconds]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
osvimer has joined #ruby
Neomex has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
lkba has joined #ruby
phoo1234567 has joined #ruby
whyy has quit [Remote host closed the connection]
MackTrash has joined #ruby
GriffinHeart has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
masterkorp has joined #ruby
<masterkorp> hello
<masterkorp> on gemfiles can specifc to get the the gemspec file from a git repo (and branch) directly ?
raldu has joined #ruby
raldu has left #ruby [#ruby]
anaeem1_ has quit [Remote host closed the connection]
masterkorp has left #ruby ["WeeChat 0.3.8"]
mijicd has quit [Remote host closed the connection]
MackTrash has quit [Quit: This computer has gone to sleep]
<Hanmac> workmad3: http://xkcd.com/1389/
Zebroid has joined #ruby
ldnunes has joined #ruby
senayar has quit [Remote host closed the connection]
anaeem1 has joined #ruby
grieg has joined #ruby
<workmad3> Hanmac: yeah, I liked that one :)
<workmad3> Hanmac: I was moderately surprised by how much of the 'solid' surfaces of the solar system Earth took up
blackmesa has joined #ruby
yfeldblum has joined #ruby
Macaveli has quit [Quit: Leaving]
kalusn has joined #ruby
funktor has quit [Remote host closed the connection]
<Hanmac> hm i currnetly does thinking if the moones of Jupiter & Saturn are populated, the orientation for comunication between them must be cruel ;P ... like some from Moon A wants to comunicate with someone on Moon B, but not possible because the planet is in the way so the comunication must be rooted over Moon C
jottr has joined #ruby
Zebroid has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
tus has joined #ruby
Joulse has joined #ruby
Takle has quit [Remote host closed the connection]
<lupine> question: I'm using (j)ruby-ldap to do a lookup, like: LDAP::SSLConn#search2( full_dn, LDAP::LDAP_SCOPE_BASE, "objectClass=person" ) - however, in theory I should be able to do this lookup without a filter
<lupine> "in theory", since I'm using a full dn and a scope of base, but #search and #search2 both demand that third argument for the filter, and explode if one isn't there
DivineEntity has quit [Quit: leaving]
foo-bar- has joined #ruby
kalusn has quit [Remote host closed the connection]
kalusn has joined #ruby
Takle has joined #ruby
mengu has quit []
sinfex has joined #ruby
foo-bar- has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
sigurding has quit [Quit: sigurding]
zegerjan has quit [Ping timeout: 255 seconds]
ringarin has joined #ruby
foo-bar- has joined #ruby
fabrice31 has joined #ruby
workmad3 is now known as wm3|away
mijicd has joined #ruby
anaeem1 has quit [Remote host closed the connection]
pmcd has joined #ruby
p0sixpscl has joined #ruby
pmcd has left #ruby [#ruby]
IceyEC has joined #ruby
whyy has joined #ruby
uresu has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
senayar has quit [Remote host closed the connection]
Heskie has joined #ruby
hgl has joined #ruby
Macaveli has joined #ruby
arup_r has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
tobiasvl has quit [Quit: Lost terminal]
Xeago_ has joined #ruby
MrDoctor has joined #ruby
perlsyntax has joined #ruby
banjara has joined #ruby
<MrDoctor> Is there a way I can terminate a ruby process and then resume execution back from the point where I had the process last terminated
<MrDoctor> If there is no such thing, how should we go about implementing it
shaileshg has quit [Quit: Connection closed for inactivity]
<MrDoctor> Any ideas would be very helpful
Xeago has quit [Ping timeout: 248 seconds]
<jhass> MrDoctor: serialize the relevant state and add an option to load that
obs has quit [Ping timeout: 240 seconds]
luthier has joined #ruby
cpruitt has joined #ruby
<MrDoctor> Could you please elaborate on that a bit jhass
<jhass> not really, it's very specific to ones program
kayloos has joined #ruby
kalusn has quit [Read error: Connection reset by peer]
obs has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
<MrDoctor> Would encapsulating all the variables I use in my code into a class, and then serialising an instance of the class, be a good idea?
<apeiros> MrDoctor: serializers: Marshal, YAML, JSON.
Guest62341 has quit [Ping timeout: 240 seconds]
<apeiros> for your case, marshal is probably the easiest. be aware that it can't serialize procs (Hashes with default-procs f.ex.) and IOs
anarang has joined #ruby
osvimer has quit [Ping timeout: 240 seconds]
<jhass> MrDoctor: not necessarily for the program flow, but as a serialization/deserialization step, that's a common practice
krz has quit [Ping timeout: 240 seconds]
<MrDoctor> I am somewhat confounded
<jhass> that is, don't actually use that class to work with the data and don't pass it around too much, but collecting all relevant data in it is a sane thing to do
SilkFox has joined #ruby
<jhass> this all depends a bit on the size of your program of course
<MrDoctor> Could you give me any resource that describes such a procedure?
wm3|away has quit [Ping timeout: 256 seconds]
northfurr has joined #ruby
karupa is now known as zz_karupa
timonv has joined #ruby
carlo has joined #ruby
carlo is now known as Guest21913
cmoneylulz has joined #ruby
phoo1234567 has quit [Ping timeout: 264 seconds]
mjsmith2 has joined #ruby
drager_ has quit [Changing host]
drager_ has joined #ruby
drager_ is now known as drager
SilkFox has quit [Ping timeout: 240 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mbuf has quit [Quit: Leaving]
phoo1234567 has joined #ruby
yfeldblum has joined #ruby
jhass is now known as jhass|off
mattstratton has joined #ruby
<MrDoctor> Anyways, thanks for your help guys
osvimer has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
IceyEC has quit [Ping timeout: 248 seconds]
osvimer has quit [Ping timeout: 264 seconds]
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
sigurding has joined #ruby
osvimer has joined #ruby
codecop has joined #ruby
Takle has quit [Remote host closed the connection]
cpruitt has quit [Client Quit]
luthier has quit [Ping timeout: 255 seconds]
shevy has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
schaerli_ has quit [Remote host closed the connection]
pskrz has joined #ruby
paulfm has joined #ruby
Takle has joined #ruby
sk87 has joined #ruby
Xeago_ has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
apeiros has quit []
techsethi has quit [Quit: techsethi]
vifino has joined #ruby
nateberkopec has quit [Quit: Leaving...]
nateberkopec has joined #ruby
lewix has joined #ruby
jerius has joined #ruby
whyy has quit [Ping timeout: 248 seconds]
perlsyntax has quit [Quit: Textual IRC Client: www.textualapp.com]
cmoneylulz has quit [Remote host closed the connection]
mbwe has quit [Quit: WeeChat 0.4.2]
lewix has quit [Remote host closed the connection]
centrx has joined #ruby
wildroman2 has joined #ruby
hgl has quit [Remote host closed the connection]
mbwe has joined #ruby
wildroman2 has quit [Remote host closed the connection]
zkay11 has joined #ruby
hgl has joined #ruby
wildroman2 has joined #ruby
tus has quit [Ping timeout: 255 seconds]
cmoneylulz has joined #ruby
blackmesa has joined #ruby
codecop has quit [Quit: Išeinu]
alexju has joined #ruby
arya_ has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
dc_ has quit []
starkhalo has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
dblessing has joined #ruby
maximski_ has joined #ruby
arya_ has joined #ruby
maximski_ has joined #ruby
ixti has joined #ruby
maximski_ has quit [Max SendQ exceeded]
zorak_ has quit [Ping timeout: 240 seconds]
maximski_ has joined #ruby
maximski has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
jhass|off is now known as jhass
Shidash has joined #ruby
zorak_ has joined #ruby
GriffinHeart has joined #ruby
acconrad has joined #ruby
IceyEC has joined #ruby
mrmargolis has joined #ruby
lxsameer_ has quit [Quit: Leaving]
freerobby has joined #ruby
GriffinHeart has quit [Ping timeout: 256 seconds]
alexju has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
alexju has joined #ruby
banjara has joined #ruby
ta has joined #ruby
shaileshg has joined #ruby
Takle has quit [Remote host closed the connection]
eka has joined #ruby
xaxisx has joined #ruby
Zenigor has joined #ruby
t_p has joined #ruby
havenwood has joined #ruby
Takle has joined #ruby
schaerli has joined #ruby
banjara has quit [Ping timeout: 255 seconds]
yeticry has quit [Ping timeout: 272 seconds]
alexju has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
senayar has joined #ruby
marr has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
djcp has joined #ruby
djcp has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
sailias has joined #ruby
mike24 has quit [Ping timeout: 255 seconds]
kevind has joined #ruby
v0n has joined #ruby
freerobby has quit [Quit: Leaving.]
ta has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dc_ has joined #ruby
mehlah has joined #ruby
Channel6 has joined #ruby
wm3|away has joined #ruby
jhass is now known as jhass|off
agent_white has joined #ruby
timonv has quit [Remote host closed the connection]
wm3|away is now known as workmad3
klaut has quit [Ping timeout: 256 seconds]
klaut has joined #ruby
snath has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
sigurding has quit [Ping timeout: 248 seconds]
ta has quit [Ping timeout: 245 seconds]
klaut_ has joined #ruby
Arkaniad has quit [Ping timeout: 240 seconds]
slainer6_ has joined #ruby
BalkM has joined #ruby
tvl has joined #ruby
moritzs has joined #ruby
<slainer6_> in latest versions of ruby, is there a more beautiful way of getting the absolute path of the current script than this :
<slainer6_> File.expand_path File.dirname(__FILE__)
<slainer6_> ?
zombor has joined #ruby
<slainer6_> thanks
Port3M5[Work] has quit [Remote host closed the connection]
klaut has quit [Ping timeout: 240 seconds]
rpage has joined #ruby
<centrx> You're welcome
<Zenigor> not any better really, possibly even more dirty: [Dir.pwd, File.dirname(__FILE__)].join("/")
sigurding has joined #ruby
arup_r has quit []
jumblemuddle_ has quit [Ping timeout: 240 seconds]
cmoneylulz has quit [Remote host closed the connection]
<slainer6_> maybe : Pathname.new(__FILE__).dirname
jumblemuddle has joined #ruby
<slainer6_> but i wonder in which cases this would NOT return an absolute path...
cmoneylulz has joined #ruby
shvelo has joined #ruby
mijicd has quit [Remote host closed the connection]
yacks has quit [Read error: Connection reset by peer]
ValicekB has quit []
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
upsell5 has joined #ruby
snath has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
yacks has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
schaary|afk is now known as schaary
ta has joined #ruby
alexju has joined #ruby
timonv has joined #ruby
brunops has joined #ruby
maxmanders has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
anarang has quit [Quit: Leaving]
bluntman has quit [Ping timeout: 252 seconds]
shvelo has quit [Ping timeout: 256 seconds]
tesuji has quit [Ping timeout: 256 seconds]
Hanmac1 has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
mrnugget has joined #ruby
thomasxie has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 264 seconds]
Davey has quit [Ping timeout: 264 seconds]
volk_ has joined #ruby
nateberkopec has joined #ruby
thomasxie has joined #ruby
Takle has quit [Remote host closed the connection]
ValicekB has joined #ruby
tjr9898 has joined #ruby
stytown has joined #ruby
robertodecurnex has joined #ruby
zombor has left #ruby ["Leaving..."]
tagrudev has quit [Remote host closed the connection]
t_p has quit [Ping timeout: 240 seconds]
stytown has quit [Client Quit]
stytown has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ptierno_ has quit [Ping timeout: 260 seconds]
Davey has joined #ruby
Channel6 has quit [Quit: Leaving]
ptierno has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
ta has quit [Ping timeout: 248 seconds]
einarj has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
jmbrown412 has joined #ruby
orionstein_away is now known as orionstein
sigurding has quit [Quit: sigurding]
hamakn has quit [Remote host closed the connection]
failshell has joined #ruby
stytown has quit [Client Quit]
arya_ has quit [Ping timeout: 240 seconds]
stytown has joined #ruby
mikesplain has joined #ruby
funktor has joined #ruby
Takle has joined #ruby
zonetti has quit [Max SendQ exceeded]
jmbrown412 has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
zonetti has joined #ruby
stytown has quit [Client Quit]
banjara has joined #ruby
Davey has quit [Ping timeout: 245 seconds]
perlsyntax has joined #ruby
yfeldblum has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
sigurding has joined #ruby
Davey has joined #ruby
ta has joined #ruby
ffranz has joined #ruby
sheperson has joined #ruby
banjara has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
kevind has quit [Quit: kevind]
sigurding has quit [Read error: Connection reset by peer]
tobago has quit [Remote host closed the connection]
IceyEC has quit [Ping timeout: 240 seconds]
Port3M5[Work] has joined #ruby
Takle has quit [Remote host closed the connection]
moritzs has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
Joulse has quit [Quit: Joulse]
Snarkz has joined #ruby
ferr has joined #ruby
IceyEC has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
stytown has joined #ruby
Joulse has joined #ruby
cmoneylulz has joined #ruby
arya_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awkwords has joined #ruby
sigurding has joined #ruby
marr has joined #ruby
perlsyntax has left #ruby ["Textual IRC Client: www.textualapp.com"]
okdamn has joined #ruby
<okdamn> hey can someone help me out with sass ?
<okdamn> im new
Guest21913 has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
sheperson has quit [Quit: sheperson]
ta has quit [Ping timeout: 240 seconds]
tus has joined #ruby
xaxisx has quit [Quit: xaxisx]
momomomomo has joined #ruby
arup_r has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
gil has joined #ruby
DaniG2k has joined #ruby
shtirlic has joined #ruby
momomomomo has quit [Client Quit]
zz_jrhorn424 is now known as jrhorn424
hamakn has joined #ruby
carlo has joined #ruby
carlo is now known as Guest3652
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
schaary is now known as schaary|afk
sinfex has quit [Ping timeout: 264 seconds]
brunops has quit [Ping timeout: 240 seconds]
pwk has joined #ruby
freerobby has joined #ruby
stytown has quit [Quit: stytown]
GriffinHeart has joined #ruby
<pwk> hi. Say i have the name of a method in a string: 'selector_string = "myMethod"' and now I would like to call obj.myMethod(3) by using the selector_string to specify the method name; is it possible=?
okdamn has left #ruby [#ruby]
laudace has joined #ruby
stytown has joined #ruby
brunops has joined #ruby
yfeldblum has joined #ruby
Edelwin has quit [Changing host]
Edelwin has joined #ruby
<pwk> it appears the answer to my question is 'o.send(selector_string, 3)'
<godd2> >> method_name = "upcase"; "hello".send(method_name)
<eval-in_> godd2 => "HELLO" (https://eval.in/170535)
einarj has joined #ruby
<godd2> 2.send(:+, 3) would equal 5
yfeldblu_ has joined #ruby
rayners has joined #ruby
terrellt has joined #ruby
Dagobert has joined #ruby
<Dagobert> Hi folks
yfeldblum has quit [Ping timeout: 248 seconds]
<pwk> hello Dagobert
<Dagobert> I want to compile Ruby from svn but can’t find a bootstrap.sh or similar
Takle has joined #ruby
<Dagobert> Is there a script/document that descibes what to invoke to get all the stuff like autoreconf etc. ?
tvl is now known as tobiasvl
noop has quit [Ping timeout: 240 seconds]
ta has joined #ruby
<Dagobert> I would have expected it to be at https://www.ruby-lang.org/en/installation/#building-from-source
momomomomo has joined #ruby
xaxisx has joined #ruby
krz has joined #ruby
yfeldblu_ has quit [Ping timeout: 248 seconds]
<workmad3> Dagobert: ./configure --help will give you all the config options
enebo has joined #ruby
treehug88 has joined #ruby
<Dagobert> workmad3: configure is not yet there, just configure.in
<Dagobert> I am pulling from svn, not the tarball
<laudace> I have a rails app that works fine on my mac, but when I clone it to my linux box, rspec stops working with a "spec/support/helpers.rb:2:in `block in <top (required)>': uninitialized constant Features (NameError)". Yes I'm using rvm, and everything else is identical.
<laudace> Not sure even where to begin to figure out what's going wrong
iamjarvo_ has joined #ruby
gil has quit [Remote host closed the connection]
echevemaster has joined #ruby
krz has quit [Client Quit]
<workmad3> Dagobert: well, there's info in the README.md file of the repo too
geggam has joined #ruby
Hanmac has joined #ruby
ta has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Guest3652 has quit [Read error: Connection reset by peer]
<Dagobert> workmad3: I did read that, but „If `./configure` does not exist or is older than configure.in, run autoconf to (re)generate configure“ seems to lack necessary steps
Hanmac1 has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
<workmad3> Dagobert: how so? you run 'autoconf'
cmoneylulz has quit [Remote host closed the connection]
disorder20 has joined #ruby
<disorder20> hi
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
<disorder20> is the "retry" keyboard removed from the recent version of ruby?
<disorder20> I can't use it in a for loop
mike24 has joined #ruby
bal has quit [Quit: bal]
<Mon_Ouie> No, it isn't. But it was never about loops. It's used in begin … end blocks along with exception handling
gil has joined #ruby
gil has quit [Remote host closed the connection]
kevind has joined #ruby
<disorder20> ok so there's an error in my book
awkwords has quit [Ping timeout: 248 seconds]
<workmad3> disorder20: which book?
bradhe has joined #ruby
stytown has quit [Quit: stytown]
Macaveli has quit [Ping timeout: 240 seconds]
pwk has quit [Quit: Leaving]
<workmad3> disorder20: oh man... the second edition? :/
manlio has joined #ruby
<disorder20> yes
<godd2> disorder20 that's for an older version of ruby
ta has joined #ruby
<godd2> you should expect at least a few things that will break
<disorder20> oh ok
<workmad3> disorder20: I hope you didn't just buy that...
<Mon_Ouie> Oh yes, it did use to work in 1.8 actually
<Mon_Ouie> (1.8 has died since then)
<godd2> disorder20 what version of ruby do you have installed that youre learning on?
<disorder20> 2.0
wildroman2 has quit [Remote host closed the connection]
<disorder20> how many things have changed since 1.8?
jinie has quit [Ping timeout: 272 seconds]
<Mon_Ouie> 2431, precisely
tjr9898 has quit [Remote host closed the connection]
<Mon_Ouie> (Just "many" — not really something you can count)
<disorder20> lol
<workmad3> disorder20: new syntax, changed semantics, changed stdlibs...
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> disorder20: enough that learning from an old book will be problematic ;)
<disorder20> ok thanks
<workmad3> disorder20: but then, you just found that out anyway :)
osvimer has quit [Quit: leaving]
Trynemjoel has quit [Ping timeout: 245 seconds]
gil has joined #ruby
stytown has joined #ruby
darkxploit has joined #ruby
laudace has left #ruby [#ruby]
Xeago has quit [Read error: Connection reset by peer]
<godd2> disorder20 what page is that retry example on?
gr33n7007h has quit [Ping timeout: 252 seconds]
T_Hunt has joined #ruby
Xeago has joined #ruby
<godd2> pp 99 ?
relix has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
jottr_ has joined #ruby
Ankhers has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
ta has quit [Ping timeout: 240 seconds]
Beoran has quit [Ping timeout: 248 seconds]
SBoolean has joined #ruby
jinie has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
relix has quit [Client Quit]
relix has joined #ruby
relix has quit [Client Quit]
BalkM has quit [Quit: Computer has gone to sleep.]
BalkM has joined #ruby
havenwood has quit [Remote host closed the connection]
einarj has joined #ruby
Trynemjoel has joined #ruby
havenwood has joined #ruby
_maes_ has joined #ruby
gr33n7007h has joined #ruby
T_Hunt has quit [Ping timeout: 255 seconds]
_maes_ has quit [Client Quit]
bazy has joined #ruby
BalkM has quit [Read error: Connection reset by peer]
BalkM_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_maes_ has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
schaerli has quit [Remote host closed the connection]
zorak_ has quit [Ping timeout: 255 seconds]
<godd2> in 3rd edition of Programming Ruby as a footnote: "Prior versions of Ruby also supported the retry keyword as a looping mechanism. This has been removed in Ruby 1.9."
j_mcnally has joined #ruby
mconnolly has joined #ruby
jfran_ has joined #ruby
mconnolly has quit [Client Quit]
p0sixpscl has joined #ruby
banjara has joined #ruby
BalkM_ has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
mjsmith2 has quit []
claymore has joined #ruby
Beoran has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
manlio has quit [Ping timeout: 245 seconds]
zorak_ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
wildroman2 has joined #ruby
CaptainJet has joined #ruby
manlio has joined #ruby
tjr9898 has joined #ruby
maximski_ has quit []
havenwood has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
fabrice31 has joined #ruby
CingulateCortex is now known as CorpusCallosum
<centrx> AlexRussia, Those are special variables that identify the match groups from the most recent regex/string match
jmbrown412 has quit [Remote host closed the connection]
Takle has joined #ruby
<centrx> AlexRussia, They can also be accessed as my_match.captures[0], etc.
mikesplain has quit [Read error: Connection reset by peer]
jmbrown412 has joined #ruby
<centrx> AlexRussia, These $1 variables are a style inherited from Perl
mikesplain has joined #ruby
<AlexRussia> centrx: k, thx
maximski has joined #ruby
mikepack has joined #ruby
<AlexRussia> centrx: ah, then is what previous regexp call found in sources, yeah?
banister has joined #ruby
<AlexRussia> centrx: i mean, what founded gsub(regex)
Soda has joined #ruby
mrnugget has quit [Quit: mrnugget]
jprovazn has quit [Quit: Leaving]
<centrx> AlexRussia, Yes, that block where those $ variables are used is the rule by which gsub replaces the values in the regex.
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jmbrown412 has quit [Ping timeout: 245 seconds]
<AlexRussia> ou
<AlexRussia> centrx: then $1 == matched_string?
Xeago has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
<centrx> AlexRussia, $1 is the first match group which is in parentheses in the regular expression
manlio has quit [Ping timeout: 240 seconds]
shaileshg has quit [Quit: Connection closed for inactivity]
acrussell has joined #ruby
Dagobert has quit [Ping timeout: 256 seconds]
mike24 has quit [Ping timeout: 240 seconds]
manlio has joined #ruby
tjr9898 has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
bmurt_ has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
mikespla_ has joined #ruby
cmoneylulz has joined #ruby
BalkM_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mikesplain has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
scarolan has joined #ruby
bmurt_ has quit [Ping timeout: 240 seconds]
scarolan has quit [Client Quit]
AlexRussia has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
mconnolly has joined #ruby
Spami has joined #ruby
Xeago has joined #ruby
BalkM_ has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
dc_ has quit [Remote host closed the connection]
qwyeth has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
razum2um has quit [Quit: Leaving.]
BalkM_ has joined #ruby
kevind_ has joined #ruby
tjr9898 has joined #ruby
roshanavand has joined #ruby
mike24 has joined #ruby
_maes_ has joined #ruby
chrishough has joined #ruby
shevy has joined #ruby
Xeago has joined #ruby
jimbow has joined #ruby
jimbow has quit [Read error: Connection reset by peer]
BadQuanta has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
jrhorn424 is now known as zz_jrhorn424
freezey has joined #ruby
kevind has quit [Ping timeout: 240 seconds]
<shevy> guys
kevind_ is now known as kevind
<shevy> today I found the rescue
Xeago has joined #ruby
<shevy> I can actually compile ruby via gcc 4.3.1
<shevy> in the home dir
volk_ has quit [Quit: volk_]
kireevco has joined #ruby
<shevy> and from there it works
aspires has joined #ruby
<shevy> so I don't have to use perl or python \o~
awkwords has joined #ruby
jfran has joined #ruby
dc_ has joined #ruby
BalkM_ has quit [Ping timeout: 240 seconds]
<Beoran> shevy, on what platform is that???
<Hanmac> stone circle
bluOxigen has joined #ruby
IceyEC has quit [Ping timeout: 240 seconds]
<Hanmac> StoneCircleOS ;P
<shevy> Beoran an old red hat
<shevy> 2010 something
cmoneylulz has quit [Remote host closed the connection]
<banister> Hanmac guten tag
DaniG2k has quit [Quit: leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Beoran> shevy, I see
mikespla_ has quit []
jcromartie has joined #ruby
endash has joined #ruby
bradhe has joined #ruby
jottr_ has quit [Quit: WeeChat 0.4.3]
bluntman has joined #ruby
mikesplain has joined #ruby
mikesplain has quit [Client Quit]
hgl_ has joined #ruby
havenwood has joined #ruby
mijicd has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
vadzimt has quit [Quit: Textual IRC Client: www.textualapp.com]
wildroman2 has quit [Remote host closed the connection]
beanHolez has joined #ruby
<shevy> I was surprised I could even compile the latest ruby
<ericwood> the trick is to not build it from scratch
<ericwood> idk why people do that
<ericwood> there's binaries
<shevy> lol
hgl_ has quit [Ping timeout: 264 seconds]
<ericwood> seriously tho why bother
timonv has quit [Remote host closed the connection]
<shevy> because they don't have to wait for anyone packaging things up?
mikepack_ has joined #ruby
<ericwood> they build nightly, right?
<havenwood> we need more elves for wrapping
<ericwood> idk the stable is always available
sinfex has joined #ruby
<ericwood> shevy: I thought you were still on 1.8
<beanHolez> I have a lambda that is taking either a Hash or an Array as its argument. If a hash, it needs to use each_value, but just each if an array is passed. Is there a more elegant way than just having a conditional branch for each?
<shevy> ericwood I think half a year ago, I actually found out that tenderlove has packaged syck as a gem
<shevy> and that gem works
disorder20 is now known as kkuno
<ericwood> beanHolez: is the function being passed into each_value and map the same?
<shevy> so I can continue working with my invalid yaml files
theharshest has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<beanHolez> ericwood: yes, I need to apply the same logic to both
bricker`work has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
<ericwood> beanHolez: you could say: -> { |i| your code }; result = input.is_a?(Hash) ? input.each_object(&whatevs) : input.map(&whatevs)
<ericwood> beanHolez: so, still a conditional but you reuse the function passed in
<ericwood> just as kind of a stupid example
theharshest has quit [Read error: Connection reset by peer]
xaxisx has quit [Quit: xaxisx]
cmoneylulz has joined #ruby
theharshest has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
mikesplain has joined #ruby
tjr9898 has quit [Remote host closed the connection]
theharshest has quit [Read error: Connection reset by peer]
niftylettuce_ has joined #ruby
<beanHolez> ericwood: Ah, nicer than what I was going with. I'll give it a shot, thanks
St_Marx has quit [Quit: Ex-Chat]
charlied3 has joined #ruby
theharshest has joined #ruby
Ankhers has quit [Remote host closed the connection]
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ericwood> no problemo homie
Ankhers has joined #ruby
iamjarvo has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
theharshest has joined #ruby
dwayhs has joined #ruby
St_Marx has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
dangerou_ has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
iamjarvo has quit [Client Quit]
alex88 has quit [Quit: Leaving...]
dangerousdave has joined #ruby
theharshest has joined #ruby
User458764_NotHe has quit [Ping timeout: 248 seconds]
vt102 has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
yfeldblum has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
theharshest has joined #ruby
AlexRussia has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
theharshest has joined #ruby
icarus_ has joined #ruby
alexa_ has joined #ruby
pietr0 has joined #ruby
tjr9898 has joined #ruby
thomasxie has quit [Quit: Leaving.]
paulfm has quit []
tjr9898 has quit [Remote host closed the connection]
havenwood has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 248 seconds]
tjr9898 has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Read error: No route to host]
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uffs has joined #ruby
frankjpinto has joined #ruby
ephemerian has quit [Quit: Leaving.]
noop has joined #ruby
nedbat has joined #ruby
stytown has quit [Quit: stytown]
<nedbat> hi, total ruby newb here, i had sass and hub etc working fine on my ubuntu machine, but something has changed and I don't know what. Now "which ruby" reports nothing, but "type ruby" reports "ruby is hashed (/home/ned/.rbenv/shims/ruby)" What makes that happen, and how can I make ruby be on the path again instead?
Notte has joined #ruby
dblessing_ has joined #ruby
<ericwood> not that I can help you but how did you have ruby installed?
<ericwood> via the apt-get package?
<nedbat> ericwood: honestly, i'm not sure...
<ericwood> nedbat: lets fix that
<nedbat> ericwood: but "which sass" is the same story
<alexa_> Hey, I'm trying to solve a bit of a puzzle involving virtus. I have two classes inside the same namespace, where one has the other as a property type. But when trying to instanciate the former class, its classname is appended to the namespace, resulting in a nameerror when trying to locate the child. This might be a bit hard to follow, so here's a gist of the exception stack:
<ericwood> nedbat: did you accidentally delete your computer?
<ericwood> is this a rails app?
fabrice31_ has joined #ruby
<nedbat> ericwood: this is a django app, but uses sass, and I have hub installed also.
<nedbat> ericwood: I think the only thing I changed was to install a new version of my .bashrc, and I could have lost some local customization in the process.
cmoneylulz has quit [Remote host closed the connection]
<ericwood> why are you working with ruby then
<ericwood> I am confused
<nedbat> ericwood: sass and hub are ruby programs
frankjpinto has quit [Ping timeout: 264 seconds]
subraminion has joined #ruby
K3dare has quit [Ping timeout: 240 seconds]
<ericwood> ah okay
<ericwood> well
<ericwood> lets install ruby from scratch then
Dreamer3 has quit [Ping timeout: 252 seconds]
edgarjs_afk is now known as edgarjs
<ericwood> I highly recommend this + chruby for all of your ruby management needs: https://github.com/postmodern/ruby-install
<nedbat> ericwood: before we do that: do you know what .rbenv/shims means? where does that come from?
dblessing has quit [Ping timeout: 240 seconds]
dblessing_ is now known as dblessing
<ericwood> nedbat: rbenv is a ruby version manager
K3dare has joined #ruby
<nedbat> ericwood: ok, and shims?
<ericwood> shims are what it uses to hook into stuff to ensure the correct version
<ericwood> so ignore that
<ericwood> do you know how to use rbenv?
fabrice31 has quit [Ping timeout: 240 seconds]
<ericwood> I do not
timonv has joined #ruby
larsam has joined #ruby
fabrice31_ has quit [Ping timeout: 240 seconds]
BalkM_ has joined #ruby
francisfish has quit [Remote host closed the connection]
nicholas040 has joined #ruby
IceyEC has joined #ruby
<nedbat> ericwood: i don't know how to. I'm trying to understand what might have made this change in my system.
atmosx has quit [Remote host closed the connection]
Joulse has quit [Quit: Joulse]
<ericwood> no clue man
stytown has joined #ruby
atmosx has joined #ruby
havenwood has joined #ruby
xaxisx has joined #ruby
Dreamer3 has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
mikespla_ has joined #ruby
obs has quit [Quit: Konversation terminated!]
<nedbat> ericwood: thanks, I appreciate the help.
mconnolly has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
<pontiki> nedbat: did you install something that might have changed your .profile, .bash_profile, and/or .bashrc files?
mikesplain has quit [Ping timeout: 240 seconds]
<pontiki> or something else that might have changed you PATH envar?
BalkM_ has quit [Read error: No route to host]
<nedbat> pontiki: I may have once, and then overwritten that with a fresh copy of my own dotfiles
<nedbat> (which was foolish)
BalkM_ has joined #ruby
shvelo has joined #ruby
<pontiki> perhaps
mikecmpbll has quit [Ping timeout: 255 seconds]
<pontiki> since you had installed rbenv before (as indicated by the hashed commands), you might just install rbenv again and see if that clears things up
Squarepy has joined #ruby
<pontiki> do the directions to install django have you doing something like that?
timonv_ has joined #ruby
Wolland has joined #ruby
vyorkin has joined #ruby
MmmmPie has joined #ruby
IceDragon has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
BalkM_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
Wolland has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
upsell5 has quit [Quit: upsell5]
foo-bar- has quit []
freezey has quit [Remote host closed the connection]
icarus_ is now known as icarus
rippa has joined #ruby
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
paulfm has joined #ruby
nickenchuggets has quit [Ping timeout: 240 seconds]
deric_skibotn has joined #ruby
foo-bar- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Snarkz has joined #ruby
bradhe has quit [Remote host closed the connection]
Atttwww has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
DivineEntity has joined #ruby
BalkM_ has joined #ruby
Xeago_ has joined #ruby
Notte has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Wolland has joined #ruby
stytown has quit [Quit: stytown]
kkuno has quit [Ping timeout: 240 seconds]
troter has joined #ruby
<nedbat> pontiki: (sorry)
<nedbat> pontiki: this is a virtualbox for running open edx, and the installation instructions are probably well out of date... :(
andrewjanssen has joined #ruby
cmoneylulz has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 255 seconds]
BalkM_ has quit [Ping timeout: 240 seconds]
charlied3 has quit [Quit: WeeChat 0.4.2]
freezey has joined #ruby
yfeldblum has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
troyready has joined #ruby
saarinen has joined #ruby
Shidash has quit [Ping timeout: 248 seconds]
GriffinHeart has joined #ruby
stytown has joined #ruby
stytown has quit [Client Quit]
yfeldblum has quit [Ping timeout: 240 seconds]
qwyeth has joined #ruby
kayloos has quit [Ping timeout: 240 seconds]
K3dare has quit [Ping timeout: 256 seconds]
moritzs has joined #ruby
shredding has joined #ruby
uresu has quit [Quit: uresu]
charlied3 has joined #ruby
SubSignal has joined #ruby
lemur has joined #ruby
DrShoggoth has joined #ruby
jerius has quit []
uresu has joined #ruby
stytown has joined #ruby
GriffinHeart has quit [Ping timeout: 256 seconds]
failshel_ has joined #ruby
lemur has quit [Remote host closed the connection]
kireevco has left #ruby [#ruby]
wallerdev has joined #ruby
d33d33 has joined #ruby
lemur has joined #ruby
treehug88 has quit [Ping timeout: 264 seconds]
K3dare has joined #ruby
failshe__ has joined #ruby
jobewan has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Remote host closed the connection]
mg^afk is now known as mg^
andrewjanssen has quit [Remote host closed the connection]
failshel_ has quit [Ping timeout: 248 seconds]
keystonelemur has joined #ruby
Spami has joined #ruby
gizless has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sigurding has joined #ruby
volk_ has joined #ruby
lemur has quit [Ping timeout: 248 seconds]
charlied3 has quit [Quit: WeeChat 0.4.2]
noop is now known as noopq
naquad has joined #ruby
charlied3 has joined #ruby
codecop has joined #ruby
bradhe has joined #ruby
sigurding_ has joined #ruby
doev has quit [Quit: Verlassend]
sigurding has quit [Ping timeout: 240 seconds]
sigurding_ is now known as sigurding
mikespla_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has quit [Remote host closed the connection]
echevemaster has quit [Ping timeout: 240 seconds]
klaut_ has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
Squarepy has quit [Remote host closed the connection]
carraroj has joined #ruby
tjr9898 has joined #ruby
omosoj has joined #ruby
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
Arkaniad|Laptop has quit [Read error: Connection reset by peer]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
_688as has joined #ruby
timonv_ has quit [Remote host closed the connection]
<_688as> has everyone switched over to 2 or is 1.9.3 still where it's at?
<centrx> 2.1 is where it's at
<centrx> 1.9.3 is in maintenance mode
<centrx> From a language perspective, 1.9, 2.0, and 2.1 are very similar
banjara has joined #ruby
<centrx> There are significant improvements in the newer versions though, such as big speed improvements
Shidash has joined #ruby
razum2um has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.2]
<_688as> i haven't really used since 1.8
sarlalian has joined #ruby
<centrx> 1.9 had some big, backwards-incompatible changes
<_688as> ya
maximski has quit []
<centrx> From 1.9 up, there is little reason not to upgrade, because they are 99% backwards-compatible
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarlalian has quit [Client Quit]
banister has joined #ruby
sarlalian has joined #ruby
benzrf|offline is now known as benzrf
<_688as> alright, thanks
<centrx> 1.9 is still fairly recent though, and found as the default install in many current distributions
upsell5 has joined #ruby
<nedbat> centrx: any idea why the big changes weren't called 2.0?
wald0 has quit [Quit: Lost terminal]
Zackio has quit [Quit: ZNC - http://znc.in]
<centrx> It's a change in versioning style, before the versioning was 1.1, 1.2, etc
workmad3 has quit [Ping timeout: 245 seconds]
mikesplain has joined #ruby
leah has quit [Quit: Peaces]
kkuno has joined #ruby
failshe__ has quit [Remote host closed the connection]
jottr has joined #ruby
mikesplain is now known as mikespla_
failshell has joined #ruby
<nedbat> centrx: I mean, when they were deciding to make backward-breaking changes from 1.8, why didn't they number it 2.0? Why choose 1.9?
failshell has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
failshell has joined #ruby
IceDragon has quit [Ping timeout: 248 seconds]
Neomex has quit [Quit: Leaving]
<centrx> nedbat, Because the versioning style was backwards-incompatible changes can be in different version number in the second place, and the third place is the minor version number for only backwards-compatible changes
slainer6_ has quit [Remote host closed the connection]
<nedbat> centrx: meaning that 1.4->1.5 could have also been incompatible?
<centrx> nedbat, Yes
<nedbat> and that has changed now, or not?
andrewjanssen has joined #ruby
<centrx> nedbat, Starting with Ruby 2.0, they will use a different naming style called Semantic Versioning
benzrf is now known as benzrf|offline
<nedbat> centrx: yes, I see.
wallerdev has quit [Quit: wallerdev]
soulcake has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<drizz> http://semver.org/ for reference
sigurding has quit [Quit: sigurding]
soulcake has joined #ruby
sonofflynn has left #ruby [#ruby]
nickenchuggets has joined #ruby
razum2um has quit [Quit: Leaving.]
vereteran has joined #ruby
<nedbat> drizz: yes, thanks. I was surprised Ruby wasn't doing that already, I'd thought people always used version numbers that way.
edgarjs is now known as edgarjs_afk
naquad has quit [Ping timeout: 248 seconds]
benzrf|offline is now known as benzrf
reset has joined #ruby
dwayhs has quit [Ping timeout: 245 seconds]
<centrx> No, only since the Great Versioning Inflation of the New Millennium
razum2um has joined #ruby
uresu has quit [Quit: uresu]
iamjarvo has joined #ruby
<nedbat> centrx: inflation? :)
<centrx> Browsers with versions like "35", as though they have been around for centuries
cmoneylulz has quit [Remote host closed the connection]
<centrx> Slackware jumping from Version 4 to Version 7 in one release
<nedbat> centrx: well, that is completely counter to semantic versioning.
kiki_lam1 is now known as kiki_lamb
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx> It's part of the disease.
<centrx> 0.9 is a good enough version number
jerius has joined #ruby
testcore has joined #ruby
reset has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
<nedbat> centrx: you don't like the numbers to mean something?
Takle has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
reset has joined #ruby
<nedbat> centrx: seems funny to object to "35" then.
keystonelemur has quit [Remote host closed the connection]
sinfex has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
jaimef has quit [Excess Flood]
omosoj has quit [Ping timeout: 248 seconds]
<drizz> I wonder if they're gonna roll back to 1 when they hit 100
j_mcnally has joined #ruby
dapz has joined #ruby
senayar has quit [Remote host closed the connection]
momomomomo has joined #ruby
SubSignal has quit [Remote host closed the connection]
maestrojed has joined #ruby
senayar has joined #ruby
edgarjs_afk is now known as edgarjs
freezey has joined #ruby
<nedbat> centrx: in your 0.9 version number, what is the "0." part doing there?
lemur has joined #ruby
obs has joined #ruby
obs has quit [Client Quit]
shredding has quit [Quit: shredding]
<benzrf> nedbat: multiplying by 10^-2
tjr9898 has quit [Remote host closed the connection]
<benzrf> i mean 10^-1
<benzrf> also, since when do you use ruby
Neomex has joined #ruby
<nedbat> benzrf: i can be a polyglot! :)
chipotle has joined #ruby
lemur has quit [Read error: Connection reset by peer]
qba73 has quit []
charlied3 has quit [Ping timeout: 248 seconds]
senayar has quit [Ping timeout: 240 seconds]
<benzrf> but i thought people had to use either python or ruby not both
lemur has joined #ruby
<benzrf> whatever happened to orthodoxy
<benzrf> ;-;
<nedbat> benzrf: i barely use ruby....
IceDragon has joined #ruby
wallerdev has joined #ruby
<nedbat> which is why I am here getting help on untangling my installation
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
funktor has quit [Remote host closed the connection]
havenwood has joined #ruby
<benzrf> tskogberg:
<benzrf> *tsk
<benzrf> nedbat: why do you barely use it
jaimef has joined #ruby
<benzrf> when it has such nice OO and decent language support for HOFs???
<nedbat> benzrf: orthodoxy! :)
cmoneylulz has joined #ruby
<benzrf> nedbat: fie
lkba has joined #ruby
jprovazn has joined #ruby
chrishough has quit [Quit: chrishough]
relix has joined #ruby
failshell has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
tjr9898 has joined #ruby
yfeldblum has joined #ruby
BalkM_ has joined #ruby
kaspergrubbe has joined #ruby
roolo has quit [Quit: Leaving...]
carraroj has quit [Quit: Konversation terminated!]
maestrojed has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
razrunelord has quit []
failshell has joined #ruby
johnrover has joined #ruby
subraminion has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
Alina-malina has quit [Quit: Leaving]
johnrover has left #ruby [#ruby]
dgaffney has joined #ruby
johnrover has joined #ruby
Heskie has quit []
<dgaffney> yo - anyone know how to properly escape a hash in Yard Docs?
kireevco has joined #ruby
mikecmpbll has joined #ruby
<dgaffney> as in, I want to provide some embedded hash like {one: 1} to the documentation, and whenever I do it yardoc just prints it out as if it were trying to use the braces for as the notation for links
<shevy> I don't get this
<shevy> it's 8 o clock at night... and almost 30 °C
banister has joined #ruby
banister has quit [Max SendQ exceeded]
circ-user-7rjXe has joined #ruby
<centrx> dgaffney, Did you try backslashes?
banister has joined #ruby
<dgaffney> yeah, as in # @param params [Hash] \{one: 1\} - no dice
Notte has joined #ruby
nedbat has left #ruby [#ruby]
andrewjanssen has quit [Quit: Leaving...]
epochwolf has quit [Ping timeout: 240 seconds]
<shevy> wow
<shevy> that's ruby for you
Zackio has joined #ruby
<shevy> when the comments become more complicated than the real code at hand
MusachiMiyamotoF has joined #ruby
gruz0[russia] has joined #ruby
Alina-malina has joined #ruby
<centrx> Code should be self-documenting
<centrx> Ruby makes this possible
kalusn has joined #ruby
<dgaffney> meh - not a good enough argument when you're leaving your job
epochwolf has joined #ruby
<existensil> Still nice to have some usage examples at the tops of classes other devs might use
<shevy> ack
<shevy> why are you leaving your job?
<dgaffney> phd time
<shevy> oh
tjr9898 has quit [Remote host closed the connection]
<dgaffney> heh
<centrx> ew
mconnolly has joined #ruby
jespada has joined #ruby
<dgaffney> # @param params [Hash] `{one: 1}`
<dgaffney> and add redcarpet to the proj and add --markup=markdown to the yardoc command and you're golden.
<wasamasa> code-with-codecode-code?
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<dgaffney> yo dog
tjr9898 has joined #ruby
lemur has quit [Remote host closed the connection]
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
ValicekB has quit []
qhartman has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<shevy> that's why dgaffney has the big brains
<shevy> I realized that my brain can't deal with complexity
<shevy> so I drag everything down to my level and there I will beat it
blackmesa has joined #ruby
<shevy> The problem I had with decorating my comments with special markup was that I had to look at it whenever I looked at the code
<shevy> that was very distracting, like visually distracting from the flow of the code
naquad has joined #ruby
vereteran has quit [Ping timeout: 240 seconds]
reebs has joined #ruby
<dgaffney> hahah - thats totally where I'm at too, shevy - unfortunately the level of my devs is kind of all over the place and I need to leave them with something that will behave very well
tacos1de has quit [Ping timeout: 264 seconds]
<dgaffney> and when it doesn't, there's gotta be enough for them to hold on to
kirun has joined #ruby
Wolland has joined #ruby
<beanHolez> I want to use a lambda as a block for a .each enumerator, but can't seem to make it work. Is it even possible?
yetanotherdave has joined #ruby
<dgaffney> beanHolez: code code code
lxsameer has joined #ruby
<beanHolez> I have something like a = lambda {|i| i*5}; [1,2,3,4,5].each(&:a)
dapz has quit [Quit: Textual IRC Client: www.textualapp.com]
Wolland has quit [Read error: Connection reset by peer]
<dgaffney> mm
gruz0[russia] has quit [Quit: Leaving]
tacos1de has joined #ruby
<yxhuvvd> beanHolez: that would be &a, not &:a.
<dgaffney> [1,2,3,4,5].collect{|x| a.call(x)} would do it?
<beanHolez> yxhuvvd: Thank you! Ugh, such a small change
ndrei has quit [Ping timeout: 240 seconds]
BalkM__ has joined #ruby
<dgaffney> ahh nice yxhuvvd
chrishough has joined #ruby
koyd has joined #ruby
Wolland has joined #ruby
<shevy> dgaffney have you considered writing a detailed tutorial + explanations of it including code samples?
<yxhuvvd> beanHolez: I can recommend reading up on what & and Symbol#to_proc actually does.
<beanHolez> yxhuvvd: Any particular reading outside of docs?
<dgaffney> shevy: I have indeed the part that they are actually most likely to grow out I have a couple demos in place - that's the nice thing about leaving with months of runway as a senior dev - I can totally leave them in a safe spot with super well doc'ed stuff
andrewjanssen has joined #ruby
BalkM_ has quit [Read error: Connection reset by peer]
terrellt has quit [Remote host closed the connection]
SBoolean has quit [Remote host closed the connection]
dapz has joined #ruby
terrellt has joined #ruby
x1337807x has joined #ruby
charlied3 has joined #ruby
Aryasam has joined #ruby
mikepack_ has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 240 seconds]
failshell has quit [Read error: Connection reset by peer]
peret has quit [Remote host closed the connection]
failshell has joined #ruby
mikepack has joined #ruby
failshell has quit [Remote host closed the connection]
elikem has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
rpage has quit [Remote host closed the connection]
dik_dak has joined #ruby
jdj_dk has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
dgaffney has quit []
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
ramfjord has quit [Quit: leaving]
lemur has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ValicekB has joined #ruby
knut has joined #ruby
pencilcheck has quit [Remote host closed the connection]
omosoj has joined #ruby
tjr9898 has joined #ruby
<lectrick> Exercise: Is it possible in Ruby to make this work and return true? "anon_function = 1.arg + 2.arg; anon_function(3,4)==7"
jonahR has joined #ruby
pencilcheck has joined #ruby
shvelo has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 255 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
knut is now known as knutmithut
timonv has joined #ruby
<shevy> no
mr_foobar_baz has joined #ruby
<shevy> the first assignment will assign to a local variable
apeiros has joined #ruby
ndrei has joined #ruby
pencilcheck has quit [Ping timeout: 264 seconds]
<shevy> well
lkba has quit [Ping timeout: 240 seconds]
<shevy> >> def foo; puts 'hi'; end; foo = 5; foo
<eval-in_> shevy => 5 (https://eval.in/170602)
<shevy> >> def foo; puts 'hi'; end; foo = 5; foo()
<eval-in_> shevy => hi ... (https://eval.in/170603)
<shevy> I don't know what is 1.arg though
<Hanmac> >> anon_function = proc{ |a,b| a + b }; anon_function.(3,4)==7
<eval-in_> Hanmac => true (https://eval.in/170604)
mijicd has quit [Remote host closed the connection]
<shevy> but he did not use a proc! :(
<shevy> and the .( is ugly
cwang has joined #ruby
charliesome has joined #ruby
roshanavand has quit [Quit: Leaving]
ValicekB has quit []
failshell has joined #ruby
<shevy> >> class Integer; def arg; return 5; end; end; def anon_function(a,b); return a+b; end; anon_function = 1.arg + 2.arg; anon_function(3,4)==7
<eval-in_> shevy => true (https://eval.in/170606)
<shevy> Hanmac, how how it is in your city right now?
<shevy> I mean
<shevy> how *hot
Hobogrammer has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
Hanmac1 has joined #ruby
Nodfound has joined #ruby
Nodfound has left #ruby [#ruby]
omosoj has quit [Quit: Leaving]
maximski has joined #ruby
mosoj has joined #ruby
tjr9898 has quit [Remote host closed the connection]
mijicd has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
BalkM___ has joined #ruby
Zenigor has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
pencilcheck has joined #ruby
siflyn has joined #ruby
BalkM__ has quit [Read error: Connection reset by peer]
charlied3 has quit [Quit: WeeChat 0.4.2]
lkba has joined #ruby
jdj_dk has quit [Remote host closed the connection]
maximski has quit []
wallerdev has quit [Ping timeout: 240 seconds]
Zenigor has joined #ruby
freezey has quit [Remote host closed the connection]
xaxisx has quit [Quit: xaxisx]
wallerdev has joined #ruby
ValicekB has joined #ruby
cmoneylulz has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
reebs has quit [Quit: Textual IRC Client: www.textualapp.com]
cmoneylulz has joined #ruby
mconnolly has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
mehlah has quit [Quit: Leaving...]
mconnolly has joined #ruby
GriffinHeart has joined #ruby
sepp2k has joined #ruby
iamjarvo_ has joined #ruby
djbkd has quit [Remote host closed the connection]
spastorino has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 264 seconds]
circ-user-7rjXe has quit [Ping timeout: 248 seconds]
IceyEC has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Ping timeout: 248 seconds]
GriffinHeart has quit [Ping timeout: 240 seconds]
DivineEntity has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
ephemerian has joined #ruby
IceyEC has joined #ruby
<beanHolez> Still struggling with this recursive escaping. Can't seem to get it right. Code is here: https://gist.github.com/bholzer/25e8b25b6c6a14b941ee
gregf has quit [Quit: WeeChat 0.4.3]
<beanHolez> Setting the value in lines 14 and 16 is useless, because it doesn't change the value in place, but I'm not sure how to get the returns right.
adelcampo has joined #ruby
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
failshell has quit [Remote host closed the connection]
<apeiros> beanHolez: assigning to a local variable doesn't what you want it to
FLeiXiuS`` has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
xaxisx has joined #ruby
IceyEC has quit [Ping timeout: 248 seconds]
<beanHolez> apeiros: exactly. That's where the problem lies, but I'm not sure HOW to go about fixing it in this case
<apeiros> for Array, use map!
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> for Hash, use hash.each do |k,v| hash[k] = escape(v) end
yfeldblum has joined #ruby
pushpak has joined #ruby
failshel_ has joined #ruby
gregf has joined #ruby
gregf has quit [Client Quit]
saarinen has quit [Quit: saarinen]
IceyEC has joined #ruby
<beanHolez> apeiros: ahhhhh, I see. Thanks for your help, works like a charm
ValicekB has quit []
<lectrick> shevy: the idea was that 1.arg would return a lambda-like object that takes the 1st argument and applies later sent messages to it
MusachiMiyamotoF has quit [Ping timeout: 256 seconds]
<apeiros> beanHolez: btw., an alternative for the if/elsif: case value; when String …; when Array, Hash …; else raise "Invalid data"; end
adelcampo is now known as doritostains
<apeiros> ooooh… I just had an idea for my programming language
doritostains has quit [Quit: doritostains]
<beanHolez> apeiros: I started doing exactly that, but didn't realize you could have multiple comparisons with when
<beanHolez> like: when Array, Hash
adelcampo has joined #ruby
<apeiros> if … [else if …] [else … | unreachable else | unused else] end
adelcampo is now known as doritostains
nanoyak has quit [Quit: Computer has gone to sleep.]
Jam has joined #ruby
<apeiros> actually the last one not being optional. i.e., `else`, `unreachable else` or `unused else` is mandatory
Jam is now known as Guest11264
mr_foobar_baz has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
bradhe has joined #ruby
awkwords has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cmoneylulz has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<apeiros> btw. beanHolez - don't put such logic into a controller. at the very least, move it into a library.
momomomomo has quit [Remote host closed the connection]
momomomomo has joined #ruby
treehug88 has joined #ruby
yfeldblum has joined #ruby
Shidash has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
JoshGlzBrk has joined #ruby
charliesome has joined #ruby
rayners has quit [Read error: No route to host]
<beanHolez> aperios: What's the problem with having it where it is right now? I need this to happen with every response. I was considering even making it rack middleware, but have never done anything like that, so wasn't sure about the best direction
<beanHolez> Not that I disagree, just genuinely curious
mikepack has quit [Remote host closed the connection]
<apeiros> and use tab completion for nicks. less embarrassing :-p
jtiggo has joined #ruby
<beanHolez> Whoa, didn't know that was even a feature. Don't use IRC often
<apeiros> google lean/small controllers
<yxhuvvd> personally, I wonder why you are implementing escaping yourself instead of using something that is already built in.
stytown has quit [Quit: stytown]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<beanHolez> yxhuvvd: We use RABL as a templating solution for our API, and they have an option for global escaping, but it escapes literally everything: numbers, integers, booleans, everything.
jottr has joined #ruby
ringarin has joined #ruby
<beanHolez> So this causes problems on the frontend when trying to do things like check truthiness of booleans, for example
ringarin has quit [Client Quit]
<beanHolez> lol, "numbers, integers" whoops
niftylettuce_ has quit [Quit: Connection closed for inactivity]
bricker`work has quit [Quit: Lost terminal]
Arkaniad has quit [Ping timeout: 248 seconds]
DivineEntity has joined #ruby
claymore has quit [Quit: Leaving]
blackmesa has joined #ruby
<beanHolez> When we get a response from the server that is something like {is_admin: "false"} instead of {is_admin: false}, we're in for a world of hurt
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
stytown has joined #ruby
saarinen has quit [Quit: saarinen]
circ-user-0GAHI has joined #ruby
<apeiros> given that json doesn't have integers - lol indeed ;-p
ta has joined #ruby
<yxhuvvd> apeiros: there is still a difference between numbers and strings though.
<apeiros> orly? :D
manlio has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
<apeiros> but all booleans are numbers!
tjr9898 has joined #ruby
Pulpie has joined #ruby
wildroman2 has joined #ruby
BalkM____ has joined #ruby
<Pulpie> "e".to_i shows 0. Is there a way for it to return nil instead of 0?
<yxhuvvd> Pulpie: Integer("e") rescue nil
cmoneylulz has joined #ruby
<Pulpie> interesting so thats a cast to int right?
<Pulpie> is there a reason to_i doesn't use this method?
Kricir has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<apeiros> yxhuvvd, Pulpie: add `, 10` as second argument, otherwise depending on the situation, you'll get unexpected issues
<apeiros> >> "09".to_i
<eval-in_> apeiros => 9 (https://eval.in/170614)
<apeiros> >> Integer("09")
<eval-in_> apeiros => invalid value for Integer(): "09" (ArgumentError) ... (https://eval.in/170615)
<yxhuvvd> good point
<apeiros> >> Integer("09", 10)
<eval-in_> apeiros => 9 (https://eval.in/170616)
BalkM___ has quit [Ping timeout: 264 seconds]
moritzs has quit [Ping timeout: 255 seconds]
<apeiros> it's really annoying that Integer(int, 10) raises :(
<apeiros> >> Integer(9, 10)
<eval-in_> apeiros => base specified for non string value (ArgumentError) ... (https://eval.in/170617)
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
<Pulpie> if (Integer(data[0], 10) rescue nil == 0) this doesn't seem to work as expected either
<arup_r> what that second argument 10 is doing there..?
<yxhuvvd> arup: it specifies base.
<apeiros> Pulpie: you probably mess up precedence
<Pulpie> ahh
wildroman2 has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 256 seconds]
<yxhuvvd> >> Integer("10", 2)
<eval-in_> yxhuvvd => 2 (https://eval.in/170619)
<apeiros> rescue nil == 0 is probably rescue (nil == 0), not rescue nil) == 0
<Pulpie> yeah up I did
<arup_r> Interesting.. I was never familiar with it
<Pulpie> if ((Integer(data[0], 10) rescue nil) == 0) works best
ValicekB has joined #ruby
binaryhat has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<Pulpie> in ruby 0 is true but so is 1 or anything not nil right?
<apeiros> if all you do is compare against 0, you're probably better of doing data[0] == "0"
<apeiros> false and nil are false-ish
<apeiros> all other values are true, yes
binaryhat has joined #ruby
paulfm has quit []
Arkaniad has joined #ruby
skaflem has quit [Quit: Leaving]
<beanHolez> Well I'll be. Never knew that
<beanHolez> >> !!0
<eval-in_> beanHolez => true (https://eval.in/170621)
sgen has joined #ruby
carraroj has joined #ruby
Hanmac has joined #ruby
mattstratton has joined #ruby
Guest11264 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulfm has joined #ruby
jfran_ has quit [Read error: Connection reset by peer]
carraroj has quit [Client Quit]
jfran_ has joined #ruby
CaptainJet has quit [Ping timeout: 264 seconds]
uffs has quit [Ping timeout: 248 seconds]
uffs1 has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
<arup_r> yxhuwd: >> Integer("0x1a")
<arup_r> it gives the value
dangerousdave has joined #ruby
<arup_r> yxhuvd: the below gives value without base
<arup_r> >> Integer("0x1a")
<eval-in_> arup_r => 26 (https://eval.in/170622)
coderhs has joined #ruby
<arup_r> why not then
<arup_r> >> Integer("09")
<eval-in_> arup_r => invalid value for Integer(): "09" (ArgumentError) ... (https://eval.in/170623)
<arup_r> I am a bit confused.. here
mikepack has joined #ruby
zorak_ has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
elikem has quit [Ping timeout: 240 seconds]
iamjarvo_ has quit [Read error: Connection reset by peer]
<apeiros> arup_r: because leading zero is octal
<apeiros> and 9 is not a valid digit in octal
iamjarvo has joined #ruby
mikepack_ has joined #ruby
<apeiros> >> Integer("0777")
<eval-in_> apeiros => 511 (https://eval.in/170624)
mikepack has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
DivineEntity has quit [Ping timeout: 248 seconds]
maximski has joined #ruby
<havenwood> >> 0777
<eval-in_> havenwood => 511 (https://eval.in/170625)
<arup_r> Ok.. to be safe it is best practice to mention *base* there... right ?
<havenwood> ^like an octal literal
Hobogrammer has quit [Ping timeout: 264 seconds]
<apeiros> arup_r: if you don't expect different bases, yes
xcesariox has joined #ruby
vivekrai has joined #ruby
<vivekrai> Hi
<wallerdev> hey!
<vivekrai> Has anyone over here used the Ox XML Parser?
<arup_r> Nice learning it is for today for me....
<end_guy> >> "1000".to_i(2)
<eval-in_> end_guy => 8 (https://eval.in/170626)
<xcesariox> arup_r: what did you learnt?
<vivekrai> wallerdev: https://github.com/ohler55/ox
<wallerdev> thanks
Zesty has joined #ruby
aspires has quit []
Kricir has quit [Remote host closed the connection]
<wallerdev> i think xml is on the way out
<wallerdev> maybe switch to json
<pontiki> you must speak to the vast number of java coders before you assert that
nanoyak has joined #ruby
pencilcheck has quit [Ping timeout: 245 seconds]
<wallerdev> as far as im concerned java doesnt exist anymore
<shevy> pontiki
<vivekrai> I understand but unfortunately, the program I am targeting doesn't give output in JSON format (yet)
<shevy> do you have blood on your hands?
<shevy> aka did you write java code
<arup_r> xcesariox: Kernel#integer take second argument I never noticed.. soo :-)
<pontiki> it still makes up nearly 40% of web aps, though
<wallerdev> ive never used Integer
AlexRussia_ has joined #ruby
<wallerdev> always to_i
FLeiXiuS`` has quit [Ping timeout: 255 seconds]
<shevy> ack
<wallerdev> to_i is superior
AlexRussia has quit [Read error: Connection reset by peer]
<pontiki> i do, shevy, but i atone daily
<xcesariox> arup_r: lol okay.
<wallerdev> Integer is like python style
<wallerdev> str(5)
<vivekrai> wallerdev: So, I kind of need to work with the output XML data using this library (or any other easy, suitable one) and get a Hash out of it.
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> vivekrai: if *all* you want is xml -> ruby hash, look at the nori gem
phutchins has quit [Ping timeout: 245 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
circ-user-0GAHI has quit [Remote host closed the connection]
<wallerdev> or rexml
<pontiki> or that
uffs1 has quit [Ping timeout: 256 seconds]
<arup_r> xcesariox: It seems your question has other smell.. What is that ? :-)
<vivekrai> wallerdev: ReXML would be ultra slow for the kind of targetted output. pontiki : I don't know how fast that would be. Is it built on C?
<arup_r> wallerdev: why not Nokogiri ?
j_mcnally has quit [Ping timeout: 264 seconds]
<wallerdev> ah
<wallerdev> well you didnt say you had a large data set haha
Kricir has joined #ruby
<apeiros> wallerdev: I don't really like the Kernel#Capitalized methods :-/
<apeiros> I'd prefer e.g. Integer.from_string("10", 2)
<wallerdev> yeah capitalized methods in general are weird
<wallerdev> especially since they require parens
<apeiros> they don't
<apeiros> >> Integer "10"
<wallerdev> o.o
<eval-in_> apeiros => 10 (https://eval.in/170628)
<wallerdev> did they change that or am i dumb
<apeiros> it just needs to be unambiguous
<apeiros> Integer # without args, is always the constant
<pontiki> nori is built on nokogiri
<apeiros> Kernel.Integer # is always the method
<apeiros> Kernel::Integer # is always the constant again
awkwords has joined #ruby
<apeiros> Kernel::Integer() # is always the method
<wallerdev> hm
<vivekrai> pontiki: Working with Nokogiri is problematic. Also, it introduces a lot of other dependencies too. Do you have any other in mind?
<apeiros> wallerdev: if the choice is only between "did it change" and "is wallerdev dumb", then I fear it's the latter :)
<wallerdev> :D
<pontiki> vivekrai: nope
<wallerdev> oh well
judd7 has joined #ruby
<vivekrai> Or let's just forget about the problem and try to answer .. given I have a nested structure (of arrays or some custom data structure).. how do I build a Hash out of it?
<wallerdev> depends what the data looks like?
<wallerdev> >> Hash[1, 2, 3, 4]
<eval-in_> wallerdev => {1=>2, 3=>4} (https://eval.in/170631)
CaptainJet has quit [Ping timeout: 240 seconds]
<vivekrai> A sample blast XML output
CaptainJet has joined #ruby
dapz has joined #ruby
<vivekrai> wallerdev: Let's just assume the data is as nested as shown and I have a method to iterate over it.
judd7 has quit [Client Quit]
Hobogrammer has joined #ruby
kalusn has quit [Remote host closed the connection]
<wallerdev> just create your hash and assign more hashes to the keys or whatever?
<vivekrai> How can I create a Hash? Point me to some library implementation if possible :)
judd7 has joined #ruby
<wallerdev> >> my_cool_hash = {}
<eval-in_> wallerdev => {} (https://eval.in/170632)
<wallerdev> hope that helps
<wallerdev> lol
<vivekrai> wallerdev: I may lack a little implementation skills and that is what I have been trying to do. Kind of recursively add keys into the hash.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
<wallerdev> >> my_cool_hash = {}; my_dumb_hash = {1 => 2}; my_cool_hash['some key'] = my_dumb_hash; my_cool_hash['some key'][1]
<eval-in_> wallerdev => 2 (https://eval.in/170633)
<wallerdev> etc ?
eka has joined #ruby
Snarkz has joined #ruby
<vivekrai> wallerdev: I understand that you are trying to help. Thanks.
seanosaur has joined #ruby
<wallerdev> lolol
DivineEntity has joined #ruby
<terrellt> Without more information or some code we can't help.
<wallerdev> good effort
average has joined #ruby
<wallerdev> a+ for trying ;(
<terrellt> The sledgehammer for transforming one enumerable to another is #each_with_object
<average> is there a ruby advent calendar ?
<vivekrai> wallerdev: I can surely show my shot at it.
awkwords is now known as i0n
i0n has quit [Changing host]
i0n has joined #ruby
i0n is now known as awkwords
enebo has quit [Quit: enebo]
m8 has joined #ruby
<pontiki> vivekrai: what you seem to be asking for sounds quite trivial to me, so i'm thinking i must not understand the issue
<pontiki> you wish to create a hash, add keys to it, recursively
aspires has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<vivekrai> pontiki: Let me show you what I did, it's working but only upto a few keys. Can't explain why.
zorak has joined #ruby
<pontiki> wokay
bricker`work has joined #ruby
mconnolly has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
DivineEntity has quit [Client Quit]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
dblessing has quit [Quit: dblessing]
maestrojed has quit [Quit: Computer has gone to sleep.]
Arkaniad has quit [Ping timeout: 240 seconds]
cmoneylulz has quit []
mosoj has quit [Ping timeout: 245 seconds]
nanoyak has quit [Read error: Connection reset by peer]
qmfnp has joined #ruby
nanoyak has joined #ruby
havenwood has quit [Remote host closed the connection]
stytown has quit [Quit: stytown]
Takle has quit [Remote host closed the connection]
havenwood has joined #ruby
<vivekrai> pontiki: Please have a look at it. The hashed output is terminated prematurely and I don't know why.
<vivekrai> wallerdev: Please see
yfeldblum has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
dblessing has joined #ruby
maestrojed has joined #ruby
AlexRussia_ is now known as AlexRussia
pencilcheck has joined #ruby
yakko has joined #ruby
x1337807x has joined #ruby
<zalmoxes> anyoen have experience with scrapping data from a webpage that uses ajax?
nicholas040 has joined #ruby
<zalmoxes> i used mechanize to scrape a page, but the data i need isn't actually there, it's being fetched with javascript
siflyn has quit []
havenwood has quit [Ping timeout: 264 seconds]
MrDoctor has quit [Ping timeout: 255 seconds]
sailias has quit [Read error: Connection reset by peer]
chrishough has quit [Ping timeout: 240 seconds]
diana has joined #ruby
mconnolly has joined #ruby
senayar has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
<existensil> zalmoxes: might want to look at phantomjs
gtc has quit [Remote host closed the connection]
chrishough has joined #ruby
<existensil> headless webkit
bradhe has joined #ruby
stytown has joined #ruby
<existensil> its javascript, but, eh... we all have to know javascript anyways
<pontiki> vivekrai: if i told you that it only has the *last* hit, would that be enough of a clue?
<pontiki> vivekrai: i.e.: you're replacing the key "Hit" over and over again, instead of treating as an array
yfeldblum has joined #ruby
<mg^> Thankfully I don't have to know javascript.
stytown has quit [Client Quit]
diana has quit [Killed (idoru (Spam is off topic on freenode.))]
<mg^> I have to know too many things as it is.
<vivekrai> pontiki: Hmm. I noticed that part.. how could I handle it then? convert to array rather than dict?
BalkM_____ has joined #ruby
BalkM____ has quit [Read error: Connection reset by peer]
acrussell has quit [Quit: Leaving.]
<pontiki> the IterationHits is your actual array, you should treat that accordingly.
olivier_bK has joined #ruby
<zalmoxes> doesn't the ajax script make a GET request in the background anywy? I don't get why i'd need something like phantomJS to render a page instead of getting the data directly
<pontiki> i daresay BlastOutput_iterations is *also* going to be an array
einarj has joined #ruby
Macaveli has joined #ruby
<existensil> zalmoxes: you fetch the page with phantomjs, let the page make its ajax request (either waiting, or hooking into a ready event, etc), then you can scrape the page like any other
diegoviola has joined #ruby
stytown has joined #ruby
<Macaveli> hi all
timonv has quit [Remote host closed the connection]
timgauthier has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MmmmPie has quit [Ping timeout: 240 seconds]
bradhe has quit [Read error: Connection reset by peer]
Macaveli has quit [Remote host closed the connection]
Macaveli has joined #ruby
dblessing has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
<existensil> zalmoxes: if you want to just figure out what requests its making and build them yourself, that would work too...
dblessing has joined #ruby
<existensil> no phantomjs required
aspires has quit []
<existensil> but if the logic is complex or it requires cookies or something else, phantomjs is a great solution
<Macaveli> whats does the x :y bit do max = x > y ? x : y
Xeago has joined #ruby
bradhe has joined #ruby
vt102 has quit [Ping timeout: 255 seconds]
<existensil> Macaveli: that is equivilent to this: if x > y; x; else; y; end
<existensil> Macaveli: its called the ternary operator
sepp2k has joined #ruby
<Macaveli> thanks existensil
<existensil> test_expression ? if_true : if_false
aspires has joined #ruby
francisfish has joined #ruby
<Beoran> ? : is called the ternary operator, it comes from the C programming language originally
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<pskrz> Beoran: wikipedia says otherwise, CPL based, http://en.wikipedia.org/wiki/%3F:
<Beoran> OIC
<Mon_Ouie> Notice CPL used a different syntax though, it seems the ?: syntax does come from C
kalusn has joined #ruby
djbkd has joined #ruby
mikespla_ is now known as mikesplain
jheg has joined #ruby
alexju has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
<banister> Mon_Ouie 'alut
<Mon_Ouie> 'alut
<Beoran> CPL -> BCPL -> B -> C -> ruby is the pedigree of that feature, it seems, though the syntax changed someswhere oin the 1960'ies...
<banister> Mon_Ouie do you have any strategies to stay tuned into the present moment whenever you feel your brain start to slip
tectonic has joined #ruby
Macaveli has quit [Remote host closed the connection]
omosoj has joined #ruby
mikepack_ has quit [Remote host closed the connection]
<arup_r> Mon_Ouie: Why proc { |a , b = 0| }.arity # => 1 instead of -2 ?
<Mon_Ouie> I don't know, but it only does that with lambda
kalusn has quit [Ping timeout: 240 seconds]
<apeiros> with proc, it really should just always be -1
klaut has joined #ruby
<existensil> with lambda it appears to be -2
<existensil> >> ->(foo, bar = 1){ foo * 2 }.arity
<eval-in_> existensil => -2 (https://eval.in/170638)
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr_foobar_baz has quit [Ping timeout: 264 seconds]
<apeiros> >> proc { |a,b,c| }.call(); proc { |a,b,c| }.call(1,2,3,4,5,6); "procs always accept any number of arguments"
xaxisx has quit [Quit: xaxisx]
<eval-in_> apeiros => "procs always accept any number of arguments" (https://eval.in/170639)
<arup_r> funny.. :-)
xaxisx has joined #ruby
GriffinHeart has joined #ruby
<arup_r> proc { |a, *b| }.arity # => -2 but proc { |a , b = 0| }.arity # => 1 .
<existensil> http://rubydoc.info/stdlib/core/Proc:arity ... its all documented behavior
dapz has joined #ruby
einarj has quit [Remote host closed the connection]
judd7 has quit [Quit: judd7]
volk_ has quit [Remote host closed the connection]
<arup_r> The examples I shown... doco contradicts... anyway thanks
<Mon_Ouie> Huh? No it doesn't
<Mon_Ouie> In fact your examples are exactly the same as those in the documentation
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
<arup_r> Yes... I took it from there.. What is the explanation to support -n-1 rule for those
enebo has joined #ruby
<Hanmac> >> proc { |a, **b| }.arity
<eval-in_> Hanmac => 1 (https://eval.in/170640)
GriffinHeart has quit [Ping timeout: 248 seconds]
<Hanmac> ah ok ** is ignored for arity, good to know
<Hanmac> >> proc { |a, b: 4, c:| }.arity
<eval-in_> Hanmac => 1 (https://eval.in/170641)
anaeem1 has joined #ruby
stytown has quit [Quit: stytown]
AlexRussia has joined #ruby
<Hanmac> hm ups my ruby does shows something different it shows 2 ;P
<arup_r> hanmac: all fails to support -n-1 as doco said Lollz
sent-hil has joined #ruby
<Hanmac> arup_r: that was before keyword args was added
saarinen has joined #ruby
<Hanmac> arup_r that might be more infomative:
<Hanmac> >> proc { |a, b: 4, c:| }.parameters
<eval-in_> Hanmac => [[:opt, :a], [:keyreq, :c], [:key, :b]] (https://eval.in/170642)
omosoj has quit [Ping timeout: 240 seconds]
<Hanmac> >>lambda { |a, b: 4, c:| }.parameters
<eval-in_> Hanmac => [[:req, :a], [:keyreq, :c], [:key, :b]] (https://eval.in/170643)
<Hanmac> see the difference ;P
mehlah has joined #ruby
momomomomo has quit [Quit: momomomomo]
<arup_r> I made myself crazy while I was reading it .. for proc no way I convinced myself with -n-1... so I took the 2 examples here to make others carzy too.,.. :-)
replay has joined #ruby
momomomomo has joined #ruby
cwang has quit [Ping timeout: 264 seconds]
dc_ has quit [Remote host closed the connection]
sailias has joined #ruby
kireevco has quit [Quit: Leaving.]
sailias has quit [Remote host closed the connection]
vivekrai has quit [Quit: Page closed]
nectarys has joined #ruby
<arup_r> >> proc { |a , b = 0| }.parameters
<eval-in_> arup_r => [[:opt, :a], [:opt, :b]] (https://eval.in/170644)
<Hanmac> >> lambda { |a , b = 0| }.parameters
<eval-in_> Hanmac => [[:req, :a], [:opt, :b]] (https://eval.in/170645)
<arup_r> >> proc { |b, *a| }.parameters
<eval-in_> arup_r => [[:opt, :b], [:rest, :a]] (https://eval.in/170646)
<Hanmac> >> lambda { |a , b = 0| }.arity
<eval-in_> Hanmac => -2 (https://eval.in/170647)
<arup_r> hanmac: wait
<Hanmac> arup_r: for proc everything is optional
<arup_r> just hold on
<arup_r> >> proc { |a , b = 0| }.parameters
<eval-in_> arup_r => [[:opt, :a], [:opt, :b]] (https://eval.in/170648)
<arup_r> proc { |a , b = 0| }.arity
nectarys has quit [Read error: Connection reset by peer]
Liothen has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
<arup_r> >> proc { |a , b = 0| }.arity
<eval-in_> arup_r => 1 (https://eval.in/170649)
momomomomo has quit [Client Quit]
<arup_r> -n-1 proved as n is 0
wildroman2 has quit [Ping timeout: 240 seconds]
<arup_r> hold on
<arup_r> >> proc { |b, *a| }.parameters
<eval-in_> arup_r => [[:opt, :b], [:rest, :a]] (https://eval.in/170651)
<pontiki> hmm, vivekrai left
<arup_r> >> proc { |b, *a| }.arity
<eval-in_> arup_r => -2 (https://eval.in/170652)
mconnolly has quit [Quit: mconnolly]
<pontiki> was going to tell them to look at https://github.com/savonrb/nori/pull/43
<arup_r> -n-1 failed
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
<pontiki> arup_r: could you please stop using eval-in_ as your test repl?
<arup_r> pontiki: ok..I wouldn't.. I was showing something to hanmack I am done
Jam has joined #ruby
Jam is now known as Guest93669
AlexRussia has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Guest93669 is now known as JamBlack
dangerousdave has joined #ruby
xaxisx has quit [Quit: xaxisx]
<Hanmac> arup_r: you may need lambda
xaxisx has joined #ruby
<arup_r> It seems
<arup_r> I can trust on it
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
freezey has quit []
<arup_r> Hanmac: bye... heading to sleep.
dapz has joined #ruby
omosoj has joined #ruby
timonv has joined #ruby
claymore has joined #ruby
bbloom has joined #ruby
decoponio has quit [Quit: Leaving...]
mikepack has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robertodecurnex has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 240 seconds]
edmellum has joined #ruby
Liothen has joined #ruby
Deele has joined #ruby
Morkel has quit [Quit: Morkel]
andrewjanssen has quit [Quit: Leaving...]
knutmithut has quit [Ping timeout: 240 seconds]
bricker`work has quit [Read error: Connection reset by peer]
braincra- has joined #ruby
bricker`work has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
treehug88 has quit []
dgaffney has joined #ruby
kirun has quit [Quit: Client exiting]
dc_ has joined #ruby
knutmithut has joined #ruby
j_mcnally has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceyEC has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
x1337807x has joined #ruby
dc_ has quit [Remote host closed the connection]
seanosaur has quit []
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scriptonaut has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
edgarjs is now known as edgarjs_afk
Takle has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
arya_ has joined #ruby
alexa_ has quit [Ping timeout: 240 seconds]
jonahR has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
dapz has joined #ruby
dc_ has joined #ruby
nahtnam has joined #ruby
<Scriptonaut> guys, I can't seem to install ruby 1.9.2 on ubuntu
<Scriptonaut> I tried doing it with rvm
<nahtnam> Hello. I have nodejs installed, but I still get the error saying that there is no js when I bundle
<nahtnam> Im on windows
<Scriptonaut> I did rvm use 1.9.2
arya_ has quit [Ping timeout: 240 seconds]
<Scriptonaut> and it says that it's using it
wildroman2 has joined #ruby
<Scriptonaut> but then when I do ruby -v, it still says 1.8.7
dc_ has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
<nahtnam> Scriptonaut: Close your terminal, open it again and type rvm
<nahtnam> then scroll up
<nahtnam> there might be an error
bmurt has quit []
<j_mcnally> nahtnam: i think you need to export an environment variable, are you using Cygwin?
<nahtnam> j_mcnally: No, just straight up cmd
saarinen has quit [Quit: saarinen]
<nahtnam> I ran the nodejs installer
<nahtnam> I really hate windows
<nahtnam> but I have no option
<Scriptonaut> cat: /usr/share/ruby-rvm/README: No such file or directory
<Scriptonaut> that's what comes up when I type rvm
saarinen has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<j_mcnally> nahtnam: try `SET EXECJS_RUNTIME='Node'
jprovazn has quit [Quit: Odcházím]
<j_mcnally> in your cmd
Arkaniad has joined #ruby
yfeldblum has joined #ruby
<j_mcnally> and then try your command
<j_mcnally> or `set EXECJS_RUNTIME='Node'`
<j_mcnally> not sure if set is case sensative
<j_mcnally> basically you want to set the EXECJS_RUNTIME environment variable so it tries to use node
<j_mcnally> ive never done it in windows tho
failshell has joined #ruby
codecop_ has joined #ruby
timonv has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
bradhe has quit [Remote host closed the connection]
Macaveli has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
awc737 has joined #ruby
<awc737> How can I update this line to read the file at: #{node['cmd_lamp']['thing']}
<awc737> command "devadd " + node['cmd_lamp']['username'] + "#{node['cmd_lamp']['public_key']}"
failshel_ has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
bradhe has joined #ruby
<awc737> I need the command to be 'devadd user "key_file_here"'
doritostains has quit [Quit: doritostains]
dc_ has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 240 seconds]
codecop has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
yakko is now known as thejamespinto
<awc737> Does this look right?
<awc737> command 'devadd ' + node['cmd_lamp']['username'] + ' "' + puts File.read(node['cmd_lamp']['public_key']) + '"'
<apeiros> no
jerius has quit []
<apeiros> `+ puts` is quite certainly wrong
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zenigor has quit [Remote host closed the connection]
<awc737> without the puts does it look alright?
Zenigor has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echevemaster has joined #ruby
<pontiki> is that chef?
<awc737> yeahh
<pontiki> you should be using a secure data bag
<awc737> hmm
mikepack has joined #ruby
<awc737> i want the user specifying where on the machine the key they are using is
<pontiki> so you don't have to read the key out of a file, i mean
FLeiXiuS`` has joined #ruby
<awc737> is the user expected to put their key into a data bag?
<awc737> it will be different for each dev
<Macaveli> damn it mango irc on ipad y u no paste? :(
<pontiki> they can have their own data bag
xaxisx has left #ruby [#ruby]
spyderman4g63 has quit [Ping timeout: 240 seconds]
edgarjs_afk is now known as edgarjs
<awc737> im not too sure how to do my workflow :/
<awc737> did that ruby look ok?
<awc737> nope keeps breaking
<awc737> command 'devadd ' + node["cmd_lamp"]["username"] + ' "' + File.read(node["cmd_lamp"]["public_key"]) + '"'
<pontiki> have a hop over to #chef and ask about it. they're rather good blokes
CaptainJet has quit []
<awc737> thanks
saarinen has quit [Quit: saarinen]
beanHolez has quit [Ping timeout: 240 seconds]
jyc has joined #ruby
jyc has left #ruby ["Leaving"]
Macaveli has quit [Remote host closed the connection]
<apeiros> generally I'd use interpolation, not plus @ awc737
aspires has quit []
<pontiki> same, apeiros
<apeiros> command "devadd #{node["cmd_lamp"]["username"]} …"
noopq has quit [Ping timeout: 240 seconds]
<awc737> and what about the File.puts part?
jackneill has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
ItSANgo has quit [Quit: Leaving...]
TDJACR has quit [Ping timeout: 260 seconds]
coderhs has quit [Ping timeout: 240 seconds]
<awc737> command "devadd #{node['cmd_lamp']['username']}" + File.read("#{node['cmd_lamp']['public_key']}")
<pontiki> nah
FLeiXiuS`` has quit [Ping timeout: 240 seconds]
<pontiki> just put that into the same string
<awc737> the File.read?
<pontiki> with interpolation
<pontiki> yeah
saarinen has joined #ruby
<awc737> command "devadd #{node['cmd_lamp']['username']} File.read(#{node['cmd_lamp']['public_key']})"
lkba has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
markoso has joined #ruby
<awc737> I'm not too familiar with interpolating methods
<pontiki> command "devadd #{node['cmd_lamp']['username']} \"#{File.read(node['cmd_lamp']['public_key'])}\""
<thejamespinto> working with an android developer today, so many lines of code, I'm like - kill me
bradhe has quit [Remote host closed the connection]
<markoso> Hello, I have the basics of Ruby down and I was wondering if you could tell me some good beginner projects to make?
aspires has joined #ruby
bradhe has joined #ruby
<thejamespinto> markoso: you want to do Rails?
frankjpinto has joined #ruby
TDJACR has joined #ruby
freggles has quit [Ping timeout: 248 seconds]
<thejamespinto> markoso: an excelent way to learn the basics of Rails is on RailsForZombies
<markoso> I am learning rails also. I made a journal app with scaffold.
jprovazn has joined #ruby
Macaveli has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<markoso> Just trying to get deeper into ruby with maybe actually creating something
<thejamespinto> markoso: go for Zombies, it's free and they coach you on the ins and outs of the scaffolding
jprovazn has quit [Client Quit]
mikeg has quit [Remote host closed the connection]
<markoso> I did that entire lesson :) Zombies 2 also
<markoso> I know how to make rails apps do migrations and routes etc. just trying to learn more ruby
anaeem1 has joined #ruby
<markoso> well basic rails apps lol
Scriptonaut has left #ruby [#ruby]
<pontiki> markoso: think about problems you might have, or repetitive things, or such, that you could turn into ruby command line scripts
<thejamespinto> markoso: well, RailsCasts is a cool way to learn to use gems by example, the rule is just read their readme page on github
<markoso> wondering if you had a good first program to do :/
<markoso> I like railscasts
<markoso> I have watched many of them
<thejamespinto> markoso: twitter-like is a great learning beast to tame :)
sigurding has joined #ruby
nahtnam has quit [Ping timeout: 246 seconds]
<markoso> pontiki: thanks and thejamespinto
<markoso> thats my journal app i made
<pontiki> todo list, recipe file (cookbook), wiki
<thejamespinto> markoso: really gonna keep you busy banging you head, and that's when you grow
<pontiki> all can be instructive
adelcampo has joined #ruby
<markoso> ok cool
nahtnam has joined #ruby
<nahtnam> j_mcnally: It says wrong constant name 'Node'
<thejamespinto> markoso: if I may recommend you a nice gem for scaffold fans such as myself. https://github.com/before-actions-gem/before_actions#demo-resource
anaeem1 has quit [Ping timeout: 256 seconds]
<markoso> will check it out
<thejamespinto> markoso: all this gem does is improve your readability on before filters
wildroman2 has quit [Remote host closed the connection]
<markoso> ahh
<thejamespinto> but I use it on my every project :P
dapz has joined #ruby
<markoso> nice
orionstein is now known as orionstein_away
<markoso> im still trying to figure out def initialize and attr_accessors lol confusing a bit
blueOxigen has quit [Ping timeout: 255 seconds]
<thejamespinto> markoso: also really helpful if you want to do a nested scaffold, which is a big big beast when you are starting off :D
stytown has joined #ruby
* markoso googles it
<thejamespinto> markoso: what other languages have you used before ruby?
<pontiki> here's another one that can be fun: a card game, even if you don't impelement the play & rules, figuring out the classes is kind of fun
<markoso> I did some PHP, c#
<markoso> i made a robot class lol
<thejamespinto> markoso: ok, so... attr_reader and attr_writter are getters and setters :)
spastorino has quit [Quit: Connection closed for inactivity]
<markoso> so you are setting attributes
<thejamespinto> yes
nanoyak has quit [Quit: Computer has gone to sleep.]
<markoso> class Car :turn_over. :brake etc
<thejamespinto> and the @instance_vars are where they actually deep down get stored
<markoso> I see
ItSANgo has joined #ruby
<thejamespinto> attr_writer :wheel is the same as def wheel(val); @wheel=val; end;
<markoso> I am doing my own bootcamp.. I have 6 hrs to spend on learning ruby, rails and JS :)
<markoso> ahh okay
<markoso> 6 hours a day that is lol
<thejamespinto> but in Rails, there is one more level of complexity in it, you should do write_attribute(:wheel, val) instead
<markoso> ahh
<pontiki> gods, i was going to say... 6 hours to learn all that...
<markoso> got it
<markoso> LOL
<thejamespinto> I need to do a blog LOL
<thejamespinto> I lack these a centralized source of these tiny examples when I'm showing ruby to friends :P
<markoso> Learn Ruby, Rails and JS in 6 hours for only 19.99
codecop_ has quit [Quit: Išeinu]
<thejamespinto> well, that's what readers and writers are :P
<markoso> So do you guys work as Ruby rails devs
<thejamespinto> they write getters and setters for you so your code looks smaller
<pontiki> thejamespinto: gist + gist.io
stytown has quit [Quit: stytown]
<terrellt> My student workers pick up HTML/JS/CSS/Ruby/Rails/Bootstrap to the point where they can work on applications in ~ 3-4 weeks.
<pontiki> that sounds about right
<markoso> where ? lol
<terrellt> Oregon State University.
<markoso> I am moving to oregon soon lol
enebo has quit [Quit: enebo]
<koyd> markoso: how long are you planning on doing your own bootcamp?
timfoo has quit [Ping timeout: 255 seconds]
olivier_bK has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cya]
<markoso> Umm'
<markoso> until I can do it really well
<markoso> I have self taught myself for the last 4 months, but up until now I worked now i have the time.
jheg has quit [Quit: jheg]
enebo has joined #ruby
<markoso> I wish I could have a teacher or something. On your own is hard.
kireevco has joined #ruby
<pontiki> it is
kireevco has quit [Max SendQ exceeded]
<thejamespinto> ah Oregon... most expensive health website ever :D
<pontiki> i think one needs feedback, at least
kireevco has joined #ruby
lemur has quit [Remote host closed the connection]
<markoso> Getting out of California
<terrellt> thejamespinto: Truth.
<terrellt> And we gave up.
<terrellt> So it's the most expensive abandoned health website ever.
phinfonet has quit []
<thejamespinto> terrellt: have you seen John Oliver's mocking it?
<markoso> I am 40 and so i am taking a new direction.. and I love programming
enebo has quit [Client Quit]
<terrellt> I don't think so.
<terrellt> markoso: codeschool.com has helped my students a lot.
<thejamespinto> terrellt: I love Oregon, so I try to watch it as a person who cares https://www.youtube.com/watch?v=Dh9munYYoqQ
johnrover has quit [Quit: johnrover]
m8 has quit [Quit: Sto andando via]
joonty has quit [Ping timeout: 256 seconds]
nahtnam has quit [Ping timeout: 246 seconds]
<pontiki> i think exercism.io can help as well
<markoso> i have done codeschool.com but teamtreehouse has a better ruby deep dive. but honestly I left them and I been just trying to code as much as i can.. and watching vids. 25.00 month is high for me atm
<markoso> Exercise' lol
<terrellt> pontiki: That's a cool idea.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zenigor has quit [Remote host closed the connection]
<markoso> I have been looking for a mentor for sometime..
northfurr has joined #ruby
johnrover has joined #ruby
<markoso> terrellt: what city in Oregon?
<thejamespinto> markoso: don't get me started, I suffer from superhero syndrom
<markoso> ok lol
<terrellt> I am -not- up for mentoring, but Portland has an EXCELLENT ruby group.
<markoso> I will be moving to Medford kinda far
adelcampo has quit [Quit: adelcampo]
<thejamespinto> I gave up mentoring, most people just expect you to hold their hand and lay down the very basics, I'm not a book :P
<terrellt> I went to school in Medford.
<thejamespinto> terrellt: checked the video?
<terrellt> Oregon has some good Ruby conferences. Rails-conf was in Portland last year, Ruby on Ales is hosted in Bend.
sigurding has quit [Quit: sigurding]
VooDooNOFX has joined #ruby
<terrellt> thejamespinto: Can't.
<markoso> I had a mentor for ahwile, I did not let him hold my hand he challenged me a lot.
<markoso> I will def go to Ruby on Ales :)
<pontiki> sign of a good mentor
<markoso> My mentor is way to busy now ,
<thejamespinto> I'm curious, are any of you guys not a ginger?
<pontiki> don't give answers, ask questions
<terrellt> ...Wat
<pontiki> not a guy, not a ginger
bradhe has quit [Remote host closed the connection]
<thejamespinto> =P
<markoso> yea he would ask me questions or show me code to figure it out.. pretty cool
DivineEntity has joined #ruby
<markoso> I am not a ginger lol
<thejamespinto> markoso: awkward =P
<markoso> random questions much?
<pontiki> you are being rather awkward, yeah
<markoso> hawkward
nanoyak has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<markoso> So as a rails developer do you absolutely need to know JS? I can't stand it lol
bradhe has joined #ruby
<markoso> Ruby spoiled me
<pontiki> i would feel quite hamstrung if i didn't know JS
<pontiki> but i suppose one could spen all one's time in the backend
<markoso> I know the basics lol
nateberkopec has quit [Quit: Leaving...]
endash has quit [Quit: endash]
<markoso> My original idea was full stack.
ecksit has joined #ruby
<pontiki> the coming wave is client-side apps, though that may swing back again
<markoso> But I am not the best designer :/
<terrellt> The "full stack" is HTML/CSS/JS/Ruby.
ecksit has quit [Client Quit]
<terrellt> So...yes.
<terrellt> (Well, depending. Devops slips in there sometimes too.)
<pontiki> design, as in visual design, is quite a different skill
snath has quit [Ping timeout: 256 seconds]
hanikazmi_ has joined #ruby
<markoso> wanna critique a site i made after learning html css lol
preller has quit [Ping timeout: 252 seconds]
timfoo has joined #ruby
<thejamespinto> markoso: There is a nice rails-way saying - make it work, make it better, make it faster - stands for many things including not focusing on JS
hanikazmi has quit [Read error: Connection reset by peer]
<markoso> Oh I am a total linux nerd so im good there
<pontiki> however, knowing how to implement a visual design is important for the well-rounded dev
benzrf is now known as benzrf|offline
mike24 has quit [Ping timeout: 245 seconds]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
<terrellt> Converting a design and knowing what makes a good UI is important.
<markoso> my first site after learning html css :/ http://brightengraving.com/
<terrellt> Actually being able to photoshop a good design, less so. But if you can, you're instantly worth more.
<thejamespinto> I gave up CSS :/
mrmargolis has quit [Remote host closed the connection]
<pontiki> i think it's really important to understand how the user experiences your site
<thejamespinto> pontiki: +1
earthquake has joined #ruby
<markoso> Photoshop should not be involved this day in age
<csmrfx> depends
<markoso> not for layout anyways
<csmrfx> youre mistaken
crudson has quit [Quit: q term]
tjr9898 has quit [Remote host closed the connection]
<toretore> *your
<terrellt> That's ridiculous. It's a good tool with a huge suite of designers who know how to use it.
<markoso> Photoshop for web design is on its way out.
<markoso> You're
<thejamespinto> markoso: here's your future with CSS... you're gonna learn a ton of it, then realize you should spend more time coding server-side and get somebody else to do CSS for you :P
gr33n7007h has joined #ruby
crudson has joined #ruby
<markoso> thejamespinto: I'd rather do server side I am not mr designer
<markoso> I was just told to become fullstack
<thejamespinto> markoso: don't
<pontiki> what is you evidence for that, markoso ?
nfk has quit [Remote host closed the connection]
codezomb has joined #ruby
<pontiki> i have potential evidence unrelated to anything here
<markoso> pontiki: hours of research lol
<pontiki> oh come on
jobewan has quit [Quit: Leaving]
<pontiki> photoshop and illustrator, as well as other adobe products are still used by more designers than anything else
<markoso> I'm not here to debate CSS and PHotoshop..
<markoso> Thats
<pontiki> not *developers*, *designers*
<frankjpinto> hi all. agreed, photoshop / illustrator will stay around for a a decade IMO
<thejamespinto> markoso: let me tell you a new thing to become then: become an expert at one thing, nobody likes to hire ducklings
sgen has quit [Quit: Leaving]
<markoso> You misunderstood me .
<pontiki> the only thing i see about adobe products is that they've lost a lot of people with deep knowledge of those products
<thejamespinto> frankjpinto: nice surname :P
<pontiki> oh that's possible
p0sixpscl has joined #ruby
<pontiki> but if you're saying "Photoshop for web design is on it's way out" perhaps you should really clarify what you mean
einarj has joined #ruby
<markoso> What I mean, yes PS , IS are awesome and used all the time, just PS to CSS is not as common because CSS advancing.
<frankjpinto> thejamespinto: mighty fine one yourself ;)
<terrellt> PS to CSS was never common.
<markoso> It was in the late 2000s
<terrellt> Not professionally at least.
<markoso> mid
<markoso> I know 4 designers that use PS to design to CSS..
hanikazmi_ has quit [Quit: No Ping reply in 180 seconds.]
<pontiki> the CSS that PS and AI generate has *always* sucked
<terrellt> ^
<frankjpinto> PS to CSS is extremely common to dev shops that outsource design
<markoso> Most web devs i know use CSS and PS to make images
<markoso> yes
<terrellt> Woah, wait.
<markoso> so we misunderstood lol
<pontiki> are you talking about image slicing?
<terrellt> So you don't mean using PS to conver to CSS
hanikazmi has joined #ruby
<terrellt> You mean you get a PSD file and you use the layers to build your layout.
<markoso> Many use PS to convert to CSS
<terrellt> In which case, that's not going anywhere.
riotjones has quit [Ping timeout: 256 seconds]
<markoso> That's my argument lol
preller has quit [Ping timeout: 240 seconds]
<markoso> PS to CSS is fading
<markoso> case dismissed
<markoso> Pure CSS is the majority now
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
<frankjpinto> i need a nick and my creativity is failing, who wants to help!? :D
<pontiki> that is actually completely different than your initial statement
<markoso> SYmantical Code not PS crap code lol
<markoso> Sorry I should have elaborated.
<thejamespinto> frankjpinto: frankpinto
<pontiki> i barely even write any CSS anymore
* terrellt has people for that.
<terrellt> MOST of the time.
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> i write SASS/SCSS
dogeydogey has joined #ruby
<pontiki> or use frameworks that use those
<terrellt> Lol.
<markoso> Sass is groovy
<dogeydogey> hey what's the best way to zip a file in ruby?
<terrellt> I just combine the two. Why would you write raw CSS anymore.
<pontiki> exactly
GriffinHeart has joined #ruby
<terrellt> dogeydogey: `zip file1.jpg` ?
<frankjpinto> I knew this guy at my old job that was a wizard w/ CSS. Knew all the quirks of all the browsers. Could make any site behave / look exactly the way you wanted it in all browsers
<markoso> I think I will just focus on Ruby and Rails I know bootstrap :)
nfk has joined #ruby
<terrellt> Google says https://github.com/rubyzip/rubyzip works.
<markoso> frankjpinto: that's why we have normalize :)
<frankjpinto> thejamespinto: but then they know meeee o_o
<pontiki> to use TBS, you still need to know HTML/SASS or HTML/LESS
<dogeydogey> terrellt what about tarball?
riotjones has joined #ruby
<frankjpinto> markoso: try using normalize on openwave ;)
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
mijicd has joined #ruby
* markoso googles openwave...
<terrellt> dogeydogey: http://bit.ly/1vY7voo
<markoso> LOL ^
jespada has quit [Quit: Leaving]
<pontiki> there's a whole lot of openwave
<pontiki> which one do you mean?
ephemerian has quit [Quit: Leaving.]
<frankjpinto> The derivative that comes w/ most feature phones nowadays. In latam right now, we have to deal w/ a lot of legacy stuff *sigh*
<markoso> So i notice at amazon most Ruby books are from 2008 2010 Know of any that are up to dat?
mikesplain has quit [Ping timeout: 255 seconds]
<frankjpinto> i'd have to check out some of our devices specs real quick to check name / version of derivative
<markoso> date*
<terrellt> markoso: Depends. What do you want out of a ruby book?
codabrink has joined #ruby
<markoso> To learn
omosoj has quit [Quit: Leaving]
claymore has quit [Quit: Leaving]
<pontiki> the latest edition of programming ruby is up to date well enough
GriffinHeart has quit [Ping timeout: 248 seconds]
<terrellt> Ruby tutorials are best for basics, codeschool is great for Rails. If you want software engineering things there are great books for that.
<pontiki> delta between that and 2.1 is minimal
<markoso> I know the basics
kalusn has joined #ruby
<pontiki> POODR is likely to never go out of date
<terrellt> ^ EXCELLENT software engineering book.
jaimef has quit [Excess Flood]
alexa_ has joined #ruby
<pontiki> the classics, eloquent ruby, well-grounded rubyist, confident ruby, etc, are also timeless
<markoso> ok thx
nemesit|znc has quit [Ping timeout: 256 seconds]
<terrellt> Confident Ruby like, JUST came out in the last year, no?
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> i think so?
bradhe has quit [Remote host closed the connection]
<terrellt> Instant classic? ;)
<pontiki> yeah
Arkaniad has quit [Ping timeout: 248 seconds]
tectonic has joined #ruby
tectonic has quit [Max SendQ exceeded]
<pontiki> well, it's a collection of stuff he's been talking about for ages
bradhe has joined #ruby
<terrellt> The talk was great.
<markoso> So terrellt how many of your students actually get jobs doing Ruby?
<terrellt> I haven't been here long enough to say.
<markoso> Where is the campus? Portland?
<terrellt> Corvallis.
<terrellt> Portland State is in Portland.
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
nemesit|znc has joined #ruby
Arkaniad has quit [Read error: Connection reset by peer]
kalusn has quit [Ping timeout: 248 seconds]
<pontiki> right, so i'm seeing confident ruby published June 2012
CorpusCallosum has quit [Ping timeout: 264 seconds]
<ericwood> oooh are we talking about portland ruby gigs?
<ericwood> might be looking for one in the next year...
dogeydogey has left #ruby ["Bye"]
blackmesa has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
mijicd has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
maximski has quit []
<terrellt> ericwood: Where ya at?
mijicd has joined #ruby
jhass|off is now known as jhass
jaimef has joined #ruby
<terrellt> Oh, YOU'RE looking for one.
dangerousdave has quit [Ping timeout: 255 seconds]
<markoso> Three day workshop, one day conference. Limited seats. October 22-25th, 2014. rails workshop when i move there sweet
<ericwood> terrellt: austin
mattstratton has joined #ruby
<ericwood> if I decide to make the move I'll have that fun problem of finding somewhere great without any connections in the city
<ericwood> can't wait :D
Arkaniad|Laptop has quit [Ping timeout: 240 seconds]
dblessing has quit [Quit: dblessing]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has joined #ruby
<koyd> any of you guys working remote?
<terrellt> ericwood: Good luck! There's some good ruby shops up there.
<ericwood> terrellt: that's what I hear, and there's probably going to be some ember work too
<ericwood> we'll see
<ericwood> all hypothetical right now
SilkFox has joined #ruby
senayar has quit [Remote host closed the connection]
Aryasam has joined #ruby
frankjpinto has quit [Quit: Leaving]
senayar has joined #ruby
enebo has joined #ruby
alexa_ has quit [Ping timeout: 264 seconds]
razum2um has quit [Quit: Leaving.]
frankjpinto has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funktor has joined #ruby
timonv has joined #ruby
<pontiki> koyd: i can work either remote or onsight
x1337807x has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
<GeekOnCoffee> I work completely remote
SilkFox has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
francisfish has quit [Remote host closed the connection]
<koyd> I'm thinking on switching to full remote but don't really know where to look for remote stuff
Arkaniad|Laptop has joined #ruby
j_mcnally has quit [Ping timeout: 240 seconds]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
nateberkopec has joined #ruby
SilverKey has quit [Quit: Halted.]
<ericwood> the remote store
fold has quit [Ping timeout: 256 seconds]
FLeiXiuS`` has joined #ruby
mr_snowf1ake has joined #ruby
<frankjpinto> ^ you can get one of those universals
benzrf|offline is now known as benzrf
gigetoo has quit [Remote host closed the connection]
<pontiki> remote work is getting harder to find, especially for full time workers
gigetoo has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
kith has quit [Quit: kith]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kith has joined #ruby
blackmesa has joined #ruby
Xeago has quit [Remote host closed the connection]
<frankjpinto> when you say remote work you mean working for one company full-time from out of office yes?
<ericwood> I thought it was becoming more popular
JamBlack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<frankjpinto> I personally don't like to hire ppl for remote unless its a short contract
knutmithut has quit [Ping timeout: 245 seconds]
<ericwood> same
<frankjpinto> needing somebody urgently and having them be AFK is frustrating, have to stop what i'm doing and do what they would have done. Just distracting worrying about it
<ericwood> I've found I need proximity for a lot of teamwork stuff
dapz has joined #ruby
FLeiXiuS`` has quit [Ping timeout: 256 seconds]
<ericwood> big pieces can be remote but the early and late phases really require us all there
<koyd> that's been my experience, only short contracts and that's what I don't like about it
<koyd> but I was under the impression it was becoming more popular and that it was just me looking in the wrong places :)
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<ericwood> it's becoming more popular for sure
<ericwood> DHH has been spreading the gospel lol
geggam has quit [Quit: Leaving]
<frankjpinto> if we like the short contract, as in no hiccups, we'll do another then probably hire
<frankjpinto> if you want to have more than just a short contract just be awesome haha
<pontiki> everywhere, i hear the same thing you are saying, that it's inconvenient to have people working remotely
<frankjpinto> think that applies to pretty much everything though
nateberkopec has quit [Quit: Leaving...]
bradhe has quit [Remote host closed the connection]
<pontiki> lots of bigco's are not letting people telecommute anymore
aiscs has joined #ruby
<frankjpinto> code, school, girls etc.
<pontiki> so i don't understand why you think that means remote work opportunities are *increasing*
aiscs has quit [Client Quit]
<ericwood> we're cool with telecommuting but really you need to have an office presence or you're going to have a tough time staying in the loop
<ericwood> I work from home regularly
<ericwood> pontiki: I just hear about a lot of hip organizations doing mostly that
<ericwood> but it's not super widespread yet
<ericwood> I just get the impression that it's becoming more popular
<ericwood> anyways, I'm out, peace!
mijicd has quit [Remote host closed the connection]
<pontiki> it was superpopular for a while, right now it's contracting, i think it'll spread out again; it's one of those pendullum things
<pontiki> also, it's more possible for exceptional workers
arya_ has joined #ruby
<pontiki> and lots more possible for contractors with a proven track record
Soda has quit [Remote host closed the connection]
<pontiki> but still largely depends on how mgmt feels about such things
zorak has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has joined #ruby
nahtnam has joined #ruby
Poky has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 245 seconds]
Jam has joined #ruby
Jam is now known as Guest80459
mikecmpbll has quit [Quit: i've nodded off.]
mikepack_ has joined #ruby
kevind has quit [Quit: kevind]
saarinen has quit [Quit: saarinen]
<markoso> RUBY IS AMAZING THAT
<markoso> IS
<markoso> ALL
<markoso> See ya later
markoso has quit [Quit: Ruby is sexy]
iamjarvo has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
mikepack_ has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
lxsameer has quit [Quit: Leaving]
SilkFox has joined #ruby
mr-foobar has quit [Quit: Leaving...]
dgaffney has quit [Remote host closed the connection]
testcore has joined #ruby
dapz has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
narcan has joined #ruby
spider-mario has quit [Remote host closed the connection]
mrmargolis has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
fold has joined #ruby
chuckc_ has joined #ruby
welthar has joined #ruby
einarj has quit [Remote host closed the connection]
Arkaniad|Laptop has quit [Ping timeout: 256 seconds]
jezen has joined #ruby
jezen is now known as jgt
jgt has quit [Client Quit]
jgt has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
braincra- has quit [Ping timeout: 264 seconds]
adelcampo has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
benlieb has joined #ruby
dapz has joined #ruby
phoo1234567 has quit [Quit: Leaving]
funktor has quit [Remote host closed the connection]
Soda has joined #ruby
momomomomo has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
srnty has joined #ruby
<nahtnam> Hello. I am getting an error saying that I need to have a JS parser. I installed node.js but it still doesnt work! I am running windows.
<nahtnam> What can I do to fix it?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<frankjpinto> srsly?
<benzrf> nahtnam: dont use windows
<benzrf> it's pretty bad
<nahtnam> benzrf: I know. My main computer is running linux but it broke today
<nahtnam> now im trying to get my windows computer working
<frankjpinto> does it have decent specs?
Arkaniad has joined #ruby
bato has joined #ruby
<benzrf> nahtnam: why do you need a js parser
klaut has quit [Remote host closed the connection]
<nahtnam> benzrf: Sorry, i mean runtime
<nahtnam> not parser
Arkaniad has quit [Max SendQ exceeded]
nicholas040 has quit [Quit: Textual IRC Client: www.textualapp.com]
grieg_ has joined #ruby
grieg has quit [Ping timeout: 255 seconds]
<nahtnam> Anyone?
<nahtnam> Nodejs isnt working
<nahtnam> Or its not being loaded
zorak has joined #ruby
braincrash has joined #ruby
marr has quit [Ping timeout: 240 seconds]
jottr has joined #ruby