alindeman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 260 seconds]
<cscheib>
my point was that if you wanted to know something specific about the rubygames gem, you should just ask it, rather than asking if anyone used it
<Ox0dea>
Don't tell to tell.
samgerber has quit [Remote host closed the connection]
devoldmx has joined #ruby
samgerber has joined #ruby
<Papierkorb>
rubymotion takes ages to even start on my Samssung SII ..
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peeja has quit [Ping timeout: 255 seconds]
samgerber has quit [Remote host closed the connection]
<h0wl3vvd>
hmmm how compilation ruby is looks ?
<h0wl3vvd>
compilator translate ruby code to assembly and then assembler it
<h0wl3vvd>
or how ?
solenoids has quit [Ping timeout: 245 seconds]
<Papierkorb>
h0wl3vvd: ruby is being interpreted. no compilation is done.
<h0wl3vvd>
ooohhh i see
TheBloke- has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<h0wl3vvd>
is one implementation of ruby
<h0wl3vvd>
?
TheBloke has quit [Read error: Connection reset by peer]
<Papierkorb>
what? Compiled? No
bradleyprice has quit [Remote host closed the connection]
<Ox0dea>
Papierkorb: Please stop.
<Papierkorb>
Some use JIT's, but that's more of an implementation detail#
<Ox0dea>
MRI compiles to bytecode, which gets interpreted.
<Papierkorb>
Wow, huuuge difference for the average user! (not.)
devoldmx has quit [Ping timeout: 272 seconds]
<h0wl3vvd>
Papierkorb: im asking how much implementations have ruby
<Ox0dea>
I also don't like being wrong, but I like to think I handle it better.
<h0wl3vvd>
ruby have some implementations with compilers + interpretator
<h0wl3vvd>
?
<h0wl3vvd>
hmm or maybe ruby have only one main implementation without any else ?
<Papierkorb>
Ox0dea: I wasn't wrong. Nothing is compiled. If you do that under the hood, it's an implementation detail. You can't directly call the compiler for it to produce some kind of executable code.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ox0dea>
Papierkorb: Compilation does not, in and of itself, have anything to do with native code.
nixmaniack has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
<Papierkorb>
Correct. but it has to do if you have to manually invoke it, or not, for a particular language
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
<Ox0dea>
Huh?
<havenwood>
h0wl3vvd: The reference implementation is CRuby then there's JRuby, Rubinius, Maglev, RubyMotion, mruby, etc. And then another language similar to Ruby that isn't Ruby that is compiled called Crystal.
<Papierkorb>
Especially as being "compiled (to native code)" is assumed to result in coe running with 'native performance' by many, which inn itself is a misconceptionn
jaequery has joined #ruby
<havenwood>
h0wl3vvd: There are many implementations of Ruby.
Dimik has joined #ruby
<Ox0dea>
Papierkorb: But nobody ever says "compiled (to native code)".
<h0wl3vvd>
oh okaay i see thanks
grn has quit []
<Papierkorb>
Ox0dea: Nah, let's stop it. Neither of us is wrong. Period.
<Ox0dea>
All I hear is crying.
andywojo has joined #ruby
<Papierkorb>
I don't feel like debating on the angle of persception while playing games
<Ox0dea>
Why can't we discuss the thing like civilized people?
<Papierkorb>
you didn't provide anything to work with.
<Ox0dea>
I didn't realize I was responsible for your education.
<Papierkorb>
"You're wrong" "No you're wrong" "Muh you're not civilized" Cut the crap.
peeja has joined #ruby
<Ox0dea>
Papierkorb: That isn't what I did, though.
<Papierkorb>
Yeah whatever, don't care. Provide proof or leave it. I won't provide proof so I'll leave it.
<Ox0dea>
People become butthurt much more quickly these days. :<
<shevy>
or it may be you
<Ox0dea>
Do I seem butthurt, shevy?
<shevy>
You seem to have many problems
<h0wl3vvd>
havenwood that Crystal have all possibilities of Ruby ?
<havenwood>
>> RubyVM::InstructionSequence.compile('puts "h0wl3vvd: we usually do not"').to_a
<ruboto>
havenwood # => ["YARVInstructionSequence/SimpleDataFormat", 2, 2, 1, {:arg_size=>0, :local_size=>1, :stack_max=>2}, ...check link for more (https://eval.in/491548)
<h0wl3vvd>
havenwood: what ?
<havenwood>
h0wl3vvd: Why do you want to?
<Ox0dea>
h0wl3vvd: I think you should take your confusion as a sign that you shouldn't be worrying about compilation just yet.
<Ox0dea>
Learn Ruby first. :)
<h0wl3vvd>
im just asking
<h0wl3vvd>
how to compile .rb to byte code in MRI
<Ox0dea>
h0wl3vvd: Are you sure you know what you're asking?
<h0wl3vvd>
yes
fn2187 has quit [Remote host closed the connection]
<Ox0dea>
h0wl3vvd: Then look at the eval.in link for havenwood's demonstration.
<h0wl3vvd>
what .in
<h0wl3vvd>
idk
<h0wl3vvd>
just tell me how to compile that to byte code
<havenwood>
h0wl3vvd: As knights of the bytecode we're sworn to secrecy.
chouhoulis has quit [Ping timeout: 276 seconds]
fn2187 has joined #ruby
<havenwood>
>> RubyVM::InstructionSequence.compile('puts "h0wl3vvd: we usually do not"').to_binary
<ruboto>
havenwood # => undefined method `to_binary' for <RubyVM::InstructionSequence:<compiled>@<compiled>>:RubyVM::Instruc ...check link for more (https://eval.in/491557)
<shevy>
so many changes in ruby are rails inspired
<dingman>
Woot! I have an actually working implementation of one of the four cases my padding oracle project needs to support. Thanks for helping me with my ruby learning curve.
<dingman>
shevy, Ox0dea ^^
<shevy>
padding oracles?
postmodern has joined #ruby
<dingman>
Sever takes an encrypted text, tells the client if the resulting plaintext is correctly padded or not.
<dingman>
From that information and a gazillion queries, client can recover the plaintext without knowing the key.
<dingman>
Usually, revealing that information is a bug in the server.
<dingman>
In this case, it's a teaching tool, so it's a deliberate feature.
nocd has quit [Quit: nocd]
cb__ has quit [Remote host closed the connection]
<shevy>
ah
<shevy>
hmm weird
<shevy>
second time I seem to find a difference between ruby 2.2.3 and 2.3.0
<shevy>
but I am not sure if this is because of a bug I added to one of my programs, or because 2.3.0 is a tiny bit different
<shevy>
target of repeat operator is not specified: /?C=M;O=D-1.0.48/ (RegexpError)
<shevy>
I know why the bug happens... the above should have never made it into the // that I was using... but I can't quite figure out if this was already a bug in 2.2.3 and I may not have noticed it yet... or if it is related to a change in 2.3.0 or being stricter or something
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
andywojo has joined #ruby
duckpuppy has joined #ruby
<Ox0dea>
dingman: Yay! Mind sharing the CryptoString implementation you ended up using?
<cscheib>
sol_: and it's been open for a considerable amount of time
<havenwood>
lewed: Why do you keep saying that?
<lewed>
havenwood: cuz it is interpreted
<lewed>
it will be slow in big projects
<sol_>
cscheib: yes an nothing happens for years now
<sol_>
i try to compile it from time 2 time but i never succeded
<cscheib>
sol_: honestly, it may be time to spin up a Linux VM
<ChameleonSix>
im working on ruby spambots
<sol_>
cbetta: i have but i one should be able to make a gem for it also for windows =)
The_Phoenix has joined #ruby
<cscheib>
lewed: havenwood's point is your statement is far too broad
BaroMeter has quit [Remote host closed the connection]
<sol_>
i would try if one can give me some hints
<cscheib>
lewed: ruby may be slow for certain things
<lewed>
yeah
<lewed>
ok ok
<cscheib>
lewed: but it will *work*
<lewed>
too shame, ruby looks pretty nice for me
<lewed>
but hmmm
<cscheib>
and in many scenarios, it will work well
FernandoBasso has joined #ruby
<havenwood>
lewed: What do you think will be too slow. You may be wrong.
chouhoulis has joined #ruby
<cscheib>
but you're probably not going to write a AAA game in it, without a lot of optimization
<lewed>
who knows similar syntax to ruby langage, some modern object oriented language ? im like how classes is maked in ruby
<cscheib>
but, it's still probably possible
<havenwood>
lewed: Also the research on speeding up interpreted language to be as fast as compiled is going well. Some very interesting reading on that front regarding Ruby: http://chrisseaton.com/phd/specialising-ruby.pdf
Bloomer has joined #ruby
<lewed>
nah
arup_r has joined #ruby
<havenwood>
lewed: So you're just here to troll?
<lewed>
havenwood: no
<havenwood>
lewed: Then what's too slow? Show me the code and benchmarks.
<cscheib>
sol_: well, unless you're willing to pull open the code for the gem and fix the compile errors, you're probably SOL
<lewed>
interpreting is too slow
<havenwood>
lewed: Yeah, no.
<lewed>
is better to write in c++
platzhirsch has joined #ruby
<lewed>
program writeen in c++ will be hell faster
<havenwood>
lewed: Trolling isn't allowed here. Stop it.
<cscheib>
sol_: SOL meaning s*** outta luck, not your nick
ruu_ has quit [Remote host closed the connection]
<lewed>
havenwood: im not trolling
<cscheib>
lewed: that's a fairly ignorant statement
<lewed>
cscheib: why
<cscheib>
willfully ignorant
<havenwood>
lewed: Learn something! Read that paper ^.
<lewed>
cscheib: why
<lewed>
havenwood: stop trolling me
<ChameleonSix>
hello
<cscheib>
because havenwood just told you where to look about optimizing interpreted languages
<ChameleonSix>
wrong chat sorry
<sol_>
cscheib: i would try to fix it but im not able without help
<ChameleonSix>
does anyone have a simple spambot coded in ruby
kam270 has joined #ruby
<ChameleonSix>
it should attach to sensible-browser
<ChameleonSix>
?
kam270 has quit [Max SendQ exceeded]
<cscheib>
you're probably not gonna get help on spambots...
<cscheib>
just sayin
themsay has quit [Read error: Connection reset by peer]
<cscheib>
unsolicited email isn't exactly something people want to assist with
themsay has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
<jackcom>
ChameleonSix: :)
<jackcom>
i m back now
FernandoBasso has quit [Client Quit]
FernandoBasso has joined #ruby
<ChameleonSix>
it doesnt have to be a mail spambot
<ChameleonSix>
anyway i got one important question
<ChameleonSix>
can i make ruby programs with gui?
ledestin has joined #ruby
<jackcom>
yes i can access bios to press delete key. but i want access bios of refirgerator. ChameleonSix
<cscheib>
jackcom: highly off topic for this channel
<arup_r>
havenwood: I mentioned some scenarions.. it is very simple. You have a collection which you want to sort by some time one key or some time multiple keys
<havenwood>
arup_r: In general it's nice to give runnable, real inputs rather than describing them.
zotherstupidguy has quit [Ping timeout: 246 seconds]
duckpuppy has quit [Ping timeout: 265 seconds]
<azgil>
i use linux
<havenwood>
azgil: Or if you're not on OS X and have installed the deps yourself: git clone https://github.com/zenspider/graphics.git && gem install graphics/pkg/graphics*.gem
<azgil>
this lib only for macguys
<lewed>
azgil: u dont use only kernel
<lewed>
u propably use gnu/linux
<lewed>
;)
exadeci has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
<azgil>
how i can get graphics/pkg/graphics*.gem
<ChameleonSix>
how do i check if an array is empty
Ishido has quit [Remote host closed the connection]
jbrhbr has joined #ruby
naftilos76 has joined #ruby
lewed has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
ss_much has quit [Quit: Connection closed for inactivity]
blandflakes has quit [Client Quit]
Ishido has joined #ruby
gambl0re has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<azgil>
havenwood, `find_font': Can't find font named 'Menlo' (ArgumentError)
<azgil>
gem installed ok
<havenwood>
azgil: Ah, yeah an OS X font. It's early in dev and there're kinks to work out. I probably shouldn't have mentioned but have been meaning to check it out in some detail so did.
<azgil>
i installed arch menlo package
<havenwood>
azgil: ah, nice - good font
<azgil>
but get errro
rgtk has joined #ruby
<azgil>
seems not ready gem for linux
<ChameleonSix>
how to check something in array
<ChameleonSix>
.has?
<azgil>
not emplty?
<ChameleonSix>
?
<ChameleonSix>
check if there is an item with a certain name
adgtl has joined #ruby
<azgil>
find{|| bla bla}
<ChameleonSix>
ok
<adgtl>
Guys.. when to use keyword arguments and when not to use them?
<ChameleonSix>
can someone tell me why its all explained in the gist
chouhoulis has joined #ruby
<ChameleonSix>
(the problem)
<ChameleonSix>
?
seitensei has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
solocshaw1 is now known as solocshaw
<azgil>
easy
<azgil>
try think
<ChameleonSix>
Hmm contains? should have
<azgil>
@todo_items.find{|el| el.name == name}
<azgil>
not @todo_items.find{|el| el.name == name}.nil?
<ChameleonSix>
it should return a boolean
blackgoat has joined #ruby
<ChameleonSix>
doesnt pass
<ChameleonSix>
error
<ChameleonSix>
The `contains?` method did not return a boolean value.
<ChameleonSix>
sec
chouhoulis has quit [Ping timeout: 260 seconds]
<ChameleonSix>
hmm
<ChameleonSix>
strange
seitensei has quit [Ping timeout: 260 seconds]
<ChameleonSix>
not working
karapetyan has joined #ruby
theRealAlexz has quit [Ping timeout: 246 seconds]
adgtl has quit [Remote host closed the connection]
Jackneill_ has joined #ruby
<ChameleonSix>
array with argument?
lkba has joined #ruby
<azgil>
rewrite "find_index" with @todo_items.each_with_index.find{|el| el[0]=="222"}
Jackneill has quit [Ping timeout: 245 seconds]
theRealAlexz has joined #ruby
theRealAlexz has quit [Changing host]
theRealAlexz has joined #ruby
<azgil>
rewrite "find_index" with @todo_items.each_with_index.find{|el| el[0]==name}[1]+1
<ChameleonSix>
kk
<ChameleonSix>
Done
<ChameleonSix>
It passed
<ChameleonSix>
tnx
<ChameleonSix>
brb
ibouvousaime has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby
<azgil>
funny font meslo
CloCkWeRX has joined #ruby
pawnbox has quit [Remote host closed the connection]
naftilos76 has quit [Quit: Αποχώρησε]
agent_white is now known as king_ding_a_ling
<azgil>
i like it
<azgil>
will use it
sandstrom has quit [Quit: My computer has gone to sleep.]
vikas027 has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
king_ding_a_ling is now known as agent_white
adgtl has joined #ruby
ChameleonSix has quit [Ping timeout: 252 seconds]
yxhuvud has quit [Remote host closed the connection]
thoraxe has quit [Ping timeout: 265 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
themsay has quit [Ping timeout: 260 seconds]
tesuji_ has quit [Ping timeout: 240 seconds]
thoraxe has joined #ruby
pawnbox has quit [Remote host closed the connection]
jbrhbr has quit [Quit: Leaving.]
pawnbox has joined #ruby
RegulationD has joined #ruby
Jackneill has joined #ruby
SCHAAP137 has joined #ruby
lacuna has quit [Remote host closed the connection]
Jackneill_ has quit [Ping timeout: 250 seconds]
agent_white has quit [Quit: night]
RegulationD has quit [Ping timeout: 255 seconds]
skade has joined #ruby
yxhuvud has joined #ruby
rodfersou has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
unreal has joined #ruby
Ishido has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
ta has joined #ruby
puria has quit [Quit: Leaving]
themsay has joined #ruby
tricktricktrck has joined #ruby
ta has quit [Ping timeout: 255 seconds]
dr3w has joined #ruby
Random_Bypasser has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
skcin7 has joined #ruby
dr3w has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
dionysus69 has joined #ruby
arup___ has joined #ruby
adgtl has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 260 seconds]
xcesariox has joined #ruby
sonOfRa has quit [Quit: Bye!]
roshanavand has joined #ruby
sonOfRa has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
Dimik has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
FooMunki has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
chouhoulis has joined #ruby
kirun has joined #ruby
jgt has joined #ruby
andywojo has joined #ruby
SnowGlobe has joined #ruby
rodfersou has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
jgt has quit [Ping timeout: 265 seconds]
lapide_viridi has joined #ruby
andywojo has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Changing host]
zotherstupidguy has joined #ruby
jgt has joined #ruby
SnowGlobe has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rehas has joined #ruby
rehas has quit [Client Quit]
cyfr0n has left #ruby ["."]
duckpuppy has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
benhuda has joined #ruby
SnowGlobe has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
Jackneill has quit [Ping timeout: 276 seconds]
platzhirsch has quit [Ping timeout: 276 seconds]
arup___ has quit [Remote host closed the connection]
shanemcd has joined #ruby
arup_r has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
platzhirsch has joined #ruby
BrunoSaboia has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
radgeRayden has quit [Ping timeout: 256 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
deavidsedice has quit [Read error: Connection reset by peer]
deavid has joined #ruby
Rush_ has quit [Read error: Connection reset by peer]
[dmp] has quit [Ping timeout: 276 seconds]
BSaboia has quit [Ping timeout: 276 seconds]
monsieurp has quit [Ping timeout: 276 seconds]
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
[dmp] has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RushPL has joined #ruby
rippa has joined #ruby
shanemcd has quit [Remote host closed the connection]
scripore has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
diegoviola has joined #ruby
Jackneill has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
petuti has joined #ruby
kmckelvi1 has joined #ruby
rgtk has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
Trynemjoel has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
qpls has quit [Ping timeout: 250 seconds]
jackcom has left #ruby [#ruby]
d0nn1e has joined #ruby
<diegoviola>
cool, 2.3.0 is out
<diegoviola>
I want to update, I use ruby-install
<diegoviola>
Linux here
<diegoviola>
so I have both chruby and ruby-install in ~/.local
petuti has left #ruby ["Leaving"]
<diegoviola>
~/.local/bin
radgeRayden has joined #ruby
<diegoviola>
do I need to remove ~/.local, because I want to update ruby-install first
<diegoviola>
or is there another way to update ruby-install?
sdothum has joined #ruby
puria has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
<diegoviola>
merry xmas
radgeRayden has quit [Ping timeout: 264 seconds]
doug_ has joined #ruby
diego1 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
chouhoulis has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
<azgil>
use rvm
<diego1>
no, I prefer chruby/ruby-install
diego1 is now known as diegoviola
<diegoviola>
no thanks
azgil has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
SnowGlobe has quit [Remote host closed the connection]
<diegoviola>
I'll just wipe ~/.local and reinstall chruby/ruby-install
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
SnowGlobe has joined #ruby
roshanavand has joined #ruby
lapide_viridi has quit [Quit: Leaving]
symm- has joined #ruby
azgil has joined #ruby
skade has quit [Ping timeout: 256 seconds]
skade has joined #ruby
krobzaur has joined #ruby
nocd has joined #ruby
karapetyan has joined #ruby
puria has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
karapetyan has joined #ruby
rgtk has joined #ruby
Spami has joined #ruby
elaptics`away is now known as elaptics
Spami has quit [Remote host closed the connection]
jgt has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
nocd has quit [Ping timeout: 276 seconds]
elaptics is now known as elaptics`away
BSaboia has joined #ruby
Xzanron has joined #ruby
jyuan has joined #ruby
andywojo has joined #ruby
arup_r has quit []
ta has joined #ruby
vasilakisfil has joined #ruby
qpls has joined #ruby
samgerber has quit [Remote host closed the connection]
ta has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
z3uS has quit [Ping timeout: 260 seconds]
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
mdw has joined #ruby
azgil2 has joined #ruby
z3uS has joined #ruby
doug_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
colegatron has quit [Ping timeout: 264 seconds]
krobzaur has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
shanemcd has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
nocd has joined #ruby
nocd has quit [Read error: Connection reset by peer]
nocd has joined #ruby
dlitvak has joined #ruby
shanemcd has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
nocd has left #ruby [#ruby]
blackgoat has quit [Quit: WeeChat 1.3]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
SnowGlobe has quit [Remote host closed the connection]
SnowGlobe has joined #ruby
sandstrom has joined #ruby
chouhoulis has joined #ruby
colegatron has joined #ruby
Gmind has joined #ruby
<Gmind>
hi
dlitvak has quit [Ping timeout: 255 seconds]
<Gmind>
anyone use lrb gem ?
Trynemjoel has quit [Ping timeout: 264 seconds]
dlitvak has joined #ruby
ElFerna has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
Kn|t3 has joined #ruby
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
elaptics`away is now known as elaptics
kknight has joined #ruby
arup_r has joined #ruby
kobain has joined #ruby
karapetyan has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
Trynemjoel has joined #ruby
dstarh has joined #ruby
cassioscabral has joined #ruby
krobzaur has joined #ruby
<kknight>
hello
duckpuppy has joined #ruby
cassioscabral has quit [Client Quit]
elaptics is now known as elaptics`away
yes`r has quit [Ping timeout: 240 seconds]
<Gmind>
hi
<kknight>
marry christmas
duckpuppy has quit [Ping timeout: 264 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<shevy>
yeah marry it
<Gmind>
anyone use LRB gem ?
mary5030 has joined #ruby
<kknight>
shevy> try to understand the feeling , not spelling
blandflakes has joined #ruby
drewvanstone has joined #ruby
peeja has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
treaki_ has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
dlitvak has joined #ruby
Ox0dea has quit [Ping timeout: 260 seconds]
dlitvak_ has joined #ruby
krobzaur has quit [Ping timeout: 260 seconds]
Jackneill_ has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
treaki has joined #ruby
treaki has quit [Max SendQ exceeded]
andywojo has quit [Ping timeout: 276 seconds]
tricktricktrck has quit [Quit: Got to go]
Jackneill has quit [Ping timeout: 272 seconds]
treaki has joined #ruby
treaki has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
treaki has joined #ruby
Atomic_Dz4vo has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
SnowGlobe has quit [Remote host closed the connection]
Atomic_Dz4vo has left #ruby [#ruby]
dlitvak has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treaki has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
SnowGlobe has joined #ruby
kknight has quit [Quit: Leaving]
gigetoo has quit [Quit: leaving]
yes`r has joined #ruby
gigetoo has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
drewvanstone has quit [Quit: leaving]
luxurydab has joined #ruby
luxurydab has quit [Client Quit]
azgil2 has quit [Ping timeout: 240 seconds]
Rinalds has joined #ruby
shinnya has joined #ruby
shanemcd has joined #ruby
drewvanstone has joined #ruby
SnowGlobe has quit [Remote host closed the connection]
drewvanstone has quit [Client Quit]
drewvanstone has joined #ruby
ElFerna has joined #ruby
drewvanstone has quit [Client Quit]
seitensei has joined #ruby
drewvanstone has joined #ruby
chouhoulis has joined #ruby
dlitvak has joined #ruby
drewvanstone has quit [Client Quit]
Kn|t3 has quit [Quit: Kn|t3]
Didac has quit [Read error: Connection reset by peer]
seitensei has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
Gmind has left #ruby [#ruby]
SnowGlobe has joined #ruby
mrtomme has quit [Ping timeout: 246 seconds]
tom_lowndes has joined #ruby
kairos_ has joined #ruby
<Rinalds>
Hi all
mrtomme has joined #ruby
shanemcd has quit [Remote host closed the connection]
kairos_ has quit [Client Quit]
peeja has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
SnowGlobe has quit [Ping timeout: 264 seconds]
passerine has left #ruby [#ruby]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
peeja has joined #ruby
ibouvousaime has quit [Ping timeout: 265 seconds]
dlitvak has quit [Ping timeout: 246 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tamouse__>
o/
ibouvousaime has joined #ruby
lacuna has joined #ruby
smactive has joined #ruby
ponzi has joined #ruby
<ponzi>
Is the new Ruby 2.3.0 compatible with Rails 4.2? I just had a problem getting Nokogiri to resolve a libxml hurdle.
peeja has quit [Ping timeout: 245 seconds]
<shevy>
ponzi I guess the people at #rubyonrails know best; I myself noticed a very finy tiny differences... two small behaviour changes or something that required of me to make two changes in some of my projects, which worked fine in 2.2.3
<shevy>
erm remove that *finy ...
weemsledeux has joined #ruby
<ponzi>
shevy: Would have thought immutable strings was a biggy but maybe not.
<Papierkorb>
shevy: care to elaborate?
weemsledeux has quit [Client Quit]
<shevy>
Papierkorb I think I mentioned that yesterday; one problem was a method called translate() which suddenly no longer worked and had a RubyVM::InstructionSequence passed in, I have no idea why; I don't fully remember the other problem right now, I'd have to scroll up and remember where it was
<shevy>
ponzi immutable strings are optional as of yet
smactive has quit [Ping timeout: 264 seconds]
<Papierkorb>
ponzi: Ruby 2.3 does not by default set every String immutable (Ruby 3.0 is said to do that though). You can use the new .. 'pragma' comment thing, but it 'only' makes all strings inside the *file* the comment was found in to be immutable
lacuna has quit [Ping timeout: 260 seconds]
<Papierkorb>
shevy: k
<shevy>
hmm I wanna try out the frozen strings
<shevy>
how can you enable a per-file frozen string directive exactly?
<ponzi>
Upgrading to 2.3.0 with rbenv I'm seeing a long list of ".... because its extensions are not built. Try: gem pristine ....". Is there any way of doing these all at once? My gems are in ~/.gem/gems
<Papierkorb>
Wow ruby 2.3 is still not in ArchLinux repos. I'm already waiting more than 24 hours! ;)
<shevy>
ponzi the few times I had to do this, using gem pristine worked for me; but if all else fails, if you have your gems locally anyway, you can just batch-install them via "gem install ./*.gem"
ponzi has left #ruby [#ruby]
<shevy>
debian will probably take 8 years before it adopts ruby 2.3.0
<Papierkorb>
&. is called the .. lonely operator?
Jackneill_ has quit [Ping timeout: 240 seconds]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
<shevy>
yeah
<shevy>
matz explained it, let me find his talk
Jackneill has joined #ruby
<Papierkorb>
I think I know what it does (basically 'foo&.bar' => 'foo && foo.bar'), but the name ..
<arup_r>
With Rails, I wrote lot of Jquery.. worked 3+ rails projects, not felt I should learn the language more seriously.. :)
<arup_r>
Thanks Ruby to teach me what is closure.. I have np with that in JS.. :D
chouhoulis has joined #ruby
<Papierkorb>
There's Clearwater for Opal which is essentially the pendant for Ember.JS. Then there's Volt.rb which is our (= rubyians) pendant to Meteor.JS
dlitvak has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
ElFerna has quit [Ping timeout: 272 seconds]
<Papierkorb>
Can't tell you about the 'quality' of either of those projects ^, never used them myself
symm- has quit [Ping timeout: 246 seconds]
wildlander has joined #ruby
karapetyan has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
jobewan has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
pdoherty has quit [Ping timeout: 256 seconds]
<hagabaka>
if you already know closure, you can learn other things about javascript pretty quick
karapetyan has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
baweaver has joined #ruby
<Papierkorb>
The biggest benefit, besides not having to write JS (ES6 looks reasonable actually from what I've seen of it yet), is that you can share code between the server and client. I make use of that a lot
dlitvak has joined #ruby
the_nick_me has joined #ruby
gambl0re has joined #ruby
<arup_r>
s/not felt/now felt
dlitvak has quit [Remote host closed the connection]
<arup_r>
Papierkorb: what do you mean by sharing code between client and server..
<Papierkorb>
arup_r: Logic which you want to use on the server and client. In the simplest case, small validation methods.
idefine has joined #ruby
lenwood has joined #ruby
dlitvak has joined #ruby
<Papierkorb>
arup_r: My stuff is pretty much a SPA, and can be completely rendered on the client and server using the same code. The web browser just consumes the JSON API after the initial page load and can then use all that jazz to e.g. do live updates effortlessly
lemur has joined #ruby
n0xff has joined #ruby
<arup_r>
ok.
duckpuppy has joined #ruby
<Papierkorb>
arup_r: I have controllers and models on the client, where the models on the client (due to API conventions) know how to update their server counterparts and so on. In the end, it's like a Live-version of Rails (sans ActiveSupport) running on the client.
<shevy>
Papierkorb have you written a project with opal?
<Papierkorb>
shevy: My personal project uses it massively, yes
<shevy>
cool
<shevy>
next time I have a question, I will grab you!
<Papierkorb>
shevy: That's why I say "Take a look for personal projects, for business critical stuff, maybe wait some time" ;)
baweaver has quit [Ping timeout: 264 seconds]
<shevy>
my projects are always critical!
<Papierkorb>
srs bsns all the taim
dlitvak has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
Kn|t3 has quit [Quit: Kn|t3]
karapetyan has joined #ruby
<hagabaka>
what makes it a lesser choice for critical projects? security?
<Papierkorb>
hagabaka: Its missing some of the ruby standard library (But has most of what's required, so not the biggest reason). Bigger issues are currently bugs in the transpiler itself (generating broken JS code, pretty rare occurence, happened once to me ), or the parser (Happened a handful of times). The parser is right now written by themselves, but they're currently migrating over to the parser gem for that (AFAIK), so that'll fix tons of corner cases
<shevy>
Papierkorb, ah I found the exact passage, it is at 16:40 ... matz says: "new operator and-dot &. ... which we called lonely operator... just because... look at this figure ... and you can see that someone, sitting on the floor, looking at a dot on the floor by himself... now you don't forget!"
<Papierkorb>
hagabaka: Those bugs are time consuming, and something I wouldn't want to worry about if I'm about to hit a deadline.
idefine has quit []
<Papierkorb>
shevy: oh man
<shevy>
so now you know &. is a dude staring at a dot :D
<Papierkorb>
Not the latest Opal, but enough for tinkering with it
cb__ has quit []
<hagabaka>
to be honest I don't mind writing javascript, but the main reason why I prefer ruby for non-web things is the library
lenwood has quit [Ping timeout: 255 seconds]
adgtl_ has joined #ruby
zast has joined #ruby
zotherstupidguy has joined #ruby
<Papierkorb>
hagabaka: give it a shot. Though the last issue did break my code in unexpected ways: I used their 'singleton' library, but this one delegates all object methods (including stuff like #class), which broke other things for me. I pretty much dumped MRIs implementation of it into my sources and that fixed it.
<Papierkorb>
So, the general ruby support is quite good, but lesser used libraries or corner cases can bite you :)
RegulationD has quit [Ping timeout: 264 seconds]
Rodya_ has quit [Remote host closed the connection]
Kn|t3 has joined #ruby
adgtl has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
lemur has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
baweaver has joined #ruby
fantazo has joined #ruby
<Rinalds>
this ruby process when one part is hard and then you go to next one and it's easy.. / learning /
wolffles has quit [Quit: wolffles]
krobzaur has joined #ruby
BrunoSaboia has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
krobzaur has quit [Ping timeout: 264 seconds]
seitensei has joined #ruby
dfinninger has joined #ruby
chouhoulis has joined #ruby
banister has joined #ruby
gluec has quit [Ping timeout: 240 seconds]
lkba has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Remote host closed the connection]
robh71 has joined #ruby
gluec has joined #ruby
iateadonut has quit [Ping timeout: 272 seconds]
seitensei has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
shanemcd has joined #ruby
davedev24 has joined #ruby
arup_r has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
shanemcd has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
cassioscabral has joined #ruby
karapetyan has joined #ruby
dfinninger has quit [Remote host closed the connection]
<wolffles>
yeah it shows that i can do what i need tho. if you do use an “if else statement” can that be a single line code or does it have to be multi-line?
<shevy>
wolffles the do/end or {} is used for a block, which is similar to an additional argument to a method; if/else does not directly have to do with arguments. You can however had control behaviour inside of your blocks to toggle behaviour of your main method or other parts of your code
<shevy>
foo('cat','dog') {{ :disable_colours }}
peeja has quit [Ping timeout: 276 seconds]
<Ox0dea>
wolffles: You can just use semicolons so that all your programs fit on one line.
codecop has joined #ruby
<Ox0dea>
I'd rather not entertain your apparent desire to write hard-to-read code, but you should certainly know about the ternary operator.
<wolffles>
thats pretty confusing. :D none of my resources teaches me any of that, where can i find info on this stuff shevy ?
hectortrope has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<wolffles>
lol Ox0dea yeah i usually write multiline code but i thought i should learn how to write on one line if that was ever needed
<Ox0dea>
Every method receives an implicit block; it's up to each method to decide to use it or not.
<shevy>
wolffles it's just code in a block
<wolffles>
so much abstract concepts!
<Ox0dea>
Yay!
<Ox0dea>
Abstraction is the best thing ever.
<shevy>
it's just a block!
wildlander has quit [Ping timeout: 246 seconds]
<wolffles>
lol shevy no need to yell :[
duckpuppy has joined #ruby
robh71 has joined #ruby
wildlander has joined #ruby
Bloomer has quit [Remote host closed the connection]
<wolffles>
is there a term to the drawing of a codes process, or i guess mapping it? like im learning by just googling everything and i dont know what to search for to find a resource on it.
diegoviola has joined #ruby
tectonic has joined #ruby
nchambers has joined #ruby
<diegoviola>
so any ideas how to update ruby-install?
<diegoviola>
I've installed it to ~/.local
duckpuppy has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
peeja has joined #ruby
<shevy>
wolffles I meant that in regards to an abstract concept, a block really is very simple, there are harder concepts in ruby... just combine instance_eval class_eval other eval, send, method_missing, define_methods - and always know where self is
<Papierkorb>
Oh interesting, I thought the next big release would be ruby 3.0
weaksauce has joined #ruby
devoldmx has joined #ruby
nateberkopec has quit [Quit: Leaving...]
samgerber has quit [Remote host closed the connection]
RegulationD has joined #ruby
symm- has joined #ruby
s00pcan_ has quit [Ping timeout: 246 seconds]
<shevy>
lots of more changes in the pipeline
<shevy>
I think ruby 3.0 won't happen in 2016 anyway ... or earliest... late 2016
andywojo has joined #ruby
<havenwood>
shevy: 2020
peeja has quit [Ping timeout: 255 seconds]
stamina has joined #ruby
<havenwood>
shevy: A couple Christmases away.
devoldmx has quit [Ping timeout: 276 seconds]
sorbo_ has joined #ruby
sorbo_ has left #ruby [#ruby]
RegulationD has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
dlitvak has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
dr3w has joined #ruby
fantazo has quit [Ping timeout: 260 seconds]
wjimenez5271 has joined #ruby
baweaver has joined #ruby
lapide_viridi has joined #ruby
karapetyan has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 272 seconds]
dlitvak has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 265 seconds]
atomical has joined #ruby
Rodya_ has joined #ruby
zast has quit [Ping timeout: 260 seconds]
davedev24 has quit []
Apocalypse has quit [Ping timeout: 246 seconds]
constantinexvi has quit [Ping timeout: 244 seconds]
AustinMatherne has quit [Ping timeout: 240 seconds]
atomical_ has joined #ruby
epochwolf has quit [Ping timeout: 240 seconds]
Kamilion has quit [Ping timeout: 240 seconds]
Ikri has quit [Ping timeout: 240 seconds]
bradland has quit [Ping timeout: 244 seconds]
GGMethos has quit [Ping timeout: 250 seconds]
rideh has quit [Ping timeout: 240 seconds]
cout has quit [Ping timeout: 265 seconds]
demophoon has quit [Ping timeout: 244 seconds]
ceej has quit [Ping timeout: 272 seconds]
peeja has joined #ruby
hostess has quit [Ping timeout: 272 seconds]
atomica__ has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dr3w has quit [Ping timeout: 260 seconds]
atomical has quit [Ping timeout: 264 seconds]
<shevy>
hehe
atomical_ has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
reaVer has quit [Remote host closed the connection]
cassioscabral has quit [Quit: cassioscabral]
skcin7 has joined #ruby
blandflakes has joined #ruby
cassioscabral has joined #ruby
reaVer has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
dlitvak has joined #ruby
s00pcan_ has joined #ruby
jgt has joined #ruby
colegatron has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
azgil has joined #ruby
Liothen has quit [Ping timeout: 264 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
adgtl has joined #ruby
icbm has quit [Quit: Computer sleeping]
adgtl has quit [Changing host]
adgtl has joined #ruby
vikaton has joined #ruby
<diegoviola>
havenwood: I have chruby/ruby-install in ~/.local, do you know if there's another way to update ruby-install other than me wiping ~/.local and reinstalling both again?
<diegoviola>
or should I just PREFIX=~/.local make install (ruby-install)
<havenwood>
diegoviola: I usually uninstall the old then install the new.
karapetyan has quit [Remote host closed the connection]
adgtl has quit [Ping timeout: 264 seconds]
<havenwood>
diegoviola: Typically I `sudo make uninstall` since I use the standard locations.
<diegoviola>
ok so removing ~/.local/bin/ruby-install and ~/.local/share/ruby-install should be enough?
<diegoviola>
ok
<diegoviola>
I have other stuff in ~/.local, I don't want to remove all of it
<diegoviola>
I'll try PREFIX=~/.local make uninstall
<kspencer>
1. I don't have 12 lines? 2. not quite sure what 'keyword_ensure' is referenceing, 3. My code if put in a regular ruby file should/would be working
peeja has quit [Ping timeout: 246 seconds]
<adaedra>
kspencer: can you share the offending file?
stamina has quit [Ping timeout: 240 seconds]
ramfjord has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
<kspencer>
so, now the only thing is
<kspencer>
#<File:0x000000020c1bb8>
<kspencer>
#<File:0x000000020c1758>
<kspencer>
shows up instead of the content
dlitvak has quit [Ping timeout: 256 seconds]
blandflakes has joined #ruby
<adaedra>
Normal, you have File objects. You have to read data from the files if you want contents, with ri:File#read or other ways if you want something more precise.
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cmrussell>
shevy, do you live here XD
B1n4r10 has quit [Ping timeout: 276 seconds]
<shevy>
in a virtual world yeah!
<chridal>
Say I would like to do something at most 4 times. what should I use in Ruby?
B1n4r10 has joined #ruby
<chridal>
but I want to do it as many as some_array.length
<chridal>
but never more than 4 times
<shevy>
0.upto(4)
<zenspider>
havenwood: have you used the graphics gem??
<Ox0dea>
chridal: [4, foo.size].max.times { ... }
<zenspider>
I prefer 4.times
<zenspider>
but it sounds like you want [some_array.length, 4].min.times
<shevy>
ah deduct one from there
<shevy>
yeah
<Ox0dea>
Derp. #min, not #max.
<zenspider>
:P
nicoulaj has quit [Quit: Quitte]
<chridal>
Cheers!
devbug has quit [Ping timeout: 246 seconds]
<chridal>
Also, what's the name of that function that keeps track of the current sum. I want to do something like points = [some_array.length, 4].min.that_function { |a,b| a += 25 } and for it to return something between 0 and 200.
rgtk has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
<Ox0dea>
chridal: You're thinking of #reduce/#inject, but I'm not sure you know quite how it does its thing.
<chridal>
That syntax didn't make a lot of sense, but hopefully someone understood
<Ox0dea>
chridal: I got you. :)
<chridal>
Oh, right. That operates on an array.
<Ox0dea>
chridal: Maybe say what problem you're actually trying to solve?
dionysus69 has quit [Ping timeout: 260 seconds]
<Ox0dea>
I won't drop ?xy on you, since it's worded rather unkindly.
<chridal>
I'm just trying to build a sum between 0 and 100 based on the length of some_array.length up to a maximum of 4 times (4x25=100)
<Ox0dea>
But why?
Trynemjoel has joined #ruby
<zenspider>
chridal: you're suffering from being too abstract in your problem description. we want to help, but we're not psychic or dentists.
<chridal>
Ox0dea: Oh. Because I'm building a point system where you are awarded points for pictures but only for the first 4. After 4 you get 0 points. You get 25 for each photo.
chouhoulis has joined #ruby
<zenspider>
is this for some game or something?
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
<chridal>
zenspider: No, I'm writing an algorithm to compute points for ranking user profiles
<zenspider>
one of those "N% complete" things?
<cmrussell>
say i want to convert binary to hex. i wrote a script that will convert any four digit binary number to hex. but what if its over 4 digits? how would i make it repeat itself?
pawnbox has quit [Remote host closed the connection]
<chridal>
zenspider: Actually it is for ranking profiles based on popularity. This is just a small part of a way to calculate what profiles are the most popular. This is actually mostly to motivate the user to put the content in there in the first place.
bkxd has quit [Ping timeout: 255 seconds]
<zenspider>
I wish you wouldn't just hand them solutions and instead teach them where to find things on their own
<Ox0dea>
chridal: I'm pretty sure zenspider knows exactly what you're up to. :P
<chridal>
Am I up to something? :-)
<Ox0dea>
zenspider: It's not really a "solution", since cmrussell is likely to be doing this conversion as a learning experience. I was going to elaborate.
<zenspider>
Ox0dea: I think you give me too much credit. I'm on too many drugs right now to be reading between the lines
<Ox0dea>
zenspider: Aye, I reckon there were no lines to be read between.
<zenspider>
haha
s00pcan_ has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
<Ox0dea>
"motivate the user to put the content in there" = one of those "N% complete" things
<zenspider>
ugh. can I just pay a bounty to get someone else to rewrite the string handling in ruby_parser???
<Ox0dea>
Eeps.
lidza has joined #ruby
<chridal>
Ox0dea: It's not really accurate for the usecase (it's a bit broader than what I am explaining atm), but sure :-)
<zenspider>
comment out all of the string handling code:
<Ox0dea>
They're missing the hyphen in "Ivy League-caliber".
<Ox0dea>
Fucking plebs.
samgerber has quit [Ping timeout: 276 seconds]
katxic has quit [Quit: Lost terminal]
<bithon>
Lol
<bithon>
"Art"
dfinninger has joined #ruby
<Ox0dea>
Hm?
<Ox0dea>
Good writing *is* an artform.
<jnj>
I'm trying to create a basic queue by implementing a singly linked list that I've made. Right now I'm currently creating the queue by using require 'singlylinkedlist' and then in initialize I'm creating an instance of the singly linked list. How would I go about accessing the head of the singly linked list in order to implement dequeue? Also, should I just change what I'm doing and instead use inheritance?
<bithon>
Engineering is the only worthwhile career
Musashi007 has joined #ruby
Jackneill_ has quit [Ping timeout: 240 seconds]
<Ox0dea>
Weird.
<bithon>
Really?
<Ox0dea>
A little, yeah.
<bithon>
Okay
yfeldblum has joined #ruby
<bithon>
How so, Ox0dea ?
<Ox0dea>
I do appreciate that technology is eating the world, but we're supposed to capitalize on that by *building* better robots, not becoming them.
<Ox0dea>
I suppose I should've let you clarify your assertion first.
<ElFerna>
:quit
colegatron has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
<Ox0dea>
jnj: Nothing of much consequence can be said without seeing your implementation.
pawnbox has quit [Ping timeout: 245 seconds]
<jnj>
Ox0dea: Ok, I'll post a gist
B1n4r10 has quit [Ping timeout: 250 seconds]
<bithon>
Ox0dea: My assertion is that the only career one should pursue is engineering (of any kind really)
<Ox0dea>
bithon: And now defend.
jottr has quit [Ping timeout: 272 seconds]
s00pcan_ has joined #ruby
<bithon>
Well for one we owe our thanks to engineers for the Internet, computers and all sorts of cool stuff
<bithon>
so yeah
<bithon>
argument = won ?
jottr has joined #ruby
<bithon>
(btw I really think we should move this to #ruby-offtopic)
karapetyan has quit [Remote host closed the connection]
<Ox0dea>
jnj: You're cheating.
<Ox0dea>
Never mind.
s00pcan_ has quit [Read error: Connection reset by peer]
shanemcd has quit [Ping timeout: 246 seconds]
<jnj>
Ox0dea: Is it because I don't have attr_accessor for head?
senayar has joined #ruby
senayar has joined #ruby
dlitvak has joined #ruby
Dimik has joined #ruby
<Ox0dea>
jnj: That's certainly the cause of the NoMethodError, but I thought you were asking after a better approach.
mezcan has joined #ruby
roshanavand has joined #ruby
<jnj>
Ox0dea: Thought I was asking after a better approach? What would be a better approach?
jgt has quit [Ping timeout: 240 seconds]
<Ox0dea>
jnj: Well, you're invoking traversal to remove the head, which should be unnecessary.
ohaibbq has quit [Quit: Leaving...]
dlitvak has quit [Ping timeout: 250 seconds]
seitensei has joined #ruby
dlitvak has joined #ruby
<jnj>
Ox0dea: Ok, would using remove from Enumerable work, instead of traversing through the nodes and adjusting the pointers?
roshanavand has quit [Ping timeout: 246 seconds]
<Ox0dea>
jnj: No, that'd be the cheating of which I initially (incorrectly) accused you.
hectortrope has quit [Remote host closed the connection]
<Ox0dea>
jnj: You're maintaining access to the head, so there's no need to chase pointers.
chouhoulis has joined #ruby
ElFerna has joined #ruby
<jnj>
Ox0dea: Are you referring to the queue or the singlylinkedlist? I'm not trying to chase pointers for the queue as it's just removing the head. For the ll, I wanted to be able to remove an element from any point in the ll, so chasing pointers to find the elt
<jnj>
Ox0dea: I'm just trying to figure out how to access the head from the ll
djbkd has joined #ruby
spider-mario has quit [Remote host closed the connection]
ElFerna has quit [Client Quit]
<Ox0dea>
jnj: With @head, no?
dlitvak has quit [Remote host closed the connection]
seitensei has quit [Ping timeout: 265 seconds]
lacuna has joined #ruby
dlitvak has joined #ruby
<jnj>
Ox0dea: That's what I think, I'm pretty sure I just gotta put attr_accessor or attr_reader in my ll for head, as its only in the node class but not in the ll
<mozzarella>
guys, how do I print a nokogiri node as text?
<ruurd>
node.inspect
<ruurd>
?
skcin7 has quit [Max SendQ exceeded]
chouhoulis has quit [Ping timeout: 276 seconds]
<Ox0dea>
jnj: Hm? Your Node class doesn't have a `head` attribute (and nor should it).
<mozzarella>
as html, not object dump
s00pcan_ has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skcin7 has joined #ruby
<ruurd>
OK please google 'Separation of Concern' to know why a node does not know how to print itself as HTML
djbkd has quit [Ping timeout: 264 seconds]
<ruurd>
h(node.inspect)
icbm has joined #ruby
doug_ has joined #ruby
dlitvak has quit [Remote host closed the connection]
gbmislata has quit [Ping timeout: 260 seconds]
doug_ has quit [Client Quit]
<jnj>
Ox0dea: Whoops, yeah I didn't mean that. I'll just make head accessible in my ll
<Ox0dea>
Never mind that Ichabod Crane didn't actually remove his own head.
<jnj>
Ox0dea: What is #sleepy_hollowify?
<Ox0dea>
jnj: But your SLL class certainly could!
kobain has quit [Read error: Connection reset by peer]
dlitvak has quit [Remote host closed the connection]
<Ox0dea>
You could define a method to adjust `@head` directly without having to expose it.
duckpuppy has joined #ruby
DavidDudson has joined #ruby
mark06 has joined #ruby
adgtl has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
<jnj>
Ox0dea: So would doing attr_reader: head, expose head? I'm not trying to adjust or change the head at all, I just want to know what the head is, and then remove the head
duckpuppy has quit [Ping timeout: 245 seconds]
<Ox0dea>
jnj: Yes, `attr_accessor` "exposes" the attribute(s), making them malleable by outside forces.
firstdayonthejob has joined #ruby
<ruurd>
mozzarella inner_html
<jnj>
Ox0dea: would you suggest then just defining a function that returns head? Also, I thought attr_reader: wouldn't expose head, just tell you what is the head
poguez_ has joined #ruby
mdw has joined #ruby
weemsledeux has joined #ruby
blandflakes has joined #ruby
<Ox0dea>
jnj: That is what #attr_reader will do, but you won't be able to "remove" (read: change) it without having write access.
azgil has quit [Quit: Leaving]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jnj>
Ox0dea: I know, the idea is that I'm calling the remove method from the ll on the head of the ll
weemsledeux has quit [Client Quit]
adgtl has quit [Ping timeout: 250 seconds]
Bloomer has joined #ruby
dfinninger has quit [Remote host closed the connection]
gbmislata has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]