<MichaelGG>
I skimmed Metaprogramming Ruby book a few years ago and I wasn't sold. But right now it looks like I do either WordPress and deal with security hell and crappy plugins (and php...) or go with Ruby
rcvalle has quit [Quit: rcvalle]
<MichaelGG>
and everyone seems to love ruby for webdev so worth a shot
<MichaelGG>
baweaver, that contracts code looks fairly concise. neat.
<baweaver>
I switch between Ruby and Scala
<MichaelGG>
whoa hope youve got a good clutch
<baweaver>
Spark jobs mainly.
woodruffw has quit [Remote host closed the connection]
<pontiki>
i love ruby for most everything anymore
icebourg has joined #ruby
<pontiki>
even if avdi is right :D
<MichaelGG>
Is the Ruby in 20 minutes worth doing? Or just start with The Well grounded rubyist
<zenko>
Antiarc: it says not opened for reading even though i used "wb"
<Antiarc>
wb is open for writing, not reading
<xxneolithicxx>
tthats binary write only
<Antiarc>
(w = write, b = binary)
WillAmes has quit [Remote host closed the connection]
<zenko>
exactly, i'm writing the file which is why i'm confused by the IO exception, i'm not reading it at all
sepp2k has joined #ruby
<Antiarc>
can you gist some code?
WillAmes has joined #ruby
icebourg has quit []
<zenko>
yep
<zenko>
one moment
<cout>
hi zenko
<zenko>
hi cout
cubicool has joined #ruby
<zenko>
oh man, it just went away when i commented out the $DEBUG=true directive
jeanlinux has quit [Remote host closed the connection]
<zenko>
that's interesting, ok, i'll gist anyway
<cubicool>
I'm using Rubocop pretty religiously (its integrated nicely into vim), and it complains about using @@FOO as a class variable (what I would call a 'static' variable). What should I use instead of I want the reference to be global to the class, but not accessible externally?
seal has joined #ruby
oo_ has joined #ruby
<cubicool>
In real usage, it is a registry of sorts that gets updated every time a new instance of the class is created.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GPrime has joined #ruby
<pontiki>
i'm curious, is it because it's upper case?
keen__________15 has joined #ruby
<pontiki>
otherwise, does rubocop just not like class variables?
danman has quit [Quit: danman]
<cubicool>
No, Rubocop simply says: Replace class var @@foo with a class instance var.
keen__________14 has quit [Ping timeout: 246 seconds]
<pontiki>
ah, okay
dented42 has joined #ruby
<bougyman>
cubicool: if you want to use something that rubocop doesn't like, add # rubocop:disable The/Thing on that line
devdazed has quit [Quit: Computer has gone to sleep.]
<bougyman>
a class instance variable is generally safer.
<bougyman>
and almost always accomplishes what you need.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snockerton has quit [Quit: Leaving.]
<xxneolithicxx>
zenko: are you running on Linux
<cubicool>
How could it act as a global instance registry though?
<Antiarc>
zenko: Oh, the exception is thrown and then caught in csv.rb
<Antiarc>
Since you're in debug mode it's printed to stderr, despite the fact that it's caught
<zenko>
xxneolithicxx: i am, as much as possible
mclee has quit [Ping timeout: 276 seconds]
<zenko>
that makes sense Antiarc, i can see why that is useful
<xxneolithicxx>
zenko: do you have permission to write in the PWD you are in
<zenko>
xxneolithicxx: i do, i'm able to write it, it was the exception that had me confused, and my receiving of the message is because of my debug directive
<pontiki>
$DEBUG is a ruby global. a whole bunch of stuff gets turned on and visible then
Guest77561 has quit [Ping timeout: 256 seconds]
<Antiarc>
zenko: Looking at csv.rb, it #initialize always calls init_separators, which attempts to read info from the file, despite the fact that it was given a write-only file handle. That seems poorly designed, IMO, but it's functioning correctly.
<Antiarc>
Exceptions as flow control, grr
sharpmachine has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<Antiarc>
You can work around it by specifying the row_sep option, it seems
<bougyman>
>> class A; @@foo = 'bar';def foo;@@foo;end ;end; class B < A; def wut; @@foo = 'wut';end;end; [B.new.foo, (B.new.wut && A.new.foo)]
<FrankD_>
I was calling File.close(targetFile) instead of targetFile.close()
Rickmasta has joined #ruby
<sevenseacat>
there we go :)
<FrankD_>
ahh thanks, fresh eyes!
<FrankD_>
cant beat em
<sevenseacat>
np
<sevenseacat>
reading the error message helps too :)
<FrankD_>
haha well you know, ive been at it a while.. so i skimmed it..
nettoweb has joined #ruby
rezzack has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<FrankD_>
and it was complaining about line 56 earlier
<FrankD_>
so im either an idiot or burnt :p
nertzy has joined #ruby
RegulationD has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danman has joined #ruby
mike___1234 has quit [Ping timeout: 250 seconds]
howdoicomputer has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
RegulationD has quit [Ping timeout: 276 seconds]
woodruffw has quit [Read error: Connection reset by peer]
woodruffw has joined #ruby
BrianBoyko has quit [Quit: Leaving]
<FrankD_>
whew weird working with webrick without rails :p
<sevenseacat>
havent ever done it
mando has joined #ruby
<FrankD_>
well im writing this collaborative ide thing.. and the actual server (websockets/eventmachine with ruby) and the web server are two different things
mistermocha has quit [Read error: Connection reset by peer]
<FrankD_>
but we needed file upload capability
tmtwd has joined #ruby
<sevenseacat>
sounds fun for an exercise
<FrankD_>
so i was able to implement webrick and an HTTPServlet to handle get/post/options in like 100 lines, probably easier than rewriting javascript to send over the websocket instead of nice xhr.. :P
<FrankD_>
heh why only for an exercise?
stoodfarback has joined #ruby
mistermocha has joined #ruby
stoodfarback has quit [Client Quit]
<FrankD_>
it crashes less than cloud9 and desyncs less than cloud9, it already wins for my own personal use :p
jackjackdripper has quit [Quit: Leaving.]
<sevenseacat>
I thought there were a lot of tools already out there to do that, cloud IDE things
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeramyRR has joined #ruby
J4D has joined #ruby
workmad3 has joined #ruby
<FrankD_>
yeah theyre all really shitty and broken
<FrankD_>
and i loathe paying money for things that are crappy/broken/dont meet my needs
<sevenseacat>
fair enough, I've never used any of them :)
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
<FrankD_>
hehe you should
<FrankD_>
theyre fun!
danman has quit [Quit: danman]
ledestin has joined #ruby
drz3 has joined #ruby
<FrankD_>
http://imgur.com/0Ldp7dp <-- I know the GUI looks like #)%$^&*, but a UX overhaul isnt coming until its more feature complete
<sevenseacat>
interesting
<FrankD_>
our collaborative terminals work really well :P
dgutierrez1287 has quit [Remote host closed the connection]
araujo_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoicomputer has quit [Ping timeout: 244 seconds]
araujo has quit [Ping timeout: 248 seconds]
growlove has joined #ruby
woodruffw has quit [Ping timeout: 255 seconds]
mike___1234 has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.2]
sarkyniin has quit [Ping timeout: 265 seconds]
<sphex>
hey. what is the state of ruby specifications? looks like there are formal standards, but they are old. and rubyspec was abandoned and MRI is possibly not compliant?
haraoka has joined #ruby
howdoicomputer has joined #ruby
bruno- has joined #ruby
nettoweb has joined #ruby
tkuchiki has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blt has joined #ruby
blkperl has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<blt>
Is it possible to run a minitest test within irb? for example i have this code loaded in irb, just not sure how to run it: http://pastie.org/10281053
<blt>
I'd prefer not to have to use the command line since I'm doing it in an emacs org file
saadq has joined #ruby
matp has joined #ruby
<blt>
meaning, it's not a .rb file that I can run ruby on, it's just embedded in the org file
nettoweb has quit [Ping timeout: 264 seconds]
j_mcnally has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
araujo_ has quit [Ping timeout: 252 seconds]
araujo__ has joined #ruby
dgutierrez1287 has joined #ruby
araujo__ has quit [Max SendQ exceeded]
<FrankD_>
crap maybe i should rewrite this with rack
araujo__ has joined #ruby
woodruffw has joined #ruby
pr0ton has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
<FrankD_>
is there an easy way to enable gzip deflate from POSTs to webrick?
woodruffw has quit [Max SendQ exceeded]
mary5030 has joined #ruby
woodruffw has joined #ruby
doctorly has quit [Quit: leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 248 seconds]
bronson has quit [Remote host closed the connection]
but3k4 has joined #ruby
christiandsg has joined #ruby
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
pr0ton has quit [Read error: Connection reset by peer]
nateberkope has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
blkperl has joined #ruby
pr0ton has joined #ruby
bullcitydev has joined #ruby
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
yayfoxes has joined #ruby
Yzguy has joined #ruby
saadq has quit [Remote host closed the connection]
hahuang65 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
hinbody has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has joined #ruby
choke has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
bhuvan_aurora has joined #ruby
hmnhf_ has joined #ruby
adamski2600 has joined #ruby
bhuvanaurora has joined #ruby
Helheim has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aryaching_ has joined #ruby
hotpancakes has joined #ruby
Helheim has joined #ruby
hmnhf has quit [Ping timeout: 246 seconds]
yeticry has quit [Quit: leaving]
adamski2600 has quit [Ping timeout: 246 seconds]
midi_ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
ivanskie has joined #ruby
abuzze has joined #ruby
Jamal has quit [Ping timeout: 240 seconds]
acke has joined #ruby
dented42 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<midi_>
does anyone think they would be able to help me with how to use the reddit API via Net::HTTP?
fabrice31 has joined #ruby
<cout>
midi_: you might be happier using rest-client
casadei_ has quit [Remote host closed the connection]
<certainty>
moin
cubicool has left #ruby [#ruby]
hotpancakes has joined #ruby
<midi_>
thanks, i'll give it a try
djbkd has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
lxsameer has joined #ruby
acke has quit [Ping timeout: 264 seconds]
juanca_ has joined #ruby
jenrzzz has joined #ruby
acke has joined #ruby
<flughafen>
morning
juanca_ has quit [Remote host closed the connection]
zacts has quit [Quit: leaving]
hotpancakes has quit [Ping timeout: 252 seconds]
hanmac1 has joined #ruby
idafyaid0 has joined #ruby
zacts has joined #ruby
djbkd_ has joined #ruby
tvw has joined #ruby
idafyaid0 has quit [Remote host closed the connection]
howdoi has joined #ruby
Soda has joined #ruby
eGGsha has joined #ruby
zacstewart has joined #ruby
idafyaid0 has joined #ruby
anaeem1_ has joined #ruby
idafyaid0 has quit [Remote host closed the connection]
hmnhf_ has quit [Quit: Konversation terminated!]
haraoka has joined #ruby
hmnhf has joined #ruby
krz has joined #ruby
IanV0rn2341 has joined #ruby
abuzze has quit []
mistermocha has quit [Ping timeout: 240 seconds]
roolo_ has joined #ruby
yizr has quit [Ping timeout: 248 seconds]
Scroff has joined #ruby
Cache_Money has joined #ruby
unshadow_ has quit [Ping timeout: 252 seconds]
abuzze has joined #ruby
Cache_Money has quit [Client Quit]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
Ropeney has quit [Write error: Connection reset by peer]
roolo__ has joined #ruby
unshadow has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
konsolebox has joined #ruby
A205B064 has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Excess Flood]
solars has joined #ruby
michael_mbp has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
roolo_ has quit [Ping timeout: 255 seconds]
konsolebox has quit [Max SendQ exceeded]
saadq has quit []
konsolebox has joined #ruby
cubesandcode has joined #ruby
blokc has joined #ruby
Jamal has joined #ruby
olistik has joined #ruby
baweaver has joined #ruby
rodfersou has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
blokc has quit [Remote host closed the connection]
<cubesandcode>
this is a silly question, but is there a way to change what language is displayed next to your github repo
blokc has joined #ruby
jas02 has joined #ruby
<apeiros>
cubesandcode: write more code in the language you wish to be shown
<cubesandcode>
they always say CSS because of big css frameworks i use
railsraider has joined #ruby
<sevenseacat>
dont include those frameworks in your repo
konsolebox has quit [Max SendQ exceeded]
s00pcan has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
s00pcan has joined #ruby
Jamal has quit [Ping timeout: 264 seconds]
blokc has quit [Client Quit]
User458764 has joined #ruby
<sphex>
`and` and `or` have the same precedence?!
<apeiros>
yes
blokc has joined #ruby
<sphex>
oh noes
tjohnson has quit [Quit: Connection closed for inactivity]
<apeiros>
oh nose?
troulouliou_dev has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
arup_r has quit [Remote host closed the connection]
<sevenseacat>
ow my nose
jenrzzz has quit [Ping timeout: 246 seconds]
<flughafen>
sevenseacat: did the cat bonk it?
choke has joined #ruby
pepperbreath has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
bronson has joined #ruby
doctorly has quit [Ping timeout: 264 seconds]
neanderslob has joined #ruby
craysiii has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
arup_r has joined #ruby
craysiii has joined #ruby
cubesandcode has left #ruby [#ruby]
jmhmccr has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
blokc has quit [Quit: blokc]
niemcu has joined #ruby
ta has quit [Remote host closed the connection]
aswen has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
niemcu has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
krz has quit [Client Quit]
Scroff has quit [Remote host closed the connection]
Ropeney has joined #ruby
tkuchiki has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
zacstewart has quit [Ping timeout: 244 seconds]
krz has joined #ruby
troulouliou_dev has joined #ruby
nargin has joined #ruby
oo_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
<nargin>
Hi! I'm trying to build a ruby extension but it fails at 'ruby extconf.rb' because the ruby header files cannot be found. Now I installed them at a non-default location. How can I tell the script to use the alternative install path?
ndrei has joined #ruby
bubbys has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mhib has joined #ruby
Timba-as has joined #ruby
hotpancakes has joined #ruby
joonty has joined #ruby
<headius>
sphex: rubyspec was adopted by MRI and they are contributing to it regularly now
arup_r_ has joined #ruby
roolo__ has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 256 seconds]
k3asd`_ has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
msgodf has quit [Ping timeout: 252 seconds]
eGGsha has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
tvw has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 256 seconds]
dopie has quit [Quit: This computer has gone to sleep]
solars has quit [Quit: WeeChat 0.4.2]
aryaching_ has quit [Ping timeout: 248 seconds]
dede has joined #ruby
symm- has joined #ruby
<sphex>
headius: did they merge it in the MRI repo?
<headius>
it's under ruby/rubyspec now on github
<headius>
there's a number of folks contributing to it
doertedev has joined #ruby
workmad3 has joined #ruby
solars has joined #ruby
yardenbar has joined #ruby
gagrio has joined #ruby
<sphex>
headius: awesome! hey thanks for the infos. google does not find this... :/
DoubleMalt has joined #ruby
<headius>
I don't think there was a big announcement or any drama around it...they just took over and continue maintaining it
<sphex>
oh yeah.. google did find some ancient drama though :p
dented42_ has joined #ruby
<apeiros>
headius: was that before or after brixen complained?
<headius>
they had been using a fork of it up until then
midi_ has quit [Remote host closed the connection]
poguez_ has quit [Quit: Connection closed for inactivity]
fella5s has joined #ruby
oo_ has quit [Remote host closed the connection]
alexblom has joined #ruby
oo_ has joined #ruby
mhib has joined #ruby
woodruffw has quit [Ping timeout: 248 seconds]
<yorickpeterse>
morning
platzhirsch has quit [Ping timeout: 264 seconds]
<apeiros>
moin
mistermocha has joined #ruby
djbkd_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quazimod1 has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ValicekB has joined #ruby
dumdedum has joined #ruby
<Burgestrand>
Anybody else having issues with rubygems? Status page says everything is OK, but my computer disagrees.
hotpancakes has joined #ruby
fabrice31 has joined #ruby
tesuji has joined #ruby
low-profile has joined #ruby
platzhirsch has joined #ruby
<sevenseacat>
Burgestrand: what issues are you having?
<ralku>
Burgestrand nope I was just to at least fetch
<ralku>
*able
<Burgestrand>
Receiving 503 status codes on gem downloads.
IanV0rn2341 has joined #ruby
wildfield has joined #ruby
olistik has joined #ruby
Xeago has joined #ruby
mandarinkin has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<yorickpeterse>
man, folding comments in Vim is probably one of the better decisions this year
<yorickpeterse>
You still get to have documentation without actually having to see it
bhuvan_aurora has joined #ruby
workmad3 has joined #ruby
davedev24_ has joined #ruby
bhuvanaurora has joined #ruby
<hanmac1>
Burgestrand: did you maybe try to update your rubygems version? i think there was an update a few days ago
jenrzzz has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<Burgestrand>
hanmac1: it appears that it could simply be some old gems that have fallen out of the cache and taking a bit too long to retrieve initially. If I try the same gem some 15 seconds later the install will go just fine.
woodruffw has joined #ruby
ohaibbq has quit [Quit: Leaving...]
Squarepy has joined #ruby
dumdedum has quit [Ping timeout: 252 seconds]
<nargin>
Hi! I'm trying to build a ruby extension but it fails at 'ruby extconf.rb' because the ruby header files cannot be found. Now I installed them at a non-default location. How can I tell the script to use the alternative install path?
arup_r has joined #ruby
mistermocha has joined #ruby
ralku is now known as ralku[away]
davedev24_ has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
<yorickpeterse>
nargin: your Ruby installation has to be aware of where the headers are
mhib_ has joined #ruby
<yorickpeterse>
otherwise probably every extension out there is going to fail
ralku[away] is now known as ralku
keernel has joined #ruby
<nargin>
yorickpeterse: exaclty, but I don't know how to achieve this. The thing is this: I'm running on a system without root access. The ruby packets are installed, but not the headers. So I extracted them locally. Can't I just set some env vars to get it running?
<hanmac1>
nargin: OS version and how did you install ruby?
<nargin>
it's RHEL 6 with ruby installed, but not ruby-devel
<hanmac1>
nargin: you are looking for rvm to install your ruby in user-space
fabrice31 has quit [Remote host closed the connection]
tvw has joined #ruby
fabrice31 has joined #ruby
mhib has quit [Ping timeout: 246 seconds]
mengu__ has quit [Remote host closed the connection]
<keernel>
(stupid question from a sleepy guy: How can i get a ActiveRecord_Associations_CollectionProxy of another ActiveRecord_Associations_CollectionProxy ?)
<keernel>
like User.posts.messages
<apeiros>
keernel: #rubyonrails
<yorickpeterse>
nargin: Ah yeah, that's not going to work very well
<keernel>
sorry #apeiros
<keernel>
and thank u
jeanlinux has joined #ruby
<yorickpeterse>
nargin: it's best to either have the headers installed via the package manager (thus needing root access), or by using chruby/ruby-install
<apeiros>
keernel: uh, you don't prefix nicks with # in irc…
Xeago has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
<yorickpeterse>
those tools let you install your own Rubies without needing root access
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hanmac1>
yorickpeterse: rvm does work too, but might be a bit overkill for him
quimrstorres has joined #ruby
jeanlinux has quit [Remote host closed the connection]
kislak has quit [Read error: Connection reset by peer]
<yorickpeterse>
RVM is crap
<yorickpeterse>
don't use that
eGGsha has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<yorickpeterse>
I say that with all the respect to mpapis, but RVM is just a waste of time
<apeiros>
o0
abuzze has quit [Remote host closed the connection]
<apeiros>
rvm works fine here and has so for >4y
<hanmac1>
hm ok, i thought that too, but it does work for me because i need different kind of builded ruby versions i might not achive with chruby
<apeiros>
(probably >5y even, not sure…)
<yorickpeterse>
Every person I've come across using RVM has had problems that really shouldn't arise. I've had it fuck up my servers on a consistent basis up to the point where I have to follow a procedure to make sure it doesn't result in downtime
<yorickpeterse>
and the amount of Rbx bugreports due to RVM mucking with things is too darn high
mistermocha has joined #ruby
<yorickpeterse>
it just does _way_ too much
keernel has left #ruby [#ruby]
<yorickpeterse>
"oh your libyaml is not fresh from the shelf? Better try to update that by compiling a version ourselves and oh fuck that failed"
<apeiros>
I'm a small sample size, but we use it on >20 machines with different OSes and never had any real problem
abuzze has joined #ruby
<apeiros>
the only problem I remember having was when it started to automatically do `bundle exec`
<nargin>
let me throw in another piece: I want to build a ruby plugin for vim. Vim itself of course is built against the system's version of ruby. If I do a parallel install and build the plugin against it, won't that completely mess up once it's loaded into vim?
<apeiros>
and that wasn't a technical problem
<yorickpeterse>
apeiros: I can install a new Ruby version and it will fuck up my shebangs and inject it's stupid bundler-unload/gem-wrappers/whatever Gems, even though I have all that disabled
<yorickpeterse>
and I have my shebangs set to --env-shebang in 129381902301 places
<yorickpeterse>
so basically the procedure is now: 1) install Ruby 2) uninstall those crap Gems 3) gem pristine --all --env-shebang 4) double-triple check
<yorickpeterse>
nargin: If you start Vim from the terminal it can pick up whatever Ruby is set in $PATH and such
<yorickpeterse>
but if you have control over the machine it's probably way easier to just install the dev headers via your package manager
<yorickpeterse>
If somebody manages it for you, ask them to do it
quimrstorres has joined #ruby
<yorickpeterse>
apeiros: either way, if you only ever work with MRI in RVM it's doable
<yorickpeterse>
but heavens forbid trying to do anything but taht
<yorickpeterse>
either way, hopefully RVM2 will be better
abuzze has quit [Remote host closed the connection]
<yorickpeterse>
if that ever gets released
abuzze has joined #ruby
willhumphreys_ has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
shredding has joined #ruby
<yorickpeterse>
also the amount of distros fucking up JRuby packages is just stupid
willhumphreys has quit [Ping timeout: 250 seconds]
willhumphreys_ is now known as willhumphreys
dumdedum has joined #ruby
<nargin>
yorickpeterse: ok thanks. I'll give it a try.
<hanmac1>
hm i checked out chruby and ruby-install, and both are not enough for me, i need ways to install my ruby against different compiler and settings
<yorickpeterse>
hanmac1: ruby-install can do all that
mistermocha has quit [Ping timeout: 256 seconds]
<yorickpeterse>
IIRC the syntax is "ruby-install VERSION -- configure-flags-here"
<yorickpeterse>
e.g. "ruby-install rbx -- --cc=clang --cxx=clang++
Xeago has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
sevenseacat has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
willhumphreys has quit [Ping timeout: 250 seconds]
willhumphreys_ has joined #ruby
willhumphreys_ is now known as willhumphreys
mhib_ has quit [Quit: Leaving]
workmad3 has joined #ruby
mikecmpbll has quit [Quit: ciao.]
zacstewart has joined #ruby
matcouto has joined #ruby
<hanmac1>
ruby-install does not work for me because: "Does not support installing trunk/HEAD."
<yorickpeterse>
ehm, you can just compile that by hand no?
jaimessi has quit [Quit: jaimessi]
<yorickpeterse>
also pretty sure last I checked I could install from trunk
<ralku>
rbx-2.5.7?
adamski2600 has joined #ruby
<yorickpeterse>
ralku: ?
bhuvan_aurora has quit [Remote host closed the connection]
bhuvanaurora has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
haraoka has quit [Ping timeout: 252 seconds]
dagda1 has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
adamski2600 has quit [Ping timeout: 255 seconds]
magical-imouto has quit [Ping timeout: 252 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
magical-imouto has joined #ruby
hotpancakes has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
ralku is now known as ralku[away]
User458764 has joined #ruby
christiandsg has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 264 seconds]
revath has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
oo_ has joined #ruby
sandelius has joined #ruby
revath has left #ruby [#ruby]
mclee has quit [Ping timeout: 250 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
ralku[away] is now known as ralku
mclee has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
craysiii has quit [Ping timeout: 248 seconds]
railsraider_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
railsraider has quit [Ping timeout: 256 seconds]
railsraider_ is now known as railsraider
User458764 has quit [Ping timeout: 240 seconds]
Scroff has quit [Ping timeout: 246 seconds]
Scroff has joined #ruby
User458764 has joined #ruby
davedev24_ has joined #ruby
iateadonut has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
railsraider_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
willhumphreys has quit [Ping timeout: 240 seconds]
futilegames has quit [Quit: futilegames]
duncannz has quit [Ping timeout: 256 seconds]
railsraider has quit [Ping timeout: 250 seconds]
railsraider_ is now known as railsraider
gix has quit [Ping timeout: 265 seconds]
Scroff has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Scroff has joined #ruby
Xeago has quit []
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Matadoer has quit [Ping timeout: 252 seconds]
iateadonut has joined #ruby
eshy has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 248 seconds]
eshy has joined #ruby
oo_ has quit [Remote host closed the connection]
Rickmasta has joined #ruby
olistik has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
oo_ has joined #ruby
lkba has joined #ruby
Zai00 has quit [Quit: Zai00]
mistermocha has joined #ruby
lkba has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
Pupeno has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
fabrice31 has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: No route to host]
zacstewart has joined #ruby
Muhannad has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
Zai00 has joined #ruby
Renich has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
Renich has joined #ruby
quimrstorres has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
jespada has joined #ruby
revath has joined #ruby
quimrstorres has joined #ruby
oo_ has joined #ruby
ralku is now known as ralku[away]
fgo has joined #ruby
chussenot has quit [Quit: chussenot]
Scroff has quit [Remote host closed the connection]
bodgix_wrk has joined #ruby
nfk has joined #ruby
mistermo_ has quit [Ping timeout: 248 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LanMan has joined #ruby
mistermocha has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
Scroff has joined #ruby
ralku[away] is now known as ralku
auzty has joined #ruby
chussenot has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
phutchins has joined #ruby
fabrice31 has quit [Remote host closed the connection]
lavros has joined #ruby
Naze_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
sdothum has joined #ruby
eGGsha is now known as eGGshke
lavros has quit [Client Quit]
phutchins has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
Naze_ is now known as naze_
haxrbyte has joined #ruby
oo_ has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 264 seconds]
eGGshke is now known as eGGsha
haxrbyte_ has quit [Ping timeout: 250 seconds]
olistik has joined #ruby
c355E3B has joined #ruby
oo_ has joined #ruby
auzty has quit [Quit: Leaving]
hotpancakes has joined #ruby
naze_ is now known as LanMan_
haxrbyte_ has joined #ruby
JMoir has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
ralku is now known as ralku[away]
Scroff has quit [Remote host closed the connection]
Jamal has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
shredding has quit [Ping timeout: 248 seconds]
haxrbyte has quit [Ping timeout: 256 seconds]
Renich has quit [Quit: leaving]
arup_r_ has joined #ruby
chussenot has quit [Quit: chussenot]
willhumphreys has joined #ruby
ralku[away] is now known as ralku
railsraider has quit [Ping timeout: 265 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 256 seconds]
krz has quit [Quit: WeeChat 1.0.1]
Jamal has quit [Ping timeout: 244 seconds]
solars has quit [Quit: WeeChat 0.4.2]
Scroff has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
jeanlinux has joined #ruby
Maxou56800 has joined #ruby
<Maxou56800>
I love python!
Maxou56800 has left #ruby [#ruby]
Gate has quit [Quit: Lost terminal]
ips|malc has joined #ruby
luluapple has quit [Ping timeout: 276 seconds]
wildroman2 has joined #ruby
LanMan has quit []
Squarepy has quit [Quit: Leaving]
fabrice31 has joined #ruby
railsraider has joined #ruby
solars has joined #ruby
<jhass>
uh, that's nice I guess
christiandsg has joined #ruby
jeanlinu_ has joined #ruby
jeanlinux has quit [Read error: No route to host]
<ralku>
Haha, I don't think you'll really be satisfied by any ragers within this irc :) Python is a nice language
luluapple has joined #ruby
Igorshp has quit [Remote host closed the connection]
<yorickpeterse>
2/10 worst troll
<ralku>
heh
<jhass>
they're not even in #python :(
chussenot has joined #ruby
<apeiros>
they also immediately left
<apeiros>
so… pointless is pointless?
solars has quit [Ping timeout: 256 seconds]
<ralku>
I still don't get why trolling would be funny in a dedicated development irc channel... as if anyone would really give a shit ^^ maybe try reddit haha
revath has quit [Read error: Connection reset by peer]
jeanlinu_ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
senayar has quit [Remote host closed the connection]
jeanlinux has joined #ruby
senayar has joined #ruby
Igorshp has joined #ruby
zenguy_pc has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
revath has joined #ruby
zenguy_pc has quit [Max SendQ exceeded]
<DefV>
I get irc trolling, but I don't get why he left
<chris2>
in the old days, we invaded python :>
railsraider has quit [Ping timeout: 244 seconds]
zenguy_pc has joined #ruby
ldnunes has joined #ruby
willhumphreys has quit [Ping timeout: 256 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<redlegion>
Euuweaaaah back in my day, trolling really meant something *shuffles dirt with his walker*
<arup_r>
I tried http.verify_mode = OpenSSL::SSL::VERIFY_NONE didn't worj
howardg has left #ruby [#ruby]
<apeiros>
I wouldn't work either. too hot.
<Burgestrand>
adaedra: I believe you'll either need to write your own middleware to catch and log errors, or use an existing one from a gem.
<adaedra>
Burgestrand: thanks for the confirmation, I was doing the former.
jeanlinu_ has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
jeanlinux has joined #ruby
Yzguy has quit [Client Quit]
<Burgestrand>
adaedra: the commonlogger is just for logging incoming requests, it doesn't catch and log errors.
<jhass>
arup_r: impossible to debug if you hide the URL
freerobby has quit [Quit: Leaving.]
Soda has quit [Remote host closed the connection]
<arup_r>
humm
<arup_r>
one thing is it is happening with onle one user.. others are not getting any error
<arup_r>
But may I pm you jhass: :) The url ?
<adaedra>
Burgestrand: yeah, I saw that. But it didn't work for that purpose either, seems Yell is not compatible with it.
<jhass>
meh, not in the mood for private tutoring
arturmartins has quit [Quit: Leaving...]
<ralku>
:(
zacstewart has quit [Remote host closed the connection]
<arup_r>
ok... Url is a bit private
<jhass>
then it should have authentication anyway
Scrofff has joined #ruby
jeanlinu_ has joined #ruby
<Burgestrand>
arup_r: I'm guessing you aren't using JRuby?
<apeiros>
arup_r: if you need help with private problems, then hire a consultant.
<arup_r>
using MRI
<apeiros>
alternatively find a way to make it a non-private problem.
Scroff has quit [Ping timeout: 256 seconds]
xcesariox has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Ping timeout: 255 seconds]
<arup_r>
apeiros: the url is a bit private that I said...
<apeiros>
arup_r: yes. which makes your problem a private problem.
<Burgestrand>
I had a fun run-in with JRuby on Mac throwing the same error for most SSL things, since Java by default ships with support only for weak encryption.
<yorickpeterse>
For SSL verification errors, either update your local certificate chain or tell the website to fix their SSL
mistermocha has quit [Read error: Connection reset by peer]
bjornar has quit [Ping timeout: 276 seconds]
<yorickpeterse>
Disabling SSL verification is a hack
jeanlinu_ has quit [Read error: Connection reset by peer]
jeanlinu_ has quit [Read error: Connection reset by peer]
<yorickpeterse>
gotta use capitals for extra pop
<bougyman>
that's us. unCLOUD
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
<ralku>
UnCLOUD.me
<jhass>
un.cloud
<yorickpeterse>
LAME, bearmetal.com is taken
<yorickpeterse>
and redirects to baremetal.com
<yorickpeterse>
meh
<apeiros>
we have a private beowulf cloud cluster
<apeiros>
because a single cloud isn't enough
<ralku>
I'd rather have a private beer cluster
<yorickpeterse>
I have a fleet of Bayesian wolf spider clusters
<yorickpeterse>
it lets us do super giga grid computing
<ralku>
beercloud cluster
<apeiros>
did we actually answer sogard's question? :D
willhumphreys has quit [Ping timeout: 252 seconds]
<jhass>
I think so
<yorickpeterse>
are these clouds side effect free?
<ddv>
nerds
<yorickpeterse>
Otherwise they're not functional clouds
<yorickpeterse>
I once herd of this guy running a Lisp cloud
<apeiros>
cloud monad
<yorickpeterse>
somehow everybody raved about how amazing it was, though nobody ever actually used it in production
<Papierkorb>
Is there actually a gem or so which starts a completely separate ruby environment inside ruby?
<jhass>
`ruby`
sogard has quit [Quit: Page closed]
<apeiros>
Papierkorb: there are sandbox projects
<apeiros>
Papierkorb: not sure any reached maturity, though. check ruby-toolbox
<Papierkorb>
Yeah, something like a sandbox. I don't need it currently, just thinking
<jhass>
maybe somebody did a mruby gem already?
<apeiros>
mmmmmmruby
<apeiros>
I wish I could blame the heat. but today it's actually bearably cool.
jeanlinux has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
jeanlinux has joined #ruby
sgambino has joined #ruby
<yorickpeterse>
I got soaked this mornin
<yorickpeterse>
* morning
<yorickpeterse>
my shoes/socks are still drying
<yorickpeterse>
of course it stopped raining when I got in my train
<apeiros>
damn clouds!
freerobby has joined #ruby
jonathanwallace has joined #ruby
<yorickpeterse>
I wonder if we as a species will ever get smart enough to stop abusing buzzwords
goodcodeguy has joined #ruby
senayar has quit [Remote host closed the connection]
<apeiros>
good for you, you still got hope.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stantonnet has joined #ruby
<yorickpeterse>
I'm young
jenrzzz has joined #ruby
senayar has joined #ruby
<Darkwater>
start by getting rid of consumers
<Darkwater>
or rather
<Darkwater>
about that mars program
<Darkwater>
just transfer smart people to mars
<yorickpeterse>
Heck no, that would be a waste of Mars
<Darkwater>
watch earth slowly die
<yorickpeterse>
errr wait
<yorickpeterse>
hm
<Darkwater>
then build a new civilization on mars
* yorickpeterse
read that as "transfer all the dumb people to mars"
<Darkwater>
heh
<yorickpeterse>
Mars isn't a very convenient place though
surs1 has joined #ruby
<Darkwater>
dw we can harvest the green/blue planet for water and other resources
<yorickpeterse>
I'd rather have Titan
oo_ has quit [Remote host closed the connection]
<Darkwater>
including fuel for the transfer
RegulationD has quit [Ping timeout: 255 seconds]
surs has quit [Ping timeout: 255 seconds]
hanynowsky has joined #ruby
<yorickpeterse>
maybe we can genetically engineer humanity so that every time one thinks of buzzwords they get zapped
<hanynowsky>
Hello guys
<yorickpeterse>
much like that alien probe in South Park
<yorickpeterse>
oh oh wait, I get to use it:
<yorickpeterse>
?guys
<ruboto>
we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<hanynowsky>
Anyone here using the snmp gem ?
willhumphreys has joined #ruby
phutchins1 has joined #ruby
<Darkwater>
idk, my understanding of "guys" includes girls
<Darkwater>
even see girls address groups of 100% girls as "guys" sometimes
<yorickpeterse>
Darkwater: correct, and I believe it's officially gender neutral in the English language
<jhass>
?anyone
<ruboto>
Just ask your question, if anyone has or can, they will respond.
<yorickpeterse>
however, it's one of those words that hinges on the border of "somebody just did that to shut people up"
jenrzzz has quit [Ping timeout: 246 seconds]
<yorickpeterse>
Granted it's the least of our problems, but it's nice to keep in mind some might not be happy with it
<yorickpeterse>
kinda like using "Ladies" against a bunch of dudes
<yorickpeterse>
most won't give a shit, some will (╯°□°)╯︵ ┻━┻
phutchins has quit [Ping timeout: 264 seconds]
<yorickpeterse>
kinda like
yorickpeterse has left #ruby ["The NSA took my baby"]
yorickpeterse has joined #ruby
<yorickpeterse>
m'ladies
* yorickpeterse
tips fedora
<Darkwater>
isn't that the purpose anyway
mhib has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<yorickpeterse>
eh?
tkuchiki has joined #ruby
<Darkwater>
of saying ladies
<jhass>
yorickpeterse: Darkwater: if that's going to be a more extensive discussion -> #ruby-offtopic ;)
<Darkwater>
to aggrivate/troll
<Darkwater>
heh sorry
victortyau has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
bruno- has joined #ruby
<yorickpeterse>
Darkwater: true, but whether it's actually perceived as such depends on the person
<jhass>
hanynowsky: so what's your issue?
devdazed has quit [Quit: Computer has gone to sleep.]
<hanynowsky>
jhass, I want to use the snmp gem to import some mibs. I could import only one. The Two remaining could not be imported
<apeiros>
Darkwater: that it is gender neutral in some areas does not mean it is everywhere.
ndrei has quit [Ping timeout: 256 seconds]
<apeiros>
d'oh, got to the OT message in the scrollback just yet
quimrstorres has quit [Remote host closed the connection]
<cout>
apeiros: I've been saying this for years
<yorickpeterse>
apeiros: omg so offtopic
<yorickpeterse>
please haul your ass to ruby-offtopic
<cout>
apeiros: people think of the South (US) as this backward place, but really we're quite advanced, at least in our grammar. we've had a gender-neutral second-person plural pronoun for ages!
<apeiros>
cout: join #ruby-offtopic! we need more people anyway :D
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<yorickpeterse>
FINE, since I'm only in #ruby and #shitfire I have room for a third terrible channel
bhorn1 has joined #ruby
chussenot has quit [Quit: chussenot]
<hanynowsky>
Sorry guys, did not know about the pastebin stuff
willhumphreys has quit [Ping timeout: 252 seconds]
nveselinov has joined #ruby
<sce_>
hello i'm using ruby on rails on a limited memory space server and i'm facing some memory bump. I have been browsing the web a lot and i dont find how can i track this memory leak. The GC is unable to fetch back the memory running manually
<sce_>
I'm using ruby 2.2.1 with rails 4.1.10
joelataylor has quit [Quit: Be back later ...]
rwilcox has joined #ruby
<yorickpeterse>
sce_: debugging memory leaks in Ruby is a massive pain
<yorickpeterse>
(sadly)
<sce_>
yorickpeterse, i see i see ...:)
<yorickpeterse>
sce_: there are some MRI specific tools, but they usually work by disabling the GC alltogether
<yorickpeterse>
which might lead to the app running out of memory and crashing
<ddv>
the java world has some great tools tho
<ddv>
you could run your app on jruby
<sce_>
i can reproduce the bug really easily using carrierwave and rack
Ox0dea has quit [Ping timeout: 255 seconds]
<yorickpeterse>
ddv: that might produce _very_ different patterns
<sce_>
yorickpeterse, what do you mean by MRI tools ?
<yorickpeterse>
But yes, it does have better tooling
<yorickpeterse>
sce_: as in, Gems that only work in MRI/CRuby (what most people use)
<yorickpeterse>
e.g. they might not work on JRuby, Rubinius, etc
<sce_>
i'm using CRuby
arturaz has joined #ruby
lavros has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Igorshp has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
<sce_>
yorickpeterse, could you advise me on gems i could use with ruby 2.2.1 ?
<Burgestrand>
What does thread of the caller mean?
<Burgestrand>
How is that different from "current thread"?
<apeiros>
Burgestrand, yorickpeterse: threading not allowed in eval-in.
<yorickpeterse>
konsolebox: well sorta, depends on how you look at the definition of "caller"
<konsolebox>
the caller not being the context of code, but the thread that runs it
<yorickpeterse>
apeiros: aaah
jeanlinux has quit [Remote host closed the connection]
<Burgestrand>
Makes sense. :)
n1x has joined #ruby
malcolmva has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
<Burgestrand>
konsolebox: what could it otherwise possibly return, if not the thread that is calling Thread.current?
<apeiros>
konsolebox: callers are objects. objects and threading are orthogonal concepts.
<apeiros>
so "thread of caller" makes no sense
<konsolebox>
Burgestrand: i'm just openly careful for other possibilities.. that is why i asked here
<apeiros>
an object can occur in any amount of threads
kies^ has joined #ruby
Macaveli has joined #ruby
<Burgestrand>
konsolebox: okay, I'm just curious of how you're thinking, maybe you're thinking in some other way than me which gives additional possibilities I haven't thought of. :)
<konsolebox>
the description "Returns the currently executing thread." is not explicit enough for me
mistermocha has joined #ruby
bungoman has joined #ruby
<Burgestrand>
konsolebox: how could it be more explicit?
quimrstorres has joined #ruby
<apeiros>
that description somewhat shows that ruby only ever truly executes a single thread…
futilegames_ has quit [Ping timeout: 255 seconds]
<Burgestrand>
Even if it didn't, what would Thread.current return?
<apeiros>
e.g. in jruby, multiple threads may be currently executing
<Burgestrand>
That isn't Thread.current I mean.
<konsolebox>
Burgestrand: because the "currently executing" thread may refer to another thread, in terms of context switches, etc. it's unlikely but i still want to make sure
<apeiros>
konsolebox: the thread in which the code runs which invokes Thread.current
<apeiros>
but IMO it's pretty self-explanatory
<Burgestrand>
konsolebox: but in order to call Thread.current, you must be in a thread that is currently executing?
<konsolebox>
Burgestrand: yes i thought about that
<Burgestrand>
I'm confused :)
livathinos has joined #ruby
christiandsg has joined #ruby
<konsolebox>
well nevermind. seeing what most people think about it, i guess it's enough :)
mistermocha has quit [Read error: Connection reset by peer]
nargin has quit [Quit: Leaving]
serivich has joined #ruby
devdazed has joined #ruby
<Burgestrand>
konsolebox: so it was just a "maybe it returns something else than I think it does but I have no idea what it could be"-questions?
scripore has joined #ruby
xcesariox has joined #ruby
<konsolebox>
Burgestrand: not the proper angle of perspective but you can think it that way
<Burgestrand>
konsolebox: okay!
Guest24 is now known as lele
<Burgestrand>
I was hoping you had some cool idea of what it could return if it wasn't the currently executing thread. :(
malconis has joined #ruby
mistermocha has joined #ruby
<konsolebox>
Burgestrand: i have but it's not practical to go there
Hounddog has quit [Remote host closed the connection]
<Burgestrand>
konsolebox: too bad, might've been interesting!
christiandsg has quit [Ping timeout: 265 seconds]
tmtwd has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
jeanlinux has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
[H]unt3r has joined #ruby
jespada has joined #ruby
ferr has joined #ruby
DoubleMalt has joined #ruby
jerius has joined #ruby
<sce_>
yorickpeterse, do you think there is non free tools which could help me figure out my memory issue ?
<konsolebox>
apeiros: btw, i'm not sure what you meant but i was referring to the "thread" of the caller as the thread-object e.g. #<Thread:0x401bdf4c run>
jeanlinux has quit [Ping timeout: 246 seconds]
hmnhf_ has joined #ruby
<konsolebox>
apeiros: and saying "callers are objects", i feel like i want to disagree
malconis has quit [Remote host closed the connection]
<hanynowsky>
if I use a simple: snmpget command, while specifying the mib folder, everything plays well.
<Darkwater>
;q
<Darkwater>
this is not vim
<jhass>
konsolebox: the point was that "caller" is a term which exists in the world of objects, stacks & methods, which threads are kind of orthogonal of
hmnhf has quit [Ping timeout: 252 seconds]
<Darkwater>
not used to two screens here
<apeiros>
konsolebox: so what's a caller?
<konsolebox>
jhass: yeah, but not only in the world of objects i bet
<konsolebox>
unfortunately we are in ruby so perhaps that was assumed here
JDiPierro has quit [Remote host closed the connection]
<jhass>
what?
<apeiros>
"unfortunately", not sure how to interpret that :-p
arup_r has quit [Remote host closed the connection]
<jhass>
konsolebox: well, you never answered. What would it return if the answer would be "no" (trying to forget that it still makes no sense)
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<Burgestrand>
How is Binding#receiver different from Binding#eval("self")?
<jhass>
it doesn't use eval
<Burgestrand>
But they'll always return the same object?
Zai00 has joined #ruby
<apeiros>
konsolebox: so what's a caller?
malconis has joined #ruby
<jhass>
Burgestrand: I'd assume so
<yorickpeterse>
sce_: not that I know of
<konsolebox>
Burgestrand: receiver is simply a new feature in 2.2
<Burgestrand>
jhass: yeah, me too, it's not that ruby isn't full of redundant methods, I was just curious to why it was added in 2.2.
mjuszczak has joined #ruby
arup_r has joined #ruby
<sce_>
yorickpeterse, where i'm surprised is that there is always tools to count object but never which give size informations ...
<konsolebox>
apeiros: i simply object that threads calling a request cannot be called a caller
<jhass>
Burgestrand: I could imagine it's a lot faster, since just pulling out a pointer
bmurt has joined #ruby
whippythellama has joined #ruby
sevenseacat has joined #ruby
<yorickpeterse>
sce_: until very recently size wasn't exposed at all, since 2.something you can get it using ObjectSpace but it's not guaranteed to actually be accurate
<konsolebox>
apeiros: callers can be subject to many meanings depending on the.. subject
<apeiros>
konsolebox: and you reject that on what grounds?
silkfox has joined #ruby
arup_r has quit [Remote host closed the connection]
hanynowsky has quit [Read error: Connection reset by peer]
hanine has joined #ruby
tkuchiki has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
livathinos has quit []
enebo has joined #ruby
nixmaniack has joined #ruby
<jhass>
konsolebox: how does some potential application domain relate to a discussion about language mechanics? Isn't that really really confusing?
mary5030 has quit [Remote host closed the connection]
lukebyrne has joined #ruby
mistermocha has joined #ruby
<apeiros>
binding.yourself - lol, nice name :D
<lukebyrne>
hey all, any recursive hash sorting guys around?
<apeiros>
I'd have liked binding.self, but I guess binding.receiver is fine too
<lukebyrne>
or gals
<jhass>
lukebyrne: "hash sorting"?
<lukebyrne>
I have this JSON string settings = '{"france":{"bordeaux":{"st emmilion":["gran crue"]},"burgundy":{"cote de nuits":{"chambolle musigny":["le musigny"]}}}}'
<Burgestrand>
Binding#you was also on the table a little while there.
<Ox0dea>
Darkwater: When does English "sort" not mean "to place in order"?
<Darkwater>
sort it out
<Darkwater>
sorting mail
<Ox0dea>
The meaning is retained in those expressions.
<Darkwater>
sorting mail often includes grouping
<Ox0dea>
Indeed, which is an ordering of sorts.
<sevenseacat>
sorting can mean grouping. think of sorting laundry.
<adaedra>
english is hard
<sevenseacat>
or card sorting.
<yorickpeterse>
grouping doesn't imply order though
<jhass>
lukebyrne: mmh, your attempt doesn't seem to aim at the format you describe above at all
surs1 has joined #ruby
<lukebyrne>
jhass, I know I really wak on recursive sorting so was just trying anything to get some sort of recursion to start with
<lukebyrne>
realised that I would fail most Google/Facebook coding interview questions
<Burgestrand>
You don't necessarily need to do this with recursion though!
tkuchiki has joined #ruby
<yorickpeterse>
lukebyrne: don't worry, even if you write something like Homebrew they still don't want you
<lukebyrne>
I thought it would be a rally good Code Kata to stick up on Code Wars
cmisenas has joined #ruby
<lukebyrne>
yorickpeterse: u wrote Homebrew?
surs has quit [Ping timeout: 246 seconds]
tcopeland has joined #ruby
sshuff has joined #ruby
livathinos|away is now known as livathinos
<yorickpeterse>
No
<yorickpeterse>
But the author of Homebrew interviewed with Google and was rejected because they couldn't invert a binary tree
<yorickpeterse>
(they as in the author)
<lukebyrne>
Really, I dont even know what a binary tree is, so I guess I would be out as well
<lukebyrne>
I am guessing though its a tree of ones and zeros?
<sevenseacat>
you've got a long way to go, young padawan.
<Darkwater>
it's a tree where leafs can have 0-2 children (?)
<yorickpeterse>
lukebyrne: there are far better companies than Google to work at
<yorickpeterse>
so don't fret it
<Darkwater>
afaik
<Burgestrand>
It's not a leaf if it has children ;)
anaeem1_ has joined #ruby
<Darkwater>
node then
tkuchiki has quit [Remote host closed the connection]
<Burgestrand>
\o/
msnyon has joined #ruby
JMoir has quit [Ping timeout: 250 seconds]
aswen has quit [Ping timeout: 252 seconds]
<Darkwater>
I never really work with trees
<Burgestrand>
Darkwater: sorry!
<Darkwater>
no it's okay, I'm cool with being corrected
<Darkwater>
makes me learn
msgodf has joined #ruby
<Darkwater>
or in this case realise, really
solars has quit [Ping timeout: 256 seconds]
<Burgestrand>
I guess if there's any place to correct fellow peons it's in here.
ivanskie has joined #ruby
<Darkwater>
what are binary trees used for, anyway?
<yorickpeterse>
Never had the need for inverting binary trees for my work so far
<Burgestrand>
Darkwater: really useful for looking things up fast.
<Darkwater>
like what?
<Darkwater>
as in, what kind of data?
<Darkwater>
can you give an example?
howdoicomputer has joined #ruby
<Burgestrand>
Darkwater: imagine you have 20 unique numbers between 1 and 100 in a list.
<Burgestrand>
Darkwater: worst case to see if a number is in this list is you have to look at each one.
<Darkwater>
ooh, sort them in order
<Darkwater>
I get it
Aswebb_ has joined #ruby
<Darkwater>
thanks
<Burgestrand>
Darkwater: yeah, assuming the root node is 50, you know that all numbers below 50 are to the left, and all numbers above it are to the right.
<jhass>
lukebyrne: not too pretty, but I think it does what you want. Whether it actually makes sense to do that transformation ..., anyway http://paste.mrzyx.de/pya2xbsro
but3k4 has joined #ruby
t0rrieri_ has quit [Quit: Be back later ...]
<jhass>
also fix the typos ^.^
certainty has quit [Ping timeout: 244 seconds]
<lukebyrne>
sweet, it works at least, I am trying to study its magnificence
<sevenseacat>
wait, are you doing interview questions for him? >_>
fabrice31_ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<Burgestrand>
#ruby is where you go to get your homework done for you if you're good enough at social engineering.
<yorickpeterse>
except when you crosspost without telling
<yorickpeterse>
then you get kicked
howdoicomputer has quit [Ping timeout: 256 seconds]
<sevenseacat>
we've inadvertently done people's homework and helped them pass interviews before. lord knows how they expect to be able to do the job if they need help with the interview.
<lukebyrne>
yeh thats not cool at all
<Burgestrand>
Aw, I don't care, it's their loss not mine.
<lukebyrne>
no I am building a pricing comparison platform
anaeem1_ has quit [Remote host closed the connection]
<yorickpeterse>
and that's exactly why puzzles during interviews are useless
<Burgestrand>
I won't do it willingly, but I don't really mind if I'm tricked into it.
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
j416: Native Japanese or Wee?
<j416>
lol wee
<j416>
neither.
<Burgestrand>
What's a wee?
<yorickpeterse>
weeaboo
IanV0rn2341 has joined #ruby
<Burgestrand>
TIL.
fgo has joined #ruby
<Burgestrand>
Urban dictionary to the rescue.
<j416>
Ox0dea: I language-switch a lot so I fail at the lols
<j416>
sorry.
<Ox0dea>
No worries. That was actually really funny.
<Burgestrand>
j416: w
<j416>
:)
werelivinginthef has joined #ruby
fabrice31 has quit [Ping timeout: 248 seconds]
Jamal has joined #ruby
ta has quit [Remote host closed the connection]
Jamal has quit [Client Quit]
JMoir has joined #ruby
<konsolebox>
jhass: so childs is nil if regions is not a Hash? pretty neat trick
arturaz has quit [Ping timeout: 255 seconds]
anaeem1 has joined #ruby
tcopeland has quit [Quit: Leaving.]
<jhass>
mmh, not sure yet if I actually like it, just happened that way :D
bungoman has quit [Remote host closed the connection]
thiagovsk has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
bungoman has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<olistik>
are there performance penalties for code run in an irb session respect the "classic" way (ruby source.rb)?
<Burgestrand>
Hah, that is indeed a bit too clever. :d
<Burgestrand>
olistik: aside from booting up IRB you mean?
<olistik>
Burgestrand: exactly
<j416>
Ox0dea: how about you?
<apeiros>
olistik: all code is evaled
<j416>
Ox0dea: wee? :D
fgo has quit [Ping timeout: 252 seconds]
<apeiros>
olistik: so yes, there is a penalty
cmisenas has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Remote host closed the connection]
<olistik>
apeiros: ok
<Burgestrand>
apeiros: are you specifically talking about inputting it into IRB?
cmisenas has joined #ruby
<apeiros>
Burgestrand: no
<olistik>
it would be nice to boot an initial irb instance and let other irb instances attach to the master one
<apeiros>
olistik: but why do you ask? chances that the kinds of penalty matter at all are tiny…
<olistik>
I've always thought the image concept of smalltalk is good
<olistik>
and I miss this in Ruby
<apeiros>
olistik: what for? also you can use binding.pry and/or load a file in irb
<Ox0dea>
j416: Oui. ^_^
xcesariox has joined #ruby
<apeiros>
olistik: ah, ok. so like save the current state and resume any time?
<Ox0dea>
Not in the generally understood sense, though.
<j416>
Ox0dea: haha
<olistik>
state saving is an independent feature
<j416>
humble.
<Burgestrand>
apeiros: irb somefile.rb?
symm- has joined #ruby
<j416>
I like it
surs2 has joined #ruby
<apeiros>
Burgestrand: not sure I ever tried that. I used -r
pengin has joined #ruby
gambl0re has joined #ruby
<Burgestrand>
apeiros: so irb -rsomefile is slower than ruby -rsomefile?
<apeiros>
no
<olistik>
apeiros: I'd appreciate the fact that I can make different process input code that interacts with the same object space
<Burgestrand>
apeiros: good, then I'm less confused!
solars has joined #ruby
<apeiros>
Burgestrand: just whatever penalties eval incurs when you actually run code through the repl
tkuchiki has joined #ruby
surs1 has quit [Ping timeout: 276 seconds]
<apeiros>
I don't think there's any reasonable scenario where those matter when using irb, though
sanguisdex has joined #ruby
mando has joined #ruby
dopie has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<olistik>
so it's theoretically possible, aside state saving/restore, to keep a master irb process and then make other processes attach and send their code to be eval'd by the master process
senayar has quit [Remote host closed the connection]
<apeiros>
olistik: sure
tcopeland has joined #ruby
<apeiros>
you can replace irb's IO f.ex.
<olistik>
this way you could launch a server and inspect the object space at run-time
<apeiros>
or you can use drb
aleshgo has joined #ruby
ips|malc has joined #ruby
senayar has joined #ruby
<Burgestrand>
apeiros: aye, I thought that you somehow meant that the code is run slower while inside IRB, not from the overhead of parsing each command but from actually being inside IRB.
<apeiros>
Burgestrand: ah, no
<apeiros>
I suspect that things like lvars and call-site cache also work slightly different. but I don't know enough of rubys internals to know for sure.
<olistik>
apeiros: Burgestrand: that's a relief :-)
allomov has quit [Remote host closed the connection]
<Burgestrand>
apeiros: yeah, I guess that's possible, at least we don't have a JIT to worry about as well.
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Burgestrand>
Hm, won't eval in general bust the method cache?
lkba has joined #ruby
lkba has quit [Client Quit]
tesuji has quit [Read error: Connection reset by peer]
<chrisseaton>
Burgestrand: I don't think eval will invalidate method caches - unless you eval a statement that defines a new class or method of course
umgrosscol has joined #ruby
lxsameer has quit [Quit: Leaving]
<Burgestrand>
chrisseaton: I guess that'd be sane, then again the previous behavior of having one global cache was a bit insane.
scripore has quit [Quit: This computer has gone to sleep]
<Burgestrand>
Luckly, most of the time ruby runtime performance isn't of my concern.
<yorickpeterse>
Burgestrand: IIRC eval doesn't flush any global constant/method caches
<yorickpeterse>
unless like chrisseaton said it contains a class/method/etc
senayar has quit [Remote host closed the connection]
wildroman2 has quit []
genpaku has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
anaeem1_ has joined #ruby
genpaku has joined #ruby
<chrisseaton>
there are things even MRI could do to make eval faster - like cache the bytecode for strings used in eval, so parsing and bytecode compiling doesn't have to be done from scratch each time
jespada has quit [Ping timeout: 256 seconds]
jgpawletko has joined #ruby
Alayde has quit [Read error: Connection reset by peer]
<chrisseaton>
we're working on inlining of eval in JRuby+Truffle, so the eval'd code gets inlined into the calling method as if it was written literally in the source code, rather than as a string, which works as long as the eval string is stable
Alayde has joined #ruby
jobewan has joined #ruby
<apeiros>
chrisseaton: prepared eval statements!
<apeiros>
with bind variables!
<Burgestrand>
Haha.
<chrisseaton>
we do the same thing with printf and pack already - cache the string, generate code for it, inline the code
<apeiros>
while I jest, that actually might make sense in some areas
<apeiros>
chrisseaton: we? rbx?
<chrisseaton>
JRuby+Truffle
<apeiros>
ah
jshultz has joined #ruby
<apeiros>
interesting
<chrisseaton>
I'm writing a blog post on it right now which is why I mention
ValicekB has quit [Ping timeout: 265 seconds]
<apeiros>
and when/how do you prune?
<yorickpeterse>
rbx already has a bunch of eval optimizations in place
<Burgestrand>
chrisseaton: where will it be published? I'm curious to see the use for this.
casadei_ has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
<chrisseaton>
follow my @chrisgseaton on Twitter and you'll see it, or chrisseaton.com
ada2358 has quit [Ping timeout: 252 seconds]
tjohnson has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jespada has joined #ruby
axl__ has joined #ruby
rezzack has quit [Ping timeout: 246 seconds]
lee-jon has joined #ruby
ada2358 has joined #ruby
<chrisseaton>
Use cases where it makes a difference as things like packing pixels into binary data in chunky png and psd.rb, and, since yorickpeterse is here, converting data to unicode bytes in oga
mary5030 has joined #ruby
yardenbar has quit [Quit: Leaving]
<yorickpeterse>
Hm interesting, I could've sworn we had a cache of sorts for eval()
ixti has joined #ruby
<yorickpeterse>
but I can't find it in our Kernel.eval, might be somewhere else
RegulationD has joined #ruby
lee-jon has quit [Client Quit]
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
but3k4 has quit [Ping timeout: 256 seconds]
rezzack has joined #ruby
<yorickpeterse>
Aaah
certainty has joined #ruby
<yorickpeterse>
it's hidden in the compiler
j_mcnally has joined #ruby
zdman135 has joined #ruby
tcopeland has quit [Quit: Leaving.]
riotjones has quit [Remote host closed the connection]
lee-jon has joined #ruby
j_mcnally has quit [Client Quit]
<chrisseaton>
yorickpeterse: can you inline through it? we don't yet but I'll add it soon
hanmac1 has left #ruby [#ruby]
<yorickpeterse>
Not sure, right now we generate the bytecode during runtime only
jas02 has quit [Quit: jas02]
<chrisseaton>
eg I'd like to be able to fold eval('1 + 2') + 3 to be the constant 6
Outlastsheep is now known as zz_Outlastsheep
<yorickpeterse>
Ah no, we don't inline it atm
wildfield has quit [Quit: Leaving]
<yorickpeterse>
Not sure how terribly useful that would be though
j_mcnally has joined #ruby
<chrisseaton>
yeah I don't think it's the most critical thing in the world, but we're trying to optimise every metaprogramming operation where possible
NeverDie has joined #ruby
lee-jon has left #ruby [#ruby]
<chrisseaton>
as a kind of policy - no slow paths unless we can't conceive of a way around
<apeiros>
chrisseaton: do you add hooks for method redefinitions then?
<apeiros>
i.e. Fixnum#+ being redefined -> bust that constant 6?
<yorickpeterse>
I'd probably invest more time in Object.define_method opposed to inlining eval()
bruno- has joined #ruby
<yorickpeterse>
at least last I checked JRuby 1.7 suffered quite a bit when defining methods using define_method (compared to eval() at least)
<chrisseaton>
apeiros: yes method redefinition uses dynamic deoptimisation - redefining an inline method will cause the VM to stop, and invalidated code will be replaced with an interpreter that will check all the methods explicitly
codecop has joined #ruby
ValicekB has joined #ruby
shazaum_ has joined #ruby
<apeiros>
chrisseaton: impressive
<chrisseaton>
sophisticated dynamic deopt is the one-optimisation-to-rule-them-all for Ruby
<lukebyrne>
jhass: thanks so sooo much for helping me out there, make my solution so much more elegant now
pyro_ has quit [Remote host closed the connection]
ReK2 has quit [Ping timeout: 264 seconds]
<lukebyrne>
jhass: do u mind if I submit that solution to CodeWars.com, I think its a nice challenge.
bruno- has quit [Ping timeout: 252 seconds]
fella5s has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<jhass>
uh, whatever I essentially consider stuff I post to IRC public domain. As said I don't consider that particular beautiful code myself though
sepp2k has joined #ruby
<lukebyrne>
will see what the CodeWars guys come back with and will update the gist
werelivinginthef has quit [Ping timeout: 276 seconds]
<Ox0dea>
Sated curiosity is its own reward, in my opinion.
mjuszczak has quit []
sevenseacat has quit [Quit: Me dun like you no more.]
gamename has joined #ruby
<j416>
I was looking for a use case but curiosity I guess could be reason enough. :)
poguez_ has joined #ruby
<Ox0dea>
I was specifically answering the "meta" question there. I do actually have a use case for being able to properly encapsulate missing constant resolution.
bungoman has quit [Remote host closed the connection]
<konsolebox>
Ox0dea: i think i tried playing with refine also once,.. and it didn't work on something.. probably on singleton classes
<konsolebox>
Ox0dea: i think it's not a real method.. afaicr
<Ox0dea>
It's a real method.
fgo has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
<Ox0dea>
You can redefine it, but I can't imagine why you'd want to.
kobain has joined #ruby
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
joelataylor has joined #ruby
<jhass>
can I write a refinement that redefines it :D
mistermocha has quit [Ping timeout: 252 seconds]
atomical_ has joined #ruby
IrishGringo has quit [Remote host closed the connection]
<Ox0dea>
jhass: I suspect you could.
<Ox0dea>
Any idea what's going on there?
hmnhf__ has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
nope, probably just found an edge case
n1x has quit [Ping timeout: 246 seconds]
<jhass>
as you said it's sort of in beta still
<Ox0dea>
The bug's got to be in constant resolution, though, because refining Object.singleton_class with new #const_get and #const_set methods works fine.
rcvalle has joined #ruby
joelataylor has quit [Ping timeout: 248 seconds]
atomical has quit [Ping timeout: 248 seconds]
surs2 has joined #ruby
livathinos has quit []
yardenbar has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
yardenbar has quit [Remote host closed the connection]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
nveselinov has quit [Quit: Connection closed for inactivity]
senayar_ has quit [Remote host closed the connection]
t0rrieri_ has joined #ruby
fmcgeough has joined #ruby
JDiPierro has quit [Remote host closed the connection]
senayar has joined #ruby
joelataylor has joined #ruby
riotjones has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
sarkyniin has joined #ruby
a346 has joined #ruby
KrzaQ has quit [Read error: Connection reset by peer]
Aswebb_ has quit [Read error: Connection reset by peer]
segfalt has joined #ruby
ixti has quit [Ping timeout: 256 seconds]
gregf_ has quit [Ping timeout: 252 seconds]
<apeiros>
konsolebox: .private_instance_methods
jackjackdripper has joined #ruby
<konsolebox>
apeiros: oh i see
<apeiros>
.instance_methods only lists public and protected
<konsolebox>
probably didn't check that as well before
gregf_ has joined #ruby
jackjackdripper has quit [Client Quit]
Cache_Money has joined #ruby
jpfuentes2 has joined #ruby
Aswebb_ has joined #ruby
ixti has joined #ruby
JMoir has quit [Ping timeout: 256 seconds]
Roguehorse has joined #ruby
Sehryn has quit [Ping timeout: 256 seconds]
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
lessless has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
bruno- has joined #ruby
hakunin has joined #ruby
anaeem1 has joined #ruby
Roguehorse has left #ruby ["Konversation terminated!"]
dumdedum has quit [Ping timeout: 244 seconds]
snockerton has joined #ruby
amclain has joined #ruby
lavros has quit [Quit: leaving]
choke has joined #ruby
momomomomo has joined #ruby
bungoman has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 256 seconds]
Igorshp has quit [Remote host closed the connection]
bungoman has joined #ruby
eggoez has quit [Ping timeout: 248 seconds]
surs3 has joined #ruby
mdarby has joined #ruby
hakunin has quit [Remote host closed the connection]
surs2 has quit [Ping timeout: 252 seconds]
Igorshp has joined #ruby
eggoez has joined #ruby
shazaum_ has quit [Quit: Leaving]
JDiPierro has joined #ruby
victortyau has quit [Ping timeout: 252 seconds]
mike___1234 has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
evanjs_ has joined #ruby
msnyon_ has joined #ruby
doertedev has quit [Ping timeout: 256 seconds]
peter_paule has joined #ruby
DroidBurgundy has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
djbkd_ has joined #ruby
towski_ has joined #ruby
msnyon has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
dented42_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__butch__ has joined #ruby
shinnya has joined #ruby
aryaching has joined #ruby
acke has joined #ruby
<Senjai>
Good morning ruby
acke has quit [Remote host closed the connection]
acke has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
acke has quit [Remote host closed the connection]
<Ox0dea>
It's happening: http://
Nastascha_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoicomputer has joined #ruby
SCHAAP137 has joined #ruby
valetudo has quit [Quit: Leaving]
<Darkwater>
wait hold on
<adaedra>
WHAT IS THIS
momomomomo has joined #ruby
<Darkwater>
someone here mentioned the developer of homebrew not being hired by google or something because he coudln't reverse a binary tre
acke has joined #ruby
<Darkwater>
reverse as in left to right ortop to bottom?
Nastascha_ has left #ruby [#ruby]
<Darkwater>
can a binary tree even have nodes with two parents?
kerrizor has joined #ruby
<Ox0dea>
Darkwater: "Invert" is admittedly ambiguous, but it does mean horizontally.
acke has quit [Remote host closed the connection]
Spami has joined #ruby
<Darkwater>
so the homebrew guy couldn't horizontally flip a btre?
prettiestPony11 has joined #ruby
ankur has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
<Ox0dea>
Perhaps the stress of the interview clouded that already foggy corner of his memory.
gambl0re has quit [Ping timeout: 250 seconds]
linoespinoza has joined #ruby
<Darkwater>
yorickpeterse: ^
<ankur>
m from non -cs background and have some knowledge of coding and ruby
<ankur>
can i participate in gsoc
surs4 has joined #ruby
symbol has joined #ruby
User458764 has joined #ruby
gambl0re has joined #ruby
surs3 has quit [Ping timeout: 265 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ankur>
?
JMoir has joined #ruby
linoespinoza has quit [Client Quit]
CorySimmons has joined #ruby
rbennacer has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 248 seconds]
momomomomo_ is now known as momomomomo
<Senjai>
ankur: Make a proposal, see if it gets accepted
s2013 has quit [Ping timeout: 265 seconds]
<havenwood>
ankur: Students coding this summer were already selected back in March.
<havenwood>
ankur: Next Spring there will be applications again.
pdoherty has joined #ruby
Ilyas has joined #ruby
bruno- has joined #ruby
mistermocha has joined #ruby
higuys has joined #ruby
<havenwood>
ankur: Ruby was selected this year and if it's selected again next year you could propose a project.
senayar has quit []
k3asd` has joined #ruby
<Senjai>
havenwood: A -language- has to be selected?
k3asd`_ has joined #ruby
<Senjai>
Or are you talking about ruby as in ruby
gambl0re has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
<havenwood>
Senjai: Mentoring organizations are selected first, then student applications.
<Senjai>
havenwood: What can be a mentoring organization?
<Senjai>
I have a ton of open source work that can be done by people that I'm still trying to carve out time for :P
<jhass>
afaik anything that can provide mentors and projects
<jhass>
but they cut back this year and I wouldn't expect it get broader again next year
<jhass>
heck, not even Mozilla got any projects this year
<havenwood>
but Ruby did :)
<Senjai>
solidusio/solidus -should- be big enough :P
<havenwood>
Senjai: It has to be an open source project, but that's about it.
mistermo_ has joined #ruby
<Senjai>
It is :P
towski_ has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 264 seconds]
acke has joined #ruby
Rickmasta has joined #ruby
tkuchiki has quit [Remote host closed the connection]
higuys has quit [Remote host closed the connection]
Channel6 has joined #ruby
msgodf has quit [Ping timeout: 276 seconds]
fantazo has joined #ruby
gambl0re has joined #ruby
phutchins1 has quit [Ping timeout: 256 seconds]
jtdoncas has quit [Ping timeout: 246 seconds]
willhumphreys has quit [Ping timeout: 248 seconds]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
s2013 has joined #ruby
yizr has joined #ruby
atomical has joined #ruby
User458764 has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
icebourg has joined #ruby
RobertBirnie has joined #ruby
icebourg has quit [Max SendQ exceeded]
spider-mario has joined #ruby
mleung has joined #ruby
bronson has joined #ruby
icebourg has joined #ruby
phutchins2 has joined #ruby
icebourg has quit [Max SendQ exceeded]
jonathanwallace has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
neanderslob has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
neanderslob has joined #ruby
ips|malc has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
paulcsmith has joined #ruby
yeticry has joined #ruby
pdoherty has quit [Quit: Leaving]
surs has joined #ruby
dfockler has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
chipotles has joined #ruby
surs4 has quit [Ping timeout: 246 seconds]
Soda has quit [Remote host closed the connection]
polpak has quit [Quit: leaving]
jenrzzz has joined #ruby
chipotles has quit [Client Quit]
polpak has joined #ruby
claw has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
scottstamp has quit [Ping timeout: 265 seconds]
claw has joined #ruby
hinbody has joined #ruby
adamski2600 has joined #ruby
yizr has quit [Ping timeout: 248 seconds]
KC9YDN has quit [Ping timeout: 248 seconds]
doertedev has joined #ruby
pr0ton has quit [Quit: pr0ton]
shadoi has joined #ruby
yizr has joined #ruby
Zai00 has quit [Quit: Zai00]
pengin has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
djbkd_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
acke has quit [Ping timeout: 255 seconds]
choke has joined #ruby
djbkd has quit [Remote host closed the connection]
<Senjai>
Is there any way to document duck typing for yard
adamski2600 has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
<Senjai>
E.g. @param thing [anythingthatrespondsto#my_function]
Jackneill has joined #ruby
<Senjai>
Nvm, I figured it out
rbennacer has joined #ruby
<Senjai>
fyi @param thing [#justafunction] for anyone curious
mistermocha has quit [Ping timeout: 256 seconds]
dented42 has joined #ruby
<dfockler>
Senjai: thanks, I looked this up after you asked the question
sshuff is now known as sshuff|lunch
jtdoncas has joined #ruby
Limix has joined #ruby
scottstamp has joined #ruby
rehat has joined #ruby
KC9YDN has joined #ruby
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
CorySimmons has quit [Quit: Bye!]
JDiPierro has quit []
rbennace_ has joined #ruby
psy_ has joined #ruby
<rehat>
if I have a ruby script that requires a few gems how would someone else run my script if they don't have the gems installed?
Luun has joined #ruby
christiandsg has joined #ruby
baweaver has quit [Remote host closed the connection]
<polpak>
they wouldn't
<Antiarc>
rehat: Generally you will provide a Gemfile that specifies your dependencies, so they can install them with bundler
<polpak>
rehat: bundler is your friend
<rehat>
ahh ok I will look into that thanks
lkba has joined #ruby
ledestin has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rehat>
so the user would need to run bundle install before running the ruby script? Or is there a way for my script to auto call it if required gems are missing
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoicomputer has joined #ruby
<Antiarc>
They would need to run `bundle install`
rdark has quit [Quit: leaving]
<dfockler>
rehat: Ruby is interpreted, so the person using your script needs access to all the code you are using to build it
pengin has joined #ruby
reset has joined #ruby
cFouts has quit [Remote host closed the connection]
<apeiros>
uuuuuh
christiandsg has quit [Ping timeout: 265 seconds]
<apeiros>
rehat: what you do is you package it up as a gem and specify all dependencies in the .gemspec. NOT in the Gemfile.
<apeiros>
rubygems already will install all dependencies.
<apeiros>
bundler is for different purposes.
nug has joined #ruby
<apeiros>
Antiarc: ^
<apeiros>
and polpak
<Antiarc>
That makes sense if you want to distribute it as a gem, sure
<Antiarc>
If you want to distribute it standalone though, gemspecs won't do you much good
nug has quit [Client Quit]
<apeiros>
if you want to distribute it as a standalone, all you do is reinvent what rubygems does.
<apeiros>
and that is just plain stupid.
<apeiros>
and I wouldn't say using a Gemfile qualifies as standalone
<havenwood>
rehat: If you're making a gem the gemspec file will specify the deps and they'll be automatically installed when someone installs your gem. If you're making an app the Gemfile or gem.dep.rb file will specify the deps and they'll be installed when you `bundle install` or `gem install -g`.
<apeiros>
and just to note: you can distribute a rubygem without publishing it. `gem install ./some/local.gem` works just fine
white_bear has quit [Quit: leaving]
midi_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
nug has joined #ruby
<rehat>
sweet thanks I got it now
nug has quit [Client Quit]
yizr has quit [Ping timeout: 248 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yizr has joined #ruby
nathanstitt has joined #ruby
cmisenas has quit [Read error: Connection reset by peer]
JMoir has quit [Quit: Bye]
JMoir has joined #ruby
cmisenas has joined #ruby
JMoir has quit [Client Quit]
dopie has quit [Quit: This computer has gone to sleep]
JMoir has joined #ruby
nug has joined #ruby
darkf has quit [Quit: Leaving]
x1337807x has joined #ruby
msnyon_ is now known as msnyon
pietr0 has joined #ruby
sigurding has quit [Quit: sigurding]
nateberkopec has joined #ruby
bodgix_wrk has quit [Quit: Leaving...]
Agoldfish has joined #ruby
EllisTAA has joined #ruby
lkba_ has joined #ruby
JMoir has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: Leaving]
joelataylor has quit [Quit: Be back later ...]
jackjackdripper has joined #ruby
bodgix_wrk has joined #ruby
midi_ has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
<apeiros>
?docs Senjai
<ruboto>
Senjai, you can use http://ruby-doc.org or the command line too "ri" which should be installed along with your ruby to access documentation. Ri example: "ri Array#length"
<apeiros>
whoops
<apeiros>
?docs MagePsycho
<ruboto>
MagePsycho, you can use http://ruby-doc.org or the command line too "ri" which should be installed along with your ruby to access documentation. Ri example: "ri Array#length"
kartouch has joined #ruby
<miah>
wviana: have you tried #rbenv ?
kadoppe has quit [Ping timeout: 248 seconds]
atomical has joined #ruby
pr0ton has quit [Ping timeout: 264 seconds]
<wviana>
miah: oh, ok thanks ;)
<nathanstitt>
apeiros: Sorry I missed your second line there and thought you were saying it didn't exist. You're correct it is a bit slower
atomical has quit [Client Quit]
<MagePsycho>
if home_page.search('.image’).length
<havenwood>
miah: There's a #chruby or #rvm but I think you're supposed to tweet @DHH for rbenv, since no #rbenv.
<apeiros>
MagePsycho: 0 is true-ish in ruby
kadoppe has joined #ruby
<miah>
havenwood: really?
<apeiros>
>> if 0 then "TRUE!" else "false :(" end
<havenwood>
MagePsycho: I'd suggest reading those two ^ and going through the tryruby.org guided REPL. Then install Pry and use your REPL to try things as you go through a book.
vale_tudo has quit [Ping timeout: 244 seconds]
jmhmccr has joined #ruby
<havenwood>
?pry MagePsycho
<ruboto>
MagePsycho, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
fantazo has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
joonty has joined #ruby
<havenwood>
MagePsycho: Does that make any sense? I'm assuming you're familiar with REPLs since you mentioned Python.
momomomomo has joined #ruby
sphex has quit [Ping timeout: 255 seconds]
eggoez has quit [Ping timeout: 256 seconds]
momomomomo has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
adamski2600 has quit []
kartouch has quit [Ping timeout: 246 seconds]
reset has quit [Quit: Leaving...]
<MagePsycho>
Then install Pry and use your REPL to try things as you go through a book. - Didn’t get this
<shevy>
and he knows the web because he knows php!
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
krz has joined #ruby
<havenwood>
[diecast]: You might be able to get a bit of info from this even without submitting a ticket to Fastly: http://www.fastly-debug.com/
mistermocha has joined #ruby
simplyianm has quit [Remote host closed the connection]
mleung has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<[diecast]>
havenwood: interesting, they have a freenode room
bruno- has quit [Ping timeout: 264 seconds]
jwaldrip has joined #ruby
peter_paule has joined #ruby
<havenwood>
[diecast]: there's a #rubygems as well but I'm guessing it's between you and Fastly?
<rfish>
how do I get query parameters from a view object in ruby?
<havenwood>
rfish: What's a view object?
<[diecast]>
havenwood: 15:45:39 <•kelden> [diecast]: yeah, I was working with dwradcliffe and the change I made didn't work out as well as I thought :(
<havenwood>
rfish: Rails?
<rfish>
not rails
<[diecast]>
that's some pretty fast turn around. looks like they already solved it
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<rfish>
I'm tring to get brandingUrl from a query parameter
bronson has joined #ruby
pr0ton has joined #ruby
baweaver has joined #ruby
<rfish>
and some how pass it to :thank_you haml
<havenwood>
rfish: Where did the #view method come from?
<rfish>
I really don't know what I'm doing in Ruby at all
Zai00 has quit [Ping timeout: 246 seconds]
<havenwood>
rfish: This is Sinatra, yeah?
[diecast] has left #ruby [#ruby]
<rfish>
ya, it is Sinatra
Rickmasta has joined #ruby
luriv has joined #ruby
bluOxigen has joined #ruby
<havenwood>
rfish: And the view method?
drewo has joined #ruby
Limix has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
peter_paule has quit [Ping timeout: 255 seconds]
Papierkorb has joined #ruby
<havenwood>
rfish: You could put a `require 'pry'` a tthe top and a `binding.pry` where you can: ls view(:no_session) ...
<havenwood>
?pry rfish
<ruboto>
rfish, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
allomov has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
<havenwood>
rfish: But also figure out where that method is coming from so you can read the source.
<havenwood>
rfish: I guess Pry could help you do that. ;)
but3k4 has joined #ruby
<rfish>
how can I get the parameter from the URL
<rfish>
inside the controller?
mistermocha has quit [Ping timeout: 256 seconds]
meph has quit [Quit: Leaving.]
<toretore>
controller.get_parameter_from_url()
peter_paule has joined #ruby
simplyianm has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
Xoro has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
mando has quit [Ping timeout: 256 seconds]
Xoro has joined #ruby
reset has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
fullofcaffeine has joined #ruby
bnagy has quit [Ping timeout: 244 seconds]
multi_io has quit [Ping timeout: 250 seconds]
blueOxigen has joined #ruby
xcesariox has quit [Ping timeout: 256 seconds]
pr0ton has quit [Ping timeout: 248 seconds]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie>
edektor: Not if you don't tell us what's going wrong
<havenwood>
def x
<havenwood>
end
<Senjai>
Nothing, what's wrong with a single line if there is no body?
<havenwood>
Senjai: nothing
<Senjai>
We stand agreed
<edektor>
@Mon_Ouie in the included block when it accesses #state_machine_class it raises NotImplementedError
<edektor>
When I include the module in a class
Alina-malina has quit [Read error: Connection reset by peer]
<edektor>
that defines #state_machine_class
sshuff has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
Well that's what you defined state_machine_class to do it looks like (not sure what that #class_methods method does though)
Alina-malina has joined #ruby
<havenwood>
Senjai: Why make empty methods?
gambl0re has quit [Ping timeout: 252 seconds]
AnoHito has joined #ruby
pengin has quit [Remote host closed the connection]
<havenwood>
Senjai: I guess I know the answer, nevermind.
<shevy>
!
<Senjai>
havenwood: Aye, it's usually a smell of poor inheritance.
<Mon_Ouie>
Maybe the hook is being called before you redefine state_machine_class in the class that includes your module if that's what you're doing
<Senjai>
or poor design
<edektor>
Mon_Ouie: what I want is for it to call MyModel.state_machine_class and raise NotImplementedError when it's not defined in the class the module is included in
aswen has joined #ruby
JoshL has quit []
<jhass>
havenwood: I find the Foo = Class.new Parent variant to be the worst actually. It requires quite a bit of a deeper understanding about Rubys object model
a346 has quit [Quit: a346]
<jhass>
for zero benefit
nerio has joined #ruby
gambl0re has joined #ruby
<Senjai>
I actually think it's the most correct for defining empty classes
<Senjai>
It may require a deeper understanding, but it is "correct"
<jhass>
no, it just makes you feel smarter
<Senjai>
Not really. It's something anyone can google and figure out within a second
<Senjai>
That's just an ad-hom attack on me... not really an objective point
ferr has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<jhass>
I strongly disagree, Rubys object model, while beautiful, takes quite a while to grasp
dopie has quit [Quit: This computer has gone to sleep]
<shevy>
Class.new is indeed worse than the common subclass-way for exceptions
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai>
But you're still not saying that it's incorrect
<jhass>
it's not any more or less correct than using the class keyword
<Senjai>
You're saying that "a part of ruby is hard to understand"
troulouliou_dev has joined #ruby
<jhass>
yes, you observed correctly
<Senjai>
Good, then we agree. There's no reason not to suggest that case as well over the other.
<jhass>
there is, it raises the barrier of entry to your codebase
existensil has quit [Quit: WeeChat 0.4.2]
<Senjai>
Not really, writing bad code does.
<jhass>
writing "clever" code for no real benefit does too
<ledestin>
let's say a method requires a block. it seems that having &b as an argument would relay that info. but Rails for example doesn't do that. I wonder why.
<jhass>
ledestin: example?
<ledestin>
def foo(&b)
<jhass>
or you mean for documentation purposes?
<shevy>
wait
<shevy>
I just fixed it I think...
<ledestin>
jhass well, yeah, for reading code
choke has joined #ruby
<shevy>
something was wrong with /usr/share/myspell/dicts/
<ledestin>
jhass it could be relayed as a comment, yes
shevy2 has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
<jhass>
ledestin: it's usually obvious enough from the docs of the method or even its name/what it should do, I too only use &b if I actually need its functionality
victortyau has quit [Max SendQ exceeded]
shevy has quit [Remote host closed the connection]
shevy2 is now known as shevy
drewo has joined #ruby
choke has quit [Client Quit]
Igorshp has joined #ruby
victortyau has joined #ruby
<jhass>
though I also use yard and document with the @yield tag
stantonnet has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
<ledestin>
jhass it's like, non-API code
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Ping timeout: 248 seconds]
jhack has joined #ruby
jhack has joined #ruby
bungoman has quit [Remote host closed the connection]
<ledestin>
I don't comment most methods
k3asd` has joined #ruby
k3asd`_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
Igorshp has quit [Remote host closed the connection]
<ytti>
now it does not really matter what the args are
baweaver has joined #ruby
<ytti>
jhass, which form is that?
<ytti>
i know exec accepts args
<ytti>
so
<ytti>
exec 'sudo', 'apt-get', ...
<ytti>
ought to work
<jhass>
system ["/usr/bin/sudo", "apt-get", "install", "vim"]
last_staff has quit [Quit: last_staff]
kirun has quit [Quit: Client exiting]
<ytti>
cool, i had no idea
<jhass>
system, spawn & exec take all the same forms
<jhass>
documented most comprehensively at spawn
tmtwd_ has joined #ruby
tmtwd has quit [Read error: Connection reset by peer]
Notte has quit []
victortyau has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: zzz]
<jhass>
shevy: ☃ so how's hexchat? ☃
jonathanwallace has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
codecop has quit [Remote host closed the connection]
<shevy>
jhass on xchat right now \o/
<shevy>
both hexchat and xchat had the same problem with dict/ directory btw, I assume it is because they at one point shared the same code
<jhass>
likely
baweaver has quit [Ping timeout: 244 seconds]
havenwood has quit [Read error: Connection reset by peer]
gamename has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Read error: Connection reset by peer]
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 256 seconds]
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
Luun has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
havenwood has joined #ruby
Luun has joined #ruby
marr has quit [Ping timeout: 250 seconds]
systemd0wn has quit [Quit: No Ping reply in 180 seconds.]
jwaldrip has quit [Quit: Be back later ...]
atomical has joined #ruby
abyss has quit [Ping timeout: 250 seconds]
bronson has quit [Remote host closed the connection]
jwaldrip has joined #ruby
surs4 has quit [Ping timeout: 250 seconds]
susmus has quit [Ping timeout: 250 seconds]
systemd0wn has joined #ruby
abyss has joined #ruby
susmus has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
jenksy has quit [Remote host closed the connection]
rezzack has joined #ruby
jenksy has joined #ruby
sshuff has quit [Quit: Leaving]
jwaldrip has quit [Client Quit]
bronson has joined #ruby
underplank_ has joined #ruby
simplyianm has joined #ruby
cdrage has quit [Ping timeout: 250 seconds]
victortyau has joined #ruby
underplank has quit [Ping timeout: 252 seconds]
underplank_ is now known as underplank
finisherr has joined #ruby
enroxorz has quit [Quit: Page closed]
rezzack has quit [Client Quit]
AlphaAtom has joined #ruby
rezzack has joined #ruby
togdon has joined #ruby
rezzack has quit [Client Quit]
charliesome has joined #ruby
gard has quit [Ping timeout: 250 seconds]
pdoherty has quit [Quit: Leaving]
rbowlby has joined #ruby
yfeldblum has joined #ruby
<nahtnam>
Hey. What do you guys think of a coffee-tipping bot? I could make one if you guys think it would be useful/interesting. You could tip 25 cents or a dollar in starbucks gift cards to those who help you and what not
<AlphaAtom>
if thats doable, sounds cool, but surely you can't redeem like .25 gift cards? :P
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
that sounds way too useful, if anything it should be primecoin, I at least have a source for that (and nothing useful to do with them yet)
<nahtnam>
AlphaAtom: Yeah, it would have to add up $5. If you want to cash out for some reason, you can pay the rest. So if someone tips you $2.50, you could pay the other $2.50 and get your card
<shevy>
option.c:886:33: error: expected declaration specifiers or ?...? before ?u_int8_t?
<shevy>
hmm
nikhgupt has quit [Remote host closed the connection]
<shevy>
never seen that error before
yihsiaol has joined #ruby
leonardoajim has joined #ruby
x1337807x has joined #ruby
bruno- has joined #ruby
<Aderium>
that seems to happen if I compile source or rvm install
<Aderium>
cant seem to install it
<shevy>
not many solaris users here by the way, you may try your luck, if you can not resolve it, directly at ruby core reporting an issue: https://bugs.ruby-lang.org/projects/ruby-trunk
x1337807x has quit [Max SendQ exceeded]
<Aderium>
we are having, we think a memory leak in eventmachine that maybe the new gc may resolve
<shevy>
hmm
<shevy>
have you tried another gcc variant? yours seems to be gcc-4.5.2
x1337807x has joined #ruby
<shevy>
I am at 4.9.2, most recent one is 5.1.0
<Aderium>
I need to check if Solaris 11.2 carries that
christiandsg has joined #ruby
mary5030 has quit [Remote host closed the connection]
Scrofff has quit [Ping timeout: 264 seconds]
nerio has quit [Ping timeout: 246 seconds]
<shevy>
ok so googling tells me that u_int8_t is "unsigned integer number with 8 bits"
jokke has joined #ruby
<Aderium>
and ?
<shevy>
I don't know what is TCP_CA_Open
nofxx has joined #ruby
<Aderium>
:(
<shevy>
come to linux :)
yihsiaol has quit [Quit: leaving]
<nahtnam>
^^^
leonardoajim has quit [Read error: Connection reset by peer]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando has joined #ruby
<aperture>
Thanks zenspider, I'll take a look at that
<FrankD_>
am I doing something incredibly stupid with my models/schema?
olistik has quit [Ping timeout: 244 seconds]
<ramblinpeck>
hi all, stupid question, but is there an option in 2.1.2 to force to_yaml to indent lists? Have it outputting to a file that saltstack is consuming and it needs the indents to parse it
mistermocha has joined #ruby
finisherr has quit [Quit: finisherr]
<FrankD_>
im not sure why its foreign_key (`owner_id`) references `owners` (`id`) .. shouldnt it be more like "foreign_key (`owner_id`) references (`id`) ??"
<jhass>
?rails FrankD_
<ruboto>
FrankD_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
leonardoajim has quit [Quit: Be back later ...]
<zenspider>
aperture: no clue if it works on solaris. it's a strange beast with a lot of oddities.
<FrankD_>
Uhm, they're not Rails questions
<zenspider>
I, luckily, haven't worked on solaris in a couple decades
<FrankD_>
this is not a Rails App, I'm just making use of ActiveRecord..
finisherr has joined #ruby
scripore has joined #ruby
<jhass>
well, ActiveRecord expertise is still much bigger there
<zenspider>
still a rails question
fgo has quit [Ping timeout: 256 seconds]
<aperture>
zenspider, I think that response should go to Aderium
<zenspider>
ramblinpeck: so you're saying that saltstack doesn't have a compliant yaml parser. should you trust them?
<FrankD_>
zenspider, unless you need 'rails' to run it, i feel its not :p
<ramblinpeck>
zenspider: it is what it is and thats the requirement I'm dealing with
<zenspider>
oops. yes, my indexer crossed wires
<zenspider>
FrankD_: Take it to #rubyonrails.
<ramblinpeck>
how about we say I want yaml pretty-printed
silkfox has joined #ruby
<aperture>
no prob
<yihsiaol>
hidelevels.set 1
<zenspider>
ramblinpeck: try calling YAML.dump explicitly rather than to_yaml
<FrankD_>
zenspider, slightly autistic or severely? :P
<zenspider>
!mute FrankD_
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider>
hardly... just an op.
<zenspider>
you can take it to #ruby-banned now
<zenspider>
!ban FrankD_ !T 1d trolls go home
FrankD_ was banned on #ruby by ChanServ [FrankD_!*@*]
FrankD_ was kicked from #ruby by ChanServ [Banned: trolls go home]
<zenspider>
nevermind... you're done
<jhass>
!unmute FrankD_
<zenspider>
that was in response to PMs, for the record
<jhass>
no need to pollute the list^^
bricker has joined #ruby
NeverDie has joined #ruby
<shevy>
Aderium that reminds me, have you tried to compile on a not-so-recent ruby version? 2.1.x too? if that one compiles, and the 2.2.x does not, then it may help the few heroic core devs who run solaris :)
<zenspider>
I love having /troll <username> set up :)
<shevy>
oh damn
<zenspider>
and /stfu
<shevy>
just noticed your comment, 2.1.x compiles just fine
<zenspider>
imperator might still do solaris work... he's not on here right now, but he frequents
choke has joined #ruby
<zenspider>
what about 2.2.0 ?
Lucky___ has joined #ruby
mjuszczak has joined #ruby
pietr0 has joined #ruby
<zenspider>
to be fair to FrankD_... #rubyonrails is still a shitshow of non-help and off-topic discussion
<zenspider>
I just gave up asking my q in there
<ramblinpeck>
zenspider: no luck, calling YAML.dump explicitly has the indent option but that just affects the indentation it already shows. I guess no way to force indentation at each level :(
pyon has quit [Quit: I have irrefutable proof that D < 0. It follows trivially from 2D > 3D, which is obviously true.]
* jhass
looks at the empty line
brettnem has quit [Ping timeout: 264 seconds]
<zenspider>
so maybe your input data is wrong?
<zenspider>
maybe you need an array around the hash values?
patrick_star has joined #ruby
lkba has quit [Remote host closed the connection]
tmtwd_ has joined #ruby
<bricker>
zenspider: #rubyonrails is a very helpful channel
<bricker>
off-topic sometimes sur
<bricker>
sure*
ndrei has quit [Ping timeout: 248 seconds]
<bricker>
but "non-help" isn't true
<jhass>
Senjai: with these days crypto foo we could likely design something that's not so horribly hard to implement. After all most people aren't horribly incompetent, there are just a real lot of gotchas
<Senjai>
bricker: wat
brettnem has joined #ruby
<ramblinpeck>
zenspider: oddly enough putting it in an array makes it work
<DefV>
I'm just adding to the cruft but most help on #RoR is low-level stuff. I never had a non-trivial problem answered on #RoR
brettnem has quit [Client Quit]
<Senjai>
I've always had no issues with TLS, but I have no idea what the underlying implimentation looks like
mrconfused has joined #ruby
<ramblinpeck>
thanks
<jhass>
well, and with something new we could also throw out all the questionable ciphers
eggoez has quit [Ping timeout: 248 seconds]
<bricker>
Senjai: what wat
<bricker>
Senjai: you have received a lot of help in rubyonrails
quazimodo has quit [Ping timeout: 250 seconds]
<zenspider>
bricker: then get your ass in there and answer my questions :P
<Senjai>
bricker: I know, It's what got me in the industry, I was just looking for the comment you were meaning to respond to
<bricker>
Senjai: oh, zenspider was dissing rubyonrails
<Senjai>
bricker: I found it now
<bricker>
zenspider: what's your question?
pyon has joined #ruby
drewo has quit [Ping timeout: 265 seconds]
Alayde has quit [Quit: WeeChat 1.1.1]
<bricker>
zenspider: my backlog was truncated
<Senjai>
To be fair, rubyonrails is a much more volatile channel. It's hard for me to stay in it for long periods of time... But I do owe a lot to it
hotpancakes has quit [Remote host closed the connection]
<bricker>
best thing about that channel is it's about 50/50 australians and americans so there's always someone logged into help the newbs
<zenspider>
hah
<ramblinpeck>
zenspider, actually nope it doesnt, that puts a leading '- ' in front of each hash key, bleh
xkef has joined #ruby
santana has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
<zenspider>
ramblinpeck: I'm arguing with tenderlove now. :)
eggoez has joined #ruby
<Senjai>
zenspider: tenderlove is usually in the channel, or at least I've seen him here
Ilyas has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
<Senjai>
should ask him to join
mistermocha has quit [Ping timeout: 248 seconds]
craysiii has joined #ruby
<Senjai>
Also I will not be able to come down to Seattle in July :(
<Senjai>
But hopefully sometime this summer
<zenspider>
or I can just chat with him over IM and keep him all to myself :P
<bricker>
zenspider: what's the problem? I may have run into this before
<bricker>
zenspider: I ran into a parsing discrepancy between an older version of Psych and a newer version
dfockler has quit [Remote host closed the connection]
<zenspider>
ramblinpeck: dunno what to tell you. libyaml outputs pedantically correct yaml... if you can use syck, you can get it to output the way you want
togdon has left #ruby ["Bye-Bye."]
<zenspider>
bricker: ramblinpeck has a service he's using that doesn't have a correct yaml parser, and he needs more indentation
<zenspider>
see paste above
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker>
oh
<zenspider>
ramblinpeck: now tenderlove is saying he's not sure syck will do it either :)
<zenspider>
Ox0dea: you could instance_eval the block
bungoman_ has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
<zenspider>
I have no idea what horrible shit you're up to... but you've obviously not going to be swayed from your evil path. :P
baweaver has quit [Remote host closed the connection]
<shevy>
:D
<Ox0dea>
Aye, that is so. :)
<Ox0dea>
Alas, instance_eval doesn't work either.
<Ox0dea>
Nor even module_eval, as would more befit the case.
jesterfraud has joined #ruby
<Ox0dea>
I suspect I shall have to resort to saving and restoring the existing constants, redefining Object.const_missing directly, and then restoring its original definition after each invocation. :/
surs4 has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
<Aeyrix>
lol zenspider
<Aeyrix>
it's magical, not horrible
n1x has quit [Ping timeout: 244 seconds]
92AABMI76 has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
nerio has quit [Quit: Leaving]
<Ox0dea>
At least I'm trying to properly encapsulate the madness this time round.
<bricker>
Ox0dea: it seems like you haven't really explained what you're trying to do
<bricker>
or I missed it
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
<Ox0dea>
It suffices to say that I really do need to handle missing constants referenced from the top level.
simplyianm has joined #ruby
quimrstorres has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
This can be done by defining Object.const_missing directly, but I seek some saner alternative.
underplank has quit [Quit: underplank]
AlphaAtom has joined #ruby
<zenspider>
you're gonna break if anyone defines const_missing below Object
<Ox0dea>
That's true. :/
quimrstorres has quit [Remote host closed the connection]
AlphaAtom has quit [Max SendQ exceeded]
leonardoajim has quit [Read error: Connection reset by peer]
leonardoajim has joined #ruby
hotpancakes has quit [Remote host closed the connection]
christiandsg has joined #ruby
leonardoajim has quit [Read error: Connection reset by peer]
mengu has joined #ruby
sharpmachine has quit [Remote host closed the connection]
Muhannad has quit [Remote host closed the connection]
leonardoajim has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
leonardoajim has quit [Read error: Connection reset by peer]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]