apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
thumpba has quit [Ping timeout: 255 seconds]
<chrishough> in capistrano what is the variable that holds the current stage?
zeroNones has joined #ruby
Takle has quit [Remote host closed the connection]
zeroNones has quit [Max SendQ exceeded]
<chrishough> I know you set :stage, but I am trying to use it in a deploy task
ptrrr has quit [Quit: ptrrr]
zeroNones has joined #ruby
<pontiki> i thought it was just stage
zeroNones has quit [Max SendQ exceeded]
<pontiki> but now i'm not sure
<Wolland> ^
davasaurous has quit [Ping timeout: 260 seconds]
<chrishough> aha, it is fetch(:stage)
j_mcnally has quit [Ping timeout: 260 seconds]
lemur has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
neonixcoder has joined #ruby
linojon has quit [Quit: linojon]
Mars__ has joined #ruby
freerobby has quit [Quit: Leaving.]
mr-foobar has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 260 seconds]
mr-foobar has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
linojon has joined #ruby
agjacome has quit [Quit: leaving]
gccostabr has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
skip_freely has joined #ruby
wallerdev has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
startupality has quit [Quit: startupality]
tylersmith has quit [Remote host closed the connection]
thumpba has joined #ruby
pietr0 has quit [Quit: pietr0]
danijoo has joined #ruby
b00stfr3ak has joined #ruby
j4rh3rd has joined #ruby
sepp2k1 has joined #ruby
bking39116 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
kireevco has joined #ruby
yfeldblu_ has joined #ruby
kireevco has quit [Max SendQ exceeded]
pu22l3r has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
charliesome has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
slester has quit [Ping timeout: 272 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
<zorak8> i want to make an app in ruby, but not a web app
lolmaus has quit [Ping timeout: 272 seconds]
<zorak8> a regular app with a graphic interface
Mars__ has quit [Remote host closed the connection]
Sht0 has quit [Ping timeout: 272 seconds]
Mars__ has joined #ruby
<havenwood> zorak8: There are multiple options. A fun one is shoes4 with JRuby: https://github.com/shoes/shoes4#readme
rp__ has quit [Ping timeout: 260 seconds]
b00stfr3ak has joined #ruby
crdpink has quit [Ping timeout: 245 seconds]
crdpink2 has joined #ruby
northfurr has joined #ruby
sarkis has joined #ruby
<sarkis> hey guys, i am reading after 2.1.x there shouldn't be any patch level however, rbenv shows 2.1.2-p95
fabrice31 has quit [Ping timeout: 260 seconds]
<sarkis> is that an rbenv thing or is the latest patch level 2.1.2-p95
diegoviola has joined #ruby
cndiv has quit [Ping timeout: 272 seconds]
<havenwood> sarkis: The patch release corresponding to 2.1.2 is indeed 2.1.2-p95 but they're wrong to include it in the Ruby name.
Mars__ has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
<sarkis> i see, there won't be multiple patchlevels any longer right?
<havenwood> sarkis: Patches still exist, but Ruby went to semantic versioning after 2.0.
jaygen has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Guest33694 has quit [Ping timeout: 272 seconds]
<havenwood> sarkis: Right, so 2.1.3 will have a patch level, but it is semantically versioned and the patch level should not be included in the name.
bmurt has joined #ruby
Nieralyte has left #ruby [#ruby]
<havenwood> sarkis: RVM and ruby-install/chruby play nice with Ruby's semantic versioning.
jaygen_ has quit [Ping timeout: 260 seconds]
flowerhack has quit [Quit: Connection closed for inactivity]
hmsimha has joined #ruby
* havenwood grumbles about shims.
neonixcoder has quit [Quit: Leaving.]
sent-hil has joined #ruby
<zorak8> need to learn java to use jruby?
shosti has quit [Ping timeout: 272 seconds]
thumpba has quit []
<havenwood> zorak8: Nope. :)
codeurge has joined #ruby
<pontiki> what??
hiyosi has joined #ruby
<pontiki> oops, wfw
northfurr has quit [Quit: northfurr]
<havenwood> Worry Free Wednesday?
<havenwood> World Fantasy Wrestling?
sparrovv has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Client exiting]
angusigu1ss has joined #ruby
yfeldblum has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Cecen has joined #ruby
gsd has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
hiyosi has quit [Ping timeout: 258 seconds]
<pontiki> wrong feking window :D
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
yfeldblum has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
St_Marx has quit [Ping timeout: 264 seconds]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
neonixcoder has quit [Max SendQ exceeded]
Cecen_ has quit [Ping timeout: 240 seconds]
neonixcoder has joined #ruby
benlieb has joined #ruby
j4rh3rd has quit [Ping timeout: 272 seconds]
robh71 has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
iamjarvo has joined #ruby
JoshGlzBrk has joined #ruby
sheepman has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has joined #ruby
davasaurous has joined #ruby
pu22l3r has joined #ruby
PanPan has joined #ruby
pu22l3r has quit [Remote host closed the connection]
krisquigley has joined #ruby
nettoweb has joined #ruby
mary5030 has joined #ruby
thams has quit [Quit: thams]
b00stfr3ak has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
<multi_io> do I really have to create a blog at wordpress.com in order to change my avatar image at rubygems.org?
Sirupsen has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
sevenseacat has joined #ruby
duncannz has quit [Ping timeout: 272 seconds]
<zorak8> no
<zorak8> just need an user
krisquigley has quit [Ping timeout: 245 seconds]
<multi_io> a user at wordpress.com, right?
<multi_io> which means creating a blog, I guess.
mattstratton has joined #ruby
<zorak8> no
<multi_io> or just at gravatar.com?
<zorak8> you can make a blog later with that user if you want
bking39116 has quit [Quit: bking39116]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<multi_io> ah ok.
<multi_io> so I just need a wordpress.com account
bogeyd6 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zorak8> yes
<multi_io> I can tolerate that :P
Lucky__ has joined #ruby
timonv_ has joined #ruby
<zorak8> its not even necesary for the tutarial
gccostabr has quit [Quit: ZZZzzz…]
mistergibson has joined #ruby
enriclluelles has quit [Remote host closed the connection]
lemur has joined #ruby
nb_bez__ has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 245 seconds]
skammer has joined #ruby
baum has quit [Ping timeout: 250 seconds]
t_p has joined #ruby
banister_ has joined #ruby
ixti has quit [Quit: WeeChat 1.0]
lemur has quit [Ping timeout: 272 seconds]
banister has quit [Ping timeout: 272 seconds]
crdpink2 has quit [Quit: q term]
skammer has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
britneywright has joined #ruby
diegovio1 has joined #ruby
baum has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
bjornar has quit [Ping timeout: 258 seconds]
davasaurous has quit [Remote host closed the connection]
ballpointcarrot has joined #ruby
Takle has joined #ruby
maestrojed has joined #ruby
dexkiki has joined #ruby
lampd1 has joined #ruby
emocakes has joined #ruby
poguez_ has joined #ruby
tectonic has joined #ruby
tectonic has quit [Max SendQ exceeded]
davasaurous has joined #ruby
rubyonrailed has quit []
tylerkern has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
gccostabr has joined #ruby
Lewix has joined #ruby
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
asteve has quit [Ping timeout: 272 seconds]
asteve_ has joined #ruby
jonr22 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
gccostabr has quit [Client Quit]
braincra- has joined #ruby
threesixes has quit [Remote host closed the connection]
St_Marx has joined #ruby
x1337807x has joined #ruby
benlieb has quit [Quit: benlieb]
ValicekB has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
x1337807x has quit [Max SendQ exceeded]
Rollabunna has joined #ruby
tastycode has quit [Quit: tastycode]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
sarkis has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
cursivecode has joined #ruby
gsd has quit [Client Quit]
maestrojed has quit [Quit: Computer has gone to sleep.]
SCHAAP137 has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
ballpointcarrot has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
diegovio1 is now known as diegoviola
nettoweb has quit [Max SendQ exceeded]
milkohol has joined #ruby
nettoweb has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ValicekB has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
wjimenez_ has joined #ruby
i8igmac has joined #ruby
sarkis has quit [Ping timeout: 272 seconds]
lukevinc has joined #ruby
Cecen_ has joined #ruby
wjimenez5271 has quit [Ping timeout: 246 seconds]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DiegoIRC has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cecen has quit [Ping timeout: 245 seconds]
wjimenez_ has quit [Ping timeout: 258 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
adironduck has joined #ruby
DiegoIRC has quit [Quit: • IRcap • 8.72 •]
lukevinc has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.8.0/20000101000000]]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b00stfr3ak has joined #ruby
lukevinc has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaygen_ has joined #ruby
krisquigley has joined #ruby
jaygen has quit [Ping timeout: 246 seconds]
hamakn has quit [Remote host closed the connection]
duncannz has joined #ruby
b00stfr3ak has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
bruno- has joined #ruby
yetanotherdave has quit [Ping timeout: 245 seconds]
adironduck has quit [Quit: adironduck]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KC9YDN has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
hamakn has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
kristofferR has joined #ruby
ballpointcarrot has joined #ruby
ballpointcarrot has quit [Client Quit]
ballpointcarrot has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
cirn0 has joined #ruby
kristofferR has quit [Client Quit]
jpopo23 has joined #ruby
cursivecode has left #ruby ["Textual IRC Client: www.textualapp.com"]
Spami_ has left #ruby ["Leaving"]
jaygen_ has quit []
Spami_ has joined #ruby
aclearman037 has joined #ruby
aclearma_ has joined #ruby
AtumT has quit [Quit: AtumT]
angusigu1ss has quit [Ping timeout: 255 seconds]
Spami has quit [Disconnected by services]
Spami_ has quit [Client Quit]
jpopo23 has quit [Client Quit]
igaiga has joined #ruby
Spami_ has joined #ruby
mocfive has quit [Remote host closed the connection]
aclearma_ has quit [Client Quit]
robh71 has joined #ruby
aclearman037 has quit [Client Quit]
chipotle_ has quit [Quit: cya]
mocfive has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
Spami_ has quit [Client Quit]
Spami_ has joined #ruby
b00stfr3ak has joined #ruby
neonixcoder has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
troyready has quit [Ping timeout: 258 seconds]
sarkis has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
skammer has joined #ruby
_reset has joined #ruby
freerobby has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
igaiga_ has joined #ruby
diegoviola has joined #ruby
dexkiki has quit [Ping timeout: 246 seconds]
milkohol has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
reset has quit [Ping timeout: 255 seconds]
igaiga has quit [Ping timeout: 255 seconds]
Spami_ has quit [Changing host]
Spami_ has joined #ruby
_reset has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
skammer has quit [Ping timeout: 272 seconds]
sarkis has quit [Ping timeout: 260 seconds]
JBreit has left #ruby [#ruby]
tylersmith has joined #ruby
fabrice31 has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
voodoofish has joined #ruby
sailias has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
rezzack has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
ashemark has joined #ruby
lemur has joined #ruby
<ashemark> Hey everyone
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
<ashemark> Just started learning ruby, feel like nothing is better!!
<sevenseacat> :)
<ashemark> Probably rails will surprise me :D
<pontiki> ah, freshness
<ashemark> meanwhile, i read that I can make mac gui apps with ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<ashemark> can I make windows gui apps as well??
codeurge has quit [Quit: Sleep.]
jonr22 has quit [Ping timeout: 240 seconds]
<pontiki> there's RubyCocoa
<pontiki> i don't know how well it works
sepp2k1 has quit [Read error: Connection reset by peer]
<ashemark> RubyCocoa for windows?
<pontiki> no... you said mac
<pontiki> no, sorry, i thought you said mac
igaiga_ has quit [Remote host closed the connection]
<pontiki> maybe shoes?
<ashemark> uh huh
<pontiki> again, i don't know how well that works, either
<ashemark> that i'll find out
<ashemark> thanks
wallerdev has joined #ruby
<pontiki> sure
<ashemark> :D
ashemark has left #ruby [#ruby]
gattie has quit [Quit: Leaving...]
j_mcnally has joined #ruby
astav has joined #ruby
maestrojed has joined #ruby
choke has quit [Remote host closed the connection]
edwardly has quit [Max SendQ exceeded]
edwardly has joined #ruby
davasaurous has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 245 seconds]
gregf has quit [Quit: WeeChat 1.0]
angusigu1ss has joined #ruby
neonixcoder has joined #ruby
jimmyhoughjr has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
spacemud has quit [Quit: ZNC - http://znc.in]
b00stfr3ak has joined #ruby
cirn0 has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 245 seconds]
MiracleBlue_ is now known as MiracleBlue
bricker`work has quit [Ping timeout: 240 seconds]
choke has joined #ruby
AndroUser465 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
charliesome has quit [Quit: zzz]
yacks has joined #ruby
sinkensabe has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
chrishough has joined #ruby
charliesome has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
<zorak8> hi, im trying this tutorial
radic has joined #ruby
Cecen has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RichardLitt has quit [Quit: RichardLitt]
melik_ has quit [Quit: Computer has gone to sleep.]
mtncode has quit [Ping timeout: 245 seconds]
Lucky__ has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
sparrovv has quit [Ping timeout: 260 seconds]
<zorak8> and when i execute the app have this error
<zorak8> ./rubynotes.rb
<zorak8> ./rubynotes.rb: line 1: require: command not found
<zorak8> for each line
<sevenseacat> how are you executing the app
<zorak8> ./rubynotes.rb
radic_ has quit [Ping timeout: 272 seconds]
<zorak8> in the terminal
<sevenseacat> try `ruby ./rubynotes.rb`
Cecen_ has quit [Ping timeout: 260 seconds]
chrishough has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
lampd1 has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<zorak8> green_shoes != https://github.com/shoes/shoes4#readme ?/
gvenkat has quit [Ping timeout: 246 seconds]
tylersmith has quit []
chrishough has joined #ruby
Vile` has quit [Remote host closed the connection]
gvenkat has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
lukevinc has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.8.0/20000101000000]]
codeurge has joined #ruby
Vile` has joined #ruby
mikeg_ has joined #ruby
tkuchiki has quit [Quit: Leaving...]
<zorak8> get this error
krisquigley has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
<mikeg_> I have an array of hostnames and I need to insert each into a string and then output them comma separated. I came up with this but it seems kinda dirty. would love feedback:
<mikeg_> <% nodes = @memcached_nodes.collect! { |a| "array('" + a + ",11211)" -%><%= nodes.join(",") %>
<sevenseacat> zorak8: ok you didnt look at the readme of how to run a shoes app
Fire-Dragon-DoL has quit [Quit: Leaving.]
dkphenom has joined #ruby
<zorak8> mmm
<zorak8> i dont have a bin/shoes
jimmyy has quit [Read error: Connection reset by peer]
jimmyy_ has joined #ruby
jimmyy_ is now known as jimmyy
tkuchiki has joined #ruby
enriclluelles has joined #ruby
* sevenseacat gets out crystal ball
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has joined #ruby
wjimenez5271 has joined #ruby
awc737 has quit [Max SendQ exceeded]
danijoo has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 272 seconds]
danijoo has joined #ruby
skammer has joined #ruby
enriclluelles has quit [Ping timeout: 246 seconds]
braincra- has quit [Quit: bye bye]
corehook has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
corehook has joined #ruby
wjimenez5271 has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
troyready has joined #ruby
freerobby has quit [Quit: Leaving.]
mattstratton has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
VBlizzard has quit [Ping timeout: 250 seconds]
InhalingPixels has quit [Remote host closed the connection]
absolutezeroff has joined #ruby
bmurt has quit []
nb_bez__ has quit [Quit: Connection closed for inactivity]
Xapht has joined #ruby
mofai has joined #ruby
<Xapht> Is there a way to sort a group of objects by a condition? I.E. I want to sort a group of user objects, where user.location == california would result in those objects at the top of the stack.
mikeg has joined #ruby
ndrei has joined #ruby
abdulsattar has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> Xapht: sure, #sort takes a block
poguez_ has quit [Quit: Connection closed for inactivity]
mikeg_ has quit [Ping timeout: 240 seconds]
davasaurous has joined #ruby
<eam> >> rank = %w{ca or wa co fl wi}; %w{wa fl wi ca or}.sort {|a,b| rank.find_index(a) <=> rank.find_index(b) }
<eval-in_____> eam => ["ca", "or", "wa", "fl", "wi"] (https://eval.in/194818)
ndrei has quit [Ping timeout: 272 seconds]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skip_freely has quit [Quit: skip_freely]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
Hanmac has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
Hanmac has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
narcan has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
Akagi201 has quit [Ping timeout: 260 seconds]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
dfinly has joined #ruby
greenride has joined #ruby
dfinly has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 245 seconds]
bwilson has quit [Quit: bwilson]
codeurge has quit [Quit: Sleep.]
amystephen has quit [Quit: amystephen]
bruno- has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
IceDragon has quit [Quit: Space~~~]
Cecen_ has joined #ruby
jobewan has joined #ruby
Cecen has quit [Ping timeout: 248 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
sarkis has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
Channel6 has joined #ruby
milkohol has joined #ruby
milkohol has quit [Client Quit]
sailias has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
krisquigley has joined #ruby
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
neonixcoder has quit [Quit: Leaving.]
JoshGlzBrk has joined #ruby
emocakes__ has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emocakes has quit [Ping timeout: 246 seconds]
awc737 has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gvenkat_ has joined #ruby
pu22l3r has joined #ruby
timonv_ has joined #ruby
asteve_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
gvenkat has quit [Ping timeout: 260 seconds]
Photism has quit [Quit: Leaving]
pu22l3r has joined #ruby
fabrice31 has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
awc737_ has joined #ruby
awc737_ has quit [Max SendQ exceeded]
thams has joined #ruby
awc737 has quit [Ping timeout: 258 seconds]
skammer has joined #ruby
InhalingPixels has joined #ruby
St_Marx has joined #ruby
b00stfr3ak has joined #ruby
awc737 has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
skammer has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
_5kg_ has quit [Ping timeout: 272 seconds]
absolutezeroff has quit [Quit: absolutezeroff]
gvenkat has joined #ruby
jobewan has quit [Remote host closed the connection]
milkohol has joined #ruby
sinkensabe has joined #ruby
gvenkat_ has quit [Ping timeout: 260 seconds]
programmerq has joined #ruby
zz_anildigital is now known as anildigital
jobewan has joined #ruby
anildigital is now known as zz_anildigital
tylerkern has quit [Quit: Connection closed for inactivity]
thams has quit [Quit: thams]
milkohol has quit [Client Quit]
milkohol has joined #ruby
tectonic has joined #ruby
patrick99e99 has joined #ruby
Lucky__ has joined #ruby
yfeldblum has joined #ruby
wallerdev has quit [Quit: wallerdev]
deric_skibotn has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
zettam has quit [Read error: Connection reset by peer]
angusigu1ss has joined #ruby
anaeem1__ has joined #ruby
anaeem1_ has quit [Ping timeout: 260 seconds]
mikeg_ has joined #ruby
igaiga has joined #ruby
gvenkat_ has joined #ruby
rkalfane has joined #ruby
gvenkat has quit [Ping timeout: 260 seconds]
mikeg has quit [Ping timeout: 260 seconds]
troyready has quit [Quit: Leaving]
bruno- has joined #ruby
cirn0 has joined #ruby
ghr has joined #ruby
Lewix has quit [Remote host closed the connection]
synergyz has quit [Remote host closed the connection]
mikeg has joined #ruby
_shrine has joined #ruby
x1337807x has joined #ruby
maletor_ has joined #ruby
angusigu1ss has quit [Ping timeout: 258 seconds]
kireevco has quit [Quit: Leaving.]
cirn0 has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 272 seconds]
mikeg_ has quit [Ping timeout: 272 seconds]
tobago has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
gvenkat__ has joined #ruby
linojon has quit [Quit: linojon]
pork_clips has joined #ruby
igaiga has quit [Remote host closed the connection]
_cake has quit [Ping timeout: 260 seconds]
Cecen has joined #ruby
speaking1ode has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
_shrine has quit [Ping timeout: 260 seconds]
gvenkat_ has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 245 seconds]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
kireevco has joined #ruby
emmesswhy has joined #ruby
kireevco has quit [Max SendQ exceeded]
duellsy has joined #ruby
gvenkat has joined #ruby
kireevco has joined #ruby
LiohAu has joined #ruby
kireevco has quit [Max SendQ exceeded]
abdulsattar has joined #ruby
duellsy has left #ruby [#ruby]
kireevco has joined #ruby
mr-foobar has quit [Quit: Leaving...]
tlarevo has joined #ruby
kireevco has quit [Client Quit]
b00stfr3ak has quit [Ping timeout: 258 seconds]
Cecen_ has quit [Ping timeout: 258 seconds]
gvenkat__ has quit [Ping timeout: 260 seconds]
lampd1 has joined #ruby
kamilc__ has joined #ruby
Xapht has quit [Ping timeout: 246 seconds]
gvenkat has quit [Ping timeout: 258 seconds]
lampd1 has quit [Ping timeout: 260 seconds]
oo89 has joined #ruby
oo89 has quit [Max SendQ exceeded]
krisquigley has joined #ruby
LiohAu has quit [Read error: Connection reset by peer]
gvenkat has joined #ruby
astav has quit [Quit: astav]
gvenkat_ has joined #ruby
<agent_white> Evenin' folks.
oo89 has joined #ruby
oo89 has quit [Excess Flood]
_5kg_ has joined #ruby
krisquigley has quit [Ping timeout: 258 seconds]
oo89 has joined #ruby
oo89 has quit [Excess Flood]
gvenkat has quit [Read error: Connection reset by peer]
oo89 has joined #ruby
oo89 has quit [Max SendQ exceeded]
banister has joined #ruby
atmosx has joined #ruby
timonv_ has joined #ruby
zz_anildigital is now known as anildigital
dapz has joined #ruby
mercwithamouth has joined #ruby
greenride has left #ruby [#ruby]
<agent_white> Is the ruby-lang mailing list really the minitest mailing list? Seems like %90 of the threads on there are about minitest...
<atmosx> agent_white: there's no thread about mini_test. Just anouncements because Ryan Davis is active on minitest dev (which is the defualt testing suite btw).
gvenkat_ has quit [Read error: Connection reset by peer]
enriclluelles has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<agent_white> atmosx: Ah yeah, I mean in general it seems like most of the "posts" (what do you call them?) are minitest... not much else.
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
oo_ has joined #ruby
M-Technic has quit [Quit: leaving]
kireevco has joined #ruby
<agent_white> Just curious though! Props to Ryan for all his updates... just odd that there's noone else doing it.
timonv_ has quit [Ping timeout: 260 seconds]
b00stfr3ak has joined #ruby
gvenkat_ has joined #ruby
enriclluelles has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
oo89 has joined #ruby
InhalingPixels has joined #ruby
armyriad has joined #ruby
skammer has joined #ruby
yfeldblum has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
gvenkat has joined #ruby
Vile` has quit [Remote host closed the connection]
anildigital is now known as zz_anildigital
oo89 has quit [Remote host closed the connection]
robh71 has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
gvenkat_ has quit [Ping timeout: 246 seconds]
ta has quit [Remote host closed the connection]
skammer has quit [Ping timeout: 260 seconds]
sprihodko has joined #ruby
Vile` has joined #ruby
<pontiki> birds do it, bees do it, even educated fleas do it
* agent_white hugs pontiki
<pontiki> aww
* pontiki hugs agent_white
<agent_white> I went away from a month pontiki! I missed you!
<agent_white> s/from/for/
eyeris has joined #ruby
<eyeris> Is there anything in rspec that let's me both stub a method (to prevent an outside service call) and also test that the method is called?
<pontiki> where did you go? someplace fun i hope
sent-hil has quit [Quit: Connection closed for inactivity]
oleo__ has quit [Quit: Verlassend]
ballpointcarrot has quit [Remote host closed the connection]
<pontiki> eyeris: yes, i can't recall off the top of my head
<agent_white> pontiki: I wish! I just didn't touch my computer at all... so I guess it could be said it just was a _different_ place :)
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
Tomme has quit [Ping timeout: 246 seconds]
<pontiki> ah, yes, eyeris, it's the allow method in rspec mocks
<pontiki> oh, well, hopefully you'll go somewhere fun soon!
<agent_white> Me too! :D
<agent_white> And I hope you do too... if you aren't already in a fun place... then I hope it's even more fun!
<pontiki> not so much, sadly
<pontiki> more and more stress daily
<agent_white> :(
<agent_white> Sometimes, I wear funny hats and glasses to make it more fun.
<pontiki> good plan, that!
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> i tell jokes and puns
<agent_white> !! :D
<pontiki> but it never seems to touch the deep ache
<agent_white> Hmmm... maybe... you need to wear a cape? I know I do. It would be much more fun than hats and glasses.
BlkDynmt has quit [Quit: BlkDynmt]
<agent_white> +you run faster like having new shoes
<pontiki> i have a cloak, but no cape
<agent_white> :o Even better! SUPER-PONTIKI, MASTER OF PUNS!
Rollabunna has joined #ruby
<agent_white> BEWARE MY HUMOR YE EVIL DOERS!
cougarten has joined #ruby
igaiga has joined #ruby
_5kg_ has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
<pontiki> paronomasiac, plox
zz_anildigital is now known as anildigital
bruno- has joined #ruby
<pontiki> the paronomasial muridae
eyeris has quit [Quit: leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
<pontiki> oui, la souris sourit
jle` has joined #ruby
<pontiki> mais elle est toujour triste
igaiga has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Ping timeout: 245 seconds]
_5kg_ has joined #ruby
shock_one_ has joined #ruby
<agent_white> I didn't get that... but if I did, a mouse should always smile because they are a mouse!
fold has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 258 seconds]
<sevenseacat> only word i think i know is 'triste' which is 'sad', no?
angusigu1ss has joined #ruby
<pontiki> yes
<sevenseacat> winner\
<agent_white> :D / D:
<agent_white> No sad mouses here. We are writing ruby!
<pontiki> it's the best part of my life, after painting
tagrudev has joined #ruby
<agent_white> pontiki: Speaking french?
<pontiki> coding ruby
<pontiki> i don't know why i'm speaking french
jusmyth has joined #ruby
<sevenseacat> because why not
<sevenseacat> !reason
<helpa> The alignment of the planets caused that.
SouL has quit [Ping timeout: 258 seconds]
<agent_white> :D
mityaz has quit [Quit: See ya!]
<pontiki> it seems better for expressing emotions, somehow
ghr has joined #ruby
<pontiki> which are off topic, sorry
<agent_white> pontiki: A famous climber (one of the first to summit Everest in the 1920's) George Mallory was once asked... "why do you want to climb Mount Everest?" -- he replied... "Because it's there."
shock_one_ has quit [Ping timeout: 272 seconds]
igaiga has joined #ruby
<agent_white> :)
fold has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
angusigu1ss has quit [Ping timeout: 258 seconds]
benzrf is now known as benzrf|offline
ghr has quit [Ping timeout: 258 seconds]
kyb3r_ has joined #ruby
Cecen_ has joined #ruby
Cecen has quit [Ping timeout: 248 seconds]
<pontiki> nous parlons français parce que c'est la?
mattmcclure has quit [Quit: Connection closed for inactivity]
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbueza has joined #ruby
thams has joined #ruby
igaiga_ has joined #ruby
igaiga has quit [Read error: Connection reset by peer]
melik_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
maletor_ has quit [Quit: Computer has gone to sleep.]
davasaur_ has joined #ruby
fabrice31 has quit [Ping timeout: 258 seconds]
krisquigley has joined #ruby
dapz has left #ruby ["Textual IRC Client: www.textualapp.com"]
apeiros has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
rkalfane has joined #ruby
apeiros has joined #ruby
RyanV has joined #ruby
shock_one_ has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
Macaveli has joined #ruby
timonv_ has joined #ruby
Macaveli has quit [Client Quit]
igaiga_ has quit [Remote host closed the connection]
mofai has quit [Read error: Connection timed out]
apeiros has quit [Ping timeout: 260 seconds]
igaiga has joined #ruby
<RyanV> Hey guys, Im looking for some thoughts/opinions. i usually write classes w/ instance methods that lazily set instance vars. I see a lot of other code that sets values on initialize for example. thoughts/pros/cons on either?
igaiga has quit [Remote host closed the connection]
work_op has joined #ruby
<agent_white> pontiki: Exactly. :)
<agent_white> I wish I could speak french... it sounds so beautiful when spoken.
Lewix has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
carraroj has joined #ruby
shock_one__ has joined #ruby
shock_one_ has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
InhalingPixels has joined #ruby
skammer has joined #ruby
krisquigley has joined #ruby
Akagi201 has quit []
mr-foobar has joined #ruby
<Hanmac> RyanV set the values in initialize to default if needed, but otherwise its not bad to set the vars lazily
timgauthier has joined #ruby
<j4jackj> ._.
timgauthier is now known as timgauthier_isaw
Macaveli has joined #ruby
codecop has joined #ruby
chabier has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 260 seconds]
skammer has quit [Ping timeout: 260 seconds]
devyn has quit [Read error: Connection reset by peer]
devyn has joined #ruby
arup_r has quit [Remote host closed the connection]
<RyanV> Hanmac, so heres like a really arbirary example of a use case http://pastie.org/9566900
fnordperfect has joined #ruby
robbyoconnor has joined #ruby
Stalkr_ has joined #ruby
<RyanV> err, small typo there, http://pastie.org/9566936
corehook has quit [Remote host closed the connection]
nhhagen has joined #ruby
kireevco has quit [Quit: Leaving.]
corehook has joined #ruby
<Hanmac> hm yeah thats a usecase ... hm but in that sample i dont know if it would be better if the data would be loaded at init, or if the path would be make absolute before setting @config_path ... because the current dir might change between #initialize and #raw_data
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maestrojed has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
chabier has quit [Remote host closed the connection]
memph1s has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
hiyosi has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
timonv_ has joined #ruby
sparrovv has joined #ruby
enriclluelles has joined #ruby
memph1s has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
rkalfane has joined #ruby
timonv_ has quit [Remote host closed the connection]
baltazore has joined #ruby
ht__th has joined #ruby
<RyanV> good point Hanmac. i guess its all just about the use case.
Channel6 has quit [Quit: Leaving]
patrick99e99 has quit [Ping timeout: 272 seconds]
Wolland has quit []
rkalfane has quit [Client Quit]
starkhalo has quit [Ping timeout: 245 seconds]
tectonic has quit []
Tomme has joined #ruby
shock_one__ has quit [Quit: Lingo - http://www.lingoirc.com]
angusigu1ss has joined #ruby
chabier has joined #ruby
HelperW_ has joined #ruby
ghr has joined #ruby
sambao21 has joined #ruby
a_ has joined #ruby
anarang has joined #ruby
oo_ has quit [Remote host closed the connection]
adironduck has joined #ruby
arup_r has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 258 seconds]
igaiga has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
chabier has quit [Quit: Leaving...]
sambao21 has quit [Ping timeout: 245 seconds]
mr-foobar has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
Cecen has joined #ruby
Wolland_ has joined #ruby
rkalfane has joined #ruby
shock_one has joined #ruby
fabrice31 has joined #ruby
hmsimha has quit [Read error: Connection reset by peer]
Cecen_ has quit [Ping timeout: 260 seconds]
hmsimha has joined #ruby
cougarten has quit [Read error: Connection reset by peer]
linduxed has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
igaiga has quit [Remote host closed the connection]
unshadow has joined #ruby
shock_one has quit [Ping timeout: 260 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
hiyosi has joined #ruby
corehook has quit [Read error: Connection reset by peer]
corehook has joined #ruby
Ghis has joined #ruby
ctp has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
igaiga has joined #ruby
davasaur_ has quit [Remote host closed the connection]
cndiv has joined #ruby
awc737 has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
AxonetBE has joined #ruby
sparrovv has quit [Remote host closed the connection]
Akagi201 has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
timonv_ has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
ehlovader has quit [Ping timeout: 240 seconds]
St_Marx has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aganov has joined #ruby
luckyruby has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
dphase has quit [Ping timeout: 240 seconds]
dphase has joined #ruby
Akagi201 has joined #ruby
unshadow has quit [Quit: leaving]
sparrovv has quit [Ping timeout: 272 seconds]
francisfish has quit [Remote host closed the connection]
yacks has joined #ruby
jle` has quit [Ping timeout: 255 seconds]
jimeh_ has quit [Ping timeout: 260 seconds]
jle` has joined #ruby
x1337807x has joined #ruby
timonv_ has quit [Ping timeout: 258 seconds]
x1337807x has quit [Max SendQ exceeded]
tsunamie has quit [Ping timeout: 260 seconds]
pagios has quit [Write error: Connection reset by peer]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
pwestlund has joined #ruby
mnemon has quit [Remote host closed the connection]
jimeh has joined #ruby
Lewix has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
skammer has joined #ruby
JoshGlzBrk has joined #ruby
igaiga has quit [Remote host closed the connection]
mnemon has joined #ruby
yacks has quit [Quit: Leaving]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
InhalingPixels has quit [Ping timeout: 272 seconds]
max06 has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
skammer has quit [Ping timeout: 272 seconds]
fnordperfect has quit [Quit: WeeChat 1.0]
ItSANgo_ has joined #ruby
koupe has joined #ruby
Sht0 has joined #ruby
echevemaster has quit [Remote host closed the connection]
koupe has quit [Quit: Leaving]
mkaesz has joined #ruby
gvenkat_ has joined #ruby
neonixcoder has quit [Quit: Leaving.]
bruno- has joined #ruby
alex88 has joined #ruby
gvenkat has quit [Ping timeout: 260 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
neonixcoder has joined #ruby
himsin has joined #ruby
arup_r has quit []
mikeg_ has joined #ruby
thomasxie has joined #ruby
emocakes has joined #ruby
Juanchito has joined #ruby
yacks has joined #ruby
igaiga has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
sk87 has joined #ruby
mikeg has quit [Ping timeout: 272 seconds]
p0sixpscl has joined #ruby
emocakes__ has quit [Ping timeout: 272 seconds]
msx has quit [Quit: WeeChat 1.0]
ehlovader has joined #ruby
ixti has joined #ruby
thomasxie has left #ruby [#ruby]
ndrei has joined #ruby
shredding has joined #ruby
Rollabunna has joined #ruby
igaiga has quit [Remote host closed the connection]
aapole has quit [Ping timeout: 246 seconds]
FracV has quit [Ping timeout: 272 seconds]
FracV has joined #ruby
jxport_ has quit [Ping timeout: 246 seconds]
aapole has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adironduck has quit [Quit: adironduck]
manacit has quit [Ping timeout: 255 seconds]
jxport has joined #ruby
Raboo has quit [Ping timeout: 250 seconds]
diegoviola has quit [Ping timeout: 245 seconds]
neonixcoder has quit [Quit: Leaving.]
dRbiG has quit [Ping timeout: 250 seconds]
igaiga has joined #ruby
anildigital is now known as zz_anildigital
timonv_ has joined #ruby
adironduck has joined #ruby
stnly has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
manacit has joined #ruby
pagioss has joined #ruby
stnly has joined #ruby
Raboo has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
mikeg_ has quit [Ping timeout: 258 seconds]
aspiers has joined #ruby
kyb3r_ has joined #ruby
maetthew has quit [Ping timeout: 260 seconds]
gvenkat_ has quit [Quit: Leaving]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elfo222 has quit [Ping timeout: 246 seconds]
angusigu1ss has joined #ruby
melik_ has quit [Quit: Computer has gone to sleep.]
luckyruby has joined #ruby
amundj_ has quit [Ping timeout: 246 seconds]
adironduck has quit [Ping timeout: 260 seconds]
elfo222 has joined #ruby
maetthew has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
adironduck has joined #ruby
dRbiG has joined #ruby
ghr has joined #ruby
<Macaveli> Hi All! can you run rails console and inject the first line? Something like i've tried here -> https://www.evernote.com/shard/s389/sh/721742df-3534-4e04-8c8c-a95c0c21d9f0/5b9446f6dcc0140eb5d3986aa0ed2827
rkalfane has quit [Ping timeout: 260 seconds]
ta has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
amundj has joined #ruby
_izz_ has quit [*.net *.split]
Affix has quit [*.net *.split]
mateu has quit [*.net *.split]
rkalfane has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 246 seconds]
<Hanmac> Macaveli: #rubyonrails ?
Cecen_ has joined #ruby
terlar has joined #ruby
<Macaveli> not sure
<Macaveli> maybe #mac related
<sevenseacat> don't think we'll click his random links there either.
zz_karupa has quit [Ping timeout: 246 seconds]
kaspergrubbe has joined #ruby
skammer has joined #ruby
<Macaveli> it's a screenshot uploaded from Skitch
francisfish has joined #ruby
vt102 has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
maetthew has quit [Ping timeout: 260 seconds]
SouL has quit [Quit: No Ping reply in 180 seconds.]
jusmyth has left #ruby [#ruby]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
Cecen has quit [Ping timeout: 276 seconds]
timonv_ has joined #ruby
SouL has joined #ruby
Deele has joined #ruby
krisquigley has quit [Remote host closed the connection]
chth0n has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vt102 has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
linojon has joined #ruby
<Hanmac> Macaveli: i mean when somethig in the Rails console does not work, why not ask in a channel for #rubyonrails ?
zz_karupa has joined #ruby
<Macaveli> I shall :p
<Macaveli> I taught it was named ruby console btw
<Macaveli> thaught*
zz_karupa is now known as karupa
maetthew has joined #ruby
<Macaveli> thought*
sevvie has joined #ruby
Asher has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
abuzze has quit []
dumdedum has joined #ruby
Asher has joined #ruby
maetthew has quit [Ping timeout: 260 seconds]
sprihodko has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
aspiers has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
msx has joined #ruby
webguynow has quit [Ping timeout: 258 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
maetthew has joined #ruby
igaiga has quit [Remote host closed the connection]
igaiga has joined #ruby
mateu has joined #ruby
_izz_ has joined #ruby
Affix has joined #ruby
tsunamie has joined #ruby
tsunamie has quit [Max SendQ exceeded]
tsunamie has joined #ruby
mikecmpbll has joined #ruby
zz_anildigital is now known as anildigital
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has joined #ruby
andrewlio has joined #ruby
skammer has joined #ruby
willgo has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
Takle has joined #ruby
dumdedum has quit [Ping timeout: 245 seconds]
elaptics`away is now known as elaptics
banister has joined #ruby
[gmi] has joined #ruby
Kurvivor has joined #ruby
InhalingPixels has joined #ruby
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
bruno- has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
a_ has quit [Ping timeout: 260 seconds]
Scotteh has joined #ruby
abuzze has joined #ruby
tlarevo has joined #ruby
linojon has quit [Quit: linojon]
mengu has joined #ruby
mengu has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
lnong has quit [Quit: ~Surprise.]
BLuEGoD has quit [Quit: oh cruel destiny]
bruno- has quit [Ping timeout: 245 seconds]
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
Aaaal has joined #ruby
abdulsattar has quit [Ping timeout: 258 seconds]
cndiv has quit [Quit: WeeChat 0.4.3]
luckyruby has quit [Remote host closed the connection]
roolo has joined #ruby
justinmcp_ has quit []
corehook has quit []
igaiga has quit [Remote host closed the connection]
resting has joined #ruby
dumdedum has joined #ruby
charliesome has quit [Quit: zzz]
einarj has joined #ruby
<resting> anyone has any clues how to find all combinations of numbers that adds to sum of n?
<resting> if n = 3, it should return [3], [2,1], [1,1,1]
bweston92 has joined #ruby
<wasamasa> my clue is writing up an algorithm for that
<joonty> oh snap
oponder has joined #ruby
* wasamasa grabs his sunglasses
tiguser has quit [Ping timeout: 245 seconds]
<resting> ya..thats where i'm stuck
Morkel has joined #ruby
<joonty> i haven't really thought this through, but...
<joonty> in fact, no
<joonty> that wouldn't work
rdark has joined #ruby
<wasamasa> just write a prolog interpreter in ruby and steal a prolog solution
<Wolland_> there will be a ton of combinations even for 2 digit number
lolmaus has quit [Read error: Connection reset by peer]
yvemath has joined #ruby
<joonty> i'm assuming minus numbers aren't included
yvemath is now known as Guest93809
Poky has joined #ruby
<sevenseacat> its one of those things that if you know the exact algorithm it would be trivial
<joonty> otherwise known as "negative numbers"
<sevenseacat> if you dont, it would be impossible
<Kurvivor> seems simple enough
lolmaus has joined #ruby
<wasamasa> resting: what exactly would you need it for?
<joonty> wasamasa: i'm assuming some sort of world takeover
<Hanmac> resting: hm even if it does look like homework i have a solution for you
<wasamasa> joonty: meh, if it were that easy
<Kurvivor> for 2 numbers, all combinations are given by a loop
Spami has joined #ruby
ixti has quit [Quit: WeeChat 1.0]
<Hanmac> >> n = 3; (1..n).flat_map {|i| (1..n).to_a.repeated_combination(i).select {|s| s.inject(:+) == n } }
<eval-in_____> Hanmac => [[3], [1, 2], [1, 1, 1]] (https://eval.in/194917)
<Hanmac> >> n = 4; (1..n).flat_map {|i| (1..n).to_a.repeated_combination(i).select {|s| s.inject(:+) == n } }
<eval-in_____> Hanmac => [[4], [1, 3], [2, 2], [1, 1, 2], [1, 1, 1, 1]] (https://eval.in/194918)
<sevenseacat> whoa
<Kurvivor> everything else is given by recursive call on the last element of the sum and concatenating result to first elements
<resting> wasamasa: its a technical question i'm being asked.
<joonty> Hanmac we were all thinking that :/
<sevenseacat> Hanmac: did you just... come up with that
<Hanmac> sevenseacat: yeah i pulled it out of my nose ;P
<wasamasa> resting: like in one of those silly job interviews?
jobewan has quit [Quit: Leaving]
<joonty> out of his Big Book of Everday Algorithms (TM)
<resting> wasamasa: yup..i guess its common nowadays?
* sevenseacat will take an hour to try and understand that
<wasamasa> resting: depends on where you live
<Wolland_> >> n = 20; (1..n).flat_map {|i| (1..n).to_a.repeated_combination(i).select {|s| s.inject(:+) == n } }
<wasamasa> resting: not here certainly
fold has quit [Ping timeout: 246 seconds]
<eval-in_____> Wolland_ => (https://eval.in/194922)
<Wolland_> :)
bjornar has joined #ruby
relix has joined #ruby
<wasamasa> "Time limit exceeded (wall clock)"
<resting> gotta try out Hanmac
tiguser has joined #ruby
<resting> 's solution
<wasamasa> do you even understand what it does?
<sevenseacat> Wolland_: i think you killed it
elstif has joined #ruby
<Wolland_> yep
<resting> no..understanding comes later if it works
<wasamasa> :|
<Hanmac> sevenseacat: hm no the bot has a timeout ... hm the current code is very time consuming ... i might need to write it better
kedare has joined #ruby
Jake232 has joined #ruby
BLuEGoD has joined #ruby
<joonty> Hanmac: sloppy
<resting> Hanmac: ah..you sux!
<joonty> you should have spent 9 seconds on it, instead of 5
<resting> it works! omg
x1337807x has quit [Ping timeout: 255 seconds]
lowandslow has joined #ruby
ephemerian has joined #ruby
timonv_ has joined #ruby
<resting> Hanmac: how long have you been doing ruby man
<Hanmac> hm a few years ... but most of them not for work
ehlovader has quit [Ping timeout: 245 seconds]
<resting> awesome. if not for work, then for hobby?
angusigu1ss has joined #ruby
sarkis has quit [Quit: WeeChat 1.0]
W0rmDr1nk has joined #ruby
willgo has joined #ruby
Scotteh_ has joined #ruby
mengu has quit [Remote host closed the connection]
martin___ has joined #ruby
ehlovader has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mpajor has joined #ruby
Scotteh has quit [Ping timeout: 260 seconds]
<agent_white> That's always a wierd question... I modified CS 1.6 hacks when I was 14 and programmed some python, went to university for ~2 years and wrote C++... but only in the past ~8 months I've written ruby, and I say I've been programming for less than a year.
stef_204 has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
<sevenseacat> i wrote some of the world's worst guestbook, poll and forum software (in perl) when i was 14 - i dont count that as part of my programming career
martin___ has quit [Remote host closed the connection]
Cecen has joined #ruby
<mpajor> I never say that I program - it only brings more to the table.
amundj has quit [Ping timeout: 258 seconds]
willgo has quit [Remote host closed the connection]
<sevenseacat> nor do i count the tinkering in qbasic i did when i was 10 :D
<agent_white> sevenseacat: Yeah mine is even less so... I don't count my university experience as it didn't really teach more than I learned outside of it... and only in the past ~8 months have I really gotten on my computer and programmed everytime I was on it.
martin___ has joined #ruby
tokik has joined #ruby
spacemud has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Cecen_ has quit [Ping timeout: 260 seconds]
<agent_white> Then I see experienced people having trouble with vim and I wonder how in hell that works when I can't design classes.
<sevenseacat> i count mine from when i started getting paid to program
* agent_white moves himself to offtopic
x1337807x has joined #ruby
<agent_white> sevenseacat: I _would_ from my last job... but that's when I learned ruby... ~8 months ago haha. "Hey you know linux well, we need to setup automation and deployment! So... puppet... is ruby... oh also, we need tests for our website! So... ruby and rspec!"
<resting> if you're an experienced programmer in say php or java like about 8 years of exp, is it right that you should get a newbie's position for ruby?
timonv_ has quit [Remote host closed the connection]
<agent_white> agent_white - "Uh... I've never heard of ruby. But you gottit bawss!"
amundj has joined #ruby
krisquigley has joined #ruby
Wolland_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<sevenseacat> '8 years of experience' gives you zero information about skill
<sevenseacat> so with that information, yes, yes they should
Wolland has joined #ruby
<agent_white> resting: Don't quote me, as you've seen what I said, but what do those have to do with ruby? -- "I've driven cars before, so if you need a motorcyclist I'm your man! motors is motors!"
_tpavel has joined #ruby
<agent_white> Welp! Nvm! ;P
carraroj has joined #ruby
Scotteh_ has quit [Ping timeout: 260 seconds]
martin___ is now known as vicplenty
<agent_white> resting: I think you'd have less of a shot than an actual ruby-noob, since you are both ruby noobs but you would ask for a higher salary.
<resting> sevenseacat: i see. that sad cause it doesn't give devs the motivation to pick up new skills
<sevenseacat> sorry, what?
hamakn has quit [Read error: Connection reset by peer]
<sevenseacat> if you spend 8 years as a shitty copy&paste php programmer you want to come in the door as a senior ruby dev?
<wasamasa> salary == motivation?
<resting> agent_white: thats true. are developers better off with doing just what they started off with?
<wasamasa> I hope not
<agent_white> Fuck if motivation was for a paycheck I should leave this channel and quit programming ;)
hamakn has joined #ruby
<fella5s> wasamasa, definedly part of it
* wasamasa backs out
<agent_white> wasamasa: I agree :)
hiyosi has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
marr has joined #ruby
Scotteh has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
<resting> sevenseacat: i see your point. i guess that why senior guys gets are stuck with what they do.
<sevenseacat> what are you talking about
<fella5s> Well you can program for fun but when you do it for living and are underpaid then you get demotivated quickly
mikeg_ has joined #ruby
<resting> sevenseacat: as in those who are doing one language for most part of his career will find it difficult to swtich
x1337807x has quit [Ping timeout: 272 seconds]
<sevenseacat> incorrect
roolo has quit [Quit: Leaving...]
<resting> why? i doubt most people wouldn't want a pay drop
<sevenseacat> for about the fifth time, it depends on skill
timonv_ has joined #ruby
<sevenseacat> 'years of expeirence' means jaclk shit
Takle has quit [Remote host closed the connection]
<resting> the problem is you're doing a switch to something new. so there's no skill to speak of, as you agreed too earlier
x1337807x has joined #ruby
<agent_white> fella5s: I think if you're underpaid then you're demotivated not by the programs but by your employer.
<sevenseacat> that is not what i said.
hiyosi has quit [Ping timeout: 245 seconds]
<sevenseacat> skills are not just in specific languages.
Juzdan has joined #ruby
<agent_white> fella5s: My first "salaried" job was only at $9/hr., no overtime, and I worked 60 hour weeks for 40hour pay... I could've made more waiting tables for part-time at a restaurant.
<resting> people wouldn't buy that i suppose.
<agent_white> I wasn't demotivated by learning :)
SouL has quit [Ping timeout: 272 seconds]
<fella5s> so you got paid actually like $6/h
startupality has joined #ruby
<agent_white> Thoug, at the same time, they expected me to learn a new language (being a 'hello world' programmer), and use it to deploy servers and write unit tests. I wasn'
<agent_white> fella5s: Haha yes... I never thought about it that way.
roolo has joined #ruby
<agent_white> But, I wasn't demotivated by it (learning and using new shit for work?! fuck yeah!), but the lack of expectations and support killed me.
<agent_white> Yet I just got a job offer today for an
<agent_white> _actual_ salary... and doesn't require any of that.
<fella5s> well, I think that's different since you are actually paid to learn something
* agent_white goes to offtopic to rant
<agent_white> fella5s: -ish. You programmers who program for a living are paid to learn something everyday.
Takle has joined #ruby
<fella5s> Yeah, thank god my new project is on language I'm never worked
<fella5s> (which is ruby)
<fella5s> but this shit is easy as hell
mikeg_ has quit [Quit: Leaving...]
<agent_white> For me, it's not easy, but just beautiful :)
<agent_white> I fell in love after messing in the REPL.
a has joined #ruby
<agent_white> It does what I want, and when I don't know how to do what I want, it helps me along the way.
a is now known as Guest52602
<agent_white> Like the programmer at that old-company "hated ruby"... but I asked him for help... and he'd say out loud "I wonder if..." write some ruby knowing no ruby at all... and it'd work.
<agent_white> Ruby is like a programmer's pillow it seems.
<resting> i'm wondering how ruby helped you learn ruby
<agent_white> Pillows don't tell you how to sleep on them... they let you sleep on them in whatever way works for you.
<agent_white> resting: Heh? I didn't know ruby prior to that.
<agent_white> resting: Neither did that programmer.
bruno- has joined #ruby
<resting> hm..ok..i like ruby. but its gigantic features will take a while to learn
<agent_white> I think irb/pry helped me learn ruby. That and _why's guide since it made it an adventure :)
<agent_white> resting: Noone knows any language's full API.
JonnieCache has joined #ruby
<agent_white> erm,,, stdlib.
<agent_white> Whatever.
Scotteh has quit [Ping timeout: 260 seconds]
<fella5s> i wouldn't know how to program without internet
Beoran has quit [Ping timeout: 245 seconds]
<agent_white> ^^
<fella5s> well i would if i had apidocs in hand
<resting> agent_white: ya true. but whenever someone comes up with a sweet solution, and you'll go meh…why didn't i know what method..
<agent_white> Without google, stackexchange, and irc, I would probably be handling your businesse's employee's inability to turn on their computer.
InhalingPixels has joined #ruby
<agent_white> resting: That's what I learnt early on with ruby... there's just LOTS of different ways to do one thing.
<resting> totally agree
enriclluelles has quit [Remote host closed the connection]
<resting> lots of smart people out there too
<agent_white> Which is sweet! Why fall into the status-quo when so many people have ideas of how to do it!
jhass|off is now known as jhass
bruno- has quit [Ping timeout: 258 seconds]
<agent_white> resting: Indeed! "current problems are caused by current thinking..." -- ruby seems to not give THE ONLY WAY to do it, but say 'hey, give it a go'
EasyCo has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
<agent_white> It's fun to see some really simple questions on stackexchange give so many different answers, and not just the same answer in different colors.
InhalingPixels has quit [Ping timeout: 260 seconds]
<resting> agent_white: ya..i'm wondering if technical question will ask things like write 3 different ways to do ..
Scotteh has joined #ruby
<resting> will kill lots of brain cells i guess
carraroj has quit [Ping timeout: 240 seconds]
Morkel_ has joined #ruby
emocakes__ has joined #ruby
<agent_white> resting: I don't think it would... it should ask "how would you do..."
igaiga has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
emocakes has quit [Ping timeout: 246 seconds]
Scotteh_ has joined #ruby
<resting> haha..if the interviewer wants to troll or really test their creativity..maybe?
<agent_white> True!
<agent_white> Or, without an interviewer, how many ways you could solve a single problem?
<agent_white> That actually would be a good idea... -- but yeah, never heard of an interviewer asking for multiple solutions for a single problem.
Scotteh has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
<agent_white> So...
<agent_white> kinda off topic
<agent_white> But since I couldn't get it out of anyone in #learnprogramming
timgauthier has joined #ruby
<resting> ?? whats that about?
Guest52602 has quit [Ping timeout: 245 seconds]
Beoran has joined #ruby
<agent_white> How do you guys timebox your work? I'm starting a new job in a week that will be requiring me to work from anywhere to ~10 to ~20 clients atta-time (though doing more design-oriented work)... and I'm trying to avoid "hyperfocusing" on a single client at once before moving onto the next oen.
<agent_white> s/oen/one/
lkba has quit [Ping timeout: 245 seconds]
<agent_white> I know it's a general question, but I don't really know who or where to ask...
sevvie has quit [Ping timeout: 272 seconds]
tokik has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Remote host closed the connection]
<agent_white> Each day, do you "work on each client's project for 1hr." ? Or... ?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
a_ has joined #ruby
Advocation has quit [Client Quit]
Scotteh_ has quit [Ping timeout: 272 seconds]
msx has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
<agent_white> Or... maybe a channel I can go to in order to get opinions on it... I asked #learnprogramming, but didn
flagg0204 has quit [Ping timeout: 258 seconds]
<agent_white> didn't get anything*... maybe I'm looking in the wrong places.
nhhagen has quit [Remote host closed the connection]
Tomme has quit [Ping timeout: 260 seconds]
flagg0204 has joined #ruby
narph has joined #ruby
<narph> Is there any documentation about which subset of Bundler-functionality is supported by Rubygems?
mrgrieves has joined #ruby
Scotteh has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
banister has joined #ruby
Rollabunna has joined #ruby
Advocation has joined #ruby
<mrgrieves> hi, I'm using gitlab's ruby suggested api client and when I query for projects I get an array of what appear to be hashes but have no idea on how to access the hash keys within the array http://pastebin.com/aGtMNnSF . Any suggestions?
baltazore has quit [Remote host closed the connection]
carraroj has joined #ruby
roolo has quit [Quit: Leaving...]
RyanV has quit [Quit: Computer has gone to sleep.]
<JonnieCache> agent_white: 10-20 clients at once sounds like a lot
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<JonnieCache> agent_white: personally id have to use a literal alarm clock kinda system to make that work
tvw has joined #ruby
vicplenty has quit []
charliesome has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
enriclluelles has joined #ruby
baltazor_ has joined #ruby
charliesome has quit [Client Quit]
adironduck has quit [Quit: adironduck]
Avahey_ has quit [Quit: Connection closed for inactivity]
angusigu1ss has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
a_ has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
igaiga has quit [Remote host closed the connection]
igaiga has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
SouL has joined #ruby
cmxu has joined #ruby
puppeh has joined #ruby
<puppeh> does it make sense to check if an element is included in the array before calling `#delete`?
<puppeh> ...in order to determine if you want to call `#delete` or not?
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
angusigu1ss has quit [Ping timeout: 272 seconds]
sectionme has joined #ruby
roolo has joined #ruby
Cecen_ has joined #ruby
Takle has joined #ruby
<JonnieCache> i think it just returns nil if the thing isnt there
<JonnieCache> try it and find out
emmesswhy has joined #ruby
<certainty> puppeh: no to find out if it is there you will have to traverse it too
ssut__ has joined #ruby
<certainty> so it doesn't gain you much imho
<puppeh> yeah that was my oppinion
<puppeh> i meant performance wise, both methods iterate over the array
<certainty> yeah
<puppeh> and the actual deletion must be very fast anyway
<certainty> yes
<certainty> also if you check first and delete afterwards you actually run through the elements twice
compAz has joined #ruby
<certainty> (upto the element that has to be deleted)
<certainty> of course this is all under the assumption that arrays are reperesented with a datastructure that requires O(n) to find an element
<certainty> but it think that's true for ruby's arrays
<JonnieCache> itd be a sorry state of affairs if it werent
msx has joined #ruby
<certainty> it could be less
<certainty> but you would probably pay for it with greater update complexity
<JonnieCache> ah i see
<JonnieCache> yes i think theyre just O(n)
Cecen has quit [Ping timeout: 276 seconds]
pagioss is now known as pagios
kevkev has joined #ruby
a_ has joined #ruby
krisquigley has joined #ruby
Juzdan has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
Juzdan has joined #ruby
AlSquire has joined #ruby
duncannz has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
nhhagen has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
hiyosi has joined #ruby
banister has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
warprobot has joined #ruby
mofai has joined #ruby
Wolland has joined #ruby
puppeh has quit [Read error: No route to host]
shredding has joined #ruby
igaiga has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
j4rh3rd has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
hiyosi has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
mattstratton has joined #ruby
nhhagen__ has joined #ruby
mattstratton has quit [Max SendQ exceeded]
rdark has quit [Quit: leaving]
mattstratton has joined #ruby
rdark has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
nhhagen__ has quit [Read error: Connection reset by peer]
mattstratton has quit [Max SendQ exceeded]
nhhagen has joined #ruby
nhhagen_ has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
toretore has joined #ruby
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
x1337807x has quit [Ping timeout: 245 seconds]
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
mattstratton has joined #ruby
gr33n7007h has joined #ruby
warprobot has quit [Remote host closed the connection]
Takle has joined #ruby
toretore has quit [Client Quit]
RyanV has joined #ruby
angusigu1ss has joined #ruby
banister has quit [Read error: Connection reset by peer]
adironduck has joined #ruby
mengu has quit [Remote host closed the connection]
sk87 has joined #ruby
agent_white has quit [Quit: leaving]
nhhagen_ has joined #ruby
Ca11yWally has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
t_p has quit [Quit: Computer has gone to sleep.]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has joined #ruby
Ca11yWally has quit [Remote host closed the connection]
ta has quit [Quit: Leaving...]
dawkirst has joined #ruby
rgcouk has joined #ruby
InhalingPixels has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
wald0 has quit [Read error: No route to host]
wald0 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ta has joined #ruby
Wolland has quit [Remote host closed the connection]
tiguser has quit [Ping timeout: 272 seconds]
banister has joined #ruby
mengu has joined #ruby
<Hanmac> resting: i found better way: (look at that 1..(n-i+1))
<Hanmac> >> n = 20; (1..n).flat_map {|i| (1..(n-i+1)).to_a.repeated_combination(i).select {|s| s.inject(:+) == n } }
toretore has joined #ruby
<eval-in_____> Hanmac => (https://eval.in/194957)
patrick99e99 has joined #ruby
<Hanmac> >> n = 15; (1..n).flat_map {|i| (1..(n-i+1)).to_a.repeated_combination(i).select {|s| s.inject(:+) == n } }
<eval-in_____> Hanmac => [[15], [1, 14], [2, 13], [3, 12], [4, 11], [5, 10], [6, 9], [7, 8], [1, 1, 13], [1, 2, 12], [1, 3, 11], [1, 4, 10], [1, 5, 9], [1, 6, 8], [1, 7, 7], [2, 2, 11], [2, 3, 10], [2, 4, 9], [2, 5, 8], [2, 6, ... (https://eval.in/194962)
tiguser has joined #ruby
doodlehaus has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.1/20140911151253]]
ndrei has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
SDr has left #ruby [#ruby]
nhhagen has joined #ruby
Rhainur has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
wald0 has quit [Ping timeout: 255 seconds]
<Rhainur> what's the best way to generate and join a large array of strings?
<wasamasa> raid a string factory
W0rmDr1nk has quit [Ping timeout: 260 seconds]
adac has joined #ruby
<adac> there must be a shorter and easier way to do this, right? https://gist.github.com/anonymous/6fa77b71cb60b546cdaf
<canton7> that's a really vague question, Rhainur :P
<canton7> adac, there is! ;)
gr33n7007h has quit [Quit: Leaving]
<canton7> current_user.uploaded_image? ? current_user.uploaded_image : default_avatar
<canton7> if current_user.uploaded_image returns nil when current_user.uploaded_image? returns false, then you can write current_user.uploaded_image || default_avatar
roolo has quit [Quit: Leaving...]
suy has quit [Remote host closed the connection]
suy has joined #ruby
<joonty> Rhainur: (["wtf"] * 1000).join
KC9YDN has joined #ruby
tjr9898 has joined #ruby
<joonty> 1000.times.map { "wtf" }.join
<agent_white> .ws
<Hanmac> joonty: i am unsure if it isnt better to join first and then multiply it with a number
<joonty> Hanmac: I'll be honest, I was being a bit facetious
<joonty> Hanmac: do you mean performance-wise?
wald0 has joined #ruby
<Hanmac> joonty: yeah i think it might be performance safer to have one small string and then multiply to a big string than having one array, multiply to a big array and then join it to a big string
<joonty> you're quite right Hanmac
tjr9898 has quit [Ping timeout: 245 seconds]
lowandslow_ has joined #ruby
<joonty> quick benchmark showed it to be in the order of 10 times faster
skip_freely has joined #ruby
<joonty> but Rhainur wanted arrays and joins, for some reason as yet undisclosed
hellangel7 has joined #ruby
zarubin has joined #ruby
Cecen has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
User458764 has joined #ruby
hellangel7 has joined #ruby
gr33n7007h has joined #ruby
lowandslow has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
starlordeisroyal has joined #ruby
parametaortho has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
Cecen_ has quit [Ping timeout: 258 seconds]
starlordeisroyal has quit [Client Quit]
hellangel7 has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
hellangel7 has joined #ruby
maq has joined #ruby
Takle has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 258 seconds]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
charliesome has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
hiyosi has joined #ruby
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
koupe has joined #ruby
sparrovv has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
pomson6000 has joined #ruby
roolo has joined #ruby
adironduck has quit [Quit: adironduck]
caliostro has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
dawkirst has joined #ruby
Juzdan has quit [Read error: Connection reset by peer]
Juzdan has joined #ruby
banister has quit [Client Quit]
<adac> canton7, thanks a lot mate!
Rollabunna has joined #ruby
Jake232 has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus__ has joined #ruby
lolmaus_ has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
andrewh has quit [Ping timeout: 258 seconds]
andrewh has joined #ruby
<adac> canton7, for some reasons current_user.uploaded_image || default_avatar does not seem to work, even though current_user.uploaded_image? returns false
dfish has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
gccostabr has joined #ruby
sinkensabe has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
emocakes has joined #ruby
InhalingPixels has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
cirn0 has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
roolo has joined #ruby
compAz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emocakes__ has quit [Ping timeout: 255 seconds]
mailo has joined #ruby
mailo has quit [Client Quit]
InhalingPixels has quit [Ping timeout: 272 seconds]
cirn0 has quit [Ping timeout: 258 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
decoponio has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
sk87 has joined #ruby
linojon has joined #ruby
<gregf_> >> class User; DEFAULT_AVATAR = "me.jpg"; attr_accessor :upload_image; def initialize params; params.each{|k, v| send "#{k}=",v }; end; def upload_image?; return !self.upload_image.nil?; end; end; [nil, "test.jpg"].each { |img| curr_user = User.new(upload_image: img); p curr_user.upload_image? ? curr_user.upload_image : User::DEFAULT_AVATAR }
<eval-in_____> gregf_ => "me.jpg" ... (https://eval.in/194981)
Tomme has joined #ruby
compAz has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
linojon_ has joined #ruby
linojon has quit [Ping timeout: 258 seconds]
linojon_ is now known as linojon
banister has joined #ruby
adironduck has joined #ruby
Scotteh_ has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
<pomson6000> My RVM installation is gone whenever I log out?
<pomson6000> I installed RVM in my remote server and it's just gone afterwards. I dunno what's wrong
<pomson6000> I re-installed and then same thing happened
Macaveli has joined #ruby
scrooge_mcduck has joined #ruby
<scrooge_mcduck> i am having a weird problem bundle doesn't accept my admin password on the mac :/
gccostabr has quit [Quit: ZZZzzz…]
ndrst_ is now known as ndrst
Scotteh has quit [Ping timeout: 260 seconds]
mengu has quit [Remote host closed the connection]
HelperW_ has quit [Quit: Lingo - http://www.lingoirc.com]
<wasamasa> why would bundle need that ._.
<scrooge_mcduck> Your user account isn't allowed to install to the system Rubygems. :/
<gr33n7007h> pomson6000, what OS
Takle has quit [Remote host closed the connection]
shredding has joined #ruby
malcolmva has quit [Ping timeout: 255 seconds]
SouL has quit [Ping timeout: 245 seconds]
Aaaal has quit [Quit: Aaaal]
Aaaal has joined #ruby
plantigrade has joined #ruby
malcolmva has joined #ruby
avelldiroll has quit [Ping timeout: 250 seconds]
<pomson6000> green7007 Linux (specifically ubuntu). I did the source thingy as well.
plantigrade has quit [Client Quit]
<gr33n7007h> pomson6000, type: bash -l then type rvm see if that works
lkba has joined #ruby
SouL has joined #ruby
avelldiroll has joined #ruby
ldnunes has joined #ruby
dumdedum_ has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
<pomson6000> gr33n7007h ya it does
<gr33n7007h> pomson6000, go to preferences in terminal and enable run command as login shell
kaspertidemann has joined #ruby
mengu has joined #ruby
mtncode has joined #ruby
adironduck has quit [Quit: adironduck]
jottr_ has joined #ruby
linojon has quit [Quit: linojon]
wald0 has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
phoo1234567 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
yalue has joined #ruby
dawkirst has quit [Remote host closed the connection]
sinkensabe has joined #ruby
a___ has joined #ruby
agent_wh1te has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
phoo1234567 has quit [Max SendQ exceeded]
dawkirst has joined #ruby
magicien_ has quit [Quit: leaving]
phoo1234567 has joined #ruby
magicien has joined #ruby
Cecen_ has joined #ruby
Takle has joined #ruby
yfeldblum has joined #ruby
a_ has quit [Ping timeout: 258 seconds]
dawkirst has quit [Ping timeout: 272 seconds]
Cecen has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
Juzdan has quit [Quit: Leaving...]
<canton7> adac, define "doesn't seem to work"
anaeem___ has joined #ruby
postmodern has quit [Quit: Leaving]
francisfish has quit [Remote host closed the connection]
j4rh3rd has quit [Quit: Leaving]
clauswitt has joined #ruby
dawkirst has joined #ruby
anaeem1__ has quit [Ping timeout: 245 seconds]
hanjianwei has joined #ruby
hiyosi has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkphenom has joined #ruby
cmxu has joined #ruby
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
User458764 has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
a___ has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
apeiros has joined #ruby
a_ has joined #ruby
andrewh has quit [Ping timeout: 245 seconds]
himsin has quit [Ping timeout: 245 seconds]
skammer has joined #ruby
anaeem___ has quit [Remote host closed the connection]
himsin has joined #ruby
anaeem1 has joined #ruby
fsapo has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
angusigu1ss has joined #ruby
kamilc__ has joined #ruby
aclearman037 has joined #ruby
skammer has quit [Ping timeout: 258 seconds]
caliostro has quit [Read error: Connection reset by peer]
calife has joined #ruby
angusigu1ss has quit [Ping timeout: 258 seconds]
GriffinHeart has joined #ruby
InhalingPixels has joined #ruby
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
nettoweb has joined #ruby
fbernier has quit [Quit: ZNC - http://znc.in]
<shevy> test
<agent_wh1te> shevy: TEST FAILED. IMPLODING IN 5...4...3...2...
enriclluelles has quit [Remote host closed the connection]
<shevy> yeah
<shevy> was wondering if I was still connected
InhalingPixels has quit [Ping timeout: 258 seconds]
<apeiros> /kick imploded ?
a_ has quit [Ping timeout: 272 seconds]
<shevy> I bought a new computer perhaps 2 months or so; a lot of my reconnection problems are now gone. There was some hardware issue with the old computer where the ethernet card constantly went down after a while
SouL has quit [Ping timeout: 255 seconds]
hanjianwei has quit [Ping timeout: 260 seconds]
skammer has joined #ruby
koalallama has joined #ruby
Spami has joined #ruby
dumdedum_ has quit [Quit: foo]
<mikecmpbll> wonder what the best way to rate limit my own HTTP requests is when using threads?
vircung has joined #ruby
<mikecmpbll> people who run the APi want me to issue no more than 5 requests a second
<shevy> keep an outside counter and sync it from within the threads?
<mikecmpbll> true this.
ta has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll> accidentally crossposted to #rubyonrails btw
patrick99e99 has joined #ruby
nettoweb has joined #ruby
agjacome has quit [Quit: leaving]
rkalfane has joined #ruby
Jackneill has joined #ruby
rkalfane has quit [Client Quit]
<shevy> doesn't matter
<shevy> only those suffer who are on more than one channel
<shevy> wimps
anildigital is now known as zz_anildigital
zz_anildigital is now known as anildigital
sweeper_ is now known as sweeper
<mikecmpbll> :D
patrick99e99 has quit [Ping timeout: 272 seconds]
linojon has joined #ruby
bmurt has joined #ruby
benzrf|offline is now known as benzrf
ght has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
Tuxero has joined #ruby
yfeldblum has joined #ruby
cmxu has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmxu has quit [Max SendQ exceeded]
rkalfane has joined #ruby
tkuchiki has joined #ruby
koupe has quit []
marr has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
sk87 has joined #ruby
emocakes__ has joined #ruby
InhalingPixels has joined #ruby
mengu has quit [Remote host closed the connection]
Cecen has joined #ruby
emocakes has quit [Ping timeout: 258 seconds]
six has joined #ruby
Nieralyte has joined #ruby
Tuxero has quit [Ping timeout: 272 seconds]
Cecen_ has quit [Ping timeout: 245 seconds]
<six> hi guys. Using rake, is there a simple way to detect if a task dependency fails? I'd like to perform some type of rollback when the main task's dependencies fail
<joonty> mikecmpbll: if you have good control over your threads, how about putting each request into a queue, and popping off a request at most every 0.2s?
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
<mikecmpbll> joonty: sounds good to me, that.
ptrrr has quit [Quit: ptrrr]
<joonty> Long time to wait though. Strange limitation
gccostabr has joined #ruby
scrooge_mcduck has quit [Quit: Lost terminal]
Meeh is now known as mikalv
Tuxero has joined #ruby
timgauthier has joined #ruby
resting has left #ruby [#ruby]
kirun has joined #ruby
hiyosi has joined #ruby
weems|mac has joined #ruby
weems|mac has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 260 seconds]
anaeem1 has quit [Remote host closed the connection]
vinleod has quit [Quit: Computer has gone to sleep.]
mr-foobar has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 240 seconds]
<Rhainur> how can I iterate over an array viewing 2 items at a time, e.g from [1,2,3,4,5] I want to see 1,2 then 2,3 then 3,4
GriffinHeart has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
<Hanmac> Rhainur: each_cons(2)
<Rhainur> ah excellent thanks
mary5030 has joined #ruby
<shevy> [1,2,3,4,5,6].each_slice(2) {|slice| p slice}
armyriad has quit [Ping timeout: 272 seconds]
<shevy> ah
ndrei has joined #ruby
<shevy> collective iteration I see
armyriad has joined #ruby
<shevy> then it is indeed each_cons
Tuxero has quit [Ping timeout: 272 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
rgcouk has quit [Quit: Textual IRC Client: www.textualapp.com]
Alina-malina has joined #ruby
Nieralyte has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
greenarrow has joined #ruby
adironduck has joined #ruby
Takle has quit [Remote host closed the connection]
davispuh has joined #ruby
angusigu1ss has joined #ruby
milkohol has joined #ruby
milkohol has quit [Max SendQ exceeded]
Takle has joined #ruby
Tuxero has joined #ruby
anildigital is now known as zz_anildigital
agent_wh1te has quit [Quit: night]
ptrrr has joined #ruby
koderok has joined #ruby
jottr_ is now known as jottr
robh71 has joined #ruby
rp__ has joined #ruby
tobago has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
Hanmac has quit [Ping timeout: 272 seconds]
adironduck_ has joined #ruby
adironduck has quit [Ping timeout: 240 seconds]
adironduck_ is now known as adironduck
mengu has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
linojon has joined #ruby
earfin has joined #ruby
enriclluelles has joined #ruby
dawkirst has quit [Remote host closed the connection]
zettam has joined #ruby
milkohol has joined #ruby
milkohol has quit [Max SendQ exceeded]
doodlehaus has joined #ruby
Nieralyte has joined #ruby
mityaz__ has quit [Quit: Leaving]
starkhalo has joined #ruby
jimmyy has quit [Ping timeout: 260 seconds]
<pomson6000> Hi! When you do random choosing from an array do I really have to require this first: require "backports/1.9.1/array/sample".
<pomson6000> Or is there a better way?
<pomson6000> I just want to choose from an array of strings randomly
spastorino has joined #ruby
a_ has joined #ruby
kaspertidemann has quit []
<nickjj> pomson6000: you can use #sample
skammer has quit [Ping timeout: 272 seconds]
<apeiros> pomson6000: the better way is to just update your ruby
<nickjj> [1, 2, 3].sample , to randomly pick one
<apeiros> because then you don't need no backports :)
<pomson6000> haha ok
<pomson6000> Array#sample
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TommeHo has joined #ruby
Takle has quit [Remote host closed the connection]
livingstn has joined #ruby
milkohol has joined #ruby
<apeiros> Array#sample exists for >5y I think. so if you need backports, then your ruby is quite old
Tomme has quit [Read error: Connection reset by peer]
lemur has quit [Read error: Connection reset by peer]
<p0sixpscl> 1.6 maybe
codecop has quit [Remote host closed the connection]
<apeiros> waaaah?
<apeiros> are you running that on an 386 @ 20MHz?
<gregf_> heh
<apeiros> 1.6 is beyond ancient
rkalfane has joined #ruby
sepp2k has joined #ruby
Hanmac has joined #ruby
eval-in_____ has quit [Remote host closed the connection]
<p0sixpscl> If I can trust wikipedia it will be/is 14 years old this month.
narph has quit [Quit: Connection closed for inactivity]
lemur has joined #ruby
eval-in has joined #ruby
<p0sixpscl> but then, backports are the least problem lol
milkohol has quit [Read error: Connection reset by peer]
timgauthier is now known as timgauthier_isaw
Nieralyte has quit [Quit: Leaving]
skammer1 has joined #ruby
sbar_ has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nieralyte has joined #ruby
cbetta__ is now known as cbetta
cbetta has quit [Changing host]
cbetta has joined #ruby
cbetta has joined #ruby
cbetta has quit [Changing host]
Channel6 has joined #ruby
mtncode has quit [Ping timeout: 260 seconds]
linojon has quit [Quit: linojon]
garbanotas has quit [Ping timeout: 260 seconds]
oleo has joined #ruby
Takle has joined #ruby
mark_locklear has joined #ruby
angusigu1ss has joined #ruby
sailias has joined #ruby
jeremy04 has joined #ruby
cocotton has joined #ruby
milkohol has joined #ruby
linojon has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
jazz2 has joined #ruby
francisfish has joined #ruby
ndrei has joined #ruby
angusigu1ss has quit [Ping timeout: 258 seconds]
<jazz2> Under the same conditions, how many times faster between 2.1.2 and 2.0.0
<jazz2> someone ?
<yxhuvud> Depends on what you do. personally, I havn't noticed all that great of a difference.
nettoweb has joined #ruby
Takle has quit [Remote host closed the connection]
tlarevo_ has joined #ruby
skammer2 has joined #ruby
skammer1 has quit [Ping timeout: 260 seconds]
<yxhuvud> but then I have the upgrade from 1.8.x to 2.0.x relatively fresh and that was 5-10 times faster for everything in-app for me, so I might be pretty unsensitive to minor changes right now ..
<jazz2> you know, many people think ruby is very slow
Cecen_ has joined #ruby
kp666 has quit [Quit: leaving]
doritostains has joined #ruby
milkohol has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<jazz2> as you say, does 2.0 to 2.1 is minor changes ?
tlarevo has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
<yxhuvud> the changes was not as dramatic, for me. I can only suggest to measure how it affects your app.
<waxjar> there was a new garbage collector
zorak8 has joined #ruby
<waxjar> which is faster
aclearman037 has quit []
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
zz_anildigital is now known as anildigital
milkohol has joined #ruby
compAz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rindolf has joined #ruby
<rindolf> Hi all.
Cecen has quit [Ping timeout: 276 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igaiga has joined #ruby
snath has quit [Remote host closed the connection]
<rindolf> gem install posix_spawn_ext gives me «ERROR: Could not find a valid gem 'posix_spawn_ext' (>= 0) in any repository» and then it gets suck for many second and then ERROR: Possible alternatives: posix-spawn, em-posix-spawn - I need it for https://github.com/github/markup
User458764 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
momomomomo has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
igaiga has quit [Client Quit]
tlarevo_ has quit [Remote host closed the connection]
britneywright has joined #ruby
tlarevo has joined #ruby
parametaortho has left #ruby [#ruby]
ndrei has joined #ruby
Channel6 has quit [Quit: Leaving]
LangeOortjes has joined #ruby
qmfnp has joined #ruby
cmarques has joined #ruby
funman_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
<funman_> :)
milkohol has quit [Read error: Connection reset by peer]
St_Marx has quit [Remote host closed the connection]
dfish has quit [Quit: WeeChat 0.4.2]
_tpavel has quit [Quit: Leaving]
St_Marx has joined #ruby
tlarevo has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
cocotton has quit [Remote host closed the connection]
aclearman037 has joined #ruby
flowerhack has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
funman_ has left #ruby [#ruby]
zengfengbo has joined #ruby
doritostains has quit [Quit: doritostains]
Macaveli has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
anildigital is now known as zz_anildigital
rkalfane has joined #ruby
zz_anildigital is now known as anildigital
jeroenvisser101 has joined #ruby
ctp has quit [Read error: Connection reset by peer]
anildigital is now known as zz_anildigital
ctp has joined #ruby
synergyz has joined #ruby
codeurge has joined #ruby
freerobby has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
Xeago has quit [Remote host closed the connection]
Ankhers has joined #ruby
Guest93809 is now known as loo
baltazor_ has quit [Remote host closed the connection]
kyb3r_ has quit [Ping timeout: 246 seconds]
rindolf has quit [Quit: http://www.shlomifish.org/ ; It takes Summer Glau exactly a minute to write a rebuttal like in xkcd: “Venting”, and she would sign it as Chuck Norris. ( http://is.gd/U2VvJt )]
jottr has quit [Ping timeout: 272 seconds]
bigkevmcd has quit [Excess Flood]
Xeago has joined #ruby
asteve has joined #ruby
bigkevmcd has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 245 seconds]
shackleford has joined #ruby
zz_anildigital is now known as anildigital
krisquigley has joined #ruby
shackleford has quit [Remote host closed the connection]
ndrei has joined #ruby
shackleford has joined #ruby
jottr has joined #ruby
GriffinHeart has joined #ruby
Xeago_ has joined #ruby
Kricir has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
koderok has quit [Quit: koderok]
Kricir has joined #ruby
milkohol has joined #ruby
<zorak8> hi, im trying this tutorial
mtncode has joined #ruby
cocotton has joined #ruby
<zorak8> and about the half it have this line
<zorak8> store.transaction(true) do
yfeldblum has joined #ruby
earfin has quit [Ping timeout: 255 seconds]
timgauthier is now known as timgauthier_isaw
Kricir has quit [Ping timeout: 240 seconds]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zorak8> im trying to find the docu about .transaction
Smujo837 has joined #ruby
Smujo__ has joined #ruby
<zorak8> and cant find it
rimenes has joined #ruby
Smujo_ has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
Smujo has quit [Ping timeout: 260 seconds]
ffranz has joined #ruby
dawkirst has quit [Client Quit]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
Ankhers has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
W0rmDr1nk has joined #ruby
tagrudev has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
rkalfane has joined #ruby
Wolland has joined #ruby
djstorm has joined #ruby
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milkohol has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
angusigu1ss has joined #ruby
Ca11yWally has joined #ruby
vinleod has joined #ruby
danijoo has joined #ruby
sk87 has joined #ruby
vinleod has quit [Client Quit]
koderok has joined #ruby
Takle has quit [Remote host closed the connection]
ndrei_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
emocakes__ has quit []
<canton7> nice find
ndrei has joined #ruby
<Hanmac> zorak8: next time "ri YAML::Store.transaction" is your friend "Implementation from PStore"
mikepack has joined #ruby
angusigu1ss has quit [Ping timeout: 258 seconds]
oponder has quit [Remote host closed the connection]
Sonny|3oy has joined #ruby
TommeHo has quit [Ping timeout: 245 seconds]
Tuxero has left #ruby [#ruby]
<zorak8> ri YAML::Store.transaction
<zorak8> ??
sylvanica has joined #ruby
lemur has quit [Remote host closed the connection]
Ca11yWally has quit [Remote host closed the connection]
lemur has joined #ruby
snath has joined #ruby
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hanmac> zorak8: yeah in the shell it did work for me
Cecen has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
failshell has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
Cecen_ has quit [Ping timeout: 255 seconds]
perrier has quit [Remote host closed the connection]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amargherio has joined #ruby
mtncode has quit [Quit: WeeChat 1.0]
Kruppe has quit [Quit: ZNC - http://znc.in]
benzrf is now known as benzrf|offline
perrier has joined #ruby
Kruppe has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
silkfox has quit [Ping timeout: 260 seconds]
subopt has joined #ruby
silkfox has joined #ruby
speaking1ode is now known as speakingcode
perrier has quit [Remote host closed the connection]
mrgrieves has quit [Quit: leaving]
Takle has joined #ruby
Sonny|3oy has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
perrier has joined #ruby
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
anildigital is now known as zz_anildigital
hellangel7 has quit [Remote host closed the connection]
<subopt> I've done OOP/AOP professionally for the last dozen year or so. Can anyone recommend a concise book to get me up to speed quickly on Ruby? (I'd try "Ruby in a Nutshell", but it's 12 years old.)
patteh has quit [Quit: leaving]
patteh has joined #ruby
perrier has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
nfk has quit [Quit: yawn]
cirn0 has joined #ruby
tkuchiki has joined #ruby
ndrei_ has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 260 seconds]
abuzze has quit [Ping timeout: 260 seconds]
<Hanmac> subopt: hm what is AOP? hm are you new to ruby? what other languages did you do before?
Kricir has quit [Read error: Connection reset by peer]
perrier has joined #ruby
qmfnp has joined #ruby
Kricir has joined #ruby
adironduck has quit [Quit: adironduck]
aspires has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
janmuffino has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<subopt> Hanmac: Aspect Oriented Programming. Basically it's just extra fancy OOP, but kinda' necessary for what i do.
b00stfr3ak has joined #ruby
DrShoggoth has joined #ruby
sk87 has joined #ruby
<Hanmac> subopt: hm i dont have read a ruby book myself, https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/ " Language X to Ruby" maybe that is helpful for you to learn ruby?
<subopt> Hanmac: New to Ruby. Done these before and currently: C++, Python, Perl (OO), SystemVerilog (with UVM), Specman ('e')
Kricir_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
<subopt> Hanmac: thx for the link
cirn0 has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
milkohol has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
tectonic has joined #ruby
<Hanmac> subopt: after you know a bit about ruby i recommend to look at this docs http://www.ruby-doc.org/core/ for the ruby core stuff ... hm imo most important are String, Array, Hash and Enumerable
<wasamasa> <3 Enumerable
<subopt> Wilco.
perrier has quit [Remote host closed the connection]
janmuffino has quit [Ping timeout: 246 seconds]
Tuxero has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
perrier has joined #ruby
p0sixpscl has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
mijicd has joined #ruby
koderok has quit [Quit: koderok]
p0sixpscl has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
fsapo has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
tectonic has quit []
perrier has quit [Remote host closed the connection]
calife has quit [Quit: Exit-Chat]
skammer2 has quit [Ping timeout: 260 seconds]
linojon has quit [Ping timeout: 255 seconds]
doritostains has joined #ruby
hfp_work- is now known as hfp_work
perrier has joined #ruby
linojon has joined #ruby
tectonic has joined #ruby
duggiefresh has joined #ruby
hmsimha has quit [Ping timeout: 245 seconds]
jobewan has joined #ruby
fabrice31 has quit [Remote host closed the connection]
p0sixpscl has quit [Ping timeout: 272 seconds]
ndrei_ has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 260 seconds]
hfp_work_ is now known as hfp_work
tobago has joined #ruby
hfp_work is now known as hfp_work_
hfp_work_ is now known as hfp_work
thams has quit [Quit: thams]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
lolmaus__ has quit [Remote host closed the connection]
lolmaus__ has joined #ruby
perrier has quit [Remote host closed the connection]
p0sixpscl has joined #ruby
mr-foobar has joined #ruby
chipotle has joined #ruby
kate_r has joined #ruby
Rollabunna has quit [Remote host closed the connection]
BadQuanta has joined #ruby
perrier has joined #ruby
perrier has quit [Remote host closed the connection]
compAz has joined #ruby
a_ has quit [Ping timeout: 258 seconds]
Scotteh_ has quit [Ping timeout: 245 seconds]
spacemud has quit [Ping timeout: 260 seconds]
chipotle has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
<hfp_work> What's the URL for the REPL used here again? I keep forgetting it
perrier has joined #ruby
perrier has quit [Remote host closed the connection]
tectonic has quit []
aganov has quit [Quit: Leaving]
ndrei has joined #ruby
apeiros has joined #ruby
ndrei_ has joined #ruby
michaeldeol has joined #ruby
maletor_ has joined #ruby
perrier has joined #ruby
perrier has quit [Read error: Connection reset by peer]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
qmfnp has joined #ruby
mupkoo has joined #ruby
perrier has joined #ruby
pu22l3r_ has joined #ruby
kireevco has joined #ruby
marr has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
kireevco has quit [Max SendQ exceeded]
doritostains has quit [Quit: doritostains]
kireevco has joined #ruby
a_ has joined #ruby
maestrojed has joined #ruby
tlarevo has joined #ruby
yekta has joined #ruby
StephenA1 has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
sinkensabe has quit [Remote host closed the connection]
StephenA1 has quit [Client Quit]
alex88 has quit [Quit: Leaving...]
mikepack has joined #ruby
DaniG2k has joined #ruby
<jhass> hfp_work: eval.in
<hfp_work> jhass: Thanks
maestrojed has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
LangeOortjes has quit [Ping timeout: 260 seconds]
KC9YDN has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 260 seconds]
gvenkat has joined #ruby
<pagios> anyone familiar with ustream api?
spacemud has joined #ruby
ephemerian has quit [Remote host closed the connection]
Cecen_ has joined #ruby
everett has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
milkohol_ has joined #ruby
jherbst has joined #ruby
thams has joined #ruby
root3d has joined #ruby
root3d has quit [Changing host]
root3d has joined #ruby
milkohol_ has quit [Client Quit]
gregf has joined #ruby
sinkensabe has joined #ruby
renderful has joined #ruby
a_ has quit [Ping timeout: 258 seconds]
gsd has joined #ruby
root3d_ has joined #ruby
root3d_ has quit [Client Quit]
Cecen has quit [Ping timeout: 276 seconds]
shredding has quit [Quit: shredding]
tkuchiki has joined #ruby
RichardLitt has joined #ruby
rindolf has joined #ruby
<rindolf> Hi all.
dorei has joined #ruby
renderf__ has joined #ruby
SouL has joined #ruby
nhhagen_ has joined #ruby
nhhagen_ has quit [Client Quit]
zorak8 has quit [Ping timeout: 255 seconds]
kamilc__ has quit [Quit: Leaving...]
alex88 has joined #ruby
renderfu_ has quit [Ping timeout: 272 seconds]
Akagi201_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
zengfengbo has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 260 seconds]
renderf__ has quit [Client Quit]
renderful has quit [Ping timeout: 260 seconds]
nhhagen has quit [Ping timeout: 260 seconds]
mkaesz has quit [Quit: Leaving...]
lemur has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
anarang has quit [Quit: Leaving]
Akagi201 has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
heath is now known as ybit
alex88 has quit [Client Quit]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spacemud has quit [Ping timeout: 260 seconds]
joonty has quit [Quit: Leaving]
chrishough has joined #ruby
anarang has joined #ruby
mikecmpb_ has joined #ruby
Takle has quit [Remote host closed the connection]
jazz2 has quit [Quit: Nettalk6 - www.ntalk.de]
lemur has quit [Ping timeout: 272 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
everett has joined #ruby
Morkel has quit [Quit: Morkel]
mikepack has quit [Remote host closed the connection]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thams has quit [Read error: Connection reset by peer]
cmarques has quit [Remote host closed the connection]
hamakn has joined #ruby
doritostains has joined #ruby
pomson6000 has quit [Quit: Page closed]
cmarques has joined #ruby
apeiros has joined #ruby
ghr has joined #ruby
Kricir_ has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
Kricir has joined #ruby
kevkev has quit [Quit: Computer has gone to sleep.]
icebourg has joined #ruby
SCHAAP137 has joined #ruby
endash has joined #ruby
_maes_ has joined #ruby
dumdedum has quit [Quit: foo]
RichardLitt has quit [Quit: RichardLitt]
wallerdev has joined #ruby
greenarrow has quit [Quit: 500]
ghr has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
pietr0 has joined #ruby
Takle has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
spacemud has joined #ruby
roolo has joined #ruby
j_mcnally has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
arup_r has joined #ruby
zorak8 has joined #ruby
mikepack has joined #ruby
a has joined #ruby
zz_anildigital is now known as anildigital
a is now known as Guest39578
Photism has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ght has joined #ruby
Advocation has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spacemud has quit [Ping timeout: 272 seconds]
TheTopBloke has joined #ruby
Kricir has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
Jarboe has joined #ruby
roolo has quit [Ping timeout: 260 seconds]
bricker`work has joined #ruby
juniorzo1d has joined #ruby
troyready has joined #ruby
timonv_ has quit [Remote host closed the connection]
spacemud has joined #ruby
timonv_ has joined #ruby
rippa has quit [Ping timeout: 258 seconds]
poguez_ has joined #ruby
benzrf|offline is now known as benzrf
sinkensabe has quit [Remote host closed the connection]
chth0n has quit [Quit: Ex-Chat]
patrick99e99 has joined #ruby
mupkoo has quit []
adamholt has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ballpointcarrot has joined #ruby
tvw has quit []
havenwood has joined #ruby
qmfnp has joined #ruby
perrier has quit [Remote host closed the connection]
dfish has joined #ruby
jds has joined #ruby
michaeldeol has joined #ruby
claymore has quit [Quit: Leaving]
agjacome has joined #ruby
DaniG2k has quit [Quit: leaving]
W0rmDr1nk has quit [Ping timeout: 260 seconds]
ndrei_ has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 245 seconds]
ixti has joined #ruby
cmarques has quit []
Nieralyte has quit [Quit: Leaving]
cmarques has joined #ruby
mikecmpb_ has quit [Quit: i've nodded off.]
Guest39578 has quit [Ping timeout: 272 seconds]
mijicd has quit [Quit: leaving]
max06 has quit [Ping timeout: 245 seconds]
perrier_test has joined #ruby
momomomomo has quit [Quit: momomomomo]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ghis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has joined #ruby
enriclluelles has quit [Remote host closed the connection]
<vircung> quit
<vircung> \quit
root3d has quit [Ping timeout: 246 seconds]
acalewin has quit [Quit: ZNC - http://znc.in]
kireevco1 has joined #ruby
<gregf_> heh
<wasamasa> urdoinitrong
ndrei has joined #ruby
ndrei_ has joined #ruby
M-Technic has joined #ruby
angusigu1ss has joined #ruby
qba73 has quit []
aspiers has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
perrier_test has quit [Remote host closed the connection]
kireevco has quit [Ping timeout: 245 seconds]
<slash_nick> not ruby related, but... damn! chess written in sed? https://github.com/bolknote/SedChess/blob/master/chess.sed
deric_skibotn has joined #ruby
jbueza has joined #ruby
perrier_test has joined #ruby
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 240 seconds]
a_ has joined #ruby
perrier_test has quit [Remote host closed the connection]
IcyDragon has joined #ruby
abuzze has joined #ruby
fsapo has joined #ruby
einarj has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 246 seconds]
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
Cecen has joined #ruby
compAz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has joined #ruby
wallerdev has quit [Quit: wallerdev]
momomomomo has joined #ruby
gvenkat has quit [Ping timeout: 272 seconds]
Cecen_ has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
charliesome has joined #ruby
<wasamasa> yay for non-english comments
baltazore has joined #ruby
abuzze has quit [Ping timeout: 260 seconds]
charliesome has quit [Client Quit]
doritostains has quit [Quit: doritostains]
saarinen has joined #ruby
gvenkat has joined #ruby
saarinen has quit [Client Quit]
mattmcclure has joined #ruby
Nieralyte has joined #ruby
sinkensabe has joined #ruby
_lexjm has joined #ruby
lowandslow_ has quit [Remote host closed the connection]
doritostains has joined #ruby
p0sixpscl has joined #ruby
shredding has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
perrier has joined #ruby
lemur has joined #ruby
jrhorn424 is now known as zz_jrhorn424
hamakn has quit [Remote host closed the connection]
timonv_ has joined #ruby
saarinen has joined #ruby
bMalum has joined #ruby
hamakn has joined #ruby
perrier has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 272 seconds]
perrier has joined #ruby
shredding has quit [Quit: shredding]
root3d has joined #ruby
shredding has joined #ruby
abuzze has joined #ruby
sailias has quit [Quit: Leaving.]
izzol2_ has left #ruby [#ruby]
timonv_ has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
izzol has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
kate_r has joined #ruby
m8 has joined #ruby
cirn0 has joined #ruby
doritostains has quit [Quit: doritostains]
shredding has quit [Client Quit]
rkalfane has quit [Ping timeout: 246 seconds]
anarang has quit [Quit: Leaving]
ghr has joined #ruby
stunder has joined #ruby
Takle has quit [Remote host closed the connection]
kevkev has joined #ruby
cmarques has quit [Remote host closed the connection]
rkalfane has joined #ruby
saarinen has quit [Quit: saarinen]
melik_ has joined #ruby
wallerdev has joined #ruby
<abdulsattar> Hi, I have a gem, and I monkey patched a few classes (like Hash and Class). Should I use refinements to limit them to my gem? I hear refinements are considered bad
Kricir has quit [Remote host closed the connection]
pork_clips has quit [Read error: Connection reset by peer]
<jhass> monkey patching core classes is worse ;)
<jhass> first question is, do you really need these monkey patches
<abdulsattar> Active support does only this
pork_clips has joined #ruby
cirn0 has quit [Ping timeout: 255 seconds]
<havenwood> abdulsattar: if ruby-core thought refinements were bad they wouldn't add them to the lang :P
<jhass> yes, so the reason to pull AS is to get patched core classes
anildigital is now known as zz_anildigital
<havenwood> abdulsattar: can you target just Ruby 2.1?
<jhass> I doubt your gem is pulled to get patched core classes
ghr has quit [Ping timeout: 272 seconds]
<abdulsattar> havenwood: I think it can
momomomomo has quit [Quit: momomomomo]
rkalfane has quit [Ping timeout: 240 seconds]
<abdulsattar> jhass: I don't understand.
<havenwood> abdulsattar: there're of course no refinements pre-2.0 and 2.0 refinements were experimental and different than the feature that landed in 2.1
<havenwood> abdulsattar: want feedback on your specific case? link to the gem?
<jhass> abdulsattar: the danger of patching core classes is that it often happens unnoticed and so conflicts quickly occur
Scotteh has joined #ruby
<jhass> abdulsattar: AS only purpose is to patch core classes, so adding AS to your project is intentional and its patches are more well known
aspires has quit []
mocfive has joined #ruby
rkalfane has joined #ruby
<jhass> so it's less of an issue for AS, at least people know where to start looking with it
<jhass> not so for your gem
Xeago_ has quit [Remote host closed the connection]
qmfnp has joined #ruby
p0sixpsc_ has joined #ruby
tastycode has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0sixpsc_ has quit [Max SendQ exceeded]
p0sixpscl has quit [Ping timeout: 260 seconds]
p0sixpsc_ has joined #ruby
shosti has joined #ruby
Xeago has joined #ruby
kevkev has quit [Ping timeout: 255 seconds]
abdulsattar has quit [Ping timeout: 260 seconds]
rkalfane has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
douglasssssss has joined #ruby
douglasssssss has quit [Max SendQ exceeded]
rkalfane has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
abdulsattar has joined #ruby
cndiv has joined #ruby
<abdulsattar> havenwood: jhass I'm sorry, got disconnected
sevvie has joined #ruby
<havenwood> freedom patch ALL THE THINGS \o/
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
ramfjord has joined #ruby
<abdulsattar> jhass: okay, I think I understand what you meant to say. active support is used only for the monkey patches it offers, so yeah, monkey patching is good there
<abdulsattar> jhass: okay, I think I understand what you meant to say. active support is used only for the monkey patches it offers, so yeah, monkey patching is good there
<abdulsattar> Oh boy, I need a better router
yekta has quit [Quit: yekta]
<jhass> I'd still not call it good, but more acceptable
fabrice31 has joined #ruby
<jhass> if you show your monkey patches we might be able to suggest alternatives
charliesome has joined #ruby
<abdulsattar> jhass: oh, it's just a few except, only methods on Hash
<abdulsattar> and a short_name on Class
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
Avahey_ has joined #ruby
<jhass> I often have one or more Utils modules with module_function's in them that do that such stuff
jay has joined #ruby
emmesswhy has joined #ruby
wallerdev has joined #ruby
Morkel has joined #ruby
tylersmith has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
<abdulsattar> jhass: I had written them just because I fiind {}.except more natural
<abdulsattar> anyway, I see there are more downsides to this than there are upsides
JonnieCache has quit [Ping timeout: 272 seconds]
weems|mac has quit [Quit: bai]
<abdulsattar> I think, I'll just use module_functions like you do and call except(hash, *args) or something like that
fabrice31 has quit [Ping timeout: 245 seconds]
Azure has joined #ruby
<havenwood> abdulsattar: module Krampus; def self.short_name klass; klass.to_s.split('::').map { |x| x[0..1] }.join('::') end end; Krampus.short_name Hobbit::Base #=> "Ho::Ba
<havenwood> "
mocfive has quit [Remote host closed the connection]
maletor_ has quit [Quit: Computer has gone to sleep.]
arup_r has quit [Quit: Leaving.]
mocfive has joined #ruby
<abdulsattar> havenwood: Yes, I think that's a better idea. or include Krampus and have fun
cpruitt has joined #ruby
mark_locklear has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
<abdulsattar> or is that considered bad too? I mean you don't know where that function is defined if you include a lot of modules?
<Bish> what is an easy way to convert an Fixnum to a 4bytearray/string?
beneggett has joined #ruby
<eam> Bish: big or little endian? Also, Fixnum can be larger than 32bit
<havenwood> abdulsattar: instead of including to top level, consider this pattern: module Krampus; def short_name klass; klass.to_s.split('::').map { |x| x[0..1] }.join('::') end end; module Kernel; include Krampus end; class Object; include Kernel end; short_name Hobbit::Base #=> "Ho::Ba"
<Bish> eam i know, but i am reading a 4byte integer in
<Bish> little endian
<havenwood> abdulsattar: (if you really want to add a Kernel class method)
<eam> check out pack/unpack
<Bish> ahh there is a pack.
<Bish> ruby is suitable for binary data, i love it
Xeago has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
mocfive has quit [Ping timeout: 272 seconds]
<ericwood> I wrote a roomba library in Ruby
<ericwood> it does lots of low-level bitbanging!
bwilson has joined #ruby
<ericwood> Array::pack is your friend
kamilc__ has joined #ruby
<yxhuvud> ericwood: but does it suck?
<ericwood> in its own special way
<abdulsattar> havenwood: doesn't this have the same problem as monkey patching?
SegFaultAX has joined #ruby
<pagios> anyone familair wituh ustream ApI?
doritostains has joined #ruby
<abdulsattar> people looking at short_name might get confused to see it used randomly
<abdulsattar> and we're polluting Object class itself?
<Bish> pack only works on arrays/strings :( but i want the other way around
<havenwood> abdulsattar: you'd not be polluting anything. you'd be mixing in a module to Kernel then Object. but generally you'd not do such a thing. use proper namepacing.
<havenwood> abdulsattar: like jhass suggested
asteve has left #ruby ["Textual IRC Client: www.textualapp.com"]
nanoyak has joined #ruby
<abdulsattar> havenwood: yeah, I'll stick to normal namspacing. thanks havenwood and jhass!
yetanotherdave has joined #ruby
<Bish> is the only way to do it dividing it by the base?
skammer2 has joined #ruby
angusigu1ss has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
^[]^ has quit [Quit: Poor Snowstormer, he no deserve IRC. :'(]
<jhass> Bish: wrap it in an array
ndrei_ has quit [Ping timeout: 245 seconds]
<Bish> well that is what i am trying to do
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 272 seconds]
Nieralyte has quit [Quit: Leaving]
weems|mac has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
mikecmpbll has joined #ruby
Snowstormer has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
jottr has joined #ruby
<jhass> >> [123].pack('l<')
<eval-in> jhass => "{\x00\x00\x00" (https://eval.in/195212)
<jhass> >> [123,456].pack('l<*')
<eval-in> jhass => "{\x00\x00\x00\xC8\x01\x00\x00" (https://eval.in/195213)
Nieralyte has joined #ruby
kedare has quit [Quit: WeeChat 0.4.1]
<Bish> jhass, okay, thank you very much
skammer2 has quit [Ping timeout: 260 seconds]
angusigu1ss has quit [Ping timeout: 245 seconds]
Inhaling_ has joined #ruby
compAz has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Cecen_ has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
compAz has quit [Client Quit]
linojon_ has joined #ruby
rdark has quit [Quit: leaving]
InhalingPixels has quit [Ping timeout: 272 seconds]
doritostains has quit [Quit: doritostains]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: zzz]
niklasb has joined #ruby
linojon has quit [Ping timeout: 258 seconds]
linojon_ is now known as linojon
Cecen has quit [Ping timeout: 248 seconds]
goshdarnyou has joined #ruby
mattstratton has joined #ruby
suy has quit [Remote host closed the connection]
jay has quit [Remote host closed the connection]
Snowstormer is now known as ^[]^
doritostains has joined #ruby
jay has joined #ruby
kate_r_ has joined #ruby
doritostains has quit [Client Quit]
ndrei has quit [Ping timeout: 260 seconds]
ndrei_ has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
AtumT has joined #ruby
acalewin has joined #ruby
mikecmpbll has joined #ruby
Advocation has quit [Quit: Advocation]
robh71 has joined #ruby
yfeldblu_ has joined #ruby
kate_r has quit [Ping timeout: 272 seconds]
lemur has joined #ruby
elstif has quit [Quit: Leaving.]
Aaaal has quit [Quit: Aaaal]
Inhaling_ has quit [Remote host closed the connection]
gvenkat_ has joined #ruby
Tuxero has quit [Read error: Connection reset by peer]
kaspertidemann has joined #ruby
InhalingPixels has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Tuxero has joined #ruby
ta has joined #ruby
jay is now known as rubyonrailed
hamakn has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
gvenkat has quit [Ping timeout: 272 seconds]
mark_locklear has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
IcyDragon is now known as IceDragon
DrShoggoth has quit [Quit: Leaving]
skammer2 has joined #ruby
sinkensabe has joined #ruby
skammer3 has joined #ruby
dangerousdave has joined #ruby
Morkel_ has joined #ruby
jeroenvisser101 has joined #ruby
cmarques has joined #ruby
Tricon has joined #ruby
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
skammer2 has quit [Ping timeout: 272 seconds]
jlovick has joined #ruby
rkalfane has joined #ruby
elaptics is now known as elaptics`away
timonv_ has joined #ruby
tkuchiki has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
rkalfane has quit [Client Quit]
rkalfane has joined #ruby
iamjarvo has joined #ruby
codecop has joined #ruby
cmarques has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
kevkev has joined #ruby
Jackneill has quit [Ping timeout: 245 seconds]
Akagi201_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has quit [Client Quit]
Akagi201 has joined #ruby
wjimenez5271 has joined #ruby
rkalfane has joined #ruby
jack_rabbit has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
mocfive has joined #ruby
DrShoggoth has joined #ruby
saarinen has quit [Quit: saarinen]
Takle has joined #ruby
kevkev has quit [Ping timeout: 258 seconds]
pusewicz_ is now known as pusewicz
suy has joined #ruby
saarinen has joined #ruby
britneywright has joined #ruby
Akagi201 has quit [Ping timeout: 272 seconds]
Scotteh has quit [Ping timeout: 260 seconds]
jeroenvisser101 has quit [Read error: Connection reset by peer]
jeroenvisser101 has joined #ruby
Scotteh has joined #ruby
p0sixpsc_ has quit [Ping timeout: 245 seconds]
artmann has quit [Quit: No Ping reply in 180 seconds.]
yekta has joined #ruby
timonv^ has joined #ruby
aspires has joined #ruby
tylersmith has quit []
rotor has quit [Ping timeout: 260 seconds]
artmann has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
sevvie has quit [Ping timeout: 246 seconds]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 260 seconds]
rotor has joined #ruby
a_ has quit [Ping timeout: 240 seconds]
ursooperduper has joined #ruby
kayloos has joined #ruby
tylersmith has joined #ruby
kayloos has quit [Remote host closed the connection]
kayloos has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
Takle has joined #ruby
Mars___ has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has quit [Remote host closed the connection]
Tomme has joined #ruby
jeroenvisser101 has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
mikepack has quit [Remote host closed the connection]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
saarinen has quit [Quit: saarinen]
Poky has quit [Read error: Connection reset by peer]
tlarevo has quit [Remote host closed the connection]
Jackneill has joined #ruby
Nieralyte has quit [Quit: Leaving]
<pusewicz> I wish there was proper Ruby implementation on Erlang VM
rezzack has joined #ruby
mocfive has quit [Ping timeout: 240 seconds]
mocfive has joined #ruby
saarinen has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
andrewjanssen has joined #ruby
kireevco1 has quit [Quit: Leaving.]
saarinen has quit [Client Quit]
<oz> Well, Elixir is a nice language too. :)
kireevco has joined #ruby
omosoj has joined #ruby
root3d has quit [Read error: Connection reset by peer]
kireevco has quit [Max SendQ exceeded]
<pusewicz> Yeah it is
kireevco has joined #ruby
<pusewicz> definitely nicer than erlang
kireevco has quit [Max SendQ exceeded]
<pusewicz> although I don't really mind Erlang's syntax really
adac has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
hamakn has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
angusigu1ss has joined #ruby
milkohol has joined #ruby
sectionme has joined #ruby
hamakn has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
Ankhers has joined #ruby
yfeldblum has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
jeroenvisser101 has joined #ruby
Cecen has joined #ruby
sarkis has joined #ruby
farn has quit [Ping timeout: 250 seconds]
sectionme has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
saarinen has quit [Client Quit]
failshell has quit []
shevy has joined #ruby
Hobogrammer has joined #ruby
arup_r has quit [Quit: Leaving.]
adac has joined #ruby
Cecen_ has quit [Ping timeout: 255 seconds]
baltazore has quit [Remote host closed the connection]
mofai has quit []
kevkev has joined #ruby
saarinen has joined #ruby
momomomomo has joined #ruby
timgauthier-mobi has joined #ruby
pu22l3r_ has joined #ruby
bMalum has joined #ruby
tjbiddle has joined #ruby
TheTopBloke has joined #ruby
fold has joined #ruby
<timgauthier-mobi> shevy: how are you m8?
pu22l3r has quit [Ping timeout: 246 seconds]
kevkev has quit [Ping timeout: 272 seconds]
GrantK has joined #ruby
TheTopBloke has quit [Client Quit]
ndrei has joined #ruby
ndrei_ has joined #ruby
GrantK has left #ruby [#ruby]
rindolf has quit [Quit: http://www.shlomifish.org/ ; It takes Summer Glau exactly a minute to write a rebuttal like in xkcd: “Venting”, and she would sign it as Chuck Norris. ( http://is.gd/U2VvJt )]
bMalum has quit [Client Quit]
pu22l3r_ has quit [Remote host closed the connection]
gvenkat_ has quit [Quit: This computer has gone to sleep]
robustus has quit [Ping timeout: 250 seconds]
pu22l3r has joined #ruby
recurrence has joined #ruby
lemur has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
diegoviola has joined #ruby
bMalum has joined #ruby
tastycode has quit [Quit: tastycode]
maestrojed has joined #ruby
robustus has joined #ruby
camt has joined #ruby
farn has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
timgauthier-mobi has quit [Quit: Enough for now]
reset has joined #ruby
timgauthier-mobi has joined #ruby
rikai has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reset has quit [Client Quit]
ta__ has joined #ruby
rikai has joined #ruby
JustinAiken has joined #ruby
<JustinAiken> Anyone know of any discount codes for RubyConf?
timgauthier-mobi has quit [Client Quit]
robh71 has quit [Quit: Textual IRC Client: www.textualapp.com]
timgauthier-mobi has joined #ruby
ghr has joined #ruby
ta has quit [Ping timeout: 260 seconds]
cirn0 has joined #ruby
iamjarvo has joined #ruby
deric_skibotn has quit [Ping timeout: 245 seconds]
timgauthier has joined #ruby
momomomomo has joined #ruby
Xeago has joined #ruby
meth has joined #ruby
reset has joined #ruby
lolmaus__ has quit [Remote host closed the connection]
<meth> is there an easy tcp socket wrapper similar to open-uri ?
timgauthier-mobi has quit [Client Quit]
lolmaus__ has joined #ruby
skammer3 has quit [Ping timeout: 246 seconds]
<apeiros> meth: what's too complex about TCPSocket?
fabrice31 has joined #ruby
Tuxero has left #ruby [#ruby]
ghr has quit [Ping timeout: 260 seconds]
<meth> someone just showed me some code and he was wrapping it in Timeout.timeout and then looking around the web you see such long winded proper solutions uses select and everything... when i figure ruby would just have a clean simple wrapper that lets you define a timeout and for when you want something simple like an open-uri interface?
alvaro_o_ has joined #ruby
cajone has left #ruby [#ruby]
cirn0 has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
Advocation has joined #ruby
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> meth: that was a vital part of your question. kinda bad to leave that out :-p
<meth> well keeping it short is probably best bet
<apeiros> short != leaving out vital parts.
<meth> i look at open-uri and it's so easy... i figure there must be some easy wrapper for when you want basic netcat like ability really quickly
<apeiros> and no. there is none. otherwise that article would have used that.
<meth> like i generally use eventmachine for sockets but for a simple client connection it's a bit verbose and overboard
<apeiros> afaik there already is a gem out (maybe even more than one) which encapsulates exactly what that link describes
timgauthier-mobi has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<F__i__L> hi! I try to run this small method (it's inside a class) but I get this error: "syntax error, unexpected keyword_true, expecting ':'" on line 14.. what is wrong with it ?
Mars___ has quit [Remote host closed the connection]
<F__i__L> oops I forgot the link: http://pastie.org/9573292
momomomomo has quit [Quit: momomomomo]
timgauthier has joined #ruby
Mars___ has joined #ruby
timgauthier has quit [Max SendQ exceeded]
<jhass> meth: Timeout.timeout is dangerous though
mikepack has joined #ruby
timgauthier has joined #ruby
<jhass> it spawns a thread and kills it after the timeout and there simply is no thread safe way to kill a thread
<jhass> from the outside
postmodern has joined #ruby
Mars____ has joined #ruby
timgauthier-mobi has quit [Remote host closed the connection]
Mars___ has quit [Read error: Connection reset by peer]
deric_skibotn has joined #ruby
<jhass> F__i__L: your else branch won't do what you think it does
lkba has joined #ruby
<jhass> F__i__L: you probably want Enumerable#all? or Enumerable#any?
<jhass> F__i__L: and then all those return keywords and the last line of the method aren't needed
benzrf is now known as benzrf|offline
spider-mario has joined #ruby
<apeiros> F__i__L: the first couple of rules can be condensed into a single regex
kate_r has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
<apeiros> ah well, the .count > 1 would actually be hard
benlieb has joined #ruby
<jhass> but .scan('!').count == .count('!')
lkba has quit [Read error: Connection reset by peer]
ctp has quit [Read error: Connection reset by peer]
<apeiros> == .include?('!')
<F__i__L> apeiros you mean regex is faster? jhass could you quickly edit the pastie and repaste it because I am not sure if I understood what you are saying.. but still I haven't really understood why it doesn't work like that
lkba has joined #ruby
<F__i__L> probably I am doing something wrong but all I am saying is that anything else if I put there except from return statement it works
<apeiros> F__i__L: hm, I've just noticed that one of your elsif's does not return true
ctp has joined #ruby
<apeiros> F__i__L: but yes, a regex passing your string once for all words to test is faster than multiple passes using include/scan
<meth> yea which is why i wanted to avoid Timeout.timeout and show this guy an easier *ruby like* way to do it
wallerdev has quit [Quit: wallerdev]
Sirupsen has joined #ruby
<meth> this seems to at least offer a better timeout approach https://github.com/lann/tcp-timeout-ruby
kate_r_ has quit [Ping timeout: 272 seconds]
<F__i__L> ok anyway the only way to make it work is to add an if/else/end
<jhass> the any could maybe be faster with a text.match(Regexp.union(spam_words))
dexkiki has joined #ruby
meth has quit [Quit: Leaving.]
meth has joined #ruby
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
robbyoconnor has quit [Client Quit]
milkohol has joined #ruby
<sarkis> planning on releasing 2.1.3 today?
b00stfr3ak has quit [Ping timeout: 240 seconds]
<sarkis> i saw a tag on the github mirror
<sarkis> not sure if 2.1.3 is just starting dev or if the tag means v2.1.3 on its way :)
himsin has quit [Quit: himsin]
fantnn has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
fantnn has left #ruby [#ruby]
AlSquire has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
kamilc__ has quit [Read error: Connection reset by peer]
cocotton has quit [Read error: Connection reset by peer]
Filipe07 has joined #ruby
cocotton has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Photism_ has joined #ruby
<Filipe07> People, like programming? Visit: https://skilleo.me/referral/FlmkpnkDW and put yourself a prove
maestrojed has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
BadQuanta has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
iamjarvo has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
GodPuppet has joined #ruby
kirun_ has joined #ruby
angusigu1ss has joined #ruby
cocotton has joined #ruby
sectionme has joined #ruby
Photism has quit [Ping timeout: 258 seconds]
kirun has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
top4o has joined #ruby
Asher has quit [Quit: Leaving.]
Akagi201 has joined #ruby
bricker`work has quit [Ping timeout: 246 seconds]
<JustinAiken> REFERAL LINK!!!!
<sarkis> lol
angusigu1ss has quit [Ping timeout: 244 seconds]
<sarkis> anyone know about the v2.1.3 tag that was cut on github?
Cecen_ has joined #ruby
<toretore> how do i put myself a prove?
top4o has quit [Client Quit]
omosoj has quit [Ping timeout: 240 seconds]
JustinAiken has quit [Quit: Leaving.]
sectionme has quit [Ping timeout: 255 seconds]
<havenwood> sarkis: installable with ruby-install now: ruby-install ruby 2.1.3 --md5 02b7da3bb06037c777ca52e1194efccb
<sarkis> sweeeet
<sarkis> thank you
<sarkis> need the md5?
Scotteh has quit [Ping timeout: 272 seconds]
<havenwood> sarkis: you can drop the flag and md5 if you don't want to verify the download
<havenwood> sarkis: but since the md5 hasn't been added to ruby-install quite yet, you can specify it yourself
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Akagi201 has quit [Ping timeout: 260 seconds]
Filipe07 has left #ruby [#ruby]
timonv_ has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cecen has quit [Ping timeout: 276 seconds]
kate_r has joined #ruby
jeroenvisser101 has quit [Quit: I'm off, ttyl!]
yfeldblum has joined #ruby
Sht0 has quit [Ping timeout: 258 seconds]
kevkev has joined #ruby
Sht0 has joined #ruby
<sarkis> awesome, thanks!
<sarkis> is there a changelog yet for 2.1.3?
timonv^ has quit [Ping timeout: 272 seconds]
<j4jackj> h
timonv_ has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
lkba has joined #ruby
Scotteh has joined #ruby
cpruitt has quit [Quit: cpruitt]
yfeldblum has quit [Ping timeout: 260 seconds]
kevkev has quit [Ping timeout: 246 seconds]
mr-foobar has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
<havenwood> sarkis: or now the md5 has been added to ruby-install if you want to use head
GodPuppet has quit [Remote host closed the connection]
<sarkis> nice!
zz_jrhorn424 is now known as jrhorn424
meth has left #ruby [#ruby]
<havenwood> sarkis: PS, if you want to check out 2.2 preview: ruby-install ruby 2.2.0-preview1
<havenwood> Ruby 2.2 \o/
yetanotherdave has quit [Ping timeout: 272 seconds]
wink_ndge has quit [Quit: Bye!]
<havenwood> Is it Christmas yet?
<sarkis> prob start testing it ... "preview" usually means not ready for prod :P
<sarkis> unless we can thoroughly test the crap out of it on our app
<havenwood> yeah, that's a nice early preview, plenty of time to fix issues that arise :)
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> try out the shiny new GC
Scotteh has quit [Ping timeout: 255 seconds]
a___ has joined #ruby
maq has quit [Quit: Nettalk6 - www.ntalk.de]
decoponio has quit [Quit: Leaving...]
<sarkis> havenwood: so is this ruby 2.1.3 or rubygems 2.1.3 or both?
<sarkis> havenwood: i assume the site will be updated shortly with 2.1.3 as the current stable version?
<jhass> rubygems is at 2.4.something
tjbiddle has quit [Quit: tjbiddle]
<havenwood> sarkis: yes it is Ruby 2.1.3, it ships with RubyGems 2.2.2
<havenwood> sarkis: which you can update to 2.4.1 with: gem update --system
<havenwood> sarkis: Ruby ships with RubyGems, but RubyGems versioning is independent of Ruby. Ruby just ships with a particular version.
relix has joined #ruby
ghr has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
<havenwood> sarkis: and yeah, they'll post a release not summary when they announce the release
<havenwood> release note*
InhalingPixels has quit [Remote host closed the connection]
Jackneill has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
<sarkis> thanks!
kirun__ has joined #ruby
tastycode has joined #ruby
mbwe has joined #ruby
tkuchiki has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
kirun_ has quit [Ping timeout: 260 seconds]
kirun__ has quit [Client Quit]
mengu has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
InhalingPixels has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
b00stfr3ak has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
Astrologos_ has joined #ruby
skammer3 has joined #ruby
codecop has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
abdulsattar has joined #ruby
gwb3 has joined #ruby
dorei has quit [Ping timeout: 258 seconds]
tobago has quit [Remote host closed the connection]
omosoj has joined #ruby
Takle has quit [Remote host closed the connection]
loo is now known as lnong
cocotton_ has joined #ruby
Astrologos_ has quit [Client Quit]
jrhorn424 is now known as zz_jrhorn424
wallerdev has joined #ruby
dorei has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
ndrei_ has quit [Ping timeout: 258 seconds]
<shevy> guys
cocotton_ has quit [Remote host closed the connection]
mark06 has joined #ruby
<shevy> I love you
cocotton_ has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 260 seconds]
aspiers has joined #ruby
amitchellbullard has quit [Ping timeout: 255 seconds]
jeremy04 has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
tiagonobre_ has quit [Ping timeout: 272 seconds]
adambeynon has quit [Ping timeout: 260 seconds]
benzrf|offline is now known as benzrf
adambeynon has joined #ruby
tiagonobre_ has joined #ruby
amitchellbullard has joined #ruby
zz_jrhorn424 is now known as jrhorn424
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cocotton has joined #ruby
a___ has quit [Ping timeout: 245 seconds]
rkalfane has joined #ruby
doodlehaus has joined #ruby
<wallerdev> so whos getting the new iphone
<jhass> as usual
<jhass> all the idiots
cocotton_ has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
tlarevo has joined #ruby
volty has joined #ruby
mdw has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
<shevy> lol
ht__th has quit [Remote host closed the connection]
<shevy> I am not getting one
<jhass> okay, point taken. Almost all
fantnn has joined #ruby
<jhass> :P
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mark_locklear has quit [Ping timeout: 258 seconds]
<shevy> Can one of you give me examples for projects that allow you to require individual files from a larger library
<shevy> I believe the facets library is one, and I believe activerecord allows this as well?
<fantnn> could anyone smarter than me tell me how i could tweak s.scan(/\w/).inject(Hash.new(0)){|h, c| h[c] += 1; h} to work with punctuation?
<jhass> shevy: activesupport? :P
bMalum has quit [Ping timeout: 240 seconds]
<jhass> fantnn: look up what \w matches and what alternatives there are
<shevy> require 'facets/opesc'
<shevy> jhass ok
<shevy> I want to collect which projects use something similar
<shevy> because obviously, if many projects were to use it, it might be something that ruby core in itself lacks
martinzajac has joined #ruby
bricker`work has joined #ruby
<shevy> fantnn what is punctuation in this context? do you have a sample input and desired output?
<jhass> shevy: digest stdlib
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
bMalum has joined #ruby
<fantnn> im trying to count the number of occurences of a character in a string
<fantnn> and use a hash to keep track
<fantnn> works for regex [a-zA-Z] but fails on other characters
<jhass> fantnn: those are the very basics of regex, it's worth learning them
<shevy> jhass oh? hmm let me look
<wallerdev> you can use . to match any character
<wallerdev> /./
<havenwood> fantnn: "/[[:graph:]]/ - Non-blank character (excludes spaces, control characters, and similar)"
freerobby has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
<havenwood> fantnn: one possible example: s.scan(/[[:graph:]]/).each_with_object(Hash.new(0)) { |char, hash| hash[char] += 1 }
freerobby has joined #ruby
bmurt has quit []
Astrologos_ has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
angusigu1ss has joined #ruby
dexkiki has quit [Ping timeout: 246 seconds]
<fantnn> havenwood: thanks!
Wolland has quit [Remote host closed the connection]
sectionme has joined #ruby
<havenwood> fantnn: or another take: s.each_char.with_object(Hash.new 0) { |char, hash| hash[char] += 1 if char =~ /\S/ }
dorei has quit [Ping timeout: 272 seconds]
yekta has quit [Quit: yekta]
<shevy> havenwood is the channel guru
<shevy> wallerdev is the channel mascot
<havenwood> shevy: s/guru/blabbermouth
<shevy> Hanmac is the channel cryptic-ruby expert
<shevy> *channel's
<Cecen_> I have an array of hashes, generated from a JSON string. How do I collect the "id" member of each hash into a new array?
<shevy> and apeiros became very silent ever since he dived into the rails world :(
fsapo has quit [Remote host closed the connection]
bmurt has joined #ruby
<wallerdev> hashes.collect { |h| h['id'] }
<shevy> why not .map
<Cecen_> I'm trying to use map, but I'm not sure how to reference the key in the hash
<wallerdev> cuz he said collect
<wallerdev> lol
Adran has quit [Quit: Este é o fim.]
<shevy> lol
<shevy> good point
<jhass> Cecen_: to avoid confusion: map and collect are aliases ;)
Akagi201 has joined #ruby
Cecen has joined #ruby
chrishou_ has joined #ruby
angusigu1ss has quit [Ping timeout: 255 seconds]
<Cecen> Is there a short way to do this, or do I need to use a procedure?
chrishou_ has quit [Client Quit]
chrishough has quit [Ping timeout: 255 seconds]
<jhass> Cecen: wallerdev already showed
Adran has joined #ruby
sectionme has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
<havenwood> how not to do it...
<havenwood> >> [{aim: true}, {aim: :huh}].each_with_object(:aim).map(&:[])
<eval-in> havenwood => [true, :huh] (https://eval.in/195280)
<jhass> that is so wrong... :D
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
chrishough has joined #ruby
paulfm_ has quit []
Cecen_ has quit [Ping timeout: 255 seconds]
Akagi201 has quit [Ping timeout: 260 seconds]
mijicd has joined #ruby
nanoyak has joined #ruby
WildBamboo-Josh has quit [Quit: Leaving]
benzrf is now known as benzrf|offline
andrewlio has quit [Quit: Leaving.]
kevkev has joined #ruby
anaeem1_ has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
yetanoth1rdave has joined #ruby
charliesome has joined #ruby
Paul_McFreely has quit [Quit: Computer has gone to sleep.]
yetanotherdave has quit [Ping timeout: 255 seconds]
Paul_McFreely has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
mferrier has joined #ruby
shosti has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
<shevy> the dual : trip me up
<shevy> foo: bar is ok
<shevy> foo: :bar kills me
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
yetanoth1rdave has quit [Ping timeout: 244 seconds]
kevkev has quit [Ping timeout: 272 seconds]
andrewjanssen has joined #ruby
rubyonrailed has joined #ruby
yetanotherdave has joined #ruby
Morkel has quit [Quit: Morkel]
<wallerdev> wait til you see the triple :
charliesome has quit [Quit: zzz]
ndrei has joined #ruby
lemur has joined #ruby
<slash_nick> shevy: i think the lack of rotational symmetry bothers you... not so bad: - doo: :oop
<slash_nick> pod: :pod
joelsmith has quit [Remote host closed the connection]
cndiv has quit [Ping timeout: 272 seconds]
joelsmith has joined #ruby
Tomme has quit [Ping timeout: 260 seconds]
bmurt has quit []
<shevy> man
sectionme has joined #ruby
rimenes has joined #ruby
duggiefresh has quit []
ndrei_ has joined #ruby
recurrence has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 246 seconds]
pu22l3r_ has joined #ruby
recurrence has joined #ruby
cmarques has joined #ruby
cndiv has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Ping timeout: 272 seconds]
dopie has joined #ruby
pozican has quit [Read error: No route to host]
tjr9898 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ericmathison has joined #ruby
tjr9898 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
omosoj has quit [Ping timeout: 260 seconds]
cirn0 has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
adac has quit [Ping timeout: 258 seconds]
Wolland has joined #ruby
micluss has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<micluss> Hello! This may be a silly question. But is there a way to curl an endpoint storing JSON and have an array equal to this response in IRB ?
<micluss> I’m curling using `curl foobar’ and I get a response, but it is a string
sylvanica has quit [Quit: sylvanica]
<toretore> JSON.parse(make_request.get_body)
<slash_nick> micluss: there's a ton of libraries out there for making http requests... curb, net/http, open-uri, faraday, httparty, etc. etc... you'll have to parse the response from a string into an array or whatever
benzrf|offline is now known as benzrf
Wolland has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
cirn0 has quit [Ping timeout: 272 seconds]
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
sectionme has quit [Ping timeout: 244 seconds]
rubyonrailed has quit [Remote host closed the connection]
gsd_ has joined #ruby
gsd has quit [Read error: Connection reset by peer]
zz_jrhorn424 is now known as jrhorn424
nfk has quit [Quit: yawn]
hiyosi has joined #ruby
Takle has joined #ruby
saarinen has quit [Quit: saarinen]
mferrier has quit []
Mars____ has quit [Remote host closed the connection]
Mars__ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
Hobogrammer has joined #ruby
relix has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Ping timeout: 244 seconds]
Takle has quit [Ping timeout: 240 seconds]
Mars__ has quit [Ping timeout: 245 seconds]
Takumo has quit [Ping timeout: 240 seconds]
livingstn has quit []
Avahey_ has quit [Quit: Connection closed for inactivity]
akshayvishnoi has joined #ruby
tenseiten has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
aclearman037 has quit [Ping timeout: 245 seconds]
ValicekB has quit [Ping timeout: 245 seconds]
jamo_ has quit [Ping timeout: 245 seconds]
kiki_lamb has quit [Ping timeout: 245 seconds]
moshee has quit [Ping timeout: 245 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
wang has quit [Ping timeout: 240 seconds]
haroldwu has quit [Ping timeout: 240 seconds]
qpok has quit [Ping timeout: 245 seconds]
TTilus has quit [Ping timeout: 245 seconds]
nw has quit [Ping timeout: 245 seconds]
avelldiroll has quit [Ping timeout: 240 seconds]
crazed has quit [Ping timeout: 240 seconds]
csfrancis has quit [Ping timeout: 240 seconds]
oddraisi1 has quit [Ping timeout: 240 seconds]
rikai has quit [Ping timeout: 245 seconds]
ineb has quit [Ping timeout: 245 seconds]
seitensei has quit [Ping timeout: 245 seconds]
Drakevr has quit [Ping timeout: 245 seconds]
Drakevr has joined #ruby
rikai has joined #ruby
qpok has joined #ruby
ineb has joined #ruby
wang has joined #ruby
haroldwu has joined #ruby
jamo_ has joined #ruby
nw has joined #ruby
Takumo has joined #ruby
wang is now known as Guest80408
TTilus has joined #ruby
moshee has joined #ruby
csfrancis has joined #ruby
avelldiroll has joined #ruby
crazed has joined #ruby
kiki_lamb has joined #ruby
aclearman037 has joined #ruby
oddraisin has joined #ruby
goshdarnyou has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
abdulsattar has quit [Ping timeout: 240 seconds]
rubyonrailed has joined #ruby
mocfive has joined #ruby
workmad3 has joined #ruby
<shevy> any of you knows a website handler that makes use of markdown-formatted files?
<shevy> like, if I have a blog, I want to only write markdown format files
micluss has quit [Quit: micluss]
<eam> shevy: let me know if you find one
<mozzarella> I know one but I don't remember the name
Drakevr has quit [Changing host]
Drakevr has joined #ruby
ValicekB has joined #ruby
skammer3 has quit [Ping timeout: 260 seconds]
micluss has joined #ruby
Synthead has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
<mozzarella> shevy: http://octopress.org/ (uses jekyll)
angusigu1ss has joined #ruby
<shevy> Next, install dependencies.
<shevy>
<shevy> gem install bundler
<shevy> hmm
doodlehaus has quit [Remote host closed the connection]
devdazed has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
huddy has joined #ruby
blackmesa has joined #ruby
Cecen_ has joined #ruby
Akagi201 has joined #ruby
codeurge has quit [Quit: Sleep.]
angusigu1ss has quit [Ping timeout: 258 seconds]
Sht0 has quit []
Synthead has joined #ruby
Deele has quit [Ping timeout: 258 seconds]
Cecen has quit [Ping timeout: 248 seconds]
Sht0 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
Akagi201 has quit [Ping timeout: 258 seconds]
m8 has quit [Quit: Sto andando via]
DrShoggoth has quit [Quit: Leaving]
kevkev has joined #ruby
pork_clips is now known as _cake
<jokke> hi
<jokke> i want to extend virtus a bit for my needs
<jokke> i need to set up callbacks for all generated setter methods
jottr has joined #ruby
<jokke> is it somehow possible to extend the generated methods?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars__ has joined #ruby
<jokke> so that i could open up foo= and make it call the old definition and then my stuff
<_cake> wat
<_cake> hello
easier has quit [Remote host closed the connection]
kevkev has quit [Ping timeout: 246 seconds]
<jokke> hi _cake
<_cake> why use getter and setters when you can just attr_accessor
<banister> _cake that's what attr_accessor does, it defines getters and setters
<jokke> ^
sailias has quit [Ping timeout: 240 seconds]
<_cake> extend generated methods like... call the parent function of the super class or something/
Avahey_ has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<workmad3> jokke: google 'alias method chain'
gsd_ has quit [Ping timeout: 258 seconds]
<jokke> _cake: nah the method won't exist in the parent class, because it's created with metaprogramming
<jokke> workmad3: thanks
<_cake> so you want to extend the attr_accessor ones?
AlSquire has quit [Quit: This computer has gone to sleep]
<jokke> no
<_cake> alrigh
martinzajac has quit []
<workmad3> jokke: although the basic idea is that you use method aliases to rename the original method something like 'foobar_without_my_thing' and then you can define your new foobar method, call foobar_without_my_thing
<jokke> workmad3: omg
<jokke> workmad3: that's exactly what i need
gsd has joined #ruby
<jokke> thanks
micluss has quit [Quit: micluss]
<workmad3> jokke: the other approach would be to create an anonymous module holding your metaprogrammed methods, include that into the module to add the behaviour
<workmad3> jokke: then overrides can simply use super
<jokke> true
<_cake> couldn't you just.. not use attr_accessor and write the functions manually?
angusigu1ss has joined #ruby
<_cake> @var = arg
<jokke> _cake: i think you're missing the big picture here
<_cake> probably
<jokke> go check out virtus
enriclluelles has joined #ruby
<_cake> yep
<jokke> it does a lot more than that
<_cake> that's the big picture I don't have
<workmad3> _cake: that's what I tend to do with attr_accessor... but plenty of other metaprogrammed methods do a lot more
yfeldblu_ has quit [Remote host closed the connection]
omosoj has joined #ruby
yfeldblum has joined #ruby
<_cake> "Attributes on Steroids'
rkalfane has joined #ruby
Spami has joined #ruby
<_cake> Ohhhhh
<_cake> now I slightly understand more
blackmesa has quit [Ping timeout: 272 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
linojon has quit [Quit: linojon]
sdwrage has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
davedev24_ has joined #ruby
charliesome has quit [Quit: zzz]
micluss has joined #ruby
Rhainur has quit [Read error: Connection reset by peer]
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.1/20140911151253]]
jxf has joined #ruby
ghr has joined #ruby
Rhainur has joined #ruby
Rhainur has quit [Client Quit]
yfeldblum has quit [Ping timeout: 272 seconds]
<jxf> Given a 64-character string of 0s and 1s representing a sequence of big-endian bytes that corresponds to a Float (e.g. "0100011..."), how do I #unpack that into a float?
yfeldblu_ has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
skammer3 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
agjacome has quit [Quit: leaving]
tkuchiki has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
lolmaus__ has quit [Read error: Connection reset by peer]
sectionme has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lolmaus__ has joined #ruby
icarus has joined #ruby
Bandere has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
jlovick has quit [Remote host closed the connection]
n_blownapart has joined #ruby
akshayvishnoi has quit [Quit: akshayvishnoi]
andrewjanssen has quit [Quit: Leaving...]
tac_ has joined #ruby
easier has joined #ruby
Takle has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KC9YDN has joined #ruby
akshayvishnoi has joined #ruby
sectionme has quit [Ping timeout: 258 seconds]
KC9YDN-2 has joined #ruby
KC9YDN-2 has quit [Client Quit]
zz_jrhorn424 is now known as jrhorn424
doritostains has joined #ruby
hiyosi has joined #ruby
willgo has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 244 seconds]
willgo has quit [Read error: Connection reset by peer]
willgo has joined #ruby
linojon has joined #ruby
angusigu1ss has joined #ruby
KC9YDN has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 240 seconds]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akshayvishnoi has quit [Quit: akshayvishnoi]
bMalum has quit [Ping timeout: 260 seconds]
tjr9898 has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
diegoviola has quit [Remote host closed the connection]
[gmi] has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
sepp2k has joined #ruby
jobewan has quit [Quit: Leaving]
linojon has quit [Quit: linojon]
fantnn has quit [Quit: Leaving.]
Xeago has joined #ruby
shackleford has quit [Remote host closed the connection]
micluss has quit [Quit: micluss]
axl_ has quit [Quit: axl_]
skammer3 has quit [Ping timeout: 240 seconds]
mary5030 has quit [Read error: Connection reset by peer]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
mary5030 has joined #ruby
freerobby has joined #ruby
benlieb has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
Cecen has joined #ruby
Akagi201 has joined #ruby
mdw has joined #ruby
awc737 has joined #ruby
chrishou_ has joined #ruby
djstorm has quit [Ping timeout: 246 seconds]
grenierm_ has joined #ruby
fabrice31 has joined #ruby
Cecen_ has quit [Ping timeout: 245 seconds]
chrishough has quit [Ping timeout: 260 seconds]
doritostains has quit [Quit: doritostains]
benlieb has quit [Read error: Connection reset by peer]
Asher has joined #ruby
grenierm_ is now known as grenierm
micluss has joined #ruby
bMalum has joined #ruby
Akagi201 has quit [Ping timeout: 260 seconds]
rimenes has joined #ruby
mijicd has quit [Remote host closed the connection]
<zorak8> but im getting this error https://gist.github.com/pauloat/dd86a9fb48fbe301fc1a
<zorak8> NameError: undefined local variable or method `store' for #<Shoes::App:0xdb8b48>
fabrice31 has quit [Ping timeout: 258 seconds]
<zorak8> the tutorial use 'green_shoes' instead of 'shoes'
kevkev has joined #ruby
bMalum has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
angusigu1ss has joined #ruby
Synthead has quit [Remote host closed the connection]
Takle has joined #ruby
sent-hil has joined #ruby
NightMonkey has joined #ruby
kevkev has quit [Ping timeout: 272 seconds]
<shevy> well
<shevy> shoes is different ever since _why left
chrishou_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<wallerdev> im surprised the project has continued
Scotteh has joined #ruby
<shevy> it morphed into a java-blob
chrishough has joined #ruby
<wallerdev> ah
<shevy> _why's old one could be run with C+gtk
lemur has joined #ruby
<wallerdev> yeah it was kinda an out there project in my eyes
<shevy> yeah, the idea was awesome, sad that _why went away
rp__ has quit [Ping timeout: 258 seconds]
<shevy> zorak8 your problem is a simple general ruby problem
<shevy> line 16: store.transaction(true) do
<shevy> but store is not known
<shevy> so you need to change your code to make store known
<zorak8> how?
kaspertidemann has quit []
<zorak8> what is _why?
hiyosi has joined #ruby
rp__ has joined #ruby
<havenwood> zorak8: how is _what?
<workmad3> zorak8: s/what/who
<havenwood> zorak8: _why the lucky stiff
kaspergrubbe has quit []
<graft_> anyone know how to override or set inspect on irb's main object?
lemur has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
<zorak8> ???
Scotteh has quit [Ping timeout: 272 seconds]
<graft_> or otherwise to call some function in your prompt?
angusigu1ss has quit [Ping timeout: 244 seconds]
kaspergrubbe has joined #ruby
cndiv has quit [Ping timeout: 245 seconds]
<centrx> graft_, monkey-patching Object#inspect should do it?
<centrx> graft_, that's where irb's main gets its #inspect presumably
Sgeo has joined #ruby
<graft_> seems a bit hardcore to monkey-patch Object#inspect
<zorak8> shevy: how make that?
<zorak8> make the store know?
<graft_> also in irb main.inspect yields "main", not the usual "#<self.class.name:self.class.object_id>" jazz
benlieb has joined #ruby
mdw has quit [Ping timeout: 272 seconds]
chrishough has quit [Read error: Connection reset by peer]
<graft_> i can do it with self.define_singleton_method(:inspect), but i dunno about sticking that in my .irbrc
chrishough has joined #ruby
ghr has joined #ruby
<graft_> guess it's worth a shot
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
justinmcp has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
oleo is now known as Guest82342
oleo__ has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
snath has quit [Ping timeout: 245 seconds]
saarinen_ has joined #ruby
sectionme has joined #ruby
rkalfane has joined #ruby
havenwood has quit [Remote host closed the connection]
diegoviola has joined #ruby
Xeago has quit [Remote host closed the connection]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
havenwood has joined #ruby
zwischenzug has quit [Quit: Leaving]
KC9YDN has joined #ruby
neonixcoder has joined #ruby
ndrei_ has quit [Ping timeout: 272 seconds]
MrL0ngbowman has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
MrL0ngbowman has quit [Client Quit]
Guest82342 has quit [Ping timeout: 272 seconds]
MrL0ngbowman has joined #ruby
cirn0 has quit [Ping timeout: 272 seconds]
DrCode has quit [Ping timeout: 264 seconds]
sectionme has quit [Ping timeout: 260 seconds]
cndiv has joined #ruby
havenwood has quit [Remote host closed the connection]
AndroUser465 has joined #ruby
volty has quit [Quit: Konversation terminated!]
davasaurous has joined #ruby
DrCode has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<NightMonkey> What's the appropriate response to "rbenv: cannot rehash: /home/luser/.rbenv/shims/.rbenv-shim exists"?
voodoofish4301 is now known as voodoofish430
yfeldblum has joined #ruby
tjr9898 has quit [Remote host closed the connection]
MrL0ngbowman has quit [Quit: Leaving]
Nieralyte has joined #ruby
micluss has quit [Quit: micluss]
Pulpie has joined #ruby
<Pulpie> hello
jack_rabbit has quit [Quit: Leaving]
<Pulpie> I want to overwrite the logger classes initialize function to do one extra thing.
<Pulpie> how can I do this in the easiest way?
<jhass> Pulpie: subclass + super
phoo1234567 has quit [Remote host closed the connection]
rbenv has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
<Pulpie> jhass: so class Logger < logger is the sub class way right?
<Pulpie> then if I have initialize() super end it should work.
<jhass> class MyLogger < Logger rather
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> where My describes your "extra" thingy
saarinen_ is now known as saarinen
<jhass> class TruncatingLogger < Logger # or whatever it is
MrL0ngbowman has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
<Pulpie> ahh alright
saarinen has quit [Quit: saarinen]
MrL0ngbowman has quit [Client Quit]
<Pulpie> and when I try to initialize now it tells me wrong number of arguments, how can I expose the original initializer arguments to my new sub class?
<jhass> one way would be def initialize(*args); super(*args); do_your_thing; end;
saarinen_ has joined #ruby
saarinen_ has quit [Client Quit]
jottr has quit [Ping timeout: 260 seconds]
<Pulpie> ahh cool
<Pulpie> thats super simple
<Pulpie> is there any major downside?
marr has quit [Ping timeout: 272 seconds]
<jhass> not really
jrhorn424 is now known as zz_jrhorn424
mofai has joined #ruby
jblancett has joined #ruby
jblancett has left #ruby [#ruby]
jblancett has joined #ruby
angusigu1ss has joined #ruby
rp__ has quit [Ping timeout: 272 seconds]
kayloos has quit [Remote host closed the connection]
<rbenv> When use/dont use self when call method inside another methods ?
workmad3 has quit [Ping timeout: 272 seconds]
<shevy> what's with your english guys
<shevy> rbenv you must think like the ruby parser
<shevy> def foo
<shevy> bla = 'hey'
neonixcoder has quit [Quit: Leaving.]
<shevy> this will be a local variable
<shevy> def foo
<shevy> self.bla = 'hey'
<shevy> now you invoke the method bla=()
<centrx> rbenv, self.method_call is strictly necessary when the method is an assignment = method, and when the method call is used in an assignment to a local variable of the same name
<centrx> rbenv, Otherwise, it is sometimes used for style/clarity
<Pulpie> jhass: super easy and simple thanks for your help :D
Pulpie has left #ruby [#ruby]
n_blownapart has quit [Remote host closed the connection]
doritostains has joined #ruby
snath has joined #ruby
<jokke> i have a module A which defines class methods on include. Now i want to include those class methods as instance methods in another module B. how can i accomplish this?
n_blownapart has joined #ruby
enriclluelles has quit [Remote host closed the connection]
davasaurous has quit [Ping timeout: 260 seconds]
skammer3 has joined #ruby
n_blownapart has quit [Client Quit]
davasaurous has joined #ruby
<rbenv> centrx, thanks
<centrx> jokke, have one class use extend on the module to attach the methods in the module as class methods, and the other class use include to attach as instance methods
<shevy> how do you define these methods on include time exactly?
wallerdev has quit [Quit: wallerdev]
icarus has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 260 seconds]
<jokke> shevy: i don't
<jokke> shevy: it's virtus
<centrx> yeah how is this module defining class methods on include
<shevy> virtus?
<centrx> virus?
<shevy> hehe
<shevy> you got a virus jokke!
<jokke> :P
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> just a jokke
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jokke> !rimshot
j4jackj has left #ruby [#ruby]
<shevy> as long as centrx does not tell any php jokkes
Tricon has quit [Ping timeout: 272 seconds]
<centrx> A priest and a PHP developer walk into a bar
<centrx> The priest says "oh, foo"
<centrx> The PHP developer says "I don't get it"
j4jackj has joined #ruby
<centrx> Turns out the PHP developer was not necessary for that joke
wallerdev has joined #ruby
<centrx> As usual
<shevy> >> module Foo; def test; puts 'test from Foo'; end; extend self; end; module Bar; extend Foo; end; Bar.test
<eval-in> shevy => test from Foo ... (https://eval.in/195313)
<shevy> that priest must have used ruby
<shevy> what technology is the vatican using?
<centrx> Logos
rkalfane has joined #ruby
<shevy> HTML!!!
<jhass> who says it was a christian priest?
<shevy> there is even an app lol
skammer3 has quit [Ping timeout: 272 seconds]
<shevy> we go by majority
<jhass> I hereby declare all people to discordian priests
<jhass> now what?
<centrx> PHP is most in need of absolution for the faults of its type system
<shevy> you are all sinners and infidels
<jokke> no that's not working
<jokke> the class methods are created on _include_
<wallerdev> php is pretty great
hmsimha has joined #ruby
<wallerdev> for quick single page sites
<jhass> jokke: _how_
<centrx> jokke, Are those class methods are in a submodule called ClassMethods?
icebourg has quit []
<wallerdev> just upload a php file via ftp to a shared host and youre done
<jokke> centrx: unfortunately not
<centrx> MethoditoDeClasso?
Cecen_ has joined #ruby
felipecvo has joined #ruby
<centrx> End transmission
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<jhass> what the... inetnum: 212.77.4.0 - 212.77.7.255 netname: HOLYSEE descr: Holy See - Vatican City State
Akagi201 has joined #ruby
<shevy> I can't be bothered to try to decipher that ruby code
<shevy> mass use of .send for inclusions
<jokke> ah found it
zettam is now known as pak
felipecvo has quit [Client Quit]
<shevy> lol jhass
<jokke> there was a class methods
<shevy> the last line reads like this here:
<shevy> ass_inclusions.rb#L13
pak is now known as zettam
stunder has quit [Remote host closed the connection]
Cecen has quit [Ping timeout: 276 seconds]
<wallerdev> looks like windows
EasyCo has joined #ruby
Akagi201 has quit [Ping timeout: 240 seconds]
<shevy> xchat!
<jhass> asschat
ptrrr has quit [Quit: ptrrr]
mikecmpbll has quit [Quit: ciao.]
chrishough has joined #ruby
<shevy> the successor is called hexchat
chrishough has quit [Client Quit]
startupality has quit [Quit: startupality]
freerobby has joined #ruby
kevkev has joined #ruby
Inhaling_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
jottr has joined #ruby
<j4jackj> tia is such a jerk
AndroUser465 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<Cecen_> I have an array of hashes, and I want to find the five hashes with the largest "count" member. What's the best way to approach this?
wald0 has quit [Quit: Lost terminal]
AndroUser465 has joined #ruby
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
<Cecen_> I could sort it, but I'm wondering if there's a better way
EminenceHC has joined #ruby
neonixcoder has joined #ruby
jxf has quit [Ping timeout: 272 seconds]
InhalingPixels has quit [Ping timeout: 245 seconds]
choke has quit [Ping timeout: 260 seconds]
zettam_ has joined #ruby
kevkev has quit [Ping timeout: 272 seconds]
<EminenceHC> I am setting a json variable called "discharge_date". Using a ternary operator if there is a date to parse it parses it and if there isnt it returns nil. Instead of returning nil, I would like the "discharge_date" to be omitted from the json instead of returning nil. How can I go about doing that? https://gist.github.com/EminenceHC/584afb87927b6e43c1a5
jottr has quit [Ping timeout: 260 seconds]
endash has quit [Quit: endash]
dphase has quit [Ping timeout: 260 seconds]