bradleyprice has quit [Remote host closed the connection]
DadoCe has quit [Ping timeout: 265 seconds]
goshdarnyou has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
lemur has quit [Remote host closed the connection]
somkera has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
ismaelga has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Cadillactica has joined #ruby
fabrice31 has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Deckon has quit [Quit: Leaving]
<Cadillactica>
trying to set up backbone to work with Rails - encountering an issue that I haven’t been able to get past. when I add a first handlebars template to the app/assets/templates/example.jst.hbs, I see that the rails server is trying to GET http://localhost:3000/javascripts/master.hbs.js which fails (incorrect location, incorrect file type)
<Cadillactica>
Anybody have an idea?
<ericwood>
Cadillactica: check out #rubyonrails or #documentcloud
devoldmx has joined #ruby
<Cadillactica>
ericwood: ok thanks
<ericwood>
we try to stick to just non-rails stuff here :)
kobain has joined #ruby
fruitedoots has joined #ruby
fruitedoots has quit [Client Quit]
<somkera>
how do you stop a nigger from drowning?
fabrice31 has quit [Ping timeout: 264 seconds]
<havenwood>
apeiros__: ^
<somkera>
why would you stop a nigger from drowning?
<somkera>
haha
somkera has left #ruby [#ruby]
<apeiros__>
so sad
somkera has joined #ruby
somkera has left #ruby [#ruby]
jlast has quit [Remote host closed the connection]
livingstn has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
Cadillactica has joined #ruby
bklane has quit [Remote host closed the connection]
apeiros__ is now known as apeiros_
bklane has joined #ruby
cocotton has joined #ruby
<apeiros_>
havenwood: thanks for ping
<havenwood>
apeiros_: thanks!
cocotton has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 265 seconds]
<phat4life>
how do i make a pull request for the ruby core library
mistermocha has quit [Remote host closed the connection]
Cadillactica has quit [Client Quit]
bklane has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
bklane has quit [Remote host closed the connection]
nii236|irssi has joined #ruby
<gr33n7007h>
I'm trying to save an image with: open(url) {|f| File.open("sony.jpg","w") {|fd| IO.copy_stream(fd, f) } } # IOError: not opened for reading ?
nii236|irssi is now known as nii236
Takle has quit [Ping timeout: 255 seconds]
ismaelga has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
Takle_ has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
lightstalker has quit [Quit: WeeChat 0.4.2]
genpaku has joined #ruby
Scient has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
<gr33n7007h>
nvm, IO.copy_stream args were in the wrong position :(
wldcordeiro has joined #ruby
Nuck has quit [Quit: Computer has gone to sleep.]
kaiZen has quit [Quit: Computer has gone to sleep.]
nii236 has quit [Quit: leaving]
tohuw has quit [Quit: tohuw]
duncannz has quit [Ping timeout: 245 seconds]
jbw_ has joined #ruby
elbow has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jonatin has joined #ruby
Rollabunna has joined #ruby
jbw__ has quit [Ping timeout: 240 seconds]
<phat4life>
hmmm, is there no thread.rb on ruby trunk? I am confused as the change logs show /lib/thread.rb but i am not seeing that file
b4rbz has joined #ruby
jonr22 has quit [Remote host closed the connection]
<shevy>
so I have to manually find all those instances
<shevy>
which makes me not happy
<shevy>
found one instance
<shevy>
Foo.instance_eval {
<shevy>
self.instance_eval {
<shevy>
seems to be equivalent?
RegulationD has joined #ruby
hvxgr has quit [Ping timeout: 250 seconds]
tvon has joined #ruby
ghostpl_ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r>
humm.. But it depends under which `self` scope you are doing... for e.x. def bar; Foo.instance_eval and def foo; self.instance_eval not same.. You are giving door keys to someone else :)
<arup_r>
shevy: ^
juanpablo__ has quit [Ping timeout: 264 seconds]
CorySimmons has joined #ruby
fantazo has joined #ruby
last_staff has joined #ruby
<shevy>
in module Foo; Foo.instance_eval {}; end
<arup_r>
Ohh... yes.. that is equal
<arup_r>
No.. after mixin
<arup_r>
story will be different.. :(
<arup_r>
shevy: I'm now confused.. jhass: will help you.
RegulationD has quit [Ping timeout: 255 seconds]
<shevy>
lol
michael_mbp has quit [Excess Flood]
ghostpl_ has quit [Ping timeout: 256 seconds]
jud^ has joined #ruby
michael_mbp has joined #ruby
<zly>
morning :)
djbkd_ has quit [Remote host closed the connection]
jud has quit [Ping timeout: 246 seconds]
Crisix has joined #ruby
claptor has quit [Quit: this channel is bakas]
tesuji has joined #ruby
postmodern has joined #ruby
Morkel has joined #ruby
jenrzzz has joined #ruby
zorak8 has quit [Read error: No route to host]
x1337807x has joined #ruby
nicolastarzia has joined #ruby
CorySimmons has quit [Quit: Bye!]
riotjones has joined #ruby
nicolast_ has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
rippa has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
bal has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
arup_r_ has joined #ruby
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
aganov has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
bricker has joined #ruby
hvxgr has joined #ruby
hmsimha has joined #ruby
bal has quit [Quit: bal]
tunaCanBruh has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
rubytor has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
bal has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
wicope has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
stunder has quit [Remote host closed the connection]
Cadillactica has quit [Quit: Cadillactica]
tunaCanBruh has quit [Ping timeout: 255 seconds]
icharlie has quit []
MrSamuel has joined #ruby
ponga has joined #ruby
riotjones has joined #ruby
rdark has joined #ruby
oo_ has quit [Remote host closed the connection]
bricker has joined #ruby
oo_ has joined #ruby
anaeem1 has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
sent1nel has joined #ruby
sent1nel has quit [Ping timeout: 246 seconds]
jud has quit [Quit: Leaving]
Jetchisel has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
dumdedum has joined #ruby
toretore has joined #ruby
andikr has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
jud has quit [Client Quit]
jud has joined #ruby
fabrice31 has joined #ruby
ismaelga has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teoric has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
allenn has joined #ruby
Azure has joined #ruby
teoric has quit [Client Quit]
amundj has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teoric has joined #ruby
teoric has quit [Client Quit]
djbkd_ has joined #ruby
Crazy_Atheist has quit [Ping timeout: 250 seconds]
djbkd_ has quit [Remote host closed the connection]
tesuji has quit [Read error: Connection reset by peer]
d3_newbie has joined #ruby
Macaveli has joined #ruby
<d3_newbie>
Hello, I am writing a small module on a Ruby on rails app. The module consist of visualisation I have to present using a histogram. I am using json to get the data and d3 for visualisation. I am having difficulties in accessing the json objects. Can anyone please help?
Crazy_Atheist has joined #ruby
ben_vulpes has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
_Andres has joined #ruby
zachrab has joined #ruby
despai has joined #ruby
ghr has joined #ruby
tohuw has quit [Quit: tohuw]
dys has quit [Ping timeout: 252 seconds]
FooMunki has joined #ruby
hs366 has joined #ruby
zachrab has quit [Ping timeout: 265 seconds]
anaeem1 has quit [Remote host closed the connection]
mkaesz has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
anaeem1 has joined #ruby
oo_ has quit [Remote host closed the connection]
mroach has quit [Ping timeout: 272 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
oo_ has joined #ruby
msgodf has joined #ruby
ghostpl_ has joined #ruby
bootstrappm has left #ruby [#ruby]
despai has quit [Quit: This computer has gone to sleep]
rdark has quit [Quit: leaving]
oo_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
Takle has joined #ruby
sudog has quit [Ping timeout: 250 seconds]
kalusn has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
terlar has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
lidaaa has quit [Ping timeout: 250 seconds]
arup_r_ has quit []
lessless has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
Dr3amc0d3r|away has joined #ruby
arup_r has joined #ruby
Ivision has quit [Remote host closed the connection]
workmad3 has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
d3_newbie has left #ruby [#ruby]
aswen has quit [Ping timeout: 245 seconds]
<shmoon_>
is there a course/tutorial on ruby so that i can quickly pick it up like in an hour or so?
Nahra has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
livathinos has joined #ruby
<canton7>
shmoon_, you've got a gem in your gemfile, where you're said it should be fetched from a git repo
<canton7>
so that's what bundler's going
<canton7>
*doing
rupertbg has joined #ruby
m8 has joined #ruby
polysics has left #ruby [#ruby]
<Fluent>
Yup, pretty much running a git clone 'repo'
<surs>
I have two files a and b. I want to find out which lines in both files share a "relevant" amount of text. The lines in b may have extra strings at the beginning, in between or at the end of the lines. the lines consist of white space separated words.
<surs>
how do I best go about this?
<Fluent>
I guess that's not even always true either
oo_ has joined #ruby
zorak8 has quit [Ping timeout: 252 seconds]
zeel has joined #ruby
<Fluent>
I would suggest learning about regular expressions
<Fluent>
Then iterate both files in a loop and compare with a regex match that you are looking for
<surs>
I know a little about regexp. I was thinking of trying to match sequences of words and returning the lines that match the longest sequences
zachrab has quit [Ping timeout: 264 seconds]
<canton7>
nah, I wouldn't go regex. Learn about the longest common subsequence problem
<canton7>
actually it's not even that
Lorn3r has quit [Read error: Connection reset by peer]
Lorn3r has joined #ruby
krz has joined #ruby
<canton7>
Smither Waterman Algorithm
n008f4g_ has joined #ruby
djbkd_ has joined #ruby
<canton7>
that's the one
<canton7>
do what with word-granularity
<canton7>
*that
<surs>
I'll gladly look into that. Thank you
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<surs>
and it can be done with ruby?
<canton7>
Levenshtein distance is the other one
<Fluent>
Of course it can be done with Ruby
<canton7>
that's used for spellcheck, but you're effectively doing that at the word level
<canton7>
not sure whether that or Smith-Waterman will work better tbh
zeel has quit [Client Quit]
Lobo has joined #ruby
timonv has joined #ruby
<canton7>
they're just algorithms - you can use any turing-complete language to implement them
<canton7>
hell, if you're motivated enough, you could probably write them in brainfuck
Lobo is now known as Guest71952
<Fluent>
s/motivated/insult here/
<canton7>
true :P
zeel has joined #ruby
Guest71952 has quit [Client Quit]
polysics has joined #ruby
oki has joined #ruby
<maasha>
is there a way to silence specific warnings?
<oki>
hi
<Fluent>
You could use a begin block
<arup_r>
oki: hello
jottr has joined #ruby
<strixd>
is there a way to remove only the latest version of my rubygems gem from the site
djbkd_ has quit [Ping timeout: 256 seconds]
<Fluent>
I don't think so, strixd
<strixd>
:(
<apeiros_>
strixd: gem yank
<strixd>
that will remove all?
<apeiros_>
check its docs?
<Fluent>
They keep gems hosted for backwards compatibility. If other people use your gem.
<canton7>
"-v, --version VERSION - Specify version of gem to remove"
<strixd>
I want only 1 version not the whole gem
<strixd>
o
<Fluent>
I think you can request for them to be removed, if they have sensitive information? Least this is what I thought. Maybe yank does work, dunno
<canton7>
seems to imply pretty clearly that you can yank a specific version
livathinos has quit [Remote host closed the connection]
<strixd>
o/ thanks all
<apeiros_>
canton7: lost art.
<canton7>
note that that hides the version, it doesn't remove it entirely
<apeiros_>
reading in general is a lost art.
<apeiros_>
reading backtraces
<canton7>
so if you specifically ask for that specific version, you'll get it
<apeiros_>
reading readmes
<surs>
:) thanks for the tips canton7
<apeiros_>
reading docs
livathinos has joined #ruby
<maasha>
Ain't that a song be The Cure: The docs don't work ... ?
<apeiros_>
who let the docs out, who, who, who…
r4j453v4n has joined #ruby
<maasha>
Hehehehe
<canton7>
ok, "what happened to the lost art of reading more than 1 line of the docs?" ><
<arup_r>
what is this -> >< ?
plashchynski has joined #ruby
<Fluent>
So can you completely remove a gem? Or just the last version?
<canton7>
you can ask rubygems to hide a gem, or any specific version of a gem
<canton7>
... if someone has specified exactly that version, gem will still retrieve it fine
<canton7>
...but it won't be chosen under normal circumstances, and won't be listed by any tools
plashchynski has quit [Client Quit]
<Fluent>
Okay, thanks.
keen__________72 has joined #ruby
<canton7>
so it's the "ohshit, it's buggy" action, but it won't break people who depend on it specifically
sinkensabe has joined #ruby
keen__________71 has quit [Ping timeout: 252 seconds]
jimms has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
bal has quit [Quit: bal]
bal has joined #ruby
michael_mbp has quit [Excess Flood]
oo_ has joined #ruby
michael_mbp has joined #ruby
naftilos76 has joined #ruby
aapole has quit [Ping timeout: 250 seconds]
nii236 has quit [Ping timeout: 244 seconds]
juanpablo__ has joined #ruby
moritzs has joined #ruby
r4j453v4n has quit [Quit: r4j453v4n]
Ivision has quit [Remote host closed the connection]
RegulationD has joined #ruby
juanpablo__ has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 246 seconds]
Ivision has joined #ruby
sigurding has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
mikeric has joined #ruby
mhenrixon has joined #ruby
mikeric has quit [Client Quit]
Guest123 has joined #ruby
r4j453v4n has joined #ruby
huddy has joined #ruby
ptrrr has joined #ruby
leafybasil has joined #ruby
charliesome has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
vtunka has quit [Quit: Leaving]
r4j453v4n has quit [Client Quit]
Ivision has quit [Remote host closed the connection]
sent1nel has joined #ruby
ismaelga has joined #ruby
Senjai has quit [Ping timeout: 264 seconds]
moritzs has quit [Quit: Verlassend]
sent1nel has quit [Ping timeout: 246 seconds]
ismaelga has quit [Ping timeout: 256 seconds]
Inoperable has joined #ruby
michael_mbp has quit [Excess Flood]
<Lorn3r>
heya
<Lorn3r>
newbie here
michael_mbp has joined #ruby
<Lorn3r>
i finally got ruby, gems and rails setup on my linux mint machine and want to follow through the tutorial at railstutorial.com as closely as possible
<Lorn3r>
and now i found out i got ruby1.9.3 installed, the tutorial uses 2.2.1 though
r4j453v4n has joined #ruby
<Lorn3r>
i installed ruby2.0 & ruby2.0-dev via apt-get, but its not the default one
<DefV>
Lorn3r: you're better to use something like rpm or rbenv to install recent versions of Ruby
_Andres has joined #ruby
<Lorn3r>
how do i get my linux to use the new ruby instead of the old stable one?
zeel has left #ruby [#ruby]
<Lorn3r>
ok! these are some kind of managers for switching versions and setting up the machine to properly use it then?
<canton7>
rvm or rbenv
<canton7>
as DefV said
hgl- has joined #ruby
<Lorn3r>
thank you both, reading up about rbenv :)
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
hgl has quit [Ping timeout: 255 seconds]
hgl- is now known as hgl
razieliyo has joined #ruby
imanzarrabian has joined #ruby
roshanavand has joined #ruby
<elaptics>
or chruby
Macaveli has quit [Ping timeout: 252 seconds]
veduardo has joined #ruby
tunaCanBruh has joined #ruby
rbennacer has joined #ruby
hiyosi has joined #ruby
Tomasso has joined #ruby
amacou has joined #ruby
<Tomasso>
what does the error "no _dump_data is defined for class Mutex" mean? it doesnt seem to come from my code
<Tomasso>
im using ruby 1.9.3
tunaCanBruh has quit [Ping timeout: 255 seconds]
rbennacer has quit [Ping timeout: 265 seconds]
kirun has joined #ruby
reinaldob has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
davidhq has joined #ruby
rodfersou has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
polysics has quit [Remote host closed the connection]
doodlehaus has joined #ruby
rodfersou has quit [Client Quit]
rodfersou has joined #ruby
mroach has joined #ruby
fabrice31 has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 246 seconds]
plashchynski has joined #ruby
patrick99e99 has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
joonty has joined #ruby
OrbitalKitten has joined #ruby
postmodern has quit [Quit: Leaving]
r4j453v4n has quit [Quit: r4j453v4n]
psy_ has quit [Ping timeout: 255 seconds]
Inoperable has quit [Quit: Rectified]
Timgauthier has joined #ruby
hanmac has joined #ruby
ptrrr has quit [Quit: ptrrr]
<apeiros_>
Tomasso: I think you'll have to give a bit more context
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
psy_ has joined #ruby
sigurding has quit [Quit: sigurding]
<shmoon_>
aah, thanks canton7 :)
aapole has joined #ruby
ldnunes has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
TheRinger has quit [Quit: Konversation terminated!]
<Tomasso>
apeiros_: yes.. I have a Proc block defined in a hash. That block is passed to the .get sinatra method as a parameter. The method the runs ok from browser, and the logs seem ok, but when I check the response I find that
sent1nel has joined #ruby
<Tomasso>
it is like if it never convert the block returned value, into the stream of data to be sent to the browser, according what i could understand
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has quit [Ping timeout: 264 seconds]
<apeiros>
Tomasso: while a bit more information, that's still not much which actually helps me helping you.
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ismaelga has quit [Ping timeout: 252 seconds]
n1lo has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
serivichi has joined #ruby
zachrab has joined #ruby
ponga has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 252 seconds]
Timgauthier has joined #ruby
rupertbg has quit [Read error: Connection reset by peer]
roolo has joined #ruby
MasterPiece has joined #ruby
Morkel has quit [Quit: Morkel]
serivich has quit [Ping timeout: 252 seconds]
roolo has quit [Remote host closed the connection]
ponga has joined #ruby
bricker has joined #ruby
roolo has joined #ruby
oo_ has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
zachrab has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
vtunka has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
topolinux has joined #ruby
shum has joined #ruby
iamninja has joined #ruby
Pupeno has joined #ruby
sameerynho has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 252 seconds]
Macaveli has quit [Ping timeout: 255 seconds]
lxsameer has quit [Ping timeout: 256 seconds]
OrbitalKitten has joined #ruby
kartouch has joined #ruby
Pharaoh2_ has joined #ruby
vtunka has quit [Quit: Leaving]
Lorn3r has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 256 seconds]
Aryasam has joined #ruby
DEA7TH has joined #ruby
aapole has quit [Ping timeout: 252 seconds]
Cust0sL1men has quit [Ping timeout: 252 seconds]
Cust0sL1men has joined #ruby
vtunka has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
nfk has quit [Quit: yawn]
veduardo has quit [Ping timeout: 246 seconds]
maasha has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 240 seconds]
juanpablo__ has joined #ruby
nettoweb has joined #ruby
rkmylo has joined #ruby
<rkmylo>
is it possible to initialize a global variable ($) with a (static?) class instance so as to be able to access it and modify its value from other files?
Grumelo has joined #ruby
imanzarrabian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
<apeiros>
rkmylo: yes, it's possible. but globals are generally the wrong way.
<apeiros>
use e.g. a constant instead
juanpablo__ has quit [Ping timeout: 264 seconds]
plashchynski has quit [Quit: plashchynski]
RegulationD has quit [Ping timeout: 255 seconds]
<rkmylo>
@apeiros: i've tried setting a global var in env.rb like "$x = Class.new". if i call $x.foo with foo defined in Class, i'm getting "undefined method `foo' for nil:NilClass (NoMethodError)". in the use case i consider, the use of a global static class instance i think is the prefered way. any ideas why i'm getting this error?
OrbitalKitten has joined #ruby
charliesome has quit [Quit: zzz]
<Mon_Ouie>
Because $x was nil at the time when you executed $x.foo
<apeiros>
^
tokik has quit [Ping timeout: 255 seconds]
<Mon_Ouie>
(probably because your $x = Class.new had not yet been executed -- if it was at all)
<apeiros>
also no, globals are (almost) *never* the preferred way.
<rkmylo>
@Mon_Ouie: so it could be the order in which requires are read?
adrianpacala has joined #ruby
plashchynski has joined #ruby
<Mon_Ouie>
It could, if you use $x, the code that gives it a value needs to have been executed first
adrianpacala has quit [Client Quit]
ArchRogem has joined #ruby
<Mon_Ouie>
(I'm trying to avoid talking about the order in which things are "read" because it's really about which one gets executed first, not which one gets loaded first)
MrSamuel has quit [Quit: MrSamuel]
ceslovas has joined #ruby
quazimodo has joined #ruby
ceslovas has quit [Remote host closed the connection]
<cyberfab007>
aperios I am sorry its a figure of speech :)
sent1nel has joined #ruby
<cyberfab007>
boys and girls , lol
psy_ has quit [Quit: Leaving]
<avril14th>
and mixed
<avril14th>
some people include both module
<sevenseacat>
how condescending
<avril14th>
(even though I dont
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
decoponyo has quit [Ping timeout: 252 seconds]
* apeiros
still doesn't feel addressed :)
<cyberfab007>
now someone in here helped me build ruby on my other server and this works fine, but now I follow those instructions and it is not work
<cyberfab007>
ok aliens too
brb3 has joined #ruby
<cyberfab007>
boys girls and aliens lol
arup_r has joined #ruby
<Tomasso>
shemales
<sevenseacat>
cyberfab007: you should probably just stop now.
<cyberfab007>
lol
bhaak has quit [Ping timeout: 264 seconds]
* jhass
still waits of a description of what actually fails
jonr22 has quit [Ping timeout: 250 seconds]
<cyberfab007>
but know seriouse , if I followed those instuctions I post I should just have to change the directory path right ? script works fine from liniux command line , I am just excuting that wrapper from a php script
<cyberfab007>
yegh but on my other server I am not using RVM I do not think,
<cyberfab007>
I run the script like this
<cyberfab007>
actually know I am it is right there
<cyberfab007>
in the path , so I must install RVM as well
<cyberfab007>
jhass, can you give me a link with those proper instructions
lsmola has quit [Remote host closed the connection]
phutchins has joined #ruby
ZoanthusR has joined #ruby
aclearma_ has joined #ruby
<jhass>
I assumed you used RVM sicne you mentioned it above
<jhass>
you likely don't have to use RVM
<cyberfab007>
yes I did,
<cyberfab007>
sorry , was just confused I am new to ruby
<cyberfab007>
am really liking it tho :)
* jhass
still waits of a description of what actually fails
<sevenseacat>
jhass: gl
aclearma_ has quit [Client Quit]
vdamewood has joined #ruby
spyderman4g63 has joined #ruby
<cyberfab007>
the script runs from the command line but not when that bash command is run from PHP and its because I do not have RVM installs
<cyberfab007>
rvm installd
n008f4g_ has joined #ruby
topolinux has joined #ruby
aclearma_ has joined #ruby
aclearman037 has quit [Ping timeout: 246 seconds]
<jhass>
maybe, maybe not
<jhass>
impossible to tell without saying what the problem is
<cyberfab007>
no I have this working on another server fine
<jhass>
doesn't matter
csk157 has joined #ruby
lanemeyer has joined #ruby
csk157 has quit [Max SendQ exceeded]
spyderma_ has joined #ruby
lsmola has joined #ruby
nettoweb has joined #ruby
<cyberfab007>
the scripts works on this server too, it is just execting the script using bash command with a ruby wrapper from my php script thats not working well
<cyberfab007>
well , I mean at all
spyderman4g63 has quit [Ping timeout: 264 seconds]
Morkel has quit [Quit: Morkel]
davedev2_ has quit [Remote host closed the connection]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimod1 has joined #ruby
zachrab has joined #ruby
dapadoupas has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
craigp_ has joined #ruby
csk157 has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
<jhass>
you yet have to describe your error and what you're concretely doing though
csk157 has quit [Max SendQ exceeded]
freerobby has joined #ruby
Parker0 has joined #ruby
livingstn has joined #ruby
<cyberfab007>
the error is the script does not run because I don't have RVM installed
freerobby has quit [Read error: Connection reset by peer]
jimms has joined #ruby
ismaelga has quit [Remote host closed the connection]
decoponyo has joined #ruby
djcp has joined #ruby
harley has joined #ruby
fryguy9 has quit [Ping timeout: 245 seconds]
JDiPierro has quit [Remote host closed the connection]
<harley>
anyone know how i can execute cmd commands from a .rb?
<brb3>
backticks
decoponio has quit [Ping timeout: 264 seconds]
RDash has quit [Quit: This device has been compromised!]
jimms has quit [Ping timeout: 252 seconds]
RDash has joined #ruby
RDash has quit [Changing host]
RDash has joined #ruby
jimms has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Remote host closed the connection]
jerius has joined #ruby
thsig has joined #ruby
Tomasso has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Remote host closed the connection]
hs366 has quit [Quit: Leaving]
werelivinginthef has joined #ruby
<jhass>
harley: several ways, which one to recommend depends on what you're doing
wald0 has joined #ruby
sent1nel has joined #ruby
The_Phoenix has quit [Ping timeout: 250 seconds]
Morkel has joined #ruby
jimms has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
Advocation has joined #ruby
<harley>
jhass: i have a ruby function, within the function there is a loop, each iteration of the loop presents a different output, i want to use that output to create a new firewall rule
livingstn has quit [Ping timeout: 256 seconds]
<jhass>
so you're not interested in what the command you run outputs but at most in whether it succeeds or not
vt102 has joined #ruby
<jhass>
I would recommend the array form of Kernel#system
<harley>
i dont know why this happens: when i execute system(exec("echo #{somevarinrubyprogram}"). The execution of the ruby program just stops. How do I make it continue executing the rest of the ruby program?
mtrythall has joined #ruby
<harley>
it executes the command properly, but then just ends
quazimod1 has quit [Ping timeout: 252 seconds]
enterprisedc has joined #ruby
zachrab has joined #ruby
Gonzih has quit [Quit: WeeChat 1.0.1]
sent1nel_ has quit [Remote host closed the connection]
elbow has quit [Remote host closed the connection]
DeanH has joined #ruby
psy_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
pandaant has joined #ruby
livathin_ has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 252 seconds]
livathinos has joined #ruby
aapole has joined #ruby
bruno- has joined #ruby
iamjarvo has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
shum has joined #ruby
craigp_ has quit []
<gregf_>
>>system("echo \"foo\""); puts "gone past foo"
sinkensabe has quit [Remote host closed the connection]
plashchynski has joined #ruby
vdamewood has joined #ruby
mikepack has joined #ruby
Dopagod has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fryguy91 has joined #ruby
axl_ has joined #ruby
jlast has joined #ruby
fryguy9 has quit [Ping timeout: 250 seconds]
<jhass>
harley: That's because Kernel#exec replaces the current process, that is it's job
<cyberfab007>
ok so I almost got everything back to normal
<jhass>
harley: just don't put that exec in there
<harley>
ah ok, i simple used system, works fine noe
<harley>
thank you
spider-mario has joined #ruby
vvivv has joined #ruby
Timgauthier has joined #ruby
<cyberfab007>
/home/cyberfab007/.rvm/wrappers/ruby-2.2.0/linkedin-scraper ok everything is set up but the gem is not in the directory
crueber has joined #ruby
<cyberfab007>
how do I creat the wrapper someone have a link ?
<jhass>
rvm help wrapper does not explain?
wald0 has quit [Quit: Lost terminal]
aapole has quit [Ping timeout: 250 seconds]
<cyberfab007>
it explains , but there are so may options I dont know which one to pick to make it like on my original server
allcentury has joined #ruby
<jhass>
well, some random guide on the internet won't either
zenith_ has quit [Read error: Connection reset by peer]
tus has joined #ruby
<jhass>
rule of thumb is to specify as few as possible I'd say
zenith_ has joined #ruby
rkmylo has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
JDiPierro has joined #ruby
watmm1 has joined #ruby
Macaveli has quit [Ping timeout: 246 seconds]
thsig has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
Ankhers has joined #ruby
<rkmylo>
hi all, i'm trying to implement some tests in ruby (cucumber/watir-webdriver) and i want to define a static class that will represent a global state that all other class/page-objects can access and modify. my approach was to define a global variable in env.rb that holds an instance of the class that represents the desired state. initialization is done in env.rb as: `$state = State::Instance.new` and i'm trying to access $state from within other c
<rkmylo>
lasses as: `x = "#{$state.some_method}"`. this results in: "undefined method `some_method' for nil:NilClass (NoMethodError)". any ideas?
deryl is now known as ddd
Jinkins has joined #ruby
<watmm1>
I'm trying to run an Amazon Web Services script but get the following error: `require': cannot load such file -- AWS (LoadError). I have the aws and aws-sdk-core gems installed, but i don't know how to provide the correct "AWS" class. Any ideas?
<rkmylo>
it is assumed that some_method has been defined in module State, class Instance
brb3 has quit [Quit: ZZZzzz…]
<cyberfab007>
I try this
<jhass>
rkmylo: your initialization is probably at the wrong point, consider a singleton pattern instead, stdlib ships it as a module
cpt_yossarian has quit [Ping timeout: 265 seconds]
mahmoudmahfouz has joined #ruby
<rkmylo>
jhass: as you also mentioned, it indeed seems like initialization is done at the wrong point, however i can't find the guidelines i need! i'll try the singleton pattern. thanks
bMalum has joined #ruby
RegulationD has joined #ruby
<jhass>
cyberfab007: your copy paste failed again?
<rkmylo>
@jhass: well, google was a bit aggressive re ruby + singleton pattern: http://goo.gl/KcOUKD :)
hs366 has quit [Remote host closed the connection]
sent1nel has joined #ruby
<cyberfab007>
no sorry that was the command I ran
workmad3 has joined #ruby
<cyberfab007>
this is the error
<cyberfab007>
Unknown ruby interpreter version (do not know how to handle): linkedin-scraper.
hollywood has joined #ruby
<watmm1>
Can someone tell me how to handle "cannot load such file" LoadError's?
<jhass>
rkmylo: I think the Singleton module is fit for your usecase
mitchellhenke has joined #ruby
<jhass>
watmm1: depends what you mean by handle
<jhass>
you want to make the require optional or they fail while you expect them to succeed?
Jinkins has quit [Quit: This computer has gone to sleep]
shevy has joined #ruby
<cyberfab007>
maybe I must restart ruby?
<cyberfab007>
is that even possible lol
<rooby>
did some googling and all answers seem to be to set locale to UTF-8
<jhass>
cyberfab007: and you do gem install, not sudo gem install ?
jonr22 has joined #ruby
<atmosx>
I don't sudo for I am root!
<preyalone>
jhass: What? Let me provide more context: I've got a nifty specs ruby CLI program, that I want to be able to run `nvm --version`, where nvm is an alias defined in ~/.bashrc. https://github.com/mcandre/specs
<jhass>
rooby: and `locale` reports it correctly for all values?
<cyberfab007>
lol , it magially worked after 5 times I try
<havenwood>
cyberfab007: it's more likely that you're changing your commands :P
<jhass>
cyberfab007: ^ or the context you run them in
<havenwood>
Volis: add `/cygdrive/c/Ruby21-x64/bin` to PATH, did you build Ruby yourself?
<havenwood>
Volis: I'd think RubyInstaller or Chocolatey would do that for you. I'd have to google how to add a dir to PATH in Win, dunno.
<jhass>
rooby: their travis build runs only on ruby 2.2 and ruby-head, ruby 2.0 did change the default when reading source files from ascii to utf-8, it's likely that ruby 1.9 is just not supported by it, it EOLs today anyway
<Volis>
havenwood: I had installed it from cygwin installer. I also have it installed from the Ruby for Windows installer.
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Volis>
havenwood: Ah, alright. Thanks for your help!
<rooby>
jhass: so upgrading ruby version should fix it?
michael_mbp has quit [Excess Flood]
<havenwood>
Volis: No prob, happy hacking!
werelivinginthef has joined #ruby
<jhass>
rooby: I think so
<cyberfab007>
what the hell does this mean
<cyberfab007>
/home/cyberfab007/.rvm/gems/ruby-2.2.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:262:in `block in fetch'
<preyalone>
jhass: New constraint: How can I load the user's shell settings into system('...') / `...`, without explicitly calling bash, as I want this to work for cmd.exe, zsh, etc.
<jhass>
cyberfab007: that looks like part of a backtrace, the error should be above it
strixd has quit [Quit: 500]
terlar has quit [Quit: WeeChat 1.1.1]
<jhass>
preyalone: no idea about cmd.exe, most UNIXes should have ENV['SHELL'] set
serivichi has joined #ruby
michael_mbp has joined #ruby
<cyberfab007>
/home/cyberfab007/.rvm/gems/ruby-2.2.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:262:in `block in fetch'
<cyberfab007>
this
Zesty has joined #ruby
<cyberfab007>
I mean this
terlar has joined #ruby
<cyberfab007>
home/cyberfab007/.rvm/gems/ruby-2.2.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:933:in `response_read': 999 => for -- http://id.linkedin.com/pub/wasis-kartijoso/28/762/625 (Mechanize::ResponseCodeError)
<cyberfab007>
thank you for all your help , the ip is blocke dI gotta put a support ticket in and do some compaing
<havenwood>
Volis: Kill it with fire. (Delete it.)
<Volis>
oh
Jinkins has joined #ruby
seitensei has quit [Remote host closed the connection]
mhenrixon|afk is now known as mhenrixon
terlar has quit [Quit: WeeChat 1.1.1]
jenrzzz has joined #ruby
terlar has joined #ruby
<havenwood>
Volis: There's a longstanding Ruby switcher for Win I've heard of called pik, or a new multi-platform one that works on Win called uru: https://bitbucket.org/jonforums/uru
ta has joined #ruby
<catsoup>
maybe only delete it if you're sure you won't get the same ip next time?
Morkel has quit [Quit: Morkel]
<havenwood>
Volis: ^ If you want to do switching instead of having one Ruby, your choice. One Ruby is of course a bit simpler!
<Volis>
a lot, yes
terlar has quit [Client Quit]
serivichi has quit [Ping timeout: 244 seconds]
<Volis>
If this frustrates me anymore, I'll install this piece of shit on the virtual machine
terlar has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
rocknrollmarc has joined #ruby
JDiPierro has quit [Remote host closed the connection]
stef204 has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
agarie has quit [Remote host closed the connection]
<havenwood>
Volis: Something like a recent Fedora really does make it pleasant: yum install ruby && gem install bundler
mary5030 has quit [Remote host closed the connection]
longfeet has quit [Ping timeout: 255 seconds]
swgillespie has quit [Client Quit]
Jinkins has quit [Quit: This computer has gone to sleep]
fryguy91 has quit [Quit: Leaving.]
lolmaus has joined #ruby
lemur has joined #ruby
oki has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
rbennacer has joined #ruby
Cadillactica has joined #ruby
scripore has joined #ruby
rocknrollmarc has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 265 seconds]
<scripore>
I'm making a command line application. Is there any way to make a url link clickable?
fryguy9 has joined #ruby
lemur has quit [Remote host closed the connection]
ghostmoth has joined #ruby
lemur has joined #ruby
Cadillactica has quit [Client Quit]
Cadillactica has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
kalusn has quit [Remote host closed the connection]
tvw has joined #ruby
Lorn3r has joined #ruby
lolmaus has quit [Remote host closed the connection]
<shevy>
scripore that depends on the terminal you use. in gnome-terminal you can get that
<havenwood>
withnale_: `exit!` won't run the `at_exit` or any finalizers. Looking to see if I can find a way to actually clear the `at_exit` procs.
vvivv has quit [Quit: Leaving]
lolmaus has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
<withnale_>
It's ok. Found a way around it now. It wasn't the root cause of my problem
<scripore>
will it work with bash?
vvivv has joined #ruby
Megtastique has quit []
<havenwood>
weaksauce: Ah good.
topolinux has quit [Quit: Sto andando via]
RegulationD has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<shevy>
scripore bash itself has no way to understand linkable-links, you really need to use a terminal that supports click-actions; gnome-terminal works for sure, I think kde konsole may also work somehow but I am unsure
mkaesz has joined #ruby
<havenwood>
I don't know of a `ObjectSpace.undefine_finalizer` equivalent for `at_exit`.
<scripore>
ah, okay. thank you.
maximski has joined #ruby
tvw has quit [Client Quit]
lemur has quit [Ping timeout: 244 seconds]
jespada has quit [Ping timeout: 244 seconds]
Hobogrammer has joined #ruby
tunaCanBruh has joined #ruby
cpt_yossarian has quit [Ping timeout: 255 seconds]
poguez_ has joined #ruby
Crisix has joined #ruby
Timgauthier has joined #ruby
<Cadillactica>
possible to sort Ruby objects by two attributes such as Last Name (reverse order), First Name (reverse order), so that objects with same last name are sorted by first name?
s7ry93r has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
rbennace_ has joined #ruby
rbennace_ has quit [Remote host closed the connection]
withnale_ has quit [Ping timeout: 252 seconds]
fmcgeough has quit [Quit: fmcgeough]
RegulationD has quit [Ping timeout: 244 seconds]
sushant94 has joined #ruby
adamjleonard has joined #ruby
<jhass>
Cadillactica: you can pass a block to sort, or if it's your own class define <=> accordingly, see the Comparable module
bhaak has joined #ruby
<jhass>
a quick way would be .sort_by {|x| [x.last_name, x.first_name] }, though that does many unnecessary array allocations
graydot has joined #ruby
adamjleonard has quit [Client Quit]
nopewatelse has joined #ruby
withnale_ has joined #ruby
<Cadillactica>
jhass: I’m familiar with that approach but how would I do the same thing, except reverse order?
rbennacer has quit [Ping timeout: 264 seconds]
<Cadillactica>
two <=> statements inside of an array used with sort?
send has quit [Remote host closed the connection]
s7ry93r has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
it0a has joined #ruby
<jhass>
I'd say pass a block to sort and understand what <=> returns (and thus what your block should return)
ZoanthusR has quit [Quit: Leaving...]
Megtastique has joined #ruby
SirFunk has quit [Remote host closed the connection]
SirFunk has joined #ruby
zachrab has joined #ruby
<Timgauthier>
anyone have their computer set to german who could just look at somethin for me?
Limix has joined #ruby
yxejamir has joined #ruby
hemanth1 has quit [Remote host closed the connection]
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
jespada has joined #ruby
ZoanthusR has joined #ruby
dfinninger has quit [Remote host closed the connection]
<bhaak>
Timgauthier: what OS?
s7ry93r has joined #ruby
Troy^ has joined #ruby
zachrab has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
allcentury has joined #ruby
fabrice31 has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<shevy>
my computer is a natural born german
<shevy>
actually
<shevy>
I just noticed that I was using english locales anyway - german errors confuse the hell outta me :\
ghostpl_ has quit [Remote host closed the connection]
zachrab has joined #ruby
kiely_elsewhere is now known as kiely
withnale_ has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Soda has quit [Ping timeout: 256 seconds]
Dopagod has quit [Ping timeout: 245 seconds]
amacou has quit [Remote host closed the connection]
wallerdev has joined #ruby
rocknrollmarc has joined #ruby
Timgauthier is now known as timgauthier_away
rocknrollmarc has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has quit [Remote host closed the connection]
Soda has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
sambao21 has joined #ruby
juanpaucar has joined #ruby
_djbkd has joined #ruby
Jinkins has joined #ruby
foureight84 has joined #ruby
scripore has joined #ruby
tvon has quit [Quit: leaving]
scripore has quit [Client Quit]
agarie has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
zling has joined #ruby
thsig has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
<Jonah11_>
is there an elegant way to combine "select" and "first(n)", returning the first n elements of an array that match the criterion specified in a block?
Megtastique has joined #ruby
mjuszczak has quit []
<jhass>
so not take_while ?
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
<Jonah11_>
jhass, that's my soln right now, but it involves introducing a "ret" array, and i'm not happy with it.
anaeem1 has quit [Remote host closed the connection]
Jinkins has quit [Quit: This computer has gone to sleep]
wasamasa has joined #ruby
wasamasa has quit [Changing host]
wasamasa has joined #ruby
silkfox has joined #ruby
dangerousdave has quit [Client Quit]
lnr has joined #ruby
<shevy>
lol
<shevy>
such a high tech country
<shevy>
and cracked down by nature's force
<shevy>
be it a tsunami or simple snow
wicope has quit [Remote host closed the connection]
_honning_ has joined #ruby
teddyp1cker has quit []
lnr has left #ruby [#ruby]
jottr has joined #ruby
pietr0 has quit [Ping timeout: 246 seconds]
gfawcettpq has quit [Ping timeout: 252 seconds]
pengin has quit [Remote host closed the connection]
Jonah11_ has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
_ixti_ has quit [Ping timeout: 264 seconds]
decoponyo has quit [Quit: Leaving...]
<Timgauthier>
hanmac shevy thats just an example of shitting light fixtures :P
Jinkins has joined #ruby
<Timgauthier>
The truckers in Canada stopped using LED's cause they had similar problems
<Timgauthier>
I think volvo's solution was to pipe engine heat over the light lenses
<Timgauthier>
why not a super small element in the light lenses at the stoplights to have a heating element?
paulfm has quit [Quit: Zzzzz...]
juanpaucar has quit [Remote host closed the connection]
chrishough has joined #ruby
mhenrixon is now known as mhenrixon|afk
zenith__ has quit [Remote host closed the connection]
Jinkins has quit [Client Quit]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
_djbkd has quit [Ping timeout: 245 seconds]
JDiPierro has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
aclearman037 has quit [Quit: I'm out!]
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
<bricker>
What do you guys think is the most underused feature of Ruby?
randiman has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
<hanmac>
bricker: rails? XD
Guest14243 is now known as Dai-chan
<havenwood>
hanmac: You mean Ruby is the most underused feature of Rails. :P
alyosha has joined #ruby
codecop has quit [Remote host closed the connection]
Lildirt has joined #ruby
<hoelzro>
probably something like __END__
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_honning_ has quit [Ping timeout: 256 seconds]
<hanmac>
i have seen cases where eval got overused where send would be better
<GaryOak_>
I think dynamic dispatch in Ruby is pretty cool
amacou has joined #ruby
<GaryOak_>
but the use cases are limited
<havenwood>
bricker: Kernel#abort and Kernel#warn seem underused. I fairly often see `STDERR.puts; exit 1` or whatev.
<havenwood>
bricker: Many of the methods on Enumerable.
* Nilium
has largely switched to languages without dynamic dispatch because people who find dynamic dispatch cool tend to use it as the hammer for all nails.
ta has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
dfinninger has joined #ruby
<GaryOak_>
haha
baroquebobcat has joined #ruby
<Nilium>
Also because Ruby's enormous amount of gems is mostly a garbage swamp, but that's just the nature of having an open environment, I think. Same with node.js and npm (except node.js is infinitely worse than Ruby).
charliesome has quit [Quit: zzz]
brb3 has quit [Quit: ZZZzzz…]
<GaryOak_>
for the most part the gems get vetted, unless there is a super specific reason for them to exist
* hanmac
never needed the flip flop operator before in a use case ...
RegulationD has joined #ruby
<GaryOak_>
hence why it's underused
<havenwood>
>.>
<havenwood>
That's why... right. :P
<GaryOak_>
and because it looks like a range function
FooMunki has quit [Quit: FooMunki]
<havenwood>
It'll be gone in Ruby 3.0.
<havenwood>
Where it'll be used roughly as much as it currently is, not at all.
<GaryOak_>
hahaha
<pipework>
havenwood: You've never emulated hardware so that you can emulate software in software that's emulating hardware?
<pipework>
Caveman.
brb3 has joined #ruby
brb3 has quit [Client Quit]
<havenwood>
pipework: The proceeds of proceeds are no longer proceeds under the revised rules of proceeds.
workmad3 has joined #ruby
<havenwood>
pipework: :)
<havenwood>
I guess that's about it.
<pipework>
havenwood: Then let us proceed to proceed, so that I can proceed to proceedings that proceed in the manner befitting the proceeds appropriate for such proceedings.
centrx has quit [Quit: Shutting down, Please wait...]
cajone has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 245 seconds]
<shevy>
if you have a module Foo; def bla ... and several more methods. Now, bla() shall also become a class method aka Foo.bla() how would you do this?
baweaver has joined #ruby
x1337807x has joined #ruby
<shevy>
my current way is to: def self.bla() and then also define another method bla that will point to Foo.bla
kalusn has quit [Remote host closed the connection]
_djbkd has joined #ruby
<hoelzro>
shevy: you mean you want to be able to mixin Foo and have it be a method on the mixing class, but also available as a class method?
charliesome has quit [Quit: zzz]
<hoelzro>
I thought there was something like module_function :bla for that
<rooby>
could anyone help me add a `sort_by` to an irc bot that is returning a stream list with viewer number? New to ruby and can't wrap my head around it? At the moment it returns streams along the line of "<Bot> http://www.twitch.tv/streamX (17) http://www.twitch.tv/streamY (29)", I'd like it to list them by the viewer number in ascending or descending order if someone could help?
thiagovsk has quit [Quit: Connection closed for inactivity]