apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 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
yakko has quit [Ping timeout: 245 seconds]
<finisherr> Ok
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HelperW_ has quit [Ping timeout: 260 seconds]
sarandosklikizos has joined #ruby
Tricon has quit [Remote host closed the connection]
skammer3 has joined #ruby
sarandosklikizos is now known as sklik
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Takle has joined #ruby
<finisherr> i need to somehow copy the values into the array
<finisherr> i think
moritzs has quit [Ping timeout: 245 seconds]
<jhass> I guess #[] is an alias for #get, thus "Returns nil if the processing is complete (as determined by STATUS_TERMINATED)."
Takle has quit [Remote host closed the connection]
<jhass> the way getopt works you only get one time access to it
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
skammer3 has quit [Ping timeout: 258 seconds]
<jhass> note that opt['foo'] is a method call
<jhass> not just a variable access
<jhass> so calling .dup on the result of the method call makes no difference to the call
dev_ryan has quit [Ping timeout: 250 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> I see no convenience option for that but I would suggest building a hash instead and using that for further access
Akuma has quit [Quit: So long sukkas!]
<jhass> Hash[%w[keya keyb keyc].map {|key| [key, opt[key]] }]
<finisherr> Ahh
<finisherr> I just set the variables first
<finisherr> i think that’ll do the trick
<finisherr> Yep
marr has quit []
Mia has quit [Read error: Connection reset by peer]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
jasooon has joined #ruby
Tricon has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
charliesome has joined #ruby
zz_karupa is now known as karupa
benzrf|offline is now known as benzrf
jontmorehouse has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
jonmorehouse has joined #ruby
Seich has quit [Ping timeout: 260 seconds]
<rubie> hi all: for this program, why does it make sense to even make a class? https://gist.github.com/gabrie30/dac4e23b3e8e3fb7347b
ZeroXcape has joined #ruby
Seich has joined #ruby
larsam has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
<rubie> the only thing a class does is help make more objects
pwh has joined #ruby
GriffinHeart has quit [Ping timeout: 250 seconds]
jhass is now known as jhass|off
coderdad has joined #ruby
SqREL___________ has quit [Quit: Computer has gone to sleep.]
otakbeku has quit [Quit: leaving]
<havenwood> rubie: you can change a person's name or sex, but age?
astav has joined #ruby
phutchin1 has quit [Ping timeout: 258 seconds]
Akuma has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
<rubie> those are all attributes of a person
<havenwood> rubie: i'm suggesting age shouldn't have an attr_writer
<havenwood> rubie: we separate methods and have classes and modules for the sake of the humans
silkfox has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
<benzrf> rubie: you do not need the class there
<benzrf> rubie: this is a contrived example, you see
<havenwood> rubie: there're advantages indeed to keeping things simple
silkfox has joined #ruby
<rubie> when would you need to create a class? Only if you want multiple objects that are similar?
yakko has joined #ruby
phutchin1 has joined #ruby
sdwrage has joined #ruby
endash_ has quit [Quit: endash_]
<havenwood> rubie: if you need to instantiate your object to initialize state
jasooon has joined #ruby
<havenwood> rubie: if you don't need instantiation, use a module for namespacing
<havenwood> rubie: a class is a fancy module
<rubie> it always seems like i can write a program without having to create classes
athan has joined #ruby
<rubie> shevy gave me a catalog progarm to work on to practice classes
<rubie> he said not to use attr_accessor
<havenwood> rubie: Ruby allows top level stuff for easy examples. In gems and apps you'll use modules as the default or switch to a class if you need instantiation.
<rubie> i think i could finish avoiding making a class, but thats not the point of it
rshetty has joined #ruby
<havenwood> rubie: it's common to see a Module used. it's the Bundler default for a new gem for example.
<havenwood> rubie: use a Module unless you need a Class
<athan> Hello everyone, I seem to be running into a wall with compass - I can't seem to install it. I've got the latest RVM working, with Ruby version 2.1.2 up to speed. `gem install compass` throws this at me: http://lpaste.net/112151 . What's the usual way to handle dependency errors like this?
<rubie> im just frustrated because i'm having a hard time writing something, using classes, to understand them better
<havenwood> athan: a typical RVM install is user local, so no sudo
<havenwood> athan: #rvm is a helpful channel
krisquigley has joined #ruby
maletor_ has joined #ruby
<athan> havenwood: Thank you!!!
Takle has joined #ruby
yakko has quit [Read error: Connection reset by peer]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
silkfox has quit [Ping timeout: 245 seconds]
rshetty has quit [Remote host closed the connection]
endash has joined #ruby
<havenwood> rubie: maybe approach it by not using classes until you start having pain that makes you look to them
yakko has joined #ruby
<havenwood> rubie: modules should take you a long way
<rubie> ya probably a good idea, i've wasted a lot of time on this
<havenwood> rubie: it becomes apparent when you'll want a class
<rubie> okay
krisquigley has quit [Ping timeout: 246 seconds]
bobishh has joined #ruby
robustus|Off has quit [Ping timeout: 250 seconds]
emocakes has joined #ruby
thsig has joined #ruby
robustus|Off has joined #ruby
dx7 has joined #ruby
thomasxie has joined #ruby
robustus|Off is now known as robustus
<athan> I'm getting an "UnknownHost" error... is there some kind of cache I need to refresh?
thsig_ has joined #ruby
<athan> Reference: http://lpaste.net/112152
bobishh has quit [Ping timeout: 272 seconds]
<havenwood> athan: try?: gem update --system
Takle has quit [Ping timeout: 245 seconds]
<athan> havenwood: Thank you again :)
<havenwood> no prob
seamon has joined #ruby
<havenwood> athan: that command ^ updates RubyGems
<havenwood> athan: it's a good idea to keep it up to date
<athan> havenwood: Ahh, perfect. Awesome
thsig has quit [Ping timeout: 250 seconds]
dx7 has quit [Ping timeout: 246 seconds]
<havenwood> athan: Modern Ruby ships with a version of RubyGems but it's updatable apart from Ruby.
tkuchiki has quit [Remote host closed the connection]
lolmaus has joined #ruby
tkuchiki has joined #ruby
<havenwood> It also ships with a few gems that're updatable: gem update
<athan> havenwood: I see. Haskell & Cabal seems similar
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Remote host closed the connection]
phutchin1 has quit [Ping timeout: 258 seconds]
EMoreth has joined #ruby
<havenwood> athan: They're moving towards gemifying more Ruby libraries.
yakko has quit [Read error: Connection reset by peer]
<havenwood> Still ship with them but allow nice gem updates outside the Ruby release cycle.
yakko has joined #ruby
<athan> havenwood: Nice! That seems like a good idea, both for development on system features and in maintenance for end users
HelperW_ has joined #ruby
<havenwood> In 2.2 even Minitest and Test::Unit will be gems.
<havenwood> athan: yeah, should work out nicely
niftylettuce has joined #ruby
cg433n has joined #ruby
lnormous has quit [Ping timeout: 260 seconds]
yakko has quit [Read error: Connection reset by peer]
<athan> havenwood: Awesome. Have you gotten into automated testing before?
<athan> or test generators?
tkuchiki has quit [Remote host closed the connection]
HelperW_ has quit [Ping timeout: 240 seconds]
yakko has joined #ruby
entrenador has joined #ruby
tomgavin has joined #ruby
moritzs has joined #ruby
<havenwood> athan: i've played around with trying to fuzz generate tests
moritzs has quit [Max SendQ exceeded]
narcan has joined #ruby
HelperW_ has joined #ruby
<havenwood> athan: not sure i get what you mean by automated testing? something different than continuous integration testing'
<athan> havenwood: Algebraic programming is the future imo :)
moritzs has joined #ruby
<athan> havenwood: Yeah, its a bit different
<athan> you state properties that should hold for all elements of a set or datatype
<athan> like, for instance, reflexivity or associativity of an operation
coderdad has quit [Remote host closed the connection]
<havenwood> athan: automated tests, yes. automated testing, dunno what you mean still.
cg433n has quit [Client Quit]
finisherr has quit [Ping timeout: 246 seconds]
kotk_ has joined #ruby
<athan> say I have a datatype Q, and a binary operator <> that takes 2 Q's and returns a Q: (Q, Q) -> Q
<havenwood> if it's a term of art
<athan> then, I can _declare_ a property, like associativity: a <> (b <> c) == (a <> b) <> c forall a,b,c <- Q
finisherr has joined #ruby
<havenwood> athan: reminds me of dialyzer: http://www.erlang.org/doc/man/dialyzer.html
<athan> my test generator then looks at the property, and generates hundreds (if not thousands) of unit tests for each element in the set
kotk has quit [Ping timeout: 245 seconds]
<athan> havenwood: That's exactly right
sevenseacat has joined #ruby
<athan> Coq found like 100 bugs in gcc
dev_ryan has joined #ruby
dopie has joined #ruby
humd1nger has quit [Ping timeout: 246 seconds]
<havenwood> athan: programs that are good at programming produce nice programs
<athan> lol
nfk has quit [Quit: yawn]
HelperW_ has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
livingstn has joined #ruby
skammer3 has joined #ruby
qmfnp has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
johnhamelink has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
Klumben has quit [Ping timeout: 260 seconds]
greenride has joined #ruby
skammer3 has quit [Ping timeout: 250 seconds]
silkfox has joined #ruby
i8igmac has quit [Read error: Connection reset by peer]
yakko has quit [Read error: Connection reset by peer]
i8igmac has joined #ruby
yakko has joined #ruby
i8igmac has quit [Read error: Connection reset by peer]
i8igmac has joined #ruby
Cache_Money has joined #ruby
jonr22 has joined #ruby
johnhamelink has joined #ruby
jonr22 has quit [Client Quit]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
Klumben has joined #ruby
fabrice31 has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
oleo is now known as Guest11705
oleo__ has joined #ruby
iamjarvo has joined #ruby
skammer3 has joined #ruby
freerobby has joined #ruby
davasaurous has quit [Remote host closed the connection]
Guest11705 has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
milkohol has joined #ruby
greenride has quit [Ping timeout: 240 seconds]
moritzs has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
moritzs has joined #ruby
finisherr has quit [Ping timeout: 260 seconds]
skammer3 has quit [Ping timeout: 272 seconds]
jaygen has quit []
aspires has quit []
PixelCrumbs has quit [Disconnected by services]
PixelCrumbs has joined #ruby
PixelCrumbs has quit [Disconnected by services]
PixelCrumbs has joined #ruby
seamon has quit [Quit: Zzzzzzz]
cashnguns has quit [Ping timeout: 245 seconds]
lnormous has joined #ruby
thsig_ has quit [Remote host closed the connection]
PixelCrumbs has quit [Disconnected by services]
PixelCrumbs has joined #ruby
tectonic has quit []
greenride has joined #ruby
lnormous has quit [Client Quit]
IrishGringo has joined #ruby
jonr22 has joined #ruby
jonr2219 has joined #ruby
tokik has joined #ruby
mary5030 has joined #ruby
KC9YDN has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
jonr22 has quit [Client Quit]
dnordstrom1 has quit [Quit: WeeChat 0.4.0]
jonr22 has joined #ruby
i8igmac has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
bobishh has joined #ruby
jonr22 has quit [Client Quit]
moritzs has quit [Ping timeout: 240 seconds]
i8igmac has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
w09x has joined #ruby
maletor_ has joined #ruby
timonv_ has joined #ruby
greenride has quit [Ping timeout: 245 seconds]
bobishh has quit [Ping timeout: 245 seconds]
finisherr has joined #ruby
b1nd has quit [Ping timeout: 260 seconds]
<finisherr> Hello folks, I’m using nokogiri to get an html page that has XML in it
<finisherr> With something like this: doc = Nokogiri::HTML(open("http://www.threescompany.com/"))
IrishGringo has quit [Ping timeout: 240 seconds]
<pontiki> interesting, finisherr. how is the XML carried within the HTML?
AtumT has quit [Remote host closed the connection]
aspires has joined #ruby
<finisherr> unfortunately, the doc variable holdes all a dictionary, which is great, but then also all of this extraneous HTML
<finisherr> so I don’t know how to access the elements of the XML
timonv_ has quit [Ping timeout: 245 seconds]
<pontiki> ah, that's sort of what i thought might be the problem
<finisherr> It’s all in the body paragraph
athan has quit [Remote host closed the connection]
<pontiki> is that the actual page? mind if i take a look?
<finisherr> hmm
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
silkfox has joined #ruby
<pontiki> i don't have an answer off hand, but i thought i'd poke at it. maybe that's too presumptuous
<pontiki> it's okay to say "no" :)
hamakn has joined #ruby
HelperW_ has joined #ruby
<benzrf> what a website o-o
<finisherr> I PMed you
<finisherr> part of it
<Tricon> finisherr: Sound hot.
<Tricon> *Sounds hot
codeurge has joined #ruby
<pontiki> try again, finisherr
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tectonic has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
solo__ has quit [Ping timeout: 260 seconds]
HelperW_ has quit [Ping timeout: 272 seconds]
HelperW_ has joined #ruby
Spami has joined #ruby
cashnguns has joined #ruby
cashnguns has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 258 seconds]
mary5030_ has joined #ruby
lampd1 has joined #ruby
tyll has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
HelperW_ has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
tyll_ has quit [Ping timeout: 258 seconds]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor_ has quit [Quit: Computer has gone to sleep.]
i8igmac has quit [Read error: Connection reset by peer]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
i8igmac has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
ZeroXcap1 has joined #ruby
hamakn has joined #ruby
ZeroXcape has quit [Ping timeout: 250 seconds]
davasaurous has joined #ruby
sailias has quit [Quit: Leaving.]
lampd1_ has joined #ruby
SqREL___________ has joined #ruby
lampd1 has quit [Ping timeout: 250 seconds]
lampd1_ is now known as lampd1
shelling_ has joined #ruby
oo_ has joined #ruby
ashleah has left #ruby [#ruby]
aspires has quit []
hiyosi has quit [Ping timeout: 240 seconds]
greenride has joined #ruby
greenride has quit [Changing host]
greenride has joined #ruby
chrishough has joined #ruby
kristofferR has joined #ruby
i8igmac has quit [Read error: Connection reset by peer]
larissa has quit [Quit: Leaving]
i8igmac has joined #ruby
benzrf is now known as benzrf|offline
SqREL___________ has quit [Ping timeout: 272 seconds]
Scotteh has joined #ruby
sevvie has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
radic has joined #ruby
oo_ has quit [Remote host closed the connection]
zorak8 has quit [Read error: Connection reset by peer]
skammer3 has joined #ruby
Scotteh_ has quit [Ping timeout: 246 seconds]
KC9YDN has joined #ruby
Spami has joined #ruby
Red_Onyx has joined #ruby
radic_ has quit [Ping timeout: 246 seconds]
milkohol has joined #ruby
Spami has quit [Client Quit]
krisquigley has joined #ruby
jcdesimp has joined #ruby
arescorpio has joined #ruby
Spami has joined #ruby
maletor_ has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
icebourg has joined #ruby
icebourg has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
silkfox has joined #ruby
dx7 has joined #ruby
greenride has left #ruby [#ruby]
jonr2219 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
codeurge has joined #ruby
dx7 has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
yetanotherdave has joined #ruby
jonmorehouse has quit [Ping timeout: 260 seconds]
codeurge has quit [Read error: Connection reset by peer]
codeurge has joined #ruby
endash has quit [Quit: endash]
lampd1 has quit [Quit: vpntestz]
silkfox has quit [Ping timeout: 246 seconds]
PanPan has joined #ruby
silkfox has joined #ruby
benzrf|offline has quit [Quit: bye]
oo_ has quit [Ping timeout: 246 seconds]
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
livingstn has quit []
bobishh has joined #ruby
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
hiyosi has joined #ruby
lampd1 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
timonv_ has joined #ruby
moritzs has joined #ruby
orangerobot has quit [Quit: Page closed]
maletor_ has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Ping timeout: 240 seconds]
bobishh has quit [Ping timeout: 260 seconds]
mattstratton has joined #ruby
spicerack has joined #ruby
tylersmith has joined #ruby
elfo222 has quit [Ping timeout: 246 seconds]
dev_ryan has quit [Ping timeout: 272 seconds]
silkfox has quit [Ping timeout: 246 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
jonr22 has joined #ruby
w09x has quit []
jonmorehouse has joined #ruby
HelperW_ has joined #ruby
yfeldblum has joined #ruby
entrenador has joined #ruby
davasaurous has quit [Remote host closed the connection]
elfo222 has joined #ruby
jasooon has quit [Ping timeout: 258 seconds]
HelperW_ has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
HelperW_ has joined #ruby
pwh has quit [Ping timeout: 246 seconds]
mary5030_ has quit [Ping timeout: 260 seconds]
finisherr has left #ruby [#ruby]
Seich has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
russt has joined #ruby
mary5030_ has joined #ruby
Seich has joined #ruby
kotk has joined #ruby
sethen has quit [Read error: Connection reset by peer]
HelperW_ has quit [Ping timeout: 245 seconds]
Hien has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 272 seconds]
mxrguspxrt has quit [Remote host closed the connection]
kotk_ has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
bmurt has quit []
zorak8 has joined #ruby
lampd1 has quit []
cocotton has joined #ruby
davasaurous has joined #ruby
fabrice31 has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
kotk has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
cocotton has quit [Remote host closed the connection]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 250 seconds]
kotk has joined #ruby
jonr22 has quit [Remote host closed the connection]
grenierm has joined #ruby
ARCADIVS has joined #ruby
elfo222 has quit [Remote host closed the connection]
elfo222 has joined #ruby
sinkensabe has joined #ruby
skammer3 has joined #ruby
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has joined #ruby
oo_ has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Ping timeout: 246 seconds]
Akagi201_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
EMoreth has quit [Ping timeout: 260 seconds]
skammer3 has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
ZeroXcap1 has quit [Ping timeout: 272 seconds]
kotk_ has joined #ruby
tyfighter has joined #ruby
klmlfl has quit [Remote host closed the connection]
michaeldeol has joined #ruby
echevemaster has quit [Ping timeout: 245 seconds]
kotk has quit [Ping timeout: 250 seconds]
astav has quit [Quit: astav]
Akagi201_ has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Akagi201_ has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
threesixes has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
Akagi201 has quit [Ping timeout: 260 seconds]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
Seich has joined #ruby
Azure has quit [K-Lined]
bobishh has joined #ruby
stevenkuhn has joined #ruby
Azure has joined #ruby
hiyosi has joined #ruby
timonv_ has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
codenoob has joined #ruby
bobishh has quit [Ping timeout: 272 seconds]
<codenoob> Hey guys I am having trouble install jkeyll gem
hiyosi has quit [Ping timeout: 260 seconds]
<codenoob> ERROR: While executing gem ... (Gem::DependencyError)
coderdad has joined #ruby
<pontiki> codenoob: what OS?
<codenoob> Unable to resolve dependencies required liquid karmadown and many more
<codenoob> WINDOWS
<codenoob> 801
<codenoob> 8.1
<pontiki> jekyll doesn't officially support windows
<codenoob> Is there a way out ?
jasooon has joined #ruby
<pontiki> yes, follow the links from this page: http://jekyllrb.com/docs/installation/
timonv_ has quit [Ping timeout: 250 seconds]
<pontiki> codenoob: also, join #jekyll
HelperW_ has joined #ruby
sevvie has quit [Quit: leaving]
tyfighter has quit [Quit: tyfighter]
tkuchiki_ has joined #ruby
codenoob has left #ruby [#ruby]
Seich has quit [Ping timeout: 260 seconds]
merqlove has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
gsd has quit [Ping timeout: 272 seconds]
sinequanon has joined #ruby
Seich has joined #ruby
HelperW_ has quit [Ping timeout: 260 seconds]
HelperW_ has joined #ruby
tyfighter has joined #ruby
rubie has quit [Ping timeout: 246 seconds]
tkuchiki_ has quit [Remote host closed the connection]
top4o has joined #ruby
rshetty has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
HelperW_ has quit [Ping timeout: 260 seconds]
SqREL___________ has joined #ruby
tylersmith has quit []
tyfighter has quit [Ping timeout: 260 seconds]
Sgeo is now known as Mikuru
Mikuru is now known as Sgeo
tyfighter has joined #ruby
jusmyth has joined #ruby
SqREL___________ has quit [Ping timeout: 260 seconds]
oo_ has quit [Ping timeout: 272 seconds]
jusmyth has left #ruby [#ruby]
Takle has joined #ruby
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
emmesswhy has joined #ruby
jusmyth has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
Asher has quit [Quit: Leaving.]
jusmyth has left #ruby [#ruby]
Seich has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
Seich has joined #ruby
coderdad has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak__ has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
sinequanon has quit []
marlorn has joined #ruby
michaeldeol has joined #ruby
yacks has quit [Quit: Leaving]
yacks has joined #ruby
pwh has quit []
dx7 has joined #ruby
skammer3 has joined #ruby
yfeldblu_ has joined #ruby
marlorn has quit []
marlorn has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
jcdesimp has quit [Quit: Leaving...]
dx7 has quit [Ping timeout: 260 seconds]
rshetty has quit [Remote host closed the connection]
marlorn has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
skammer3 has quit [Ping timeout: 260 seconds]
sinequanon has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
rshetty has joined #ruby
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
shelling_ has quit [Quit: Connection closed for inactivity]
yetanotherdave has joined #ruby
jusmyth has joined #ruby
freerobby has quit [Quit: Leaving.]
voodoofish4301 has joined #ruby
voodoofish430 has quit [Ping timeout: 246 seconds]
klmlfl has joined #ruby
work_op has quit [Remote host closed the connection]
koderok has joined #ruby
BraddPitt has joined #ruby
koderok has quit [Client Quit]
klmlfl has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
LudicrousMango has joined #ruby
havenwood has joined #ruby
bobishh has joined #ruby
hiyosi has joined #ruby
MaciejCzyzewski has joined #ruby
timonv_ has joined #ruby
havenwood has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MaciejCzyzewski has quit [Client Quit]
hiyosi has quit [Ping timeout: 244 seconds]
MaciejCzyzewski has joined #ruby
bobishh has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 260 seconds]
stevenkuhn has quit [Read error: Connection reset by peer]
stevenkuhn has joined #ruby
sethen has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
cndiv has joined #ruby
arescorpio has quit [Excess Flood]
MaciejCzyzewski has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
fabrice31 has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
jack_rabbit has quit [Ping timeout: 260 seconds]
Tomme has joined #ruby
Scotteh has quit [Ping timeout: 246 seconds]
anarang has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 244 seconds]
oleo__ has quit [Quit: Verlassend]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
cajone has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
yfeldblum has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
benzrf is now known as benzrf|offline
Spami has quit [Ping timeout: 260 seconds]
work_op has joined #ruby
rshetty has quit []
fantazo has joined #ruby
rshetty has joined #ruby
hellangel7 has joined #ruby
Morkel has joined #ruby
LudicrousMango has quit []
benlieb has joined #ruby
Spami has joined #ruby
Morkel has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
phutchin1 has joined #ruby
W0rmDr1nk has quit [Ping timeout: 246 seconds]
Tomme has quit [Ping timeout: 272 seconds]
zorak__ has quit [Ping timeout: 258 seconds]
EMoreth has joined #ruby
Spami has quit [Ping timeout: 240 seconds]
jusmyth has left #ruby [#ruby]
phutchin1 has quit [Ping timeout: 272 seconds]
phao_ has joined #ruby
phao has quit [Ping timeout: 245 seconds]
skammer3 has joined #ruby
MasterPiece has joined #ruby
sklik has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
root3d has joined #ruby
rshetty has quit [Remote host closed the connection]
froggy_ has joined #ruby
skammer3 has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
sandelius has joined #ruby
rshetty has joined #ruby
Macaveli has joined #ruby
froggy__ has quit [Ping timeout: 246 seconds]
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
sinkensabe has joined #ruby
Soda has quit [Remote host closed the connection]
phao_ has quit [Ping timeout: 250 seconds]
tlarevo has joined #ruby
klmlfl has joined #ruby
benzrf|offline is now known as benzrf
ta has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c107 has quit [Remote host closed the connection]
codecop has joined #ruby
michaeldeol has joined #ruby
klmlfl has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
cajone has joined #ruby
tagrudev has joined #ruby
hiyosi has joined #ruby
ht__th has joined #ruby
bobishh has joined #ruby
roolo has joined #ruby
fantazo has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
W0rmDr1nk has joined #ruby
wasamasa has quit [Ping timeout: 250 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
bobishh has quit [Ping timeout: 260 seconds]
Seich has quit [Ping timeout: 272 seconds]
benzrf is now known as benzrf|offline
sinkensabe has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
SqREL___________ has joined #ruby
Seich has joined #ruby
tyfighter has quit [Quit: <3]
arup_r has joined #ruby
BraddPitt has quit [Ping timeout: 260 seconds]
SqREL___________ has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
davasaurous has quit []
davasaurous has joined #ruby
starkhalo has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Client Quit]
willgo has quit [Remote host closed the connection]
michaeldeol has joined #ruby
Spami has joined #ruby
lukevinc has joined #ruby
krisquigley has joined #ruby
wasamasa has joined #ruby
russt has quit [Quit: russt]
arup_r_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KC9YDN has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 272 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
krisquigley has quit [Ping timeout: 260 seconds]
Spami has quit [Ping timeout: 246 seconds]
bal has joined #ruby
reactormonk has joined #ruby
dx7 has joined #ruby
<reactormonk> I want to write a small application that has two tables of sql and no authetication. What libraries should I go for?
phutchins has quit [Ping timeout: 245 seconds]
<sevenseacat> ruby.
<sevenseacat> maybe.
<reactormonk> go back to the trollcave
<sevenseacat> its cold in there
<sevenseacat> ps. if you ask a silly question, you'll get a silly answer
<reactormonk> sevenseacat, is rails the correct answer here?
phutchins has joined #ruby
<sinequanon> define "small"
<sevenseacat> there is no 'correct' answer
<sevenseacat> you didnt mention it has to be a webapp, which is what rails is for
<sevenseacat> but what do i know, im just a troll apparently
<reactormonk> oops.
<reactormonk> sinequanon, hm. No idea how to define small.
<pontiki> perhaps it might help if you say what the application will be used for
dx7 has quit [Ping timeout: 260 seconds]
<sevenseacat> how do you know your app is small then
root3d has quit [Ping timeout: 240 seconds]
<sinequanon> bingo
D9 has quit [Read error: Connection reset by peer]
<reactormonk> I want to track classes held. The application should sort classes held farthest in the past on the top.
<stevenkuhn> this is legit comedy
<pontiki> who will use this app and how will they interact with it?
mooru has joined #ruby
stevenkuhn is now known as Musashi007
davasaurous has quit [Ping timeout: 260 seconds]
<sinequanon> also, is this a web app or...?
<reactormonk> pontiki, a small group of people and they're expected to enter their name and maybe number of attendants.
<reactormonk> sinequanon, yup.
<pontiki> that's part of the interaction question
yetanotherdave has quit [Ping timeout: 245 seconds]
<sinequanon> Sinatra + ActiveRecord?
<reactormonk> pontiki, the time of the class itseld is not too relevant. However, the time zone group (EU/US/AU) is relevant.
<pontiki> might as well start with rails
<reactormonk> How well does AR handle composite keys?
goodenough has joined #ruby
CorySimmons has joined #ruby
<pontiki> generally speaking, just fine
tectonic has quit []
sinkensabe has joined #ruby
<reactormonk> Ok, let's go the rails route
<sinequanon> seems like overkill if you're actually trying to keep it "small"
<reactormonk> sinequanon, how well does AR work without rails? I've used it back in rails 2 days.
<pontiki> what is the footprint for small?
<pontiki> AR works fine without rails
<sinequanon> works like a charm
<pontiki> but building everything else you need for a web app might entail writing more code
<reactormonk> pontiki, it's more on the developer end. How much extra work I have to spend to get rails to do what I want.
<pontiki> you'll have to do far less of your own coding with rails than if you pull a bunch of things together
<pontiki> as long as you follow the rails conventions
skammer3 has joined #ruby
<sinequanon> not sure i agree with that, but to each his own
<reactormonk> sinequanon, I would agree with you, but I want to see how much rails has changed in the last few years
<sinequanon> oh, well then that's a different requirement :)
lukevinc has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.8.0/20000101000000]]
<sinequanon> if you think your app needs all the bells 'n whistles that Rails provides, then go for it
timonv_ has joined #ruby
<pontiki> you should write it both ways, then you'll have an useful comparison
<sinequanon> i guess i don't equate "Rails" with "small"
<reactormonk> sinequanon, me not really either.
Tomme has joined #ruby
<pontiki> again, what is the measurement. you just gave developer time
dumdedum has joined #ruby
Sylario has joined #ruby
<pontiki> if you mean code footprint, library size, process space, and several others things, the balance could be quite different
<pontiki> but seriously, development time? create a new rails app, generate two scaffolds/models, and you've only got tweaking to do
skammer3 has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
<reactormonk> let's see.
<reactormonk> gem install rails takes its time ^^
<pontiki> go do it and tell me how much
timonv_ has quit [Ping timeout: 272 seconds]
<sinequanon> haha
<pontiki> and then tell me how long it will take you to find all the pieces yourself for something else
HelperW_ has joined #ruby
<pontiki> and install them
clauswitt has joined #ruby
synergyz has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
clauswitt has quit [Max SendQ exceeded]
<pontiki> but no matter. it's all just talk.
clauswitt has joined #ruby
fabrice31 has joined #ruby
HelperW_ has quit [Client Quit]
ddv has quit [Changing host]
ddv has joined #ruby
aganov has joined #ruby
yetanotherdave has joined #ruby
W0rmDr1nk has quit [Ping timeout: 272 seconds]
bigkevmcd has joined #ruby
<reactormonk> Ok, how do I tell bundle to use --user-install?
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mylar has quit []
elfo222 has quit [Ping timeout: 245 seconds]
ARCADIVS has quit [Ping timeout: 272 seconds]
Wolland_ has joined #ruby
krz has joined #ruby
hiyosi has joined #ruby
bobishh has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
kwd_ has joined #ruby
kwd_ has left #ruby [#ruby]
elfo222 has joined #ruby
kwd has joined #ruby
W0rmDr1nk has joined #ruby
Takle has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Read error: No route to host]
mindlessdemon has joined #ruby
Cichol has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
mijicd has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bobishh has quit [Ping timeout: 272 seconds]
monkeypatch has joined #ruby
fgo has joined #ruby
<pontiki> set it in your ~/.gemrc file
mooru has joined #ruby
monkeypatch has quit [Client Quit]
fgo has quit [Read error: No route to host]
fgo has joined #ruby
cndiv has quit [Ping timeout: 258 seconds]
Musashi007 has quit [Quit: Musashi007]
govg has quit [Ping timeout: 272 seconds]
grenierm has quit [Ping timeout: 272 seconds]
govg has joined #ruby
klmlfl has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
Seich has joined #ruby
klmlfl has quit [Ping timeout: 250 seconds]
ARCADIVS has joined #ruby
mijicd has quit [Quit: leaving]
mijicd has joined #ruby
amundj has joined #ruby
yakko has quit [Remote host closed the connection]
sinequanon has quit []
andikr has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
kristofferR has joined #ruby
<pontiki> or export GEM_HOME
Cichol has quit [Quit: Leaving]
HelperW has joined #ruby
Cichol has joined #ruby
Musashi007 has joined #ruby
iamdoo2 has joined #ruby
cherwin has joined #ruby
roolo has quit [Quit: Leaving...]
grenierm has joined #ruby
skammer3 has joined #ruby
sandelius has joined #ruby
abuzze has joined #ruby
charliesome has quit [Quit: zzz]
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Scotteh has joined #ruby
bobishh has joined #ruby
Imofftopic has joined #ruby
Morkel has quit [Quit: Morkel]
Imofftopic has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
terracor has joined #ruby
bal has quit [Quit: bal]
bal has joined #ruby
Cichol has quit [Quit: Leaving]
charliesome has joined #ruby
SqREL___________ has joined #ruby
goodenough has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 272 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
rshetty has quit [Remote host closed the connection]
jimmyy has joined #ruby
alem0lars has joined #ruby
icedp has joined #ruby
compuser has joined #ruby
SqREL___________ has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
{xenomorph} is now known as xenomorph
yakko has joined #ruby
CorySimmons has quit [Quit: Bye!]
hiyosi has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
atmosx has joined #ruby
terracor has left #ruby [#ruby]
chthon has joined #ruby
mercwithamouth has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
msx has quit [Quit: WeeChat 1.0.1]
yakko has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
LiohAu_ has joined #ruby
realDAB has joined #ruby
krisquigley has joined #ruby
grzywacz has joined #ruby
Wolland__ has joined #ruby
Macaveli has quit [Ping timeout: 245 seconds]
Wolland_ has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sk87 has quit [Client Quit]
emrox has joined #ruby
olivier_bK has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
bayed has joined #ruby
Wolland has joined #ruby
dawkirst has joined #ruby
qba73 has joined #ruby
realDAB has quit [Quit: realDAB]
justinmburrous has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
dx7 has joined #ruby
dawkirst has joined #ruby
justinmburrous has joined #ruby
dawkirst has quit [Remote host closed the connection]
Wolland__ has quit [Ping timeout: 250 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
grzywacz has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
dx7 has quit [Ping timeout: 244 seconds]
dawkirst has joined #ruby
lolmaus has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
dawkirst has quit [Remote host closed the connection]
arup_r_ has quit []
Scotteh_ has joined #ruby
arup_r has joined #ruby
Wolland_ has joined #ruby
mooru has joined #ruby
justinmburrous has joined #ruby
kaspertidemann has joined #ruby
dawkirst has joined #ruby
AndChat| has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
ta has joined #ruby
Scotteh has quit [Ping timeout: 246 seconds]
Wolland__ has joined #ruby
HelperW_ has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
Wolland has joined #ruby
Wollan___ has joined #ruby
terracor has joined #ruby
Wolland_ has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
nerium has joined #ruby
roolo has joined #ruby
Wolland__ has quit [Ping timeout: 246 seconds]
Wolland_ has joined #ruby
<nerium> I*m trying to replace the occurence of __ with \__, but I can’t get it to work
HelperW has quit [Ping timeout: 272 seconds]
<nerium> What I’m I doing wrong?
dawkirst has quit [Remote host closed the connection]
jhass|off is now known as jhass
Wolland has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
JBreit has joined #ruby
<Hanmac> nerium: you need more:
<Hanmac> >> puts "Word __".gsub(/([\_]+)/, '\\\\\1')
<eval-in_> Hanmac => Word \__ ... (https://eval.in/202027)
Wollan___ has quit [Ping timeout: 272 seconds]
klaut has joined #ruby
ghr has quit [Remote host closed the connection]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
<nerium> Hanmac: Aha
<nerium> Thanks
dawkirst has joined #ruby
Wolland has joined #ruby
canton7 has quit [Changing host]
canton7 has joined #ruby
TheBrayn has joined #ruby
<TheBrayn> hi
Wolland__ has joined #ruby
einarj has joined #ruby
ki0 has joined #ruby
decoponio has joined #ruby
realDAB has joined #ruby
Wollan___ has joined #ruby
Takle has joined #ruby
Wolland_ has quit [Ping timeout: 260 seconds]
clauswitt has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
ephemerian has joined #ruby
arup_r has quit []
Wolland__ has quit [Ping timeout: 250 seconds]
<pontiki> the never ending backslash
<pontiki> Brain: Pinky, Are you thinking what I'm thinking?
<pontiki> I think so, Brain, but why would anyone want to see Snow White and the Seven Samurai?
rshetty has joined #ruby
alem0lars has quit [Quit: AFK..]
Wolland has joined #ruby
* Hanmac raises hand "i would"
HelperW_ has quit [Remote host closed the connection]
alem0lars has joined #ruby
skammer3 has joined #ruby
HelperW_ has joined #ruby
bascht has joined #ruby
<pontiki> actually, so would i...
bMalum has joined #ruby
ghr has joined #ruby
Wollan___ has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> yeah ... and then let TimBurton do it ;P
<pontiki> whoa
<pontiki> now we are TALKING
Wolland_ has joined #ruby
elaptics`away is now known as elaptics
AFKGeek has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
emocakes__ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
emocakes has quit [Ping timeout: 245 seconds]
alem0lars has quit [Quit: AFK..]
justinmburrous has quit [Remote host closed the connection]
alem0lars has joined #ruby
lsmola has joined #ruby
ocx has joined #ruby
Scotteh_ has quit [Quit: Later, folks]
kyb3r_ has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
<ocx> hi so i have <MOH width="200" height="100" data="http://www.moh.com allown></MOH> i would like to extract the htto addrss from this, best way to do it?
jonmorehouse has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
bal has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
bal has joined #ruby
lolmaus_ has joined #ruby
<pontiki> ocx: recently recommended: https://github.com/YorickPeterse/oga , otherwise probably nogogiri xml
Akagi201_ has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
<pontiki> there's also URI::extract
rshetty_ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
Wolland_ has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
rshetty has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
<ocx> pontiki: URI.extract(myvar "http") ?
realDAB has quit [Quit: realDAB]
Juanchito has joined #ruby
<pontiki> myvar contains your MOH string?
<pontiki> i'm not sure if schemes needs to be an array or not
hiyosi has joined #ruby
<pontiki> might try it and see
<pontiki> oh, you need a comma between them, as well
<ocx> yea
Wolland_ has joined #ruby
Wolland__ has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
<pontiki> the extract isn't parsing that, it's just looking for things that look like URLs. if you need a bit more intelligence with your string, go with either oga or nokogiri
<jhass> Nokogiri::HTML(myvar).at('moh')['data'] # much safer, URI.extract sucks
<jhass> it's correct but not smart
<pontiki> 4am
<pontiki> i'm out
Wolland has quit [Ping timeout: 240 seconds]
<jhass> sleep well!
<pontiki> doubt it :(((
<pontiki> but will try
<jhass> good
bMalum has quit [Quit: bMalum]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
jusmyth has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
Wolland_ has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
kaspertidemann has quit []
narcan has joined #ruby
Wolland__ has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 240 seconds]
jaznow has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
kaspertidemann has joined #ruby
dawkirst has joined #ruby
dawkirst has quit [Remote host closed the connection]
lolmaus__ has joined #ruby
startupality has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
kamilc__ has joined #ruby
mkaesz has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
startupality has quit [Client Quit]
alem0lars has quit [Quit: AFK..]
andrewlio has joined #ruby
alem0lars has joined #ruby
startupality has joined #ruby
AlSquire has joined #ruby
sevenseacat has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
dawkirst has joined #ruby
narcan has joined #ruby
hidek_ has joined #ruby
hidek_ has left #ruby ["Leaving..."]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 272 seconds]
phutchin1 has joined #ruby
ctp has joined #ruby
nerium has quit [Quit: nerium]
<ocx> jhass: URL = Nokogiri::HTML(parsedText[targetKey]).at('moh')['http'] draws an exception
<jhass> ocx: aha
mindlessdemon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> sorry, don't work for the NSA (hi buddies!), so can't see your screen
Advocation has joined #ruby
mindlessdemon has joined #ruby
ctp has quit [Ping timeout: 272 seconds]
phutchin1 has quit [Ping timeout: 272 seconds]
skammer3 has joined #ruby
Advocation has quit [Client Quit]
ARCADIVS has quit [Ping timeout: 260 seconds]
Cort3z has joined #ruby
froggy has joined #ruby
froggy is now known as Guest99532
SqREL___________ has joined #ruby
<ocx> jhass: it actually works but returns nothing
<jhass> same answer
<jhass> detail your input properly or give me a reproducing example I can run on my computer
<jhass> for example you changed the attribute to http there
froggy_ has quit [Ping timeout: 244 seconds]
<jhass> which indicates the example input you gave earlier has basically nothing to do with what you're actually using
skammer3 has quit [Ping timeout: 250 seconds]
govg has quit [Quit: leaving]
<ocx> i actually need to use it on different data
govg has joined #ruby
SqREL___________ has quit [Ping timeout: 258 seconds]
SqREL___________ has joined #ruby
nerium has joined #ruby
<jhass> ocx: can you at least detail on how you'd expect any of us to magically know what the right query for your real data would be?
tvw has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
thomasxie has joined #ruby
bMalum has joined #ruby
skammer3 has joined #ruby
kate_r has joined #ruby
kate_r has quit [Client Quit]
dawkirst has quit [Remote host closed the connection]
sandelius has joined #ruby
<shevy> ocx you must provide the source code + error you get + how you invoke it
<shevy> usually it is best to isolate the problem to the smallest reproducible component
krisquigley has joined #ruby
Pumukel has joined #ruby
bMalum has quit [Quit: bMalum]
RyanV has joined #ruby
timonv_ has joined #ruby
Cort3z has quit [Ping timeout: 246 seconds]
krisquigley has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
hiyosi has joined #ruby
joonty has joined #ruby
dx7 has joined #ruby
qba73 has quit [Remote host closed the connection]
ocx has quit [Quit: Dead]
Liendre has joined #ruby
<Liendre> hello
pdais has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
qba73 has joined #ruby
Takle has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 272 seconds]
<jhass> hi
v0n has quit [Quit: WeeChat 1.0]
hiyosi has quit [Ping timeout: 258 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dx7 has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
willgo has joined #ruby
Cort3z has joined #ruby
Spami has joined #ruby
<Cort3z> Does anyone know if it is possible to compile ruby for osx and include openssl and other dependencies within the ruby itself (no external dependencies)?
arup_r has joined #ruby
<Hanmac> Cort3z: hm why do you want to do that?
<Cort3z> I have a built a portable Ruby, and I want to be able to use SSL when moving the package about
kristofferR has joined #ruby
thsig has joined #ruby
<Hanmac> hm it might be possible but that would be very VERY ugly ... and osx would it make even more ugly
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Cort3z> yeah.. I am aware. I can be ok with a little ugly, as long as it works
phutchins has quit [Ping timeout: 250 seconds]
mijicd has quit [Remote host closed the connection]
lolmaus has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<emocakes__> shevy!
<emocakes__> meinle
<emocakes__> * mein liebling!!
thsig_ has joined #ruby
phutchins has joined #ruby
mijicd has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
alem0lars has quit [Quit: AFK..]
lolmaus__ has quit [Ping timeout: 240 seconds]
thsig has quit [Ping timeout: 245 seconds]
Aaaal has joined #ruby
Sharker_ has joined #ruby
alem0lars has joined #ruby
Sharker has quit [Remote host closed the connection]
nettoweb has joined #ruby
sandelius has joined #ruby
justinmburrous has joined #ruby
Sharker has joined #ruby
Sharker_ has quit [Ping timeout: 264 seconds]
<shevy> hey emocakes__
<emocakes__> how are you babe?
Interpolex has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Ping timeout: 272 seconds]
tlarevo_ has joined #ruby
jusmyth has left #ruby [#ruby]
sepp2k has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
<shevy> tired!
fabrice31 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
<Hanmac> shevy gemtree now has a cluster option http://i.imgur.com/CGCdZSO.png
MCDev has quit [Ping timeout: 250 seconds]
Red_Onyx has quit [Quit: Leaving]
larsam has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
wsstudios has joined #ruby
wsstudios has quit [Client Quit]
sk87 has joined #ruby
dawkirst has quit [Remote host closed the connection]
wsstudios has joined #ruby
Cort3z has quit [Ping timeout: 250 seconds]
lolmaus_ has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.3/20140923175406]]
xenomorph is now known as {xenomorph}
rdark has joined #ruby
rdark has quit [Client Quit]
spastorino has joined #ruby
sevenseacat has joined #ruby
rdark has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
rdark has quit [Client Quit]
rdark has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
rdark has quit [Client Quit]
lolmaus__ has joined #ruby
rdark has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
ereslibre has joined #ruby
iamdoo2 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
qba73 has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
skammer3 has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
nerium has quit [Quit: nerium]
p0sixpscl has joined #ruby
Macaveli has joined #ruby
Pupeno has joined #ruby
moritzs has joined #ruby
Spami has joined #ruby
timonv_ has joined #ruby
root3d has joined #ruby
kaspertidemann has quit []
nerium has joined #ruby
p0sixpscl has quit [Ping timeout: 258 seconds]
startupality has quit [Quit: startupality]
nerium has quit [Client Quit]
hiyosi has joined #ruby
Spami has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 260 seconds]
grenierm has quit [Quit: grenierm]
benzrf|offline is now known as benzrf
hiyosi has quit [Ping timeout: 245 seconds]
shredding_ has joined #ruby
roolo has joined #ruby
shredding has quit [Ping timeout: 272 seconds]
shredding_ is now known as shredding
LiohAu_ has quit [Quit: LiohAu_]
rshetty_ has quit [Remote host closed the connection]
Soda has joined #ruby
ixqjdx has joined #ruby
dev_ryan has joined #ruby
schaerli has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
alem0lars has quit [Quit: AFK..]
yfeldblum has quit [Ping timeout: 258 seconds]
qba73 has joined #ruby
Interpolex has joined #ruby
Advocation has joined #ruby
benzrf is now known as benzrf|offline
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Spami has joined #ruby
MCDev has joined #ruby
dev_ryan has quit [Ping timeout: 260 seconds]
mkaesz has quit [Ping timeout: 272 seconds]
tokik has quit [Ping timeout: 250 seconds]
Dr3amc0d3r|away has joined #ruby
Rollabunna has joined #ruby
moritzs has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
justinmburrous has joined #ruby
Spami has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Client Quit]
Advocation has quit [Quit: Advocation]
Takle has quit [Remote host closed the connection]
phutchin1 has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
jottr has joined #ruby
KC9YDN has joined #ruby
sk87 has joined #ruby
PierreRambaud has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
badhatter has joined #ruby
mxrguspxrt has joined #ruby
webgen has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
<shevy> I hate rewriting stuff
yfeldblum has joined #ruby
imastef has joined #ruby
<ddv> nobody seems to care, shevy
<ddv> ;'(
<imastef> hi guys … I’m getting an uninitialized constant error Zlib:GzipWriter
MaciejCzyzewski has joined #ruby
<shevy> ddv hey there are gentle souls here
<imastef> any ideas what that means? do I miss a package or something?
<shevy> imastef require 'zlib' works?
qba73 has quit [Remote host closed the connection]
<shevy> and btw
<shevy> you forgot one :
<ddv> I was about to say that too
<shevy> I noticed when I copy pasted
<shevy> into irb and irb complained
<shevy> I was even too lazy to check whether it was correct before I copy pasted
<shevy> thankfully on linux you can simply select stuff with your mouse and then move the mouse and press middle mouse button
krisquigley has joined #ruby
qba73 has joined #ruby
<shevy> I select in xchat through a simple double click
<shevy> or if it is longer, I drag the cursor
* Hanmac praises the middle mouse button
sk87 has joined #ruby
<shevy> <ddv> I was about to say that too <-- see? I just dragged the mouse cursor...
<shevy> I could really copy paste EVERYTHING here
<shevy> but then I would get banned :(
<ddv> not really apeiros isn't here
<shevy> \o/
<shevy> FREEDOM!
<shevy> but not for scottland
<shevy> *scotland
<ddv> lol some people actually wanted to hire a hitman to kill lennart poetering
<DefV> FINANCIAL SECURITY!
<shevy> funny that it is spelled Schottland in german... I wonder from where the t came
shredding has quit [Quit: shredding]
<DefV> (that's the new Scottish yell)
yfeldblum has quit [Ping timeout: 260 seconds]
qba73 has quit [Remote host closed the connection]
<shevy> people got all sorts of crazy ideas
oo_ has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
iamjarvo has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
emiemia has joined #ruby
zorak__ has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
dacamp has quit [Ping timeout: 245 seconds]
dx7 has joined #ruby
qba73 has joined #ruby
snath has quit [Ping timeout: 240 seconds]
LiohAu_ has joined #ruby
tessi_zz is now known as tessi
MCDev has quit [Ping timeout: 250 seconds]
<Hanmac> shevy you mean like dropping the metric system and only teaching the imperial system in england?
timonv_ has joined #ruby
SqREL___________ has quit [Quit: Computer has gone to sleep.]
SqREL___________ has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
stylus has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
jottr has joined #ruby
IrishGringo has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SqREL___________ has quit [Ping timeout: 260 seconds]
stylus has joined #ruby
grzywacz has joined #ruby
karupa is now known as zz_karupa
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rollabunna has quit [Remote host closed the connection]
maletor_ has joined #ruby
hiyosi has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
Beoran_ has joined #ruby
kirun has joined #ruby
<shevy> nah, that is advertisement
merqlove has joined #ruby
yetanotherdave has joined #ruby
Beoran__ has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
entrenador has joined #ruby
banister is now known as banisterfiend
yetanotherdave has quit [Ping timeout: 258 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
AtumT has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
mxrguspxrt has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Soda has quit [Remote host closed the connection]
starkhalo has joined #ruby
skammer3 has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
qba73 has quit [Remote host closed the connection]
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
qba73 has joined #ruby
vinky has left #ruby [#ruby]
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mxrguspxrt has joined #ruby
klaut has quit [Remote host closed the connection]
justinmburrous has joined #ruby
wsstudios has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
maletor_ has quit [Quit: Computer has gone to sleep.]
Rollabunna has joined #ruby
p0sixpscl has joined #ruby
bMalum has joined #ruby
migimunz has joined #ruby
aclearman037 has joined #ruby
charliebr73 has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
alem0lars has joined #ruby
<Liendre> hello
imastef has quit [Quit: imastef]
<charliebr73> good afternoon from London
<Liendre> I am doing Ruby course at codeacademy. What do you think could be nice for a next step after this?
<charliebr73> ")
<Liendre> hi charliebr73
entrenador has joined #ruby
entrenador has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
<ddv> Liendre: forget codeacademy and just make stuff
<elaptics> hi Liendre - what are your general aims?
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<charliebr73> Try some of those: http://www.tutorialspoint.com/ruby/index.htm
kaspergrubbe has joined #ruby
<Liendre> hi elaptics . I would like to one day work programming ruby and Ruby on rails.
<Liendre> ddv, But how do I do stuff if I dont know how to make stuff?
<Liendre> thanks charliebr73
<Liendre> :)
mindlessdemon has quit [Ping timeout: 245 seconds]
<charliebr73> I also did lynda.com courses on Ruby and then Rails. They are very good.
qba73 has quit [Remote host closed the connection]
<charliebr73> You can also explore some projects from GitHub, fork a couple and then experiment with them
<Liendre> yes i know lynda. they are good .
<Hanmac> Liendre: my suggestion learn ruby before rails ... otherwise it might confuse you to much
cajone has quit [Remote host closed the connection]
<charliebr73> Read through the project, check the way projects are organised, how different developers organise their classes, methods, etc
<Liendre> thanks Hanmac , I am planning to do so. Ruby and then RoR. I think I like more Rubu but I see job opportunities on Ror.
mindlessdemon has joined #ruby
<Liendre> I will save and check your three links charliebr73 , thanks
mindlessdemon has quit [Max SendQ exceeded]
<charliebr73> I agree Hanmac. Learning Ruby first will help you understand how Rails works backstage.
qba73 has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
phutchins has quit [Ping timeout: 272 seconds]
Morkel has joined #ruby
<charliebr73> And keep practising.
yfeldblum has joined #ruby
mindlessdemon has joined #ruby
mindlessdemon has quit [Max SendQ exceeded]
mindlessdemon has joined #ruby
mindlessdemon has quit [Max SendQ exceeded]
<Hanmac> otherwise you might think AS features like "blank?" or similar are available in ruby itself too
phutchins has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<charliebr73> Also, not for now but for the future, explore other Ruby frameworks, such as Sinatra. Don't restrict yourself to Rails only.
<Liendre> I like the idea of just copying code. I think I can learn a lot of just copying and realizing later what does it do.
<sevenseacat> Liendre: that sounds like a terrible idea.
<charliebr73> Copying helps with memorising syntax, not understanding it
<Liendre> sevenseacat, oh. I was thinking one nice method to learn new languajes for other countries i mean
<charliebr73> You need to learn how things fit together. Copying only will not teach you that.
<Liendre> but it doesnt have to be the same
<Liendre> ok ok charliebr73
<Liendre> thanks for the advice
arup_r has joined #ruby
<charliebr73> Besides, copying will show you only how ONE developer works with Ruby. There are many ways to achieve the same result
<Liendre> exploring github will do the kob
<Liendre> job*
<charliebr73> :)
codenoob_ has joined #ruby
<Liendre> it is hard the start. Like you are blind and cant move at all
cajone has joined #ruby
<codenoob_> How do I delete or update posts ? I created a post and it displayed fine when I deleted the post from _post folder and re added with some changes now it is not shown anywhere -- talking about jekyll here
imastef has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<tobiasvl> codenoob_: what's a post?
<charliebr73> Well, you can't run if you don't know how to walk first. =oP
<tobiasvl> codenoob_: doesn't jekyll have its own channel?
<tobiasvl> codenoob_: this is a channel for the ruby programming language, not the myriad of projects programmed in ruby :P
pskosinski has joined #ruby
<codenoob_> Nobody is active there
SqREL___________ has joined #ruby
<charliebr73> Ruby is conquering the world! >.<
apeiros has joined #ruby
<Liendre> there are 888 users here. It is a good channel
<Hanmac> apeiros: is back in the house ;P
<tobiasvl> yeah, this is a great channel… about the ruby programming language
<apeiros> hi Hanmac
Cichol has joined #ruby
<elaptics> Liendre: if you're happy to pay for learning resources then you could take a look at https://www.makeitwithcode.com/home-3
<codenoob_> anybody upto answering me ?
<sevenseacat> 'i know im asking in the wrong place, but answer my question anyway'
lolmaus has joined #ruby
<Liendre> elaptics, Do you like it more than Codeschool?
emrox has joined #ruby
ctp has joined #ruby
<elaptics> Liendre: I've never used codeschool. I've seen a few lessons from makeitwithcode and was quite impressed with the way they present it. It's made so that you create some practical things and forces you to learn how to do it but they also provide help as you do the course
<elaptics> Liendre: I helped to run a seminar at the weekend where they did a few of the early lessons and it was well received
IceDragon has joined #ruby
<sevenseacat> i only did one course at codeschool (the ember one) and i didnt get much from it.
lolmaus__ has quit [Ping timeout: 240 seconds]
<elaptics> If I were learning now I think the makeitwithcode way would have suited me as someone who learns best by doing
<charliebr73> Bottom line is, there are many resources to teach out Ruby out there. You just need to find one that suits your.
lolmaus_ has joined #ruby
<Liendre> It is good elaptics but money talks. I will spend money when I get more knowledge so I can be sure it is well used.
willgo has quit [Remote host closed the connection]
<charliebr73> For example, there are loads of youTube videos teaching the same topic but in completely different ways.
hiyosi has joined #ruby
jasooon has joined #ruby
<Liendre> yes charliebr73 , there many. But I found Michael Hartl ror book and it is perfect for me. I was hoping to find something similar for plain ruby.
<charliebr73> :)
<elaptics> Liendre: all depends how you value your time :)
<Liendre> but thanks for your help to all
<Liendre> elaptics, my time is gold, saddly.
<Liendre> I will think about all of this.
lolmaus has quit [Ping timeout: 240 seconds]
justinmburrous has joined #ruby
<shevy> Liendre ultimately the only way to learn ruby is to write lots and lots of ruby code
lw has joined #ruby
shredding has joined #ruby
paulfm has joined #ruby
Paul_McFreely has joined #ruby
uber has quit [Changing host]
uber has joined #ruby
fgo has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 260 seconds]
ponga has joined #ruby
<ponga> hi ruby
monkeypatch has joined #ruby
YamakasY has joined #ruby
kobain has joined #ruby
<YamakasY> hi guys
<YamakasY> I'm trying to find a way if a directly hold files and doesn't check . and .. but .hidden, is this a way to ? http://pastebin.com/FY2ZRNUP
mxrguspxrt has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
<tobiasvl> YamakasY: couldn't you just check if Dir.glob('*').empty?
sumark_ has quit [Remote host closed the connection]
lxsameer has quit [Read error: No route to host]
bMalum has quit [Quit: bMalum]
<tobiasvl> YamakasY: it matches anything that doesn't start with a . (unless you also pass File::FNM_DOTMATCH)
<YamakasY> tobiasvl: yes but that crawles also large folders
sumark has joined #ruby
lxsameer has joined #ruby
<YamakasY> tobiasvl: I need .file also but not .
<YamakasY> and ..
<tobiasvl> ah, sorry, I missed the "but!"
<tobiasvl> s/!//
mxrguspxrt has joined #ruby
<tobiasvl> (Dir.glob("*", File::FNM_DOTMATCH) - [".", ".."]).empty?
<tobiasvl> :P
TJT has joined #ruby
Spami has joined #ruby
<TJT> hi
<tobiasvl> YamakasY: it won't traverse subdirectories though, will it? not without "**"? what do you mean by "crawles also large folders"
rshetty has quit [Remote host closed the connection]
lolmaus__ has joined #ruby
thsig_ has quit [Remote host closed the connection]
fantazo has joined #ruby
emiemia has quit []
Rollabunna has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
justinmburrous has quit [Remote host closed the connection]
<YamakasY> tobiasvl: ok, sorry phone :)
ffranz has joined #ruby
bMalum has joined #ruby
codenoob_ has quit [Quit: Page closed]
bmurt has joined #ruby
<YamakasY> tobiasvl: just make that the if ?
Darryl has joined #ruby
<tobiasvl> YamakasY: I dunno. if it does what you want it to, then sure
fsapo has joined #ruby
grenierm has joined #ruby
<YamakasY> tobiasvl: I need to do something in a puppet manifest like if file_exists ("/etc/somedir") >= 1
<YamakasY> {}
<tobiasvl> if file_exists >= 1
<tobiasvl> uh
<tobiasvl> isn't that a boolean
mastr_bennett[x] has joined #ruby
mastr_bennett[x] has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
<YamakasY> tobiasvl: uhm, yeah I'm not that good :) I can better return true
zorak__ has quit [Ping timeout: 240 seconds]
mindlessdemon has joined #ruby
mindlessdemon has quit [Max SendQ exceeded]
mindlessdemon has joined #ruby
mindlessdemon has quit [Client Quit]
andrewlio has quit [Quit: Leaving.]
arrnas has joined #ruby
qmfnp has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
twohlix has joined #ruby
peteretep has joined #ruby
<peteretep> CPAN has automated static code quality metrics that run over all distributions and are published; has someone seen anything similar for Ruby Gems?
charliebr73 has quit [Quit: Leaving]
Kricir has joined #ruby
bMalum has quit [Quit: bMalum]
coderdad has joined #ruby
grenierm has left #ruby [#ruby]
bMalum has joined #ruby
cpruitt has joined #ruby
pastry has joined #ruby
<pastry> In "duplicate.send(association).send(:<<associated_object)", what would that ":<<" be? I've never seen that before
<pastry> it looks like a clever shortcut to capture something anonymously and push an object onto it
<apeiros> pastry: it'd be a syntax error
TJT is now known as celend
otherj has joined #ruby
tessi is now known as tessi_zz
<apeiros> that's not valid ruby pastry. make sure you paste valid ruby. did you mean `.send(:<<, associated_object)` ?
<pastry> apeiros: thanks, I'm not really used to ruby and I'm trying to parse this code
<pastry> mmmh, let's see
<arrnas> hey guys, i'm a bit confused about instance and class variables, instances = variable for all instances of the class, class = variable shared with all instances of the class and instances of its subclasses?
dblessing has joined #ruby
<arrnas> instance =*
<apeiros> arrnas: and a bit more. yes
<pastry> what would that if it was like that mean? it's still obscure to me
<pastry> apparently I'm also writing horrible obscure sentences now
<apeiros> shared with class, instances of class, subclasses, instances of subclasses. and it gets a lot more fun with modules. my advice is to avoid them since most people simply don't really understand how it works.
mattstratton has joined #ruby
yfeldblum has joined #ruby
<apeiros> pastry: :<< is a symbol. at this point, think of a symbol as a slightly special string, e.g. "<<" (which would work there too)
iamjarvo has joined #ruby
<apeiros> it's one of the two arguments passed to the method `send`
<pastry> ah, got it!
<pastry> wouldn't have believed that << could be a symbol
<apeiros> << is not a symbol
<arrnas> apeiros: but what's the use case for class variables, seems like a static variable with some magic to share it around
<apeiros> :<< is
<pastry> :<< I mean
<pastry> yeah, I though it only worked with alphanums
<pastry> thank you
<apeiros> arrnas: the use case is when you need to share data between said entities
<apeiros> pastry: every valid method name can be used as a symbol without quotes
<apeiros> pastry: and with quotes, about everything is valid
Hanmac has joined #ruby
<apeiros> >> :"this is a valid symbol!"
<eval-in_> apeiros => :"this is a valid symbol!" (https://eval.in/202084)
<apeiros> >> :this_is_too!
<eval-in_> apeiros => :this_is_too! (https://eval.in/202085)
<apeiros> >> :+.class
<eval-in_> apeiros => Symbol (https://eval.in/202086)
<pastry> that makes sense, it makes symbols way more powerful
<pastry> thanks
<tobiasvl> >> :<<associated_object
<eval-in_> tobiasvl => /tmp/execpad-a645eabfb9ef/source-a645eabfb9ef:2: syntax error, unexpected tSTRING_BEG, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END ... (https://eval.in/202087)
ki0 has quit [Remote host closed the connection]
<apeiros> tobiasvl: I said it was a syntax error :-p
<tobiasvl> just checking ;) (and showing pastry)
<tobiasvl> but I never doubted you
paulfm has quit []
krisquigley has joined #ruby
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arrnas> apeiros: you've mentioned "shared with class" so if a class doesn't have any instances, it acts like a singleton by default?
ki0 has joined #ruby
bMalum has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
<Hanmac> in newest ruby {"abc": 4} is valid too
tessi_zz is now known as tessi
Advocation has joined #ruby
Xeago has joined #ruby
celend has left #ruby ["Konversation terminated!"]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
C0deMaver1ck_ is now known as C0deMaver1ck
msmith has joined #ruby
peteretep has left #ruby [#ruby]
krisquigley has quit [Ping timeout: 260 seconds]
RyanV has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
<apeiros> arrnas: a class is an object
<apeiros> arrnas: and a class has its own methods - class methods (which are stored in the class' singleton_class)
Paul_McFreely has quit [Quit: Lingo - http://lingoirc.com]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
livingstn has joined #ruby
Xeago has joined #ruby
camilasann has joined #ruby
<Hanmac> you can also store classes, modules and other constants in singleton classes but that bad voodoo ;P
anarang has quit [Quit: Leaving]
camilasan has quit [Ping timeout: 272 seconds]
root3d has quit [Read error: Connection reset by peer]
fgo has joined #ruby
vieiralucas has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
djstorm has joined #ruby
arup_r has quit []
jerius has joined #ruby
jasooon has joined #ruby
mijicd has quit [Quit: leaving]
tlarevo_ has quit [Remote host closed the connection]
rismoney1 has joined #ruby
ta has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 272 seconds]
Rollabunna has quit [Quit: Leaving...]
r4um has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
mxrguspxrt has quit [Remote host closed the connection]
centrx has joined #ruby
vieiralucas has left #ruby [#ruby]
mxrguspxrt has joined #ruby
yalue has joined #ruby
Gendalph has joined #ruby
sailias has joined #ruby
tokik has joined #ruby
havenwood has joined #ruby
mxrguspxrt has quit [Read error: Connection reset by peer]
<Gendalph> Hello! Please, recommend me a couple of books to learn Ruby and then RoR
mxrguspxrt has joined #ruby
<Gendalph> I know some Perl and JS (+HTML and CSS)
migimunz has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
<ddv> Gendalph: rubyguides?
<ddv> rorguides
ponga has quit []
<Gendalph> thx
paulfm has joined #ruby
<ddv> the ruby programming language is pretty good
russt has joined #ruby
lxsameer has quit [Quit: Leaving]
lw has quit [Quit: s]
<Gendalph> thank you guys
spyderman4g63 has quit []
<ddv> Gendalph: code complete, clean coder
<ddv> clean code*
cocotton has joined #ruby
ALVAN has left #ruby [#ruby]
AlSquire has quit [Ping timeout: 240 seconds]
n1lo has joined #ruby
obscured has joined #ruby
jcdesimp has joined #ruby
mxrguspxrt has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
mxrguspxrt has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
dx7 has joined #ruby
mastr_bennett[x] has joined #ruby
AlSquire has joined #ruby
silkfox has joined #ruby
alem0lars has quit [Quit: AFK..]
coderdad has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
cocotton has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
coderdad has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
LangeOortjes has joined #ruby
sprihodko has joined #ruby
russt has quit [Quit: russt]
monkeypatch has joined #ruby
dx7 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
dx7 has joined #ruby
MasterPiece has quit [Quit: Leaving]
thoolihan has quit [Ping timeout: 244 seconds]
andrewlio has joined #ruby
fgo has joined #ruby
thoolihan has joined #ruby
bricker`LA has joined #ruby
sk87 has joined #ruby
qmfnp has joined #ruby
cherwin has quit [Ping timeout: 246 seconds]
Tomme has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
mrsolo has joined #ruby
ringarin has joined #ruby
yfeldblum has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
thomasxie has quit [Remote host closed the connection]
jrhe_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cherwin has joined #ruby
mrsolo has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
oleo has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Ankhers has joined #ruby
kate_r has joined #ruby
ixti has joined #ruby
mary5030 has joined #ruby
j2p2 has joined #ruby
mary5030 has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
mary5030 has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
j_mcnally has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
cocotton has joined #ruby
noop has joined #ruby
oo_ has joined #ruby
yeticry has joined #ruby
freezey has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
jaznow has quit [Quit: Saliendo]
jusmyth has joined #ruby
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
<ducklobster> How would I go about passing a method from one class to another without defining it as a block explicitly?
<apeiros> ducklobster: pass its name or pass a Method instance
phao_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
justinmburrous has joined #ruby
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ducklobster> apeiros: if I pass its name doesn't it evaluate that method and pass the result?
<apeiros> ducklobster: how would I know what your method does?
<ducklobster> apeiros: in general, if you pass the name of a method won't it evaluate the method?
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<apeiros> also you can't pass anything to a class - since classes are not invoked. you can pass stuff to methods.
volty has joined #ruby
<apeiros> ducklobster: errr, no? that would be horrible.
sprihodko has joined #ruby
<apeiros> imagine that - you pass a string/symbol which *happens* to be the name of a method and that method gets executed…
<apeiros> fun times
<ducklobster> good point
kate_r has joined #ruby
<apeiros> that is - apart from it not making sense at all
snath has joined #ruby
<volty> help, my current ruby is 1.9.3. with shims, i need x86_64-linux/ruby.h to link // where is this file, or, where and how should be installed ?
kate_r has quit [Client Quit]
<apeiros> volty: `locate ruby.h`?
sprihodko has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> apeiros: i do not have it, how do I installed it under shims ?
kate_r has joined #ruby
kate_r has left #ruby [#ruby]
<apeiros> can't help you with that. sorry.
<volty> I have ruby.h only for regularly (through ubuntu package manager) installed 1.8.7 and 1.9.1
justinmburrous has quit [Ping timeout: 258 seconds]
<YamakasY> tobiasvl: still here ?
<tobiasvl> YamakasY: yes, but what do you need me for specifically? please just ask your question to the channel at large
tagrudev has quit [Read error: Connection reset by peer]
<tobiasvl> people will help if they can
merqlove has joined #ruby
noop has quit [Ping timeout: 245 seconds]
<YamakasY> tobiasvl: yeah but still on the same topic, so you might wanna know
<YamakasY> how do I pass args in here ? http://pastebin.com/2fXRNn9D
<tobiasvl> pass where?
Dreamer3 has quit [Quit: Leaving...]
IrishGringo has quit [Ping timeout: 272 seconds]
slawrence00 has joined #ruby
<YamakasY> I need to be able to check /my/path but would like to do file_exists(/my/path)
fgo has joined #ruby
freezey has quit [Remote host closed the connection]
devdazed has joined #ruby
Advocation has joined #ruby
<volty> fast instructions on removing shims altogether ?
<Hanmac> volty what are you trying to build? if you make an extension ruby does set the paths for you, if you try to include ruby itself into your stuff, use pkg-config
jasooon has joined #ruby
<volty> Hanmac: an extension for qtruby (and else), in local, no pkg-configs
Dreamer3 has joined #ruby
<Hanmac> what do you mean "in local"?
<volty> I just need the right ruby.h header. So I am going to get read of shims & other funnies (I do not switch anyway)
<volty> local compiling, for personal use, for personal apps to be packed & distrib in own manner
fgo has quit [Ping timeout: 258 seconds]
oozzal has joined #ruby
freezey has joined #ruby
<Hanmac> volty: if you mean "/usr/local" then it has its own pkg-config
jasooon has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Read error: No route to host]
iamjarvo has joined #ruby
oozzal has quit [Client Quit]
yeticry has quit [Ping timeout: 260 seconds]
<ducklobster> apeiros: I am defining a method in my MainClass that will be passed down to an instance of ExtraClass and it uses methods only available in ExtraClass, which is causing errors
<volty> Hanmac: I need to compile and link, before placing in /usr/local. I am talking about the necessary ruby header to do it, without going crazy on getting the respective source and placing it & adding include paths.
<ducklobster> apeiros: I can fix this by wrapping my method in a Proc and passing that down but is there a way to just define in the method without it throwing errors about unknown methods?
enebo has joined #ruby
freerobby has joined #ruby
rippa has joined #ruby
iamjarvo has quit [Client Quit]
yeticry has joined #ruby
phao_ has quit [Quit: Leaving]
<apeiros> ducklobster: I can't make sense of your description, sorry. can you make a reproducable example and gist it?
noop has joined #ruby
<ducklobster> apeiros: sure
<apeiros> also, what's wrong with wrapping it in a proc?
<Hanmac> volty: if you make a extension for ruby, use mkmf or similar for the paths
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
fijimunkii has joined #ruby
<volty> Hanmac: I just need the right ruby header files, no need for mkmf (that anyway cannot produce it on-fly)
rismoney1 has quit [Ping timeout: 260 seconds]
<Hanmac> without asking ruby you never cant get the right header or include dirs, because the header might be installed with multiarch
linojon_ has joined #ruby
<Hanmac> volty: just look at the use-case building an extension is perfect for mkmf and (most) ruby does ship it, you very need to rethink why you cant use it
<volty> Hanmac: one step at time, I have other things to think at.
linojon has quit [Ping timeout: 260 seconds]
linojon_ is now known as linojon
phantummm has joined #ruby
W0rmDr1nk has quit [Ping timeout: 244 seconds]
<volty> I'll try to switch to ruby -2, since that one has header installed. Thx!
icebourg has joined #ruby
roolo has quit [Read error: Connection reset by peer]
lukevinc has joined #ruby
roolo has joined #ruby
<Hanmac> volty: ah i think the problem it seems that you do not have the -dev packages installed
speaking1ode is now known as speakingcode
qba73 has quit [Remote host closed the connection]
<ducklobster> apeiros: reason for not wrapping in a Proc is just that I think the nonProc version is cleaner and if possible to avoid it I would prefer it
schaerli has quit [Ping timeout: 250 seconds]
<apeiros> ducklobster: that's not reproducable. I can't take this code and run it.
Dreamer3 has quit [Remote host closed the connection]
<apeiros> and your proc won't have an issue because the code in it is not being executed
<apeiros> at least not in your example
fsapo has quit [Ping timeout: 250 seconds]
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claw_ has joined #ruby
linojon_ has joined #ruby
claw has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
<ducklobster> apeiros: sorry, i tried to strip out some things to focus on the problem
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
<ducklobster> apeiros: I think i'll just go with the Proc way, thanks for the help though
linojon has quit [Ping timeout: 244 seconds]
linojon_ is now known as linojon
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
Dreamer3 has joined #ruby
Dreamer3 has quit [Client Quit]
coderdad has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
aizu has joined #ruby
fgo has joined #ruby
bal has quit [Quit: bal]
ringarin has quit [Read error: Connection reset by peer]
jusmyth has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
Soda has joined #ruby
coderdad has joined #ruby
twohlix has joined #ruby
aizu has quit [Ping timeout: 260 seconds]
AFKGeek has quit [Quit: Leaving]
yfeldblum has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
Dreamer3 has joined #ruby
hfp has quit [Ping timeout: 272 seconds]
Dreamer3 has quit [Max SendQ exceeded]
Dreamer3 has joined #ruby
Takle has quit [Remote host closed the connection]
rshetty has joined #ruby
hfp has joined #ruby
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
IrishGringo has joined #ruby
rshetty has quit [Remote host closed the connection]
v0n has joined #ruby
krisquigley has joined #ruby
endash has joined #ruby
linojon_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
ahhMichael has joined #ruby
linojon has quit [Ping timeout: 260 seconds]
linojon_ is now known as linojon
Danibal has joined #ruby
ki0 has quit [Remote host closed the connection]
ht__th has quit [Remote host closed the connection]
ki0 has joined #ruby
timonv_ has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
ht__th has joined #ruby
pdais has quit [Quit: Leaving.]
Takle has joined #ruby
pwh has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
ht__th has quit [Remote host closed the connection]
echevemaster has joined #ruby
Cichol has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 240 seconds]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
chrishough has joined #ruby
ht__th has joined #ruby
joonty has joined #ruby
thsig has joined #ruby
freezey has quit [Remote host closed the connection]
justinmburrous has joined #ruby
klaut has joined #ruby
timonv_ has quit [Remote host closed the connection]
agrinb has joined #ruby
noop has quit [Ping timeout: 246 seconds]
aspires has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
phao has joined #ruby
treehug88 has joined #ruby
slester has joined #ruby
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
thsig has quit [Ping timeout: 272 seconds]
justinmburrous has quit [Ping timeout: 272 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
thsig has joined #ruby
Kricir has joined #ruby
ctp has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
mattstratton has joined #ruby
rkalfane has joined #ruby
Akagi201 has quit [Ping timeout: 246 seconds]
spyderman4g63 has joined #ruby
freezey has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir_ has joined #ruby
ctp has quit [Client Quit]
HelperW__ has joined #ruby
jasooon has joined #ruby
fabrice31 has quit [Remote host closed the connection]
ahhMichael has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
fabrice31 has joined #ruby
cu has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
lolmaus__ has joined #ruby
HelperW_ has quit [Ping timeout: 245 seconds]
HelperW__ has quit [Ping timeout: 245 seconds]
timonv_ has quit [Quit: Leaving...]
Xiti has quit [Quit: Leaving]
jasooon has quit [Ping timeout: 245 seconds]
compuser has quit [Ping timeout: 245 seconds]
cu has quit [Ping timeout: 250 seconds]
tlarevo has joined #ruby
Channel6 has joined #ruby
silkfox has quit [Ping timeout: 260 seconds]
jcdesimp_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
t_p has joined #ruby
kernelpanik has joined #ruby
lolmaus has joined #ruby
<kernelpanik> hi guys! I need to install ruby 2.0.0 from rpm.. do you know where I can find them? thanks
webgen has quit [Read error: Connection reset by peer]
jcdesimp has quit [Ping timeout: 244 seconds]
<centrx> kernelpanik, Use your distribution's package management system?
jcdesimp_ has quit [Remote host closed the connection]
iceden has joined #ruby
silkfox has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
<kernelpanik> I did not find ruby 2.0 on the official centos repository
cu has joined #ruby
qba73 has quit []
aganov has quit [Quit: Leaving]
pwh has quit [Read error: Connection reset by peer]
otherj has quit []
<centrx> kernelpanik, There's always rpmfind.net
voodoofish4301 is now known as voodoofish430
pwh has joined #ruby
<centrx> kernelpanik, but ideally you should find packages for CentOS
otherj has joined #ruby
pandaant has joined #ruby
<eam> kernelpanik: ruby 2.x is in centos7
<eam> you're probably running centos6, you'll need to upgrade to get it
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SqREL___________ has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
SqREL___________ has joined #ruby
jcdesimp has joined #ruby
einarj has quit [Remote host closed the connection]
<kernelpanik> ok thanks guys
lolmaus_ has joined #ruby
cu has quit [Quit: Computer has gone to sleep.]
nettoweb has joined #ruby
axilla has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
kernelpanik has quit [Quit: Page closed]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
yfeldblum has joined #ruby
Fire-Dragon-DoL has joined #ruby
<axilla> afternoon all, i'm working with an API integrate the importing of images from instagram into our app. anyone have any tips on cacheing the images temporarily while the user browses through and selects the ones they want to import into our system? I'm thinking I don't want to have to make another call to the API everytime I want to do something(i.e. search or pagination)
ghostmoth has joined #ruby
jonathanwallace has quit [Quit: ZNC - http://znc.in]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
fgo has joined #ruby
<axilla> i want to call the images just once and then work with them for all of my actions afterwards.
zorak__ has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
zorak__ has quit [Remote host closed the connection]
neoxquick has joined #ruby
zorak8 has joined #ruby
fgo has quit [Read error: No route to host]
cndiv has joined #ruby
fgo has joined #ruby
alem0lars has quit [Quit: AFK..]
Channel6 has quit [Quit: Leaving]
otherj has quit []
kamilc__ has quit [Quit: Leaving...]
finisherr has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
pwh has quit [Read error: Connection reset by peer]
<finisherr> Let’s say I have thre threads doing some work. Eventually, each thread will want to print a whole lot to the console. How can I do this without having each thread trying to print to stdout at the same time. Do I lock stdout somehow?
maestrojed has joined #ruby
<waxjar> you could put whatever they try to print on a queue
rshetty has joined #ruby
<apeiros> finisherr: get a fourth thread. pipe the output into a queue. let the fourth thread process that queue.
<waxjar> and either empty the queue at the end or empty it from the main thread
<finisherr> ok
joonty has quit [Quit: Leaving]
thagomizer has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
silkfox has quit [Ping timeout: 258 seconds]
Hightower660 has joined #ruby
braincrash has quit [Ping timeout: 258 seconds]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
braincrash has joined #ruby
jimmyhoughjr has joined #ruby
pwh has joined #ruby
<eam> the stdio layer already has a mutex around access
<eam> that's part of why printf and so on isn't reentrant
hamakn has quit [Ping timeout: 240 seconds]
<apeiros> eam: sure. but it doesn't ensure e.g. a puts being in one piece.
andikr has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
* apeiros has seen puts split up text and newline in threaded env
<eam> does puts split input into multiple calls?
* eam checks
schaerli has joined #ruby
<waxjar> yeah, i've also seen interleaved output
Tomme has joined #ruby
spyderman4g63 has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 246 seconds]
bluenemo has joined #ruby
shredding has quit [Quit: shredding]
Channel6 has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
tokik has quit [Ping timeout: 244 seconds]
Hobogrammer has joined #ruby
<eam> well that's interesting, for sufficiently large buffers ruby does a tiny (and afaict unnecessary) write after one single large write
michaeldeol has joined #ruby
Xiti has joined #ruby
Takle has joined #ruby
jobewan has joined #ruby
mattstratton has joined #ruby
emanu has joined #ruby
michaeldeol has quit [Client Quit]
douglasssssss has joined #ruby
<eam> and it depends on whether the buffer is a power of two hmmmmhmmmm
dawkirst has joined #ruby
<eam> lame
dawkirst has quit [Remote host closed the connection]
ryanleesipes has joined #ruby
<eam> puts "a" * (2**16-1) => write(64512); write(1024)
silkfox has joined #ruby
<eam> puts "a" * (2**16) => write(65536); write(1)
michaeldeol has joined #ruby
<eam> well, it doesn't have to be that way
<eam> one of the best features of unix i/o are the provisions for interleaving writes without doing your own locking
alem0lars has joined #ruby
siwica has joined #ruby
<eam> #write should get around this problem
<epitron> haha! weird
<epitron> what the hell, ruby?
dx7 has quit [Remote host closed the connection]
imastef has quit [Quit: imastef]
<waxjar> maybe it so the GIL won't be for taken too long?
chthon has quit [Ping timeout: 245 seconds]
Tomme has quit [Ping timeout: 245 seconds]
<epitron> so you think it's checking what the buffer size is for the FD, and making the write fill it up?
ktun has joined #ruby
<waxjar> i have no idea :p
<eam> I'm just observing behavior with strace -ewrite; not sure why yet
<epitron> running strace on ruby is always scary
<epitron> ruby does a lot of weird things
<eam> eh not really:P
teddyp1cker has joined #ruby
<epitron> try "strace ruby -r<any gem> -e 1" :D
Liendre has quit [Read error: Connection reset by peer]
Scotteh has joined #ruby
<epitron> compare to "strace python -c 'import anything'"
stunder has joined #ruby
<eam> oh agreed, ruby is super noisy
fsapo has joined #ruby
<epitron> i don't mind noise, but excessive filesystem access for no reason is kinda bad
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goodenough has joined #ruby
lkba has joined #ruby
baroquebobcat has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<yxhuvud> why do you think it is for no reason? There are no cache or other system to dictate where something should be found, so it has to look in the whole search path
andrewlio has quit [Quit: Leaving.]
kinduff has joined #ruby
benlieb has joined #ruby
yakko has joined #ruby
bobishh has quit [Ping timeout: 260 seconds]
zorak8 has joined #ruby
roolo has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 272 seconds]
merqlove has quit [Quit: Connection closed for inactivity]
jasooon has joined #ruby
Wolland has joined #ruby
roolo has joined #ruby
<epitron> yxhuvud: can you explain this "lstat pyramid"? https://gist.github.com/db59ddfee95d4a0071e2
<epitron> it does that for every thing that gets required
pwh has quit []
<epitron> meaning that it stats /home about 5 million times
Soda has quit [Remote host closed the connection]
<epitron> or /usr in this case
MCDev has joined #ruby
ephemerian has quit [Quit: Leaving.]
skammer3 has quit [Ping timeout: 260 seconds]
<yxhuvud> ok, that seems a bit excessive.
schaerli has quit [Ping timeout: 260 seconds]
<waxjar> sounds like it's worth an issue at least
<epitron> heh
<epitron> i can't remember if i filed it already
<eam> stat spam is a common problem, stuff calls access() before open(), etc
Wolland has quit [Ping timeout: 250 seconds]
alex88 has quit [Quit: Leaving...]
roolo has quit [Ping timeout: 260 seconds]
mpistone has joined #ruby
Nova_ has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
emocakes__ has quit []
<eam> hm, ruby 2.x appears to do a single write() for the data, but sends a second write "\n" after
<epitron> oh, maybe that's so it doesn't have to realloc the string
<epitron> appending to the buffer would require allocating new memory
<eam> yeah
<eam> that's different than 1.8 (which is what I was looking at before)
frozenfoxx has left #ruby [#ruby]
bwilson has joined #ruby
<eam> logic is: for arg, write() each arg, write \n
nisstyre has quit [Ping timeout: 260 seconds]
<epitron> anyhow, wc -l for strace is 3100 for requiring a gem, and 948 for not requiring a gem
<epitron> meaning it takes ~2000 system calls to require a gem :)
<eam> anyway, use #write to avoid this if you want
<epitron> most of them lstat/open
<eam> gem is a package loading system on top of a package loading system
<epitron> this is an exponential problem too -- the more gems you have, the worse it gets
linguini has joined #ruby
iceden has quit [Read error: Connection reset by peer]
HelperW__ has joined #ruby
<epitron> i think ruby could kill most of that stat spam by checking for the most common case when you do "require 'gemname'", which is to see if "gemname-<latest version>/lib/gemname.rb" exists
<epitron> that's one stat! :)
<epitron> (i mean, you know, after checking the path)
nisstyre has joined #ruby
tessi is now known as tessi_zz
ndrei has joined #ruby
<eam> or we could just go back to using $: and ignore the whole gem filesystem structure
Pumukel has quit [Ping timeout: 272 seconds]
jcdesimp has quit [Remote host closed the connection]
<epitron> that... what? :)
<epitron> how is that a solution?
niftylettuce has joined #ruby
<eam> it removes the work ruby is doing in the strace you pasted!
HelperW__ has quit [Ping timeout: 260 seconds]
<epitron> i'm just trying to make startup time faster
Nova_ has quit [Killed (idoru (Spam is off topic on freenode.))]
ki0 has quit [Ping timeout: 240 seconds]
<eam> yeah me too
<epitron> right, but you're being a dick about it
<eam> and the entire structure of gem is fundamentally the issue
<eam> why is that me being a dick?
deric_skibotn has joined #ruby
<epitron> because you're throwing out the baby with the bathwater
<eam> it's an ugly baby ...
<epitron> i mean, we could redesign rubygems
<eam> seriously, everything gets better with $:
<epitron> make it a better system
<eam> everyone bundles anyway. All I want is to push GEM_HOME as a SINGLE directory on the front of $:
rshetty has quit [Remote host closed the connection]
<epitron> so, you're saying to add every single gem to the path?
nisstyre has quit [Quit: WeeChat 1.0.1]
Darryl has quit [Quit: Connection closed for inactivity]
<eam> epitron: are you familiar with both the gem codepath and the $: codepath?
<epitron> or are you saying to unpack gemname-<version>/lib/ to gem/, so you don't need all that gemspec crap?
Asher has joined #ruby
<epitron> eam: codepath? do you mean, the gem directories?
yfeldblum has joined #ruby
<eam> I mean the code that traverses and loads from there yes
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> oh, you're asking if i've looked at the monkeypatched require?
<epitron> yeah, i have
<epitron> i actually rewrote it to make it cache all the gem files so it doesn't have to stat as much
<epitron> it cut load time by a half
<eam> I'm saying it'd be better to do it like it was done before gem: put the .rb files under $:; traverse $: in order; load the first hit
dawkirst has joined #ruby
<eam> if you want to do multiple versions or local installs, you do that and you push the directory to the front of $:
<epitron> that sounds like an exponential problem too
<eam> suuuuuper simple
<eam> no, it's N
<eam> always N
<eam> where in is:
<eam> >> $:.length
<eval-in_> eam => 8 (https://eval.in/202160)
<epitron> N gems means N paths... if a gem does M requires, that's N*M worst case
postmodern has quit [Ping timeout: 272 seconds]
<epitron> (i.e. requiring the last gem in the path)
claw__ has joined #ruby
<eam> yeah but N is a constant
<eam> it's M
<eam> aka N
<epitron> N grows over time :)
<eam> yes, it's linear
lukevinc has joined #ruby
<eam> not exponential
<eam> you have C cost per load
<eam> +1 per gem added
jcdesimp has joined #ruby
<epitron> it's N cost per load
<eam> nope
<epitron> you have to check N paths per load
<eam> and anyway, if you're bundling everything's in the first directory
<eam> so that's a cost of 1 which you cannot beat
iliketurtles has joined #ruby
<epitron> heh.. bundler is another mess
claw_ has quit [Ping timeout: 250 seconds]
<eam> seriously have you ever used for example local::lib?
yfeldblum has quit [Ping timeout: 250 seconds]
<epitron> what's that?
krisquigley has joined #ruby
<eam> perl thing for doing kinda what bundler does
<epitron> nope
<eam> does more or less what I described, enormously faster
kamilc__ has joined #ruby
RyanV has joined #ruby
HelperW__ has joined #ruby
<eam> $:.unshift "my_lib_dir"; all bundled libs go in my_lib_dir
<epitron> the path thing could be fast if you unpacked the latest version of each gem and put the all of their /lib contents in one dir
<eam> you can't beat that in terms of efficiency
<epitron> right
<epitron> but then you'd lose gem version info
rshetty has joined #ruby
LiohAu_ is now known as LiohAu
<epitron> that would be good for bundler
<eam> epitron: yeah I'm saying I don't think that's something we want (I don't want it)
<eam> at least not in the filesystem path
fgo has joined #ruby
<eam> you put it in a metadata file
<eam> and you don't touch it at runtime
<epitron> "it"?
<eam> gem is slow because of the versioned paths which require traversal
<eam> "it" being the version data
<epitron> so you're caching all the stuff that it's having to traverse the filesystem to retrieve?
<eam> not caching, that's just where it goes
apeiros_ has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
<epitron> i'm trying to figure out what you're trying to say
iceden has joined #ruby
<epitron> could you say the whole thing in one sentence? :)
<eam> $:.unshift ~/app/.libs; ~/app/.libs/foo/bar.rb; ~/app/myapp: require "foo/bar"
dideler has quit [Ping timeout: 260 seconds]
goodenough has quit [Remote host closed the connection]
cocotton_ has joined #ruby
<eam> that's all you ever need
<eam> remove version data from paths
<epitron> yeah, that would be fast, but problematic
krisquigley has quit [Ping timeout: 272 seconds]
<eam> why problematic?
apeiros has joined #ruby
<epitron> versions
<eam> why?
<epitron> foo 0.1 foo 0.2
<eam> you're going to use both at the same time?
<jhass> in different processes, why not?
<epitron> well, wrangling all the files will be tricky
chipotle has joined #ruby
<eam> (I am explicitly saying the concept of parallel installed gems is dumb)
spyderman4g63 has joined #ruby
<epitron> when you upgrade, you'll have to clean it out
<eam> jhass: different process uses ~/app2/.libs
<epitron> what if another gem did something weird? :)
<eam> that is not an issue in this scheme
<jhass> so everything local?
<eam> this is how perl's been doing it for like two decades
<jhass> we got that, it's called bundle --deployment
<eam> it works fantastically
<eam> jhass: but that's stupidly slow
wallerdev has joined #ruby
<epitron> what if one gem is monkeypatching another gem, like "foo-1.0" and "foo-extension-0.1", and "foo-extension" wrote files to "foo/extension"
<eam> because of the gem loading behavior
pwh has joined #ruby
<epitron> or what if gems actually overwrite each others' files?
<eam> jhass: that's more or less the entire issue, you can't get rid of all this stat() walking because of the mis-feature of parallel installed gems
<epitron> like, foo-extension replaces foo.rb
fgo has quit [Ping timeout: 272 seconds]
m8 has joined #ruby
<eam> epitron: all easily solved problems (non problems)
<epitron> shrug!
<eam> seriously, go look at how perl does it (or how ruby did it before gems were invented)
cocotton has quit [Ping timeout: 260 seconds]
<eam> it's WAY better and fixes all the run-time issues around loading gems
tylersmith has joined #ruby
carraroj has joined #ruby
<epitron> it does sound fast.. it's just complex to make sure that directory doesn't get borked
apeiros_ has quit [Ping timeout: 260 seconds]
wallerdev has quit [Client Quit]
<epitron> what if gem crashes while it's in the middle of installing a gem?
<eam> so, you have a packaging system maintaining state right
<apeiros> epitron: a gem *writing to another gem* is a hazard and belongs shot and set on fire
<eam> epitron: that's why transactional packaging systems exist
<epitron> you gotta be careful about saving a journal of what you were doing, so that you can recover
wallerdev has joined #ruby
<eam> epitron: sure, or you say "if I wrote to my ~dev/libs and crashed, rm -rf and do it again"
<epitron> i'm not saying it's not possible
<apeiros> epitron: and I haven't thought about what to do to the author. because… srsly wtf?
<epitron> it just sounds messy
boombadaroomba has joined #ruby
mattmcclure has joined #ruby
<eam> epitron: it's pretty messy if you have to do it live (eg rpm, deb)
<epitron> my solution was to just update a database of all the installed files whenever you install a new gem
<eam> but it's fairly easy for something like perl/ruby
<eam> that's a workaround
<epitron> then the gem versioning stuff still works
tyll has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 272 seconds]
alem0lars has quit [Quit: AFK..]
<eam> a sqlite db for example, way faster
<epitron> sqlite is crap :)
<eam> (assuming IT doesn't get corrupt or contended on)
wjimenez5271 has joined #ruby
<epitron> i was using SDBM
<eam> epitron: eh it's fine, take your pick of cheap structures
<eam> anything's faster than stat-walking a filesystem
<epitron> sqlite3 had a lot of overhead
<epitron> it's a big library
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> i think it ended up being slower
IceDragon has joined #ruby
<eam> I don't believe that for a sec
timonv_ has joined #ruby
Jackneill has joined #ruby
<eam> anyway my point is the entire existence of that huge tree of crap isn't desirable
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> -rwxr-xr-x 1 root root 805760 Aug 17 04:48 /lib/libsqlite3.so.0.8.6
<eam> and that there are solutions with massively simpler runtimes for loading modules
<eam> epitron: yeah I know, I've worked with sqlite a lot
<eam> have code in it etc
<eam> (for a private fork)
<epitron> -rwxr-xr-x 1 root root 31168 Sep 22 11:45 /usr/lib/ruby/2.1.0/x86_64-linux/sdbm.so
hellangel7 has joined #ruby
<eam> the runtime on fetching a record from sqlite is fine
<epitron> i'm guessing there's a complex initialization step when you load the DB as well :)
<epitron> it was slow, is my point
<eam> there really isn't, it's less than the cost of a few stat() calls either way
<epitron> sigh
<eam> this is beside the point
<eam> sdbm is fine too
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
<epitron> all the gemspecs was the other issue. instead of loading them all, i just marshalled them
claymore has joined #ruby
<epitron> i stopped at trying to monkeypatch rubygems though
lw has joined #ruby
<epitron> it was too complicated
tyll has joined #ruby
malkomalko has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
ixqjdx has quit [Remote host closed the connection]
<epitron> apeiros: yeah, you're right... if one gem steals another gem's filenames, there should be some kind of warning to the author when they submit the gem
skolman_ has joined #ruby
malkomalko has quit [Client Quit]
<apeiros> the author should be removed from the gem ecosystem entirely
mrsolo has joined #ruby
<epitron> haha
<epitron> it could've been a mistake :)
<apeiros> epitron: not so much about stealing. but writing into another gem dir? that's fucked up.
momomomomo has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<epitron> well, i mean, that's how some extensions work, right?
deepy has joined #ruby
<epitron> basegem/extrastuff
<apeiros> no
hellangel7 has quit [Remote host closed the connection]
<epitron> net/gopher? :)
iliketurtles has joined #ruby
<apeiros> no sane extension works this way.
<apeiros> and I haven't seen one working that way.
<epitron> this is true
<epitron> that isn't a good idea
blackmesa has joined #ruby
rimenes has joined #ruby
<apeiros> they have their own files in their own structures with overlapping names.
<apeiros> there's no *writing into another gem* happening
rubie has joined #ruby
<jhass> fyi it's recommended in the guides http://guides.rubygems.org/name-your-gem/
reisl has joined #ruby
<epitron> wait, are you talking about literally writing a file to another gem's directory directly? or are you talking about overlapping filename spaces?
<apeiros> that's how I understood you
<epitron> you're missing some context
<epitron> we were talking about a new gem system that unpacked all the gems' lib/ dirs into one place
reisl is now known as larissa
<epitron> so that you didn't need to stat a billion files
<apeiros> yes, I had that. and you enumerated things which would cause problems with a potential new system.
<epitron> ok
<apeiros> but if I misunderstood you then all is good :)
<epitron> it sounded like you thoguht i meant a gem was doing File.write("other gem dir")
<apeiros> yes, that is how I understood what you said. that you were saying there were gems which actually install themselves by modifying another gem.
<epitron> no
<apeiros> I guess you understand why I found it horrible :D
<epitron> just name clashes
<apeiros> yes, I see now. different kind of beast :)
<epitron> i could make a gem called "butts" whose lib/ contained "lib/rails"
dx7 has joined #ruby
<apeiros> yes
<epitron> those should be warned about too :)
yakko has quit [Read error: Connection reset by peer]
<apeiros> gem naming conventions & requirements are bad IMO. but I don't want to start a new discussion on that :)
<epitron> hey, why not?
<epitron> we can fix rubygems!
<epitron> or make a better one!
<epitron> gemrubies.rb
<apeiros> because I'm busy elsewhere and I doubt we can fix rubygems
mekhami has joined #ruby
yakko has joined #ruby
<epitron> i guess it's too late once it's bundled with ruby :)
<mekhami> what're the appropriate ways to write long lists in ruby? didn't see anything in a quick lookup for style guides
carraroj has quit [Ping timeout: 246 seconds]
<havenwood> mekhami: longs lists of what?
<epitron> define an array with a bunch of constant values?
<mekhami> strings
ptrrr has joined #ruby
<mekhami> just line length is an issue
dawkirst has quit [Remote host closed the connection]
<epitron> like, long_list = ["thing1", "thing2", etc.]
<epitron> ?
<volty> %w//
<epitron> that's good for words, not so much for strings
<epitron> i prefer %w[] myself :)
<mekhami> right, how do you deal with extremely long lines? is it similar to python where you put each new item on a newline
<mekhami> i'm talking about style guides not syntax
<volty> write it with here and read yaml
lukevinc has joined #ruby
<epitron> i usually do long_list = [\n\t ... \n]
<epitron> one string on each line
<epitron> if you have a giant blob of text in a string, you can use string = %{ ...\n ... \n ... }
<epitron> could you show us an example, mekhami?
tvw has quit []
<epitron> gist your strings
schaerli has joined #ruby
<apeiros> mekhami: one item per line is fine
<volty> just a use case
<mekhami> one string on each line is fine
mattstratton has joined #ruby
<apeiros> mekhami: and %w doesn't care about what whitespace you use, so newlines are safe
<mekhami> i was just wondering if it's much different from python
<apeiros> same for plain [] btw.
blackmesa has quit [Ping timeout: 244 seconds]
<epitron> right, but your strings can't have spaces in them with %w[]
kaspergrubbe has quit [Read error: Connection reset by peer]
<epitron> they have to be words
<mekhami> is it %w() or %w[]
<epitron> it's anything you want actually :D
<mekhami> ok
<epitron> %wIhelloI
<mekhami> wow hah.
<wallerdev> >> %w!hi!
<eval-in_> wallerdev => ["hi"] (https://eval.in/202164)
<epitron> >>%wwwwww
<eval-in_> epitron => /tmp/execpad-e9c122e54597/source-e9c122e54597:2: unknown type of %string ... (https://eval.in/202165)
<rubie> hi all: im having a problem figuring out how to put this problem to code https://gist.github.com/gabrie30/664f0db544c735d5ed75
<epitron> aww
<epitron> :)
<wallerdev> lol
russt has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
<havenwood> rubie: what are all these problems from?
<rubie> coderbyte
<havenwood> aha
justinmburrous has joined #ruby
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> the color of comments in github is awful
claymore has joined #ruby
clauswitt has joined #ruby
gregf has joined #ruby
JohnBat26 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
schaerli has quit [Quit: Reconnecting…]
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
shosti has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
freezey has quit [Remote host closed the connection]
HelperW__ has quit [Quit: Computer has gone to sleep.]
HelperW__ has joined #ruby
rkalfane has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
skolman_ has quit [Remote host closed the connection]
<rubie> hummm permutations method, i'll have to look that one up
otherj has joined #ruby
jasooon has joined #ruby
<rubie> thank you for helping
skolman_ has joined #ruby
<epitron> comes in handy for things like this
<epitron> np :)
SqREL___________ has quit [Ping timeout: 272 seconds]
Liendre has joined #ruby
echevemaster has quit [Remote host closed the connection]
tectonic has joined #ruby
chipotle has quit [Quit: cya]
momomomomo has quit [Quit: momomomomo]
HelperW__ has quit [Ping timeout: 244 seconds]
freezey has joined #ruby
skolman_ has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
siwica has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 258 seconds]
tylersmith has quit []
psyprus has quit [Changing host]
psyprus has joined #ruby
Wolland has joined #ruby
jay__ has joined #ruby
thsig has quit [Remote host closed the connection]
<volty> forgot, for mekhami: http://pastebin.com/9X7s8AeL
rdark has quit [Quit: leaving]
icarus has joined #ruby
p0sixpscl has joined #ruby
<epitron> The superclass of the eigenclass of a class is the eigenclass of the class's superclass.
<epitron> -- Paolo Perrotta, Metaprogramming Ruby, p126
aspires has quit []
<epitron> volty: eww, heredocs :)
nickjj has quit [Quit: WeeChat 1.0]
dawkirst has joined #ruby
aspires has joined #ruby
otherj has quit []
kenneth has joined #ruby
<kinduff> heredocs are not that bad :)
Hightower660 has quit [Ping timeout: 246 seconds]
siwica has joined #ruby
<apeiros> chaining on heredocs is fun
<apeiros> also still confuses lots of rubyists :)
Takle has quit [Remote host closed the connection]
Synthead has joined #ruby
tyll_ has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel_ has joined #ruby
jcdesimp has quit [Remote host closed the connection]
Wolland has joined #ruby
<kinduff> i guess its not the cleaner way to do things, but it kind of do the job
Avahey has joined #ruby
JBreit has left #ruby ["Leaving"]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
<kinduff> i only use heredoc to pass code blocks to the deface gem for spree :P
jbueza has joined #ruby
jadedphone has joined #ruby
alem0lars has joined #ruby
otherj has joined #ruby
rippa has quit [Ping timeout: 245 seconds]
Tricon has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
tyll has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dope has joined #ruby
<volty> I like this one for parse text testings : http://pastebin.com/NJi8bw9V
Hobogrammer has quit [Ping timeout: 244 seconds]
Wolland_ has quit [Ping timeout: 244 seconds]
justinmburrous has joined #ruby
otherj has quit [Client Quit]
Takle has joined #ruby
apeiros has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Wolland_ has joined #ruby
apeiros has joined #ruby
otherj has joined #ruby
<epitron> DATA is great
<epitron> it's a good place to put help() in simple commandline scripts
<volty> and can be rewinded by seek if need -- if I remember well
pwh has quit [Ping timeout: 245 seconds]
<yxhuvud> iirc, you can even reopen it and rewrite it. (please don't)
benlieb has quit [Quit: benlieb]
<volty> but better than DATA is the FOOD
<epitron> here's a fun use of DATA: https://github.com/epitron/scripts/blob/master/c#L137
<volty> yxhuvud: :)
Genda1ph has joined #ruby
<volty> (going to dinner)
<epitron> (c is a syntax-highlighting + less-ing version of "cat")
<epitron> (works on markdown)
Wolland__ has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
havenwood has quit [Remote host closed the connection]
<epitron> for performance, the markdown renderer is in DATA, and it evals it if it's passed a markdown file ^_^
robustus|Off has joined #ruby
robustus|Off is now known as robustus
momomomomo has joined #ruby
d[x_x]b has joined #ruby
pwh has joined #ruby
Suchit has joined #ruby
sanguisdex has joined #ruby
havenwood has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
fgo has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
Gendalph has quit [Ping timeout: 272 seconds]
<kinduff> woah, data looks neat
Wolland_ has quit [Ping timeout: 260 seconds]
skolman_ has joined #ruby
Aaaal has quit [Quit: Aaaal]
wallerdev has quit [Quit: wallerdev]
volty has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
yakko has quit [Read error: Connection reset by peer]
skolman_ has quit [Remote host closed the connection]
michael__ has joined #ruby
Genda1ph has quit [Ping timeout: 272 seconds]
nickjj has joined #ruby
michael__ is now known as Guest40068
x1337807x has joined #ruby
skolman_ has joined #ruby
otherj has quit [Ping timeout: 272 seconds]
ctp has joined #ruby
yakko has joined #ruby
treehug8_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
Soda has joined #ruby
siwica has quit [Quit: siwica]
clauswitt has joined #ruby
mkaesz has joined #ruby
mary5030 has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
jonmorehouse has joined #ruby
wallerdev has joined #ruby
Wolland has joined #ruby
clauswitt has quit [Client Quit]
fgo has quit [Ping timeout: 272 seconds]
treehug88 has quit [Ping timeout: 245 seconds]
dope is now known as goldman
Channel6 has quit [Quit: Leaving]
otherj has joined #ruby
rshetty has quit [Remote host closed the connection]
sailias has joined #ruby
mary5030 has joined #ruby
treehug8_ has quit [Ping timeout: 245 seconds]
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
mkaesz has quit [Client Quit]
Wolland__ has quit [Ping timeout: 260 seconds]
megaputer has joined #ruby
yetanotherdave has joined #ruby
yetanoth1rdave has joined #ruby
tylersmith has joined #ruby
parduse is now known as Guest81569
Guest81569 has quit [Killed (sendak.freenode.net (Nickname regained by services))]
justinmburrous has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parduse has joined #ruby
otherj has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devdazed has quit [Ping timeout: 260 seconds]
yakko has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
chrishough has joined #ruby
yakko has joined #ruby
St_Marx has quit [Remote host closed the connection]
r4um has quit [Ping timeout: 272 seconds]
<cndiv> Hi all, brand new to Ruby (and programming) and could use a little help. I'm trying to write a script that parses a CSV of data containing names and dates doors were opened in my office. Goal is to get a result like "John Doe was in the office date1, date2, date3." I've gotten pretty far, and can now get an output of the name and the unique date each name opened a door...
klaut_ has joined #ruby
<cndiv> But what I can't figure out is how to get those results into a sortable... hash, I think?
<cndiv> here's the code
devdazed has joined #ruby
<cndiv> Would really appreciate some help.
douglasssssss has joined #ruby
Pumukel has joined #ruby
cu has joined #ruby
lukevinc has quit [Remote host closed the connection]
lukevinc has joined #ruby
Takle has joined #ruby
goldman is now known as jordsmi
klaut has quit [Ping timeout: 272 seconds]
tyll_ has quit [Ping timeout: 260 seconds]
<cndiv> Maybe an array of hashes?
x1337807x has joined #ruby
tyll has joined #ruby
<j2p2> what would your output look like in an ideal world?
bricker`LA has joined #ruby
<j2p2> you want something like x : date1, date2, etc?
JBreit has joined #ruby
omosoj has joined #ruby
<cndiv> j2p2: Yes, like John Doe: date1, date2, date3 - and if possible, in a way I could count/calculate those dates against others
JBreit has left #ruby [#ruby]
jcdesimp has joined #ruby
<cndiv> j2p2: Eventual goal is to be able to calculate "John Doe was in the office x days, which is y percentage of business days this year"
ryannielson has joined #ruby
dumdedum has quit [Quit: foo]
pwh has quit [Ping timeout: 272 seconds]
<ryannielson> Is there a way to compile a Ruby script to a unix binary so the user doesn't need Ruby installed to run my script?
<j2p2> then you could do like jdoe[:dates].count
<j2p2> or dates[:jdoe].count, as the case may be in yours
<cndiv> j2p2: reading, this seems promising :-)
<toretore> cndiv: what you want is essentially to "order by" person
<j2p2> :)
<cndiv> j2p2: I'm on the right track, I hope.
<toretore> this should give you a clue as to what to look for
bricker`LA has quit [Ping timeout: 245 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
<j2p2> ryannielson: you could take a look at https://rubygems.org/gems/crate
wallerdev has quit [Quit: wallerdev]
<cndiv> j2p2: OH, so what I'm doing is making a hash, one key (the name) and multiple values (the dates)?
<jhass> ryannielson: what kind of script?
<cndiv> j2p2: I didn't realize that was possible.
<toretore> step 1: create an empty hash, 2: for each record: 2a: create an array in hash for person if it doesn't exist; 2b: add record to array
hfp__work has joined #ruby
<j2p2> cndiv: you can do it that way, or what toretore is suggesting
<ryannielson> jhass: It's going to be a command line script to install some stuff. I'd like to write in in Ruby instead of bash, but I don't want people with different or non-existant rubies having issues running it.
dawkirst has quit [Remote host closed the connection]
<cndiv> j2p2 and toretore: really appreciate the help, thank you!
<j2p2> np! :)
<jhass> ryannielson: mmh, might be possible to do in crystal already ;) http://crystal-lang.org
<toretore> ryannielson: not worth the trouble imo
Suchit has quit [Quit: Computer has gone to sleep.]
<toretore> you could write a script that assumes 1.8.7 with no "advanced" dependencies like openssl or readline
<ryannielson> toretore: Well it's either that or I make sure the user has Ruby installed so it'll work properly. Just trying to find the best way to make the users feel as little pain as possible. Considering they could be on different Distros from Ubuntu, to CentOS, to Redhat.
wallerdev has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
hfp_work has quit [Ping timeout: 260 seconds]
hfp__work is now known as hfp_work
hfp has quit [Ping timeout: 272 seconds]
tyll has quit [Ping timeout: 258 seconds]
hfp_ has joined #ruby
<j2p2> honest (possibly stupid) question: if you were going to give the executable to people on different distros, wouldn't it have to be built on those distros anyways? or would one executable be compatible with all of them?
hfp_ is now known as hfp
ndrei has joined #ruby
kwd has joined #ruby
tyll has joined #ruby
jerius has quit []
shime has joined #ruby
benzrf|offline is now known as benzrf
shevy has quit [Read error: Connection reset by peer]
<Hanmac> hm or you could write a script that does kick 1.8.7 in the face ;P
jerius has joined #ruby
sanguisdex has quit [Ping timeout: 272 seconds]
<eam> almost possible
IrishGringo has joined #ruby
<eam> give it another year
tbrock_ has joined #ruby
Tricon has quit [Ping timeout: 272 seconds]
txdv has quit [Remote host closed the connection]
havenwood has joined #ruby
<Hanmac> good that my stuff will not work with 1.8.7 ... or maybe 1.9 probably
jasooon has joined #ruby
beneggett has joined #ruby
<eam> unfortunate :P
TorpedoSkyline has joined #ruby
blackmesa has joined #ruby
<eam> ruby is definitely the most fragile ecosystem of all the platforms I work in
tyll has quit [Ping timeout: 258 seconds]
tyll_ has joined #ruby
clauswitt has joined #ruby
tessi_zz is now known as tessi
spider-mario has joined #ruby
tvw has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
<ryannielson> j2p2: Well I'm hoping I could make a Ruby script that is as cross compatiable as a bash script or something.
dideler has joined #ruby
fijimunkii has quit [Quit: leaving]
justinmburrous has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
kaspergrubbe has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
justinmburrous has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
shevy has joined #ruby
bluenemo has quit [Quit: Verlassend]
skolman_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
agrinb has quit [Remote host closed the connection]
alem0lars has quit [Quit: AFK..]
skolman_ has joined #ruby
agrinb has joined #ruby
ephemerian has joined #ruby
benzrf is now known as benzrf|offline
phutchin1 has quit [Ping timeout: 250 seconds]
jay__ is now known as rubyonrailed
timonv_ has quit [Remote host closed the connection]
cajone has left #ruby [#ruby]
timonv_ has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
treehug8_ has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
timonv^ has joined #ruby
Tricon has joined #ruby
chrishou_ has joined #ruby
skolman_ has quit [Ping timeout: 258 seconds]
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
EMoreth has quit [Ping timeout: 250 seconds]
dawkirst has joined #ruby
treehug88 has quit [Ping timeout: 258 seconds]
timonv_ has quit [Ping timeout: 244 seconds]
yakko has quit [Read error: Connection reset by peer]
yakko has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
chrishough has quit [Ping timeout: 244 seconds]
timonv^ has quit [Ping timeout: 245 seconds]
aspires has quit []
cajone has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has quit [Quit: WeeChat 1.0]
EMoreth has joined #ruby
timonv_ has joined #ruby
fgo has joined #ruby
andrewlio has joined #ruby
cnj has quit [Ping timeout: 258 seconds]
mattstratton has joined #ruby
mityaz_ has joined #ruby
pskosinski_ has joined #ruby
pskosinski has quit [Disconnected by services]
pskosinski_ is now known as pskosinski
ixti has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
cnj has joined #ruby
oso|away is now known as oso96_2000
benzrf is now known as benzrf|offline
<epitron> cndiv: i think "#group_by" would be a simpler way to solve your problem
fgo has quit [Ping timeout: 245 seconds]
<epitron> csv.rows.map { |row| [row[:name], row[:date]] }.group_by { |name, date| date }
<epitron> err sorry
<epitron> group by name :)
<epitron> then you got a hash of name=>[dates...]
kaspergrubbe has joined #ruby
dangerousdave has joined #ruby
<Hanmac> epitron: no you will not
yakko has quit [Read error: Connection reset by peer]
yakko has joined #ruby
<epitron> no?
<epitron> works for me
<Hanmac> .map { |row| [row[:name], row[:date]] }.group_by { |name, date| name } returns { name => [[name,date],[name,date] ...] }
<epitron> oh, right
<epitron> hmmm.. that should be an easy transform
ramblinpeck___ has joined #ruby
mrfoto_ has joined #ruby
ramblinpeck___ is now known as ramblinpeck
<epitron> i guess it's gotta be one of these: h = Hash.new { |h,k| h[k] ||= [] }; csv.rows.each {|row| h[row[:name]] = h[:date]}
<epitron> lol, that segfaults
ghostmoth has quit [Quit: ghostmoth]
<epitron> Hash.new { |h,k| h[k] = [] }
jerius has quit []
tvw has quit []
<epitron> (i've got a helper called Hash.of_arrays that i always use)
mrfoto_ has quit [Client Quit]
ta has joined #ruby
chrishou_ has quit [Read error: Connection reset by peer]
mrfoto has joined #ruby
<epitron> is there a language that makes transforms like that easier?
<epitron> it's unnecessarily awkward considering how cognitively simple it is
chrishough has joined #ruby
jerius has joined #ruby
wallerdev has quit [Quit: wallerdev]
laalko|X200 has joined #ruby
elaptics is now known as elaptics`away
laalko|X200 has left #ruby [#ruby]
iliketurtles has quit [Quit: zzzzz…..]
schaerli has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crunk_bear has joined #ruby
p0sixpscl has quit [Ping timeout: 260 seconds]
kamilc__ has quit [Quit: Leaving...]
Kricir_ has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
Kricir has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Soda has quit [Remote host closed the connection]
megaputer has quit []
Kricir has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
papile has joined #ruby
msx has joined #ruby
timonv_ has joined #ruby
p0sixpscl has joined #ruby
moritzs has joined #ruby
dangerousdave has joined #ruby
timonv_ has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
lolmaus has joined #ruby
roolo has joined #ruby
aspires has joined #ruby
Deejay_ has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
<aep> bah deploying rbenv is so annoying. why is there no, like, binaries
wldcordeiro has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
jasooon has joined #ruby
larissa has quit [Quit: Leaving]
cocotton_ has quit [Remote host closed the connection]
<toretore> why are you deploying rbenv?
cocotton has joined #ruby
yakko has quit []
govg has quit [Ping timeout: 260 seconds]
shosti has quit [Remote host closed the connection]
shosti has joined #ruby
jimmyhoughjr has joined #ruby
<aep> toretore: because gems
lmickh has joined #ruby
<aep> centos 6.4 has like ruby 1.something
<eam> 1.8.7
sepp2k has quit [Quit: Konversation terminated!]
wpp has joined #ruby
<aep> yeah pretty... not good
jasooon has quit [Ping timeout: 258 seconds]
wpp has quit [Max SendQ exceeded]
wpp has joined #ruby
Channel6 has joined #ruby
justinmburrous has joined #ruby
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
pcp135 has quit [Ping timeout: 260 seconds]
Sharker has quit [Ping timeout: 264 seconds]
Sharker has joined #ruby
sanguisdex has joined #ruby
<Hanmac> some day centos will have recent software... maybe in the next century ;P
<eam> centos7 was released earlier this year with ruby 2.x
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aep> aws doesnt have centos7
<eam> yes they do
<aep> where?
<havenwood> aep: what version of CentOS are you on?
<aep> i wants
mekhami has quit [Ping timeout: 250 seconds]
<aep> 6.4
<aep> i could do 6.5 but its still ages old ruby
<havenwood> aep: precompiled binaries: https://rvm.io/binaries/centos/6.4/x86_64/
<aep> mmm but rvm doesnt do gem abstraction do they?
<havenwood> abstraction?
<aep> like isolate them i mean
<aep> sorry
<aep> in ~
Danibal has quit []
<havenwood> aep: RVM uses what it calls gemspecs. They're optional.
mrfoto has quit []
<havenwood> If i'm understanding what you're talking about.
n_blownapart has joined #ruby
justinmburrous has quit [Ping timeout: 250 seconds]
<havenwood> aep: Or there're simple to use tools liek: https://github.com/postmodern/gem_home#readme
<aep> eam: no thats RHELL
<eam> same thing
<aep> yes but $$
<eam> eh, I dunno if they've gotten around to building centos
ryannielson has quit [Remote host closed the connection]
<aep> havenwood: that looks useful
<eam> but they're both released
ghostmoth has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
<havenwood> aep: it's not hard to use the precompiled binary or otherwise i'd ruby-install to /usr/local
mary5030 has quit [Remote host closed the connection]
<aep> sounds good too
<aep> actually i tried that and failed misserably
mekhami has joined #ruby
<havenwood> aep: but don't rbenv, if you want Ruby switching consider chruby: https://github.com/postmodern/chruby#readme
<aep> couldnt build an rpm that didnt conflict with the system ruby
<aep> nah, i just want automated dpeloyment
<aep> of whatever
<havenwood> aep: ruby-install -i /usr/local/ ruby 2.1.3
yfeldblum has joined #ruby
<havenwood> aep: ruby-install will install deps with yum
<aep> such nice
bluOxigen has quit [Ping timeout: 260 seconds]
<aep> i think this is what i want
yfeldblu_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
marr has joined #ruby
iliketurtles has joined #ruby
jcdesimp_ has joined #ruby
wolves_cs has joined #ruby
skammer3 has joined #ruby
dte has joined #ruby
chrishough has joined #ruby
Barrayar has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
<havenwood> aep: if you want gem in the user home directory you can set --user-install in your ~/gemrc: echo "gem: \"--user-install\"" >> ~/.gemrc
<havenwood> gems*
dangerousdave has joined #ruby
<havenwood> ~/.gemrc*
ldnunes has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
jcdesimp has quit [Ping timeout: 272 seconds]
priscmu has joined #ruby
jcdesimp_ has quit [Ping timeout: 260 seconds]
skolman has joined #ruby
<priscmu> i wanna connect via datamapper to a mysql table │ ducklobster
<priscmu> | - the table is called radreply but datamapper │ e^ipi
<priscmu> | tries to get to radreplies :/ n
<priscmu> oh sorry
yetanotherdave has quit [Ping timeout: 244 seconds]
<priscmu> i wanna connect via datamapper to a mysql table. the table is called radreply, but datamapper tries to connect to radreplies.... how to change this
yetanoth1rdave has quit [Ping timeout: 260 seconds]
<ducklobster> priscmu: what does your DataMapper.setup line look like
IrishGringo has joined #ruby
tyll_ has quit [Ping timeout: 260 seconds]
<ducklobster> priscmu: oh nevermind that doesn't matter for this problem
Avahey has quit [Quit: Connection closed for inactivity]
ldnunes has joined #ruby
spyderma_ has joined #ruby
sepp2k has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
<papile> http://datamapper.org/docs/legacy.html See storage_names
cocotton_ has joined #ruby
sarkis_ has quit [Quit: WeeChat 1.0]
fgo has joined #ruby
tyll has joined #ruby
cocotton_ has quit [Remote host closed the connection]
treehug8_ has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
treehug88 has joined #ruby
mary5030 has joined #ruby
Schmidt has quit [Ping timeout: 260 seconds]
louism2wash has joined #ruby
tvw has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cherwin has joined #ruby
aspires has quit []
mwlang has joined #ruby
agjacome has joined #ruby
cocotton has quit [Ping timeout: 272 seconds]
pcp135 has joined #ruby
felipebalbi has left #ruby [#ruby]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcdesimp has joined #ruby
yfeldblum has joined #ruby
<mwlang> has anybody written a TextMate shortcut to replace :hash_key => “value” with hash_key: “value” ?
x1337807x has joined #ruby
clauswitt has joined #ruby
jcdesimp has quit [Read error: Connection reset by peer]
jcdesimp has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 272 seconds]
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
jbw_ has quit [Ping timeout: 260 seconds]
Schmidt has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
txdv has joined #ruby
bobishh has joined #ruby
carraroj has joined #ruby
mary5030 has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
freezey has quit []
postmodern has joined #ruby
Jackneill has quit [Remote host closed the connection]
ht__th has quit [Remote host closed the connection]
<shevy> lol textmate
wpp has quit []
michaeldeol has joined #ruby
spider-mario has quit [Remote host closed the connection]
jcdesimp has quit [Remote host closed the connection]
n_blownapart has quit []
benlieb has joined #ruby
omosoj has quit [Quit: leaving]
Morkel has quit [Quit: Morkel]
pwh has joined #ruby
<benlieb> is there something like `select` that collects the return value instead of the orig value?
jcdesimp has joined #ruby
bwilson has quit [Quit: bwilson]
jonmorehouse has quit [Ping timeout: 272 seconds]
<shevy> can't you use select.map and .compact
<shevy> it is easier to work with a given example
yalue has quit [Quit: Leaving]
jbw has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
<louism2wash> Hey guys, I have a question regarding memory usage when using a recursive method vs using two separate methods that call each other. I think the way a recursive method works is that every time the method calls itself a stack frame is added to the stack, none of which can be released until the recursive method is done executing, thus taking up a lot of memory if the recursive method calls itself many times. Conversely, it seems
<louism2wash> like having a system where two method call each other back and forth would allow for memory to clear each stack frame from memory as soon as each method is done executing. From a memory standpoint, would a recursive method be more memory intensive than having two methods that call each other? Here is an example of what I am talking about: https://gist.github.com/louism2/00f5b49767a3e58e4b2f Thanks for the help
mary5030 has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Quit: Konversation terminated!]
omosoj has joined #ruby
priscmu has quit [Quit: WeeChat 1.0.1]
chrishough has joined #ruby
<snzmn> does ruby have tail calls?
<waxjar> no(t yet)
chrishough has joined #ruby
Morkel has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
<waxjar> louism2wash: i doubt it'd make much of a difference
boombadaroomba has joined #ruby
<louism2wash> waxjar: what consideration am I missing then? I can't think of anything other than memory usage?
<snzmn> louism2wash: calling the separate function wouldn't clear the stack frame i believe
jbw_ has joined #ruby
WillAmes has joined #ruby
cherwin has quit [Ping timeout: 260 seconds]
<waxjar> louism2wash: the call to increment_num can be taken off the stack, but the call to test_num_size it makes can't
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
<waxjar> actually, i think not even that
grzywacz has quit [Quit: :wq]
Morkel has left #ruby [#ruby]
omosoj has quit [Quit: leaving]
boombadaroomba has quit [Ping timeout: 245 seconds]
rkalfane has joined #ruby
sanguisdex has quit [Ping timeout: 260 seconds]
grzywacz has joined #ruby
chipotle has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<louism2wash> Can you guys think of a way to write that which would allow each stack frame to be released when a value is returned?
cherwin has joined #ruby
rkalfane has quit [Client Quit]
<waxjar> not recursively
Gunni has quit [Ping timeout: 260 seconds]
<snzmn> afaict not until there are tail calls in ruby
<snzmn> but that'd basically be the same as iteration anyway
txdv has quit [Quit: leaving]
Barrayar has quit [Quit: Leaving]
txdv has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Read error: Connection reset by peer]
Gunni has joined #ruby
mekhami has quit [Quit: Leaving]
Morkel has joined #ruby
Photism has quit [Quit: Leaving]
mistergibson has quit [Quit: Quitting ... be good to each other :)]
dideler has quit [Ping timeout: 260 seconds]
andrewlio has quit [Remote host closed the connection]
RyanV has joined #ruby
jasooon has joined #ruby
asteros has joined #ruby
bri has quit [Quit: leaving]
Xiti` has joined #ruby
top4o has joined #ruby
krisquigley has joined #ruby
bricker`work has joined #ruby
decoponio has quit [Quit: Leaving...]
toretore has quit [Quit: Leaving]
alvaro_o has joined #ruby
<waxjar> louism2wash: mm, just reading this (http://timelessrepo.com/tailin-ruby). apparantly you can enable tail call optimization.
Xiti` has quit [Client Quit]
Xiti has quit [Ping timeout: 260 seconds]
Xiti has joined #ruby
jonmorehouse has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
<havenwood> was going to say, it has TCO it just isn't enabled by default
rkalfane has joined #ruby
rubie has quit [Quit: Page closed]
krisquigley has quit [Ping timeout: 260 seconds]
Advocation has quit [Quit: Advocation]
IrishGringo has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
cherwin has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
<louism2wash> waxjar: awesome, I'll take a look
yfeldblum has joined #ruby
<waxjar> it isn't pretty though :p
bmurt has quit []
wallerdev has joined #ruby
Asher has quit [Quit: Leaving.]
cherwin has joined #ruby
arup_r has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
fsapo has quit [Remote host closed the connection]
rkalfane has quit [Client Quit]
ursooperduper has joined #ruby
lewix has quit [Remote host closed the connection]
jcdesimp has quit [Remote host closed the connection]
justinmburrous has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qmfnp has joined #ruby
merqlove has joined #ruby
qmfnp has quit [Client Quit]
dopie has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
yetanoth1rdave has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
benzrf|offline is now known as benzrf
jonmorehouse has quit [Ping timeout: 272 seconds]
lmmendes has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
aspires has joined #ruby
IrishGringo has joined #ruby
govg has joined #ruby
yetanoth1rdave has quit [Ping timeout: 240 seconds]
rkalfane has joined #ruby
iliketurtles has joined #ruby
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
rkalfane has quit [Client Quit]
yetanotherdave has quit [Ping timeout: 272 seconds]
insaneinside has joined #ruby
mary5030 has joined #ruby
fgo has joined #ruby
skolman has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thsig has joined #ruby
jbw_ has quit [Ping timeout: 272 seconds]
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbw has quit [Ping timeout: 272 seconds]
Macaveli has joined #ruby
boombadaroomba has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
aspires has quit []
Morkel has quit [Quit: Morkel]
BTRE has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ptrrr has quit [Quit: ptrrr]
justinmburrous has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
justinmburrous has joined #ruby
benzrf is now known as benzrf|offline
Macaveli has quit [Ping timeout: 272 seconds]
The has joined #ruby
tectonic has joined #ruby
rkalfane has joined #ruby
yetanotherdave has joined #ruby
yetanoth1rdave has joined #ruby
marr has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
The has quit [Client Quit]
lw has joined #ruby
bobishh has quit [Ping timeout: 272 seconds]
gilr00y has joined #ruby
lw has quit [Client Quit]
thsig_ has joined #ruby
jgrevich has joined #ruby
jbw_ has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
jbw has joined #ruby
<insaneinside> question: does Minitest *really* monkeypatch EVERYTHING?
IrishGringo has quit [Ping timeout: 272 seconds]
<insaneinside> and is there a better ( => concise, not too "wordy", + widely-used) alternative?
<wallerdev> hey zenspider whats a better test suite than minitest
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
D9 has joined #ruby
Synthead has quit [Quit: Leaving]
Synthead has joined #ruby
benlieb has quit [Quit: benlieb]
<D9> in vim I can used the regex command ":%s/<\/\=\(\w\+\)\>/\L&/g) to make all html tags lowercase, what is the proper format for this regex in ruby using gsub?
ldnunes has quit [Quit: Leaving]
MCDev has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
<insaneinside> D9: I think you have to handle the match yourself...
<wallerdev> yeah youll want to use the block form of downcase
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
<wallerdev> block form of gsub
<wallerdev> lol
x1337807x has joined #ruby
<boombadaroomba> anyone have a simple explanation as to what foreign_key does? I am looking for any reading or example to further my knowledge
<wallerdev> do you know what a foreign key is?
<insaneinside> foreign_key? sounds like a #rails thing.
moritzs has quit [Remote host closed the connection]
<wallerdev> i think in rails its mostly just used to specify the foreign key if you named it something different than rails conventions
<wallerdev> otherwise you dont need it
endash has quit [Quit: endash]
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
lewix has joined #ruby
obscured has quit [Quit: leaving]
Kricir has joined #ruby
aspires has quit []
Ankhers has quit [Ping timeout: 264 seconds]
<boombadaroomba> wallerdev: sorry im in the wrong channel. sleep kicked me out of registered mode
jonmorehouse has joined #ruby
sinkensabe has joined #ruby
skammer3 has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
aspires has joined #ruby
codecop has quit [Remote host closed the connection]
LordAlveric has joined #ruby
St_Marx has joined #ruby
pwh has quit []
paulfm has quit []
yfeldblu_ has joined #ruby
LordAlveric|2 has quit [Ping timeout: 240 seconds]
froggy_ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
yfeldbl__ has joined #ruby
cocotton has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
dte has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
n1lo has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
Guest99532 has quit [Ping timeout: 246 seconds]
benzrf|offline is now known as benzrf
yfeldblum has quit [Ping timeout: 272 seconds]
m8 has quit [Quit: Sto andando via]
cocotton_ has quit [Ping timeout: 246 seconds]
dte has joined #ruby
livingstn has quit []
jasooon has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
cocotton_ has joined #ruby
rkalfane has joined #ruby
yfeldbl__ has quit [Remote host closed the connection]
spyderma_ has quit [Remote host closed the connection]
cocotton has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
momomomomo has joined #ruby
spyderman4g63 has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
havenwood has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
ghostmoth has quit [Client Quit]
cocotton_ has quit [Remote host closed the connection]
gilr00y has quit [Remote host closed the connection]
narcan has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gilr00y has joined #ruby
jimmyy has quit [Ping timeout: 258 seconds]
jasooon has quit [Ping timeout: 245 seconds]
cu has quit [Quit: Computer has gone to sleep.]
khelben has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
dr_toboggan has joined #ruby
khelben has quit [Client Quit]
gilr00y has quit [Ping timeout: 245 seconds]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
djstorm has quit [Ping timeout: 240 seconds]
rubie has joined #ruby
benlieb has quit [Quit: benlieb]
mityaz_ has quit [Quit: See ya!]
cherwin has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
<rubie> hi all: is this the correct thinking for the flow of Bubble Sort? https://gist.github.com/gabrie30/1901e2bb70342dda09cf
dev_ryan has joined #ruby
devdazed has quit [Ping timeout: 245 seconds]
lnormous has joined #ruby
<eam> rubie: yeah
drdanmaku has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<eam> I'd return the array and p() the result of bubble_sort() though :D
sinkensabe has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
<rubie> i'm more worried about the text below being correct
dte has quit [Remote host closed the connection]
Pupeno has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
devdazed has joined #ruby
j_mcnally has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
<eam> UnneededPercentX is the worst cop ever
<insaneinside> eam: IYSS.
havenwood has joined #ruby
<insaneinside> hey wallerdev: still looking for some thoughts on why minitest is so popular even though it appears to monkeypatch the things being tested. ;)
<eam> I disallow `` :(
<wallerdev> its lightweight and fast
d[x_x]b has quit [Quit: May the 4th be with you!]
<wallerdev> zenspider knows more about it than me if hes around
<insaneinside> he's got a hand in maintaining it or something, right?
ghostmoth has joined #ruby
<wallerdev> yeah i think he made it
<wallerdev> lol
dte has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
D9 has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
sailias has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
{xenomorph} has quit [Remote host closed the connection]
wjimenez_ has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
drdanmaku has left #ruby [#ruby]
krz has quit [Quit: WeeChat 1.0.1]
ryanleesipes has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 272 seconds]
tuelz has quit [Read error: Connection reset by peer]
wjimenez5271 has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 246 seconds]
tvw has quit []
skolman_ has joined #ruby
tuelz has joined #ruby
tvw has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 272 seconds]
deric_skibotn has joined #ruby
<havenwood> the time of year is fitting for a bit of Okotobertesting: https://github.com/patriciomacadden/oktobertest#readme
<havenwood> Oktobertesting*
yfeldblum has joined #ruby
lw has joined #ruby
lw has quit [Client Quit]
pwh has joined #ruby
xenomorph has joined #ruby
jobewan has quit [Quit: Leaving]
lw has joined #ruby
jottr has joined #ruby
JohnBat26 has quit [Ping timeout: 272 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
cherwin has joined #ruby
<dr_toboggan> i can't find a good explanation of when you're supposed to use "then" and when you aren't
dogweather has joined #ruby
ixti has quit [Quit: WeeChat 1.0]
<dr_toboggan> actually, are you supposed to ever use then?
kirun has quit [Quit: Client exiting]
<insaneinside> dr_toboggan: only when writing the conditionally-executed code on the SAME LINE as the "if"
wjimenez_ has quit [Remote host closed the connection]
<insaneinside> dr_toboggan: i never use it. ;)
russt has quit [Quit: russt]
<dr_toboggan> oh. and do you still use "end"?
<insaneinside> erp, i actually don't know that one.
tuelz has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
<dr_toboggan> ok, well, that answers my questions, thanks
<insaneinside> I tend to use postfix notation for single-statement conditionals: do_something if i_said_so
aspires has quit []
tkuchiki has joined #ruby
davasaurous has joined #ruby
<dr_toboggan> right
<shime> insaneinside: minitest is popular? where?
tuelz has joined #ruby
aspires has joined #ruby
GriffinHeart has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
<insaneinside> shime: i, uh, think i read that on the webernets somewhere...
<havenwood> shime: yeah, it's pretty popular
<shime> yeah, if pretty means the second most popular testing framework for ruby
phantummm has quit [Quit: phantummm]
GriffinHeart has quit [Remote host closed the connection]
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
<insaneinside> shime: well, it's also rather attractive with makeup on. :P
tuelz has joined #ruby
<lewix> anyone has the book build ruby gem?
<lewix> or rather can anyone point me to some good material on the topic
<shime> insaneinside: I'm too tired to process humour at the moment :(
momomomomo has quit [Quit: momomomomo]
Pupeno has quit [Ping timeout: 260 seconds]
<shime> Lewix: there are a lot of resources on the interwebz about it
chipotle_ has joined #ruby
xenomorph is now known as {xenomorph}
<lewix> shime: I came across an interesting book, $120 - people are insane =)
chipotle has quit [Ping timeout: 272 seconds]
KC9YDN has joined #ruby
twohlix has quit [Ping timeout: 245 seconds]
chipotle_ is now known as chipotle
phutchins has quit [Ping timeout: 240 seconds]
skammer3 has joined #ruby
<cndiv> Hi all, I'm brand new to Ruby (and programming) and would really appreciate some help. I'm trying to gather information from a .csv that contains information about each time a door was opened in my office, and use it to find out how many days John Doe was in the office...
<lewix> for that price we can buy 6 books on different topics, ruby has become a language good for marketing it seems
lmmendes has quit [Quit: lmmendes]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cndiv> I think I'm close but need some help with the array of hashes... here's the pastebin http://pastebin.com/TbNnsE4w
kenneth has joined #ruby
<lewix> there's a good csv gem cndiv
moritzs has joined #ruby
<lewix> ah
<cndiv> Lewix: I have the information from the csv, I'm just too new to figure out how to use it properly...
Pupeno has joined #ruby
<dogweather> Lewix: yep, especially when the online free docs are so poor.
thsig_ has quit [Remote host closed the connection]
* insaneinside notes that 'people are insane' would indeed be a valid Ruby expression.
<cndiv> Goal is to give the script a name and it to spit out the number of unique days they were in the office. Hopefully someone can help :-)
<lewix> cndiv: what does line 15 return
Liendre has quit [Read error: Connection reset by peer]
<cndiv> Lewix: I think all of the CSV? To be honest I got that part from another example online. It works, though. You can puts name + instanceDate and get all the right info
<cndiv> I think line 26 is what I'm doing totally wrong
<lewix> cndiv: How does the csv file look like
<cndiv> Lewix: let me make another pastebin of an example. There's a lot of useless (to me) data in there..
klaut has joined #ruby
krisquigley has joined #ruby
klaut_ has quit [Ping timeout: 272 seconds]
pskosinski has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
<cndiv> Lewix: here are the first few lines http://pastebin.com/aUrmw0ym
Kricir has joined #ruby
shime has quit [Quit: leaving]
endash has joined #ruby
<cndiv> Lewix: but there are thousands of entries like that.
Kricir has quit [Remote host closed the connection]
<rubie> hi all: anyone know why this isn't working?
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has joined #ruby
<wallerdev> next1 is always the same number
<wallerdev> you need to recalculate it in your while loop
<wallerdev> otherwise next1 is always 2
WormDrink has quit [Ping timeout: 240 seconds]
<wallerdev> so you just add 2 to the end of the array everytime
<rubie> how would i do that
helpa has quit [Write error: Broken pipe]
krisquigley has quit [Ping timeout: 240 seconds]
helpa has joined #ruby
MCDev has joined #ruby
sanguisdex has joined #ruby
<shevy> rubie array << your_element
Deele has quit [Ping timeout: 248 seconds]
<shevy> the intent of your code is not clear
Kricir has quit [Ping timeout: 245 seconds]
kinduff has quit [Ping timeout: 250 seconds]
<rubie> to make a fibbinoccie sequence
<rubie> in an array
<cndiv> Lewix: any thoughts? or are you working on it? :-) Really appreciate it, if so.
<cndiv> It's probably something simple.
<rubie> by taking the second to last number, adding it to the last number. then pushing the result into the array
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
D9 has joined #ruby
kotk has joined #ruby
icarus has quit [Remote host closed the connection]
<dr_toboggan> line 5, i'm getting an error: void value expression
choke has quit [Read error: Connection reset by peer]
jasooon has joined #ruby
msmith has quit [Remote host closed the connection]
<insaneinside> dr_toboggan: what does 'match' return?
<dr_toboggan> boolean
<insaneinside> pastie, please?
choke has joined #ruby
kotk_ has quit [Ping timeout: 272 seconds]
<epitron> that is some weird looking code
maestrojed has joined #ruby
<insaneinside> also, i *think* the Ruby convention is to avoid explicit use of the return keyword except where necessary -- the last statement in a compound is the result of that compound anyway.
pot8to has joined #ruby
<dr_toboggan> insaneinside: yeah, i prefer to avoid using return
<dr_toboggan> can you return multiple values though without using an explicit return?
<shevy> dr_toboggan you could return an array
<wallerdev> yup
<wallerdev> [1, 2, 3]
<wallerdev> same thing
<dr_toboggan> shevy: i'd prefer not to
* epitron lights a match function
<insaneinside> dr_toboggan: wallerdev just told you `return false, value` won't work ;)
<lewix> cndiv: what are you trying to do?
<shevy> dr_toboggan how else do you want to solve it; test it
<dr_toboggan> wallerdev: is that how multiple values are implemented?
<shevy> >> def foo; return 5,6; end; foo
<eval-in_> shevy => [5, 6] (https://eval.in/202265)
kaspergrubbe has quit []
<shevy> see dr_toboggan
jack_rabbit has joined #ruby
<insaneinside> shevy: oh, huh
<wallerdev> yes return x, y creates an array and returns that
<epitron> dr_toboggan: did you write that code?
pot8to has left #ruby [#ruby]
<dr_toboggan> epitron: yeah
<insaneinside> >> 1, 2
<eval-in_> insaneinside => /tmp/execpad-3a1ff55d7e53/source-3a1ff55d7e53:2: syntax error, unexpected ',', expecting keyword_end ... (https://eval.in/202266)
<insaneinside> FAIL
<insaneinside> that's inconsistent, isn't it?
<cndiv> Lewix: Goal is to be told the number of unique dates each name opened a door. That CSV is each time a door opens. So I'm looking for John Doe: day1, day2, day3
<shevy> insaneinside yeah
<shevy> insaneinside but ruby was written for lazy humans, not for lazy computers
<epitron> dr_toboggan: what is "if !spec false" supposed to mean?
<wallerdev> no its not inconsistent lol, why would you even write that
rubie has quit [Ping timeout: 246 seconds]
<cndiv> Lewix: John Doe: day1, day2, day3 - 3 days total
<dr_toboggan> epitron: it returns false if the variable spec is false
<epitron> seriously? that's legal code? :)
<shevy> you normally have to use [5,6] for an array, or use Array.new or %w()
<insaneinside> shevy: but ... but.... gah!
<shevy> insaneinside well, you can also omit {} in arguments to a method if it comes last
<dr_toboggan> wallerdev: ah, so receiving multiple return values is just matching from a returned array object?
Musashi007 has quit [Read error: Connection reset by peer]
<wallerdev> yup
<dr_toboggan> epitron: how would you do it?
rubie has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
<shevy> def foo(i, foo = {}); # -> foo('yo man', :kill_him => 'yes')
<wallerdev> >> x, y = [1, 2]; x
<eval-in_> wallerdev => 1 (https://eval.in/202275)
<dr_toboggan> (er, nevermind)
<epitron> dr_toboggan: i mean, i don't think that would execute. spec would have to be a method
treehug88 has quit []
Musashi007 has joined #ruby
<epitron> >> a = :whee; if !a false; end
<eval-in_> epitron => undefined method `a' for main:Object (NoMethodError) ... (https://eval.in/202276)
<shevy> haha
coderdad has quit [Remote host closed the connection]
<shevy> even the human brain fails when it comes to parsing ruby syntax ^^^
<cndiv> Lewix: does that make sense? Hope so.
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<lewix> cndiv: im on the phone
<epitron> dr_toboggan: clippy says it looks like you're writing a parser
coderdad has joined #ruby
<eam> even the ruby parser has trouble with it
davasaurous has quit [Remote host closed the connection]
<dr_toboggan> epitron: just regular expression matching
<dr_toboggan> kinda
<cndiv> Lewix: Sure, take your time. I appreciate the help.
<dr_toboggan> (well, actually, it is regular expression matching)
x1337807x has joined #ruby
<epitron> dr_toboggan: why does it look so weird? :)
<epitron> what is [:seq]?
<dr_toboggan> sequence
<epitron> i mean, why is the symbol in an array?
<dr_toboggan> [:seq, 1, 2, 3] should match [1, 2, 3]
<dr_toboggan> i like symbols
<epitron> oh, are you coming from clojure
<epitron> ?
<dr_toboggan> scheme
<epitron> i see
lukevinc has joined #ruby
<epitron> that explains a lot
niftylettuce has quit [Quit: Connection closed for inactivity]
<epitron> dr_toboggan: so, what are you writing?
slester has quit [Quit: slester]
<epitron> i'm thinking there's a better way to structure it in ruby
<shevy> the ruby way
<shevy> comes from thinking in the ruby way
<dr_toboggan> i'm being handed some json structures, and i want to make sure they approximate a certain structure
<epitron> ahhh
<dr_toboggan> so this is like a regexp engine, that can handle arrays and hash tables
<epitron> so you want to validate recursive structures?
<dr_toboggan> yep
nfk has quit [Quit: yawn]
<epitron> well, you could use a recursive structure as the template
ephemerian has quit [Quit: Leaving.]
<epitron> validator = { name: String, age: Integer, favorite_things: Array }
<epitron> or maybe
<dr_toboggan> well, there are like 40+ method calls i have to write, with different json structures for each one
<dr_toboggan> yeah, that's kind of what i'm aiming for
<epitron> validator = { name: String, age: Integer, favorite_things: [String] }
jottr_ has joined #ruby
klaut has quit [Remote host closed the connection]
<epitron> is this for some web API?
<dr_toboggan> yeah
<epitron> okay, so there's some wrappers out there for interfacing with APIs
<epitron> DSLs that let you specify all that
<dr_toboggan> i've got json parsing, fastcgi and stuff working
ctp has joined #ruby
lukevinc has quit [Client Quit]
<dr_toboggan> currently i'm just writing each function to validate the actual json by hand
<waxjar> o.O
<dr_toboggan> which kind of sucks
tessi is now known as tessi_zz
<epitron> i used this one for interfacing with delicious.com: https://github.com/jnunemaker/httparty
<epitron> it's very old though, and sucks in some ways
<dr_toboggan> heh, really, i'd just be doing this in scheme. but i have to use a business friendly language, so i can be easily replaced. so i'm using ruby
<epitron> yes, i remember
<dr_toboggan> eh, i think my match code works, theoretically. i just have to get used to ruby syntax
<dr_toboggan> ah
<insaneinside> dr_toboggan: business-friendly? COBOL is where it's at.
<epitron> it might make more sense for you to write a DSL
<epitron> those are pretty easy
jottr has quit [Ping timeout: 260 seconds]
<epitron> lemme show you something
<dr_toboggan> sure
centrx has joined #ruby
nb_bez___ has joined #ruby
coderdad has quit [Ping timeout: 272 seconds]
kinduff has joined #ruby
<dr_toboggan> where should i be looking?
<dr_toboggan> oh, i see
<insaneinside> eeeeeeeyuck!
<insaneinside> >>require 'stringio'; $stdout = StringIO.new; begin; raise 'why not use standard ERROR for errors?!'; ensure; $stderr.puts("stdout contents: #{$stdout.string}); end
<eval-in_> insaneinside => /tmp/execpad-618e80dd24da/source-618e80dd24da:5: syntax error, unexpected tGVAR, expecting ')' ... (https://eval.in/202277)
<insaneinside> oops
<dr_toboggan> any examples of using it to match more deeply nested structures?
pontiki has joined #ruby
<epitron> dr_toboggan: i think i've written a recursive one once
<epitron> the core thing you use when writing a DSL is object.instance_eval
<epitron> that lets you run a block as if it's in the context of that object
<epitron> which lets the block call the object's methods
<epitron> then you just define methods, and that's your DSL
arrnas has quit [Remote host closed the connection]
<epitron> so, for nesting, you'd make a method that makes another instance of the DSL object, and evaluates the block in that
<epitron> eg: class DSL; def nested(&block); DSL.new.evaluate(&block); end; end
<epitron> s/evaluate/instance_eval/ :)
enebo has quit [Quit: enebo]
<cndiv> Lewix: oh wow, let me read that over. That works? :-)!
<lewix> cndiv: idk
kinduff has quit [Ping timeout: 272 seconds]
LiohAu has quit [Quit: LiohAu]
<cndiv> Lewix: let's find out! Appreciate the help, though :-)
<lewix> cndiv: finalHash[name_of_person].count
<cndiv> Lewix: I mean, regardless :-)
davasaurous has joined #ruby
Pupeno has quit [Remote host closed the connection]
<dr_toboggan> epitron: hmm, i'll look into it
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonmorehouse has quit [Ping timeout: 260 seconds]
jontmorehouse has joined #ruby
chipotle_ has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
<epitron> you might also wanna ask around about JSON REST API wrapper gem things :)
<epitron> this is something people do in ruby a lot
<epitron> people who aren't me
chipotle has quit [Ping timeout: 272 seconds]
chipotle_ is now known as chipotle
<cndiv> Lewix: it doesn't error, but doesn't return anything. I want to replace the name_of_person with a string like "Doe, John" right? What's captured by line 26?
dogweather has quit [Remote host closed the connection]
<lewix> cndiv: yes
fgo has joined #ruby
<cndiv> Lewix: hmm, ok, trying known values and not getting anything. I'll keep trying, I know you're much closer than I was!
jonmorehouse has joined #ruby
<lewix> cndiv: finalHash["Leevin, Ori"].count
<cndiv> Lewix: Yeah, no luck. :-/
tbrock_ has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
D9 has quit [Ping timeout: 260 seconds]
<lewix> cndiv: it works fine on my side
jontmorehouse has quit [Ping timeout: 272 seconds]
<cndiv> Lewix: you put it at the end? post line 29?
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
fgo has quit [Ping timeout: 246 seconds]
<lewix> cndiv: line 30
nettoweb_ has joined #ruby
<cndiv> Lewix: trying.
reset has joined #ruby
Takle has quit [Remote host closed the connection]
RyanV has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 244 seconds]
cajone has quit [Remote host closed the connection]
nettoweb_ has quit [Client Quit]
rkalfane has joined #ruby
cpruitt has quit [Quit: cpruitt]
justinmburrous has joined #ruby
nettoweb has quit [Ping timeout: 272 seconds]
lmickh has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
cajone has joined #ruby
vt102 has quit [Remote host closed the connection]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
mrbobman has joined #ruby
<cndiv> Lewix: sorry on phone
beneggett has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Ping timeout: 250 seconds]
Avahey has joined #ruby
WormDrink has joined #ruby
<mrbobman> oh god, oh god... it looks like my company is about to switch from Ruby to PHP!! Primarily because we can't find any decent Ruby developers out there. :-(
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
beneggett has quit [Ping timeout: 244 seconds]
<wallerdev> out where?
beneggett has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit []
louism2wash has quit [Quit: This computer has gone to sleep]
thsig has quit [Ping timeout: 260 seconds]
asteros has quit [Quit: asteros]
lw has quit [Quit: s]
freerobby has joined #ruby
asteros has joined #ruby
<insaneinside> mrbobman: hey, I'm looking for a job. ;)
thsig has joined #ruby
cherwin has quit [Ping timeout: 245 seconds]
<mrbobman> The north-west of England
<lnormous> urgh
<lnormous> that's your problem
<mrbobman> lnormous: ?
skammer3 has joined #ruby
<lnormous> Oh, I just grew up in the north east :p
<havenwood> mrbobman: they should do remote Rubyists not PHP, yeeks
cherwin has joined #ruby
<mrbobman> It's important that the developers work on-site
<havenwood> mrbobman: why?
tokik has joined #ruby
<mrbobman> havenwood: because the developer needs to constantly liase with the staff in the building
migimunz has joined #ruby
<insaneinside> telepresence robots!
<mrbobman> Is it possible to namespace a collection of classes without modifying the original files?
<insaneinside> sure. module A; Foo = ::Foo; end
nettoweb has joined #ruby
<insaneinside> A::Foo is now an alias of ::Foo.
<migimunz> Hi, I'm doing something with ruby and opengl, and I was wondering if someone could help me with Fiddle, since the docs seem to be somewhat lacking. I need to allocate an int-sized buffer, get a pointer to it, and later do a .to_i on it.
tbrock_ has quit [Quit: Computer has gone to sleep.]
<migimunz> any ideas?
<eam> migimunz: ffi?
pdais has joined #ruby
<mrbobman> insaneinside: is it possible to do it without creating ::Foo in the first place? It seems like ::Foo is just pollution here
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<insaneinside> migimunz: I've had mixed results with the FFI libraries. The 'inline' gem (by zenspider here, I think) lets you just write the C inline with your Ruby.
<cndiv> Lewix: that's close! but it spits out the amount of doors I opened total, not the amount of days I opened doors.
<cndiv> Lewix: I'm looking for the amount of unique days in which a user opened doors.
dev_ryan has quit [Ping timeout: 260 seconds]
<migimunz> insaneinside, the thing is, I'm already using the opengl-core gem, so I'm sure it can be done without talking to C directly
<cndiv> Lewix: I'm trying to judge how many days people actually came to the office
<migimunz> however, the documentation for that gem is lacking too
<insaneinside> mrbobman: well, you could do Module.const_remo-- er... hmm.
<insaneinside> There is not const_remove?
<lewix> cndiv: finalHash["Leevin, Ori"].uniq.count
<insaneinside> mrbobman: oh, it's just private
GriffinHeart has joined #ruby
<insaneinside> >> Foo = 1; p Foo; Module.send(:remove_const, :Foo); p Foo
<eval-in_> insaneinside => 1 ... (https://eval.in/202278)
ovoraptor has joined #ruby
Pupeno has joined #ruby
startupality has quit [Quit: startupality]
t_mmyv has joined #ruby
postmodern has joined #ruby
mwlang has quit [Quit: mwlang]
<cndiv> Lewix: I think that's it! Testing a few...
<t_mmyv> Does anyone know how I can select 2 or 3 in this regular expression example? http://rubular.com/r/2Gb3Le5sY7
<insaneinside> mrbobman: yep, that'll do it -- but there could be namespacing issues in the VM if Foo's code references e.g. ::Foo instead of just Foo.
<mrbobman> insaneinside: say I had two different libraries that just hapenned to share the same namespace, how could I easily separate them?
<jnylen> is there a way to do : s.{type} = type_id
<jnylen> where type is a variable
<cndiv> Lewix: Really, really appreciate the help. That's perfect.
D9 has joined #ruby
freerobby has quit [Quit: Leaving.]
<insaneinside> mrbobman: you'd have to assign a new constant for the first one, remove the constant, then include the second
mrsolo has quit [Quit: Leaving]
iliketurtles has quit [Quit: zzzzz…..]
<mrbobman> insaneinside: seems nasty. It's a pity you can't require files so they directly live within an existing namespace. I think in python this isn't an issue.
<insaneinside> mrbobman: yeah, that's one thing that's nice about Python
<insaneinside> also: not sure if the Ruby VM resolves *all* constants to their referands at inclusion time -- if not, you'd get some very confused code
icebourg has quit []
tbrock_ has joined #ruby
freerobby has joined #ruby
oso96_2000 is now known as oso|away
GriffinHeart has quit [Ping timeout: 244 seconds]
tbrock_ has quit [Client Quit]
jasooon has joined #ruby
nemesit|znc has quit [Ping timeout: 260 seconds]
<insaneinside> e.g.
<insaneinside> >>module A; def do_something(); puts(something); end; def something; 'A'; end; end; A1 = A; Module.send(:remove_const, :A); module A; def something; 'B'; end; end; A1.do_somethign; end
<eval-in_> insaneinside => /tmp/execpad-04b86ce5fb05/source-04b86ce5fb05:3: syntax error, unexpected keyword_rescue, expecting end-of-input ... (https://eval.in/202279)
<insaneinside> er, no
<Sou|cutter> t_mmyv: my-string\/page-(?=\d{2,}).+(\d$) maybe? There's probably a better way
mary5030 has joined #ruby
<insaneinside> >>module A; def do_something(); puts(something); end; def something; 'A'; end; end; A1 = A; Module.send(:remove_const, :A); module A; def something; 'B'; end; end; A1.do_something
<eval-in_> insaneinside => constant Module::A not defined (NameError) ... (https://eval.in/202280)
Takle has joined #ruby
<insaneinside> now THAT's interesting.
justinmburrous has joined #ruby
<insaneinside> it's erroring on the call to remove_const.
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodenough has joined #ruby
govg has quit [Quit: leaving]
ctp has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
<insaneinside> >> module A; end; Module.constants.include?(:A)
<eval-in_> insaneinside => true (https://eval.in/202281)
ctp has quit [Read error: Connection reset by peer]
ctp_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
MCDev has joined #ruby
<insaneinside> >> module A; end; p Module.constants.include?(:A); Module.send(:remove_const, :A)
<eval-in_> insaneinside => true ... (https://eval.in/202282)
<Sou|cutter> t_mmyv: my-string\/page-\d+(?<=\d)(\d)
baroquebobcat has quit [Quit: baroquebobcat]
nemesit|znc has joined #ruby
lewix has quit [Remote host closed the connection]
b1nd has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
dideler has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
<insaneinside> doh! was using inherited constants...
<insaneinside> >>module A; def do_something(); puts(something); end; def something; 'A'; end; end; A1 = A; Object.send(:remove_const, :A); module A; def something; 'B'; end; end; A1.do_something
<eval-in_> insaneinside => undefined method `do_something' for A:Module (NoMethodError) ... (https://eval.in/202283)
justinmburrous has quit [Ping timeout: 260 seconds]
sdwrage_ has joined #ruby
<insaneinside> mrbobman: so you want Object.remove_const, not Module.(...). And it looks like simple const assignment won't do here
Pumukel has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby
sdwrage has quit [Ping timeout: 260 seconds]
dx7_ has joined #ruby
magic has quit [Ping timeout: 260 seconds]
Takle has quit [Ping timeout: 250 seconds]
ctp_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has quit []
dx7 has quit [Ping timeout: 240 seconds]
mferrier has joined #ruby
magic_ has joined #ruby
ffranz has quit [Quit: Leaving]
dev_ryan has joined #ruby
sdwrage_ has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
dx7_ has quit [Ping timeout: 260 seconds]
wjimenez_ has joined #ruby
lw has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
endash has quit [Quit: endash]
IrishGringo has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
x1337807x has quit [Client Quit]
j_mcnally has joined #ruby
sevvie has joined #ruby
wjimenez_ has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
<insaneinside> mrbobman: it's worse than that, even. Looks like all modules, classes, etc. -- including mixins! -- are indexed by name, not reference, so deleting the original constant and defining a new module will break previous inclusions of the original module.
nisstyre has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
Spami has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
michaeldeol has joined #ruby
govg has joined #ruby
rfi_ has joined #ruby
omosoj has joined #ruby
<rfi_> is this the right channel to ask questions about gems ?
<havenwood> rfi_: yup, it'd be a good one
<dr_toboggan> wait, did we come to a conclusion how you do: not something
<rfi_> so I have a ruby lib called hiera that is installed by an rpm into /usr/lib/ruby/site_ruby/1.8/, but its an old version. If I do 'gem install' to get the newest it goes into '/usr/lib/ruby/gems/1.8'
<dr_toboggan> i wanted to use: !variable
<rfi_> will this cause a conflict or does the newer version get resolved properly ?
<dr_toboggan> but that attemps to call variable as a function
<dr_toboggan> *attempts
ghostmoth has quit [Quit: ghostmoth]
davasaur_ has joined #ruby
pwh has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
rimenes has joined #ruby