apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
tedstriker has joined #ruby
mhillsman has joined #ruby
ambushsabre has quit [Read error: Connection reset by peer]
benwoody has quit [Quit: benwoody]
ambushsabre has joined #ruby
<havenwood> sam113101: major.minor.teeny-patch, 2.1.0-p0 will come out on Christmas (usually Christmas or Ruby's birthday are the release dates for major/minor releases).
<havenwood> sam113101: Ruby versioning is, uhh... untraditional. :P
volty has quit [Quit: Konversation terminated!]
ambushsabre has quit [Client Quit]
Nogbit has quit [Quit: Leaving.]
ddd has joined #ruby
pleal has joined #ruby
rickruby has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
drumusician has quit [Ping timeout: 246 seconds]
alvaro_o has joined #ruby
osvico has joined #ruby
linoge has joined #ruby
ace_striker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<nobitanobi> I have a question...I have a class ProductImage and a class ProductLogo. I want to be able to crop/resize images associated with objects of those two classes. I have thought on creating a Module called ImageManipulation and mixing it into both classes
rjhunter has joined #ruby
Hanmac has joined #ruby
nfk has quit [Quit: yawn]
<nobitanobi> I tend to doubt whether to use a Module or Class, any thumb rule?
dh64 has quit [Remote host closed the connection]
huttan_ has quit [Remote host closed the connection]
adeponte has joined #ruby
mzdravkov has left #ruby [#ruby]
amoli has quit [Ping timeout: 246 seconds]
linoge has quit [Quit: WeeChat 0.4.2]
mgorbach has joined #ruby
coca_rails has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
rjhunter has quit [Ping timeout: 260 seconds]
huttan has joined #ruby
<waxjar> a module is for behaviour, a class for behaviour and state
Sc0rp10n has quit [Quit: Leaving]
Soda has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
<havenwood> nobitanobi: when in doubt, use a module - if you realize you need to instantiate to have separate state, only then a class
<nobitanobi> havenwood, I think I reached the point where I am switching from a Module to a Class
<nobitanobi> Say that I want to have a method called 'crop' that will crop a particular Image. So for an instance of ProductImage, I want to be able to do @image.crop
mojjojo has joined #ruby
<nobitanobi> if that method is in the Module, the "correct" way of do so is passing parameters to the method such as .crop(start_x, end_x, start_y, end_y), right?
kofno_ has joined #ruby
<nobitanobi> It would not be "correct" to rely on particular attributes of the ProductImage inside the .crop method
guilund has quit [Ping timeout: 250 seconds]
jan1337z has joined #ruby
monkegjinni has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
amacgregor__ has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
farn has quit [Ping timeout: 246 seconds]
foobArrr has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nobitanobi> I have created a GIST, so I can explain better :P https://gist.github.com/novito/7685350
zoo-zed has joined #ruby
lkba has joined #ruby
moneydouble has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
sergicles has quit [Quit: sergicles]
kofno_ has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 272 seconds]
<noob101> Hello.
asdadsaddd has joined #ruby
Bira has quit [Remote host closed the connection]
nobitanobi has quit [Disconnected by services]
<asdadsaddd> Hi guys
bricker`work has quit [Quit: leaving]
jibi has quit [Ping timeout: 246 seconds]
asdasddd has joined #ruby
foobArrr has joined #ruby
zoo-zed has quit [Ping timeout: 252 seconds]
<noob101> What is a function that restarts the program from the very first line?
<asdasddd> So... As I was saying before I got disconnected: https://gist.github.com/novito/7685350 -- What is the correct approach for this? When I need a class attribute in a module to instantiate something?
wpaulson has joined #ruby
pel_daniel has left #ruby [#ruby]
<asdasddd> *When I need an attribute from an object of a class that has a Module mixed in
kofno_ has joined #ruby
VTLob has quit [Quit: VTLob]
asdadsaddd has quit [Ping timeout: 260 seconds]
wpaulson has quit [Remote host closed the connection]
Bira has joined #ruby
Kricir has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
adeponte has quit [Quit: Leaving...]
fridim__ has joined #ruby
jeebster has quit [Quit: Leaving.]
farn has joined #ruby
moneydouble has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
moneydouble has joined #ruby
Xeago has joined #ruby
fkumro has joined #ruby
harrymoreno has quit [Ping timeout: 272 seconds]
harrymoreno_ is now known as harrymoreno
predator217 has joined #ruby
pleal has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
hogeo has joined #ruby
Afal has joined #ruby
mojjojo has joined #ruby
<havenwood> asdasddd: `def crop(source)`, as they say "Tell, don't ask." Tell the message to the method you're calling with arguments, don't have it go ask another method.
predator117 has quit [Ping timeout: 252 seconds]
flowerhack_ is now known as flowerhack
asdasddd is now known as nobitanobi
tkuchiki has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
<nobitanobi> havenwood, ok
tenjack has quit [Remote host closed the connection]
pwh has quit []
<nobitanobi> thanks havenwood
<nobitanobi> I just found that doing
kaspergrubbe has joined #ruby
<nobitanobi> @object.crop(@object.src) was kind of "redundant", as the crop method has access to @object.src
jetblack has joined #ruby
jetblack has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> nobitanobi: can you just #src instead of self#src?
Skylab_ has joined #ruby
jkhwan has quit [Remote host closed the connection]
<nobitanobi> havenwood, yes
amacgregor has joined #ruby
Arzaga has joined #ruby
jkhwan has joined #ruby
Skylab has quit [Read error: Operation timed out]
Skylab_ is now known as Skylab
mdel has quit [Remote host closed the connection]
jetblack has joined #ruby
<havenwood> nobitanobi: i think better, and no more redundant than calling #src later - just a method that needs calling
<nobitanobi> havenwood, +1
amacgregor__ has quit [Ping timeout: 246 seconds]
<nobitanobi> I am actually creating a class, because at the end of the day I will need a "new" instance of that image.
<nobitanobi> to manipulate it
<nobitanobi> the ProductImage itself is not a Manipulable Image. I need some library to open that 'src' and do everything with it
<nobitanobi> (cropping, resizing...)
kaspergrubbe has quit [Ping timeout: 246 seconds]
<nobitanobi> havenwood, thanks
<havenwood> nobitanobi: np
<nobitanobi> I enjoy programming Ruby way too much
<nobitanobi> I have never had this feeling before with any other language
<nobitanobi> and this channel makes it even more fun and easier. yeah I'm happy
myappleguy has joined #ruby
jalcine- has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
alx- has quit [Quit: Leaving...]
asteros has quit [Quit: asteros]
Arzaga has quit [Quit: Computer has gone to sleep.]
jkhwan has joined #ruby
babykosh has joined #ruby
reset has quit [Ping timeout: 248 seconds]
awpti has quit [Remote host closed the connection]
ambushsabre has joined #ruby
theKayhan has quit [Ping timeout: 252 seconds]
gregorg has quit [Ping timeout: 248 seconds]
benzrf has joined #ruby
<benzrf> hi, is there a ruby debugger like pdb
<benzrf> or rather, what is it
<benzrf> cuz it obv. exists
gregorg has joined #ruby
fkumro has left #ruby [#ruby]
amacgregor_ has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
mhillsman has quit [Quit: Leaving.]
nari has joined #ruby
robustus has joined #ruby
<benzrf> hmm actually what i am looking for is controlled ruby execution where i programatially execute/traverse an AST
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sheap has joined #ruby
duggiefresh has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
charliesome has joined #ruby
tedstrik_ has joined #ruby
zeade has quit [Quit: Leaving.]
asteros has joined #ruby
ewnd9 has joined #ruby
dhruvasagar has joined #ruby
tkuchiki has joined #ruby
mk_qi has joined #ruby
mhillsman has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
TaxmanBD has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
mojjojo has quit [Quit: mojjojo]
hadees has joined #ruby
pleal has joined #ruby
alx- has joined #ruby
alx- has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
myappleguy has quit [Ping timeout: 264 seconds]
moneydouble has quit [Quit: Leaving.]
TaxmanBD has quit [Ping timeout: 246 seconds]
Leighton has joined #ruby
guilund has joined #ruby
<guilund> bnagy: hey man, sorry i took to long to thank you properly
<guilund> bnagy: worked very well thanks!
dtcrshr has joined #ruby
<guilund> bnagy: do you know some article that explains what you did with the inject?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<guilund> bnagy: after a whois, find your twitter, following you
ravster has left #ruby [#ruby]
jamesaanderson has joined #ruby
culturelabs has joined #ruby
benzrf has left #ruby [#ruby]
<bnagy> o_0
<guilund> bnagy: dont worry man, i was just seeing if you had a blog or something haha
<bnagy> using inject is kinda bad for that, I would recommend not
rDNix has joined #ruby
<guilund> man, im struggling with this ruby hashes
<bnagy> its's oneliner hacky code, not commit to a codebase code
<guilund> crazy stuff.. cannot get anything working
aspires has joined #ruby
randomnick_ has quit [Quit: Leaving]
<rDNix> hello what is the command to install gemfile ?
mando_ has joined #ruby
<bnagy> guilund: mess with it in irb
<guilund> bnagy: good idea
<bnagy> rDNix: gem install blah.gem
<rDNix> while am using bundle install in terminal it said " can't locate gemfile " :S
<rDNix> blah - random ?
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
babykosh has quit [Quit: babykosh]
<guilund> rDNix, check the ruby version
<guilund> rDNix: rvm list
rjhunter has quit [Remote host closed the connection]
ace_striker has quit [Ping timeout: 250 seconds]
<rDNix> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
sambao21 has joined #ruby
kofno_ has quit [Ping timeout: 265 seconds]
iliketur_ has quit [Quit: zzzzz…..]
timonv has joined #ruby
<guilund> rDNix: bundle update gem, bundle install gem install bundler, tried this?
<rDNix> fixed am trying to download it now
<rDNix> An error occured while installing ffi (1.9.3), and Bundler cannot continue.
<rDNix> Make sure that `gem install ffi -v '1.9.3'` succeeds before bundling.
<rDNix> another error omg :S
<guilund> install rails under this version of ruby
<guilund> sorry, are you using rails?
<rDNix> oh no
mikestok has joined #ruby
<guilund> my bad, forot that the channel is about ruby
Xeago has quit [Ping timeout: 264 seconds]
TaxmanBD has joined #ruby
fierycatnet has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
<rDNix> dam :S
kiba has quit [Ping timeout: 252 seconds]
zoo-zed has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
sambao21 has quit [Ping timeout: 260 seconds]
heidi has quit [Quit: Leaving.]
lethan has joined #ruby
timonv has quit [Ping timeout: 251 seconds]
<rDNix> anyhelp ?
lethan has quit [Remote host closed the connection]
lethan has joined #ruby
lyanchih has joined #ruby
<Leighton> rDNix: were you able to install ffi successfully?
lnormous has quit [Ping timeout: 240 seconds]
<rDNix> no am not
<rDNix> /usr/bin/ruby1.9.1 extconf.rb
<rDNix> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
<bnagy> install the ruby-dev package for your os
zoo-zed has quit [Ping timeout: 245 seconds]
kofno_ has joined #ruby
Hoozt has quit [Remote host closed the connection]
xk_id has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
estebistec has joined #ruby
sevenseacat has joined #ruby
Skylab has quit [Quit: Skylab]
<rDNix> apt-get install ruby-dev
<rDNix> i need to get libs too ?
wald0 has quit [Ping timeout: 272 seconds]
TaxmanBD has quit [Ping timeout: 246 seconds]
ukd1 has joined #ruby
maletor has joined #ruby
sevenseacat has quit [Ping timeout: 252 seconds]
doIevenLift is now known as synergy_
iz has joined #ruby
szerated has joined #ruby
<rDNix> Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
<rDNix> work now ty
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
sparrovv has quit [Quit: sparrovv]
moneydouble has joined #ruby
Kricir has joined #ruby
fgo has joined #ruby
TaxmanBD has joined #ruby
freezey has joined #ruby
banister has joined #ruby
jbsnake has quit [Read error: Connection reset by peer]
asteros has quit [Quit: asteros]
Kricir has quit [Ping timeout: 252 seconds]
szerated has quit [Ping timeout: 246 seconds]
TaxmanBD has quit [Ping timeout: 252 seconds]
moneydouble has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 272 seconds]
Deele has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
noob101 has quit [Ping timeout: 250 seconds]
rDNix^ has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
yeboot has joined #ruby
tylersmith has quit [Remote host closed the connection]
rDNix has quit [Disconnected by services]
rDNix^ is now known as rDNix
rDNix has quit [Changing host]
rDNix has joined #ruby
sevenseacat has joined #ruby
freezey has quit [Remote host closed the connection]
iliketur_ has joined #ruby
ukd1_ has joined #ruby
magoo has quit [Ping timeout: 272 seconds]
amacgregor has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
TaxmanBD has joined #ruby
mhillsman has quit [Quit: Leaving.]
ukd1 has quit [Ping timeout: 246 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
mmmiguuell has joined #ruby
tedstriker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ukd1_ has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
DanBoy has joined #ruby
psyl0n has joined #ruby
Meistarin has quit [Quit: Going offline, see ya! (www.adiirc.com)]
havenwood has joined #ruby
fijimunkii has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
sambao21 has quit [Ping timeout: 246 seconds]
kofno_ has quit [Ping timeout: 246 seconds]
lethan has quit []
maletor has quit [Quit: Computer has gone to sleep.]
paradisaeidae has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
rDNix has quit [Ping timeout: 245 seconds]
lukec has quit [Quit: lukec]
jamesaanderson has joined #ruby
toevs has joined #ruby
falood has joined #ruby
amacgregor_ has joined #ruby
TaxmanBD has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
nalone has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 245 seconds]
kofno_ has joined #ruby
hamakn has joined #ruby
jetblack has quit [Ping timeout: 272 seconds]
hamakn has quit [Read error: Connection reset by peer]
mmmiguuell has quit []
hamakn has joined #ruby
<Fire-Dragon-DoL> Are there any simple way to calculate url depth?
DropsOfSerenity has joined #ruby
jmaya has joined #ruby
Deciphered is now known as DecipheredAFK
kobain has quit []
DropsOfSerenity has quit [Client Quit]
pwh has joined #ruby
jmaya has quit [Client Quit]
browndawg has joined #ruby
rDNix has joined #ruby
Meistarin has joined #ruby
LexicalScope has joined #ruby
havenwood has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
tedstrik_ has quit [Quit: Anti-Fraping status set.]
tylersmith has joined #ruby
pleal has quit [Remote host closed the connection]
TaxmanBD has joined #ruby
aspires has joined #ruby
hogeo has quit [Remote host closed the connection]
marcgg_ has quit [Ping timeout: 272 seconds]
synergy_ is now known as sng|afk
IcyDragon has quit [Quit: Space~~~]
mmcdaris has quit [Quit: mmcdaris]
Lewix has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
nemesit|znc has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
s_e has quit [Excess Flood]
intuxicated_ has quit [Remote host closed the connection]
heidi has joined #ruby
rjhunter has joined #ruby
Leighton has quit [Quit: leaving]
s_e has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
myappleguy has joined #ruby
heidi has quit [Client Quit]
zz_scottstamp is now known as scottstamp
Vivekananda has quit [Quit: Ex-Chat]
rjhunter has quit [Ping timeout: 260 seconds]
julweber_ has joined #ruby
digital-ghost has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
marcgg has joined #ruby
nemesit|znc has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
lukec has joined #ruby
hogeo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
dwgill has joined #ruby
hogeo has joined #ruby
Kricir has joined #ruby
TaxmanBD has quit [Ping timeout: 264 seconds]
DecipheredAFK is now known as Deciphered
eka has quit [Quit: Computer has gone to sleep.]
halfie has quit [Ping timeout: 246 seconds]
asteros has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has joined #ruby
lukec has quit [Quit: lukec]
siah is now known as hydrospell[w]
dtcrshr has quit [Quit: poff]
moneydouble has joined #ruby
nemesit|znc has quit [Read error: Operation timed out]
rDNix has quit [Changing host]
rDNix has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
asteros has quit [Ping timeout: 265 seconds]
ph8 has quit [Ping timeout: 272 seconds]
amacgregor has joined #ruby
moneydouble has quit [Ping timeout: 272 seconds]
aalejandro has joined #ruby
jamesaanderson has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
rage- has joined #ruby
jamesaanderson has quit [Client Quit]
Davey has joined #ruby
aalejandro is now known as elec-
scottstamp is now known as zz_scottstamp
TaxmanBD has joined #ruby
TaxmanBD has quit [Remote host closed the connection]
fierycatnet has quit []
nemesit|znc has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
paradisaeidae has quit [Ping timeout: 260 seconds]
TaxmanBD has joined #ruby
peta_ has quit [Quit: peta_]
paradisaeidae has joined #ruby
myappleguy has quit [Ping timeout: 245 seconds]
ph8 has joined #ruby
DanBoy has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 252 seconds]
DanBoy has joined #ruby
liamkeily has quit [Ping timeout: 246 seconds]
zzak has quit [Quit: leaving]
zzak has joined #ruby
rDNix^ has joined #ruby
rDNix has quit [Disconnected by services]
rDNix^ is now known as rDNix
rDNix has quit [Changing host]
rDNix has joined #ruby
TaxmanBD has quit [Ping timeout: 264 seconds]
jetblack has joined #ruby
estebistec has quit [Remote host closed the connection]
estebistec has joined #ruby
blemming has joined #ruby
Deciphered is now known as DecipheredAFK
soba has joined #ruby
zzak is now known as _zzak
_zzak is now known as zzak
sbos99 has joined #ruby
estebistec has quit [Ping timeout: 252 seconds]
blemming has quit [Remote host closed the connection]
capicue has quit [Quit: Leaving...]
blemming has joined #ruby
timonv has joined #ruby
polaco is now known as polaco_zZz
petey has quit [Remote host closed the connection]
petey has joined #ruby
nobitanobi has quit [Ping timeout: 252 seconds]
<blemming> Hi, I am trying to test a connection between Marketo and Slideshare. To do so, I need to find a way to setup an Apache 5.0 environment that supports SOAP API. Unfortunately, I'm not finding this explicitly stated on provider's sites - and their support has not been able to give a definitive answer.
<blemming> Can you help?
jamesaanderson has joined #ruby
nemesit|znc has joined #ruby
<bnagy> no.
fedesilva has joined #ruby
<blemming> Thanks, bnagy. Anyone else - or can you point me in a direction where I can educate myself?
timonv has quit [Ping timeout: 245 seconds]
radic_ has joined #ruby
radic has quit [Disconnected by services]
DropsOfSerenity has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
petey has quit [Ping timeout: 272 seconds]
zzak has quit [Quit: leaving]
zzak has joined #ruby
iamjarvo has quit [Quit: Leaving.]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
iamjarvo has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
harrymoreno has quit [Ping timeout: 252 seconds]
nemesit|znc has quit [Ping timeout: 248 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harrymoreno has joined #ruby
rezzack has quit [Quit: Leaving.]
brunops has quit [Ping timeout: 248 seconds]
jetblack has quit [Quit: leaving]
vpretzel has quit [Quit: Adios!]
mikestok has quit [Quit: Computer has gone to sleep.]
hogeo has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
hogeo has joined #ruby
ringaroses has quit [Quit: Leaving]
halfie has joined #ruby
preller has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
preller has joined #ruby
nalone has quit []
nemesit|znc has joined #ruby
liamkeily has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
hogeo has quit [Remote host closed the connection]
fedesilv_ has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
Skylab has joined #ruby
zz_michael_mbp is now known as michael_mbp
fedesilva has quit [Ping timeout: 265 seconds]
hogeo has joined #ruby
liamkeily has quit [Ping timeout: 272 seconds]
zastern has quit [Quit: WeeChat 0.4.1]
tylersmith has joined #ruby
aspires has quit []
hogeo has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 248 seconds]
denysonique has joined #ruby
petey has joined #ruby
moneydouble has joined #ruby
Kricir has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
coca_rails has joined #ruby
dhruvasagar has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moneydouble has quit [Ping timeout: 246 seconds]
LexicalScope has quit [Ping timeout: 265 seconds]
elec- has quit [Quit: elec-]
Kricir has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
sng|afk has quit [Ping timeout: 245 seconds]
rage- has quit [Quit: rage-]
von_ has quit [Quit: Connection closed for inactivity]
ppppaul has joined #ruby
szerated has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
vxxr has quit [Quit: leaving]
jamesaanderson has joined #ruby
fedesilva has joined #ruby
varfoo has joined #ruby
nemesit|znc has quit [Ping timeout: 264 seconds]
hogeo has quit [Ping timeout: 264 seconds]
endash has quit [Quit: endash]
dhruvasagar has quit [Ping timeout: 246 seconds]
szerated has quit [Ping timeout: 246 seconds]
fedesilva has quit [Ping timeout: 252 seconds]
jamesaanderson has quit [Client Quit]
Kricir has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sambao21 has joined #ruby
guilund has quit [Ping timeout: 250 seconds]
Jdubs has joined #ruby
psyl0n has quit [Remote host closed the connection]
Kricir has quit [Read error: Connection reset by peer]
Kricir_ has joined #ruby
Davey has joined #ruby
dwgill has quit [Ping timeout: 272 seconds]
nowthatsamatt has joined #ruby
dwgill has joined #ruby
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
sambao21 has quit [Read error: Operation timed out]
kitak_ has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
Kricir_ has quit [Ping timeout: 260 seconds]
mhillsman has joined #ruby
braincrash has quit [Quit: bye bye]
jamesaanderson has quit [Client Quit]
ddd has quit [Quit: leaving]
hiyosi has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
jamesaanderson has joined #ruby
liamkeily has joined #ruby
Davey_ has joined #ruby
braincrash has joined #ruby
Davey_ has quit [Client Quit]
Hanmac has joined #ruby
kcombs has joined #ruby
Davey has joined #ruby
sambao21 has joined #ruby
rage has joined #ruby
noob101 has joined #ruby
<noob101> Hello
hogeo has joined #ruby
jamesaanderson has quit [Client Quit]
<noob101> What is a method?
Hanmac1 has quit [Ping timeout: 260 seconds]
fgo has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 260 seconds]
<bnagy> a self contained chunk of code that can be 'called' with or without arguments
rage has quit [Client Quit]
<noob101> bnagy, can you explain a different way. I don't understand.
<TorpedoSkyline> noob101 "ABC".length <-- length is a method
<bnagy> >> def add x, y; x + y; end; add 3,4
<eval-in> bnagy => 7 (https://eval.in/73995)
Davey has quit [Quit: leaving]
sambao21 has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
Davey has joined #ruby
<noob101> TorpedoSkyline, in ruby; You can create your own methods correct?
<TorpedoSkyline> noob101, yes bnagy just did that right there
<TorpedoSkyline> >> def say_hi; puts "Hi there!"; end;
<eval-in> TorpedoSkyline => nil (https://eval.in/73999)
hogeo has joined #ruby
<TorpedoSkyline> eh
<TorpedoSkyline> >> def say_hi; puts "Hi there!"; end; say_hi
<eval-in> TorpedoSkyline => Hi there! ... (https://eval.in/74000)
<noob101> Torpedoskyline, may you explain everything in the method say_hi please in great detail
<sevenseacat> lol
liamkeily has quit [Ping timeout: 246 seconds]
<sevenseacat> is this a bot?
<pontiki> a troll, methinks
yfeldblum has joined #ruby
<bnagy> no, it's the same critically dim guy from a few days ago
rezzack has joined #ruby
<pontiki> what a lark?
<noob101> not a troll I just am very eager to learn programming
<pontiki> spend the time
<pontiki> read the books
<pontiki> work the tutorials
<noob101> I'm going to go to bed now, that's all I did today was programmed.
<noob101> bye bye
dukz has joined #ruby
<TorpedoSkyline> noob101 seriously, buy a good book and read all the intro parts
hogeo has quit [Ping timeout: 272 seconds]
<Radar> lol
Reach has quit [Read error: Connection reset by peer]
Davey has quit [Disconnected by services]
DecipheredAFK is now known as Deciphered
Reach has joined #ruby
nemesit|znc has joined #ruby
<sevenseacat> noob101: bye bye!
jamesaanderson has joined #ruby
<havenwood> noob101: `puts` is a method. It has on argument, a string `"Hi there!"`.
<havenwood> one*
Davey has joined #ruby
<havenwood> puts("Hi there!") # the method `puts` and the argument `"Hi there!"`
noob101 has quit [Ping timeout: 250 seconds]
Beoran__ has quit [Read error: Connection reset by peer]
<havenwood> noob101: the parens are optional, but do go read, some great resources
<havenwood> well, he left, but "Learn to Program" by Chris Pine is what people seem to recommend, though I haven't read it
<Radar> The Well Grounded Rubyist is the bestest
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
<havenwood> Radar: as aimed at noobs?
<Radar> yes
<havenwood> Radar: kk, haven't read either, I need to take a look so I can recommend on something other than whim!
<Radar> TWGR covers Ruby 1.9.1 but is in the process of being upgraded to Ruby 2.
coca_rails has quit [Remote host closed the connection]
<sevenseacat> yep yep yep
<Radar> First thing TWGR gets you to do is "irb --simple-prompt" and then some simple math
jetblack has joined #ruby
Davey has quit [Quit: leaving]
jetblack has quit [Client Quit]
<Radar> Then it builds from there nicely.
Davey_ has joined #ruby
<havenwood> nice
<pontiki> sounds better than the online thingies
<TorpedoSkyline> yeah
Davey_ has quit [Client Quit]
brunops has joined #ruby
Davey has joined #ruby
moeSeth has joined #ruby
* Radar mutters something about a horse and drinking
michael_mbp is now known as zz_michael_mbp
Deciphered is now known as DecipheredAFK
<sevenseacat> heh
Bira has quit []
<havenwood> Radar: I do <3 a simple prompt. In Pry i set: Pry.config.prompt = Pry::SIMPLE_PROMPT
justsee has quit [Ping timeout: 265 seconds]
osvico has quit [Ping timeout: 248 seconds]
moneydouble has joined #ruby
blemming has quit [Quit: blemming]
<havenwood> though it take the --simple-prompt flag too, just the .pryrc is nicer :P
<Radar> indeed :O
<Radar> :)*
justsee has joined #ruby
cads has joined #ruby
snoo has joined #ruby
lagweezle has joined #ruby
iliketurtles has joined #ruby
mando_ has quit [Remote host closed the connection]
<lagweezle> mother of dog... a 3 page listing of people in the channel ...
mando has joined #ruby
browndawg has quit [Quit: Leaving.]
<snoo> lol
mando has quit [Ping timeout: 265 seconds]
funburn has joined #ruby
Arzaga has joined #ruby
closures999 has joined #ruby
szerated has joined #ruby
ddd has joined #ruby
DecipheredAFK is now known as Deciphered
swi7ch has joined #ruby
Asher has quit [Ping timeout: 246 seconds]
Asher has joined #ruby
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
swi7ch has quit [Disconnected by services]
zz_N00D is now known as CripperZ
CripperZ is now known as N00D
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeffdb has joined #ruby
Deciphered is now known as DecipheredAFK
xk_id has quit [Quit:
havenwood has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
Davey_ has joined #ruby
kitak has joined #ruby
havenwood has joined #ruby
culturelabs has joined #ruby
timonv has joined #ruby
moneydouble1 has joined #ruby
ppppaul has quit [Ping timeout: 260 seconds]
Deele has joined #ruby
sheap has quit [Quit: Lost terminal]
zz_michael_mbp is now known as michael_mbp
havenwood has quit [Ping timeout: 246 seconds]
moneydouble has quit [Ping timeout: 246 seconds]
_maes_ has joined #ruby
justsee has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
mando has joined #ruby
TheMoonMaster has quit [Remote host closed the connection]
<lagweezle> So, I'm fiddling with making an IRC bot and was pondering how best to deploy changes to a Mac mini...
<lagweezle> Suggestions?
hogeo has joined #ruby
hiyosi has joined #ruby
<pontiki> through git?
Jdubs has quit [Remote host closed the connection]
mando has quit [Ping timeout: 265 seconds]
iz has quit [Remote host closed the connection]
<pontiki> the ghosts of ruby past
iz has joined #ruby
<pontiki> and maybe future...
zigomir has joined #ruby
<lagweezle> Well, the git bit is already handled.
<lagweezle> I was more thinking about handling the reloading of the running daemon, or whatever it ends up being.
bluOxigen has joined #ruby
<lagweezle> Suggestions as to gems that I might want to look into?
Vivekananda has joined #ruby
nisstyre has quit [Quit: Leaving]
hiyosi has quit [Ping timeout: 252 seconds]
capicue has joined #ruby
amacgregor has joined #ruby
rjhunter has joined #ruby
banghouse has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
DecipheredAFK is now known as Deciphered
rDNix has quit [Ping timeout: 246 seconds]
<Radar> lagweezle: I run an IRC bot and I just ssh to the server and restart the process manually.
axilla has quit [Ping timeout: 240 seconds]
jkhwan has quit [Remote host closed the connection]
hadees has joined #ruby
lyanchih has quit [Quit: lyanchih]
zz_scottstamp is now known as scottstamp
jkhwan has joined #ruby
<Radar> I wouldn't be surprised if you could use a tool like ansible/chef/puppet to do that though
<lagweezle> Hmm. What did you use to daemonize it, Radar? Also, thank you.
<Radar> I don't. I just have it run in a screen process.
<lagweezle> heh :)
<Radar> A little ghetto, but it works surprisingly well.
<Radar> while true; do ruby bot.rb irc.freenode.net; done
<Radar> That is the command that I run inside the screen session.
<lagweezle> Aye
<Radar> If the bot.rb crashes for any particular reason (normally netsplits do that), it will restart itself.
heidi has joined #ruby
<lagweezle> I know this thing will eventually evolve.
<Reach> can anyone tell me what this error means?
dhruvasagar has joined #ruby
<lagweezle> Try adding parenthesis at the end of line 2?
<Reach> nevermind, forgot an end to one of my classes
<lagweezle> =o
<lagweezle> damn I was hoping I had clue
aagdbl1 has joined #ruby
aagdbl1 is now known as aagdbl
havenwood has joined #ruby
<rjhunter> Reach: "unexpected end of input" means that Ruby got to the end of the file, "expecting keyword_end" means it was looking for an `end` keyword (like from a class or a do)
jkhwan has quit [Ping timeout: 272 seconds]
iamjarvo1 has joined #ruby
<Reach> yeah
<Reach> lol
<Reach> i missed an end on my last method
<rjhunter> hopefully that makes it easier to figure out next time
noyb has joined #ruby
<lagweezle> I keep forgetting thar ruby cares not for parens
aagdbl has left #ruby [#ruby]
havenwood has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
<pontiki> eh?
dhruvasagar has quit [Read error: Connection reset by peer]
Deciphered is now known as DecipheredAFK
<pontiki> lagweezle: foreman, god, monitor, guard, many things which can watch over and restart a process
robbyoconnor has joined #ruby
<pontiki> if you want to wire it inside the bot itself, catch a process signal
nisstyre has joined #ruby
dhruvasagar has joined #ruby
<Radar> foreman can watch over and restart a process?
<rjhunter> lagweezle: on modern systems, you need no extra software -- systemd/launchd/upstart all have ways of expressing "this should restart if it gets terminated"
<pontiki> not exactly, but it export to upstart
szerated has quit [Ping timeout: 246 seconds]
johnnyfuchs has joined #ruby
johnnyfuchs has quit [Client Quit]
mando has joined #ruby
Aryasam has joined #ruby
yeboot has quit [Ping timeout: 252 seconds]
<lagweezle> rjhunter: ah, so true.Hooray for missing the obvious >.<
sambao21 has quit [Ping timeout: 246 seconds]
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
fridim__ has quit [Ping timeout: 252 seconds]
rDNix has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Davey_ is now known as Davey
mando has joined #ruby
sbos99 has quit [Read error: Connection reset by peer]
mando_ has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
robert_ has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 246 seconds]
mando has joined #ruby
Davey has quit [Quit: This machine has gone to sleep (probably)]
amacgregor has joined #ruby
Davey has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has quit [Remote host closed the connection]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
lyanchih has joined #ruby
Davey has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
drag00n has joined #ruby
browndawg has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
cjsarette has joined #ruby
yeboot has joined #ruby
jaimef has quit [Excess Flood]
nisstyre has quit [Quit: Leaving]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
nisstyre has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> hihi
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<lagweezle> :)
jaimef has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
dwgill has quit [Quit: Leaving]
petey has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
dhruvasagar has quit [Read error: Connection reset by peer]
thecreators has joined #ruby
dhruvasagar has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 260 seconds]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
Aryasam has joined #ruby
ananthakumaran has joined #ruby
mando has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
mando has joined #ruby
squidBits has quit [Ping timeout: 252 seconds]
squidBits has joined #ruby
coder_neo has joined #ruby
jaimef has quit [Excess Flood]
coder_neo has quit [Client Quit]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
mando has joined #ruby
browndawg has joined #ruby
dhruvasagar has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
dukz has quit [Remote host closed the connection]
zipper has joined #ruby
havenwood has quit [Remote host closed the connection]
dukz has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
havenwood has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
mando has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
mando has joined #ruby
jaimef has joined #ruby
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
klip has quit [Remote host closed the connection]
serp` has joined #ruby
hiyosi has joined #ruby
dukz has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 246 seconds]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
finch has left #ruby ["WeeChat 0.3.8"]
Kricir has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
hogeo has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
DecipheredAFK is now known as Deciphered
mando has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
mando has joined #ruby
apeiros has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby
fgo has quit [Remote host closed the connection]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
closures999 has quit [Remote host closed the connection]
closures999 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
heidi has quit [Quit: Leaving.]
apeiros has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
michaeldeol has left #ruby [#ruby]
mando has quit [Read error: Connection reset by peer]
botorosa has joined #ruby
mando has joined #ruby
botorosa has quit [Quit: leaving]
closures999 has quit [Ping timeout: 241 seconds]
noyb has quit [Ping timeout: 248 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
charliesome has joined #ruby
Deciphered is now known as DecipheredAFK
mando has quit [Read error: Connection reset by peer]
rDNix has quit [Quit: Leaving]
rDNix has joined #ruby
mando has joined #ruby
sambao21 has joined #ruby
noop has joined #ruby
zz_michael_mbp is now known as michael_mbp
mando has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 272 seconds]
BizarreCake has joined #ruby
mando has joined #ruby
sambao21 has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 245 seconds]
mando has joined #ruby
iamjarvo has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
davidboy has quit [Quit: Connection closed for inactivity]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
bluOxigen has joined #ruby
rDNix has quit [Changing host]
rDNix has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
iamjarvo has quit [Ping timeout: 252 seconds]
<DropsOfSerenity> so I have something that grabs a list of ip addresses from an external service, and then with that list currently I am quering one at a time to see what kind of response it gives (with a 5 second timeout if no answer). Is there any way I can "thread" this to send requests to all the addresses at once and then act on each ones response with a timeout of 5 seconds per request?
dhruvasagar has quit [Read error: Connection reset by peer]
benlieb has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
<rDNix> like port scanner ?
JohnBat26 has joined #ruby
<DropsOfSerenity> just need the http response, that's all.
mando has joined #ruby
<DropsOfSerenity> i'm currently using Net::HTP.get_response
<DropsOfSerenity> HTTP*
JohnBat26 has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
asteros has joined #ruby
jetblack has joined #ruby
OdNairy has joined #ruby
havenwood has joined #ruby
JohnBat26 has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
serp` has quit [Quit: serp`]
Leighton has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
<rjhunter> DropsOfSerenity: you can use Ruby's threading with Thread.new (and probably a Queue)
mando has quit [Read error: Connection reset by peer]
snoo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
snoo has joined #ruby
mando has joined #ruby
noyb has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
timonv has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
pranny has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
sergicles has joined #ruby
mando has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
nowthatsamatt has quit [Quit: nowthatsamatt]
jeffdb has quit [Quit: jeffdb]
capicue has quit [Quit: Leaving...]
snoo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
robert_ has joined #ruby
asteros has quit [Quit: asteros]
snoo has joined #ruby
rickruby has joined #ruby
axilla has joined #ruby
mando has quit [Read error: Connection reset by peer]
Soda has joined #ruby
mando has joined #ruby
closures999 has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
gadgetoid has quit [Ping timeout: 260 seconds]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
jetblack has quit [Quit: leaving]
jeffdb has joined #ruby
sergicles has quit [Quit: sergicles]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
zipper has joined #ruby
Soda has quit [Remote host closed the connection]
phansch has joined #ruby
zipper has quit [Client Quit]
sergicles has joined #ruby
phansch has quit [Client Quit]
jeffdb has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
justsee has joined #ruby
tjad has joined #ruby
hogeo has joined #ruby
sayan has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
s2013 has quit [Ping timeout: 265 seconds]
mando has joined #ruby
iamjarvo has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
mando has quit [Read error: Connection reset by peer]
moneydouble has joined #ruby
mando has joined #ruby
ewnd9 has quit [Remote host closed the connection]
pen has joined #ruby
nbrosnahan has joined #ruby
nbrosnahan has quit [Max SendQ exceeded]
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
moneydouble1 has quit [Ping timeout: 264 seconds]
nbrosnahan has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
mando_ has quit [Read error: Connection reset by peer]
<shevy> is there a difference between
<shevy> File.file? and File.exist?
mando has joined #ruby
razi has joined #ruby
DecipheredAFK is now known as Deciphered
aryaching has joined #ruby
mando_ has joined #ruby
mhillsman has quit [Quit: Leaving.]
jgrevich has quit [Quit: jgrevich]
hiyosi has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando__ has joined #ruby
banghouse has joined #ruby
mando has quit [Ping timeout: 264 seconds]
jarto has joined #ruby
banghouse is now known as Guest62775
mando__ has quit [Read error: Connection reset by peer]
<ayaz> shevy: Yes. Both check if the file given as the parameter exists. However, File.file? also checks whether the given file is actually a regular file.
justsee has quit [Ping timeout: 246 seconds]
jarto has quit [Client Quit]
mando has joined #ruby
ewnd9 has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
dukz has joined #ruby
scottstamp is now known as zz_scottstamp
mando has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
kofno_ has quit [Ping timeout: 245 seconds]
mando has joined #ruby
robbyoconnor has joined #ruby
cordoval has joined #ruby
<cordoval> ugys
<cordoval> guys
<cordoval> is there anything better for functional testing of mails?
<cordoval> thank this ? http://mailcatcher.me/
<cordoval> i am looking for a similar thing that i can plug in travis
<cordoval> do you speak it?
hiyosi has quit [Ping timeout: 272 seconds]
<cordoval> \o\
mando has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
Guest62775 has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
mando has joined #ruby
Kneferilis has joined #ruby
sergicles has quit [Quit: sergicles]
Deciphered is now known as DecipheredAFK
pen has quit []
zomgbie has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
lsmola has joined #ruby
Elhu has joined #ruby
pen has joined #ruby
toevs has quit [Remote host closed the connection]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
hukl has joined #ruby
hukl has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
sergicles has joined #ruby
sayan has quit [Quit: Leaving]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
escobedo has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
DropsOfSerenity has joined #ruby
mando has joined #ruby
dukz has quit [Remote host closed the connection]
mando_ has quit [Read error: Connection reset by peer]
sayan has joined #ruby
dukz has joined #ruby
larssmit has joined #ruby
varfoo has quit [Ping timeout: 245 seconds]
mando_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mando has quit [Read error: Connection reset by peer]
aalejandro has joined #ruby
sayan has quit [Read error: Connection reset by peer]
falood_ has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
DropsOfSerenity has quit [Ping timeout: 248 seconds]
rhunter has joined #ruby
<Reach> I still don't really understand the use of yield
<Reach> can anyone help me out?
falood has quit [Ping timeout: 240 seconds]
dukz has quit [Ping timeout: 246 seconds]
cmarques has quit [Ping timeout: 260 seconds]
cjsarette has quit [Remote host closed the connection]
aalejandro has quit [Client Quit]
serp` has joined #ruby
<Reach> what is yield doing here precisely
serp` has quit [Client Quit]
cmarques_ has joined #ruby
mando_ has joined #ruby
culturelabs has joined #ruby
mando has quit [Read error: Connection reset by peer]
<cordoval> Reach: that is a php5.5 feat
rjhunter has quit [Remote host closed the connection]
<cordoval> please use gist
<Reach> what?
rickruby has quit [Remote host closed the connection]
<cordoval> more colorful and cleaner
<cordoval> gist.github.com
<Reach> I don't really see how that matters
dukz has joined #ruby
tedstriker has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
sheap has joined #ruby
aalejandro has joined #ruby
mando has joined #ruby
dhruvasagar has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
himsin has joined #ruby
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando has quit [Read error: Connection reset by peer]
dukz has quit [Remote host closed the connection]
sayan has joined #ruby
mando has joined #ruby
dukz has joined #ruby
jbpros has joined #ruby
rjhunter has joined #ruby
funburn has quit [Quit: funburn]
<Reach> hell, now that I think about it I don't really understand what that method is doing at all
gtsiftsis has joined #ruby
drag00n has quit [Ping timeout: 260 seconds]
mando has quit [Read error: Connection reset by peer]
<lagweezle> Oh. Crafty ...
mando has joined #ruby
<lagweezle> and weird
<cordoval> let me check
<cordoval> wait
<sevenseacat> it is weird
<cordoval> oh sorry wrong room :)
hadees has quit [Ping timeout: 252 seconds]
<sevenseacat> finding the first element of an array that matches a block?
cordoval has left #ruby [#ruby]
<lagweezle> I'm going to say that it is a horrible way of writing that code.
aalejandro has quit [Client Quit]
<lagweezle> While succinct, it isn't terribly obvious. :/
<lagweezle> a
Arzaga has quit [Quit: Computer has gone to sleep.]
<lagweezle> I think I retract the horrible bit, but gah.
mando_ has joined #ruby
<unstable> Reach: If you use gist/github it allows people to comment/modify your code more easily.
mando has quit [Read error: Connection reset by peer]
rhunter has quit [Ping timeout: 252 seconds]
kofno_ has joined #ruby
<lagweezle> Yep. This channel will be good for me. Will keep reminding me I'm a noob, and learn me some things.
dagobah has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
mando has joined #ruby
dukz has quit [Remote host closed the connection]
<GreatSUN> good morning guys :-)
jbpros has quit [Quit: jbpros]
dukz has joined #ruby
<jonahR> GreatSUN: Good morning!
amritanshu_RnD has joined #ruby
<GreatSUN> does someone have an idea if and how it is possible to have methods from a module be private when including in a class ?
Mon_Ouie has quit [Ping timeout: 252 seconds]
<nobitanobi> night guys
<GreatSUN> jonahR: :-)
<GreatSUN> nobitanobi: n8
mando has quit [Read error: Connection reset by peer]
diosmiux has quit []
browndawg has quit [Quit: Leaving.]
mando has joined #ruby
dukz has quit [Remote host closed the connection]
<Reach> but I still don't really understand what yield is doing
tedstriker has quit [Ping timeout: 248 seconds]
nobitanobi has left #ruby ["Leaving"]
h_kon has joined #ruby
<sevenseacat> calling the block that gets passed into the method
<lagweezle> Reach: you call it as find { |x| <do something to evaluate x> } and the bit in the curlies "replaces" yield"
<Reach> so it's actually quite general
<Reach> I could say find ... anything
<lagweezle> confusigly clever
<Reach> with any condition
<sevenseacat> what lagweezle said
<lagweezle> Reach: aye
kofno_ has quit [Ping timeout: 246 seconds]
varfoo has joined #ruby
hadees has joined #ruby
<lagweezle> After having thought about it a bit, I like it, even though it is very painful at first to figure out what it is doing.
<Reach> I'm learning from Ruby Programming (pragmatic)
<lagweezle> Blocks in Ruby are scary powerful.
mando_ has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 265 seconds]
<lagweezle> Reach: If Ruby is not your first language, you'll likely get a lot out of http://rubykoans.com/
<Reach> I learned Java quite awhile ago, so I'm rusty.
mando_ has quit [Read error: Connection reset by peer]
<Reach> I do a lot of programming with CAS though
<lagweezle> S'okay. Still worth a peek.
mando_ has joined #ruby
<Reach> I'm learning ruby and ruby on rails to appear more useful when I graduate :P
mando has quit [Ping timeout: 246 seconds]
zipper has joined #ruby
ahawkins has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
shime has joined #ruby
mando has joined #ruby
<jonahR> GreatSUN: here you go https://gist.github.com/jonahoffline/7688561
Jdubs has joined #ruby
mando_ has joined #ruby
dukz has joined #ruby
pdtpatrick has joined #ruby
skaflem has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
pdtpatri1k has quit [Remote host closed the connection]
LexicalScope has joined #ruby
mando has quit [Ping timeout: 252 seconds]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
wallerdev has quit [Quit: wallerdev]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
dukz_ has joined #ruby
shime has quit [Quit: leaving]
shime has joined #ruby
robbyoconnor is now known as r0bby
r0bby is now known as r0bby_
mando_ has joined #ruby
r0bby_ is now known as robbyoconnor
claymore has joined #ruby
katterstrophe has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
roolo has quit [Quit: Leaving...]
<GreatSUN> jonahR: maybe this describes a little better what I want
mando has quit [Ping timeout: 260 seconds]
<GreatSUN> guess there might be something missing...
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
DecipheredAFK is now known as Deciphered
gh has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
shime_ has joined #ruby
shime_ has quit [Client Quit]
relix has joined #ruby
schaary has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest11390
mando has quit [Read error: Connection reset by peer]
shime has quit [Quit: leaving]
<shevy> ayaz ok thanks
mando has joined #ruby
<shevy> Reach in ruby every method accepts one block, optionally
Guest11390 is now known as banghouse
<shevy> and with yield, you simply access the content of that block
<shevy> you dont have to use blocks btw, you could use ruby just like you use php
threesome has joined #ruby
nbrosnahan has joined #ruby
mando has quit [Read error: Connection reset by peer]
<shevy> def hello_php(i = '')
mando has joined #ruby
simplyaubs has joined #ruby
<shevy> puts 'PHP is so awesome! '+i
<shevy> end
bluOxigen has joined #ruby
dukz_ has quit [Ping timeout: 252 seconds]
mando_ has joined #ruby
browndawg has joined #ruby
kaspergrubbe has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
escobedo has quit [Remote host closed the connection]
berkes has joined #ruby
mando has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
julweber_ has quit [Remote host closed the connection]
Elhu has quit [Ping timeout: 240 seconds]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
aganov has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
dukz has joined #ruby
mando has joined #ruby
brtdv has joined #ruby
hiyosi has quit [Read error: Operation timed out]
brtdv has quit [Read error: Connection reset by peer]
alup has joined #ruby
mando has quit [Read error: Connection reset by peer]
Deciphered is now known as DecipheredAFK
jbpros has joined #ruby
mando has joined #ruby
katterstrophe has quit [Quit: Leaving...]
kaspergrubbe has quit [Remote host closed the connection]
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
hydrospell[w] has quit [Quit: WeeChat 0.3.9]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
kaspergr_ has joined #ruby
blaxter_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
gh has quit [Quit: .]
mando has joined #ruby
esselink has joined #ruby
jwang has joined #ruby
drumusician has joined #ruby
mando has quit [Read error: Connection reset by peer]
LexicalScope has quit [Read error: Connection reset by peer]
mando has joined #ruby
LexicalScope has joined #ruby
<shevy> test
Xeago has joined #ruby
mojjojo has joined #ruby
mando has quit [Read error: Connection reset by peer]
A124 has quit [Remote host closed the connection]
mando has joined #ruby
iamjarvo1 has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
zigomir has quit [Ping timeout: 272 seconds]
mando_ has joined #ruby
charliesome has joined #ruby
einarj has joined #ruby
Xeago has quit [Remote host closed the connection]
pwh has quit []
Xeago has joined #ruby
A124 has joined #ruby
mando__ has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
mando has quit [Ping timeout: 264 seconds]
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
shime has joined #ruby
ephemerian has joined #ruby
mando_ has joined #ruby
dangerousdave has joined #ruby
shime has quit [Client Quit]
mando__ has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
mikemac has joined #ruby
crazymykl has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
mando has quit [Ping timeout: 246 seconds]
klip has joined #ruby
pyrac has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
monkegjinni has joined #ruby
shime has joined #ruby
shime has quit [Client Quit]
<pyrac> Hi all. Could someone endorse me as a Mozillian so I can watch pcwalton's talk?
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
dukz has quit [Remote host closed the connection]
shime has joined #ruby
<pyrac> opus sorry wrong channel :(
gasbakid has joined #ruby
snoo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
snoo has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
havenwood has joined #ruby
Tarential has quit [Ping timeout: 245 seconds]
<shevy> hehe
julweber has joined #ruby
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
rhunter has joined #ruby
rcs has quit [Ping timeout: 272 seconds]
bmn has quit [Ping timeout: 272 seconds]
mando_ has joined #ruby
miah has quit [Ping timeout: 245 seconds]
Muz_ has joined #ruby
flagg0204 has quit [Ping timeout: 264 seconds]
Hamled has quit [Ping timeout: 245 seconds]
mando_ has quit [Read error: Connection reset by peer]
miah has joined #ruby
michael_mbp has joined #ruby
mando_ has joined #ruby
rcs has joined #ruby
shime has quit [Client Quit]
flagg0204 has joined #ruby
bmn has joined #ruby
Hamled has joined #ruby
Tarential has joined #ruby
hamakn has quit [Remote host closed the connection]
mando has quit [Ping timeout: 240 seconds]
mojjojo has quit [Quit: mojjojo]
Muz has quit [Quit: Host migration!]
Muz_ is now known as Muz
havenwood has quit [Ping timeout: 248 seconds]
mando has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
mojjojo has joined #ruby
rhunter has quit [Ping timeout: 245 seconds]
shime has joined #ruby
hamakn has joined #ruby
LexicalScope has quit [Ping timeout: 260 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
thecreators has quit [Quit: thecreators]
shime_ has joined #ruby
mando_ has quit [Ping timeout: 245 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mikepack has quit [Remote host closed the connection]
culturelabs has quit [Read error: Connection reset by peer]
shime__ has joined #ruby
julweber has quit [Ping timeout: 264 seconds]
shime_ has quit [Client Quit]
mojjojo has quit [Client Quit]
shime has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
jprovazn has joined #ruby
troessner has joined #ruby
olivier_bK has joined #ruby
nvrch has joined #ruby
mando has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
mando_ has joined #ruby
dnyy has quit [Quit: Connection closed for inactivity]
culturelabs has joined #ruby
andikr has joined #ruby
camilasan has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
razi has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
mando_ has joined #ruby
roolo has joined #ruby
mando has quit [Ping timeout: 264 seconds]
mojjojo has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
shime__ has quit [Ping timeout: 265 seconds]
lagweezle has quit [Ping timeout: 272 seconds]
shime has joined #ruby
funburn has joined #ruby
mojjojo has quit [Client Quit]
mando_ has joined #ruby
marr has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
DecipheredAFK is now known as Deciphered
mojjojo has joined #ruby
mando__ has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
Speed has joined #ruby
mando has quit [Ping timeout: 272 seconds]
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
lagweezle has joined #ruby
sparrovv has joined #ruby
jhaals has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
jhaals_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
Haegin_ is now known as Haegin
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
sergicles has quit [Quit: sergicles]
timonv has joined #ruby
shime has quit [Quit: leaving]
Deciphered is now known as DecipheredAFK
jhaals has quit [Ping timeout: 248 seconds]
kofno_ has joined #ruby
hiyosi has joined #ruby
obs has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
shime has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
kaspergrubbe has joined #ruby
nouitfvf has joined #ruby
mando has quit [Read error: Connection reset by peer]
shime has quit [Client Quit]
mando has joined #ruby
shime has joined #ruby
mando has quit [Read error: Connection reset by peer]
shime has quit [Client Quit]
mando has joined #ruby
kofno_ has quit [Ping timeout: 272 seconds]
shime has joined #ruby
shime has quit [Client Quit]
tedstriker has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
shime has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
funburn has quit [Quit: funburn]
shime has quit [Client Quit]
unRealElite has joined #ruby
justsee has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
crus has joined #ruby
mando_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
shime has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
shime has quit [Remote host closed the connection]
mando_ has joined #ruby
crus` has quit [Ping timeout: 246 seconds]
Jdubs has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mando has quit [Ping timeout: 260 seconds]
shime has joined #ruby
closures999 has quit [Remote host closed the connection]
shime_ has joined #ruby
shime__ has joined #ruby
shime___ has joined #ruby
shime____ has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
shime___1 has joined #ruby
mando has joined #ruby
shime____ has quit [Remote host closed the connection]
shime_ has quit [Remote host closed the connection]
shime__ has quit [Remote host closed the connection]
shime___1 has quit [Remote host closed the connection]
shime___ has quit [Remote host closed the connection]
shime has quit [Remote host closed the connection]
amoli has joined #ruby
shime has joined #ruby
harrymoreno has quit [Ping timeout: 260 seconds]
obs has quit [Remote host closed the connection]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
julweber has joined #ruby
harrymoreno has joined #ruby
Al_ has joined #ruby
funburn has joined #ruby
wildroman2 has joined #ruby
gasbakid has quit [Ping timeout: 252 seconds]
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 240 seconds]
zomgbie has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
shime_ has joined #ruby
gasbakid has joined #ruby
shime_ has quit [Client Quit]
mando has joined #ruby
aryaching has quit []
obs has joined #ruby
dukz has joined #ruby
<shevy> yeah
<shevy> corporate nation
shime has quit [Ping timeout: 272 seconds]
maloik_ is now known as maloik
aryaching has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
mando_ has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
mando has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
hogeo has joined #ruby
mojjojo has quit [Quit: mojjojo]
Soda has joined #ruby
brunops has quit [Quit: leaving]
mando has quit [Write error: Connection reset by peer]
cads has quit [Ping timeout: 272 seconds]
mando has joined #ruby
monkegjinni has joined #ruby
mikepack has joined #ruby
weeb1e has quit [Ping timeout: 246 seconds]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
obs has quit [Read error: Connection reset by peer]
weeb1e has joined #ruby
mojjojo has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mechro has joined #ruby
falood_ has quit []
mando_ has quit [Read error: Connection reset by peer]
harrymoreno has quit [Ping timeout: 246 seconds]
snoo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mando has joined #ruby
snoo has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
mando has quit [Read error: Connection reset by peer]
rdark has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
mando has joined #ruby
harrymoreno has joined #ruby
havenwood has joined #ruby
aagdbl has quit [Quit: Leaving.]
aagdbl has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
mando has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
obs has joined #ruby
mando_ has joined #ruby
jprovazn has quit [Quit: Odcházím]
harrymoreno is now known as morenoh149
havenwood has quit [Ping timeout: 252 seconds]
obs has quit [Remote host closed the connection]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
weeb1e has quit [Ping timeout: 240 seconds]
intuxicated has joined #ruby
funburn has quit [Quit: funburn]
raphaelivan has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
gr33n7007h has quit [Read error: No route to host]
obs has joined #ruby
mando has joined #ruby
weeb1e has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
amund_ has quit [Read error: Connection reset by peer]
dukz has quit [Ping timeout: 252 seconds]
amund_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
shaunbak_ has joined #ruby
mando has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
user258467 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
DecipheredAFK is now known as Deciphered
morenoh149 has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Remote host closed the connection]
<Hanmac> shevy: the best weapon i read in a fantasy book was the piecemaker ;P (and no thats not a typing error ;P )
unRealElite has quit [Quit: This computer has gone to sleep]
mando has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
mando has joined #ruby
user258467 has joined #ruby
moneydouble has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
adambeynon has joined #ruby
hogeo has quit [Remote host closed the connection]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
harrymoreno has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby
weeb1e has quit [Read error: Connection reset by peer]
mechro has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
harrymoreno is now known as morenoh149
shaunbaker has joined #ruby
Reach has quit [Remote host closed the connection]
hogeo has joined #ruby
xrosex has joined #ruby
nfk has joined #ruby
ghr has joined #ruby
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mando__ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has quit [Ping timeout: 260 seconds]
tvw has quit [Read error: Connection reset by peer]
mando has joined #ruby
xrosex has quit [Quit: Lost terminal]
klaut has joined #ruby
weeb1e has joined #ruby
Deciphered is now known as DecipheredAFK
mando_ has quit [Ping timeout: 246 seconds]
mando_ has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
mando_ has quit [Read error: Connection reset by peer]
<shevy> I am trying to learn R
mando_ has joined #ruby
dimas has joined #ruby
hogeo has quit [Remote host closed the connection]
<shevy> you can create vectors (arrays) like so: c( 1, 2, 3, 4)
<shevy> and now I have such an array 1 2 3 4
<shevy> exp(a)
<shevy> [1] 2.718282 7.389056 20.085537 54.598150
mando has quit [Ping timeout: 252 seconds]
<shevy> how would I get to these results in Ruby?
<shevy> nevermind
<shevy> Math.exp(1)
tylersmith has quit [Remote host closed the connection]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
nari has joined #ruby
<Hanmac> shevy check that out:
<Hanmac> >> [ 1, 2, 3, 4].map(&Math.method(:exp))
<eval-in> Hanmac => [2.718281828459045, 7.38905609893065, 20.085536923187668, 54.598150033144236] (https://eval.in/74084)
hogeo has joined #ruby
strax has quit [Quit: Connection closed for inactivity]
mando has quit [Read error: Connection reset by peer]
aryaching has quit []
morenoh149 has quit [Ping timeout: 248 seconds]
hiyosi has joined #ruby
mando has joined #ruby
Animawish has joined #ruby
sandeepk has joined #ruby
closures999 has joined #ruby
<shevy> I hate the & there so much
<matti> shevy: !
<shevy> matti how can I get rid of the & without having to use | ?
Alien-Elite has joined #ruby
<matti> What?
mando_ has joined #ruby
<matti> What is wront with to-proc?
<shevy> I see no to-proc
<shevy> only &
<matti> ?!
<Hanmac> shevy: my prob is there is no shorter way for .method(...) stuff
xp_prg has quit [Quit: This computer has gone to sleep]
lkba has quit [Ping timeout: 246 seconds]
<shevy> aaaah
<shevy> now I see
<shevy> >> [ 1, 2, 3, 4].map(&Math.exp())
<eval-in> shevy => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/74091)
timonv has joined #ruby
* matti hits shevy with a fish
<shevy> funny
<shevy> that's even more annoying :)
hiyosi has quit [Read error: Operation timed out]
mando_ has quit [Read error: Connection reset by peer]
mando__ has joined #ruby
<shevy> >> [1, 2, 3, 4].map{|_| Math.exp _}
<eval-in> shevy => [2.718281828459045, 7.38905609893065, 20.085536923187668, 54.598150033144236] (https://eval.in/74092)
<shevy> >> [1, 2, 3, 4].map &Math.method(:exp)
<eval-in> shevy => [2.718281828459045, 7.38905609893065, 20.085536923187668, 54.598150033144236] (https://eval.in/74093)
* matti hits shevy again with a fish
mando has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
<shevy> Hanmac your solution uses more chars
<shevy> oh wait
<shevy> >> [1, 2, 3, 4].map &Math.method :exp
<eval-in> shevy => /tmp/execpad-20d342094aa9/source-20d342094aa9:2: syntax error, unexpected tSYMBEG, expecting keyword_end ... (https://eval.in/74094)
<shevy> grrr
gr33n7007h has joined #ruby
mando has joined #ruby
<Hanmac> hm maybe its a little bit more chars but i think that ruby maybe can optimize it a bit better when i use the Method object instead of a block
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
nisstyre has quit [Quit: Leaving]
mando has quit [Read error: Connection reset by peer]
<zzak> hi
mando__ has quit [Ping timeout: 264 seconds]
dimas has quit [Quit: dimas]
<shevy> hi zzak
<shevy> are you from zak mckraken
harrymoreno has joined #ruby
lyanchih has quit [Ping timeout: 264 seconds]
mando has joined #ruby
<Hanmac> no he is the evil twin from tak ;P
mk_qi has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
harrymoreno is now known as morenoh149
Graves has joined #ruby
mando_ has joined #ruby
weeb1e has quit [Ping timeout: 240 seconds]
jonahR has quit [Quit: jonahR]
e-dard has joined #ruby
<e-dard> What's the best way to tell the minimum number of bits a floating value could be represented in?
<shevy> he is evil alright
mando__ has joined #ruby
<e-dard> Given the ranges 32 bits and 64 bits?
yacks has quit [Ping timeout: 272 seconds]
<e-dard> Basically I want to know if a floating value could be represented in 32 bits or not
<e-dard> This seems quite tricky with Ruby's type system
mando has quit [Ping timeout: 272 seconds]
mando has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
shaunbaker has quit [Remote host closed the connection]
N00D is now known as zz_N00D
morenoh149 has quit [Ping timeout: 246 seconds]
mando_ has quit [Ping timeout: 252 seconds]
shaunbaker has joined #ruby
yacks has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
Heskie has joined #ruby
<workmad3> e-dard: quick question... what are you going to store the value in while performing the check?
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
mando has quit [Read error: Connection reset by peer]
shaunbaker has quit [Ping timeout: 248 seconds]
<e-dard> workmad3: the value is stored in Float (64 bits)
mando has joined #ruby
harrymoreno has joined #ruby
<e-dard> workmad3: so the question is "could this value stored in this 64 bit type fit into a 32 bit container"?
<e-dard> Now, that's not to say we want to put it in one ;) we just want to know if it could be put in one
axilla has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
himsin has quit [Quit: himsin]
fedesilva has joined #ruby
tobago has joined #ruby
Hanmac1 has joined #ruby
jocke_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
mando has joined #ruby
jbpros has quit [Quit: jbpros]
monkegjinni has quit [Remote host closed the connection]
jbpros has joined #ruby
harrymoreno has quit [Ping timeout: 272 seconds]
jbpros has quit [Client Quit]
<e-dard> any ideas anyone?
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
jbpros has joined #ruby
mando_ has joined #ruby
yoniPacheko has joined #ruby
dekz has quit [Quit: Connection closed for inactivity]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
mando has quit [Ping timeout: 272 seconds]
mando has joined #ruby
dimas has joined #ruby
Hanmac1 is now known as Hanmac
yoniPacheko has quit [Remote host closed the connection]
havenwood has joined #ruby
snoo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
harrymoreno has joined #ruby
mando__ has joined #ruby
Lewix has quit [Remote host closed the connection]
eka has joined #ruby
mando_ has quit [Ping timeout: 272 seconds]
mando___ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
<aagdbl> e-dard: what you need to do is store the number is a single precision float, assign it back to a double and compare the two values
mando has quit [Ping timeout: 252 seconds]
mando___ has quit [Read error: Connection reset by peer]
<e-dard> aagdbl: what is the single precision float in RUbuy?
<aagdbl> unfortunately ruby only gives you access to the double precision floats of teh native platform
javax has joined #ruby
mando has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
<aagdbl> in ruby, Float corresponds to the double in C
<e-dard> aagdbl: so then that's not possible :p
<aagdbl> there is no equivalent to the C float
<e-dard> we have unfortunately settled on just comparing to 3.40282346638528859811704183484516925440e+38 :(
<e-dard> i.e., 2**127 * (2**24 - 1) / 2**23
<aagdbl> you could try the pack and unpack hack mentioned on the link above
DecipheredAFK is now known as Deciphered
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<aagdbl> what do you mean by comparing to the above?
<Hanmac> aagdbl: you can look at BigDecimal ... maybe its better for you?
mando has quit [Read error: Connection reset by peer]
<aagdbl> do you only want to check for the range or also for the precision?
nisstyre has joined #ruby
blaxter_ is now known as blaxter
mando has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> any idea why data is highlighted in erb?
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aagdbl> e-dard: whats your use case? Why do you want to check whether a number will fit in 32 bits FP format?
mando_ has joined #ruby
atno__ has quit [Remote host closed the connection]
mando_ has quit [Read error: Connection reset by peer]
<e-dard> aagdbl: because we are storing a representation of some calculations using a Ruby web-service, and we want to validate it's acceptible
<e-dard> Before the JSON representation is sent to another Go web-service, which really does care about types ;)
mando_ has joined #ruby
atno has joined #ruby
dimas has quit [Quit: dimas]
<aagdbl> is it worth the effort to differentiate between float and double? Why not just put everything in a double?
mando has quit [Ping timeout: 245 seconds]
harrymoreno has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
includex has joined #ruby
mojjojo has quit [Quit: mojjojo]
jhaals_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pranny has quit [Quit: Leaving.]
mando_ has joined #ruby
<aagdbl> e-dard: another question to consider is what is the source of the number? does the source differentiate between float and double?
<e-dard> aagdbl: because a 64 bit float cannot be readily compared to a 32 bit float in a strict type system
<aagdbl> e-dard: what I'm saying is why not eliminate a 32 bit float altogether?
Deciphered is now known as DecipheredAFK
sepp2k has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<e-dard> aagdbl: it's hard to succinctly explain, but we have a data warehouse where we have 4 byte float columns
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
mojjojo has joined #ruby
mando has quit [Read error: Connection reset by peer]
ace_striker has joined #ruby
mando has joined #ruby
<aagdbl> e-dard: and the column type is not known to the ruby code?
mando has quit [Read error: Connection reset by peer]
gwb3 has joined #ruby
gwb3 has quit [Client Quit]
<e-dard> aagdbl: correct
mando has joined #ruby
<e-dard> The ruby service is really just the API to users.
<e-dard> It then passes on stuff to other services
atno has quit [Read error: No route to host]
mojjojo has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
jocke_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
atno has joined #ruby
mando has joined #ruby
<aagdbl> e-dard: but then you also have the inverse problem. just because a number can fit in a 32bit float doesnt mean that it should be a 32 bit float. maybe it actually came from a 64bit float column?
gwb3 has joined #ruby
gwb3 has quit [Client Quit]
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<e-dard> aagdbl: all numbers come from user input.
<e-dard> JSON API
<e-dard> so they all come in as strings and are marshalled into 64 bit Float
<aagdbl> i get that. but you are trying to guess the correct type based on the value
camilasan has quit [Remote host closed the connection]
<e-dard> no, the *minimum* type
mando has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
falood has joined #ruby
camilasan has joined #ruby
<e-dard> aagdbl: I think we'll stick to the constants comparison. Thanks for your thoughts. I appreciate it!
<aagdbl> ok. i presume there is a reason for choosing the minimum type
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<e-dard> aagdbl: yup :)
hiyosi has joined #ruby
jprovazn has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
count has joined #ruby
<count> is it just me, or is https://rubyforge.org/ down? 'RubyForge Could Not Connect to Database: '
mando has quit [Read error: Connection reset by peer]
pranny has joined #ruby
jprovazn has quit [Client Quit]
mando has joined #ruby
<aagdbl> e-dard: just a final thing - your method will only determine 'minimum' for the range, not the precision
<e-dard> right. yeah
sandeepk has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 260 seconds]
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
closures999 has quit [Remote host closed the connection]
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
popl has quit [Ping timeout: 248 seconds]
newbiehacker has joined #ruby
jbpros has quit [Quit: jbpros]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
tjad_ has joined #ruby
newbiehacker has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
zerign has quit [Quit: Leaving]
dhruvasagar has quit [Quit: Lost terminal]
tjad has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
F1skr has joined #ruby
mando__ has joined #ruby
sergicles has joined #ruby
mojjojo has quit [Quit: mojjojo]
mando__ has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
mando__ has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
mojjojo has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mando__ has quit [Read error: Connection reset by peer]
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
mando has joined #ruby
Graves has quit [Ping timeout: 250 seconds]
prahal has joined #ruby
mando has quit [Read error: Connection reset by peer]
justsee has quit [Quit: leaving]
nisstyre has quit [Ping timeout: 260 seconds]
mando has joined #ruby
Alien-Elite has quit [Quit: Leaving]
funburn has quit [Quit: funburn]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
shaunbaker has joined #ruby
gwb3 has joined #ruby
mando has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
mando has joined #ruby
dimas has joined #ruby
mando has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
mando has joined #ruby
mikestok has joined #ruby
gwb3 has quit [Client Quit]
jbpros has joined #ruby
hogeo has quit [Remote host closed the connection]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<shevy> dont be so dumb
mando has quit [Read error: Connection reset by peer]
<shevy> there are basically only two sections where one can report to
pen has quit [Remote host closed the connection]
mando has joined #ruby
mojjojo has joined #ruby
<shevy> when it is a bug, you can click on bugs, if you are about to suggest a new feature or change existing behaviour, you can click on "Feature"
AlienElite has joined #ruby
pen has joined #ruby
ace_striker has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
mando__ has joined #ruby
matheuscaceres has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
mando has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
DecipheredAFK is now known as Deciphered
falood has quit [Remote host closed the connection]
rDNix has quit [Ping timeout: 248 seconds]
ace_striker has quit [Ping timeout: 250 seconds]
ace_striker has joined #ruby
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
gwb3 has joined #ruby
<zzak> sorry shit
<zzak> lol
<zzak> prahal: sorry
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
<zzak> we're moving wiki pages to trunk
ace_striker_ has joined #ruby
<Hanmac> "trunken master" style ;D
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
<shevy> that's some green colour
A124 has quit [Ping timeout: 272 seconds]
mando has quit [Read error: Connection reset by peer]
mando__ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Deciphered is now known as DecipheredAFK
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mojjojo has joined #ruby
AlienElite has quit [Quit: Leaving]
zipper has quit [Ping timeout: 246 seconds]
<zzak> lol
shaunbaker has quit [Read error: Connection reset by peer]
<matti> Ohai zzak
<zzak> maybe we should do a redirect for old users :(
mando has quit [Read error: Connection reset by peer]
<zzak> :(((((
mando has joined #ruby
mojjojo has quit [Client Quit]
shaunbaker has joined #ruby
<Hanmac> did someone use rb_enc* functions from the C api? i need to find the function that returns the Encoding VALUE object from a const char* name
zipper has joined #ruby
rDNix has joined #ruby
Mattias has quit [Ping timeout: 245 seconds]
<zzak> Hanmac: you want to know the encoding for a given string?
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<Hanmac> zzak: no i build a wrapper, then i have something like that: wxFONTENCODING_UTF8 which i will wrap to "UTF-8" and then i want #<Encoding:UTF-8> ... but i am looking for the C interface method
tharindu has joined #ruby
wildroman2 has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
Alina-malina has quit [Quit: Leaving]
<Hanmac> matti i dont need to detect the encoding ;P i only want to convert into the currect ruby object
Mattias has joined #ruby
mojjojo has joined #ruby
Alina-malina has joined #ruby
<matti> Hanmac: Look at the bloody source
<matti> ;p
zipper has quit [Ping timeout: 240 seconds]
<matti> You may get some insight ;p
mando__ has joined #ruby
snoo has joined #ruby
<matti> Actually. It does not seem that useful ;s
<matti> Bah.
zipper has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
mando__ has quit [Read error: Connection reset by peer]
sayan has quit [Ping timeout: 265 seconds]
mando__ has joined #ruby
dimas has quit [Quit: dimas]
<prahal> zzak: thanks bug reported as https://bugs.ruby-lang.org/issues/9172
wald0 has joined #ruby
shaunbak_ has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
mando has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
mando has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
shaunbak_ has quit [Read error: Connection reset by peer]
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Read error: Connection reset by peer]
Leighton has quit [Quit: leaving]
zipper has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
vlad_starkov has joined #ruby
zipper has joined #ruby
shaunbaker has quit [Remote host closed the connection]
realDAB has joined #ruby
mando has joined #ruby
pranny has quit [Quit: Leaving.]
<platzhirsch> Any suggestions for naming convention of entity sequences in FactoryGirl
<zzak> prahal: lol :(
<platzhirsch> I only find sequence examples for built-in types
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
fgo has joined #ruby
mando__ has quit [Ping timeout: 272 seconds]
mando has quit [Read error: Connection reset by peer]
zipper has quit [Ping timeout: 248 seconds]
mando has joined #ruby
realDAB has quit [Client Quit]
rDNix has quit [Read error: Connection timed out]
zipper has joined #ruby
mando has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
mando has joined #ruby
shime has joined #ruby
tharindu has quit [Quit: Leaving...]
mando__ has joined #ruby
zenon has joined #ruby
closures999 has joined #ruby
zenon has quit [Client Quit]
mando__ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
mando has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
realDAB has joined #ruby
andikr has quit [Ping timeout: 272 seconds]
mando has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
<shevy> platzhirsch prefix with titties_
mando has quit [Read error: Connection reset by peer]
<platzhirsch> shevy: sounds reasonable, thanks
<shevy> hehe
mando has joined #ruby
<shevy> I just can't stand the name FactoryGirl
<zzak> shevy: please dont
shime has quit [Ping timeout: 265 seconds]
kitak_ has joined #ruby
mando__ has joined #ruby
browndawg has quit [Quit: Leaving.]
rainbyte has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
zomgbie has left #ruby [#ruby]
<platzhirsch> it's based on the film?
mando__ has joined #ruby
<Hanmac> platzhirsch: no its based on the book which is based on the film ;P
<platzhirsch> no it's based on the short-story, which is based on the book which is based on the film
mando has quit [Ping timeout: 252 seconds]
Vivekananda has quit [Read error: Connection reset by peer]
closures999 has quit [Remote host closed the connection]
mando has joined #ruby
Alina-malina has quit [Ping timeout: 272 seconds]
<platzhirsch> I hope no one is googling that now, because in case of doubt it was a blatant lie
osvico has joined #ruby
<Hanmac> its so crazy it only can be true ;P
mando__ has quit [Read error: Connection reset by peer]
<shevy> I googled
<shevy> apparently there is a song called "Factory Girl"
<platzhirsch> shevy: yeah, well you know the author of the short-story...
Mon_Ouie has joined #ruby
<platzhirsch> gaha
<Hanmac> platzhirsch: the same reaction about "based on ..." did i had when first watched the music video "of Monsters and Men" ... it looked SO awesome that i got angry that its not an 15+h movie ;P
<Hanmac> 1.5+
<platzhirsch> we just love recursion
<platzhirsch> Hanmac: but there sure are indie games which have the look and feel of their videos ^^
<Hanmac> platzhirsch: do you know why i dont like "self-reflection" ? each time i try it i get a StackError
mando__ has joined #ruby
<platzhirsch> ?
<platzhirsch> ah
mando has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby
Alina-malina has joined #ruby
mando has joined #ruby
<platzhirsch> ^^
mando__ has quit [Read error: Connection reset by peer]
<Hanmac> platzhirsch: @ indie games, did i show you the intro to "little inferno" ?
<platzhirsch> nope
sandeepk has joined #ruby
realDAB has quit [Quit: realDAB]
<shevy> omg
ciampix has joined #ruby
<Hanmac> platzhirsch: that is an interesting indie game: http://www.youtube.com/watch?v=-0TniR3Ghxc
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<Hanmac> the first time i play it was 2 years ago in the winter when it was -20°C outside
mando__ has joined #ruby
hiall has joined #ruby
jhaals has joined #ruby
<platzhirsch> that's fitting :D
<shevy> it's getting at about that temperature soon enough
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
mando__ has quit [Read error: Connection reset by peer]
<shevy> central vienna 3.0°C, vienna border area 1.5°C
<shevy> I need to move to tropical areas :(
mando__ has joined #ruby
DecipheredAFK is now known as Deciphered
mikestok has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has quit [Ping timeout: 260 seconds]
<Hanmac> platzhirsch: i also recoment the game because the sorry is SO much deep ... (you may get tears about it)
mando has joined #ruby
<platzhirsch> that's the only reason I consider playing games, go for the story like in a book, TV Show, etc.
wildroman2 has quit [Remote host closed the connection]
<Hanmac> PS: the Sound/music of the game is also coool ... but i dont give them to you because the Ost would spoiler
nomenkun has joined #ruby
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando__ has quit [Read error: Connection reset by peer]
braincra- has joined #ruby
mando has joined #ruby
zipper has quit [Remote host closed the connection]
zipper has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 272 seconds]
wildroman2 has joined #ruby
mando__ has joined #ruby
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
Deciphered is now known as DecipheredAFK
mando__ has quit [Read error: Connection reset by peer]
pleal has joined #ruby
hamakn has quit [Remote host closed the connection]
mando__ has joined #ruby
zipper has quit [Ping timeout: 248 seconds]
braincra- has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
zipper has joined #ruby
mando has quit [Ping timeout: 264 seconds]
camilasan has quit [Remote host closed the connection]
Xeago_ has joined #ruby
mando has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
Xeago has quit [Read error: Operation timed out]
havenwood has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
Xeago_ has quit [Remote host closed the connection]
berkes has quit [Ping timeout: 272 seconds]
mando__ has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
tobago has quit [Remote host closed the connection]
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
mando__ has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 260 seconds]
mando has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
codenapper has quit [Ping timeout: 246 seconds]
mando has quit [Read error: Connection reset by peer]
raphaelivan has quit [Quit: Leaving.]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
GoodTimes has joined #ruby
mando has joined #ruby
blaxter has quit [Quit: foo]
mando__ has joined #ruby
mojjojo has quit [Quit: mojjojo]
pen has quit []
mando___ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
pen has joined #ruby
sayan has joined #ruby
mando has quit [Ping timeout: 264 seconds]
mando___ has quit [Read error: Connection reset by peer]
mando has joined #ruby
hiyosi has joined #ruby
e-dard has left #ruby [#ruby]
mengu has quit [Remote host closed the connection]
felixjet has quit [Read error: Connection reset by peer]
felixjet has joined #ruby
mando__ has joined #ruby
<GoodTimes> I am launching my first app on heroku. How do i setup an e-mail? Do i do that on my name registrar? I would like to use gmails interface
mengu has joined #ruby
mando___ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has quit [Ping timeout: 260 seconds]
mando has joined #ruby
mando___ has quit [Read error: Connection reset by peer]
<_br_> GoodTimes: You might want to check with people in #heroku
lebek has joined #ruby
pranny has joined #ruby
<GoodTimes> Thanks!
pranny has quit [Client Quit]
mando__ has joined #ruby
berkes has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
braincra- has joined #ruby
mando has quit [Ping timeout: 252 seconds]
mikestok has joined #ruby
ace_striker_ has quit [Ping timeout: 250 seconds]
mando_ has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 252 seconds]
mando has joined #ruby
elux has joined #ruby
mando has quit [Read error: Connection reset by peer]
timonv has quit [Read error: Connection reset by peer]
mando has joined #ruby
timonv has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
adkron has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
shredding has joined #ruby
AlienElite has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
sparrovv_ has joined #ruby
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
sparrovv has quit [Ping timeout: 264 seconds]
sparrovv_ is now known as sparrovv
DecipheredAFK is now known as Deciphered
rjhunter has quit [Ping timeout: 264 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
aagdbl has quit [Ping timeout: 272 seconds]
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mikestok has quit [Quit: Computer has gone to sleep.]
mando_ has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
stringoO has joined #ruby
mikestok has joined #ruby
mando has joined #ruby
sergicles has quit [Quit: sergicles]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
emr has joined #ruby
<emr> Hello, trying to install pg with gem however i'm getting Can't find the PostgreSQL client library (libpq) (on macos)
AlienElite has quit [Ping timeout: 248 seconds]
mando_ has joined #ruby
platzhirsch has quit [Ping timeout: 248 seconds]
decoponio has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
Deciphered is now known as DecipheredAFK
mando_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
count has left #ruby ["WeeChat 0.3.8"]
count has joined #ruby
count has left #ruby ["WeeChat 0.3.8"]
mando has quit [Ping timeout: 260 seconds]
zomgbie has joined #ruby
zomgbie has quit [Client Quit]
zomgbie has joined #ruby
shime has joined #ruby
mando has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
zomgbie has left #ruby [#ruby]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
mando has quit [Read error: Connection reset by peer]
Jrz has joined #ruby
emr has quit [Ping timeout: 250 seconds]
Jrz has quit [Max SendQ exceeded]
mando has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
mando has quit [Read error: Connection reset by peer]
fedesilva has quit [Remote host closed the connection]
marwinism has joined #ruby
mando has joined #ruby
ffranz has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
jb41 has joined #ruby
<jb41> hi there, is it possible to override include? method?
sergicles has joined #ruby
<Hanmac> jb41 yes, but why do you want to do that?
chillibite has joined #ruby
yeboot has quit [Ping timeout: 264 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
havenwood has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jb41> I've array of object, and I want to add another object to that Array if there isn't such object. Object are the same if 2 of 3 od their values are the same
<chillibite> what os do most ruby developers use?
blaxter_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<Hanmac> jb41 you want Set with modified eql? and hash methods ?
duggiefresh has joined #ruby
mando has joined #ruby
RaCx has joined #ruby
dhruvasagar has joined #ruby
<jb41> hmm, modyfing eql will do the thing
<Xeago> which ruby version fixed the rubygems ssl certificate thing (by pinning it)?
<diegoviola> chillibite: linux
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 272 seconds]
<Hanmac> jb41: PS: you also need to modify the #hash method to get it working if you want to use Set (i would recomend that)
mando__ has quit [Read error: Connection reset by peer]
<chillibite> diegoviola: that's what i had assumed, just checking, thanks
mando has joined #ruby
liamkeil1 has joined #ruby
jarr0dsz has joined #ruby
<diegoviola> chillibite: some other people use osx i think
<jarr0dsz> hi everyone, im trying to get ruby 2.0 latest stable to compile but it fails with No source for ruby-2.0.0-p353 provided with debugger-ruby_core_source gem.
mando has quit [Read error: Connection reset by peer]
<jarr0dsz> as i assume from the docs since my2.0 is not the stable but the latest version there are no headers for it?
mando has joined #ruby
<jarr0dsz> i mean one should point to the headers themsefl, only i do not want to enable debugging at all, i just want the latest ruby 353 to run without this problem, is there a way to disable this debugging?
St_Marx has joined #ruby
<diegoviola> chillibite: personally, i'm on archlinux, i've installed ruby 2.0.0 and rubinius 2.2.1 via chruby/ruby-install, i use vim with git to edit/manage my code, everything works like a dream :)
mojjojo has joined #ruby
browndawg has joined #ruby
ravster has joined #ruby
mando has quit [Read error: Connection reset by peer]
<jarr0dsz> aargh my version is the latest stable version, then why does it not compile :( really lost on this
mando has joined #ruby
<olivier_bK> i have two script in ruby one for instance and another one for mysql i need to pass a variable @uid in mysql for backup the data
<olivier_bK> how i can do that
asobrasil has joined #ruby
mando has quit [Read error: Connection reset by peer]
<dagobah> I want to find all permutations of 11 digit numbers (0-9 for each digit), how can I do this? ... [*0..9].permutation(11) doesn't work.
Squarepy has quit [Quit: Leaving]
mando has joined #ruby
<Hanmac> dagobah: repeated_permutation
<dagobah> Aha!
<workmad3> dagobah: err... all permutations of 11 digit numbers is (0..100000000000)
AlSquire has joined #ruby
<dagobah> workmad3: Is it!?
_Andres has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<workmad3> dagobah: well, all permutations (with leading 0s removed) of 11digit strings containing 0-9 == all numbers < 100000000000
joonty_ has joined #ruby
RaCx_ has joined #ruby
<workmad3> dagobah: so if you want the leading 0s, you just need to pad them out :P
banghouse has quit [Remote host closed the connection]
<dagobah> Interesting.
<jb41> Hanmac: what you mean by Set?
<dagobah> Is there an efficient way to iterate over (0..100000000000) ?
mando has joined #ruby
<workmad3> dagobah: sure... .each
<jb41> Hanmac: it's working, when I override == method
mando_ has quit [Read error: Connection reset by peer]
RaCx has quit [Ping timeout: 246 seconds]
RaCx_ is now known as RaCx
DouweM has joined #ruby
realDAB has joined #ruby
<dagobah> [*0..9].repeated_permutation(11).each == (0..100000000000).each ?
<jarr0dsz> what is needed to fix No source for ruby-2.0.0-p353 provided with debugger-ruby_core_source gem. ? really cannot find anything on this
soba has quit [Ping timeout: 241 seconds]
joonty has quit [Ping timeout: 252 seconds]
Lennier has joined #ruby
<workmad3> dagobah: the question is... what do you want this for?
<jb41> Hanmac: I think that I don't need it. I'm using simple array only
<Lennier> hi guys
<workmad3> dagobah: why do you need all numbers < 1 trillion?
<Hanmac> jb41 with Set you dont need to check for include? it does it automaticly for you
mando_ has joined #ruby
jbpros has quit [Ping timeout: 240 seconds]
<Lennier> i have a simple code and can't figure out why ruby complains about "undefined method each" http://pastebin.mozilla.org/3685178
esselink has quit [Remote host closed the connection]
<dagobah> workmad3: To find the list of possible 11 digit numbers that don't contain some known digits.
jbpros has joined #ruby
<workmad3> dagobah: that's gonna take you quite a long time to work out brute-forcing
sandeepk has quit [Quit: Leaving...]
mando__ has joined #ruby
<workmad3> dagobah: there's 1 trillion numbers in that range after all :P
includex has quit [Read error: Connection reset by peer]
<dagobah> workmad3: Is it computable in realistic time? :p
chillibite has quit [Ping timeout: 250 seconds]
<workmad3> dagobah: what do you count as realistic?
mojjojo has quit [Quit: mojjojo]
includex has joined #ruby
<dagobah> workmad3: < 30 seconds or so
<workmad3> dagobah: doubt it
duggiefresh has quit [Remote host closed the connection]
mando has quit [Ping timeout: 260 seconds]
<dagobah> Interesting, and there's no way of knowing how long it'll take :)
btanaka has joined #ruby
<Hanmac> Lennier: how do you iterate a string? per line, per char, per byte, per codepoint ?
<workmad3> dagobah: you can calculate it somewhat I suspect
mando has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
mando_ has quit [Ping timeout: 245 seconds]
<Lennier> hanmac: context.text is an array with strings
fedesilva has joined #ruby
<Lennier> context.text.each should put all the strings
<Lennier> context.text.each do |line|
<Lennier> puts('<p>#{line}</p>')
<workmad3> dagobah: but just printing out the entire range means that you're pushing about a terrabyte over the output buffer... 1 trillion 11 byte strings
<Lennier> end
mando has quit [Read error: Connection reset by peer]
<Hanmac> Lennier: what about line 20 ?
<dagobah> workmad3: Ouch!
<Lennier> ah, i see
mando has joined #ruby
<Lennier> yes, line 19-21 should be ignored
mando__ has quit [Ping timeout: 246 seconds]
<Hanmac> Lennier: look at line 7
<Lennier> it was an attempt to implement an each method by myself
<Lennier> oh, i see
mando has quit [Read error: Connection reset by peer]
<Lennier> hanmac, you mean that text is empty, right?
<workmad3> dagobah: also, consider that a 4ghz machine can do at best 4 billion operations in a second... so that would mean that even if your calculation was a single operation, you'd be looking at 250s for going over the entire list... 1 trillion is not a small range :P
mando has joined #ruby
adkron has quit [Ping timeout: 260 seconds]
imyerrow has joined #ruby
<Hanmac> Lennier: yeah currently you do not set the text attribute ... or better you set your attribute explicit of the previous value (nil)
<Lennier> ok, let me check
<Lennier> yes, i see
<Lennier> text should be an array of strings, of course
<Lennier> ok, htank you very much, hanmac!
endash has joined #ruby
<dagobah> workmad3: I'll have a rethink. Say if I knew the number doesn't contain for example 3,6 and 8, that should bring it down quite a bit?
timonv has quit [Read error: Connection reset by peer]
<workmad3> at a guess, it would remove about 30% of the numbers
mando_ has joined #ruby
myappleguy has joined #ruby
<dagobah> workmad3: ([*0..9]-[3,7,8]).repeated_permutation(11).size #=> 1977326743
timonv has joined #ruby
guinness] has joined #ruby
<Hanmac> dagobah:
<Hanmac> >> ([*0..9]-[3,7,8]).repeated_permutation(11).size / [*0..9].repeated_permutation(11).size.to_f * 100
<eval-in> Hanmac => 1.977326743 (https://eval.in/74136)
<Hanmac> without 3,7,8 you get only 2% ;P
mando_ has quit [Read error: Connection reset by peer]
<dagobah> Ha!
mando_ has joined #ruby
<workmad3> ok, that removes more than I thought :)
<olivier_bK> i dont understand why i cant pass a variable in my other script ?
<Lennier> hanmac, the correct version: http://pastebin.mozilla.org/3685225
mando has quit [Ping timeout: 264 seconds]
<workmad3> dagobah: ok, with that list, you're only looking at a 20gb list of strings :P
<Lennier> thanks again, it works noe
<Lennier> now
<dagobah> workmad3: still lots but do-able, maybe!
mando has joined #ruby
<workmad3> dagobah: I'm still curious as to what this is for
RaCx has quit [Quit: Computer has gone to sleep.]
<Hanmac> olivier_bK: you forgot to call "super"
<workmad3> dagobah: it makes me think you're looking for phone numbers or something
<dagobah> workmad3: Correct.
<olivier_bK> super ?
<workmad3> dagobah: for what use?
<workmad3> dagobah: also, probably 99% of those generated numbers will be non-existant
sheap has quit [Ping timeout: 245 seconds]
mando__ has joined #ruby
<dagobah> workmad3: All phone numbers except those containing some digits. To run a "magic number" algorithm on.
<olivier_bK> Hanmac, what is super
fedesilva has quit [Remote host closed the connection]
marr has quit [Ping timeout: 245 seconds]
<dagobah> workmad3: i.e numbers that sell well.
<Hanmac> olivier_bK: BackupMysql#initialize does overwrite DeleteInstance#initialize you need to call super if you want to call the parent class
jlebrech has joined #ruby
mando_ has quit [Ping timeout: 252 seconds]
<workmad3> dagobah: ok... well first thing I'd note is that while a full phone number is 11 digits, generally only 6 digits of that is 'free'
highbass has quit [Quit: Lost terminal]
mando__ has quit [Read error: Connection reset by peer]
<workmad3> dagobah: the first 5 are generally fixed by county, network, etc.
<Hanmac> olivier_bK: https://gist.github.com/anonymous/8830f914b576f96115de#file-backupmysql-rb-L11 and https://gist.github.com/anonymous/8830f914b576f96115de#file-backupmysql-rb-L8 are two total different variables ... read about instance variables and that classes are instances too
<workmad3> *country
zipper has quit [Quit: Lost terminal]
mando_ has joined #ruby
<dagobah> workmad3: agreed, that'll cut things down a bit. Second thing to note?
<Hanmac> dagobah: look aso for the "555-" phone numbers ;P
mando has quit [Ping timeout: 240 seconds]
DecipheredAFK is now known as Deciphered
<workmad3> dagobah: second thing is that brute-forcing this sort of thing is possibly the worst way to do it
<workmad3> dagobah: it would be better to have an algorithm that could generate a sequence of 'good' numbers
RaCx has joined #ruby
mando has joined #ruby
ananthakumaran has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
<dagobah> That sounds tricky.
<workmad3> dagobah: however, with just 6 numbers and no 3,7,8 then you're only looking at ~100000 numbers ;)
thesheff17 has quit [Read error: Operation timed out]
mando has quit [Read error: Connection reset by peer]
<workmad3> dagobah: and with that in mind, the final consideration is whether you can find a suitable 'magic number' that hasn't already been taken on your chosen network
mando has joined #ruby
AndreyLvov has joined #ruby
<workmad3> dagobah: it depends on what constitutes a magic number to you
<dagobah> workmad3: Yes that's the last step :)
mando_ has quit [Ping timeout: 260 seconds]
jbpros has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
<workmad3> dagobah: it seems quite a lot of effort and CPU cycles do go through in order to generate a number that people will look at once in order to put into their phones ;)
mando has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
rezzack has quit [Quit: Leaving.]
mando has quit [Read error: Connection reset by peer]
edwardly has quit [Ping timeout: 272 seconds]
mando has joined #ruby
marr has joined #ruby
ewnd9 has quit [Ping timeout: 246 seconds]
shaunbaker has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Read error: Operation timed out]
A124 has joined #ruby
Deciphered is now known as DecipheredAFK
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
guinness] has quit [Quit: leaving]
edwardly has joined #ruby
amund_ has quit [Read error: Operation timed out]
thesheff17 has joined #ruby
mojjojo has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<dagobah> workmad3: This is my current "magic number" method :P read it and weep. https://gist.github.com/kotay/4ebfaf4fdee3bcbf12a1/raw/6af9fb2dc3676333b820bb413fa087b5bfcb016a/magic_number.rb
jbpros has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Mapley is now known as Maplez
Maplez is now known as Mapley
synergy has joined #ruby
AlienElite has joined #ruby
wildroman2 has joined #ruby
mando has quit [Read error: Connection reset by peer]
SL-RHanson has quit [Quit: Leaving]
schaary has quit [Quit: I sleep ZZZzzz…]
mando has joined #ruby
noop has quit [Ping timeout: 248 seconds]
canderson has joined #ruby
SeySayux has quit [Ping timeout: 246 seconds]
mando has quit [Read error: Connection reset by peer]
<Hanmac> dagobah: you meybe interested in this:
<Hanmac> >> "Last %d digits increasing" % ("901234".each_char.reverse_each.each_cons(2).count {|y,x| y > x} + 1)
<eval-in> Hanmac => "Last 5 digits increasing" (https://eval.in/74137)
ace_striker has joined #ruby
mando has joined #ruby
<dagobah> Hanmac: What does that do :) ?
SeySayux has joined #ruby
kaspergrubbe has joined #ruby
tvw has joined #ruby
mr_red has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<dagobah> Oh wow, I see.
<Hanmac> hm i need to improv it:
<Hanmac> >> "Last %d digits increasing" % ("901234".each_char.reverse_each.each_cons(2).count {|y,x| y.to_i == x.to_i + 1} + 1)
<eval-in> Hanmac => "Last 5 digits increasing" (https://eval.in/74139)
Animawish has quit [Quit: Animawish]
<dagobah> Detects incremental numbers :)
<Hanmac> >> "Last %d digits decreasing" % ("698765".each_char.reverse_each.each_cons(2).count {|y,x| y.to_i == x.to_i - 1} + 1)
<Hanmac> >> "Last %d digits decreasing" % ("698765".each_char.reverse_each.each_cons(2).count {|y,x| y.to_i == x.to_i - 1} + 1)
<eval-in> Hanmac => "Last 5 digits decreasing" (https://eval.in/74140)
marr has quit [Ping timeout: 246 seconds]
mando has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
spider-mario has joined #ruby
<dagobah> Can you use each_cons to get the previous item in an enumerator?
mando has quit [Read error: Connection reset by peer]
<Hanmac> dagobah: i dont think so, thats why i used reverse_each to "reverse to polarity" ;P
kaspergrubbe has quit [Ping timeout: 246 seconds]
mando has joined #ruby
kaspergrubbe has joined #ruby
edwardly has quit [Ping timeout: 252 seconds]
mando has quit [Read error: Connection reset by peer]
blaxter_ is now known as blaxter
mando has joined #ruby
closures999 has joined #ruby
edwardly has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
cek has joined #ruby
<cek> how do I dup a FD in ruby?
<Hanmac> cek with #dup?
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<cek> or, rather, how do I dup an FD, then close original FD so that I still can write to duplicated FD
sailias has joined #ruby
<olivier_bK> i read some doc in internet but after modification on my script i dont know why that doesn't work https://gist.github.com/anonymous/014b4cae56dd98fddb39
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
jedimind has joined #ruby
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando has quit [Read error: Connection reset by peer]
<dagobah> Hanmac: Could you do something like "698765".each_char.to_a.unshift(0).each_cons(2).count { |last_value, v| ... ?
<Hanmac> dagobah: other helper:
<Hanmac> >> "Last %d digits identical" % ("906666".each_char.reverse_each.each_cons(2).count {|y,x| y == x} + 1)
<eval-in> Hanmac => "Last 4 digits identical" (https://eval.in/74144)
<dagobah> Mind blowing :)
mando has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
<Hanmac> dagobah: if you want the last value, i prefer that you use reverse each ...
mando_ has joined #ruby
apeiros has joined #ruby
<Hanmac> cek yes, yes you can
<_br_> How can I make god check if eg. lynx http://localhost responds or times out? Can I execute a custom ruby script from god?
DaniG2k has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
<DaniG2k> guys I am trying to think what the best solution for this is: I have a variable called @tutors that includes a bunch of Tutor objects. Some of them have latitude and logitude fields, some don't
<DaniG2k> what's the quickest way to get the ones that do?
dhruvasagar has quit [Ping timeout: 252 seconds]
<hoelzro> DaniG2k: are the fields nil/not nil?
<hoelzro> if so, you can do @tutors.reject(&:nil?)
mando_ has quit [Read error: Connection reset by peer]
<DaniG2k> hoelzro: so for instance, if I do Tutor.pluck :latitude, :longitude
<DaniG2k> I get
<DaniG2k> => [[22.396428, 114.109497], [nil, nil], [nil, nil], [nil, nil], [nil, nil], [nil, nil], [nil, nil],
<DaniG2k> and so on
<DaniG2k> so most are nil right now
<Hanmac> >> @tutors.select(&:latitude)
<eval-in> Hanmac => private method `select' called for nil:NilClass (NoMethodError) ... (https://eval.in/74145)
mando has quit [Ping timeout: 272 seconds]
<DaniG2k> I want to get the ones with values
mando has joined #ruby
<hoelzro> oh, so this:
<hoelzro> @tutors.reject { |t| t.latitude.nil? || t.longitude.nil? }
<DaniG2k> ah cool
<DaniG2k> that seems to work
mando has quit [Read error: Connection reset by peer]
<cek> well, somehow, the program i'm spawning isn't receiving ctrl+c, instead, that signal is sent to ruby code
<DaniG2k> hoelzro: thanks
<hoelzro> cek: how are you spawning the program
<hoelzro> ?
<cek> Process.spawn
<hoelzro> Ruby is probably in the fg process group
<hoelzro> and the other is probably not
mando has joined #ruby
<DaniG2k> hoelzro: can I run an .each on that block after reject {} ?
<cek> I'm #wait ing for that process
<havenwood> DaniG2k: or to the same effect: delete_if { |pair| pair.any? &:nil? }
<hoelzro> DaniG2k: yes
<DaniG2k> sweet thanks
jamesaanderson has joined #ruby
<DaniG2k> hoelzro: thanks works flawlessly :)
<havenwood> oh, i missed the lat/long part
<hoelzro> cek: only the fg process group receives signals from the terminal
<havenwood> nvm me :P
<apeiros> havenwood: .include?(nil) is probably faster than .any?(&:nil)
<apeiros> technicality, though
<havenwood> apeiros: oh, of course!
<havenwood> and nicer
mando_ has joined #ruby
<hoelzro> cek: ^
mando has quit [Read error: Connection reset by peer]
<cek> ok, thanks
<havenwood> apeiros: i just got my morning coffee, apparently i'm not all there yet
ewnd9 has quit [Ping timeout: 245 seconds]
<havenwood> happy thanksgiving! \o/
<apeiros> havenwood: just got home from "work"
<apeiros> ("work" in quotes because I didn't really work today - internal education only :D)
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
fedesilva has joined #ruby
mando has joined #ruby
sayan has joined #ruby
imyerrow has left #ruby ["Leaving"]
timonv has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
mando_ has joined #ruby
h_kon has joined #ruby
snoo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Deejay has joined #ruby
<Deejay> Is it possible to tell the Rake RSpec task to look for spec files in a directory other than spec/?
phansch has joined #ruby
mando___ has joined #ruby
liamkeil1 has quit [Ping timeout: 252 seconds]
mando has quit [Ping timeout: 246 seconds]
mando___ has quit [Read error: Connection reset by peer]
tvw has quit []
mando has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
sr78ger has joined #ruby
h_kon has quit [Ping timeout: 265 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
timonv_ has joined #ruby
rippa has joined #ruby
mando has quit [Read error: Connection reset by peer]
niklasb has joined #ruby
mando has joined #ruby
Lennier has quit [Quit: Lennier]
Sami345 has quit [Ping timeout: 260 seconds]
VesQ has quit [Ping timeout: 246 seconds]
ambushsabre has joined #ruby
<cek> hoelzro, how do I "promote" spawned process to fg group?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hoelzro> using Process.spawn? I have no idea =/
DecipheredAFK is now known as Deciphered
<hoelzro> you have to tell it not to create a process group for the child in the first place
mando has quit [Read error: Connection reset by peer]
<cek> :pgroup => nil : don't change the process group (default)
mando has joined #ruby
<hoelzro> curious
<hoelzro> well
<hoelzro> if they're both in the fg group
<hoelzro> both will get the signal
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonathanwallace has quit [Ping timeout: 260 seconds]
<hoelzro> is that what you want to avoid?
mando_ has joined #ruby
Deejay has quit [Quit: Textual IRC Client: www.textualapp.com]
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mando has quit [Ping timeout: 246 seconds]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
wallerdev has joined #ruby
akemrir has joined #ruby
larssmit has quit [Quit: Leaving.]
cads has joined #ruby
jarr0dsz has quit [Remote host closed the connection]
<DaniG2k> I'm trying to populate an instance variable with a bunch of fields
<DaniG2k> I'm trying with @tutors_gmaps = @tutors.reject {|t| t.latitude.nil? or t.longitude.nil?}.each {|t| [t.user.fullname, t.latitude, t.longitude] }
banghouse has joined #ruby
<DaniG2k> where tutors is basically Tutor.all
taion809 is now known as zzz_taion809
Deciphered is now known as DecipheredAFK
banghouse is now known as Guest53120
<DaniG2k> but this doesnt seem like it's populating the @tutors_gmaps instance variable with an array of arrays
sharms has quit [Quit: Leaving]
<DaniG2k> do I need to first declare @tutor_gmaps = Array.new
<canton7> DanBoy, s/each/map
<DaniG2k> and then do .each {|t| @tutors_gmaps << [t.user.fullname, t.latitude, t.longitude]}
<DaniG2k> ah
<DaniG2k> will give that a shot
<canton7> DaniG2k, your first example was fine, you just want #map instead of #each
<canton7> #each doesn't return anything
sharms has joined #ruby
sharms has quit [Changing host]
sharms has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
<DaniG2k> canton7: awesome, that works
<DaniG2k> thanks!
deneme has joined #ruby
<canton7> learn the difference between those two ;)
<pagios__> how can i pass a variable inside ` ` ? `/var/www/bladr myvar &> /tmp/err` does not work
<apeiros> DaniG2k: really, just use [], not Array.new
<canton7> DaniG2k, also, use '||' instead of 'or' (likewise '&&' and 'and')
tagrudev has quit [Remote host closed the connection]
<DaniG2k> canton7: why?
<canton7> pagios__, string interpolation: #{myvar}
myappleguy has quit [Ping timeout: 252 seconds]
<pagios__> thanks
<DaniG2k> canton7: why || I mean
<canton7> DaniG2k, they're not meant to be used that way - the precidence is slightly different
<canton7> DaniG2k, the intended usage is e.g. 'my_method() or die("error")'
<canton7> not 'if something or something_else'
jbpros has joined #ruby
<canton7> 'or' and 'and' are way down below the assignment operators in the precedence table, so 'a = b || c' and 'a = b or c' don't do the same thing
<canton7> and that *will* bite you at some point
sr78ger has quit [Quit: Qui]
akonny has joined #ruby
deneme has left #ruby [#ruby]
realDAB has quit [Quit: realDAB]
akonny has quit [Remote host closed the connection]
Sami345 has joined #ruby
akonny has joined #ruby
wallerdev has quit [Quit: wallerdev]
<DaniG2k> canton7: I see
fris has joined #ruby
<DaniG2k> canton7: I remember reading about this somewhere but....it never bit me in the ass so I never bothered caring too much
kofno_ has joined #ruby
<fris> any idea how to fix WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.1
sandeepk has joined #ruby
sandeepk has quit [Client Quit]
VesQ has joined #ruby
realDAB has joined #ruby
pwh has joined #ruby
Gonzih has joined #ruby
<Hanmac> fris: simply build it again or switch to newer nokogiri (newest nokogiri does ship xml lib itself)
realDAB has quit [Client Quit]
binaryplease has joined #ruby
amund_ has joined #ruby
julweber has quit [Remote host closed the connection]
petey has joined #ruby
lmmx has joined #ruby
jamesaanderson has joined #ruby
<fris> running 1.6.0 currently
F1skr has quit [Quit: WeeChat 0.4.2]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noyb has joined #ruby
myappleguy has joined #ruby
<Hanmac> fris: like i sayd try to reinstall it again
failshell has joined #ruby
AlSquirrel has joined #ruby
LexicalScope has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
tjad_ has quit [Ping timeout: 272 seconds]
Gonzih has quit [Read error: Connection reset by peer]
AlSquirikou has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
ambushsabre has joined #ruby
julweber has joined #ruby
Skylab has quit [Quit: Skylab]
myappleguy has quit [Ping timeout: 248 seconds]
<fris> still same error
mercwithamouth has quit [Ping timeout: 252 seconds]
telpochyaotl has joined #ruby
cascalheira has joined #ruby
julweber has quit [Remote host closed the connection]
polaco_zZz is now known as polaco
emanuele has joined #ruby
<telpochyaotl> Hi all, Is there any way I can make UnitTest load other tests (using require or other means) in a way that they are loaded in the order I want and not alphabetical?
bootcoder has quit [Quit: Konversation terminated!]
platzhirsch has joined #ruby
bootcoder has joined #ruby
<DouweM> telpochyaotl: why would you want that?
TMM has quit [Ping timeout: 246 seconds]
sayan has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
kofno_ has quit [Ping timeout: 246 seconds]
<telpochyaotl> DouweM: I'm really not doing unit testing, but functional testing and I need a certain order… I know you may say I should use a different tool. If that's the bottom of it, I'll do that then.
<Hanmac> telpochyaotl: look for startup
sayan has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
amoli has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
<olivier_bK> i need some help because i really dont understand why i cant pass my variable to BackupMysql.rb
<telpochyaotl> Hanmac: I guess you mean use the TestUnit startup method to setup whatever I need for my testcases and forget about running them in a certain order?
Gonzih has joined #ruby
<Hanmac> yeah
nhhagen_ has joined #ruby
wallerdev has joined #ruby
nhhagen has quit [Disconnected by services]
mercwithamouth has joined #ruby
nhhagen_ is now known as nhhagen
nhhagen_ has joined #ruby
<platzhirsch> My FactoryGirl has now become complex, I should unit test the unit test fixture...
adkron has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
katselphrime has joined #ruby
mojjojo has quit [Quit: mojjojo]
<lmmx> how do I use a local-variable as a part of a string?
jbpros has quit [Quit: jbpros]
<platzhirsch> lmmx: For instance with interpolation "like so with the variable #{x}"
<lmmx> e.g. for local variable called via, I want to set another variable using www = rows.xpath('\{#via}\a[1]')
<telpochyaotl> Hanmac: Thanks!
<canton7> >> myvar = "bar"; p "foo #{bar}"
<eval-in> canton7 => undefined local variable or method `bar' for main:Object (NameError) ... (https://eval.in/74159)
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> >> myvar = "bar"; p "foo #{myvar}"
<eval-in> canton7 => "foo bar" ... (https://eval.in/74160)
<canton7> even
<lmmx> ahh the # thanks platzhirsch
ambushsabre has joined #ruby
<lmmx> hmm I can't get it to work
ananthakumaran has joined #ruby
shredding has quit [Quit: shredding]
<lmmx> platzhirsch: www = rows.xpath('\#{via}\a[1]') ?
TMM has joined #ruby
<Hanmac> olivier_bK: "#{@base_dir}#{@conf_dir}" can be reduced to: "#@base_dir#@conf_dir" ;P
zimts has joined #ruby
zimts has left #ruby [#ruby]
jbpros has joined #ruby
mojjojo has joined #ruby
<olivier_bK> Hanmac, okai but where is my mistake in ruby inheritance ?
Skylab has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jbpros has quit [Client Quit]
nomenkun has quit [Read error: Operation timed out]
kiri has quit [Quit: Leaving]
jprovazn has joined #ruby
elux has quit [Quit: Bye!]
akemrir has quit [Quit: WeeChat 0.4.2]
mengu has quit []
marcgg_ has joined #ruby
<lmmx> anyone else know how I can get this xpath to work ? '\{#via}\a[1]'
<Hanmac> olivier_bK: https://gist.github.com/anonymous/c520ef5a61723b6d6512#file-backupmysql-rb-L11 you ask for the instance variable in this method, but it is not set yet because DeleteInstance#initialize does not set the instance variables
<Hanmac> lmmx wrong order again
<lmmx> oops Hanmac sorry I meant '\#{via}\a[1]'
<lmmx> still won't work
DecipheredAFK is now known as Deciphered
emanuele has quit [Read error: Connection reset by peer]
<lmmx> via contains double quotes so won't interfere with the single quotes on the xpath, i don't get it
emanuele has joined #ruby
snoo has joined #ruby
myappleguy has joined #ruby
adkron has quit [Ping timeout: 272 seconds]
marcgg has quit [Ping timeout: 252 seconds]
threesome has quit [Read error: Operation timed out]
pwh has quit []
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> lmmx a yah string interpolation like #{} does only work for "" not for ''
<lmmx> ahhhh lol right
mojjojo has quit [Quit: mojjojo]
<lmmx> bingo :-D thanks Hanmac
lmmx has quit [Quit: Page closed]
lebek has joined #ruby
adkron has joined #ruby
ahawkins has quit [Quit: leaving]
pedda has joined #ruby
myappleguy has quit [Ping timeout: 246 seconds]
ace_striker has quit [Ping timeout: 250 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
sepp2k has quit [Quit: Konversation terminated!]
zipper has joined #ruby
wallerdev has quit [Quit: wallerdev]
s2013 has joined #ruby
Deciphered is now known as DecipheredAFK
binaryplease has quit [Ping timeout: 252 seconds]
jprovazn has quit [Quit: Odcházím]
schaary has joined #ruby
alup has quit [Quit: Leaving]
gtsiftsis has quit [Remote host closed the connection]
s2013 has quit [Quit: Leaving]
Guest53120 has quit [Remote host closed the connection]
s2013 has joined #ruby
antonio___ has joined #ruby
dhruvasagar has joined #ruby
Lewix has joined #ruby
heidi has joined #ruby
zimtss has joined #ruby
shime has quit [Quit: leaving]
<fris> Hanmac i deleted the vendor bundle dir and reinstalled the bundle works now
<olivier_bK> Hanmac, i need to add attr_accessor :uid_instance in DeleteInstance.rb
fris has left #ruby ["Textual IRC Client: www.textualapp.com"]
<olivier_bK> for set the instance variable
mojjojo has joined #ruby
rjhunter has joined #ruby
user258467 has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
mojjojo has quit [Client Quit]
zigomir has joined #ruby
user258467 has joined #ruby
mojjojo has joined #ruby
OdNairy has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhaals has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
Skylab has quit [Quit: Skylab]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snoo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Skylab has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
ciampix has quit [Ping timeout: 252 seconds]
hadees has quit [Read error: Connection reset by peer]
pyrac has quit [Ping timeout: 252 seconds]
noyb has quit [Ping timeout: 272 seconds]
jgrevich has joined #ruby
awestroke has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ambushsabre has joined #ruby
ambushsabre has quit [Client Quit]
ambushsabre has joined #ruby
awestroke has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
awestroke has joined #ruby
schaary has quit [Quit: I sleep ZZZzzz…]
dhruvasagar has quit [Ping timeout: 252 seconds]
zimtss has left #ruby [#ruby]
mojjojo has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
prahal has quit [Ping timeout: 272 seconds]
camilasa_ has quit [Remote host closed the connection]
AlienElite has quit [Quit: Leaving]
yjmsf20 has quit [Quit: leaving]
ananthakumaran has quit [Read error: No route to host]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
roolo has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
camilasan has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
Heskie has quit [Ping timeout: 248 seconds]
einarj has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rickruby has joined #ruby
vlad_sta_ has joined #ruby
Czupa has joined #ruby
rickruby has quit [Remote host closed the connection]
jhaals has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Ping timeout: 264 seconds]
zipper has quit [Quit: leaving]
jkhwan has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
jhaals has quit [Client Quit]
berkes has quit [Quit: Ex-Chat]
nhhagen has quit [Remote host closed the connection]
DecipheredAFK is now known as Deciphered
mikecmpbll has joined #ruby
kcombs has quit [Ping timeout: 252 seconds]
nhhagen has joined #ruby
bubu\a_ has joined #ruby
mikecmpbll has quit [Client Quit]
<bubu\a_> hi, I have an array of [ "node3", "node4", "node5" ] , I want to be able to find the lowest numbered node..
mojjojo has quit [Quit: mojjojo]
<apeiros> bubu\a_: what have you tried so far?
mikecmpbll has joined #ruby
<apeiros> look into Enumerable#min_by
<bubu\a_> doing an each and some horrible regular expression and comparing
mojjojo has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<bubu\a_> ok thanks
threesome has joined #ruby
DaniG2k has quit [Quit: leaving]
<apeiros> bubu\a_: you might want to paste your horrible code :)
amund_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> >> ["node50", "node3", "node4", "node5"].min
<eval-in> havenwood => "node3" (https://eval.in/74165)
nari has quit [Ping timeout: 264 seconds]
<havenwood> bubu\a_: yeah, as you stated the problem i'd have done it that way ^ but i assume it is more complex?
<apeiros> I assume out of ["node20", "node3"] you want "node3", not "node20"?
dagobah has quit [Remote host closed the connection]
<havenwood> apeiros: good point
dhruvasagar has joined #ruby
pel_daniel has joined #ruby
Skylab has quit [Quit: Skylab]
<apeiros> fuck, why am I so wasted? for the first time in months I've only had a ~6h workday…
<bubu\a_> yes apeiros :)
sleepee has joined #ruby
wahben has joined #ruby
<apeiros> bubu\a_: I do have a solution, but I'm interested in seeing yours first
<bubu\a_> it's probably the lapse dude, stop for a day and your done! :)
<apeiros> it might be the contact lenses too. I always get tired quickly when I wear them (which I rarely do)
jibi has joined #ruby
<wahben> Hi all! I recently re-installed redmine on a new server and migrated our data. Now I'm a bit confused, I just want to find out what version of ruby it's using (I have both 1.9.1 and 1.9.3 installed). The service is running with thin server. Is there an easy way to check the version of ruby it's runnin?
timonv_ has quit [Remote host closed the connection]
<apeiros> wahben: you've 1.9.1 installed? you should drop that version off your computer IMO…
<wahben> apeiros: I'd love to, but I don't want redmine to stop working
Deciphered is now known as DecipheredAFK
<apeiros> well, redmine iirc is a rails app - just throw a line into config/initializers/startup.rb to log the ruby version
inad922 has joined #ruby
<apeiros> (startup.rb probably doesn't exist - just create it)
tkuchiki has joined #ruby
<workmad3> Rails.log.warn "Ruby version: #{RUBY_VERSION}"
<GreatSUN> so all
<GreatSUN> I wish a good night for all
<GreatSUN> finishing work now
<GreatSUN> bye for today ;-)
<wahben> workmad3: I just place that line in startup.rv and it should work? ok trying now.
dda has joined #ruby
<apeiros> workmad3: Rails.log? not Rails.logger? :)
* apeiros always used Rails.logger - but maybe Rails.log is an alias…
<workmad3> apeiros: good point
<workmad3> apeiros: it's too late :P
<apeiros> I'm full of good points today!
* workmad3 shoots some arrows at apeiros
<workmad3> have some more
<apeiros> now if you draw by the dots, you'll see the beautiful picture of a ruby
<wahben> workmad3: it was logger indeed.
<apeiros> draw, not shoot. barbarian…
<wahben> all good, using 1.9.3
<wahben> thanks all!
<apeiros> time to kill 1.9.1 then :-)
<wahben> will do.
<workmad3> wahben: option 2 was to look at 'ps aux | grep ruby' and see which ruby binary was in use, btw ;)
<wahben> workmad3: I did but all I see is thin
<workmad3> ah, ok :)
<diegoviola> what is ||= ?
<diegoviola> the operator
<apeiros> it is = + ||
<diegoviola> ok thanks
<wahben> yikes.. remove 1.9.1 killed redmine though
<diegoviola> :)
<apeiros> `a ||= b` is syntax sugar for `a || a = b`
<workmad3> diegoviola: 'a ||= b ' == 'a || (a = b)'
noop has joined #ruby
<diegoviola> thanks
sr78ger has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
<apeiros> and generally, `a <op>= b` is sugar for `a = a <op> b`, e.g. a += b --> a = a + b
<apeiros> (||= and &&= are special in that regard)
RaCx has joined #ruby
psyl0n has quit [Ping timeout: 246 seconds]
<bubu\a_> apeiros: something like this: https://gist.github.com/joshmyers/52ece58f74cbc9932c0f :/
<apeiros> bubu\a_: not bad IMO
<apeiros> mine:
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
<apeiros> >> [ "node2", "node3", "node4" ].min_by { |node| node[/\d+/].to_i }
<eval-in> apeiros => "node2" (https://eval.in/74170)
<wahben> what the hell Ubuntu.. apt-get install ruby1.9.3 -> Depends on ruby 1.9.1 and ruby 1.9.1-dev :P
<Lewix> apeiros: a = a || b
sr78ger has quit [Client Quit]
simplyaubs has quit [Quit: simplyaubs]
<workmad3> wahben: ruby1.9.1 package in debian is ruby 1.9.3, iirc
<apeiros> Lewix: no
nvrch has quit [Quit: nvrch]
TMM has quit [Quit: Ex-Chat]
<wahben> workmad3: this explains everything
<apeiros> Lewix: as said, ||= and &&= don't expand like the others.
<workmad3> wahben: :)
<bubu\a_> cool thanks apeiros
<Lewix> apeiros: no to what? I didn't ask anything
prahal has joined #ruby
<apeiros> 18:27 Lewix: apeiros: a = a || b
<Lewix> apeiros: yea?
<workmad3> Lewix: that's not what a ||= b expands to
<apeiros> Lewix: ok, what did you want to say by that?
<Lewix> apeiros: I was about to ask you the difference
<workmad3> Lewix: if 'a' is truthy, no assignment happens
wolcanus has joined #ruby
<apeiros> Lewix: ah. it matters when you don't have assignment but a method call.
<apeiros> with `x.foo ||= bar` e.g.
<apeiros> `x.foo = x.foo || bar` is different from `x.foo || x.foo = bar`
<apeiros> left one always invokes x.foo=, right one only if x.foo is falsy
tharindu has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
camilasan has quit []
sparrovv has quit [Quit: sparrovv]
_Andres has quit [Ping timeout: 265 seconds]
<apeiros> bubu\a_: note that sort_by is O(nlogn), min_by is O(n)
<apeiros> (time complexity - memory would be O(n) vs. O(1))
Czupa has quit [Remote host closed the connection]
rainbyte has quit [Quit: Leaving]
jkhwan has quit [Ping timeout: 272 seconds]
_Andres has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
<Lewix> apeiros: I see. thanks
ambushsabre has joined #ruby
jamesaanderson has joined #ruby
<Hanmac> wahben: 1.9.3 has still the same ABI as 1.9.1 thats why its named like that
jkhwan has joined #ruby
timonv has joined #ruby
schaary has joined #ruby
rickruby has joined #ruby
mercwithamouth has joined #ruby
kure_ has joined #ruby
dandrade has joined #ruby
jrobeson has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: Lost in trance]
RaCx has quit [Quit: Computer has gone to sleep.]
kure has quit [Ping timeout: 272 seconds]
prahal has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has joined #ruby
bigkevmcd has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
LexicalScope has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
jrobeson has joined #ruby
LexicalScope has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
jeffdb has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
pen has joined #ruby
GoodTimes has quit [Ping timeout: 252 seconds]
katselphrime has quit [Quit: WeeChat 0.3.7]
LexicalScope has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
shaunbaker has quit [Remote host closed the connection]
pencilcheck has joined #ruby
shaunbaker has joined #ruby
sleepee has quit [Quit: Leaving]
St_Marx has joined #ruby
pencilcheck has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
phansch has quit [Ping timeout: 246 seconds]
zz_N00D is now known as CripperZ
fudanchii has joined #ruby
CripperZ is now known as N00D
timonv has quit [Ping timeout: 252 seconds]
shaunbaker has quit [Ping timeout: 245 seconds]
dda has quit [Quit: logging out.]
hiyosi has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
prahal has joined #ruby
havenwood has joined #ruby
theKayhan has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
fgo has quit [Remote host closed the connection]
pyrac has joined #ruby
someish has joined #ruby
troessner has quit [Remote host closed the connection]
jibi has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 252 seconds]
myappleguy has joined #ruby
szerated has joined #ruby
rickruby has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
prahal has left #ruby [#ruby]
jibi has joined #ruby
DecipheredAFK is now known as Deciphered
szerated has quit [Client Quit]
Tuxist has joined #ruby
thecreators has joined #ruby
thecreators has quit [Remote host closed the connection]
pen has quit []
thecreators has joined #ruby
pen has joined #ruby
noyb has joined #ruby
wahben has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Arzaga has joined #ruby
diosmiux has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
jeffdb has quit [Quit: jeffdb]
fijimunkii has quit [Ping timeout: 264 seconds]
asteros has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
phansch has joined #ruby
wildroman2 has quit []
Deciphered is now known as DecipheredAFK
kure__ has joined #ruby
inad922 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
tkuchiki has quit [Remote host closed the connection]
sayan has quit [Read error: Operation timed out]
kure_ has quit [Ping timeout: 265 seconds]
fedesilva has quit [Ping timeout: 265 seconds]
sayan has joined #ruby
pyrac has quit [Quit: pyrac]
timonv_ has quit [Remote host closed the connection]
ace_striker has joined #ruby
obs has quit [Quit: Saliendo]
phansch has quit [Read error: Connection reset by peer]
sayan has quit [Ping timeout: 246 seconds]
khoury has joined #ruby
lessless has joined #ruby
jgrevich has quit [Quit: jgrevich]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
jkhwan has quit [Ping timeout: 272 seconds]
yellow5 has quit [Ping timeout: 246 seconds]
VTLob has joined #ruby
DecipheredAFK is now known as Deciphered
ace_striker has quit [Ping timeout: 250 seconds]
<lessless> how to refactor this method to implement a 'total' row https://gist.github.com/dirty-hippie/7696289 ?
yellow5 has joined #ruby
tylersmith has joined #ruby
kloeri has quit [Ping timeout: 620 seconds]
havenwood has joined #ruby
pleal has quit [Read error: Connection reset by peer]
pleal has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
michael_lee has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 248 seconds]
asteros has quit [Quit: asteros]
<canton7> lessless, er, calculate your total, then add a inew <td> line containing it
<apeiros> preferably in a <tfoot>
<apeiros> note that the order within <table> is <thead><tfoot><tbody> (not kidding)
<apeiros> tfoot will be displayed at the bottom
<jedimind> yup
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jedimind> although i can honestly say in 17 years of coding html/css for a living, i havent seen a single usage of tfoot
<apeiros> I use it all the time in statistical tables which have a summary line
hiall has quit [Quit: hiall]
<apeiros> and I actually solve lessless' problem by having a Summarizer :)
zomgbie has joined #ruby
<apeiros> hm, gives me an idea… I could actually port Summarizer to be part of my TableData gem.
havenwood has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
carraroj has joined #ruby
iliketurtles has joined #ruby
diosmiux has quit []
jibi has quit [Ping timeout: 240 seconds]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
GoodTimes has joined #ruby
yfeldblum has joined #ruby
Jdubs has joined #ruby
julweber has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
myappleguy has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
blaxter has quit [Quit: foo]
BigBlueBacon has joined #ruby
Princip has quit [Read error: Connection reset by peer]
Princip has joined #ruby
petey_ has joined #ruby
petey has quit [Read error: Connection reset by peer]
timonv has joined #ruby
RaCx has joined #ruby
Spami has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
ExCa|iBuR has joined #ruby
tedstrik_ has joined #ruby
wald0 has quit [Ping timeout: 272 seconds]
tharindu has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
Spami has quit [Max SendQ exceeded]
hiyosi has joined #ruby
iliketurtles has joined #ruby
wald0 has joined #ruby
noyb has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hiyosi has quit [Ping timeout: 246 seconds]
roolo has joined #ruby
unRealElite has joined #ruby
tylersmith has joined #ruby
myappleguy has joined #ruby
asteros has joined #ruby
liamkeil1 has joined #ruby
jkhwan has joined #ruby
Deciphered is now known as DecipheredAFK
ereslibre has quit [Remote host closed the connection]
pleal has quit [Remote host closed the connection]
larssmit has joined #ruby
foobArrr has quit [Quit: bye]
havenwood has joined #ruby
mojjojo has quit [Quit: mojjojo]
foobArrr has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
foobArrr has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
<lessless> apeiros, canton7 I just want a more elegant solution than https://gist.github.com/dirty-hippie/7696289#file-cpa_partners_summary_table-rb-L6
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
forced_request has quit [Remote host closed the connection]
<apeiros> lessless: well, things like `cancelled_lifetime = [(vendor['vendor']['bookings'] * 0.25).floor, vendor['vendor']['cancelled']].max` are already an atrocity
jibi has joined #ruby
<apeiros> so I don't really know why you care…
unRealElite has quit [Quit: This computer has gone to sleep]
<apeiros> I'd make that vendor.cancelled_lifetime - classes ftw.
<canton7> revenue = vendors_by_type('cpa').inject{ |s,x| s + revenue_stats.leads_for(x['vendor']['name'] } and so forth
aryaching has quit []
RaCx has joined #ruby
N00D is now known as zz_N00D
khoury has quit [Read error: Connection reset by peer]
<apeiros> and then summarizing wouldn't be that ugly either…
BigBlueBacon has quit [Ping timeout: 246 seconds]
liamkeil1 has quit [Ping timeout: 264 seconds]
<lessless> apeiros, because of they are not expressive?
failshell has quit []
<apeiros> o0
<apeiros> lessless: really, make vendor['vendor'] a proper class.
<lessless> ah, yeah
<apeiros> if you really want, move summarizing into its own class.
<apeiros> (that's what I did - I use the same Summarizer class for all tables - but I only need average, rank and sum in my summaries)
_Andres has quit [Read error: Connection reset by peer]
<lessless> cool
nhhagen has joined #ruby
aryaching has joined #ruby
<lessless> definitely this is truly ideolgically correct approach
p4d4w4n has joined #ruby
brtdv has joined #ruby
|PiP|` has quit []
|PiP| has joined #ruby
decoponio has quit [Quit: Leaving...]
tylersmith has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
xk_id has joined #ruby
schaary has quit [Quit: Textual IRC Client: www.textualapp.com]
Al_ has quit [Quit: Al_]
tenjack has joined #ruby
tedstrik_ has quit [Remote host closed the connection]
DecipheredAFK is now known as Deciphered
St_Marx has quit [Ping timeout: 245 seconds]
GoodTimes has quit [Ping timeout: 252 seconds]
aryaching has quit []
lessless has quit [Remote host closed the connection]
myappleguy has quit [Ping timeout: 265 seconds]
sepp2k1 has joined #ruby
heidi has quit [Quit: Leaving.]
heidi has joined #ruby
sepp2k has quit [Ping timeout: 265 seconds]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
Elhu has joined #ruby
nhhagen has joined #ruby
tylersmith has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has joined #ruby
larssmit has quit [Quit: Leaving.]
phansch has joined #ruby
failshell has joined #ruby
wildroman2 has joined #ruby
someish has quit [Quit: someish]
TheHodge has quit [Quit: Connection closed for inactivity]
heidi has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
GoodTimes has joined #ruby
nbrosnahan has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
Xeago has joined #ruby
trolling has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
fedesilva has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
trolling has joined #ruby
colonolGron has joined #ruby
theKayhan has quit [Ping timeout: 248 seconds]
_maes_ has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
blueOxigen has quit [Ping timeout: 246 seconds]
mzdravkov has joined #ruby
mercwithamouth has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
RaCx has joined #ruby
nbrosnahan has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
_maes_ has quit [Client Quit]
jamesaanderson has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
kofno has quit [Quit: Connection closed for inactivity]
pushpak has joined #ruby
Spami has quit [Ping timeout: 245 seconds]
Sc0rp10n has joined #ruby
banghouse has joined #ruby
_Andres has joined #ruby
nbrosnahan has joined #ruby
tonni has joined #ruby
banghouse is now known as Guest91729
LexicalScope has joined #ruby
Guest91729 is now known as banghouse
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
petey has joined #ruby
Deciphered is now known as DecipheredAFK
noop has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 248 seconds]
allsystemsarego has joined #ruby
samkottler has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
fedesilva has quit [Remote host closed the connection]
LexicalScope has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
petey_ has quit [Ping timeout: 272 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
randomnick_ has joined #ruby
spider-mario has quit [Ping timeout: 246 seconds]
heidi has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xk_id has quit [Quit:
spider-mario has joined #ruby
jkhwan has quit [Remote host closed the connection]
DropsOfSerenity has joined #ruby
jkhwan has joined #ruby
aspires has joined #ruby
jibi has quit [Remote host closed the connection]
fedesilva has joined #ruby
jamesaanderson has joined #ruby
heidi has quit [Ping timeout: 272 seconds]
jhaals has joined #ruby
tonni has quit [Remote host closed the connection]
jhaals has quit [Client Quit]
jkhwan has quit [Ping timeout: 272 seconds]
tonni has joined #ruby
St_Marx has joined #ruby
someish has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
jibi has joined #ruby
jhaals has joined #ruby
sayan has joined #ruby
tonni has quit [Read error: Connection reset by peer]
diasp has joined #ruby
ldnunes has quit [Quit: Leaving]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
theKayhan has joined #ruby
pleal has joined #ruby
mikestok has quit [Quit: Computer has gone to sleep.]
St_Marx has quit [Ping timeout: 245 seconds]
relix has joined #ruby
St_Marx has joined #ruby
giardina has joined #ruby
Spami has joined #ruby
sayan has quit [Ping timeout: 248 seconds]
hiyosi has joined #ruby
ereslibre has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p4d4w4n has quit [Remote host closed the connection]
pdtpatri1k has joined #ruby
pdtpatri1k has quit [Client Quit]
kirun has quit [Read error: Operation timed out]
kirun has joined #ruby
kloeri has joined #ruby
einarj has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 245 seconds]
zombiebit has joined #ruby
DecipheredAFK is now known as Deciphered
gr33n7007h has quit [Read error: No route to host]
coder_neo has joined #ruby
reset has joined #ruby
jhaals has joined #ruby
unRealElite has joined #ruby
synergy is now known as sng|afk
RaCx has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DropsOfSerenity has joined #ruby
sparrovv has joined #ruby
coder_neo has quit [Quit: Leaving]
heidi has joined #ruby
<snkcld> when i install a gem from github, via Gemfile, and i cd into where the gem is located, the the gemspec file is modified
reset has quit [Quit: Leaving...]
failshell has quit []
skaflem has quit [Quit: Leaving]
<canton7> 'git diff', see what the modification is
tylersmith has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
Deciphered is now known as DecipheredAFK
sergicles has quit [Quit: sergicles]
phansch_ has joined #ruby
funburn has joined #ruby
<snkcld> well, i mean, its modifications on the gemspec file
<snkcld> but im just confused, because if it just 'git clones' from the github url, why would it modify any of the project?
Lewix has quit [Remote host closed the connection]
heidi has quit [Ping timeout: 264 seconds]
Spami has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 264 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
unRealElite has quit [Quit: This computer has gone to sleep]
phansch has quit [Ping timeout: 272 seconds]
jb41 has quit [Quit: leaving]
dayepa has quit [Quit: dayepa]
michael_mbp is now known as zz_michael_mbp
einarj has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has joined #ruby
katterstrophe has joined #ruby
<canton7> snkcld, it shouldn't. sometimes line endings, etc, play a part. 'git diff' will tell you what the changes are
theKayhan has quit [Ping timeout: 264 seconds]
nhhagen has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
telpochyaotl has quit [Quit: Leaving.]
nhhagen has joined #ruby
Jetchisel has joined #ruby
nhhagen__ has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
<snkcld> canton7: heres a piece of the diff
<snkcld> does bundler automatically modify the gemspec file
larssmit has joined #ruby
jibi has quit [Quit: .]
DropsOfSerenity has quit [Ping timeout: 245 seconds]
javax has quit [Ping timeout: 252 seconds]
myappleguy has joined #ruby
yeboot has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zigomir has quit [Ping timeout: 272 seconds]
lnormous has joined #ruby
katterstrophe has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
myappleguy has quit [Ping timeout: 248 seconds]
rbert2 has joined #ruby
aspires has quit []
rubyracer has joined #ruby
phus1on has joined #ruby
pleal has quit [Remote host closed the connection]
javax has joined #ruby
<rbert2> hi all, i have a question. i have a ruby script which has command line args which are parsed via the optparse class and I also want to grab piped data from stdin via argf. this seems to be causing problems because argf is trying to use the command line args as files.
vlad_sta_ has quit [Remote host closed the connection]
<rbert2> is there a way to force argf to only read from stdin even though there are command line params listed in argv?
riotbit has joined #ruby
jkhwan has joined #ruby
St_Marx has quit [Ping timeout: 245 seconds]
simplyaubs has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
Jdubs has quit [Remote host closed the connection]
St_Marx has joined #ruby
MrZYX|off is now known as MrZYX
mojjojo has joined #ruby
GoodTimes has quit [Ping timeout: 265 seconds]
BizarreCake has quit [Quit: Leaving]
<snkcld> if im developing a gem, how do i specify that i want to load that gem, via a file path?
banister has joined #ruby
<bnagy> rbert2: you have to clean ARGV when you're done with what you don't want
rdark has quit [Read error: Operation timed out]
<rbert2> what method can i use to clean argv if you know offhand
heidi has joined #ruby
mercwithamouth has joined #ruby
<canton7> snkcld, how odd. No, bundler doesn't care about gemspec files
<snkcld> canton7: weird right?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<snkcld> well, anyway, maybe i shouldnt have gone about doing what iwant to do that way
wildroman3 has joined #ruby
<snkcld> i want to help develop this gem, so i figured i would modify the files where they are installed, and push up from there... lol. probably not the besti dea...
<snkcld> but how does one go about developing a gem?
jhaals has joined #ruby
<snkcld> should i just clone it to my homedir, for example, then `require '/home/me/neography/blah.rb' `
wildroman3 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<bnagy> I usually install them
<jrobeson> nobody requires absolute paths like that snkcld
<canton7> you can ruby -C path/to/gem/lib yourfile.rb iirc, and then require 'blah.rb' in your file
simplyaubs has quit [Quit: simplyaubs]
<canton7> ahem, no .rb
awestroke has quit [Remote host closed the connection]
rbert2 has quit [Quit: leaving]
larssmit has quit [Quit: Leaving.]
Hanmac1 is now known as Hanmac
<snkcld> hmm, canton7 , so switch the cwd of ruby to the location of the gem?
heidi has quit [Ping timeout: 240 seconds]
<bnagy> rake clean && gem build mything.gemspec && gem install -l mything-0.0.*.gem && rake test
wildroman2 has quit [Ping timeout: 246 seconds]
<canton7> snkcld, I'm wrong, it was -I
Spami has quit [Client Quit]
<snkcld> ah
phansch_ has quit [Remote host closed the connection]
myappleguy has joined #ruby
mojjojo has quit [Ping timeout: 246 seconds]
lnormous has quit [Ping timeout: 260 seconds]
rdark has joined #ruby
amoli has joined #ruby
saarinen has joined #ruby
rdark has quit [Client Quit]
jle` has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
gr33n7007h has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
jamesaanderson has joined #ruby
yfeldblum has joined #ruby
zz_tsykoduk is now known as tsykoduk
kofno has joined #ruby
mephux has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
DecipheredAFK is now known as Deciphered
zooz has joined #ruby
zooz has left #ruby ["Leaving"]
hiyosi has joined #ruby
blackmesa has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
Guest59949 has joined #ruby
tkuchiki has joined #ruby
saarinen has joined #ruby
havenwood has quit [Remote host closed the connection]
<snkcld> canton7: would that override what ever bundler would choose to use?
JohnBat26 has quit [Ping timeout: 252 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
thecreators has quit [Quit: thecreators]
bluepojo has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
zz_scottstamp is now known as scottstamp
tkuchiki has quit [Remote host closed the connection]
blackmes1 has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
ldnunes has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
pleal has joined #ruby
saarinen has quit [Quit: saarinen]
OdNairy has quit [Ping timeout: 240 seconds]
Deciphered is now known as DecipheredAFK
DecipheredAFK is now known as Deciphered
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
funburn has quit [Quit: funburn]
havenwood has joined #ruby
Czupa has joined #ruby
closures999 has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 264 seconds]
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
culturelabs has joined #ruby
mojjojo has joined #ruby
tylersmith has joined #ruby
banghouse has quit [Quit: What if the hokey pokey really is what it's all about?]
riotbit has quit [Read error: Connection reset by peer]
St_Marx has quit [Quit: Ex-Chat]
iliketurtles has quit [Quit: zzzzz…..]
matheuscaceres has joined #ruby
St_Marx has joined #ruby
sepp2k1 has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
myappleguy has quit [Ping timeout: 272 seconds]
Deciphered is now known as DecipheredAFK
dangerousdave has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
ldnunes has joined #ruby
pleal has quit [Remote host closed the connection]
madb055 has joined #ruby
nowthatsamatt has joined #ruby
drag00n has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
St_Marx has quit [Read error: Connection reset by peer]
St_Marx has joined #ruby
Tuxist has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
petey has quit [Ping timeout: 272 seconds]
GoodTimes has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 245 seconds]
spike|spiegel has quit [Ping timeout: 248 seconds]
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
moneydouble has joined #ruby
einarj has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
einarj has joined #ruby
charliesome has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.1]
nso95_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lnormous has joined #ruby
caesura has joined #ruby
<caesura> this is really embarrassing but... can anyone explain to me what a gemfile is
<caesura> i come from python and i am very confused
<caesura> :(
<ddd> a gemfile is an instruction file to gem binary on what to install
myappleguy has joined #ruby
<caesura> so the syntax of a gemfile is written in what language
<ddd> can list specific gems and wanted version, just the gem, and whether to install in specific environments
unRealElite has joined #ruby
<MrZYX> caesura: it's ruby, but executed in an environment where some methods are already defined
iliketurtles has joined #ruby
<caesura> i see
<caesura> such as "source" and "gem", i suppose
<MrZYX> and group
<caesura> alright
<caesura> (thank you both so much, by the way)
Snaury has quit [Read error: Connection reset by peer]
<bnagy> it's not required btw
<bnagy> it's just a bundler ( afaik ) thing
<ddd> you cvan also pass regular ruby commands like 'if RUBY_PLATFORM == 'java''
<ddd> err can
Snaury has joined #ruby
<ddd> thus making conditional gem installs possible
heidi has joined #ruby
<caesura> cool
<MrZYX> or even define methods and classes in it
<ddd> yep, iirc pretty much any legal ruby is allowed in a Gemfile
<ddd> and as bnagy said the Gemfile is usually used by Bundler. (idk of what elese uses it. gem doesn't need it)
<ddd> s/elese/else/
jamesaanderson has joined #ruby
lnormous has quit [Ping timeout: 264 seconds]
euclides has joined #ruby
<ddd> drc yFfh
<havenwood> ddd: Though with a recent RubyGems you are able to: gem install -g Gemfile
<ddd> hehe sorry. my rottie pawd the keyboard
<ddd> oh nice. didn't know that.
heidi has quit [Ping timeout: 246 seconds]
diasp has quit [Quit: diasp]
stringoO has quit [Quit: stringoO]
nso95_ has left #ruby [#ruby]
Arzaga has quit [Quit: Computer has gone to sleep.]
drag00n has quit [Ping timeout: 246 seconds]
lnormous has joined #ruby
DecipheredAFK is now known as Deciphered
zombiebit has quit [Remote host closed the connection]
justsee has joined #ruby
theKayhan has joined #ruby
Jdubs has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
zombiebit has joined #ruby
timonv has quit [Remote host closed the connection]
colonolGron has quit [Quit: leaving]
ffranz has quit [Quit: Leaving]
noyb has joined #ruby
unRealElite has quit [Quit: This computer has gone to sleep]
wildroman2 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
roolo has quit [Quit: Leaving...]
MrZYX is now known as MrZYX|off
mojjojo has quit [Quit: mojjojo]
Deciphered is now known as DecipheredAFK
bcbrown19 has quit [Read error: Connection reset by peer]
choobie has quit [Remote host closed the connection]
euclides has quit [Remote host closed the connection]
roolo has joined #ruby
roolo has quit [Client Quit]
olivier_bK has joined #ruby
capicue has joined #ruby
jle` has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fschuindt has joined #ruby
randomnick_ has quit [Quit: Leaving]
einarj has quit [Remote host closed the connection]
mojjojo has joined #ruby
wolcanus has quit [Ping timeout: 264 seconds]
marcgg_ has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Remote host closed the connection]
myappleguy has quit [Ping timeout: 272 seconds]
_JamieD_ has quit [Quit: _JamieD_]
<cek> what's tighter - "or" or and?
<shevy> I would say they are equak
<shevy> first come first serve
<shevy> ddd your dog wants to code!
shime has joined #ruby
gr33n7007h has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
<bnagy> cek: there's also a well regarded school of thought that you should just never use 'or' and 'and'
<bnagy> use && and || instead, their binding rules make more intuitive sense
<cek> eval-in, true or false and false
Jdubs has quit [Remote host closed the connection]
<cek> ! true
<bnagy> >> true or false and false
<eval-in> bnagy => false (https://eval.in/74253)
mzdravkov has left #ruby [#ruby]
<cek> >> true or false && false
<eval-in> cek => true (https://eval.in/74254)
nfk has quit [Quit: yawn]
tsykoduk is now known as zz_tsykoduk
tenjack has quit [Remote host closed the connection]
<shevy> >> false and false and false
<eval-in> shevy => false (https://eval.in/74255)
<shevy> >> false and false and true
<eval-in> shevy => false (https://eval.in/74256)
<bnagy> cek: && is above || btw, in case that wasn't obvious from the above
sparrovv has quit [Quit: sparrovv]
<cek> i'm well aware about && and ordering
Lewix has joined #ruby
mercwithamouth has joined #ruby
<apeiros> cek: use irb or pry for your experiments. eval-in is for demonstration purposes.
rob1n has joined #ruby
kirun has quit [Quit: Client exiting]
rob1n has left #ruby [#ruby]
<apeiros> same @ shevy
zombiebit has quit [Remote host closed the connection]
unRealElite has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
cantonic has joined #ruby
cascalheira has joined #ruby
brtdv has quit []
nhhagen__ has quit [Remote host closed the connection]
amoli has quit [Ping timeout: 240 seconds]
nhhagen has joined #ruby
sparrovv has joined #ruby
zombiebit has joined #ruby
OdNairy has joined #ruby
asobrasil has left #ruby [#ruby]
ldnunes has quit [Quit: Leaving]
nhhagen has quit [Ping timeout: 252 seconds]
euclides has joined #ruby
einarj has joined #ruby
OdNairy has quit [Read error: Operation timed out]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
mercwithamouth has joined #ruby
nhhagen has joined #ruby
relix has joined #ruby
jamesaanderson has joined #ruby
<pontiki> it is a pretty cool website thingie
zz_N00D is now known as CripperZ
phus1on has quit [Quit: .]
akonny has quit [Quit: akonny]
brandon has joined #ruby
brandon is now known as Guest80789
myappleguy has joined #ruby
xk_id has joined #ruby
amacgregor_ has joined #ruby
apeiros has quit [Remote host closed the connection]
petey has joined #ruby
apeiros has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
<ravster> how do I set the user-agent for Faraday?
heidi has joined #ruby
TigerWolf has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
`MArceLL` has joined #ruby
zzz_taion809 is now known as taion809
funburn has joined #ruby
DecipheredAFK is now known as Deciphered
sergicles has joined #ruby
heidi has quit [Ping timeout: 252 seconds]
sailias has quit [Ping timeout: 272 seconds]
myappleguy has quit [Ping timeout: 240 seconds]
vinay_ has joined #ruby
Sc0rp10n has quit [Read error: Connection reset by peer]
shime has quit [Ping timeout: 246 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
charliesome has joined #ruby
randomnick_ has joined #ruby
adambeynon has joined #ruby
claymore has quit [Quit: Leaving]
funburn has quit [Quit: funburn]
kaspergrubbe has joined #ruby
capicue has quit [Quit: Leaving...]
tvw has joined #ruby
Xeago has quit [Remote host closed the connection]
rainbyte has joined #ruby
Deciphered is now known as DecipheredAFK
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
osvico has joined #ruby
capicue has joined #ruby
unRealElite has quit [Quit: This computer has gone to sleep]
allsystemsarego has quit [Quit: Leaving]
CandyRedTele has joined #ruby
xerxas has joined #ruby
jhamm has joined #ruby
emocakes has joined #ruby
s2013_ has joined #ruby
<jhamm> i was listening to ruby rogues and heard them speak of an API gem to turn your app into a backend
<jhamm> does anyone know the gem that I am talking about
<emocakes> ive heard of it
<jhamm> rails-api
<jhamm> found it
<emocakes> dont see a point tbh
<jhamm> it takes out the middleware
<jhamm> gives a faster response
<emocakes> there is a gem for that?
<emocakes> i just did it manually...
<emocakes> :P
<emocakes> with activemodel serializers
<jhamm> the last time i did it I also did it manually
ephemerian has quit [Quit: Leaving.]
moneydouble has quit [Ping timeout: 245 seconds]
<jhamm> glad someone did all the hard lifting
kaspergrubbe has quit []
<emocakes> i think i have used it once, it works well
s2013 has quit [Ping timeout: 272 seconds]
s2013_ has quit [Ping timeout: 264 seconds]
cek has quit [Ping timeout: 246 seconds]
CripperZ is now known as zz_CripperZ
rubyracer has quit [Quit: Konversation terminated!]
fedesilva has quit [Ping timeout: 252 seconds]
zz_CripperZ is now known as CripperZ
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
VTLob has quit [Quit: VTLob]
jamesaanderson has joined #ruby
kitak_ has quit [Remote host closed the connection]
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jhamm has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has joined #ruby
Monie has joined #ruby
Monie has quit [Client Quit]
moneydouble has joined #ruby
Monie has joined #ruby
Monie has quit [Client Quit]
Snaury has quit [Read error: Connection reset by peer]
fierycatnet has joined #ruby
kobain has joined #ruby
Snaury has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
CandyRedTele has quit [Quit: Quitte]
nhhagen_ has quit [Read error: Operation timed out]
nhhagen_ has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikestok has joined #ruby
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
jkhwan_ has joined #ruby
wildroman2 has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
lnormous has quit [Quit: Leaving]
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kofno has joined #ruby
Monie has joined #ruby
resilient has joined #ruby
mojjojo has quit [Quit: mojjojo]
jkhwan_ has quit [Ping timeout: 272 seconds]
resilient has quit [Client Quit]
julweber has joined #ruby
Reach has joined #ruby
Monie has quit [Ping timeout: 245 seconds]
samkottler has quit [Quit: quitter]
sergicles has quit [Quit: sergicles]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
guilund has joined #ruby
fgo has joined #ruby
JBlazeCo_ has joined #ruby
noyb has quit [Ping timeout: 272 seconds]
Cazic has joined #ruby
relix has joined #ruby
CripperZ is now known as zz_CripperZ
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
culturelabs has joined #ruby
Speed has joined #ruby
mikestok has quit [Ping timeout: 272 seconds]
jhamm has joined #ruby
Monie has joined #ruby
guilund has left #ruby [#ruby]
Monie has quit [Client Quit]
jamesaanderson has joined #ruby
someish has quit [Quit: someish]
theKayhan has quit [Ping timeout: 264 seconds]
DecipheredAFK is now known as Deciphered
madb055 has quit [Ping timeout: 272 seconds]
madb055 has joined #ruby
euclides has quit [Remote host closed the connection]
euclides has joined #ruby
tvw has quit []
petey has quit [Remote host closed the connection]
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]