havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
<Verity> in his code actually
<Verity> its done differently
<Verity> he & with a mask, then shifts the mask
<Verity> to get at the bits
<matthewd> Yeah, that's what I expected
xnxq has joined #ruby
<Verity> I was going to do it differently with an array of 1s and 0s and slicing it, maybe this makes no sense
<matthewd> .. and why I've been saying you should start from said code, for the last four hours
<Verity> especially when I don't understand even his algortithm fully or the math behind it, thats part of why I wanted to start from scratch though
blackmesa has joined #ruby
<Verity> I'll try to adapt his code to ruby.
<Verity> I'll take a break for a while for health
lmc has joined #ruby
zeddan has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Arvik_ has quit [Remote host closed the connection]
aglorei has quit [Quit: WeeChat 1.4]
zeddan has quit [Ping timeout: 268 seconds]
marxarelli is now known as marxarelli|afk
aglorei has joined #ruby
xnxq has quit [Quit: WeeChat 1.7]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has joined #ruby
linduxed has quit [Ping timeout: 264 seconds]
enterprisey has joined #ruby
millerti has joined #ruby
agent_white has quit [Quit: bbl]
cfec0b8d has quit [Ping timeout: 256 seconds]
uxp has joined #ruby
uxp has quit [Client Quit]
be_______ has quit []
username1 has quit [Ping timeout: 268 seconds]
marxarelli|afk is now known as marxarelli
linduxed has joined #ruby
montanonic has quit [Ping timeout: 256 seconds]
marr has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
muelleme_ has joined #ruby
hutch34 has joined #ruby
whiteline has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
am55 has joined #ruby
oddalot has joined #ruby
biberu has quit []
muelleme_ has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
lmc has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
lmc has joined #ruby
xnxq has joined #ruby
Yzguy has joined #ruby
lmc_ has joined #ruby
<Verity> str.each_entry do |b| b = b-1 end --- str.each_entry.map {|b| b = b-1} how is that different?
SeepingN has quit [Quit: The system is going down for reboot NOW!]
brent__ has quit [Remote host closed the connection]
Rodya__ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
rasca_ has joined #ruby
lmc has quit [Ping timeout: 268 seconds]
<rasca_> Hello everyone! While trying to run gitlab I'm getting the following weird error: https://gitlab.com/gitlab-org/gitlab-ce/issues/30124
<rasca_> Has anyone seen something like this? Do you have any idea what might be happening?
brent__ has joined #ruby
Channel6 has joined #ruby
lmc_ has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lmc has joined #ruby
brent__ has quit [Ping timeout: 268 seconds]
oliv_____ has joined #ruby
chrisgopher has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
ncthom91 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
hays_ has joined #ruby
xnxq has quit [Ping timeout: 246 seconds]
naprimer_2 has joined #ruby
hays has quit [Ping timeout: 264 seconds]
hays_ is now known as hays
krzysztoff has quit [Ping timeout: 256 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
xnxq has joined #ruby
oliv_____ has quit [Remote host closed the connection]
agent_white has joined #ruby
Jackneill has quit [Remote host closed the connection]
<Disavowed> rasca_: a quick google looks like your gprc_c.so is compiled for 32 bit when you want 64
<Verity> I got it =)
<Verity> >> str = "hello"; str = str.unpack('B*')[0]; str = str.chars; str = str.each.map {|bit| bit = bit.to_i}; str.class; str[1]; str[0];
<ruby[bot]> Verity: # => 0 (https://eval.in/762259)
rasca_ has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
<Disavowed> Verity: Didn't someone yell at you yesterday for abusing the bot? Don't get in trouble - I like having you here!
<Verity> I'm not abusing it
<Verity> I'm using it to show things, just like they said.
naprimer_2 is now known as krzysztoff
<Verity> in this case, I'm showing my solution for critique
<Verity> and thanks, same to you
Yzguy has quit [Quit: Zzz...]
<Verity> people who yell at others should be more introspective
Rodya_ has joined #ruby
Verity has quit [Remote host closed the connection]
Robtop__ has quit [Ping timeout: 258 seconds]
dlitvak has joined #ruby
roamingdog has joined #ruby
Verity has joined #ruby
gusrub has joined #ruby
Verity has quit [Client Quit]
Verity has joined #ruby
astrobunny has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
gusrub has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
bkxd has joined #ruby
Rodya__ has joined #ruby
Chch has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
marxarelli is now known as marxarelli|afk
patarr_ has joined #ruby
harrycee has joined #ruby
nickjj_ has joined #ruby
DarkBushido has quit [Ping timeout: 240 seconds]
incomprehensibly has quit [Ping timeout: 240 seconds]
aep has quit [Ping timeout: 240 seconds]
AndyWojo has quit [Ping timeout: 240 seconds]
Apocalypse has quit [Ping timeout: 240 seconds]
yaewa has joined #ruby
patarr has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 246 seconds]
wsmoak has quit [Ping timeout: 240 seconds]
Lloyd has quit [Ping timeout: 240 seconds]
moei has quit [Ping timeout: 240 seconds]
nickjj has quit [Ping timeout: 240 seconds]
wsmoak has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
segy has quit [Ping timeout: 240 seconds]
AustinMatherne has quit [Ping timeout: 240 seconds]
Lloyd has joined #ruby
incomprehensibly has joined #ruby
Drakevr has quit [Ping timeout: 268 seconds]
AndyWojo has joined #ruby
ozzloy has quit [Ping timeout: 240 seconds]
olspookishmagus has quit [Ping timeout: 240 seconds]
AustinMatherne has joined #ruby
SuperLag has quit [Remote host closed the connection]
SuperLag has joined #ruby
aep has joined #ruby
olspookishmagus has joined #ruby
genpaku has quit [Remote host closed the connection]
<Verity> got a nice one line!
<Verity> >> bit_array = "string".unpack('B*')[0].chars.map{|char| char = char.to_i}
<ruby[bot]> Verity: # => [0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, ...check link for more (https://eval.in/762284)
ozzloy has joined #ruby
olspookishmagus is now known as Guest73086
<Verity> making progress
genpaku has joined #ruby
jsilver has joined #ruby
Drakevr has joined #ruby
Yzguy has joined #ruby
lele has quit [Ping timeout: 240 seconds]
<jsilver> say I have an array of hashes, with id keys in it, and I have another string "id, id, id, id". how do I sort the array of hashes by that list of ids?
KramerC has quit [Ping timeout: 240 seconds]
coyo has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
erlend has joined #ruby
DarkBushido has joined #ruby
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
bandu has joined #ruby
<matthewd> jsilver: What do you have so far?
Apocalypse has joined #ruby
segy has joined #ruby
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lele has joined #ruby
<jsilver> i have something which calls an api and says gives me ids 1...x and then it returns them out of order
KramerC has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
govg has quit [Ping timeout: 268 seconds]
GodFather has joined #ruby
Chch has quit [Ping timeout: 260 seconds]
lmc has quit [Remote host closed the connection]
nobitanobi has joined #ruby
jsilver has quit [Quit: Page closed]
lmc has joined #ruby
jeyraof^mbpr has joined #ruby
jeyraof^mbpr has quit [Client Quit]
nobitanobi has quit [Ping timeout: 240 seconds]
patarr_ has quit [Ping timeout: 264 seconds]
ekinmur has joined #ruby
lmc has quit [Ping timeout: 268 seconds]
dviola has quit [Quit: WeeChat 1.7]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
grrrkit has quit [Ping timeout: 264 seconds]
<allisio> Verity: Congratulations on "getting there", for some definition of the term.
<allisio> Be advised that #map uses the result of the block for the transformation, so that assignment to `char` is perfectly superfluous.
nobitanobi has joined #ruby
Yzguy has quit [Quit: Zzz...]
aglorei has quit [Remote host closed the connection]
aglorei1 has joined #ruby
xnxq has quit [Ping timeout: 264 seconds]
certainty has joined #ruby
hahuang61 has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 260 seconds]
tolerablyjake has joined #ruby
mzo has joined #ruby
d^sh has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has joined #ruby
Pumukel has joined #ruby
libastral has quit [Ping timeout: 246 seconds]
libastral has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
Yzguy has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
whiteline has joined #ruby
raspado has joined #ruby
Chch has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
astrobunny has joined #ruby
jeyraof^mbpr has joined #ruby
MrJoshua has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
<Verity> aha, ty
Yzguy has quit [Quit: Zzz...]
br0d1n has quit [Quit: Leaving]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
HoierM has quit [Ping timeout: 260 seconds]
centrx has quit []
s2013 has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96_ has joined #ruby
Guest96 has quit [Ping timeout: 240 seconds]
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
marcdel has joined #ruby
astrobunny has quit [Remote host closed the connection]
bkxd has joined #ruby
<Disavowed> allisio: Are you trying to write Ruby in Python again? :P
<allisio> Disavowed: Just digging.
<Disavowed> Don't leave here
jameser has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
roamingdog has quit []
JoshS has quit [Ping timeout: 260 seconds]
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
allisio has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
mzo has quit [Quit: :*]
gnufied has joined #ruby
gix has quit [Ping timeout: 240 seconds]
<baweaver> Disavowed: I was just reminding them they have a REPL in their CLI.
allisio has joined #ruby
<baweaver> I'll let someone know if it's really a problem
Chch has quit [Quit: Leaving]
astrobunny has joined #ruby
gix has joined #ruby
JoshS has joined #ruby
<Disavowed> baweaver: I think it was a bit of a mischaracterisation to say you yelled, too. Speaking of repls, does anyone have any preferable alternatives to pry?
<baweaver> Pry not working?
<Disavowed> No it's fine. Just wanted to make sure I wasn't missing out on anything
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> pry4lyfe
Autolycus has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Quit: WeeChat 1.7]
<allisio> ^
<Disavowed> Just saw the plugins page. Perhaps I could soup it up a little
hahuang61 has quit [Ping timeout: 246 seconds]
BabyMario has joined #ruby
cyphase has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
gnufied has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
NightMonkey has joined #ruby
lmc has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
tau has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
lmc has quit [Ping timeout: 240 seconds]
IRCFrEAK has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
choke has joined #ruby
IRCFrEAK has left #ruby [#ruby]
nickjj_ has quit [Read error: Connection reset by peer]
nickjj_ has joined #ruby
dar123 has quit [Quit: Textual IRC Client: www.textualapp.com]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
Vile` has joined #ruby
astrobunny has joined #ruby
knight33 has joined #ruby
MasterNayru has quit [Quit: No Ping reply in 180 seconds.]
heyimwill has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
Sammichmaker has joined #ruby
choke has quit [Client Quit]
MasterNayru has joined #ruby
jusa has joined #ruby
certainty has joined #ruby
Channel6 has quit [Quit: Leaving]
heyimwill has joined #ruby
certainty has quit [Ping timeout: 268 seconds]
xnxq has joined #ruby
krasnus has joined #ruby
djbkd has joined #ruby
CloCkWeRX has joined #ruby
choke has joined #ruby
xnxq has quit [Ping timeout: 260 seconds]
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
choke has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
Rodya__ has quit [Remote host closed the connection]
milardovich has joined #ruby
Rodya_ has joined #ruby
bocaneri has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
jameser has quit [Ping timeout: 246 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jameser has joined #ruby
grillon has joined #ruby
ekinmur has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renatosilva has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
nowhere_man has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
rippa has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
shinnya has joined #ruby
amclain has quit [Quit: Leaving]
dikaio_ has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
pulkit4tech has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
skweek has joined #ruby
raspado has quit [Ping timeout: 256 seconds]
oliv_____ has quit [Remote host closed the connection]
davorb has quit [Read error: Connection reset by peer]
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
davorb has joined #ruby
sneakerhax has quit [Quit: Back later]
sneakerhax has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
milardovich has quit []
username_ has joined #ruby
igniting has quit [Ping timeout: 240 seconds]
zeddan has joined #ruby
sneakerhax has quit [Quit: Back later]
astrobunny has quit [Remote host closed the connection]
username_ has quit [Ping timeout: 240 seconds]
zeddan has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nofxxx has joined #ruby
nowhere_man has joined #ruby
hutch34 has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
Guest73086 is now known as olspookishmagus
jamesaxl has joined #ruby
nowhere_man has quit [Remote host closed the connection]
Qchmqs has joined #ruby
nowhere_man has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
renchan has joined #ruby
pilne has quit [Quit: Quitting!]
Vile` has quit [Ping timeout: 260 seconds]
Autolycus has quit []
djbkd has quit [Quit: My people need me...]
hahuang61 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ddffg has joined #ruby
stoffus has quit [Quit: Lost terminal]
lmc has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby
willardg has joined #ruby
pankaj_ has joined #ruby
lmc has quit [Ping timeout: 240 seconds]
igniting has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
certainty has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
muelleme_ has joined #ruby
HippoDippo has joined #ruby
certainty has quit [Ping timeout: 264 seconds]
ahrs has quit [Remote host closed the connection]
Verity has quit [Ping timeout: 246 seconds]
renatosilva has quit [Quit: http://renatosilva.net]
<HippoDippo> Is this sort method considered good or bad?: https://gist.github.com/anonymous/2c84cea470f2d9a004b5d4beca794eed
jenrzzz has quit [Ping timeout: 240 seconds]
certainty has joined #ruby
ta_ has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Verity has joined #ruby
czerasz has quit [Ping timeout: 240 seconds]
<herwin> bad
<herwin> it breaks when you input an empty array
<herwin> the array.length * 5 is completely arbitrary
<herwin> and of course you could just use Array#sort (but I assume this code was for educational purposes)
Rodya_ has joined #ruby
<HippoDippo> yes i'm still learning
cam27_ has joined #ruby
nofxxx has quit [Ping timeout: 260 seconds]
<HippoDippo> herwin: im guessing using recursion for this would be a good idea?
cam27 has quit [Ping timeout: 260 seconds]
cam27_ is now known as cam27
<elomatreb> Normally you terminate sort algorithms like this with a check if all elements are sorted, not with a static number of iterations
Rodya_ has quit [Ping timeout: 246 seconds]
<elomatreb> Also, having both a return and a break in line 16/17 does nothing, return already terminates the loop
<herwin> this is pretty close to what you are trying to do
TomyLobo2 has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bkxd has joined #ruby
<HippoDippo> elomatreb: How would you check the array to see if the elements are sorted?
Cohedrin has joined #ruby
Mortomes|Work has joined #ruby
<elomatreb> Loop through it until you find an element that is larger than the next (assuming you want ascending order), immediately fail if you do. If you reach the end of the array without finding such an element, you're sorted
<HippoDippo> ahhh ok thanks
<elomatreb> Tip: Array#each_cons instead of fumbling about with index variables
CloCkWeRX has quit [Ping timeout: 246 seconds]
<HippoDippo> So those index variables were bad?
cam27 has quit [Quit: cam27]
bkxd has quit [Ping timeout: 240 seconds]
muelleme_ has quit [Ping timeout: 256 seconds]
<elomatreb> Not *bad*, but it's easy to make a mistake and e.g. accidentally get an element too much (past the end of the array). In other languages this might fail immediately, but in Ruby it silently returns nil
<elomatreb> >> a = [1, 2]; a[3]
<ruby[bot]> elomatreb: # => nil (https://eval.in/762429)
<HippoDippo> Ohh i see. I was basically trying to make a sort method with the bare essentials
lubekpl has joined #ruby
last_staff has joined #ruby
sjums_ is now known as sjums
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
green_hat has joined #ruby
andikr has joined #ruby
HippoDippo has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jenrzzz has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
jusa has joined #ruby
Verity has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
muelleme_ has joined #ruby
BabyMario has quit [Quit: bye]
mark_66 has joined #ruby
doublemalt_ has quit [Ping timeout: 256 seconds]
lmc has joined #ruby
<herwin> you could start of with a very simple implementation (like "def sort(array); array.sort; end"), write a number of test cases for it, and then just keep changing things to get closer and closer to bare metal
<herwin> the test cases could be used to see if the implementation still works
nowhere_man has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
Verity has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
lmc has quit [Ping timeout: 240 seconds]
Zarthus has quit [Ping timeout: 260 seconds]
dfoolz has quit [Ping timeout: 260 seconds]
dfoolz has joined #ruby
Zarthus has joined #ruby
valentinul has joined #ruby
Arpanet69 has joined #ruby
Kug3lis has joined #ruby
vali has joined #ruby
TomyWork has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
grillon has quit [Quit: Connection closed for inactivity]
muelleme_ has quit [Ping timeout: 264 seconds]
fmartingr has joined #ruby
green_hat has quit []
govg has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
d0nn1e_ has quit [Ping timeout: 264 seconds]
tau has joined #ruby
nobitanobi has joined #ruby
Rodya_ has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
zeddan has joined #ruby
jaruga has joined #ruby
spicerack has joined #ruby
aufi has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nobitanobi has joined #ruby
pulkit4tech has joined #ruby
ta_ has joined #ruby
pankaj_ has quit [Quit: Leaving]
zeddan has quit [Ping timeout: 264 seconds]
nobitano_ has joined #ruby
sylario has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
elifoster has quit [Quit: zzz]
hutch34 has joined #ruby
cfec0b8d has joined #ruby
antgel has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
esObe_ has joined #ruby
flying has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
biberu has joined #ruby
maattdd has joined #ruby
jud^ has joined #ruby
xenops has joined #ruby
yurikoles has joined #ruby
jud has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
avelldiroll has quit [Quit: WeeChat 1.0.1]
nowhere_man has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cfec0b8d has joined #ruby
Snickers has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
xywbtu has joined #ruby
binaryplease has joined #ruby
hurricanehrndz has joined #ruby
tvw has joined #ruby
minimalism has quit [Quit: minimalism]
avelldiroll has joined #ruby
charliesome has joined #ruby
User458764 has joined #ruby
mikecmpbll has joined #ruby
olivi____ has joined #ruby
mikecmpbll has quit [Client Quit]
czerasz has joined #ruby
Rodya_ has joined #ruby
olivi____ has quit [Ping timeout: 256 seconds]
jsrn_ has joined #ruby
tomphp has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
lubekpl has quit [Read error: Connection reset by peer]
siovene has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson_ has joined #ruby
dionysus69 has joined #ruby
bkxd has joined #ruby
binaryplease has quit [Ping timeout: 256 seconds]
Verity has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
conta has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
hahuang61 has joined #ruby
_2easy has quit [Quit: Lost terminal]
Beams has joined #ruby
patarr has joined #ruby
_2easy has joined #ruby
lmc has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
lmc has quit [Ping timeout: 258 seconds]
certainty has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has joined #ruby
binaryplease1 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
binaryplease has quit [Ping timeout: 256 seconds]
doublemalt_ has joined #ruby
binaryplease1 is now known as binaryplease
certainty has joined #ruby
workmad3 has joined #ruby
blackmesa has joined #ruby
bocaneri is now known as Sauvin
rgr has joined #ruby
charliesome has joined #ruby
vasilakisfil has joined #ruby
<vasilakisfil> can anyone help me why the last method here raises an error? https://gist.github.com/vasilakisfil/f6b5c6bdd6da0f60c24cba5c26433934
fxa has joined #ruby
marr has joined #ruby
jgnagy has joined #ruby
lel has quit [Ping timeout: 240 seconds]
fxa is now known as fxa90id
lel has joined #ruby
<canton7> vasilakisfil, what error, what line?
jgnagy has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
lxsameer has joined #ruby
Snickers has quit [Quit: Snickers]
Rodya_ has quit [Ping timeout: 246 seconds]
jaruga has quit [Ping timeout: 240 seconds]
zeddan has joined #ruby
chuff has joined #ruby
zeddan has quit [Ping timeout: 258 seconds]
<vasilakisfil> canton7 in the last line of my gist I show what error I get
<vasilakisfil> essentially the block within I define some methods is not passed in the class during the class initialization
<vasilakisfil> maybe I am doing something wrong but I don't know how I can achieve that
<vasilakisfil> I have seen folks in active admin do the same thing so it should be possible
hutch34 has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
<vasilakisfil> when I dynamically define a new class, it picks up the inheritence not the methods in the block though
jenrzzz has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has joined #ruby
<matthewd> vasilakisfil: You need to either pass the block directly to Class.new as &block, or use instance_exec
postmodern has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
<matthewd> vasilakisfil: But that's not an endorsement of the strategy; it looks unwise to me -- unconventional, opaque, class definitions aren't doing future developers any favours
jusa has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
Snickers has joined #ruby
fxa90id has quit [Changing host]
fxa90id has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rgr_ has joined #ruby
jeyraof^mbpr has quit [Quit: Leaving]
rgr has quit [Ping timeout: 256 seconds]
jusa has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
<vasilakisfil> matthewd I know I am experimenting
<vasilakisfil> thanks it worked !
jusa has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
am55 has quit [Quit: Textual IRC Client: www.textualapp.com]
elaptics has joined #ruby
ferr1 has joined #ruby
aviraldg has quit [Remote host closed the connection]
dman[m] has quit [Remote host closed the connection]
travisr has quit [Read error: Connection reset by peer]
Tagami[m] has quit [Remote host closed the connection]
M107262[m] has quit [Read error: Connection reset by peer]
daveyboi[m] has quit [Read error: Connection reset by peer]
velu_aon[m] has quit [Read error: Connection reset by peer]
jakebriggs[m] has quit [Write error: Connection reset by peer]
MicaFox[m] has quit [Read error: Connection reset by peer]
heftig has quit [Read error: Connection reset by peer]
Giphy[m] has quit [Remote host closed the connection]
bascht1 has quit [Write error: Connection reset by peer]
el_ocho[m] has quit [Read error: Connection reset by peer]
thulsa_legume[m] has quit [Remote host closed the connection]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
jameser has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
mikecmpbll has joined #ruby
rhyselsmore has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
tvw has quit []
tvw has joined #ruby
bascht1 has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
binaryplease has quit [Quit: binaryplease]
astrobunny has quit [Remote host closed the connection]
Rodya_ has joined #ruby
binaryplease has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
Emmanuel_Chanel has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
rhyselsmore has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 264 seconds]
tau has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
hahuang61 has joined #ruby
certainty has joined #ruby
hutch34 has joined #ruby
facest has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
faces has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
jusa has joined #ruby
Fernando-Basso has joined #ruby
Fernando-Basso has quit [Client Quit]
blackwind_123 has joined #ruby
Fernando-Basso has joined #ruby
govg has quit [Ping timeout: 240 seconds]
ncthom91 has joined #ruby
ncthom91 has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
tau has joined #ruby
jusa has quit [Ping timeout: 264 seconds]
charliesome has quit [Client Quit]
patarr has joined #ruby
govg has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
binaryplease has quit [Ping timeout: 256 seconds]
certainty has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
charliesome has joined #ruby
jaruga has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
jaruga has quit [Client Quit]
chuff has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
binaryplease has joined #ruby
username_ has joined #ruby
charliesome has joined #ruby
zeddan has joined #ruby
TheWhip has joined #ruby
jgnagy has joined #ruby
username_ has quit [Ping timeout: 246 seconds]
zeddan has quit [Ping timeout: 246 seconds]
|RicharD| has joined #ruby
govg has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
dionysus69 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
Lord_of_Life has joined #ruby
heftig has joined #ruby
Giphy[m] has joined #ruby
Tagami[m] has joined #ruby
M107262[m] has joined #ruby
daveyboi[m] has joined #ruby
thulsa_legume[m] has joined #ruby
aviraldg has joined #ruby
travisr has joined #ruby
MicaFox[m] has joined #ruby
el_ocho[m] has joined #ruby
jakebriggs[m] has joined #ruby
dman[m] has joined #ruby
Deviation has joined #ruby
velu_aon[m] has joined #ruby
hutch34 has joined #ruby
jenrzzz has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
flak has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
binaryplease has quit [Quit: binaryplease]
bkxd has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
nobitano_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
zacts has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
chuff has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
kristofferR has joined #ruby
sepp2k has joined #ruby
mikecmpbll has joined #ruby
leito has quit [Ping timeout: 240 seconds]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
certainty has joined #ruby
ledestin has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
chuff has quit [Quit: Textual IRC Client: www.textualapp.com]
Lord_of_Life has quit [Excess Flood]
chuff has joined #ruby
jameser has joined #ruby
Lord_of_Life has joined #ruby
milardovich has joined #ruby
HoierM has joined #ruby
leito has joined #ruby
chuff has quit [Quit: Textual IRC Client: www.textualapp.com]
xywbtu has quit [Ping timeout: 260 seconds]
chuff has joined #ruby
chuff has quit [Client Quit]
agent_white has quit [Quit: leaving]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
synthroid has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
TheWhip has quit [Remote host closed the connection]
nowhere_man has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Verity has joined #ruby
gnufied has joined #ruby
<Verity> Should I try to copy his code directly into ruby?
<Verity> Or Should try to replace this nested for loop
<Verity> From what I understand ruby programmers don't use a lot of for loops
nobitanobi has joined #ruby
Silthias1 has joined #ruby
<mikecmpbll> i'm trying to parse a DateTime in the current system's timezone
<elomatreb> Verity: You didn't post your code again
<mikecmpbll> what's the simplest way? for whatever reason DateTime.parse('07:00').to_time converts to local timezone
kernelPaniq has quit [Ping timeout: 240 seconds]
<mikecmpbll> so .to_time.to_datetime is an option :p
Silthias has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeddan has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
knight33 has joined #ruby
tau has quit [Remote host closed the connection]
tau has joined #ruby
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
jusa has joined #ruby
gdonald has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeddan has quit [Ping timeout: 268 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
brent__ has joined #ruby
patarr has joined #ruby
jusa has quit [Ping timeout: 264 seconds]
TheWhip has joined #ruby
TheWhip has quit [Remote host closed the connection]
TheWhip has joined #ruby
blackwind_123 has quit [Quit: For Sale: Parachute. Only used once, never opened, small stain.]
jaruga has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
jaruga has quit [Client Quit]
jaruga has joined #ruby
patarr has quit [Ping timeout: 264 seconds]
yehowyada has joined #ruby
TheWhip has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving]
aupadhye has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
yurikoles has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
ramortegui has joined #ruby
GodFather has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
meshsmith has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
spicerack has joined #ruby
cam27 has joined #ruby
AgentVenom has joined #ruby
jgnagy has joined #ruby
dionysus69 has joined #ruby
rikkipitt has joined #ruby
yurikoles has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
vali has quit [Quit: vali]
Rodya_ has joined #ruby
bmurt has joined #ruby
agent_white has joined #ruby
vali has joined #ruby
valentinul has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
Pumukel has quit [Read error: Connection reset by peer]
<Verity> bug report submitted
vali has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
kernelPaniq has joined #ruby
rikkipitt has quit [Quit: Leaving...]
ekinmur has joined #ruby
<agent_white> Mornin' folks
Pumukel has quit [Ping timeout: 256 seconds]
duckpupp1 has joined #ruby
DLSteve has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
gnufied has joined #ruby
<Verity> >> for byte in 0..7 puts byte end
<ruby[bot]> Verity: # => /tmp/execpad-d51bbe2941a9/source-d51bbe2941a9:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/762721)
snapcase has quit [Remote host closed the connection]
<Verity> how do I make that work with each
<Verity> >> for byte in 0..7 do puts byte end
<ruby[bot]> Verity: # => 0 ...check link for more (https://eval.in/762722)
<centrx> Verity: (0..7).each { |n| puts n }
siovene has quit [Quit: Connection closed for inactivity]
<centrx> Verity: or (0..7).each do |n| puts n end for multi-line blocks
<Verity> ty, I see now
shinnya has joined #ruby
TheWhip has joined #ruby
s2013 has joined #ruby
tekku is now known as tekk
igniting has quit [Ping timeout: 246 seconds]
TheWhip_ has joined #ruby
jwsuiw has joined #ruby
lmc has joined #ruby
ta_ has quit [Remote host closed the connection]
bkxd has joined #ruby
TheWhip has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
ddffg has quit [Ping timeout: 258 seconds]
lmc has quit [Remote host closed the connection]
ldnunes has joined #ruby
<Verity> Alright, I typed up and fully understood the C++ code. I tried it out a bit and it works. Then I tried to translate it to ruby. I'm close, and have made progress. I'm not there yet. I managed to get rid of all syntax errors, and now my only remaining problem is incorrect crc result.
bkxd has quit [Ping timeout: 240 seconds]
lmc has joined #ruby
[k- has joined #ruby
aupadhye is now known as aupadhye|call
aupadhye|call is now known as aupadhye
zeddan has joined #ruby
r3zn0v has joined #ruby
ldnunes has quit [Quit: Leaving]
sofubi has joined #ruby
millerti has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sofubi has quit [Client Quit]
<Verity> elomatreb, matthewd I've posted full code including the original and my attempted adaptation
<canton7> Verity, line 11 is different
<canton7> (line 11 in the ruby)
Pumukel has joined #ruby
<canton7> also, in ruby '0' is truthy, while in C it's falsy
<canton7> so those 'if' statemtents will need altering to take account of that
<elomatreb> ^ this. Your conditionals will always run
lmc has quit [Remote host closed the connection]
<canton7> so, the 'if' statements do the wrong test, and the 'if' statement on line 11 is backwards, and tests the wrong thing
<Verity> ok, I'll start with line 11
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
SirFunk has joined #ruby
<matthewd> The C++ code is using the char[] as a list of 8-bit integers, so you probably want to pass packet.bytes
zeddan has quit [Ping timeout: 246 seconds]
<matthewd> The final return is different/wrong too
howdoi has joined #ruby
Snickers has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
<canton7> good spot
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
<matthewd> The inner loop should be 8.times
<matthewd> The outer one can be `7.times do |byte|` if you like
<Verity> ty, fixing these errors now
nickjj_ is now known as nickjj
thadtheman has quit [Ping timeout: 268 seconds]
<Verity> what do you mean backwards
<Verity> canton7,
<centrx> statement if conditional_expression === if conditional_expression statement
<Verity> the while thing has to be rewritten I think
<Verity> I'm watching reg in the debugger and its growing huge
tvw has quit [Read error: Connection reset by peer]
<Verity> so its not backwards, its my choice as I thought
yeticry has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LyndsySimon> Is there anything link Kenneth Reitz's "Hitchhiker's Guide to Python" for Ruby? http://python-guide.org
bmurt has joined #ruby
ldnunes has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
<centrx> Verity: It's the opposite of the C++ code
yeticry_ has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
ekinmur has quit [Read error: Connection reset by peer]
ekinmur_ has joined #ruby
<canton7> Verity, the C++ says 'if(packet[byte] & mask) reg |= 1;'. The Ruby says the equivalent of 'if (reg |= 1) packet[byte].to_i & mask'
hutch34_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
nh` has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
<canton7> Verity, also, "h".to_i is '0' in ruby, but 'h' is 104 in C/C++
thadtheman has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
ozcanesen has joined #ruby
r3zn0v has quit [Quit: Leaving]
<Verity> I'll take a look at this
deuterium has joined #ruby
<elomatreb> >> "h".ord # is what you want Verity
<ruby[bot]> elomatreb: # => 104 (https://eval.in/762738)
igniting has joined #ruby
<Verity> packet[byte] is a fixnum though
w0lf_ has joined #ruby
<elomatreb> >> 104.chr
<ruby[bot]> elomatreb: # => "h" (https://eval.in/762739)
<matthewd> Not in the gist we're looking at it's not
<matthewd> Unless you've done my suggested "you probably want to pass packet.bytes", in which case it will be
hahuang61 has quit [Ping timeout: 240 seconds]
<Verity> packet[byte]class ->>>>Fixnum
<Verity> ah yes, I did that
<canton7> update your gist then
<matthewd> (but I failed to note that assumes `packet` is a string, not the current array)
<Verity> I adjusted it
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<canton7> you can modify gists btw, at least if you're signed into github
Snickers has joined #ruby
lmc has joined #ruby
<canton7> right, so line 11 is still buggy, and packet[byte].to_i will still return 0 for almost everything
<canton7> and you're still assuming that 0 is falsy, when ruby treats it as truthy
<matthewd> canton7: No it won't
<canton7> matthewd, "1hello0"[1].to_i is 0. What am I missing?
<matthewd> (though the to_i is now unnecessary)
<canton7> aaah, .bytes, that's what
<matthewd> So yeah, flip 11, fix the zero conditionals, and this is sounding right
toretore has joined #ruby
<canton7> ah, no, not quite
truenito has joined #ruby
blackmesa has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<canton7> that 'reg <<= 1' line in the C++ looks odd. It's going to be execute 56 times, but only has 16 bits, so it's going to end up as 0 and stay as 0 fairly quickly
<canton7> ruby doesn't know that it's only 16 bits wide, and so won't do that - so you'll have a difference there
TomyWork has quit [Ping timeout: 240 seconds]
lmc has quit [Quit: Leaving...]
<canton7> ah no, I missed the 'reg |= 1', so the C++ is probably OK. Regardless, the ruby won't follow the same behaviour in some cases
zeddan has joined #ruby
<matthewd> Irrelevant, though it'll mean we have a bignum involved; the final result is masked on 16
thadtheman has quit [Ping timeout: 258 seconds]
<matthewd> Only the bottom 9 bits of reg are used
<matthewd> Oh and actually, none of the rest can get set
Guest96_ has quit [Quit: Guest96_]
<matthewd> poly clears bit 9 any time it gets set, before it can be shifted further
<canton7> truueee
<Verity> yes thats how it was supposed to function
<Verity> from my limited understanding of the algorithm
<Verity> let me take a look at the remaining errors
Arpanet69 has joined #ruby
<canton7> also, given it's ruby, you'll probably want to do 'packet.each do |byte| on line 7 (and use 'byte' instead of 'packet[byte].to_i' on line 11)
centrx has quit []
blackmesa has quit [Ping timeout: 260 seconds]
<matthewd> Yeah, I was waiting until it was working, but +1
<matthewd> Line 4 can go away
<canton7> fair, I'm getting ahead of myself
oliv_____ has quit [Remote host closed the connection]
|RicharD| has quit [Quit: Sto andando via]
truenito has quit [Remote host closed the connection]
|RicharD| has joined #ruby
oliv_____ has joined #ruby
DaveTaboola has joined #ruby
nofxx has joined #ruby
bkxd has joined #ruby
<Verity> thank you canton7 that looks much cleaner
havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.3 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
w0lf_ has quit [Ping timeout: 260 seconds]
<matthewd> Are we getting the right answers now?
<darix> havenwood: what did you change?
<havenwood> darix: Ruby 2.2.7 released!
* havenwood senses 2.3.4 in the mysterious future
vuoto has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
thadtheman has joined #ruby
blackpajamas has quit [Quit: WeeChat 1.7]
<Verity> flip 11 do you mean
<Verity> byte & mask if reg |= 1 >>> if reg |= 1 byte & mask
<Verity> I thought those were equivalent
psychicist__ has joined #ruby
<matthewd> Those are equivalent, and neither match what the C++ is doing
<Verity> ok let me look more closely
<canton7> the C++ doesn't say 'if reg |= 1 byte & mask' though...
pulkit4tech has joined #ruby
mark_66 has quit [Remote host closed the connection]
<Verity> ah I see now what you meran
<Verity> that was a purely amateur mistake =\
eblip has joined #ruby
ekinmur has joined #ruby
<canton7> (the clue is that the condition shouldn't have side effects (and yours does), while the statement should actually do something (which yours doesn't)
ekinmur_ has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
choke has joined #ruby
Guest96 has joined #ruby
thadtheman has quit [Ping timeout: 260 seconds]
tenderlove has quit [Quit: Leaving...]
<Verity> I managed to make the number change
<canton7> `|| nil` wut?
<Verity> its wrong by 10 though
<Verity> so almost there
<Verity> I wonder if I can just add 10 now, I doubt it
<matthewd> Your input packets don't match
charliesome has joined #ruby
Arpanet69 has quit [Ping timeout: 268 seconds]
<matthewd> {'1', 'h', 'e', 'l', 'o','0'} != "1hello0"
<Verity> it works
<matthewd> crc8("1helo0\0".bytes) == 116
<Verity> I see what you mean, I messed it up
<Verity> I have trouble with that sort of error
<Verity> but it seems to be working now!!!
<Verity> != 0 || nil w as thed fix
<canton7> the `|| nil` does exactly nothing
<canton7> since 'if nil' is always false
<herwin> just keep adding random statements until it compiles?
<Verity> herwin, yes
<Verity> thats easier now with the plugins I just got for vscode
<Verity> shows syntax errors before they happen, but can't help with this sort of semantic problem
jgnagy has joined #ruby
<canton7> "just keep adding random statements until it compiles" is supposed to be a very bad thing... You're not supposed to go "Yes! That's what I do!" :P
synthroid has quit [Remote host closed the connection]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Verity> its part of how I learn
atom3 has joined #ruby
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
jusa has joined #ruby
atom3_ has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
thadtheman has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.7]
meshsmith has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
tenderlove has joined #ruby
Fernando-Basso has quit [Client Quit]
thadtheman has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
patarr_ has joined #ruby
Fernando-Basso has joined #ruby
meshsmith has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
<Verity> omfg
* Verity rages
toretore has quit [Quit: Leaving]
<canton7> hmm?
himmmmmm has joined #ruby
<himmmmmm> hello
<himmmmmm> i am having a problem with my caesar's cipher for some reason
grillon has joined #ruby
<himmmmmm> i don't understand why i am getting special characters or lowercase characters for that matter
<himmmmmm> i shouldn't be
tolerablyjake has joined #ruby
<elomatreb> himmmmmm: I think you're printing the wrong variable
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<himmmmmm> elomatreb: sorry
<himmmmmm> before i had puts char.chr
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<himmmmmm> and i am getting that
aibot has quit [Remote host closed the connection]
Yzguy has joined #ruby
<matthewd> himmmmmm: Your algorithm is wrong
LiquidInsect has quit [Ping timeout: 260 seconds]
<himmmmmm> how?
czerasz has quit [Ping timeout: 240 seconds]
<matthewd> Line 4 doesn't make sense
<baweaver> Explain to us what it's doing
<baweaver> line by line
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
<matthewd> The fact you don't use `rotate` at all is also a clue
<himmmmmm> i did before
<himmmmmm> i was just debugging and changed some stuff
millerti has joined #ruby
<himmmmmm> numbers has an array with a range of 65-90
<baweaver> matthewd: So if you solve a Caesar cypher by throwing random solutions at it, does it make it a Brutus force attempt?
<himmmmmm> rotate has a number that it is supposed to rotate the letters by
<himmmmmm> then the iterator iterates through each of those numbers
<baweaver> note that it's not being used as mentioned earlier.
<matthewd> baweaver: I think the fact I just actual-lolled confirms I really need to get some sleep :P
thadtheman has joined #ruby
__Yiota has joined #ruby
<himmmmmm> add is the variable that will add a number to rotate it by so it will never exceed 90
<baweaver> or you have a good sense of humor. I don't judge
<baweaver> himmmmmm you sure?
flying has quit []
brent__ has joined #ruby
sagax has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jgnagy has joined #ruby
<baweaver> >> 65 % 13
<ruby[bot]> baweaver: # => 0 (https://eval.in/762782)
antoniobeyah has joined #ruby
<baweaver> >> 90 % 13
<ruby[bot]> baweaver: # => 12 (https://eval.in/762783)
<himmmmmm> i see what's haoppenning
<himmmmmm> thank you
<himmmmmm> i am dumb
aufi has quit [Quit: Leaving]
<baweaver> part of it
<himmmmmm> rip
Lord_of_Life has quit [Excess Flood]
<baweaver> &ri String#tr
<baweaver> that's faster.
ResidentBiscuit has joined #ruby
<himmmmmm> if i put an ugly if statement there will everyone hate me?
<baweaver> >> 'abcde'.chars # himmmmmm
<ruby[bot]> baweaver: # => ["a", "b", "c", "d", "e"] (https://eval.in/762784)
<baweaver> you don't need one
<Verity> its not right
<baweaver> >> 'abcde'.each_char.map { |c| c }
<ruby[bot]> baweaver: # => ["a", "b", "c", "d", "e"] (https://eval.in/762785)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<baweaver> if you do something in map you can have a new version of the string
silva has joined #ruby
<baweaver> though do note this is just ROT13
brent__ has quit [Remote host closed the connection]
<baweaver> so tr is a much simpler solution.
brent__ has joined #ruby
<himmmmmm> tr?
<baweaver> See the above link
jenrzzz has quit [Ping timeout: 260 seconds]
Lord_of_Life has joined #ruby
<silva> hello, I'm having this error "undefined method `zip' for nil:NilClass" in this code line "latency.zip metric" I'm not a ruby programmer, I just wanna run a probram. What should I do?
swills_ is now known as swills
<canton7> silva, 'latency' is nil
<matthewd> silva: Report a bug to whoever wrote the program
<silva> canton7: so I have to install latency gem?
<canton7> silva, I've no idea. That specific varilable is nil. I've no idea why that might be, from the information you've given us
cagomez has joined #ruby
<silva> this is the full code: https://github.com/nckrse/graphite-smokeping/blob/master/bin/graphite-smokeping, I don't undestand much of it
cagomez has quit [Read error: Connection reset by peer]
cagomez_ has joined #ruby
xpt is now known as XPT
aganov has quit [Remote host closed the connection]
<silva> (line 24)*
<himmmmmm> i can't read my own solution but who cares right?
XPT is now known as xpt
conta has quit [Ping timeout: 260 seconds]
<baweaver> silva: latency is defined on line 21
<baweaver> so that command isn't working.
<himmmmmm> my solution is very wrong
<Verity> wiat they come out to 48 in both
<himmmmmm> brb
<Verity> I thoguth it was supposed to come back out as 0
<silva> baweaver: so it is a fucntion of Net::Fping library
certainty has quit [Ping timeout: 268 seconds]
<baweaver> yep
<baweaver> so what it's doing is opening a file named spokeping_hosts and going over every line of it
thadtheman has quit [Ping timeout: 240 seconds]
<baweaver> so check your smokeping_hosts file and get the first line
<baweaver> then run `irb` in your terminal, it's a live Ruby environment you can play in
<matthewd> Verity: Hint: what is ASCII 48?
<baweaver> type in: require 'net/fping'
User458764 has joined #ruby
<baweaver> then put in that line in place of dst: Net::Fping::latency("your first line here", "68", "6", "1000")
<baweaver> >> '' << 48
<ruby[bot]> baweaver: # => "0" (https://eval.in/762787)
knight33 has joined #ruby
<silva> baweaver: thanks a lot! gonna try that :)
<baweaver> let us know how it goes
<baweaver> for some reason it's returning nil, so that's the issue. Most likely your file is borked
<silva> of course
<baweaver> though that code is rather silly
<Verity> matthewd, got it!!! =)
<Verity> .chr =P
<Verity> thank you all for helping me get this translated
<matthewd> huh?
<matthewd> That doesn't sound right.. what did you just do?
synthroid has joined #ruby
<himmmmmm> this should work though... i don't get it
<silva> baweaver, this is the error output: https://gist.github.com/goaquin/c20051bf8ae65905d1cb3821d283eb12
* baweaver blinks
<baweaver> huh
<matthewd> himmmmmm: This is still waaayy off. Back up and think about the definition of the cipher. Forget about the ASCII parts.
<himmmmmm> i just add 13
<himmmmmm> right?
<matthewd> Indeed
<baweaver> silva: give me a sec
<baweaver> hunting
<matthewd> So which line is doing that?
<silva> baweaver: ok :)
<himmmmmm> OOOOOOHHHHHHHHHHHH
<himmmmmm> why am i so stupid
<himmmmmm> i will never know
<himmmmmm> wait
<matthewd> Sounds like it's trying to run an fping executable
<baweaver> yep
<himmmmmm> but i am rotating it by 13
<baweaver> was checking for the source
Pumukel has quit [Remote host closed the connection]
<himmmmmm> chr_num = n % rotate
<himmmmmm> rotate = 13
gdonald has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
<matthewd> That doesn't sound like "add" to me
<silva> baweaver, matthewd: so I have to intsall fpinglocaly
gdonald has joined #ruby
<baweaver> yeah
<baweaver> looks like it
<himmmmmm> chr_num + 65 or chr_num + n
Qchmqs has quit [Ping timeout: 260 seconds]
<matthewd> And that doesn't sound like 13
<himmmmmm> but i did the mod to find out where the + 13 should be
<Verity> me?
<himmmmmm> i get it i think
<matthewd> himmmmmm: As I said: throw this away, and start from the actual definition. The only things this has in common with the right answer is that they both have a mod operation and an addition (but not in this order)
Arpanet69 has joined #ruby
<matthewd> Verity: Yes, my immediate reply was to you. What does your code look like now?
<Verity> give me a minute, I'm adding it into the maina pplication now
jwsuiw has quit [Remote host closed the connection]
deuterium has quit [Ping timeout: 260 seconds]
thadtheman has joined #ruby
nh` has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 246 seconds]
<silva> thanks guys that was the problem :)
juggler has joined #ruby
jsrn_ has quit [Quit: Leaving]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
username1 has joined #ruby
<baweaver> silva: https://github.com/penguinpowernz/net-fping/pull/3 - Also added a patch to the library
<baweaver> we'll see if they take it. It's basic but it'll work for now.
xnxq has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
willardg has left #ruby ["Textual IRC Client: www.textualapp.com"]
<Verity> now its wrong, this is odd
meshsmith has quit [Ping timeout: 240 seconds]
<himmmmmm> i got it!
<matthewd> Line 6 should be 13, not rotate.. but otherwise it seems plausible
<matthewd> .. though that line could actually just be position -= 26, too
<Verity> now I'm getting 120 for the crc instead of 106 =\
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> >> 'foobar'.tr('a-z','n-za-m') # himmmmmm :D
<ruby[bot]> baweaver: # => "sbbone" (https://eval.in/762788)
<Verity> after moving the function into my main program
<himmmmmm> baweaver: that's illegible
<baweaver> not really
<baweaver> &ri String#tr
<matthewd> >> 'foobar'.tr('a-mn-z', 'n-za-m') # better?
<ruby[bot]> matthewd: # => "sbbone" (https://eval.in/762791)
<himmmmmm> yeah but a person who is not a coder will be like wtf
<baweaver> then why would they be reading code?
kegster has quit [Ping timeout: 256 seconds]
lhcrkd has joined #ruby
<matthewd> Said person is going to struggle with the significance of 65 & 90 just a little bit too ¯\_(ツ)_/¯
<himmmmmm> that's a good question
<himmmmmm> matthewd: what are you saying
<himmmmmm> i don't think that's coherent english
<baweaver> ascii
<himmmmmm> oh
xnxq has quit [Quit: WeeChat 1.7]
<himmmmmm> but that can be explained no?
<himmmmmm> like this
<baweaver> so can tr
xnxq has joined #ruby
llaine has joined #ruby
TheWhip_ has quit [Remote host closed the connection]
<baweaver> Now what if you need to ROT13 some arbitrary string?
kegster has joined #ruby
<matthewd> It's fun to implement it "manually" as an exercise, but if someone actually tried to commit this instead of using the appropriate built-in function, "it's easier for a non-programmer to read" would not get it past code review
<matthewd> Verity: Is that because you're now including EOT?
cam27 has left #ruby [#ruby]
<himmmmmm> can we petition to change the spaceship operator to something that looks more like a spaceship?
<himmmmmm> <=> to 8==D
<baweaver> !troll himmmmmm
himmmmmm was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
xnxq has quit [Client Quit]
oliv_____ has joined #ruby
zeddan has quit [Quit: leaving]
<havenwood> >> alias 🚀 <=>; 42.🚀 42
<ruby[bot]> havenwood: # => 0 (https://eval.in/762805)
<Verity> got it
<Verity> >> "hello".bytes.map!{|b| b = b+13}.pack('C*')
<ruby[bot]> Verity: # => "uryy|" (https://eval.in/762807)
Burgestrand has quit [Read error: Connection reset by peer]
millerti has joined #ruby
[Butch] has joined #ruby
<Verity> my rot13 encoder
Burgestrand has joined #ruby
<Verity> >> "uryy|".bytes.map!{|b| b = b-13}.pack('C*')
<ruby[bot]> Verity: # => "hello" (https://eval.in/762812)
lhcrkd has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 260 seconds]
<Verity> =)
<Verity> I'm learning!!!
<Verity> contrary to the beliefs of some
<matthewd> Don't need the assignment, or the !
Burgestrand has quit [Client Quit]
<Verity> b-13 === b = b-13?
<matthewd> map cares about the result of the block, not what value ends up in the variable
<baweaver> >> [1,2,3].map { 1 }
gusrub has joined #ruby
<ruby[bot]> baweaver: # => [1, 1, 1] (https://eval.in/762817)
<Verity> so it just sets each element to the result of the block
<baweaver> >> a = [1,2,3]; a.map { 1 }; a
<ruby[bot]> baweaver: # => [1, 2, 3] (https://eval.in/762820)
xnxq has joined #ruby
<baweaver> it returns a new collection which is the result of applying a function to each element
<Verity> huh?
<baweaver> >> a = [1,2,3]; a.map { 1 }
<ruby[bot]> baweaver: # => [1, 1, 1] (https://eval.in/762822)
<matthewd> &ri Enumerable#map
nobitanobi has quit [Remote host closed the connection]
<baweaver> map doesn't mutate what it's called on. map! does
llaine has quit [Quit: llaine]
KnownSyntax has quit [Quit: No Ping reply in 180 seconds.]
llaine has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
TheWhip has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.7]
nadir has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
xnxq has quit [Client Quit]
Rodya_ has quit [Remote host closed the connection]
xnxq has joined #ruby
vuoto has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
Rodya_ has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
Rodya__ has joined #ruby
kristofferR has joined #ruby
TheWhip has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
czerasz has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
montanonic has joined #ruby
oliv_____ has quit [Remote host closed the connection]
ledestin has joined #ruby
Rodya__ has quit [Ping timeout: 246 seconds]
sepp2k has quit [Quit: Leaving.]
Burgestrand has joined #ruby
Beams has quit [Quit: .]
Guest89629 is now known as IceDragon
jenrzzz has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
llaine has quit [Quit: llaine]
jenrzzz has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 260 seconds]
doublemalt_ has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
TomyLobo2 has joined #ruby
xnxq has quit [Ping timeout: 264 seconds]
nowhere_man has joined #ruby
TheWhip has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Pumukel has joined #ruby
oliv_____ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Client Quit]
bkxd has joined #ruby
juggler has quit [Quit: Leaving]
tercenya has quit []
ddffg has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
Xiti has joined #ruby
cfec0b8d has quit [Ping timeout: 258 seconds]
hugorincon has joined #ruby
hahuang61 has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
davorb has quit [Read error: Connection reset by peer]
hugorincon has quit [Remote host closed the connection]
Renich has quit [Remote host closed the connection]
davorb has joined #ruby
renatosilva has joined #ruby
dengar007 has joined #ruby
dengar007 has quit [Client Quit]
montanonic has joined #ruby
AndBobsYourUncle has joined #ruby
milardovich has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
User458764 has joined #ruby
t-recx has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
ejnahc_ has quit [Remote host closed the connection]
ejnahc has joined #ruby
elaptics has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Quit: WeeChat 1.7]
hahuang65 has joined #ruby
snapcase has joined #ruby
ldnunes has quit [Quit: Leaving]
antgel has quit [Ping timeout: 256 seconds]
gusrub has joined #ruby
MittelDank has joined #ruby
|RicharD| has quit [Quit: Sto andando via]
Ebok has joined #ruby
cagomez_ has quit [Remote host closed the connection]
cagomez has joined #ruby
gusrub has quit [Remote host closed the connection]
cliluw has quit [Read error: Connection reset by peer]
renchan has quit [Quit: Leaving...]
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
gusrub has joined #ruby
muelleme_ has joined #ruby
pulkit4tech has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has quit [Quit: Xiti]
thadtheman has quit [Ping timeout: 260 seconds]
gusrub has quit [Ping timeout: 264 seconds]
enterprisey has joined #ruby
thatsnotjack has joined #ruby
jaruga has quit [Quit: jaruga]
tau has quit [Ping timeout: 268 seconds]
gusrub has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
certainty has joined #ruby
thadtheman has joined #ruby
raspado has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adavia has joined #ruby
moei has quit [Quit: Leaving...]
tolerablyjake has joined #ruby
tolerablyjake has quit [Client Quit]
Rodya_ has joined #ruby
spider-mario has quit [Quit: WeeChat 1.7]
Lord_of_Life has quit [Excess Flood]
slackbotgz has joined #ruby
Lord_of_Life has joined #ruby
Lord_of_Life has quit [Excess Flood]
spider-mario has joined #ruby
tomphp has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
Lord_of_Life has joined #ruby
brendan- has joined #ruby
milardovich has joined #ruby
tolerablyjake has joined #ruby
rakm has joined #ruby
Lord_of_Life has quit [Excess Flood]
thadtheman has quit [Ping timeout: 264 seconds]
hutch34_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 240 seconds]
<adavia> This is not working as expected but if i have 6 answers then for each existing answer is adding the same amount of nil values to the array https://gist.github.com/adavia/c518cf08cea12f6c05d4c67acdd2d159
milardovich has joined #ruby
tomphp has joined #ruby
ldnunes has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
hxegon has quit [Client Quit]
hxegon has joined #ruby
xnxq has joined #ruby
hxegon has quit [Client Quit]
hxegon has joined #ruby
<jhass> adavia: could you add sample input and desired and actual output?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thadtheman has joined #ruby
knight33 has joined #ruby
knight33 has quit [Client Quit]
xnxq has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
tercenya has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ta_ has joined #ruby
SeepingN has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
gloscombe has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ta_ has quit [Remote host closed the connection]
thadtheman has quit [Ping timeout: 264 seconds]
last_staff has quit [Quit: last_staff]
elaptics_ has joined #ruby
slackbotgz has quit [Remote host closed the connection]
psychici1t__ has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
meshsmith has joined #ruby
centrx has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
kirun has joined #ruby
muelleme_ has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
silva has quit [Ping timeout: 260 seconds]
cfec0b8d has joined #ruby
ta_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has quit [Remote host closed the connection]
millerti has joined #ruby
moei has joined #ruby
renchan has joined #ruby
thadtheman has joined #ruby
Renich has joined #ruby
Fernando-Basso has joined #ruby
wkoszek has quit [Remote host closed the connection]
porton has joined #ruby
<porton> I've read "the first edition of the Pragmatic Programmers’ book". What to read next: Ruby User's Guide or https://en.wikibooks.org/wiki/Ruby_Programming? (I am an advanced programmer but new with Ruby)
<porton> I need it for Rails
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has quit [Read error: Connection reset by peer]
esObe_ has joined #ruby
<adam12> porton: POODR always gets praise.
<porton> adam12: what is POODR?
<adam12> porton: http://www.poodr.com
mahlon has quit [Read error: Connection reset by peer]
<porton> adam12: I think I am good with OOP. I need Ruby specifics not general ideas
<adam12> porton: Not a book but RubyTapas is pretty decent.
ged has quit [Read error: Connection reset by peer]
blackmesa has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
<porton> adam12: I'd prefer more classical book or manual
gusrub has quit [Remote host closed the connection]
blackmesa has joined #ruby
govg has joined #ruby
<porton> I mean an online book or manual
thadtheman has quit [Ping timeout: 268 seconds]
<porton> Ruby User's Guide or https://en.wikibooks.org/wiki/Ruby_Programming?
Yzguy has quit [Quit: Zzz...]
gusrub has joined #ruby
<Ebok> Have you Read the Community Guidelines for Ruby? I found it extremely useful when learning the language.
<Ebok> It's mostly syntax, but due to that it ends up being a great list of features.
THEKKKLAN has joined #ruby
<Ebok> Which can be easily googleable / testable
<THEKKKLAN> Hello
ged has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
mahlon has joined #ruby
ta_ has quit [Quit: Leaving...]
gloscombe has quit [Quit: gloscombe]
<porton> I see [[Exceptions]] in https://en.wikibooks.org/wiki/Ruby_Programming is 0% developed. So I assume it is a work in progress and I should read Ruby User's Guide instead. Right?
<SeepingN> thanks for the POODR ref
<THEKKKLAN> I'm writing a ruby app that educates the ignorant about the dangers of immigrants kikes and niggers
<SeepingN> just what I need to write real ruby and not this functional garbage
<elomatreb> !ops
<ruby[bot]> elomatreb: ops currently in #ruby: adaedra, aredridel, havenwood, Radar, apeiros, baweaver, helpa, jhass, ljarvis, matthewd, miah, ruby[bot] and zzak
<havenwood> !badnick THEKKKLAN
THEKKKLAN was kicked from #ruby by ruby[bot] [nickname is not suitable for this channel, see http://ruby-community.com/pages/user_rules]
davorb has quit [Read error: Connection reset by peer]
<Disavowed> Poodr looks really good actually. I was trying to work through a Sandy Metz blog post in a similar vein but keep putting it off. Thank you adam12
<adam12> Disavowed: Sandi's done a bunch of great talks too, on Youtube.
gloscombe has joined #ruby
chouhoul_ has joined #ruby
davorb has joined #ruby
futilegames has joined #ruby
chouhou__ has joined #ruby
futilegames has left #ruby [#ruby]
enterprisey has quit [Quit: Leaving]
thadtheman has joined #ruby
<havenwood> Disavowed: +1 Sandi Metz talks, worth watching
jamesaxl has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
[Butch] has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
naztharune has joined #ruby
wkoszek has joined #ruby
czerasz has quit [Ping timeout: 268 seconds]
xnxq has joined #ruby
vasilakisfil has quit [Ping timeout: 260 seconds]
ujjain has quit [Read error: Connection reset by peer]
yqt has joined #ruby
<Disavowed> I had no clue Sandi Metz is female. TIL
jusa has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
xnxq has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
millerti has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
username1 has quit [Ping timeout: 268 seconds]
hutch34_ has quit [Ping timeout: 240 seconds]
ujjain has quit [Read error: No route to host]
wkoszek has quit [Changing host]
wkoszek has joined #ruby
tvw has joined #ruby
[Butch] has joined #ruby
kazo has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
porton has quit [Quit: Ex-Chat]
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
<hxegon> haven't seen a bad one yet :)
__Yiota has joined #ruby
jamesaxl has joined #ruby
<kazo> Hi!
<hxegon> kazo: hello
montanonic has quit [Ping timeout: 256 seconds]
<kazo> hxegon: I am new to ruby
Azure|dc has joined #ruby
<hxegon> welcome
cagomez has joined #ruby
<kazo> hxegon: reading a tutorial lead me to this IRC chat
jamesaxl has quit [Client Quit]
<hxegon> must have been a decent tutorial then :P
jamesaxl has joined #ruby
<SeepingN> possibly the best
Azure has quit [Ping timeout: 240 seconds]
<kazo> hxegon: it is my first tutorial and I really it
gusrub has quit [Remote host closed the connection]
<hxegon> kazo: do you want some ruby problems to chew on?
<kazo> I am a newbie
<kazo> lets first read the tutorial until the end
ahrs has joined #ruby
kegster has quit [Quit: Shiner, TX makes good beer.]
<kazo> and I will be ready for the challenge
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ujjain has quit [Ping timeout: 264 seconds]
cagomez has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
daivyk has joined #ruby
montanonic has joined #ruby
cagomez has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Yzguy has joined #ruby
thadtheman has quit [Ping timeout: 258 seconds]
milardovich has quit [Read error: Connection reset by peer]
millerti has joined #ruby
milardovich has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
chouhou__ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
marxarelli is now known as marxarelli|afk
__Yiota has joined #ruby
vasilakisfil has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
thadtheman has joined #ruby
code_zombie has joined #ruby
<jhass> adavia: so you need to either repeat all checks in a single if that adds the nil or keep a boolean to decide at the end whether or not to add the nil
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tercenya has quit [Remote host closed the connection]
<adavia> yes
Ebok has quit [Quit: Leaving]
<jhass> or you make it an if/elsif chain if only ever ony of the keys is present/accepted
<jhass> *one
<adavia> I guess i tried that
tercenya has joined #ruby
montanonic has joined #ruby
ionte_ has quit [Ping timeout: 240 seconds]
<jhass> so what's the desired output for [{answer_open: "foo", answer_image: "bar"}]?
<adavia> i need to output a new array as ["Foo", nil, "Bar"]
<jhass> that doesn't seem to answer my question
ionte has joined #ruby
centrx has quit []
tercenya has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 240 seconds]
<adavia> jhass: in that case ["foo", "bar"]
tercenya has joined #ruby
<jhass> and [{answer_open: "", answer_image: ""}] ?
<adavia> [nil, nil]
xnxq has joined #ruby
<jhass> how about [{answer_open: nil, answer_image: nil}] then?
<adavia> That should return also [nil, nil]
synthroid has quit []
brent__ has quit [Remote host closed the connection]
bkxd has joined #ruby
bheesham has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<hxegon> >> [{answer_open: "Foo"}, {answer_image: ""}, {answer_image: "Bar"}].flat_map { |h| h.map { |_, v| v unless v.empty? } } # adavia
<jhass> alright, one more: [{answer_open: "foo", answer_image: nil}, {answer_open: nil, answer_image: "bar"}]
<ruby[bot]> hxegon: # => ["Foo", nil, "Bar"] (https://eval.in/762975)
<jhass> hxegon: clearly homework :/
renchan has quit [Remote host closed the connection]
<allisio> hxegon: Naughty, naughty.
<hxegon> whoops :|
electrostat has quit [Quit: uwotm8]
<hxegon> sorry adavia, pay no attention to my assetry
xnxq has quit [Ping timeout: 258 seconds]
electrostat has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
cdg has joined #ruby
<adavia> jhass: [["foo", nil], [nil, "bar"]]
<jhass> now that's quite different to all you previous examples
<adavia> Umm
<jhass> I couldn't find a clear pattern in your answers and I think that's your main issue. Try to get a clearer understanding on what should transform to what and what the constraints on your input are exactly
<jhass> for example given the last one, why wouldn't [{answer_open: "foo"}] translate to [["foo"]] or even [["foo", nil]]?
<adavia> jhass: Still theres no input like [{answer_open: "foo", answer_image: nil}, {answer_open: nil, answer_image: "bar"}]
<jhass> well then you should've said so as I posed the example ;)
vasilakisfil has quit [Quit: Konversation terminated!]
<adavia> Yeah sorry i wasnt paying attention
<jhass> yet enough to come up with some output
brent__ has joined #ruby
<jhass> the question remains whether [{answer_open: "foo", answer_image: nil}] is valid or different from [{answer_open: "foo"}]
<adavia> jhass: Thats valid.. in that case i should get ["foo"]
<adavia> ["foo", nil] ["foo"]
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
<jhass> so why'S the first different from the second?
gusrub has joined #ruby
<jhass> given {}[:answer_open] returns nil
<adavia> jhass: i want to raplace any blank values with nil
<jhass> blank in the rails/AS sense or as in String#empty?
<adavia> jhass: in the rails sense should be present?
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
<jhass> then one could argue that, given nil is blank?/!present? and {}[:foo] returns nil, a non-existent key is as blank as one pointing to the empty string
<jhass> or nil
pabloh has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
SeepingN has quit [Ping timeout: 260 seconds]
<jhass> don't get me wrong, it can be entirely valid to treat a non-existent key differently than one set to nil, I just want to make sure you have a good reason to do so
thadtheman has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
<jhass> especially since your target datastructure seems rather lossy, for example [{answer_open: "foo"}, {answer_image: "bar"}] and [{answer_image: "foo"}, {answer_open: "bar"}] both would convert into the same output
<adavia> jhass: the real explanation is to export a csv with blank values in case attributes are not present. Otherwise the headers do not match with my rows lol
<jhass> so what's your headers?
<adavia> "answer_open", "answer_image" and for those i need "foo" "bar" or nil, "bar" or nil, "bar"
<adavia> "bar", nil
<jhass> so it should be an array of two element arrays after all, no?
<adavia> yes
<jhass> well none of your examples had that except the last one for the invalid input
bkxd has joined #ruby
<jhass> assuming rails context: answers.map {|answer| [answer[:answer_open].presence, answer[:answer_image].presence] }
xnxq has joined #ruby
ldnunes has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 258 seconds]
cyphase has joined #ruby
azwieg103 has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
gusrub has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BSaboia has quit [Read error: Connection reset by peer]
thadtheman has joined #ruby
Rodya_ has joined #ruby
ldnunes has joined #ruby
Rodya__ has joined #ruby
Xiti has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
darmou has joined #ruby
Rodya__ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
username1 has joined #ruby
darmou has quit [Client Quit]
meshsmith has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
thadtheman has quit [Ping timeout: 258 seconds]
esObe_ has quit [Remote host closed the connection]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
Xiti has quit [Quit: Xiti]
darmou has joined #ruby
davorb has quit [Read error: Connection reset by peer]
gdonald has quit [Read error: Connection reset by peer]
davorb has joined #ruby
gdonald has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psychici1t__ has quit [Quit: Lost terminal]
darmou has quit [Client Quit]
millerti has joined #ruby
LuckyABA has joined #ruby
millerti has quit [Client Quit]
yqt has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
enterprisey has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thadtheman has joined #ruby
jusa has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
fxa90id has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 268 seconds]
enterprisey has quit [Read error: Connection reset by peer]
meshsmith has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
montanonic has quit [Ping timeout: 240 seconds]
meshsmith has quit [Remote host closed the connection]
cdg_ has joined #ruby
olivi____ has quit [Quit: Leaving...]
cdg has quit [Ping timeout: 246 seconds]
volty has joined #ruby
GodFather_ has joined #ruby
montanonic has joined #ruby
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
ramortegui has quit [Quit: Ex-Chat]
t-recx has quit [Quit: t-recx]
csk has quit [Ping timeout: 246 seconds]
xnxq has quit [Quit: WeeChat 1.7]
gusrub has joined #ruby
tau has joined #ruby
czerasz has joined #ruby
thadtheman has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
aupadhye has quit [Ping timeout: 258 seconds]
adavia has quit [Ping timeout: 240 seconds]
johnzorn has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
patarr_ has quit [Ping timeout: 264 seconds]
Rodya_ has joined #ruby
thadtheman has joined #ruby
gloscombe has left #ruby [#ruby]
hutch34_ has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
Rodya_ has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
Yzguy has quit [Quit: Bye]
bheesham has quit [Ping timeout: 260 seconds]
kegster has joined #ruby
gloscombe has joined #ruby
montanonic has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
MrJoshua has quit [Quit: MrJoshua]
yokel has quit [Quit: Lost terminal]
yokel has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Gaelan has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
<Gaelan> Anyone know of a good way to call Cocoa from Ruby?
<Gaelan> RubyMotion is probably not an option, this is an OSS project and there shouldn’t be a $200 fee to contribute
montanonic has joined #ruby
Jayson_Virissimo has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
hutch34_ has quit [Ping timeout: 268 seconds]
cdg_ has quit [Remote host closed the connection]
TomyLobo2 has quit [Ping timeout: 240 seconds]
hutch34_ has joined #ruby
czerasz has quit [Quit: Ex-Chat]
cagomez has joined #ruby
yurikoles has quit [Remote host closed the connection]
hxegon has quit [Quit: Lost terminal]
hxegon has joined #ruby
agent_white has quit [Quit: bbl]
kirun has quit [Quit: Konversation terminated!]
milardovich has quit []
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
thadtheman has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
kazo has quit [Quit: Page closed]
br0d1n has joined #ruby
thadtheman has joined #ruby
spicerack has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
daivyk has quit [Quit: Quit]
oncall-pokemon has joined #ruby
Synthead has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
thadtheman has quit [Ping timeout: 268 seconds]
patarr has joined #ruby
chouhoul_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
JoshS has quit [Ping timeout: 260 seconds]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 246 seconds]
cpruitt has joined #ruby
chouhoul_ has quit [Ping timeout: 246 seconds]
montanonic has joined #ruby
Verity has quit [Disconnected by services]
Verity has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
<SeepingN> well damn. It appears that "trap
<Gaelan> ??
<SeepingN> well damn. It appears that "trap" takes over regardless of scope
cagomez has quit [Remote host closed the connection]
hahuang65 has joined #ruby
<SeepingN> so if I define an "outter trap" to catch ^C, and a different one while inside a particular function, that upon leaving that block, trap does not "revert"
cagomez has joined #ruby
<SeepingN> and runs irrelevant code that was defined inside that block/function
thadtheman has joined #ruby
CloCkWeRX has joined #ruby
montanonic has quit [Ping timeout: 268 seconds]
cpruitt has quit [Quit: cpruitt]
jerme_ has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
Jayson_Virissimo has quit []
pabloh has quit [Quit: Leaving]
bkxd has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
jusa has joined #ruby
meshsmith has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 260 seconds]
nofxx has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
nofxx has joined #ruby
tau is now known as caboclo-tau
gloscombe has quit [Quit: gloscombe]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
Sauvin has quit [Read error: Connection reset by peer]
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
jamesaxl has quit [Quit: WeeChat 1.6]
rgtk has joined #ruby
rgtk has quit [Client Quit]
ddffg has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
marr has quit [Ping timeout: 256 seconds]
patarr has joined #ruby
wald0 has joined #ruby
bocaneri has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
jamesaxl has joined #ruby
agent_white has joined #ruby
cahoots_ has joined #ruby
cfec0b8d has quit [Ping timeout: 260 seconds]
choke has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.7]
<cahoots_> hi, i want to run a shell command, show the output as each line is written to stdout, and only return when the command is done. i've tried Process.spawn("sleep 2; echo 'hi'; sleep 2; echo 'hey'"); Process.wait
<cahoots_> but that returns immediately
<cahoots_> any ideas?
<volty> system?
<cahoots_> volty, hey nice
<cahoots_> thx
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 268 seconds]
grillon has quit [Quit: Connection closed for inactivity]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has joined #ruby
charliesome has joined #ruby
cagomez has quit []
patarr has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
patarr has joined #ruby
Gaelan has quit [Quit: Gaelan]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gaelan has joined #ruby
Robtop__ has joined #ruby
CloCkWeRX has joined #ruby
BabyMario has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
volty has quit [Quit: Konversation terminated!]