apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
oleo is now known as Guest56975
oleo__ has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
basex has joined #ruby
Guest56975 has quit [Ping timeout: 250 seconds]
pu22l3r has quit [Remote host closed the connection]
oleo__ has joined #ruby
oleo__ is now known as oleo
Pupeno has quit [Read error: Connection reset by peer]
BillSussman has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Musashi007 has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
luisalima has quit [Quit: Connection closed for inactivity]
basex has quit [Ping timeout: 244 seconds]
tus has joined #ruby
zorak_ has quit [Quit: Leaving]
zorak_ has joined #ruby
ta has quit [Remote host closed the connection]
zorak8 has joined #ruby
zorak_ has quit [Client Quit]
Pupeno has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
dorei has quit []
SparkMasterTape has quit [Quit: Leaving]
bronson has quit [Remote host closed the connection]
zorak8 has quit [Remote host closed the connection]
zorak8 has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
DLSteve has quit [Quit: Leaving]
razieliyo has joined #ruby
fandi has quit [Quit: Leaving]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
rkazak_ has joined #ruby
rkazak_ has left #ruby [#ruby]
Spami has joined #ruby
tomengland has quit [Remote host closed the connection]
<apeiros_> oh hurray, memory profiler crashes :(
tomengland has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m8 has quit [Quit: Sto andando via]
pwnz0r has joined #ruby
spider-mario has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
MartynKeigher has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorak8 has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
thumpba has joined #ruby
ixti has joined #ruby
Musashi007 has joined #ruby
fenzil has joined #ruby
cmarques has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 245 seconds]
mengu has quit []
renderful has joined #ruby
marr has quit [Ping timeout: 244 seconds]
<apeiros_> interesting. AR 4.1 is 5x slower on Model.find(id), but only 3x slower on Model.all.to_a
Musashi007 has quit [Quit: Musashi007]
renderful has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
oo_ has joined #ruby
mary5030_ has joined #ruby
tkuchiki has joined #ruby
onlyme has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
amystephen has joined #ruby
timonv_ has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 258 seconds]
BillSussman has quit [Quit: Leaving]
AndyBotwin has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 272 seconds]
ptrrr has quit [Quit: ptrrr]
charliesome has joined #ruby
ixti has joined #ruby
thumpba has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 245 seconds]
LouisRoR has quit [Ping timeout: 264 seconds]
Sawbones has joined #ruby
mary5030_ has quit [Remote host closed the connection]
TgMts_ has joined #ruby
rshetty has joined #ruby
mary5030 has joined #ruby
mjuszczak has quit []
vinleod has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
Soda has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
TgMts has quit [Ping timeout: 258 seconds]
eirik1 has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eirik1 has joined #ruby
Sawbones has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
Spami has quit [Quit: This computer has gone to sleep]
blizzy is now known as blizzybot
rshetty has quit [Remote host closed the connection]
blizzybot is now known as blizzy
thumpba has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<synire> just starting to look into ruby, anyone recommend a *free learning resource?
pwnz0r has quit [Remote host closed the connection]
tkuchiki has joined #ruby
pwnz0r has joined #ruby
thumpba has quit [Remote host closed the connection]
ta has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
pwnz0r has quit [Ping timeout: 258 seconds]
robustus|Off has joined #ruby
ta has quit [Ping timeout: 240 seconds]
robustus|Off is now known as robustus
hashpuppy has joined #ruby
<hashpuppy> been a long day. i was trying to get {1 => {a: 1, b: 2}, 2 => {a: 3, b: 4}}: [{a: 1, b: 2}, {a: 3, b:4}].inject({}){|h, x| h[x[:a]] = x}
<hashpuppy> but that's not what's being returned
Spami has joined #ruby
ta has joined #ruby
<hashpuppy> omg.. .nm
fandi has joined #ruby
thumpba has joined #ruby
claw__ has joined #ruby
gccostabr has quit [Ping timeout: 245 seconds]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
gccostabr has joined #ruby
arescorpio has joined #ruby
ta has quit [Ping timeout: 272 seconds]
_5kg has joined #ruby
tkuchiki has quit [Remote host closed the connection]
fandi has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
gccostabr has quit [Quit: ZZZzzz…]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
Azure has joined #ruby
D9 has joined #ruby
CoolGuyC has joined #ruby
<CoolGuyC> sup ruby
kasperti_ has quit []
CoolGuyC has left #ruby [#ruby]
AlSquire has quit [Quit: This computer has gone to sleep]
yfeldblu_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
shuber_ has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
fandi has joined #ruby
evanjs has joined #ruby
banister has joined #ruby
giuseppesolinas has joined #ruby
ebbflowgo has joined #ruby
lzx has joined #ruby
shuber_ has quit [Ping timeout: 264 seconds]
amystephen has left #ruby [#ruby]
evanjs has quit [Ping timeout: 244 seconds]
dts|pokeball has joined #ruby
oo_ has joined #ruby
lzx has quit [Remote host closed the connection]
fandi has quit [Max SendQ exceeded]
oo_ has quit [Ping timeout: 240 seconds]
mrdtt has joined #ruby
fandi has joined #ruby
javiercito has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
n80 has joined #ruby
lemur has quit [Ping timeout: 252 seconds]
slawrenc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
onlyme has quit [Quit: Lingo: www.lingoirc.com]
mjuszczak has joined #ruby
slawrenc_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Spami has quit [Quit: This computer has gone to sleep]
az7ar_away has quit [Ping timeout: 245 seconds]
dts|pokeball is now known as dts
dts is now known as dts|pokeball
_2_tanty has joined #ruby
<_2_tanty> ok
D9 has quit [Quit: Leaving]
agrinb has quit [Read error: Connection reset by peer]
ta has joined #ruby
agrinb has joined #ruby
_2_tanty has quit [Remote host closed the connection]
TgMts_ has quit [Ping timeout: 258 seconds]
DadoCe has joined #ruby
mjuszcza_ has joined #ruby
hamakn has joined #ruby
ta has quit [Ping timeout: 265 seconds]
mjuszczak has quit [Ping timeout: 256 seconds]
hephaestus_rg has quit [Ping timeout: 265 seconds]
<ght> Question: I have lots of logging and begin / rescue segments for individual API calls in my Ruby app, with begin / rescue statments wrapping my XLMRPC and RestClient calls, that all works great, but I was wondering...
<ght> Is there a watch to catchall ruby errors, in case anything else comes up? Do you have to wrap your entire app in a begin / rescue statement?
Takle has quit [Remote host closed the connection]
TeddyMurray has joined #ruby
havenwood has joined #ruby
fandi has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
fandi has joined #ruby
ta has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
<ght> I guess I should say, any tips on global exception handilng within a ruby application?
havenwood has quit [Remote host closed the connection]
rshetty has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 245 seconds]
gfawcettpq has quit [Ping timeout: 256 seconds]
thumpba has quit []
thumpba has joined #ruby
ta has joined #ruby
lemur has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
ARCADIVS has joined #ruby
timonv_ has joined #ruby
asmodlol has quit [Quit: Leaving]
lemur has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 256 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
javiercito has quit [Remote host closed the connection]
Sawbones has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
<ght> If I do the default rescuse => e (for StandardError), is there a way to print the specific exception? Such as #{e.error}?
blizzy has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
gfawcettpq has joined #ruby
ta has joined #ruby
pu22l3r has joined #ruby
rshetty has quit [Remote host closed the connection]
Cache_Money has joined #ruby
josephndenton has joined #ruby
n80 has quit [Quit: n80]
blizzy has joined #ruby
ta has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
tkuchiki has joined #ruby
nemesit_ has quit [Ping timeout: 244 seconds]
<shevy> well
<shevy> catching all errors, if you mean exception, already happens like so:
<ponga> hi
<shevy> rescue Exception
<shevy> ght so you could always put the whole file into a huge begin/rescue line ;)
<shevy> hey ponga
<ponga> what os are you on now shevy
<shevy> linux - it is on my main desktop machine
<apeiros_> ght: e.class
<ponga> shevy:
<ponga> do you nowt play game
<ponga> you can't play games on linux!
<apeiros_> ght: check the docs on Exception. the methods most are interested in are: e.class, e.message and e.backtrace
<shevy> very rarely. online chess with a friend in a browser where each one moves 1 per day roughly ;-)
<shevy> ponga well you can get a lot to run through winehq; I think I could run warcraft 3 too back then
<ponga> lol chess with no time out?
<shevy> yeah
nemesit|znc has joined #ruby
mjuszcza_ has quit []
<shevy> but it's 2D, I miss information; it's not the same as on a physical chess board :(
<ponga> might as well play chess over letter then
<ponga> if so slow
<epitron> he's back!
<epitron> >> "wh{'e'*100}!"
<eval-in__> epitron => "wh{'e'*100}!" (https://eval.in/237959)
leafybasil has quit [Remote host closed the connection]
gsd has quit [Ping timeout: 240 seconds]
<epitron> kinda :)
<epitron> oops!
<epitron> >> "wh#{'e'*100}!"
<eval-in__> epitron => "wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!" (https://eval.in/237961)
<apeiros_> /kick epitron no spam, kthxbye :-p
icebourg has joined #ruby
<epitron> i'm just happy!
<apeiros_> then clap your hands!
<epitron> >> [:clap]*100
<eval-in__> epitron => [:clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :clap, :cla ... (https://eval.in/237962)
gsd has joined #ruby
eirik1 has quit [Read error: Connection reset by peer]
<apeiros_> that's the bot's hands, not yours…
ebbflowgo has joined #ruby
<epitron> ok done
luriv_ has joined #ruby
eirik1 has joined #ruby
cajone has quit [Read error: Connection reset by peer]
DadoCe has quit [Remote host closed the connection]
cajone has joined #ruby
n80 has joined #ruby
luriv has quit [Ping timeout: 244 seconds]
Sawbones has quit [Remote host closed the connection]
radic has quit [Ping timeout: 245 seconds]
<shevy> lol
radic has joined #ruby
kapil__ has joined #ruby
claptor has quit [Quit: this channel is bakas]
DadoCe has joined #ruby
<ponga> lol bot's hands
Sawbones has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
claptor has joined #ruby
fandi has quit [Ping timeout: 265 seconds]
mjuszczak has joined #ruby
pu22l3r has joined #ruby
<godd2> right foot two stomps
Dopagod has joined #ruby
<shevy> is that a dance style guide for bots godd2 ?
blizzy is now known as blizzy
mary5030 has quit [Ping timeout: 258 seconds]
thumpba has quit [Remote host closed the connection]
mjuszczak has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
oo_ has joined #ruby
tus has quit []
phutchins has quit [Ping timeout: 250 seconds]
Takle has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
n80 has quit [Quit: n80]
pen has joined #ruby
n80 has joined #ruby
<godd2> shevy well we spent all this time teaching humans how to dance like robots, I figured I'd do it the other way too
fandi has joined #ruby
mjuszczak has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
ajaiswal has joined #ruby
mjuszczak has quit [Client Quit]
mjuszczak has joined #ruby
Sawbones has joined #ruby
n80 has quit [Quit: n80]
iamjarvo has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
pu22l3r has quit [Read error: No route to host]
statbot has joined #ruby
Sawbones has quit [Remote host closed the connection]
pu22l3r has joined #ruby
n80 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
apeiros_ has joined #ruby
<shevy> does one of you know some bash? http://pastie.org/9803056
<shevy> this works fine, but now I want to also add "on tab completion, also return all current files"
Joufflu has joined #ruby
javiercito has joined #ruby
n80 has quit [Quit: n80]
ta has joined #ruby
<shevy> guess I shall ask #bash
rshetty has joined #ruby
bronson has joined #ruby
javiercito has quit [Ping timeout: 244 seconds]
leafybasil has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
krz has joined #ruby
ta has quit [Ping timeout: 244 seconds]
thumpba has joined #ruby
LouisRoR has joined #ruby
n80 has joined #ruby
ta has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
ebbflowgo has quit [Quit: ebbflowgo]
ebbflowgo has joined #ruby
LouisRoR has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 265 seconds]
n80 has quit [Quit: n80]
bluOxigen has joined #ruby
braincrash has quit [Quit: bye bye]
thumpba has quit []
thumpba has joined #ruby
n80 has joined #ruby
karmatr0n has joined #ruby
Menorah has joined #ruby
braincrash has joined #ruby
banister has quit [Ping timeout: 245 seconds]
crueber has quit [Quit: Leaving.]
crueber has joined #ruby
crueber has quit [Read error: Connection reset by peer]
crueber has joined #ruby
oo_ has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 256 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 258 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
it0a has quit [Quit: WeeChat 1.0.1]
rshetty has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
ebbflowgo has joined #ruby
tejas-manohar has joined #ruby
pen has quit []
rshetty has joined #ruby
n80 has quit [Quit: n80]
crack_user has quit [Quit: Leaving.]
neutrino has joined #ruby
<tejas-manohar> what's the difference between a standard .post and .post_form? it's all just an HTTP POST request right? how do i replicate effects of .post_form in net/http when i use another http client like faraday?
yfeldblum has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dopagod has quit [Read error: Connection reset by peer]
Takle has joined #ruby
kp666 has joined #ruby
allen has quit [Ping timeout: 244 seconds]
<tejas-manohar> Mon_Ouie: thoughts? ^
rshetty has quit [Read error: Connection reset by peer]
slawrenc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
psy has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
tujv has joined #ruby
monzie has joined #ruby
evanjs has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
rshetty has quit [Remote host closed the connection]
ta has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
neutrino has quit [Quit: Leaving.]
timonv_ has joined #ruby
<tejas-manohar> shevy: or havenwood: you here?
<shevy> I am here but I dont know what is post or post_form
amystephen has joined #ruby
<tejas-manohar> shevy: oh net/http POST sends POST request :)
timonv_ has quit [Ping timeout: 245 seconds]
dc_ has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
ta has quit [Ping timeout: 245 seconds]
DadoCe has quit [Remote host closed the connection]
fenzil has quit [Quit: Leaving]
karmatr0n has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
karmatr0n has joined #ruby
babykosh has joined #ruby
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
karmatr0n has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
gfawcettpq has quit [Quit: Leaving.]
gfawcettpq has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Akagi201_ has quit [Read error: Connection reset by peer]
javiercito has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
rshetty has quit [Remote host closed the connection]
msmith_ has joined #ruby
mbff has joined #ruby
javiercito has quit [Ping timeout: 256 seconds]
<mbff> Hello! I am attempting to follow the oauth 2.0 instructions found on this page > https://github.com/kylejginavan/youtube_it, however I can't figure it out.
ChoiKyuSang has joined #ruby
<mbff> I have already created my oauth account
allen has joined #ruby
drizz has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
statbot has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
kaiserpathos has joined #ruby
dc_ has joined #ruby
tkuchiki has joined #ruby
allen has quit [Ping timeout: 244 seconds]
rpag has quit [Quit: Leaving]
Akagi201 has joined #ruby
msmith_ has quit [Remote host closed the connection]
MartynKeigher has quit [Quit: Leaving]
tkuchiki has quit [Ping timeout: 265 seconds]
babykosh has quit [Quit: babykosh]
uber_hulk has joined #ruby
knikolov has quit [Ping timeout: 256 seconds]
drizz has joined #ruby
rshetty has joined #ruby
uber_hulk has left #ruby [#ruby]
ixti has joined #ruby
eirik1 has quit [Read error: Connection reset by peer]
DivineEntity has quit [Quit: Lost terminal]
eirik1 has joined #ruby
<shevy> I hate bash so much :(
rshetty has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
kaiserpathos has quit []
josephndenton has joined #ruby
pu22l3r has quit [Remote host closed the connection]
tujv has quit [Quit: tujv]
rshetty has joined #ruby
<shevy> oh
<shevy> it just was weirdly documented
<shevy> one can use += in bash to append to a variable \ø/
tujv has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
rshetty has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 245 seconds]
echooo has joined #ruby
Menorah has joined #ruby
PanzerModern has joined #ruby
jcdesimp has quit [Quit: Leaving...]
rshetty has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
tujv has quit [Quit: tujv]
yfeldblum has joined #ruby
Pupeno has joined #ruby
evanjs has quit [Remote host closed the connection]
eirik1 has quit []
kapil__ has quit [Quit: Connection closed for inactivity]
ixti has joined #ruby
pu22l3r has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
tujv has joined #ruby
Takle has joined #ruby
sumark has quit [Remote host closed the connection]
mary5030_ has joined #ruby
sumark has joined #ruby
commmmodo has quit [Quit: commmmodo]
speaking1ode has quit [Ping timeout: 250 seconds]
mjuszczak has quit []
mary5030 has quit [Ping timeout: 255 seconds]
Takle has quit [Ping timeout: 258 seconds]
arup_r has joined #ruby
sinkensabe has joined #ruby
icebourg has quit []
TeddyMurray has quit [Ping timeout: 244 seconds]
bbbbu has joined #ruby
mjuszczak has joined #ruby
mary5030_ has quit [Remote host closed the connection]
speaking1ode has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
rshetty has quit [Remote host closed the connection]
bbbbu is now known as xeniter
rshetty has joined #ruby
mary5030 has quit [Remote host closed the connection]
speaking1ode has quit [Ping timeout: 244 seconds]
kyb3r_ has quit [Ping timeout: 244 seconds]
xeniter is now known as arusso_znc
mrdtt has quit [Quit: Textual IRC Client: www.textualapp.com]
kyb3r_ has joined #ruby
speaking1ode has joined #ruby
towski_ has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
arusso_znc is now known as prajahyle
monzie has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
jgrevich has joined #ruby
knikolov_ has joined #ruby
prajahyle is now known as axmo_
axmo_ is now known as xeniter_
xeniter_ is now known as cathaur
cathaur has quit [Disconnected by services]
mbff has quit [Ping timeout: 258 seconds]
Channel6 has quit [Quit: Leaving]
anitchrist has joined #ruby
<anitchrist> I run something close to this http://pastebin.com/0wG408nX in ruby's interactive mode and it prints out all the attr_reader's and then what must be the information result at the end, but when I write make a text(.rb) file with the same two lines the I write in irb all I get is http://pastebin.com/XG7vitGa
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
<anitchrist> I don't run the .rb file in irb when the information is missing I do it from the command prompt i.e. '$ ruby file.rb'
<anitchrist> if I run '$ irb file.rb' I get http://pastebin.com/xCsgGHYU after the list attr_reader list
<anitchrist> you guys still opening up presents?
thumpba has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
rshetty has joined #ruby
agrinb has joined #ruby
ishikawa91 has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
<bronson> This doesn't make much sense... you're using attr_reader outside a class definition?
DivineEntity has joined #ruby
jnollette has left #ruby ["Leaving..."]
ta has joined #ruby
anitchrist has quit [Read error: Connection reset by peer]
<bronson> And presumably you're running 'ruby file.rb' and not 'irb file.rb' ?
anitchrist has joined #ruby
anitchrist has quit [Changing host]
anitchrist has joined #ruby
startupality has joined #ruby
psy has quit [Ping timeout: 244 seconds]
agrinb has quit [Ping timeout: 264 seconds]
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
startupality has joined #ruby
startupality has quit [Client Quit]
<shevy> anitchrist you know, attr_reader :foo is the same as doing: def foo; @foo; end
<shevy> anitchrist but I don't think this code could run for you
josephndenton has joined #ruby
<shevy> When I try it in irb I get an error:
<shevy> attr_reader :directory
<shevy> NoMethodError: undefined method `attr_reader' for main:Object
<anitchrist> right cause I changed some things so that the destination isn't there for others
thumpba has quit [Remote host closed the connection]
ta has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
byprdct has joined #ruby
hamakn has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 245 seconds]
jerusalemdax has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
towski_ has quit [Remote host closed the connection]
byprdct has quit [Ping timeout: 252 seconds]
MasterPiece has joined #ruby
timonv_ has joined #ruby
mbff has joined #ruby
Azure has joined #ruby
jerusalemdax has quit [Quit: jerusalemdax]
tujv has quit [Quit: tujv]
jack_rabbit has joined #ruby
kapil__ has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
dc_ has quit [Remote host closed the connection]
<anitchrist> shevy: it runs for me
Beoran__ has quit [Read error: Connection reset by peer]
<anitchrist> just tryna figure out why it doesn't print out the results
hamakn has joined #ruby
sinkensabe has joined #ruby
<anitchrist> with ruby but it does in rib
<shevy> yeah it can run for you
<shevy> but not the code you showed us right?
<anitchrist> irb
dc_ has joined #ruby
<shevy> nope
<shevy> attr_reader :foo
<anitchrist> no the code I showed you is for general examples
<shevy> NoMethodError: undefined method `attr_reader' for main:Object
psy has joined #ruby
elaptics`away is now known as elaptics
josephndenton has joined #ruby
pengin has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest29639 has joined #ruby
mjuszczak has quit []
s00pcan has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
Musashi007 has joined #ruby
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Max SendQ exceeded]
Guest29639 has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 272 seconds]
evanjs has joined #ruby
_5kg has quit [Ping timeout: 256 seconds]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
javiercito has joined #ruby
dseitz has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
<shevy> soon 2014 is over
pengin has quit [Ping timeout: 265 seconds]
javiercito has quit [Ping timeout: 252 seconds]
ixti has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
St1gma has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
tkuchiki has joined #ruby
Musashi007 has quit [Quit: Musashi007]
rshetty has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby
rpag has joined #ruby
hamakn has joined #ruby
yfeldblum has joined #ruby
sevenseacat has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
last_staff has joined #ruby
coderhs has joined #ruby
hamakn has quit [Remote host closed the connection]
coderhs has quit [Client Quit]
lemur has joined #ruby
DivineEntity has quit [Quit: Lost terminal]
yfeldblum has quit [Ping timeout: 256 seconds]
Menorah has joined #ruby
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
noop1 has joined #ruby
leafybasil has quit [Remote host closed the connection]
hamakn has joined #ruby
pu22l3r has quit [Remote host closed the connection]
timonv_ has joined #ruby
St1gma has quit [Quit: Leaving]
St1gma has joined #ruby
hamakn has quit [Remote host closed the connection]
Pupeno has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jgrevich has quit [Quit: jgrevich]
Pupeno has quit [Ping timeout: 250 seconds]
iamninja has joined #ruby
Musashi007 has joined #ruby
agrinb has joined #ruby
rpag has quit [Ping timeout: 265 seconds]
tobago has joined #ruby
Takle has joined #ruby
_5kg has joined #ruby
browndawg has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
banjara has quit [Quit: Leaving.]
<anitchrist> I run something close to this http://pastebin.com/0wG408nX in ruby's interactive mode and it prints out all the attr_reader's and then what must be the information result at the end, but when I write make a text(.rb) file with the same two lines the I write in irb all I get is http://pastebin.com/XG7vitGa
<anitchrist> I don't run the .rb file in irb when the information is missing I do it from the command prompt i.e. '$ ruby file.rb'
<anitchrist> if I run '$ irb file.rb' I get http://pastebin.com/xCsgGHYU after the list attr_reader list
Takle has quit [Ping timeout: 250 seconds]
kamilc__ has joined #ruby
olivier_bK has quit [Ping timeout: 244 seconds]
josephndenton has quit [Ping timeout: 256 seconds]
fandi has quit [Ping timeout: 240 seconds]
fandi_ has joined #ruby
dumdedum has joined #ruby
decoponio has joined #ruby
ta has joined #ruby
dionysus69 has joined #ruby
banjara has joined #ruby
MasterPiece has quit [Ping timeout: 265 seconds]
govg has joined #ruby
speaking1ode has quit [Ping timeout: 258 seconds]
Soda has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
ta has quit [Ping timeout: 272 seconds]
noop1 has quit [Ping timeout: 245 seconds]
lemur has quit [Ping timeout: 244 seconds]
Soda has quit [Remote host closed the connection]
noop1 has joined #ruby
ta has joined #ruby
daniell has joined #ruby
anitchrist has quit [Quit: Leaving]
ebbflowgo has quit [Quit: ebbflowgo]
matled- has joined #ruby
dc__ has joined #ruby
last_sta1 has joined #ruby
maxmanders_ has joined #ruby
krisleech_ has joined #ruby
MasterPiece has joined #ruby
mosheee has joined #ruby
mbff has quit [Remote host closed the connection]
palantir has joined #ruby
philwantsfish has joined #ruby
dc_ has quit [Read error: Connection reset by peer]
nerdman_ has joined #ruby
ponga has quit [Quit: Page closed]
iaj has joined #ruby
elfuego has quit [Quit: elfuego]
_Andres_ has joined #ruby
TrafficMan has quit [Ping timeout: 252 seconds]
maxmanders has quit [Ping timeout: 252 seconds]
dfas has quit [Ping timeout: 252 seconds]
krisleech has quit [Ping timeout: 252 seconds]
Karunamon has quit [Ping timeout: 252 seconds]
moshee has quit [Ping timeout: 252 seconds]
palantir_ has quit [Ping timeout: 252 seconds]
nerdman has quit [Ping timeout: 252 seconds]
tekk has quit [Ping timeout: 252 seconds]
_Andres has quit [Ping timeout: 252 seconds]
matled has quit [Ping timeout: 252 seconds]
Apocalypse has quit [Ping timeout: 252 seconds]
lifenoodles_ has quit [Ping timeout: 252 seconds]
last_staff has quit [Ping timeout: 252 seconds]
psy has quit [Ping timeout: 252 seconds]
krisleech_ is now known as krisleech
jimmyhoughjr has quit [Ping timeout: 252 seconds]
iaj_ has quit [Ping timeout: 252 seconds]
snowpeas has quit [Ping timeout: 252 seconds]
Ulrike_Rayne has quit [Ping timeout: 252 seconds]
hendricius has quit [Ping timeout: 252 seconds]
philwantsfish1 has quit [Ping timeout: 252 seconds]
frankS2 has quit [Ping timeout: 252 seconds]
_br_- has quit [Ping timeout: 252 seconds]
TTilus has quit [Ping timeout: 252 seconds]
matled- is now known as matled
raddazong has quit [Ping timeout: 252 seconds]
teejar_ has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 265 seconds]
kamilc__ has quit [Ping timeout: 252 seconds]
miah has quit [Ping timeout: 252 seconds]
willgorman has quit [Ping timeout: 252 seconds]
hendricius has joined #ruby
TTilus has joined #ruby
madhatter has joined #ruby
yfeldblum has joined #ruby
Apocalypse has joined #ruby
psy has joined #ruby
miah has joined #ruby
willgorman has joined #ruby
tekk has joined #ruby
ta has joined #ruby
frankS2 has joined #ruby
kamilc__ has joined #ruby
Ulrike_Rayne has joined #ruby
crazysim has quit [Excess Flood]
RandyT has quit [Ping timeout: 252 seconds]
Karunamon has joined #ruby
crazysim has joined #ruby
teejar has joined #ruby
_br_ has joined #ruby
RandyT has joined #ruby
TrafficMan has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
rshetty has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 244 seconds]
_5kg has quit [Ping timeout: 272 seconds]
lifenoodles has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
jdj_dk has joined #ruby
rshetty has joined #ruby
last_sta1 has quit [Quit: last_sta1]
santaClaws has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
santaClaws is now known as shortCircuit__
Morkel has joined #ruby
WillAmes has quit [Ping timeout: 252 seconds]
virtualize has joined #ruby
rpag has joined #ruby
M-Technic has quit [Ping timeout: 252 seconds]
proxie has quit [Ping timeout: 252 seconds]
jmdade has joined #ruby
livathinos has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 252 seconds]
M-Technic has joined #ruby
Ulrike_Rayne has joined #ruby
leafybasil has joined #ruby
evanjs has quit [Remote host closed the connection]
fandi_ has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
hamakn has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
josephndenton has joined #ruby
Takle__ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 245 seconds]
<dionysus69> hello everyone, I had 1.9.3 and thought I would switch to 2.1.1 but when i did the gems are lost, how can I use same gems with 2.1.1?
josephndenton has quit [Ping timeout: 245 seconds]
bmichelsen has joined #ruby
rpag has quit [Quit: Leaving]
dc__ has quit [Remote host closed the connection]
<hanmac1> dionysus69: switch to 1.9.3 make a list of the gems with "gem list" then switch to 2.1.1 and reinstall them again manually ... (if you had used rvm it might be a bit easier, but the gems still need to be reinstalled)
fandi_ has joined #ruby
<dionysus69> hanmac1 i created a gemset on 1.9.3 but how do i install the gemset on 2.1.1?
<dionysus69> and yes i am using rvm
<hanmac1> OHH you are already using rvm ? that makes it easier
<St1gma> $ rvm gemset list
<St1gma> $ rvm gemset use <name>
<hanmac1> and "rvm gemset copy"
<St1gma> ^
<St1gma> forgot that
<dionysus69> it lists the one i created in 1.9.3 but 2.1.1 doesnt see 1.9.3 gemset :\
codehotter has quit [Quit: WeeChat 0.4.2]
codehotter has joined #ruby
Takle has joined #ruby
<dionysus69> rvm gemset copy 2.1.1 2.1.2 ?
tkuchiki has quit [Remote host closed the connection]
<hanmac1> dionysus69: what does rvm list returns?
Takle__ has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
<hanmac1> "rvm gemset copy 1.9.3 2.1.1" should do what you want ... maybe
<sevenseacat> you dont want to copy the gems, as some of them will need to be recompiled
<sevenseacat> just bundle
rshetty_ has joined #ruby
<dionysus69> ok i set the right gem on 2.1.1
<dionysus69> but when I do gem list it still doesnt show gems installed
<sevenseacat> did you bundle?
<dionysus69> do i need to to bundler install to install?
rshetty has quit [Read error: Connection reset by peer]
<sevenseacat> this is the problem when you cross-post questions
Menorah has joined #ruby
codehotter has quit [Changing host]
codehotter has joined #ruby
<dionysus69> sorry sevenseacat more people seemd on ruby channel :s
<dionysus69> ok sevenseacat I understood now thanks, i didnt need gemsets at all then I assume :)
<sevenseacat> nope. gemsets are pointless.
rshetty has joined #ruby
<dionysus69> thanks folks
<dionysus69> !
tkuchiki has quit [Ping timeout: 245 seconds]
<hanmac1> sevenseacat: hm i thought that gemset copy does recompile them ... (hm i need to ask again in the channel ) and for myself i dont like bundler ... i have seen to many users having problems with it
Cache_Money has quit [Quit: Cache_Money]
<dionysus69> and how does the ruby versioning go, should I always use the latest or is 2.1.1 fine for development? because I just noticed 2.1.2 exists
rshetty_ has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
<sevenseacat> 2.2.0 also exists
<hanmac1> dionysus69: 2.1.5 exist too, and 2.2.0 was released as christmas present
hamakn has joined #ruby
_5kg has joined #ruby
braincrash has quit [Ping timeout: 258 seconds]
<dionysus69> hanmac1 should I take a look at 2.2.0 then or is it a surplus headache?
last_staff has joined #ruby
codehotter has quit [Quit: WeeChat 0.4.2]
codehotter has joined #ruby
ohaibbq has quit [Quit: Leaving...]
hanmac1 is now known as Hanmac
<Hanmac> 2.2.0 should be fine to, if 2.1 was
exadeci has joined #ruby
yfeldblum has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
<dionysus69> Hanmac: ok :)
hamakn has quit [Remote host closed the connection]
vinleod has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
rshetty has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Hijiri has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
Hijiri has joined #ruby
antgel has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
olivier_bK has joined #ruby
MasterPiece has quit [Ping timeout: 244 seconds]
Flcn__ has joined #ruby
Pupeno has joined #ruby
thumpba has joined #ruby
AlSquire has joined #ruby
az7ar_away has joined #ruby
Nameo0 has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
aiguu has joined #ruby
<aiguu> Is there anyway in Ruby to create a fake file in memory so you can pass filenames to functions and write to a file without writing to disk?
agrinb has joined #ruby
MasterPiece has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
codecop has joined #ruby
agrinb_ has joined #ruby
yeticry has joined #ruby
Blackhol_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 255 seconds]
ta has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
aiguu has left #ruby ["WeeChat 1.0.1"]
agrinb_ has quit [Ping timeout: 258 seconds]
banjara has quit [Quit: Leaving.]
eka has joined #ruby
timonv_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 255 seconds]
tombroomfield has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
tombroomfield has quit [Client Quit]
alex88 has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
giuseppesolinas has joined #ruby
<Nameo0> Hello! I just wanted to share with everyone that I figured out how to use Nokogiri and Mechanize together after a lot of stupid mistakes! =)
<Nameo0> Have a nice evening. =)
Vile` has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
kevkev has joined #ruby
Vile` has joined #ruby
ta has joined #ruby
marr has joined #ruby
_5kg has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
<zenspider> Nameo0: that's ... great?
<zenspider> they're made to work together...
<Nameo0> Hence stupid mistakes. First type scrapping a website. =P
gogiel__ has quit [Ping timeout: 240 seconds]
alex88 has quit []
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
yfeldblum has joined #ruby
ta has quit [Ping timeout: 272 seconds]
terlar has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 258 seconds]
ta has joined #ruby
AxonetBE has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
MasterPiece has quit [Ping timeout: 250 seconds]
AxonetBE has quit [Client Quit]
banjara has joined #ruby
Grumelo has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara has quit [Client Quit]
fandi_ has quit [Quit: Leaving]
jdj_dk has quit [Remote host closed the connection]
ta has quit [Ping timeout: 265 seconds]
Nameo0 has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
MasterPiece has joined #ruby
pentanol has joined #ruby
spider-mario has joined #ruby
Seich has joined #ruby
<pentanol> hi all, how use gem with proxy? I want make bundle install and perset http proxy but in Gemfile that want use https://... http://pastebin.ca/2894154
banjara has quit [Quit: Leaving.]
FooMunki has joined #ruby
djbkd has joined #ruby
psy has quit [Ping timeout: 244 seconds]
agjacome has quit [Quit: leaving]
<jidar> 614M ./2.0.0-p247, 978M ./2.1.3, 85M ./2.2.0
<jidar> that's interesting
Grumelo has quit []
atmosx has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
_Andres_ has quit [Quit: jazz]
_Andres has joined #ruby
Grumelo has joined #ruby
josephndenton has joined #ruby
daniell is now known as dling
<pentanol> why if I change in Gemfile source 'https://rubygems.org' to source 'http://rubygems.org' that anyway not works
<pentanol> and Gemfile.lock too
jdj_dk has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
<atmosx> Good morning
leo-unglaub has joined #ruby
gregf__ has joined #ruby
s00pcan has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
gregf__ has left #ruby [#ruby]
gregf__ has joined #ruby
ptrrr has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
uber_hulk has joined #ruby
uber_hulk has left #ruby [#ruby]
kp666 has quit [Quit: Leaving]
s00pcan has quit [Remote host closed the connection]
lessless has joined #ruby
s00pcan has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
livathinos has quit []
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
mengu has quit [Remote host closed the connection]
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
ta has joined #ruby
petertretyakov has joined #ruby
gccostabr has joined #ruby
s00pcan has quit [Remote host closed the connection]
gccostabr has quit [Max SendQ exceeded]
gusto has joined #ruby
s00pcan has joined #ruby
gccostabr has joined #ruby
<pentanol> who there?
charliesome has quit [Quit: zzz]
crueber has quit [Quit: Leaving.]
ta has quit [Ping timeout: 244 seconds]
panini has joined #ruby
charliesome has joined #ruby
abdulsattar has joined #ruby
banister has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
Xeago has joined #ruby
charliesome has quit [Client Quit]
neutrino has joined #ruby
ta has joined #ruby
bronson has quit [Remote host closed the connection]
Blackhol_ has joined #ruby
jefus has joined #ruby
m8 has joined #ruby
ta has quit [Ping timeout: 272 seconds]
timonv_ has joined #ruby
lolmaus has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
psy has joined #ruby
claw__ has quit [Ping timeout: 244 seconds]
claw___ has joined #ruby
tvw has joined #ruby
oo_ has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
cmarques has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
p0wn3d_m1 has joined #ruby
ta has joined #ruby
kevkev has quit [Quit: (null)]
shock_one has joined #ruby
<shock_one> Hi. I'm using PStore to write to share some data between processes. However, when two threads try to write at the same time, it fails with a transaction error. Is there a way to automatically retry transactions? Or maybe a different PStore implementation that does such thing.
<shock_one> *PStore to share some...
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
abdulsattar has quit [Quit: Leaving.]
basex has joined #ruby
ta has quit [Ping timeout: 272 seconds]
jds has joined #ruby
gccostabr has joined #ruby
Takle has joined #ruby
Takle_ has quit [Ping timeout: 265 seconds]
ta has joined #ruby
apeiros_ has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
apeiros_ has joined #ruby
ta has quit [Ping timeout: 264 seconds]
fandi has joined #ruby
lessless has quit [Ping timeout: 240 seconds]
LouisRoR has joined #ruby
elfuego has joined #ruby
amil has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
kamilc__ has quit [Ping timeout: 264 seconds]
FooMunki has quit [Quit: FooMunki]
gccostabr has joined #ruby
elaptics is now known as elaptics`away
shock_one has quit [Remote host closed the connection]
Morkel_ has joined #ruby
psy has quit [Ping timeout: 265 seconds]
ajaiswal has quit [Quit: Leaving]
mengu has joined #ruby
Hobogrammer has quit [Ping timeout: 250 seconds]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
basex_ has joined #ruby
basex has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
wolf4ood has joined #ruby
josephndenton has joined #ruby
unshadow has joined #ruby
<unshadow> I dont know if we got lots of people here using Arch Linux, but for those who do: https://aur.archlinux.org/packages/ruby-clang/
agrinb has quit [Ping timeout: 258 seconds]
<Hanmac> unshadow: the problem about is that it might crash gems you want to install with that
<Hanmac> because if you want to install gems that bind libraries, the lib, ruby and the gem should be build with the same compiler
non1ck has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
<non1ck> hi, does puts call to_s if a array is provided? or is there a instance of check first
<non1ck> i was wondering how it is implemented
<non1ck> since every element is printed in a new line
<unshadow> Hanmac: yeha I know, this is why "clang" is not only a make dependency, people should only install if they are ready to compile all gems from source with clang.
dangerou_ has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
<Hanmac> unshadow: and like i said the libs that does the gems depend on need to be compiled with clang too
<apeiros_> non1ck: generally puts calls to_s on passed objects. but array is special cased. it prints each element on a new line.
toretore has joined #ruby
<non1ck> apeiros_, yes i know that. my question was about the internal implementation of this behavior
<apeiros_> non1ck: yes, it tests the type
<non1ck> apeiros_, thx
<atmosx> I'm trying to emulate the behaviour of a program that runs on the background here: https://gist.github.com/atmosx/df4bfefd7666c70ba9e4 ... I'd like to use 'optparse' to handle it. Is my approach okay? I've read too many docs and I'm a bit confused.
<atmosx> seems to work though
panini has quit [Ping timeout: 264 seconds]
MrIlyas has joined #ruby
unshadow has quit [Quit: leaving]
pentanol has quit [Quit: leaving]
andikr has quit [Remote host closed the connection]
oleo is now known as Guest65327
oleo__ has joined #ruby
non1ck has quit [Quit: Leaving]
ponga has joined #ruby
browndawg has joined #ruby
Guest65327 has quit [Ping timeout: 245 seconds]
browndawg has quit [Max SendQ exceeded]
Aswebb_ has joined #ruby
browndawg has joined #ruby
LouisRoR has quit [Ping timeout: 256 seconds]
abdulsattar has joined #ruby
abdulsattar has quit [Client Quit]
javiercito has joined #ruby
Stoge88 has joined #ruby
kyb3r_ has quit [Quit: Leaving]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ptrrr has quit [Quit: ptrrr]
diegoviola has joined #ruby
bogeyd6 has quit [Quit: Leaving]
djdarkbeat has quit [Quit: djdarkbeat]
kasperti_ has joined #ruby
dotix has joined #ruby
phutchins has joined #ruby
ahmgeek has joined #ruby
elaptics`away is now known as elaptics
troulouliou_dev has joined #ruby
Takle has quit [Read error: Connection reset by peer]
aclearman037 has joined #ruby
claptor has quit [Quit: this channel is bakas]
Takle has joined #ruby
unshadow has joined #ruby
<unshadow> What do people mean when they say "ruby is single threaded" ?
<unshadow> I know I can use Threads to create a multi threaded program.. so.. what gives ?
pandaant has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
shortCircuit__ has quit [Ping timeout: 255 seconds]
bonhoeffer has joined #ruby
Musashi007 has quit [Quit: Musashi007]
exadeci has quit [Quit: Connection closed for inactivity]
Alina-malina has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
WillAmes has joined #ruby
unshadow has quit [Quit: leaving]
Sirupsen has joined #ruby
mengu has quit [Remote host closed the connection]
agrinb has joined #ruby
Abhijit has joined #ruby
Sirupsen has left #ruby [#ruby]
agrinb has quit [Ping timeout: 258 seconds]
dangerou_ has quit [Ping timeout: 245 seconds]
Heskie has joined #ruby
gfawcettpq has quit [Quit: Leaving.]
hamakn has joined #ruby
shortCircuit__ has joined #ruby
tkuchiki has joined #ruby
<diegoviola> "If I thought Ruby itself were the answer, I wouldn't be working on Rubinius, Rubinius 3.0 or Rubinius X. As you know from reading about Rubinius X, I think Ruby is dying."
<diegoviola> I keep reading these "ruby is dying" comments, what are your thoughts?
<apeiros_> I think it's nonsense
MrIlyas_ has joined #ruby
<apeiros_> it's people who discover that ruby is not a silver bullet. surprise.
ValicekB has quit [Ping timeout: 272 seconds]
dotix has quit [Ping timeout: 258 seconds]
MrIlyas has quit [Ping timeout: 258 seconds]
fandi has quit [Ping timeout: 245 seconds]
haxr has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
javiercito has quit [Read error: Connection reset by peer]
javiercito has joined #ruby
abdulsattar has joined #ruby
ndrei has quit [Remote host closed the connection]
<pipework> apeiros_: It's a brown bullet, right?
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Alina-malina has joined #ruby
robertt_dex has joined #ruby
browndawg has quit [Ping timeout: 244 seconds]
paulfm has joined #ruby
djdarkbeat has joined #ruby
ValicekB has joined #ruby
n80 has joined #ruby
ayaz has joined #ruby
javierci_ has joined #ruby
<godd2> Ruby is a panacea if all you want to do is write Ruby.
javiercito has quit [Ping timeout: 258 seconds]
ndrei has joined #ruby
bmichelsen has joined #ruby
arup_r has quit [Remote host closed the connection]
fandi has joined #ruby
basex_ has quit [Remote host closed the connection]
panini has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
commmmodo has joined #ruby
<sevenseacat> i dont get those people who say stuff like 'ruby is dying'
amil has quit [Quit: Leaving...]
<Hanmac> maybe thats java-guys and thats what they wish for ...
FaresKAl- has joined #ruby
FaresKAlaboud has quit [Read error: Connection reset by peer]
haxr has quit [Read error: Connection reset by peer]
ponga has quit [Read error: No route to host]
<pipework> sevenseacat: RIP in peace, rails.
<sevenseacat> but then again, im no programming guru, just a smalltown girl living in a lonely world or something like that
ponga has joined #ruby
<pipework> sevenseacat: If I were half as sober as you are funny, I might've laughed and not started singing. :(
<sevenseacat> haha
fandi has quit [Excess Flood]
hamakn has quit [Remote host closed the connection]
<diegoviola> maybe brixen can explain what he meant by that then
fandi has joined #ruby
<diegoviola> explain us
tus has joined #ruby
ptrrr has joined #ruby
commmmodo has quit [Ping timeout: 240 seconds]
Abhijit has quit [Ping timeout: 265 seconds]
gusto has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
javierci_ has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
tvw has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
<diegoviola> I know he's smart guy and have had some issues with MRI way of development
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
giuseppesolinas has joined #ruby
<apeiros_> pipework: I… don't even want to know…
ChanderG has joined #ruby
<pipework> apeiros_: I don't blame you, I'm in the same party as you. :( Also, good morning.
javiercito has joined #ruby
<godd2> apeiros_ youve never taken the midnight train goin anywhere?
<apeiros_> yo, moin :)
lxsameer has quit [Quit: Leaving]
<apeiros_> godd2: I was referring to the "brown bullet"
<apeiros_> I now have those imaginations about where and how pipework codes. it's not nice. make it stop.
<godd2> in the... forest?
<pipework> apeiros_: I have the same problem, but I'm usually too drunk to answer any of those questions anyways
<diegoviola> I disagree with his "ruby is dying" comment though, that's like saying "Perl is dying", it's still alive and well, despite of being really old
javiercito has quit [Client Quit]
<pipework> Life is dying.
<diegoviola> yeah sure
<jefus> nobody's put the brown bullet in perl's head yet?
<godd2> I have a feeling that Perl 6 may go the way of Arc
<pipework> Only used by the author?
tvw has joined #ruby
SivanRulez has joined #ruby
<ponga> i agree with diegoviola
n80 has quit [Quit: n80]
<ponga> i hate especially those IT faggots who say things like "Oh oh XX is so old, so last year oh oh"
<ponga> no wonder they live in mom's basement
<godd2> yes, we refined Rubyists live in our mothers' attics
<apeiros_> ponga: language
<pipework> ponga: The ruby community doesn't welcome the use of 'faggot' as a pejorative.
<ponga> oh ok
<ponga> sorry
<pipework> Manage your prejudice.
<ayaz> Or use Perl.
bonhoeffer has joined #ruby
javiercito has joined #ruby
<godd2> pipework the ruby community does not welcome telling others they have prejudice
<SivanRulez> Hii
<pipework> godd2: The ruby community does not welcome.
commmmodo has joined #ruby
<diegoviola> rofl
<godd2> Maybe Ruby was the name of Schrödinger's cat
<pipework> diegoviola: I think the only people who say that ruby is dead with any modicum of seriousness are people who aren't doing ruby.
rshetty has quit [Remote host closed the connection]
<pipework> Or just got burned by something related to ruby and they're bovvered.
<diegoviola> pipework: like java guys?
tier has joined #ruby
Abhijit has joined #ruby
abdulsattar1 has joined #ruby
<pipework> diegoviola: I don't think you can level that kind of assessment onto another community like that and be taken seriously.
<ponga> thumbs up godd2
<ponga> the cat
<pipework> But this is the internet, seriousness isn't exactly the name of the game.
<diegoviola> pipework: right
<ponga> sorry mate but i don't think pipework can't understand good jokes here
<ponga> im damn sure diegoviola had a fine java joke
<godd2> ponga I do what I can
<pipework> ponga: Just stick around, you'll find the real jokes.
<diegoviola> shouldn't have joked with en entire group like that, sorry
<ponga> and godd2 too with his awesome cat joke
<godd2> I think pipework just called one of us a big joke...
bluOxigen has quit [Ping timeout: 244 seconds]
<ponga> what, real jokes that i have to be wearing a suit and follow courtesy to find laughter at?
bluOxigen has joined #ruby
<ayaz> That would be something.
<ponga> come on ser, i know i was being harsh, but theirs were just fine
abdulsattar has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
hamakn has joined #ruby
commmmodo has quit [Ping timeout: 250 seconds]
<ponga> and diegoviola i'm a big noob around here but facing such title for an article makes me think more of that ruby might die :p ....
Abhijit has quit [Client Quit]
<ponga> why would one write such words if its just fine lol
rkazak has joined #ruby
<ponga> its like saying "we're just fine!!!!!" in sinking ship?
<pipework> pageviews, the made up points of the internet.
<ponga> ah hah
<ponga> pageviews and ad profit?
<ponga> thanks
rkazak has left #ruby [#ruby]
<ponga> that helped
<godd2> Ruby just needs a killer app. and a hashtag. those still work, right?
Soda has joined #ruby
<bradland> killer apps! I remember hose
<bradland> *those
<pipework> godd2: Let's make a framework for making things and make it so easy a developer could use it.
<bradland> i figured they were all indicted and put away by now though
<godd2> pipework what if. we made a framework. for making frameworks.
<ponga> isn't rails a killer app for ruby tho
<pipework> godd2: Will our frames work?
<ponga> they all love ruby don they?
<godd2> get a VC on the phone right now!
agrinb has joined #ruby
<bradland> “killer app” is jargon
<bradland> i’m just poking fun at the term :)
<godd2> Our frame work will have no frames and it won't work. It's the next step in Hipster technology
<pipework> It'll be so outside of the box.
<godd2> that way we'll know if ruby's dead or alive.
<pipework> It'll scale to a scale that no one has ever heard of before.
panini has left #ruby ["Leaving"]
<pipework> Hipsterscale.
<godd2> webscale times hashtag == hipsterscale
<godd2> let's invent the quadruple equals sign
rippa has joined #ruby
tier has quit []
swilr has quit [Ping timeout: 250 seconds]
basex has joined #ruby
josephndenton has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
pandaant has quit [Remote host closed the connection]
rpag has joined #ruby
aclearma_ has joined #ruby
dotix has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
silkfox has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
abdulsattar1 has quit [Ping timeout: 265 seconds]
aclearman037 has quit [Ping timeout: 264 seconds]
Soda has quit [Remote host closed the connection]
timonv_ has joined #ruby
<godd2> pipework now that I think about it, a framework making gem might be sorta possible.
<pipework> You can never too meta
abdulsattar has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
<ponga> framework dead?
mjuszczak has joined #ruby
ponga has quit [Quit: Leaving...]
braincras has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
ponga has quit [Client Quit]
gomix has quit [Ping timeout: 245 seconds]
abdulsattar has left #ruby [#ruby]
gomix has joined #ruby
pandaant has joined #ruby
sevenseacat has quit [Remote host closed the connection]
mengu has joined #ruby
ponga has joined #ruby
Grumelo has quit []
dcarmich has joined #ruby
Crisix has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
govg has quit [Ping timeout: 255 seconds]
<shevy> real men used ruby before rails was there
bonhoeffer has quit [Quit: bonhoeffer]
bluOxigen has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
pu22l3r has quit [Remote host closed the connection]
govg has joined #ruby
DeltaHeavy has joined #ruby
<ponga> hi shevy
dblessing has joined #ruby
<godd2> shevy Can I still be a real boy?
lmickh has joined #ruby
<DeltaHeavy> Hey, I'm trying to install Sass on my Windows workstation at work but the firewall and proxy settings here make it so I'm unable to use any sort of package management. Does anybody know how I can get Sass running without having to use 'gem install' or something similar?
<ponga> shevy: i learnt ruby prior to realize that rails existed, does it make a man
<shevy> godd2 you can be a hipster
<bradland> DeltaHeavy: you can download gem files and install them with the gem command
<DeltaHeavy> bradland: Awesome, thanks.
<shevy> ponga yeah although I don't know how you could know ruby but not rails
<ponga> it was the second thing i leanrt after the java beginner book
<bradland> DeltaHeavy: gem install --local foo.gem
<ponga> shevy: i went to codecademy and saw ruby section
<ponga> that's it
<shevy> lol
<shevy> what a way to learn ruby :D
hamakn has quit [Remote host closed the connection]
<ponga> well.. i was a biggest noobdumb by then
bluOxigen has joined #ruby
<godd2> shevy I learned Ruby from Lynda.com tutorials
<ponga> i just went somewhere on web for learning, clicked for ruby tutorial
<ponga> and found out that java was horrible...
<godd2> well at least, that was my intro
mjuszczak has quit []
MasterPiece has quit [Quit: Leaving]
<godd2> then I used Programming Ruby and Metaprogramming Ruby to learn a lot more
vt102 has joined #ruby
<ponga> i no longer had to write such long lines for just "gets"
<DeltaHeavy> It worked. Thanks!
ujjain has quit [Changing host]
ujjain has joined #ruby
pu22l3r has joined #ruby
MasterPiece has joined #ruby
<DeltaHeavy> ponga: If you want performance you usually need to use a more verbose language like Java.
<DeltaHeavy> Ruby pales in comparison performance wise
MasterPiece has quit [Remote host closed the connection]
<DeltaHeavy> Not that I'm saying it's objectively better. Right tool for the right job.
<ponga> well i still write my drafts in ruby
<DeltaHeavy> That's not a bad plan at all
<ponga> i think of a code, structure, write in ruby and see if it works
<ponga> for a product i write in java
AlexRussia has quit [Ping timeout: 258 seconds]
<ponga> it takes more time i know but it gives me far less stress
<DeltaHeavy> I write most of my products in high level languages. Not Ruby but stuff like Python, PHP, JavaScript (even server side)
<ponga> isn't ruby good as python now
banjara has joined #ruby
<DeltaHeavy> But I don't need all that performance. Only time I needed it was at my job where we use C#.NET
Hanmac has quit [Ping timeout: 265 seconds]
<DeltaHeavy> Ruby vs Python is a matter of preference
<DeltaHeavy> Anybody who argues otherwise is just a fanboy IMO
javiercito has quit [Remote host closed the connection]
troulouliou_dev has quit [Remote host closed the connection]
<godd2> get DeltaHeavy! He's an anti-fanboy fanboy!
ptrrr has quit [Quit: ptrrr]
j2p2 has joined #ruby
basex has quit [Remote host closed the connection]
<ponga> i must hire godd2 for my personal clown
<ponga> he could get paid to comment in #ruby for me
rpag has quit [Quit: Leaving]
troulouliou_dev has joined #ruby
pu22l3r has quit [Ping timeout: 258 seconds]
crueber has joined #ruby
<apeiros_> *sob*
msmith_ has joined #ruby
<apeiros_> somebody got a boot? I need one. working slowly again :-|
iamninja has joined #ruby
<apeiros_> vegan?
basex has joined #ruby
Lingo__ has joined #ruby
<ponga> apeiros_: used artificial leather i guess
<ponga> non animal product
<apeiros_> the cow only got vegans to eat
Azure has quit [Quit: Blue Sky Fish]
<ponga> lol
* apeiros_ approves of that product
<ponga> perfect point
crueber has quit [Quit: Leaving.]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
agrinb has joined #ruby
Hanmac has joined #ruby
renderful has joined #ruby
Blackhol_ has quit [Remote host closed the connection]
cantonic has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
terlar has joined #ruby
Azure has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
j0n3 has joined #ruby
<shevy> DeltaHeavy what about amount and quality of libraries and other add-ons
<DeltaHeavy> Hm?
ChanderG has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
<shevy> for instance - python has a solid grip in the scientific world there compared to ruby
renderful has quit [Ping timeout: 244 seconds]
agrinb has joined #ruby
<DeltaHeavy> shevy: They both have a lot of libraries for a lot of things. I find there's always a library for everything I need in Python though I'm not much of a Ruby guy.
<shevy> ruby is a baby in the scientific world
Lingo__ has quit [Quit: Lingo: www.lingoirc.com]
<DeltaHeavy> I don't know much about scientific programming.
<DeltaHeavy> No need to
<DeltaHeavy> I guess that would be a use the right tool for the right job.
<godd2> shevy well I mean, you can always write c extensions in ruby, and C has been used in scientific programming for some time now, so doesn't ruby get that for free by cheating a little?
Channel6 has joined #ruby
<DeltaHeavy> You wouldn't say Python is objectively better than Ruby because it may be better at one thing.
<shevy> this is how perl got book - when the human genome sequence was obtained, they all used perl
atmosx has quit [Quit: By all means, marry. If you get a good wife, you'll become happy; if you get a bad one, you'll become a philosopher. - Socrates]
yfeldblum has quit [Ping timeout: 245 seconds]
<godd2> DeltaHeavy well Python would be objectively better at that one thing :P
<DeltaHeavy> Why the hell would you use C for scientific programming unless you needed a lot of preformance?
<shevy> you can have a crap language and still have great software - mediawiki, phpbb
<DeltaHeavy> godd2: My statement was clearly stalking in the general sense though :p
<DeltaHeavy> Perl is fine
<DeltaHeavy> People hate Perl cause they don't know Perl
<shevy> yeah you don't know a thing about scientific programming, this is clear. people use C and C++ and java. and then there comes the question of a lighter scripting language, and python wins out there almost always
<Nilium> Perl's already made a name for itself, it has no need to prove anything.
<shevy> perl is declining
<Nilium> PHP, on the other hand, will never stop being a joke.
<Nilium> And a punchline.
rshetty has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
<DeltaHeavy> shevy: Oh I know that
<shevy> http://www.google.com/trends/explore#q=ruby%2C%20python%2C%20perl%2C%20php%2C%20mruby&cmpt=q
tkuchiki has quit [Remote host closed the connection]
<Nilium> PHP is basically a recursive joke.
SivanRulez has quit [Read error: Connection reset by peer]
<DeltaHeavy> Nilium: Well unless you needed to do super computing and stuff like that yeah. I imagine the VAST majority of scientific programming doesn't need that kind of performance.
tkuchiki has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
Soda has joined #ruby
<shevy> PHP is mostly a bad joke in itself
<Nilium> Probably not. You could use Lisp for all I care. If the language has some form of support for rationals, either built-in or via a library, that's really all I care about for doing accurate anything, but what I do that requires accuracy is very much not scientific programming.
<Nilium> *use a Lisp
whoisjake has joined #ruby
<DeltaHeavy> Eh, PHP has a lot wrong with it but it's not as god awful as most make it out to be IMO. I avoid it when I can but I end up using it sometimes because it's what EVERYBODY knows in the web world.
<Nilium> I use it for public-facing stuff. That's about it.
<shevy> haha
<Nilium> i.e., things where I want to be able to do <?= $fuck ?>
<shevy> yeah
leandroalemao has quit [Quit: leandroalemao]
<shevy> you use php
AlexRussia has joined #ruby
<Nilium> But I've seen people use it as an alternative to shell scripts
rshetty has joined #ruby
<DeltaHeavy> I try and use Python/Flask for small stuff and Python/Django for big stuff. Getting into NodeJS for certain stuff too. Like avoiding PHP whenever possible but when you're working with 10 other web devs it's often the right tool for the job.
<DeltaHeavy> And when you're using something like Laravel it becomes a lot less painful.
livathinos has joined #ruby
<DeltaHeavy> It's not hard to get over PHP's shortcomings.
<DeltaHeavy> It's just kinda like "Oh, that's dumb"
<Nilium> Unfortunately, almost nobody at work has figured out the whole "write readable PHP" thing
<DeltaHeavy> I'm doing C#.NET MVC at work right now and everybody writes all their logic in the views.
<DeltaHeavy> It's hard not to be a bitch about it.
<Nilium> So I'm constantly about 5 seconds away from breaking my foot off in someone's ass over their inability to document their fucking code
<shevy> it's self-documenting code
<Nilium> 'Cause if your language of choice is untyped, you bet I'm going to be angry when I can't tell what a variable's type is
<DeltaHeavy> I kinda want to get a job at some bullshit hipster startup in hopes I'll find devs there with a similar mindset.
<Nilium> s/untyped/not statically typed/
kirun has joined #ruby
<Nilium> I work at a place that pretends it's a startup.
<DeltaHeavy> shevy: If you don't write comments period and think your code is self documented. no....just no
<Nilium> Unfortunately that doesn't really mean anything good for tech choices.
<DeltaHeavy> My code is written to be as readable as possible but it's nice to have comments that describe WHY the code is doing what it's doing and WHY this needs to be this way and not that way.
<Nilium> Speaking of work, I should head out.
kamilc__ has joined #ruby
blindsight has quit [Ping timeout: 258 seconds]
<shevy> DeltaHeavy eh I don't write PHP
studiotate has joined #ruby
noop1 has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<DeltaHeavy> shevy: If you're working with a bunch of other devs and the one common language you all know is PHP, using PHP is probably the best option.
<shevy> nope
tkuchiki has joined #ruby
pu22l3r has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DeltaHeavy> Well enjoy having a bunch of devs who have to learn a whole new language because of your inability to get over inconsistencies :p
<DeltaHeavy> So you can be more ~correct~
<shevy> I don't call PHPers "devs"
<DeltaHeavy> That article is shit
<DeltaHeavy> So biased and garbage
noop1 has joined #ruby
pu22l3r_ has joined #ruby
<shevy> oh I see your arguments :>
<DeltaHeavy> Well you're an elitist then :p
<DeltaHeavy> If PHP devs aren't devs you're a straight up elitist.
<shevy> get better devs man
<DeltaHeavy> OH, I DONT LIKE THAT PROGRAMMING LANGUAGE. IF YOU USE IT UR NOT A REALLLZZZZ PROGRAMMER
n80 has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
<DeltaHeavy> Real developers can write PHP and not get hung up on some aspergers ~correctness~ bullshit. I avoid it, but SOMETIMES it's the right tool for a project.
<shevy> real developers don't use php
<DeltaHeavy> Real developers aren't snobby elitists lol
<shevy> ok what are the real advantages you see in PHP DeltaHeavy?
shortCircuit__ has quit [Ping timeout: 255 seconds]
<DeltaHeavy> I use PHP sometimes but I mainly use Python, C#, JavaScript. Am I not a real dev?
<DeltaHeavy> shevy: Everybody knows it.
<shevy> clearly python does not fulfill a need you have there
elfuego has quit [Quit: elfuego]
blindsight has joined #ruby
<DeltaHeavy> Naw, you're just a scrub lol
blindsight is now known as Guest22903
rbennacer has joined #ruby
<shevy> it's sad that you can't abandon php
<shevy> and you get so personal
<DeltaHeavy> Probably freelance and don't work on projects with dozens of devs
<shevy> are you 3 years old?
Guest22903 has quit [Changing host]
Guest22903 has joined #ruby
<shevy> what is those dozens of PHP devs you have there
<shevy> facebook?
<j2p2> shevy, wouldn't being personal be criticizing someone for using php?
<DeltaHeavy> No, I just don't have any tolerance for bullshit elitist attitudes who label me as not a real developer because I sometimes use PHP even though I avoid it.
<j2p2> I mean, who cares what people use
<shevy> j2p2 you mean using or developing?
Guest22903 is now known as blindsight
<shevy> j2p2 DeltaHeavy looks more like a dev than a user to me
<j2p2> I'm not even gonna engage, just saying
<DeltaHeavy> Right now I use C#.NET at work but I've worked on prjoets working on MAJOR e-commerce sites powered by PHP. The platform was written in PHP and was the best tool for the job so we used it. We didn't let bullshit eliest bullshit get in the way of making a good decision.
rkalfane has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
<shevy> j2p2 as a user it is perfectly fine to use good software - see above my statements concerning mediawiki and phpbb. neither ruby nor python have anything that comes remotely close to either of these two
<DeltaHeavy> I also think the benefits of everybody knowing the language being used far outweigh everybody having to learn a more "correct" language.
<shevy> <Nilium> Unfortunately, almost nobody at work has figured out the whole "write readable PHP" thing
<DeltaHeavy> If you think I'm not a real dev cause I hold that opinion you're just an idiot.
<shevy> so you such a childish fanboi
<wmoxam> shevy: and if a company has a good product written in PHP then don't work with them or otherwise you're "not a real dev"?
* wmoxam rolls eyes
<DeltaHeavy> I'm enough of an experienced developer to be able to use PHP without getting hung up on it's bullshit. It's not hard...really.
<shevy> wmoxam yeah you don't have a choice there, you get hired to code in language XYZ chosen by those who hand out your paycheck
<DeltaHeavy> I don't like PHP. How the hell am I a fanboy? YOU'RE the fanboy lol
elfuego has joined #ruby
<shevy> wait a moment DeltaHeavy
<shevy> <DeltaHeavy> Anybody who argues otherwise is just a fanboy IMO
PanzerModern has quit [Remote host closed the connection]
<wmoxam> shevy: okay, but that's not what you were saying earlier
<wmoxam> :p
hamakn has joined #ruby
<DeltaHeavy> shevy: I was refering to a statement like "Ruby is objectively better than Python". If you say that I'll just assume you're a shit dev and move on.
<wmoxam> in some cases PHP makes sense
<shevy> Ruby is the better language
<DeltaHeavy> Though I'm already drawing up some conclusions.
<DeltaHeavy> rofl ok
<DeltaHeavy> You're an idiot dev goodbye
<shevy> DeltaHeavy explain to me why explicit self is better
<DeltaHeavy> Not wasting my time
<wmoxam> ie: existing product already written in PHP, existing team already experienced with PHP
<wmoxam> etc
yfeldblum has joined #ruby
<wmoxam> Fanbois gonna fan
<DeltaHeavy> ^
<DeltaHeavy> So glad I'm smarter than to sperg out over my favorite language like some sort of paladin.
atmosx has joined #ruby
<DeltaHeavy> MY PREFERENCES ARE OBJECTIVE FACT
<DeltaHeavy> HANDLE IT
<shevy> lol
<shevy> that's why you write them in caps
<DeltaHeavy> Protip: Use the language you're most productive in
<shevy> Protip: Use inferior languages
bonhoeffer has joined #ruby
<DeltaHeavy> rofl you're fucking retarded dude
petertretyakov has quit [Quit: Be back later ...]
<DeltaHeavy> 4realzies now I'm just going to forget you exist now
<shevy> DeltaHeavy can you explain this trend buddy: http://www.google.com/trends/explore#q=ruby%2C%20python%2C%20perl%2C%20php%2C%20lua&cmpt=q
<DeltaHeavy> and make my phat stax
josephndenton has joined #ruby
elfuego has quit [Client Quit]
<shevy> What does the word "4realzies". Are you a local chan4-resident?
<St1gma> This is a Ruby channel. Keep your discussion to that. If you want to discuss "Which is the better language?" then join #programming or keep it on private.
dotix has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
dotix has joined #ruby
paulfm has joined #ruby
Grumelo has joined #ruby
Takle has quit [Read error: Connection reset by peer]
noop1 has quit [Read error: Connection reset by peer]
Takle has joined #ruby
dotix has quit [Read error: Connection reset by peer]
<wmoxam> St1gma: ty
sambao21 has joined #ruby
mikedugan has left #ruby [#ruby]
dotix has joined #ruby
<godd2> shevy huh, I wonder what that recent spike is for Ruby
<shevy> probably a glitch
bmichelsen has joined #ruby
<godd2> could be that or jruby 9k or opal or some other new thing
dotix has quit [Read error: Connection reset by peer]
_beechnut has joined #ruby
<shevy> dunno, it seems a bit too unreasonable to so quickly see such a rise
<shevy> after all TIOBE says that ruby is dying
psy has joined #ruby
<shevy> :>
<IceDragon> shevy!
* IceDragon runs in slo-mo for a hug
<shevy> Icy Dragon! there is snow all around here and it is -4.5 °C outside :(
<IceDragon> Muhahahahahh!
<IceDragon> WORLD DOMINATION
LouisRoR has joined #ruby
kasperti_ has quit []
blackmesa has joined #ruby
petertretyakov has joined #ruby
vvivv has joined #ruby
straydogstudio has joined #ruby
dotix has joined #ruby
dotix has quit [Client Quit]
onlyme has joined #ruby
onlyme has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
az7ar_away has quit [Remote host closed the connection]
Blue_Ice has joined #ruby
zarubin has quit [Quit: Leaving.]
codehotter has quit [Ping timeout: 244 seconds]
Takle_ has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
codehotter has joined #ruby
_beechnut has quit [Ping timeout: 245 seconds]
_beechnut has joined #ruby
banister has quit [Ping timeout: 244 seconds]
leafybasil has joined #ruby
Stoge88 has joined #ruby
banjara has quit [Quit: Leaving.]
troulouliou_dev has quit [Quit: Leaving]
kostitas has joined #ruby
lkba has joined #ruby
jherbst has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> sooo, proper `file` column type for postgres :)
Blackhol_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
AFKGeek has joined #ruby
bonhoeffer has quit [Ping timeout: 240 seconds]
byprdct has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
Blackhol_ has quit [Ping timeout: 258 seconds]
mengu has quit [Remote host closed the connection]
crueber has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
elaptics`away is now known as elaptics
TeddyMurray has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
petertretyakov has quit [Quit: Be back later ...]
petertretyakov has joined #ruby
arya_ching has joined #ruby
mengu has quit [Ping timeout: 258 seconds]
evanjs has joined #ruby
hamakn has quit [Remote host closed the connection]
petertretyakov has quit [Client Quit]
mengu has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
DeltaHeavy has left #ruby [#ruby]
vvivv has quit [Quit: Leaving]
vvivv has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
rylev has joined #ruby
AFKGeek has quit [Quit: Off to fly a kite]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
klmlfl has joined #ruby
_Andres has quit [Ping timeout: 265 seconds]
thumpba has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kasperti_ has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
commmmodo has joined #ruby
kostitas has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
snath has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
<waxjar> i think the spike is there because ruby is more than just a programming language. if you select "ruby the programming language" the line stays pretty much flat :)
Blackhol_ has joined #ruby
<waxjar> python isn't even recognised as a programming language, just a game and a reptile. hehe
<waxjar> eh, comedy group i mean
dts|pokeball has quit [Ping timeout: 240 seconds]
Zaza has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
javiercito has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
kt2 has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
_Andres has joined #ruby
Hobogrammer has joined #ruby
n80 has quit [Read error: Connection reset by peer]
thumpba has quit [Remote host closed the connection]
n80 has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
thumpba has joined #ruby
livathin_ has joined #ruby
dawkirst has joined #ruby
kt2 has quit [Quit: Textual IRC Client: www.textualapp.com]
BTRE has quit [Remote host closed the connection]
kt has joined #ruby
kt has quit [Max SendQ exceeded]
livathin_ has quit [Client Quit]
icebourg has joined #ruby
BTRE has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
livathinos has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
droidburgundy has joined #ruby
kt has joined #ruby
kostitas has joined #ruby
tobago has quit [Remote host closed the connection]
kt has quit [Client Quit]
last_staff has quit [Quit: last_staff]
kt has joined #ruby
stunder has joined #ruby
kt__ has joined #ruby
blueOxigen has joined #ruby
slawrenc_ has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
kt__ is now known as Guest84541
ptrrr has joined #ruby
Guest84541 has quit [Client Quit]
kt has quit [Client Quit]
petertretyakov has joined #ruby
kt2 has joined #ruby
kt2 has quit [Excess Flood]
AlexRussia has joined #ruby
retornam has quit [Ping timeout: 244 seconds]
evanjs has quit [Remote host closed the connection]
Xeago has joined #ruby
kt2 has joined #ruby
Flcn__ has quit [Quit: Be back later ...]
petertretyakov has quit [Quit: Be back later ...]
bluOxigen has joined #ruby
retornam has joined #ruby
blueOxigen has quit [Ping timeout: 245 seconds]
dawkirst has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
dawkirst has joined #ruby
Xeago_ has quit [Ping timeout: 240 seconds]
kt2 has quit [Client Quit]
kt2 has joined #ruby
AdNauseum has joined #ruby
AdNauseum has left #ruby [#ruby]
petertretyakov has joined #ruby
conniemj__ has joined #ruby
xenomorph is now known as {xenomorph}
axilla has joined #ruby
{xenomorph} is now known as xenomorph
<axilla> morning, how can I refactor this code to make it not so obnoxious. https://gist.github.com/travisdmathis/4e573f0e0c920867f099
kt2 has quit [Client Quit]
kt2 has joined #ruby
kt2 has quit [Client Quit]
commmmodo has quit [Quit: commmmodo]
kt2 has joined #ruby
javiercito has quit [Remote host closed the connection]
petertretyakov has quit [Quit: Be back later ...]
jack_rabbit has joined #ruby
<wasamasa> wat
olivier_bK has quit [Ping timeout: 240 seconds]
dumdedum has quit [Quit: foo]
rbennacer has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
DadoCe has joined #ruby
m8 has quit [Quit: Sto andando via]
havenwood has joined #ruby
<godd2> axilla returning within an iterator is probably a code smell
snath has joined #ruby
rbennace_ has joined #ruby
<godd2> I have a feeling that on line 6 you're trying to find something out about all the children, and that if any of them have a certain property, you return false. perhaps you should look into Enumerable#any?
Zaza has quit [Quit: Be back later ...]
<godd2> and it's compliment Enumerable#none?
<godd2> Here's a link to get you started: http://ruby-doc.org/core-2.2.0/Enumerable.html#method-i-any-3F
leo-unglaub has quit [Remote host closed the connection]
DadoCe has quit [Ping timeout: 255 seconds]
<shevy> jhass are on the congress?
mostlybadfly has joined #ruby
<jhass> shevy: yup, you too?
<shevy> nope, just wondering why you were so silent! then I realized you mentioned it a while ago before
<jhass> shevy: well, and christmas before that ;)
<jhass> brb, gotta reboot, sudo throws bus errors...
kiyote23 has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
j0n3 has quit [Remote host closed the connection]
<shevy> waxjar I tried to make the search terms more even, the results are different now - http://goo.gl/xd12MR
ponga has quit [Quit: Leaving...]
<shevy> python and php are fighting it out right now
<jhass> back
icarus_ has joined #ruby
* wasamasa is on the congress, too
<wasamasa> I wonder whether I should wave from the lispers' table to the rubyists' table
yfeldblum has joined #ruby
<shevy> traitor!
<wasamasa> haha
<wasamasa> tell that matz
kiyote23 has quit [Remote host closed the connection]
<godd2> there's a couple pointers and a couple things to think about
ohaibbq has joined #ruby
Aswebb_ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
<axilla> great thanks godd :)
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<axilla> godd2: that's exactly what i'm doing, i'm checking the children for duplicate names
<axilla> they're folders in our app, and we don't allow duplicates
<axilla> thanks a lot godd, good stuff
oleo__ is now known as oleo
yfeldblum has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby
rylev has quit [Remote host closed the connection]
<gregf__> axilla: you can also do the folder_name.gsub("+", " ") at the top :/
gsd has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
poetazus has joined #ruby
<atmosx> Is there a way to debug a runtime error further to understand if I can use another kind of exception (more specific) to this issue? I'm getting this #<RuntimeError: no acceptor (port is in use or requires root privileges)> ... but IIRC RuntimeError is generic.
<atmosx> I'm using Exception => e (which I know is bad practice)
kiyote23 has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
rylev has joined #ruby
rylev has quit [Read error: Connection reset by peer]
arya_ching has quit [Ping timeout: 258 seconds]
bonhoeffer has joined #ruby
arya_ching has joined #ruby
maestrojed has joined #ruby
rylev has joined #ruby
poetazus has quit [Client Quit]
the_2nd has joined #ruby
<IceDragon> atmosx: If you're writing the library in question you can create your own exception inheriting from RuntimeError, otherwise you could rescue and parse it and raise a custom exception (now why the hell did I even think of that)
Andy__ has joined #ruby
xenomorph is now known as {xenomorph}
maletor has joined #ruby
Andy__ is now known as NivenHuH
hashpuppy has quit [Quit: Computer has gone to sleep.]
gsd has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> IceDragon: hm
poetazus has joined #ruby
enebo has joined #ruby
rylev has quit [Read error: Connection reset by peer]
<bradland> is this poor form? foo = { bar: 'baz' }; foo[:qux] ? true : false
<bradland> versus something like this: foo = { bar: 'baz' }; foo.has_key?(:qux) ? true : false
<bradland> the difference i’m interested in is whether it is OK to simply use the hash reference as the condition, or should one use Hash#has_key?
<IceDragon> bradland: if the key can be nil or a Boolean, use the has_key?
rylev has joined #ruby
<bradland> ah, i see. so that’s when has_key? is useful.
gusto has joined #ruby
<IceDragon> has_key checks if the key exists
<IceDragon> referencing will return the Object or nil (if its not found)
<shevy> this dragon is a wise dragon
<IceDragon> correction: it will return whatever you set the default for the Hash
<IceDragon> :P
<IceDragon> default: nil
<IceDragon> shevy: yeah right, I'm just searching for motivation right now
<bradland> yeah, in this case, i’m using a hash as a bucket for strings that are being passed around, which may or may not have certain keys defined
bonhoeffer has quit [Ping timeout: 272 seconds]
<bradland> so i can use the hash directly in the conditional
michaeldeol has joined #ruby
<IceDragon> when in doubt use has_key? or just key?
timonv_ has quit [Remote host closed the connection]
blueOxigen has joined #ruby
n80 has quit [Quit: n80]
bluOxigen has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 265 seconds]
towski_ has joined #ruby
MrIlyas_ has quit [Quit: Leaving]
MrIlyas has joined #ruby
javiercito has joined #ruby
<shevy> or .has_cheese?
<shevy> I like has_key? but I think the correct way is .key?
<IceDragon> shevy.got_milk?
<shevy> I ain't a woman
<shevy> no cow milk in the fridge either :(
<IceDragon> bah
<IceDragon> :(
<IceDragon> Go buy milk, so the method returns true
<IceDragon> :P
spastorino has joined #ruby
<shevy> well I bought some other stuff instead. cheese for instance, also one beer
<IceDragon> Hmm
* IceDragon takes the cheese and beer and stares at the
<IceDragon> *them
<IceDragon> cheese beer?
gigetoo has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
bonhoeffer has joined #ruby
javiercito has quit [Read error: Connection reset by peer]
silkfox has quit [Ping timeout: 240 seconds]
lmickh_ has joined #ruby
javiercito has joined #ruby
lmickh has quit [Ping timeout: 245 seconds]
studiotate has quit [Quit: Computer has gone to sleep.]
toretore has quit [Write error: Connection reset by peer]
maletor has quit [Ping timeout: 244 seconds]
studiotate has joined #ruby
wallerdev has joined #ruby
<shevy> kinda
<shevy> if you eat cheese and drink beer at the same time, you have both in your stomach!
kasperti_ has quit []
pzzn has joined #ruby
ziyadb has joined #ruby
icebourg has quit []
dumdedum has joined #ruby
Danishman has joined #ruby
kiyote23 has joined #ruby
studiotate_ has joined #ruby
LouisRoR has quit []
studiotate has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
rkalfane has joined #ruby
<pzzn> Hi everyone, I have a ruby script that logs to a loge file using ruby’s “Logger” class. I want to run multiple instances of the script in seperate terminals which will log to the same log file. I was wondering the logger can properly handle this?
sinkensabe has quit [Remote host closed the connection]
icebourg has joined #ruby
javiercito has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
<IceDragon> pzzn: at that point, you don't normally use logger, you'd have a log server which every instance writes to, which then writes to the log file
<IceDragon> [instances] > log-server > log-file
JimmyNeutron has quit [Read error: Connection reset by peer]
LouisRoR has joined #ruby
<IceDragon> since I don't believe you can open multiple write handles to the same log file
rshetty has quit [Remote host closed the connection]
<pzzn> IceDragon: thank you. do you happen to know of a log-server?
<IceDragon> I remembered using one, but it was for Go
<IceDragon> or was it clojure..
javiercito has joined #ruby
maletor has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
<IceDragon> Shouldn't be too hard to implement in ruby, spin up a sinatra server with a simple POST /log route, and then all your client apps will send HTTP requests to the server
<IceDragon> shevy: do you know any log servers for ruby?
pu22l3r has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
gccostabr has joined #ruby
ghostlines has joined #ruby
gccostabr has quit [Max SendQ exceeded]
ghostlines has quit [Max SendQ exceeded]
hashpuppy has joined #ruby
whoisjake has quit []
ghostlines has joined #ruby
gccostabr has joined #ruby
Pupeno has quit [Remote host closed the connection]
gccostabr has quit [Max SendQ exceeded]
GaryOak_ has joined #ruby
gccostabr has joined #ruby
<Morrolan> Oooor you could use Syslog :D
mjuszczak has joined #ruby
<IceDragon> What is this syslog you speak of Morrolan one :O
* IceDragon googles
<Morrolan> :P
<IceDragon> well google threw me around 3 different ones
<IceDragon> D:
n80 has joined #ruby
silkfox has joined #ruby
<pzzn> humm, looks like ruby’s logger can habdle it, but it is recommended to wrote to seperate log files to avoid confusion and complexity
frem has joined #ruby
rbennace_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
<waxjar> "or even alert the system administrator via email, pager or text message"
<waxjar> >pager
<waxjar> lol
<shevy> IceDragon not really. but there is class Logger in stdlib, perhaps you could run webrick in the background with a constant Logger
<IceDragon> waxjar: Old Skool
rshetty has quit [Remote host closed the connection]
<IceDragon> shevy: sounds like a plan
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
Soda has quit [Remote host closed the connection]
hmsimha has joined #ruby
rbennacer has quit [Ping timeout: 264 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JimmyNeutron has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
wolf4ood has quit [Quit: (null)]
{xenomorph} is now known as xenomorph
yfeldblum has joined #ruby
mjuszczak has quit []
mjuszczak has joined #ruby
renderful has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
<shevy> bash is crazy
<shevy> if condition; then
<shevy> { multiline here }
<shevy> else { multiline here }
<shevy> fi
<shevy> that fi trips me up
sinkensabe has quit [Remote host closed the connection]
h01y5h17 has joined #ruby
h01y5h17 has left #ruby [#ruby]
apurcell has joined #ruby
sinkensabe has joined #ruby
comm64 has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
<diegoviola> it's like the if is doing an acrobatic flip to mark the condition's end
lkba has quit [Ping timeout: 256 seconds]
mrmargolis has joined #ruby
it0a has joined #ruby
Synthead has joined #ruby
tejas-manohar has quit [Quit: Page closed]
justicefries has joined #ruby
poetazus has quit [Remote host closed the connection]
s_e_ has joined #ruby
ghostlin_ has joined #ruby
<IceDragon> shevy: for f in ./*.jpg do stuff_with_jpeg done
<IceDragon> for ; do ; done
<IceDragon> oh and case, is esac for some strange reason D:
arrubin has joined #ruby
_br_- has joined #ruby
boadie_ has joined #ruby
rbennacer has joined #ruby
sinkensabe has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
chrishough has joined #ruby
rylev has joined #ruby
sumark_ has joined #ruby
<shevy> case menus in bash are even stranger
<shevy> you even have those strange ;; characters there
LouisRoR1 has joined #ruby
thumpba has joined #ruby
jdj_dk has joined #ruby
<IceDragon> its like break
s00pcan__ has joined #ruby
exadeci has joined #ruby
_ixti_ has joined #ruby
kasperti_ has joined #ruby
kiyote23 has quit [Remote host closed the connection]
mengu__ has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
tekku has joined #ruby
mjuszczak has quit []
ohaibbq has quit [Quit: Leaving...]
marius__ has quit [K-Lined]
sinkensabe has joined #ruby
mengu__ has quit [Client Quit]
deol has joined #ruby
aclearman037 has joined #ruby
deol has quit [Client Quit]
ghostlines has quit [Ping timeout: 264 seconds]
droidburgundy has quit [Ping timeout: 264 seconds]
_br_ has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
olekenne1h has joined #ruby
robertt_dex_ has joined #ruby
agrinb has joined #ruby
robertt_dex_ has quit [Read error: Connection reset by peer]
agrinb has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
robertt_dex_ has joined #ruby
s00pcan_1 has joined #ruby
<shevy> but it looks so strange!
SHyx0rmZ has quit [Ping timeout: 264 seconds]
s_e has quit [Ping timeout: 264 seconds]
s_e_ is now known as s_e
<pipework> shevy: Everything's strange when you're a stranger.
LouisRoR has quit [*.net *.split]
blackmesa has quit [*.net *.split]
michaeldeol has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
snath has quit [*.net *.split]
slawrenc_ has quit [*.net *.split]
mengu has quit [*.net *.split]
aclearma_ has quit [*.net *.split]
rippa has quit [*.net *.split]
giuseppesolinas has quit [*.net *.split]
robertt_dex has quit [*.net *.split]
s00pcan has quit [*.net *.split]
tekk has quit [*.net *.split]
ixti has quit [*.net *.split]
sumark has quit [*.net *.split]
boadie has quit [*.net *.split]
s00pcan_ has quit [*.net *.split]
joast has quit [*.net *.split]
olekenneth has quit [*.net *.split]
Vile` has quit [Excess Flood]
agrinb has joined #ruby
snath has joined #ruby
rbennacer has quit [Remote host closed the connection]
cvtsx1 has joined #ruby
<shevy> even perl is more readable than that
renderful has quit [Remote host closed the connection]
jayne_ has joined #ruby
<IceDragon> shevy: trust me, I've always wondered: "What the hell where these guys thinking while making bash"
conniemj___ has joined #ruby
frog0909_ has joined #ruby
<shevy> it actually reads a bit like ruby
<IceDragon> I'm sure they had some good reason for the weird-ities
sinkensabe has quit [Write error: Connection reset by peer]
BombStrike has quit [Ping timeout: 255 seconds]
<shevy> IceDragon I don't believe that :)
<shevy> programmers are naturally lazy
<IceDragon> you could be right
sinkensabe has joined #ruby
jayne has quit [Read error: Connection reset by peer]
Davey has quit [Excess Flood]
Vile` has joined #ruby
<IceDragon> "Uggh, I hate writing 'break', hey can we just make this a double semi-colon or something"
voodoofish4301 has joined #ruby
Davey has joined #ruby
<shevy> hehehe
ryotarai has joined #ruby
<shevy> yeah
ta has joined #ruby
<shevy> ;; is easy
<shevy> you type the first ; and then just repeat that action
BombStrike has joined #ruby
Fire-Dragon-DoL has joined #ruby
frog0909 has quit [Ping timeout: 255 seconds]
Fire-Dragon-DoL has quit [Max SendQ exceeded]
<shevy> ruby and python also appeal more than perl in regards to not mandatorily requiring a trailing ;
jcdesimp has joined #ruby
Spleeze has joined #ruby
giuseppesolinas has joined #ruby
joast has joined #ruby
conniemj__ has quit [Ping timeout: 255 seconds]
rylev has joined #ruby
<pipework> Yeah, if you hate that goddamned ;, use ruby.
jcdesimp has quit [Remote host closed the connection]
<shevy> but look at this http://pastie.org/9803970
<IceDragon> pipework;
jcdesimp has joined #ruby
<shevy> I am not sure if I wrote it myself or got it from another guy
<shevy> that is supposedly allowing you to extract all archive formats. even the perl code above is more readable to me!
renderful has joined #ruby
<wmoxam> loks pretty straightforward to me
<wmoxam> it's just a case statement
agrinb has quit [Remote host closed the connection]
i8igmac has quit [Ping timeout: 240 seconds]
icarus_ has quit [Quit: leaving]
timonv_ has quit [Read error: Connection reset by peer]
<IceDragon> for the most part yes, but those ) always bothered me
Techguy305 has joined #ruby
jcdesimp has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
<IceDragon> I'm used to seeing my brackets open & close
davedev2_ has quit [Ping timeout: 240 seconds]
<IceDragon> o_e
jcdesimp has joined #ruby
ndrei has joined #ruby
ta has quit [Ping timeout: 272 seconds]
davedev24_ has joined #ruby
jcdesimp has quit [Client Quit]
bluOxigen has quit [Ping timeout: 245 seconds]
jcdesimp has joined #ruby
bluOxigen has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
rylev has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
conniemj___ has quit [Quit: (null)]
timonv_ has joined #ruby
jcdesimp has quit [Client Quit]
jcdesimp has joined #ruby
poetazus has joined #ruby
javiercito has quit [Remote host closed the connection]
govg has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
Stalkr_ has joined #ruby
unrar has joined #ruby
<unrar> hihi
bonhoeffer has joined #ruby
<IceDragon> a wild unrar appears!
<IceDragon> unrar --help
atmosx has quit [Quit: Let him that would move the world first move himself. - Socrates]
gccostabr has quit [Ping timeout: 245 seconds]
<shevy> yeah we have a different standard of aesthetics here
<unrar> lol
Synthead has quit [Ping timeout: 272 seconds]
<unrar> long time no see #ruby <3
<IceDragon> P:
<shevy> like the amount of line noise compared to syntactical elements of expression
gccostabr has joined #ruby
conniemj___ has joined #ruby
<IceDragon> more noise, less action
gccostabr has quit [Max SendQ exceeded]
rylev has joined #ruby
<unrar> Anyone here uses Ruby for major projects?
<pipework> Some people like the safety blanket of having those extra stuff.
stunder has quit [Quit: Screw you guys I'm going home]
<pipework> unrar: No one, never.
blackmesa has joined #ruby
<unrar> lol
michaeldeol has joined #ruby
gccostabr has joined #ruby
gccostabr has quit [Max SendQ exceeded]
<unrar> I mean something other than purely scripting purposes (quick tasks etc.) more like large desktop applications
<unrar> I'm thinking something science-y
<waxjar> im using ruby for world domination
<unrar> lmao
bluOxigen has quit [Ping timeout: 240 seconds]
i8igmac has joined #ruby
Xeago has quit [Remote host closed the connection]
<diegoviola> what are your thoughts on Rubinius X? it does seem like the Rubinius project is trying to extend or change the Ruby language in some ways, if they succeed with that, lots of projects are going to migrate their apps and code to use the new APIs and then MRI won't work anymore, unless MRI catches on with RBX
n80 has quit [Quit: n80]
gccostabr has joined #ruby
<diegoviola> at least that's how I understand it
wjimenez5271_ is now known as wjimenez5271
gccostabr has quit [Max SendQ exceeded]
<pipework> I once wrote a script to rename files, but then I kept adding features and now it's a webscale ETL data architecture running through TB of data a day.
<pipework> diegoviola: Or no one will continue to care except a few fringe rbx users.
n80 has joined #ruby
<diegoviola> pipework: well, it does seem like they are also trying to solve some other problems like performance and concurrency
gccostabr has joined #ruby
bluOxigen has joined #ruby
tejas-manohar has joined #ruby
<diegoviola> I mean, isn't that good?
gccostabr has quit [Max SendQ exceeded]
<diegoviola> people have been complaining about these two things for quite a long time in Ruby
<tejas-manohar> yo anyone here good w/ Net/http
<pipework> diegoviola: Yeah, but JRuby does that too.
<tejas-manohar> i want to know difference between .post and .post_form?
<diegoviola> pipework: but JRuby means... JVM, not all people like the JVM
agrinb has joined #ruby
<tejas-manohar> i'm migrating some code using .post_form to using faraday instead of net/http
Tranquility has joined #ruby
<havenwood> diegoviola: Dislike of a VM?
* diegoviola shrugs
gccostabr has joined #ruby
Spami has joined #ruby
<havenwood> diegoviola: JRuby 9000 also runs on GraalVM.
dumdedum has quit [Quit: foo]
gccostabr has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
stunder has joined #ruby
studiotate_ has quit [Quit: Lingo - http://www.lingoirc.com]
<diegoviola> what's that
gccostabr has joined #ruby
<pipework> diegoviola: So? Who cares what they don't like?
sinkensabe has joined #ruby
thumpba has quit [Remote host closed the connection]
Spami has quit [Max SendQ exceeded]
<wmoxam> there's also the c# ruby
<wmoxam> IronRuby
<diegoviola> interesting
<havenwood> Topaz, MagLev, etc.
timonv_ has quit [Read error: Connection reset by peer]
arya_ching has quit [Ping timeout: 272 seconds]
<havenwood> But CRuby, JRuby and Rubinius are the biggies.
Spami has joined #ruby
whoisjake has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
poetazus has quit [Quit: Leaving...]
Xeago has joined #ruby
<tejas-manohar> havenwood: is there an HTTP request called POST FORM?
<apeiros_> isn't ironruby dead?
<tejas-manohar> havenwood: what is .post_form doesnt make sense to me
<apeiros_> afaik it was abandoned around 1.8.7 times
Grumelo has quit [Remote host closed the connection]
<havenwood> apeiros_: Last I looked it hadn't had commits in ages and was a pain to get working to benchmark.
<wmoxam> apeiros_: yeah, pretty much
javiercito has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
<waxjar> tejas-manohar: it's not very nice to ask people for help by highlighting them out of the blue
startupality has joined #ruby
<waxjar> tejas-manohar: and have a look at the documentation, it should become clear(er)
geggam has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Spami has quit [Client Quit]
<havenwood> apeiros_: Way late to the party and doesn't address the tuples but seems this is a good bit faster than zipping for a tight loop: input.each_with_object(default_lambda) { |i, c| c.call(i) }
<apeiros_> havenwood: the default lambda is different for each value
<havenwood> aha, i should have realized - makes sense
<apeiros_> in fact, it is different for each value set (usually 1 value, but sometimes more, hence the range/slice thingy)
<apeiros_> it's the part of the code which maps db-rows to models
<havenwood> mm
sinkensabe has joined #ruby
rkalfane has joined #ruby
<apeiros_> fwiw, for some reason `@casters.zip(@result_ranges).map { |caster, range| caster.call(row[range]) }` is even faster than `@casters.zip(row).map { |caster, value| caster.call(value) }` - I have no idea how that is possible :D
Azure has quit [Quit: My MBP went to sleep.]
<apeiros_> @result_ranges is [0,1,2,3,4..5,6,7..8] for the given example
agrinb has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
sinkensabe has quit [Remote host closed the connection]
kostitas has left #ruby [#ruby]
javiercito has quit [Remote host closed the connection]
<tejas-manohar> waxjar: i read documentation for .post_form but it doesnt describe much tbh
<apeiros_> havenwood: but hey, thanks for giving it a try!
javiercito has joined #ruby
<apeiros_> you may have been late, but you've been the only one :-(
io_syl has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
startupality has quit [Quit: startupality]
io_syl has quit [Changing host]
io_syl has joined #ruby
jarjar_prime has joined #ruby
Takle_ has joined #ruby
agrinb has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<tejas-manohar> waxjar: i still dont know difference between .post and .post_form its not really clear do i always just use .post_form if i wanna POST
<waxjar> tejas-manohar: they're equivalent, only post_form emulates filling in a HTML form
<tejas-manohar> waxjar; and how does that differ from a normal POST?
<waxjar> you don't always have to emulate filling in a HTML form, you can also post JSON or XML or some other format
poetazus has joined #ruby
<waxjar> depends on the the service you're making the POST request to
the_2nd has quit [Quit: Leaving]
startupality has joined #ruby
n80 has quit [Quit: n80]
Mongey has quit [Quit: ZNC - http://znc.in]
olivier_bK has joined #ruby
<shevy> unrar I use ruby-gnome
<shevy> unrar problem is the way I see it, building GUI apps is too much work right now. we need ideas how to make it less work, and simpler too
<tejas-manohar> waxjar: eval.in the form there
i8igmac has quit [Ping timeout: 258 seconds]
Takle_ has quit [Read error: Connection reset by peer]
javiercito has quit [Remote host closed the connection]
Takle has joined #ruby
i8igmac has joined #ruby
<headius> diegoviola: I have not seen anything about Rubinius X that worries me, since it was announced a year ago and nothing has been published or released
amundj has joined #ruby
<headius> it is a grab-bag of possible features someone might eventually consider doing, and yes, it would be completely incompatible with Ruby
javiercito has joined #ruby
<diegoviola> brixen said he is working on it
Xeago_ has joined #ruby
javiercito has quit [Remote host closed the connection]
<headius> proof is in the pudding...no release, no public commits = does not exist
<headius> this is my opinion of course
startupality has quit [Quit: startupality]
basex has quit [Read error: Connection reset by peer]
<headius> are there features you're interested in having in Ruby?
basex has joined #ruby
agrinb has quit [Remote host closed the connection]
<diegoviola> not really
<headius> most of the items in the original post already exist as libraries, like actors
agrinb has joined #ruby
<diegoviola> not sure I agree with that "purge the perl" thing
<diegoviola> how is it going to affect the one-liners?
<headius> I don't agree with most of the post
<diegoviola> for instance
<headius> but it's not my project and it has different goals
<diegoviola> "In general, anything inspired by Perl should be removed, but especially "magic globals" like $_ or $1. They are easily replaced by simply sending messages to objects and providing objects as parameters."
<diegoviola> is it going to be like python then?
<headius> I'm not the one to ask
jobewan has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<havenwood> diegoviola: Crystal is another nifty Ruby-inspired language to look at: http://crystal-lang.org/
agrinb_ has joined #ruby
<headius> Crystal looks pretty neat...similar goals to my language Mirah: http://mirah.org
snile has joined #ruby
pu22l3r has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
<diegoviola> interesting
thumpba has joined #ruby
mjuszczak has joined #ruby
<tejas-manohar> when im using faraday how do i tell what url im now at after POST'ing a form https://github.com/lostisland/faraday
<tejas-manohar> like w/ net/http i can do result['location']
Xeago_ is now known as Xeago
agrinb_ has quit [Ping timeout: 258 seconds]
rbennacer has joined #ruby
Takle_ has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
<apeiros_> diegoviola: while I don't agree with all points in the article, I too consider many perlisms in ruby a bad idea which should be replaced by (IMO) better alternatives
jdj_dk has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 272 seconds]
mjuszczak has quit [Client Quit]
MrIlyas has quit [Ping timeout: 240 seconds]
<bradland> “how is it going to affect the one-liners?” it will make them more readable for your future self ;)
Xeago_ has joined #ruby
basex has quit [Ping timeout: 245 seconds]
MrIlyas has joined #ruby
jobewan has quit [Quit: Leaving]
frog|OFF has quit [Ping timeout: 258 seconds]
mloveless has joined #ruby
<tejas-manohar> anyone here used the gem 'http'? im trying to get the resulting location after POST'ing a form
mjuszczak has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
iLike has joined #ruby
jdj_dk has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<apeiros_> if you want one-liners, write a golf gem, use ruby -rgolf and enjoy all the brevity you want
i8igmac has quit [Ping timeout: 240 seconds]
ARCADIVS has quit [Quit: ARCADIVS]
jphenow has quit [Ping timeout: 240 seconds]
mloveless has quit [Remote host closed the connection]
<diegoviola> I asked brixen why he thinks "Ruby is dying", conversation here: http://irclog.whitequark.org/rubinius/2014-12-29#1419876701-1419876917;
jphenow has joined #ruby
<tejas-manohar> anyone used faraday here?
<diegoviola> he mentions commercial interest and usage with Ruby has decreased, I agree
<diegoviola> but why would a language die just because of this?
<diegoviola> sure some folks want to get paid to write Ruby
pietr0 has joined #ruby
<diegoviola> but I don't think rails is going anywhere
<tejas-manohar> yeah i like ruby w/o pay :P
<tejas-manohar> tho im new
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<j2p2> if i wasn't getting paid for it i most likely wouldn't be using ruby
dawkirst has joined #ruby
cantonic has quit [Quit: cantonic]
basex has joined #ruby
<headius> diegoviola: absence of evidence is not evidence of absence
klmlfl_ has joined #ruby
jdj_dk has quit [Remote host closed the connection]
<ericwood> I pretty much disregard any opinion of "_____ is dead"
<ericwood> job searching recently and I can assure you Rails is not dead or dying :)
<diegoviola> "Netcraft has confirmed: *BSD is dying."
<headius> that's for sure
<headius> people keep saying Java's dying too, but damn near every company in the world of any significant size uses it
<tejas-manohar> hey guys my data variable is equal to {"lang"=>"assembly/nasm-2.07", "lang_friendly"=>"x86 Assembly — NASM 2.07", "code"=>"extern printf\nextern exit\nglobal main\n\ngreet:\n pop eax\n push fmt\n push eax\n jmp printf\n\nfmt db \"Hello %s!\", 10, 0\n\nmain:\n push name\n push exit\n jmp greet\n\nname db \"Charlie\", 0", "output"=>"Hello Charlie!\n", "status"=>"Exited with error status 86"}
<tejas-manohar> i've already run JSON.parse in the data = statement
<shevy> it's hard for programming languages to die
<ericwood> headius: even us ruby folk are using it in some capacity...you especially :)
<headius> more likely is that Ruby doesn't make headlines anymore because it is well-established, and people are more interested in talking about new things
<tejas-manohar> shouldn't i just be able to do data[:output] to get output?
<shevy> tejas-manohar do you have a key called :output
<headius> diegoviola: this is FUD, plain and simple... no evidence provided, just lack of contrary evidence and then a bunch of anecdotal cases
<ericwood> people seem to think that once something stops showing up on the front page of hacker news that it's dead
<tejas-manohar> shevy: should? looks like it
<shevy> tejas-manohar ok I don't see that key
giuseppesolinas has joined #ruby
<shevy> but I am going to believe you for if your statement was correct then the code must work
<tejas-manohar> shevy: i mean its "output" oh hmmm i guess it doesnt work the way i think it works
<shevy> oh
<shevy> >> "output" == :output
<eval-in__> shevy => false (https://eval.in/238139)
<shevy> weird. they are not the same
<shevy> :D
klmlfl has quit [Ping timeout: 256 seconds]
<ericwood> >> 'output' == :output.to_s
<eval-in__> ericwood => true (https://eval.in/238141)
<ericwood> now they are :D
<shevy> tejas-manohar some rails component has HashWithIndifferentSyntax or something like that where symbol and string keys will be treated equally or something like that
<tejas-manohar> shevy: lol - data[:output] returns nothin tho
<shevy> course not
<shevy> you don't have a key called :output
<ericwood> try data['output']
<tejas-manohar> ok got it yeah
<tejas-manohar> cant i use . syntax
<headius> diegoviola: again, these are my opinions...you're free to follow any Ruby fork you like, but don't buy into evidence-free assertions
<tejas-manohar> like data.output
<tejas-manohar> yay i can
gccostabr has quit [Quit: ZZZzzz…]
<tejas-manohar> nvm i cant
<tejas-manohar> wat
i8igmac has joined #ruby
<diegoviola> headius: I'm pretty happy with Ruby myself
<headius> me too, and what I'm not happy with I work on fixing with ruby-core and matz
<diegoviola> headius: I wasn't actually seeing Rubinius as a Ruby fork, but more of a Ruby reimplementation
jphenow has quit [Quit: leaving]
<tejas-manohar> is the user agent set in the http headers?
<diegoviola> headius: until they decided they want to change the language
jphenow has joined #ruby
<headius> diegoviola: indeed...if they continue to support full Ruby language, then they're just a runtime that supports Ruby
<headius> but any language changes they make unilaterally mean that language is no longer Ruby
<shevy> tejas-manohar you can if you have an object that responds to this
<diegoviola> headius: brixen said he has no plans on dropping support for 2.x, but add additional things to the language and also provide a better garbage collector and runtime
commmmodo has joined #ruby
<shevy> tejas-manohar a Hash by default does not use . there to access all components based on key->method values, but you can use struct or openstruct to use . calls
zorak8 has joined #ruby
startupality has joined #ruby
<diegoviola> headius: those are all very ambitious goals IMHO
<ericwood> if you wanted you could set up method_missing to look up the value :)
<diegoviola> but as you said, let's wait and see
philwantsfish has quit [Read error: Connection reset by peer]
<headius> diegoviola: I agree...and JRuby already has most of the VM-level features that have been mentioned
<headius> it's easy to talk
mjuszczak has quit []
<diegoviola> right
philwantsfish has joined #ruby
<ericwood> >> class Hash; def method_missing(m, *args, &block); self[m]; end; end
<eval-in__> ericwood => :method_missing (https://eval.in/238149)
jxf has joined #ruby
<ericwood> >> class Hash; def method_missing(m, *args, &block); self[m]; end; end; foo = {bar: 'asdf'}; foo.bar
<eval-in__> ericwood => "asdf" (https://eval.in/238150)
Musashi007 has joined #ruby
<ericwood> please never do this
<j2p2> won't work for his case anyways
sinkensabe has joined #ruby
<diegoviola> headius: quite often these projects that tries to replace other projects die out or don't get much traction, sadly. Some forks do succeed and replace the other project though.
<diegoviola> depends how lucky they get... I guess
ta has joined #ruby
<headius> it would take a great deal of work and a very large migration of users to overtake MRI
<headius> or rather, to get Rubyists to use "language X" instead of Ruby
Jet4Fire has joined #ruby
<headius> a lot of the assertions in those posts are also predicated on the idea that we can't do the same things for Ruby because MRI has no process...which isn't true
<diegoviola> yes, like the Devuan fork trying to replace Debian... good luck with that
<headius> if there's things you want at a language level, it's absolutely possible to add to Ruby
<headius> and if there's things you want at a VM level, JRuby provides them today and MRI provides more of them with each release
rylev has quit [Remote host closed the connection]
whoisjake has quit []
mjuszczak has joined #ruby
<diegoviola> headius: rubinius has this idea that you should be able to write as much as possible in Ruby though, I mean, the stdlib itself and the core VM/runtime
<diegoviola> and not in Java or C
<tejas-manohar> i cant have a -/hyphen in symbol in ruby?
p0wn3d_m1 has quit [Ping timeout: 250 seconds]
<tejas-manohar> with_headers(:User-Agent => '...')
green-big-frog has joined #ruby
jphenow has quit [Quit: Be back later ...]
Timgauthier has joined #ruby
allen has joined #ruby
p0wn3d_m1 has joined #ruby
<headius> diegoviola: so what? you can do that on JRuby or MRI too
<headius> in JRuby, we have a growing part of core that's written in Ruby, and we're exploring that more all the time
ta has quit [Ping timeout: 244 seconds]
<headius> the problem is that there's no technical value implementing Ruby in Ruby other than the reasons you'd use Ruby over anything else
<headius> and the counter examples are even worse, since Ruby is not a great language for representing low-level CPU or memory operations
<headius> or at least, this is my position on the matter...we use Ruby to implement parts of JRuby when it makes sense
<tejas-manohar> got it :'User-Agent'
basex has quit [Remote host closed the connection]
agrinb has joined #ruby
<diegoviola> headius: yeah I can see that
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
samgranieri has joined #ruby
<brixen> "there's nothing special about implementing Ruby in Ruby which is why we do it when it makes sense"
<brixen> logics
bluOxigen has quit [Ping timeout: 240 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<brixen> the most important reason rbx does it is because it's not C and Ruby programmers generally aren't C programmers
jayne_ is now known as jayne
<brixen> even C programmers find that useful https://twitter.com/phusion_nl/status/543035567580413953
bluOxigen has joined #ruby
<brixen> but besides that, it gives the ability to inline Ruby core library code into application code and vice versa
<brixen> a facility that is lauded in Java-land
<clop2> when i run programs from within ruby using, e.g., `ls`, i get a message about a insecure world writable directory in my path, but the directory mentioned is NOT in my path... any ideas for debugging this?
topolinux has joined #ruby
mjuszczak has quit []
mary5030_ has joined #ruby
jphenow has joined #ruby
ta has joined #ruby
lemur has joined #ruby
<ericwood> clop2: does it tell you which dir?
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
<clop2> ericwood, yes, but looking at $PATH in bash, and at puts ENV["PATH"] in ruby, that directory doesn't occur
GaryOak_ has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
<headius> JRuby can inline any JVM language into any JVM language. There's no reason you have to implement in Ruby to get inlining...you just need to use a managed language that runs through the same JIT
mary5030 has quit [Ping timeout: 255 seconds]
<ericwood> clop2: bizarre...
<ericwood> maybe make that dir not world-writable, tho
<ericwood> it's a bad idea anyways
agrinb_ has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
<chrisseaton> JRuby can even inline C into Ruby and C into Ruby when using Truffle
<headius> indeed
sinkensabe has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 245 seconds]
<headius> as I said before it was distorted into something I didn't say, "there's no technical value implementing Ruby in Ruby other than the reasons you'd use Ruby over anything else"
thumpba has quit [Remote host closed the connection]
ta has quit [Ping timeout: 272 seconds]
davedev2_ has joined #ruby
<headius> when all languages you use on a given VM have a level playing field for JIT and GC, then the only benefits of X over Y come down to language-versus-language
spacemud has quit [Ping timeout: 265 seconds]
<headius> that's how it is in JRuby and JRuby+Truffle
thumpba has joined #ruby
ta has joined #ruby
rbennacer has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 264 seconds]
Synthead has joined #ruby
St1gma has quit [Remote host closed the connection]
<shevy> ericwood problem is that he has no direct control over that error-reporting in ruby
chrishough has joined #ruby
giuseppesolinas has joined #ruby
St1gma has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
jobewan has joined #ruby
sinkensabe has joined #ruby
jobewan has quit [Client Quit]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
ta has quit [Ping timeout: 265 seconds]
Techguy305 has quit [Remote host closed the connection]
icebourg has quit [Ping timeout: 240 seconds]
dts|pokeball has joined #ruby
Musashi007 has quit [Quit: Musashi007]
javiercito has joined #ruby
ahmgeek has quit [Remote host closed the connection]
luriv_ has quit [Remote host closed the connection]
Sid05 has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
olivier_bK has quit [Ping timeout: 265 seconds]
icebourg has joined #ruby
luriv has joined #ruby
blueOxigen has joined #ruby
<brixen> I'm guessing most Ruby programmers would like to use Ruby, not Java
<brixen> so not using Ruby and forcing them to understand Java to fix a bug isn't very nice
s00pcan_1 has quit [Remote host closed the connection]
<brixen> "we can do that, too" < we are actually doing it
giuseppesolinas has quit [Quit: This computer has gone to sleep]
spacemud has joined #ruby
jobewan has joined #ruby
s00pcan has joined #ruby
<headius> not a technical reason
bluOxigen has quit [Ping timeout: 250 seconds]
javiercito has quit [Ping timeout: 264 seconds]
<Timgauthier> in ruby, does an or pass as true if both statements are true?
<ericwood> yes
<ericwood> >> puts "hello!" if true || true
<eval-in__> ericwood => hello! ... (https://eval.in/238162)
<ericwood> :D
<brixen> Timgauthier: it never runs the 2nd statement
<Timgauthier> ok
ndrei has quit [Ping timeout: 244 seconds]
<brixen> it short circuits
<Timgauthier> i'm learning swift and thats how it is there but it seemed weird, but not really
<Timgauthier> yeah
<brixen> if the first is true, I should say
<Timgauthier> its asking "if this is true, or if this is true"
mistergibson__ has joined #ruby
pwnz0r has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<Timgauthier> not "If this is true, or that is true"
<Timgauthier> thanks brixen
<brixen> n/p
<Timgauthier> back to learning != ruby :P
<godd2> Is it accurate to say that a block in Ruby is like a while loop that runs once?
Xeago_ has quit [Remote host closed the connection]
<yxhuvud> godd2: No.
<ericwood> a block is a closure of sorts
<ericwood> a lambda (although lambdas have slightly different properties!)
<godd2> but blocks aren't lambdas. you can't break from a lambda, and you cant return from a block
jobewan has quit [Ping timeout: 250 seconds]
<ericwood> right
<ericwood> but the concept is pretty much the same, the semantics are just slightly different
mistergibson_ has quit [Ping timeout: 272 seconds]
<brixen> godd2: older, but still a really good post by wycats http://yehudakatz.com/2010/02/07/the-building-blocks-of-ruby/
<brixen> godd2: talks about blocks
Akuma has joined #ruby
Morkel has joined #ruby
jobewan has joined #ruby
<ericwood> blox
<Timgauthier> eBlox
<brixen> godd2: if you know JS and are interested, this is good, too http://yehudakatz.com/2012/01/10/javascript-needs-blocks/
blueOxigen has quit [Ping timeout: 244 seconds]
dawkirst has quit [Quit: Leaving...]
<godd2> my question wasn't one of a beginner trying to understand blocks, it was more of wondering how far off the analogy is if I were to explain it to a beginner
<godd2> but thank you for those resources brixen
<brixen> it's a really hard part of Ruby to explain :(
<brixen> godd2: and hard to implement https://github.com/rubinius/rubinius/issues/3259
<godd2> I guess my claim is that "blocks are a while loop that runs once" is a better analogy than "blocks are like lambdas"
<brixen> given that MRI has no spec
rbennacer has joined #ruby
<brixen> godd2: you need the concept of variable scope to really make sense of that though
<brixen> I think
<brixen> it's non-trivial what happens to variables in a block
<brixen> and the fact that a method can capture that block
davedev24_ has joined #ruby
<brixen> that can't happen with a while loop
davedev2_ has quit [Ping timeout: 258 seconds]
jobewan has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
<yxhuvud> a block is a way to execute code in the environment belonging to the caller in the receiver.
<godd2> that's fair
<brixen> yxhuvud: heh
<yxhuvud> but that may not be clear without examples.
snowpeas has joined #ruby
adamski2600 has joined #ruby
<apeiros_> godd2: IMO for a beginner, all the details don't matter. blocks are a piece of code that you can pass around.
knikolov_ has quit [Ping timeout: 245 seconds]
<yxhuvud> +1
sambao21 has quit [Quit: Computer has gone to sleep.]
jcdesimp has quit [Quit: Leaving...]
timonv_ has joined #ruby
knikolov has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
_ixti_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
samgranieri has left #ruby [#ruby]
iamninja has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robertt_dex_ has quit [Remote host closed the connection]
amundj has joined #ruby
decoponio has quit [Quit: Leaving...]
ta has joined #ruby
agjacome has joined #ruby
timonv_ has quit [Remote host closed the connection]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
Synthead has quit [Ping timeout: 272 seconds]
gsd has joined #ruby
perturbation has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
DLSteve has joined #ruby
Morkel has quit [Quit: Morkel]
ta has quit [Ping timeout: 244 seconds]
giuseppesolinas has joined #ruby
_ixti_ has joined #ruby
kyb3r_ has joined #ruby
ragingcake_ has joined #ruby
<axilla> how can I return the value of method 1 when called from inside method 2? https://gist.github.com/travisdmathis/fc2811bfe8383eecabe7
<yxhuvud> axilla:what makes you think you don't already do that?
jobewan has joined #ruby
<axilla> yx because i'm not getting true or false i'm getting my object back
<axilla> one sec i'll post my actual code
thumpba has quit [Remote host closed the connection]
adriancb has joined #ruby
<axilla> there ya go
iLike has quit [Read error: Connection reset by peer]
<yxhuvud> your nesting is wrong
<axilla> :)
Musashi007 has joined #ruby
jobewan has quit [Ping timeout: 240 seconds]
<yxhuvud> more serious, I don't think compare_child_names_to_new_folder_name does what you think it does. And the second one return the return value of #each, which is probably the object you are talking about
<axilla> yep
<axilla> it does exactly what i want it to when i don't have it in a seperate method
<axilla> i'm trying to dry up my code a bit
<yxhuvud> Do you really want it to abort after the first child has been checked? I doubt that.
<wallerdev> yxhuvud: that sounds so bad out of context
<axilla> i do want it to abort and throw an error.
<axilla> which it does.
<yxhuvud> wallerdev :D
<axilla> we can't have duplicate folder names inside of the same folder.
<yxhuvud> axilla: regardless of the result of the comparison?
<axilla> no, only if it returns false
<yxhuvud> well, it returns for true data as well
zorak8 has quit [Read error: Connection reset by peer]
zorak_ has joined #ruby
Nameo0 has joined #ruby
mjuszczak has quit []
<axilla> right, if its true it imports the folder from Box to our app
sambao21 has quit [Quit: Computer has gone to sleep.]
<yxhuvud> no, that method returns true, immediately without checking more children. whatever other parts of the program does is not up for question.
<axilla> i have a custom validation in my controller which calls a private method which calls the method in my model to check for uniqueness. if it returns false i do some railsy stuff and close a modal.
<axilla> hmmmm
Kricir has quit [Remote host closed the connection]
kostitas has joined #ruby
unrar has quit [Quit: Leaving]
mliqu has joined #ruby
_ixti_ has quit [Ping timeout: 250 seconds]
danielcharles has joined #ruby
i8igmac has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
_ixti_ has joined #ruby
pu22l3r has joined #ruby
spacemud has quit [Ping timeout: 250 seconds]
_beechnut has quit [Ping timeout: 258 seconds]
rbennacer has quit [Remote host closed the connection]
fredsir has quit [Ping timeout: 245 seconds]
elfuego has joined #ruby
rbennacer has joined #ruby
kiyote23 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Timgauthier has quit [Read error: Connection reset by peer]
msmith_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Timgauthier has joined #ruby
pandaant has quit [Remote host closed the connection]
fredsir has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
conniemj___ has quit [Quit: (null)]
mloveless has joined #ruby
rbennace_ has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
Takle_ has quit [Remote host closed the connection]
ta has joined #ruby
kiyote23 has quit [Ping timeout: 265 seconds]
javiercito has joined #ruby
spacemud has joined #ruby
<rbennace_> hello
<rbennace_> how can i debug in what controller i am in minitest?
<rbennace_> assuming that i have something like binding.pry or debug in my test
ndrei has joined #ruby
thumpba has joined #ruby
jottr has joined #ruby
<crome> check the request params
i8igmac has joined #ruby
<crome> assuming you are debugging rails
droidburgundy has joined #ruby
<rbennace_> oh ok thank tou
<rbennace_> you
<crome> also, there is an object called context if I remember correclty
<crome> or just check self
zorak_ has quit [Read error: Connection reset by peer]
renderful has quit [Remote host closed the connection]
zorak8 has joined #ruby
giuseppesolinas has joined #ruby
ta has quit [Ping timeout: 265 seconds]
javiercito has quit [Ping timeout: 244 seconds]
spacemud has quit [Ping timeout: 255 seconds]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rbennace_> self is very helpful
commmmodo has quit [Quit: commmmodo]
michaeldeol has joined #ruby
giuseppesolinas has quit [Client Quit]
Takle has joined #ruby
i8igmac has quit [Read error: No route to host]
giuseppesolinas has joined #ruby
pzzn_ has joined #ruby
pzzn has quit [Ping timeout: 245 seconds]
pzzn_ is now known as pzzn
ndrei has quit [Ping timeout: 250 seconds]
gf3_ is now known as gf3
spacemud has joined #ruby
loc22 has joined #ruby
rpag has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
rpag has quit [Remote host closed the connection]
<loc22> Hi! Im looking to depoly a simple Sinatra app into DigitalOcean... does anyone knows if Sinatra works with dokku?
ta has joined #ruby
Takle has quit [Read error: No route to host]
Takle_ has joined #ruby
spacemud has quit [Ping timeout: 244 seconds]
giuseppesolinas has joined #ruby
n80 has joined #ruby
agrinb_ has quit [Remote host closed the connection]
agrinb has joined #ruby
paulfm has quit [Quit: Goodbye]
ta has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
n80 has quit [Quit: n80]
postmodern has joined #ruby
neutrino has quit [Quit: Leaving.]
Takle_ has quit [Read error: Connection reset by peer]
Stoge88 has joined #ruby
Takle has joined #ruby
mjuszczak has joined #ruby
Menorah has joined #ruby
pu22l3r has quit []
ishikawa has quit [Remote host closed the connection]
ishikawa has joined #ruby
loc22 has quit [Quit: Be back later ...]
jphenow has quit [Quit: Be back later ...]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Techguy305 has joined #ruby
<rbennace_> it should work
<rbennace_> this is a very interesting article abotu what you want to do
lemur has joined #ruby
keen__________17 has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
keen__________16 has quit [Ping timeout: 240 seconds]
lemur has quit [Remote host closed the connection]
djbkd has joined #ruby
loc22 has joined #ruby
<shevy> hmm if I have
lemur has joined #ruby
<shevy> module Foo; BAR = '123'; end
<shevy> is there a way to find out "BAR, in which namespace do you exist by default?"
spacemud has joined #ruby
<shevy> And it should either return 'Foo' or perhaps 'Foo::Bar'
<shevy> reason I ask is - I have some constants here but I don't know from which project they come
lemur has quit [Read error: No route to host]
<rbennace_> Foo::Bar would work
<rbennace_> do you have a specific example
<rbennace_> you can try it out
lemur has joined #ruby
<rbennace_> eval
<shevy> it works because I gave the example of the module but in my case I don't know the name
<shevy> consider 10000 modules with 1000000 constants
cmarques has quit []
<rbennace_> :)
giuseppesolinas has joined #ruby
<rbennace_> where are this module saved?
<rbennace_> so you know the name of the constant and you want to retreive the module name?
<rbennace_> not sure i understand your question
<shevy> I know the name of the constants yes
<shevy> in this case it is WHITE
djbkd has quit [Ping timeout: 272 seconds]
<rbennace_> ok
<rbennace_> but you don't know what module is defining it, is that right?
<shevy> yeah
<rbennace_> mmmmm
<rbennace_> this is a weird problem
<rbennace_> hehe
<shevy> I guess it must be logical
Tranquility has quit [Quit: Connection closed for inactivity]
<shevy> because the name of the project must only be the allowed prefix
lemur has quit [Ping timeout: 258 seconds]
<shevy> like Foo::WHITE
Sid05 has quit [Ping timeout: 250 seconds]
<shevy> so it should be part of at least one among the ancestors hmm
<yxhuvud> I don't know any tidy way, but you could do class << self; ancestors.select {|anc| anc::const_get(:Const) rescue nil } to see in what ancestors it is defined.
mjuszczak has quit []
<shevy> ah!
<rbennace_> hehehehe
<yxhuvud> or something like that
<shevy> going to try that
poetazus has quit [Quit: Leaving...]
lkba has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
slawrenc_ has joined #ruby
kyb3r_ has quit [Ping timeout: 255 seconds]
Crisix has quit [Quit: Textual IRC Client: www.textualapp.com]
kyb3r_ has joined #ruby
sinkensa_ has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
sinkensa_ has quit [Remote host closed the connection]
Soda has joined #ruby
perturbation has quit [Quit: Leaving]
sinkensabe has joined #ruby
elaptics is now known as elaptics`away
Azure has joined #ruby
mjuszczak has joined #ruby
atmosx has joined #ruby
msmith_ has joined #ruby
kostitas has quit [Quit: kostitas]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dts|pokeball has quit [Ping timeout: 258 seconds]
n80 has joined #ruby
Takle has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
msmith_ has quit [Remote host closed the connection]
basex has joined #ruby
godd2 has quit [Remote host closed the connection]
jefus_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
ghostlin_ has quit [Read error: Connection reset by peer]
ghostlines has joined #ruby
jefus has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
topolinux has quit [Quit: Sto andando via]
bonhoeffer has quit [Quit: bonhoeffer]
dts|pokeball has joined #ruby
ptrrr has quit [Quit: ptrrr]
it0a has quit [Quit: WeeChat 1.0.1]
agrinb has joined #ruby
ebbflowgo has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
klmlfl_ has quit [Ping timeout: 255 seconds]
zB0hs has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
ebbflowgo has joined #ruby
Pupeno has joined #ruby
n80 has quit [Quit: n80]
tejas-manohar has quit [Quit: Page closed]
xenomorph is now known as {xenomorph}
kiyote23 has joined #ruby
studiotate has joined #ruby
{xenomorph} is now known as xenomorph
n80 has joined #ruby
Musashi007 has quit [Ping timeout: 258 seconds]
mrmargolis has quit [Remote host closed the connection]
Musashi007 has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality has quit [Quit: startupality]
Aswebb_ has joined #ruby
bonhoeffer has joined #ruby
Pupeno has quit [Remote host closed the connection]
hephaestus_rg has joined #ruby
MrIlyas has quit [Quit: Leaving]
rbennace_ has quit [Remote host closed the connection]
<bonhoeffer> what is the best way to think about verbs like __build__ in ruby
<bonhoeffer> what is the whole __notation__
dc_ has joined #ruby
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
allen has quit [Ping timeout: 240 seconds]
rbennace_ has joined #ruby
Aswebb_ has quit []
yfeldblu_ has joined #ruby
dc_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
sambao21 has joined #ruby
ardian has joined #ruby
<atmosx> bonhoeffer: where did you find that thing?
<bonhoeffer> ha — i’ll send a reference
<bonhoeffer> mongoid gem (data mapper between rails and mogodb)
<ardian> Hello, I am looking for something like urlparse (in python) for ruby ?
<atmosx> bonhoeffer: there are some standards (not just for ruby, but used also in ruby) like: __FILE__ but that's probably just a variable set-up in a way to look familiar to people with other prog langs bg.
n80 has quit [Quit: n80]
<bonhoeffer> in general, what type of notation is that — __file__ <— refers to current file, correct?
<arrubin> ardian: I am not familiar with urlparse. Does this do what you need? http://www.ruby-doc.org/stdlib-2.0/libdoc/uri/rdoc/URI.html#method-c-parse
yfeldblu_ has quit [Ping timeout: 258 seconds]
<atmosx> bonhoeffer: yeah with capital letters IIRC.
dc_ has joined #ruby
codecop has quit [Quit: Išeinu]
<atmosx> bonhoeffer: it's handy when you need to load the current file's directory (usually to load other .rb modules/classes defined in files)
<bonhoeffer> got it — so __build__ caught me off guard
<bonhoeffer> no idea why they did that there
snath has quit [Ping timeout: 245 seconds]
<atmosx> bonhoeffer: IIRC this notation is popular in C and C++
cvtsx has joined #ruby
<bonhoeffer> ah — so i should know
<atmosx> The author of mongodb gem is probably familiar with both of at least C.
<atmosx> s/of/or
<atmosx> anyway I'm off to bed
<Timgauthier> g'nite shevy, enjoy the snow and the PHP
<atmosx> night :-)
rbennace_ has quit [Remote host closed the connection]
gccostabr has joined #ruby
<Timgauthier> atmosx :P dang beat me too it
icebourg has quit []
<ardian> arrubin: I think this might be it, I want to get the absolute path from a relative path using open-uri
rbennacer has joined #ruby
icebourg has joined #ruby
<ardian> using open-uri, I mean visiting the page and then getting the paths
cvtsx1 has quit [Ping timeout: 258 seconds]
<ardian> yes it has the join method, thank you
startupality has joined #ruby
mary5030_ has joined #ruby
hamakn has joined #ruby
mikedugan has joined #ruby
mjuszczak has quit []
gccostabr has quit [Ping timeout: 245 seconds]
snath has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
Takle has quit [Read error: No route to host]
Takle has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
mary5030_ has quit [Ping timeout: 258 seconds]
gccostabr has joined #ruby
javiercito has joined #ruby
gccostabr has quit [Max SendQ exceeded]
Danishman has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Kricir has joined #ruby
gccostabr has joined #ruby
gccostabr has quit [Max SendQ exceeded]
rbennacer has quit [Remote host closed the connection]
gccostabr has joined #ruby
gccostabr has quit [Max SendQ exceeded]
basex has quit [Ping timeout: 240 seconds]
kiyote23 has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
gccostabr has joined #ruby
GaryOak_ has joined #ruby
rbennacer has joined #ruby
javiercito has quit [Ping timeout: 258 seconds]
renderful has joined #ruby
frog0909 has joined #ruby
atmosx has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
vvivv has quit [Ping timeout: 245 seconds]
basex has joined #ruby
frog0909_ has quit [Ping timeout: 244 seconds]
cmarques has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
<shevy> Timgauthier I hate both right now
gccostabr has quit [Quit: ZZZzzz…]
ragingcake_ has quit [Quit: ragingcake_]
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
msmith_ has joined #ruby
dc_ has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Kabaka has joined #ruby
hmsimha has quit [Quit: Leaving]
crueber has quit [Quit: Leaving.]
dc has joined #ruby
bigmac has joined #ruby
bronson has joined #ruby
<Bish> hey, if i fuck up in a thread, can i tell the thread to start all over again?
<Bish> like Thread.new { begin dostuff rescue startthreadallover end }
basex has quit [Read error: Connection reset by peer]
basex has joined #ruby
<bronson> other than retry?
Zaza has joined #ruby
<bronson> I don't think Thread offers anything like that.
reset has joined #ruby
bigmac is now known as i8igmac
charliesome has quit [Quit: zzz]
<Bish> :/
geggam has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
loc22 has quit [Read error: Connection reset by peer]
basex has quit [Remote host closed the connection]
<bronson> What's wrong with begin dostuff; rescue retry; end?
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Zaza has quit [Client Quit]
Pupeno has joined #ruby
<Bish> it was ment as a dirty workaround ofc
rylev has joined #ruby
<bronson> what was? rescue retry isn't dirty.
<bronson> moving retrying outside the thread block only gets messier.
<Bish> well but if u want to initiliaze an object on multiple places
<Bish> in case of an exception
<Bish> and the beginning of the thread does initilize those, :3 it would be easier to just start over
<bronson> begin; initialize_objects; do_stuff; rescue retry; end ?
msmith_ has quit [Remote host closed the connection]
pzzn has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
djdarkbeat has quit [Quit: djdarkbeat]
rylev has quit [Remote host closed the connection]
<Bish> yes, and if "do_stuff" fales, because the initialized objects "broke"
<Bish> i would need call "initialize_objects" again, which i don't have a method
charliesome has joined #ruby
jwilson has joined #ruby
jwilson has left #ruby ["Leaving"]
zorak8 has quit [Ping timeout: 256 seconds]
dc has quit [Remote host closed the connection]
Kricir has joined #ruby