bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
war_pigs has joined #ruby
braincrash has joined #ruby
iMadper is now known as iMadper|nPlus6
pilne has quit [Quit: Quitting!]
benlieb has quit [Quit: benlieb]
s2013 has joined #ruby
TheWhip has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
squ has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
astrobunny has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
<sparr>
Radar: I leave the definition of "saner" in the hands of the person making the recommendation. I personally think converting "if foo; bar; end" to "foo if bar" only makes sense if foo and bar are really short. rubocop suggests it for arbitrarily complex expressions
<K1WIZ>
question: if I have two integer variables and I want to use a case switch testing a boolean expression, how could I do that?
astrobunny has quit [Read error: Connection reset by peer]
<sparr>
and I'm happy to switch n==0 to n.zero? for a single comparison, but not if it's in the middle of a dozen other comparisons to integers other than zero
astrobunny has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
djbkd_ has quit [Remote host closed the connection]
TheWhip has joined #ruby
djbkd has joined #ruby
milardovich has joined #ruby
hahuang61 has quit [Quit: WeeChat 1.5]
hahuang65 has joined #ruby
naprimer_3 has joined #ruby
govg has quit [Ping timeout: 255 seconds]
naprimer_2 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
Channel6 has quit [Quit: Leaving]
tau has quit [Quit: i dont know what to say but i know lmt is gay.]
milardovich has joined #ruby
bkxd has joined #ruby
renchan has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cibs has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
JeanCarloMachado has joined #ruby
govg has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
cibs has joined #ruby
Guest92924 has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 255 seconds]
msg has joined #ruby
msg is now known as Guest23125
modlin has joined #ruby
milardovich has joined #ruby
astrobunny has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 260 seconds]
astrobunny has joined #ruby
jaequery has joined #ruby
milardovich has joined #ruby
naftilos76 has joined #ruby
armando has quit [Ping timeout: 258 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest87296 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 255 seconds]
madsa has joined #ruby
madsa is now known as Guest7221
elifoster has quit [Ping timeout: 240 seconds]
myk267 has joined #ruby
milardovich has joined #ruby
teclator has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 260 seconds]
alan_w has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
Guest23125 has quit [Remote host closed the connection]
armando has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
milardovich has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
msg has joined #ruby
msg is now known as Guest56447
JeanCarloMachado has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 240 seconds]
alan_w has joined #ruby
montanonic has joined #ruby
xall has quit [Read error: No route to host]
xall has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
milardovich has joined #ruby
Guest56447 has quit [Ping timeout: 268 seconds]
jtdoncas has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
NeverTired has quit [Quit: Connection closed for inactivity]
jtdoncas has joined #ruby
truenito has joined #ruby
mim1k has joined #ruby
jtdoncas has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 240 seconds]
aderuwe has joined #ruby
<aderuwe>
Hi all - "gem install bundler" (or really, any gem) results in "incompatible character encodings: ASCII-8BIT and UTF-8" - anyone could offer a clue?
<aderuwe>
tried most things google searching told me to try
SteenJobs has joined #ruby
<elomatreb>
aderuwe: We're going to need the full error, with stacktrace
bkxd_ has joined #ruby
<aderuwe>
elomatreb: how do i get a stacktrace from gem?
bkxd has quit [Ping timeout: 255 seconds]
<elomatreb>
Paste the entire output the failing command (gem install...) gives you
sysvalve has joined #ruby
<aderuwe>
ok
<jamesaxl>
hi
SteenJobs has quit [Ping timeout: 240 seconds]
eblip has quit [Read error: Connection reset by peer]
<manveru>
Diabolik: just ignore the bot :)
bkxd_ has quit [Ping timeout: 260 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
nadir has quit [Quit: Connection closed for inactivity]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
mikecmpbll has joined #ruby
charliesome has joined #ruby
nettoweb has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
opt9 has quit [Quit: Bye bye]
opt9 has joined #ruby
rafadc has joined #ruby
Pumukel has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
xall has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
harai_ has quit [Ping timeout: 255 seconds]
<kke>
there doesn't seem to be anything like "rbenv 2.1.0 do foo"
<kke>
rvm had that
<kke>
i guess i'm supposed to "rbenv shell 2.1.0; foo" then
<kke>
but that leaves me with a different ruby than i had in that shell session
cibs has quit [Ping timeout: 268 seconds]
sarbs has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Quit: Leaving.]
sarbs has joined #ruby
TheWhip has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
cibs has joined #ruby
cansado_ has joined #ruby
<cansado_>
Hijos de puta
Mortomes|Work has joined #ruby
pwnd_nsfw` has joined #ruby
<cansado_>
Bastards!!!
opt9 has quit [Quit: Bye bye]
Robtop__ has quit [Ping timeout: 240 seconds]
Robtop__ has joined #ruby
truenito has quit [Ping timeout: 268 seconds]
TheWhip has quit [Remote host closed the connection]
<manveru>
anw, the bot always complains about irccloud, but i think it's wrong
<manveru>
it has good syntax highlighting, no distracting formatting, and loads fast for everyone who's not on GPRS
psychicist__ has joined #ruby
synthroid has joined #ruby
TheWhip has joined #ruby
Slinky_Pete has quit [Ping timeout: 255 seconds]
prestorium has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
blackwind_123 has joined #ruby
jaruga______ has quit [Remote host closed the connection]
jaruga______ has joined #ruby
jameser has joined #ruby
jaruga______ has quit [Client Quit]
jgnagy has quit [Ping timeout: 240 seconds]
rwb has quit [Ping timeout: 240 seconds]
jaruga______ has joined #ruby
jaruga_______ has joined #ruby
jaruga_______ is now known as jaruga
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaruga______ has quit [Ping timeout: 260 seconds]
jose_leeto has joined #ruby
SteenJobs has joined #ruby
Guest66382 has quit [Remote host closed the connection]
emilkarl has joined #ruby
<Diabolik>
manveru: i only recently switched to irccloud
<Diabolik>
its incredible
<Diabolik>
i used to use a ZNC but it was a pain with multiple computers etc
SteenJobs has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
loechel has joined #ruby
interki has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 240 seconds]
aupadhye is now known as aupadhye|brb
lxsameer has quit [Read error: Connection reset by peer]
SteenJobs has joined #ruby
lxsameer has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
interki has joined #ruby
bmurt has joined #ruby
abelnor has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chudi has left #ruby ["Leaving"]
lxsameer has quit [Ping timeout: 255 seconds]
JoshS has joined #ruby
<aderuwe>
elomatreb: am i lucky enough to still find you here? :)
malconis has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
squ has quit [Remote host closed the connection]
dionysus70 has joined #ruby
malconis has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
jtdoncas has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus70 is now known as dionysus69
mogaj has quit [Remote host closed the connection]
Mortomes|Train has joined #ruby
malconis has joined #ruby
rafadc_ has joined #ruby
emilkarl has quit [Quit: emilkarl]
dionysus69 has quit [Ping timeout: 260 seconds]
rafadc has quit [Ping timeout: 260 seconds]
emilkarl has joined #ruby
aupadhye|brb is now known as aupadhye
jlebrech has joined #ruby
Noxid_ has joined #ruby
msg has joined #ruby
mwlang has joined #ruby
msg is now known as Guest81777
SteenJobs has joined #ruby
Derperperd has joined #ruby
mark_66 has quit [Read error: Connection reset by peer]
mark_66 has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
<jlebrech>
hi i'm trying to sort_by multiple attributes, but using -item.attribute to reverse the order of that sorted attribute doesn't seem to work. https://repl.it/Fres
stomar has joined #ruby
SteenJobs has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
<jlebrech>
oh crap, think i've got it
SteenJobs has joined #ruby
padi_ has joined #ruby
<jlebrech>
ok, maybe not. can't reverse an attribute order still
raspado has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
padi_ has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 268 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
raspado has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
ramortegui has joined #ruby
<K1WIZ>
if I have two integer variables and I want to use a case switch testing a boolean expression, how could I do that?
ramblex has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<K1WIZ>
jlebrech, perfect! that's exactly what I was looking for. I think that will work.
Kilo`byte has joined #ruby
<K1WIZ>
thank you guys
<jlebrech>
i need to sort_by alphabetically and also by other attributes. looks like sort_by with strings doesn't work with multiple attributes. any ideas?
jtdoncas has joined #ruby
ifctj has joined #ruby
griffindy has joined #ruby
mwlang has joined #ruby
Rodya_ has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mortomes|Train has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
Snickers has joined #ruby
jameser has quit [Client Quit]
jsrn has joined #ruby
__Yiota has joined #ruby
stomar has quit [Quit: Konversation terminated!]
modlin has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
[reed] has quit [Ping timeout: 258 seconds]
<K1WIZ>
jlebrech, can you take another look at https://repl.it/FrgK/2 - this is what I'm trying to do. I need to test a logical AND between two binary states (1 or 0) as read from a gpio. The var is stored as an int.
<dminuoso>
Then you can name it whatever you want. :have_children for example
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anagha_ has quit [Quit: Connection closed for inactivity]
<Noxid_>
sorry i'm kind of new to ruby but I tried --with-static-linked-ext and that didn't seem to give the result I expected (even after configuring the ext/Setup file)
modlin has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<Noxid_>
I don't have the option to require it in the script because of the circumstances of my environment
gusrub has quit [Remote host closed the connection]
<TomyWork>
the first comma there cant possibly be a method parameter separator for the call to the "commented" method, since then the "=>" would be a syntax error
<TomyWork>
or am i missing something?
synthroi_ has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
ifctj has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
<K1WIZ>
Hi, I'm getting an error on my switch. https://repl.it/FrgK/12 "unexpected end of input" Not sure what I'm doing wrong.
nobitanobi has quit [Remote host closed the connection]
<TomyWork>
let me rephrase that
<TomyWork>
K1WIZ the problem seems to stem from the end corresponding to the loop do?
<TomyWork>
oh wait
<TomyWork>
the case in line 6 is missing an end
cibs has joined #ruby
<TomyWork>
the for in line 16 doesnt look any better
<K1WIZ>
TomyWork, I'm new to programming (and ruby). I'm trying to build a mode switch for a device that has two buttons (red and green) when both are pushed, I want to call a rotary toggle function that increments a variable by one (within a range of 1-3) and depending ont he value of that variable, switch a mode. WHen the count of that variable exceeds 3, it starts at 1 again.
centrx_ has joined #ruby
<TomyWork>
K1WIZ not going to comment on whether that code achieves what you want it to achieve, but check your code for missing ends like i said
<K1WIZ>
jlebrech, interesting! only thing is, can't have an empty set for the mode.
millerti has joined #ruby
synthroid has joined #ruby
<jlebrech>
K1WIZ: empty set?
<K1WIZ>
the '' (first field int eh array)
Robtop__ has quit [Ping timeout: 260 seconds]
jcao219 has joined #ruby
<jlebrech>
you're cycling through 1 and 3. and arrays start at 0
cagomez has quit [Remote host closed the connection]
<K1WIZ>
ahh! ok
tau has quit [Remote host closed the connection]
<K1WIZ>
but:
YOUR_NIC has joined #ruby
tau has joined #ruby
<K1WIZ>
when the mode cycles around to start over... wouldn't the function pass the empty set since the array starts at 0?
cagomez has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
rafadc has quit [Ping timeout: 255 seconds]
blackwind_123 has joined #ruby
lonewolf has joined #ruby
<K1WIZ>
I counted 10 seconds between the last mode (C4FM and DSTAR) which means it must be stopping at zero - but it prints nothing because it is empty.
cagomez has quit [Remote host closed the connection]
mholmes has joined #ruby
<jlebrech>
puts @i
<K1WIZ>
would want the logic to cycle from the C4FM mode directly to the DSTAR mode.
mim1k has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
markholmes has quit [Ping timeout: 260 seconds]
jsrn has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xen0fon has joined #ruby
A124 has quit [Client Quit]
nobitanobi has joined #ruby
Guest79771 has quit [Ping timeout: 260 seconds]
Guest79771 has joined #ruby
User458764 has joined #ruby
jsownz has joined #ruby
blackmesa has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
Guest79771 has quit [Max SendQ exceeded]
Guest79771 has joined #ruby
Slinky_Pete has joined #ruby
hays has quit [Ping timeout: 255 seconds]
skweek has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
skweek has joined #ruby
Guest79771 has quit [Max SendQ exceeded]
war_pigs has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
_aeris_ has quit [Remote host closed the connection]
Guest79771 has joined #ruby
milardovich has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
ecuanaso has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
montanonic has quit [Ping timeout: 240 seconds]
Guest79771 has quit [Max SendQ exceeded]
P1ro has quit [Remote host closed the connection]
Guest79771 has joined #ruby
wilbert has quit [Ping timeout: 260 seconds]
_aeris_ has joined #ruby
nobitanobi has quit [Ping timeout: 268 seconds]
last_staff has quit [Remote host closed the connection]
esObe has joined #ruby
last_staff has joined #ruby
elementaru has quit [Remote host closed the connection]
jcao219 has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
wilbert has joined #ruby
P1ro has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
last_staff has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
montanonic has joined #ruby
patarr has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
dn5 has joined #ruby
last_staff has joined #ruby
millerti has joined #ruby
Renich has quit [Quit: leaving]
millerti has quit [Client Quit]
<ivanskie>
why isn't anyone talking? so odd on this channel. used to see so much activity
OMGtechy has quit [Remote host closed the connection]
<centrx>
It varies
OMGtechy has joined #ruby
<centrx>
Also a #ruby-offtopic channel was created, reducing the traffic in this channel
<ivanskie>
good point
<centrx>
Also related activity on #rubyonrails of course
Lord_of_Life has quit [Excess Flood]
last_staff has quit [Remote host closed the connection]
mwlang has joined #ruby
Lyubo1 has quit [Ping timeout: 260 seconds]
Lord_of_Life has joined #ruby
<ivanskie>
anyone use Fedora as their dev env?
* OMGtechy
raises hand
<OMGtechy>
am on it now
<ivanskie>
i haven't touched Fedora for years, until recently. noticed that it's got its own way of handling ruby versions. so just wondering if anyone is working on their Ruby stuff within Fedora. or is it generally avoided
tomphp has joined #ruby
<OMGtechy>
for me, it's a matter of "my desktop env is Fedora, therefore I dev on fedora"
<ivanskie>
to me its like o.O -- thats different. so i need not use rbenv now?
<ivanskie>
cool so you don't know of any issues with that?
Snickers has quit [Quit: Snickers]
<OMGtechy>
no, but I don't do much Ruby dev so I may not be the best to ask :)
aspiers has quit [Ping timeout: 255 seconds]
<ivanskie>
ok let me rephrase. what do you do? do you use its own ruby version handling, or still install rbenv and stuff?
<ivanskie>
oh ok
<eam>
we build a relocatable ruby and develop against that on rhel
dn5 has quit [Quit: leaving]
<ivanskie>
whats relocatable ruby again?
<eam>
say you deploy an app into /apps/foo-app and you have a ruby in /apps/foo-app/bin/ruby
<eam>
maybe /apps/bar-app has a different ruby
<ivanskie>
right
<eam>
so the ruby is built to look for things like libraries and modules relative to its install location
<eam>
rather than
<eam>
>> $:
<eam>
sigh
<ivanskie>
makes sense
eam has quit [Changing host]
eam has joined #ruby
<eam>
>> $:
<ruby[bot]>
eam: # => ["/execpad/interpreters/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib", "/execpad/inter ...check link for more (https://eval.in/740710)
<ivanskie>
no i got it.
<ivanskie>
thats cool
<eam>
rbenv is neat if you want to change around the default ruby at a system location -- but if you have multiple things going on it becomes important to isolate
<eam>
bundle per-app too
mtkd has quit [Read error: Connection reset by peer]
xen0fon has quit [Quit: xen0fon]
mtkd has joined #ruby
mwlang has quit [Quit: mwlang]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwlang has joined #ruby
ecuanaso has joined #ruby
mogaj has joined #ruby
xen0fon has joined #ruby
A124 has quit [Quit: '']
milardovich has quit []
aspiers has joined #ruby
milardovich has joined #ruby
chouhoulis has quit [Remote host closed the connection]
last_staff has joined #ruby
A124 has joined #ruby
chouhoulis has joined #ruby
mogaj has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
tyang__ has joined #ruby
milardovich has quit [Remote host closed the connection]
tyang_ has quit [Ping timeout: 240 seconds]
browndawg has quit [Quit: Leaving]
milardovich has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
FastJack has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
mwlang has quit [Quit: mwlang]
bkxd has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
szulak has joined #ruby
t-recx has quit [Quit: t-recx]
Cohedrin has joined #ruby
zapata has quit [Quit: WeeChat 1.7]
ldnunes has quit [Quit: Leaving]
mwlang has joined #ruby
tristanp has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Guest79771 has quit [Ping timeout: 240 seconds]
debian_ has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
jcao219 has joined #ruby
millerti has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
debian_ has quit [Max SendQ exceeded]
raspado has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
debian_ has joined #ruby
debian_ has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
Definity2 has joined #ruby
centrx has quit []
tyang_ has joined #ruby
rwb has quit [Ping timeout: 260 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
jtdoncas has quit [Ping timeout: 240 seconds]
FastJack has joined #ruby
neoncortex has joined #ruby
marxarelli is now known as marxarelli|afk
last_staff has quit [Remote host closed the connection]
tyang_ has quit [Read error: Connection reset by peer]
tyang__ has quit [Ping timeout: 268 seconds]
<neoncortex>
hey, what kind of error/bug i need to search when i get: [BUG] rb_gc_mark(): 0x9545200 is T_NONE ?
zapata has joined #ruby
<dminuoso>
neoncortex, that's an internal ruby bug
<dminuoso>
neoncortex, are you using any native extensions?
tyang has joined #ruby
last_staff has joined #ruby
<neoncortex>
yes
<dminuoso>
neoncortex, please gist the full output of that error message
<anotherpi>
do someone know with the `new` method is removed form classes like Symbol, Float, Integer, Complex, etc.?
<dminuoso>
nofxx, same thing!
<dminuoso>
nofxx, neoncortex. Whats the difference.
last_staff has joined #ruby
<neoncortex>
well xD
<dminuoso>
neoncortex, ruby-install will do it for you completely. :)
<dminuoso>
neoncortex, anyway, I won't promise that it will magically fix your problem, but updating it has a good chance of fixing it.
<neoncortex>
dminuoso: i never used ruby-install so i do not know
jose_leeto has quit [Quit: Leaving.]
<dminuoso>
neoncortex, it's very easy to use and probably currently the most popular way to install Ruby on any given system: https://github.com/postmodern/ruby-install
vcavallo_ has joined #ruby
<neoncortex>
i see
raspado has joined #ruby
<neoncortex>
my processor will melt down before load the application xD
<neoncortex>
i'm still waiting it load with GC.stress
last_staff has quit [Remote host closed the connection]
<dminuoso>
neoncortex, essentially in stress mode the GC is invoked basically.. everytime Ruby can.
TomyLobo has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Read error: Connection reset by peer]
TomyLobo has joined #ruby
OMGtechy has quit [Remote host closed the connection]
markholmes has joined #ruby
mikecmpbll has joined #ruby
cjk101010 has quit [Ping timeout: 255 seconds]
ruby[bot] has quit [Ping timeout: 255 seconds]
crayfishx has quit [Ping timeout: 255 seconds]
dellavg has quit [Ping timeout: 255 seconds]
sjums has quit [Quit: Connection reset by beer]
electrostat has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
sspreitz has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: No Ping reply in 180 seconds.]
OMGtechy has joined #ruby
sjums has joined #ruby
electrostat has joined #ruby
tvw has quit [Remote host closed the connection]
montanonic has quit [Ping timeout: 240 seconds]
sspreitz has joined #ruby
camilasan has joined #ruby
cjk101010 has joined #ruby
heftig has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
Slinky_Pete has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dellavg has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
crayfishx has joined #ruby
Slinky_Pete has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ruby
<neoncortex>
dminuoso: nofxx, thanks, i'll update it and see what happens
LegenTeri has joined #ruby
hays has quit [Remote host closed the connection]
cschneid_ has quit [Read error: Network is unreachable]
cschneid_ has joined #ruby
allisio has joined #ruby
rwb has joined #ruby
rindolf has joined #ruby
<rindolf>
Hi all
last_staff has joined #ruby
<OMGtechy>
hello :)
<allisio>
anotherpi: Do you suppose it makes sense to initialize instances of those classes? What should `Float.new` be?
milardovich has quit []
montanonic has joined #ruby
raspado has quit [Remote host closed the connection]
Burgestrand has joined #ruby
<rindolf>
OMGtechy: how are you?
<anotherpi>
allisio: not really, but this classes does not respect the Class interface
last_staff has quit [Remote host closed the connection]
<OMGtechy>
rindolf, alright thanks, looking at moving role within my company at the moment, so writing a CV / pitch for it. Is exciting stuff. You?
<anotherpi>
allisio: if you want to metaprogram, they are special cases
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
<rindolf>
OMGtechy: I worked on Freecell Solver today
<rindolf>
OMGtechy: made a lot of progress
<OMGtechy>
nice :D In Ruby, or something else?
<rindolf>
OMGtechy: well, it's not written in ruby mostly
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
<allisio>
anotherpi: That's a fair assessment, but `Integer.new` would be a lie; that is, it wouldn't actually be a "constructor" in the technical sense of the term.
blackmes1 has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
last_staff has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 260 seconds]
wilbert has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
vcavallo_ has quit [Remote host closed the connection]
<anotherpi>
allisio: why a lie? Integer is a class, `1` is an instance of this class; we could say that `1` is a syntaxic sugar for `Integer.new(1)` if you think pure object.
<allisio>
anotherpi: Negative.
<anotherpi>
allisio: :o
ramortegui has quit [Quit: Ex-Chat]
<allisio>
anotherpi: It wouldn't be *constructing* anything.
Slinky_Pete has joined #ruby
<allisio>
All of the 1s in Ruby are the exact same tagged pointer.
<anotherpi>
allisio: don't confuse Ruby and the MRI implementation
<allisio>
anotherpi: Fair enough, but still.
nowhereman has joined #ruby
<allisio>
Are there any implementations that permit the definition of singleton methods on Integers?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<anotherpi>
#=> TypeError: can't define singleton
<anotherpi>
allisio: you are right on this point
<anotherpi>
so, is Integer a class?
<allisio>
anotherpi: I meant only to demonstrate that all of the 1s in Ruby are definitionally equivalent, thereby causing `Integer#new` to be a "lie".
<OMGtechy>
Before asking whether it's a class, one must choose a definition of class
<OMGtechy>
if being a class is "can call new on it", then it's a class, but that's a very narrow definition :)
hutch34 has quit [Ping timeout: 240 seconds]
<rindolf>
OMGtechy: i see
<anotherpi>
OMGtechy: true, but i does not respect the Class inteface, it's not a Class duck type either
last_staff has joined #ruby
<allisio>
anotherpi: I appreciate that the asymmetry is a little unfortunate, but it strikes me as a necessary "evil".
<anotherpi>
sorry, not sure about my 'either' use (i'm not english native)
<allisio>
You probably wanted a "nor", but your meaning came through clearly enough.
<allisio>
Just to hammer it home, are you quite sure you'd want this list to be empty? https://eval.in/740724
<anotherpi>
allisio: agreed, i'm just interogate
<OMGtechy>
anotherpi, made perfect sense :) I agree with you; if your definition of "is a" is being able to use the substitution principle, then it doesn't fit
<allisio>
The only one I don't like in there is UnboundMethod; that one should have a constructor that takes a Proc/block.
fuzzyhorns1 has quit [Quit: Leaving.]
harai_ has joined #ruby
<allisio>
`Encoding.new` would be interesting, but I don't think anyone's missing it.
tildes has quit [Ping timeout: 268 seconds]
<LegenTeri>
If everything in ruby is an object, why are variables not objects?
<allisio>
LegenTeri: How do you mean?
workmad3 has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
<LegenTeri>
I've been reading programming books, twice I've seen "everything in ruby is an object". A while ago I was reading about arrays and it said to remember that variables are not objects, as an array can't point to a variable
<anotherpi>
LegenTeri: they are not object because they are not a representation on something, just a pointer to an object :)
<LegenTeri>
I'm trying to get a better grasp of all the terms, like methods, variables, objects, ..etc
<allisio>
Some variables are both objects *and* references.
harai_ has quit [Read error: Connection reset by peer]
<allisio>
The values identified by such variables, to be technically precise.
<dminuoso>
LegenTeri, Everything in Ruby except variables, methods and blocks are objects.
msg has joined #ruby
montanonic has quit [Ping timeout: 255 seconds]
msg is now known as Guest33828
<dminuoso>
Well, methods are kind of an etchy case though.
harai_ has joined #ruby
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<anotherpi>
dminuoso: blocks too, they have an object representation: Proc
<allisio>
dminuoso: Aren't methods and variables "objects" in the same way?
<anotherpi>
but Procs are not blocks
harai_ has quit [Read error: Connection reset by peer]
<LegenTeri>
ok thanks guys
<OMGtechy>
LegenTeri, note that such terms change between languages
<dminuoso>
anotherpi, the distinction is important. blocks are basically just an optimization to avoid unnecessary object creation.
Rodya_ has joined #ruby
<anotherpi>
blocks have meaning only for Ruby code/Ruby parser, not for the Ruby VM
<anotherpi>
am i right?
<allisio>
Way off.
<LegenTeri>
So technically not everything in ruby is an object, reading stuff like that throws me off.
harai_ has joined #ruby
<dminuoso>
anotherpi, no.
<dminuoso>
anotherpi, essentially a block is actually very close to what happens inside the VM
<allisio>
LegenTeri: It's a simplification with a view to not overwhelming newcomers.
<dminuoso>
anotherpi, and a proc is an object with a block attached.
rafadc has joined #ruby
marxarelli|afk is now known as marxarelli
hunter12 has joined #ruby
<LegenTeri>
Makes sense. thanks
hunter12 has left #ruby [#ruby]
<baweaver>
hunter12: all I see if ******
<anotherpi>
dminuoso: but there is no code inside a Proc, only bytecode
<dminuoso>
asm>> foo { do_stuff }
<dminuoso>
Let's hope eval.in is working
<dminuoso>
asm>> foo { do_stuff }
<dminuoso>
asm>> foo { do_stuff }
* dminuoso
kicks rub
<dminuoso>
Where is our ruby bot :(
<baweaver>
!botsnack
<baweaver>
hrm
<baweaver>
!seen ruby[bot]
* baweaver
shrugs
rafadc has quit [Read error: Connection reset by peer]