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]
<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]
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'
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'
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]
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
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]
<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]
<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.
<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
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.
<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]
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>
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>
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]
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]
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?
<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.]
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
<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
<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.
<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
<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
<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>
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>
tejas-manohar some rails component has HashWithIndifferentSyntax or something like that where symbol and string keys will be treated equally or something like that
<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
<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?
<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]
<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 :(
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]
<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.
<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.