havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 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
tildes has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
snockerton has quit [Quit: Leaving.]
tildes has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
GodFather has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
xzhao_ has quit [Read error: Connection reset by peer]
JoshS has quit [Quit: Leaving]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
binaryplease has joined #ruby
Snickers has quit [Quit: Snickers]
binaryplease has quit [Client Quit]
outreachdan has joined #ruby
nitric has quit [Ping timeout: 268 seconds]
ddffg has quit [Quit: Leaving]
weaksauce has joined #ruby
hutch34_ has joined #ruby
gusrub has quit []
cyphase has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
xzhao_ has joined #ruby
Vile` has joined #ruby
am55 has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
hutch34_ has quit [Ping timeout: 264 seconds]
rakm has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
babykosh has joined #ruby
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
Rodya_ has joined #ruby
enterprisey has quit [Ping timeout: 246 seconds]
pwnd_nsfw` has joined #ruby
kiltzman has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
kiltzman has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
esObe_ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
shinnya has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
t-recx has quit [Quit: t-recx]
enterprisey has joined #ruby
Vile` has quit [Ping timeout: 268 seconds]
nowhereman has joined #ruby
bronson has joined #ruby
Rodya_ has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
Rodya_ has joined #ruby
JeanCarloMachado has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
<masterasia> I have a year
<masterasia> (Time.new.year)
<masterasia> how can I iterate and count down?
jusa has joined #ruby
<masterasia> I can subtract -1 to get the next year but I was wondering if there was an enumerable method to do it for me
<masterasia> instead of writing a loop myself
<adam12> masterasia: Maybe #upto or #downto ?
_sfiguser has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
gusrub has joined #ruby
<masterasia> Time.new.year.downto(Time.new.year - 2) {|x| puts x}
<masterasia> Works
<masterasia> thanks
rgtk has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
marcdel has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
babykosh has quit [Quit: babykosh]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ahrs has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
hutch34_ has joined #ruby
marcdel has joined #ruby
masterasia has quit [Ping timeout: 268 seconds]
masterasia has joined #ruby
_sfiguser has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
jaequery_ has joined #ruby
jaequery has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
pwnd_nsfw` has quit [Quit: Leaving]
pwnd_nsfw has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
cyphase has joined #ruby
Trynemjoel has joined #ruby
bronson has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
StoneCypher has joined #ruby
marcdel has joined #ruby
esObe_ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
zipace has quit [Disconnected by services]
ziprar has joined #ruby
uncertainty has joined #ruby
StoneCypher has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
cfec0b8d1 has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
johnzorn has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
Vile` has joined #ruby
hutch34_ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
FoX_77 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has joined #ruby
libastral has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
dhollinger has quit [Ping timeout: 260 seconds]
jcao219 has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ragesoss has quit [Remote host closed the connection]
libastral has joined #ruby
Jayson_Virissimo has joined #ruby
ragesoss has joined #ruby
Rodya_ has joined #ruby
ztkz has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
cibs has quit [Ping timeout: 264 seconds]
marcdel has quit [Ping timeout: 246 seconds]
raspado has quit [Remote host closed the connection]
rakm has joined #ruby
cibs has joined #ruby
FoX_77 has quit [Remote host closed the connection]
harfangk has joined #ruby
RobertBirnie has joined #ruby
Trynemjoel has joined #ruby
uncertainty has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
etehtsea has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HoierM has quit [Ping timeout: 240 seconds]
dar123 has joined #ruby
dhollinger has joined #ruby
spicerack has joined #ruby
jeffreylevesque has joined #ruby
solocshaw has joined #ruby
jeyraof^mbpr has joined #ruby
esObe_ has joined #ruby
knight33 has joined #ruby
milardovich has quit [Remote host closed the connection]
djbkd has joined #ruby
mzo has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
username has joined #ruby
milardovich has joined #ruby
milardovich has quit [Client Quit]
djbkd has quit [Quit: My people need me...]
username has quit [Ping timeout: 260 seconds]
rubynoob has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
rubynoob is now known as rubynoob900
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<eam> rubynoob900: what kind of guidance are you looking for?
jcao219 has joined #ruby
hndk has quit [Quit: Leaving]
<rubynoob900> eam: hey, I understand how to do this on the REPL, but not as a method with an argument passed
Trynemjoel has quit [Ping timeout: 245 seconds]
<Jayson_Virissimo> def stars(number)
<Jayson_Virissimo> puts '*' * number
<Jayson_Virissimo> end
Trynemjoel has joined #ruby
goretech has joined #ruby
etehtsea has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
patarr has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
goretech has quit [Client Quit]
<rubynoob900> Jayson_Virissimo: thanks Jayson, this helps
Trynemjoel has joined #ruby
<Jayson_Virissimo> I went ahead an answered your stack exchange question with a little more detail.
solocshaw has quit [Ping timeout: 246 seconds]
patarr has quit [Ping timeout: 260 seconds]
cfec0b8d has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
astrobunny has joined #ruby
ztkz has quit []
StoneCypher has joined #ruby
baweaver is now known as baweaver_away
GodFather has quit [Quit: Ex-Chat]
StoneCypher has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
Asher has quit [Quit: Leaving.]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver_away is now known as baweaver
mim1k has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
spicerack has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
raspado has joined #ruby
cpruitt_ has joined #ruby
rubynoob900 has quit [Ping timeout: 260 seconds]
lupine_ has joined #ruby
cibs_ has joined #ruby
hahuang62 has joined #ruby
RobertBi_ has joined #ruby
gusrub has joined #ruby
nofxxxx has joined #ruby
akkad_ has joined #ruby
z3uS| has joined #ruby
AndBobsYourUncle has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Channel6 has quit [Quit: Leaving]
cibs has quit [*.net *.split]
RobertBirnie has quit [*.net *.split]
hahuang61 has quit [*.net *.split]
akkad has quit [*.net *.split]
lupine has quit [*.net *.split]
cpruitt has quit [*.net *.split]
nadir has quit [*.net *.split]
z3uS has quit [*.net *.split]
rt has quit [*.net *.split]
z3uS| is now known as z3uS
cpruitt_ is now known as cpruitt
akkad_ is now known as akkad
nofxxx has quit [Ping timeout: 268 seconds]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
JeanCarloMachado has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 268 seconds]
uncertainty has joined #ruby
nadir has joined #ruby
gusrub has quit [Remote host closed the connection]
xall has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has quit [Ping timeout: 256 seconds]
Jayson_Virissimo has quit []
jsilver has joined #ruby
yeticry_ has quit [Ping timeout: 246 seconds]
<jsilver> yo guys
renchan has joined #ruby
<jsilver> i got some c-libraries i wanna attach to rails
<jsilver> they're not complicated
yeticry has joined #ruby
<jsilver> i don't think i need internal ruby features but maybe
<jsilver> how do i do this?
<jsilver> do i still have to use the Ruby C Api?
<jsilver> better to produce some kind of binary and call it with shell?
jsilver is now known as jsilver2
jsilver2 is now known as jsilver
_whitelogger has joined #ruby
bronson has quit [Remote host closed the connection]
Asher has joined #ruby
StoneCypher has joined #ruby
__Yiota has joined #ruby
moei has quit [Read error: Connection reset by peer]
jsilver has quit [Quit: Page closed]
Rodya_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
moei has joined #ruby
StoneCypher has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
esObe_ has quit [Ping timeout: 246 seconds]
uncertainty has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 240 seconds]
pulkit4tech has joined #ruby
gusrub has quit []
mzo has quit [Ping timeout: 240 seconds]
whiteline has quit [Ping timeout: 264 seconds]
antgel has joined #ruby
jgt has joined #ruby
pahnin2 has joined #ruby
pahnin2 has quit [Client Quit]
hahuang62 has quit [Quit: WeeChat 1.7]
jcao219 has joined #ruby
gdonald has quit [Ping timeout: 264 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
gdonald has joined #ruby
bjfish2 has quit [Quit: bjfish2]
anisha has joined #ruby
patarr has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
ski7777 has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.7]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Coldblackice has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
Pumukel has joined #ruby
loconator has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
loconator has quit [Remote host closed the connection]
loconator has joined #ruby
cfec0b8d has quit [Ping timeout: 260 seconds]
loconator has quit [Client Quit]
loconator has joined #ruby
loconator has quit [Remote host closed the connection]
loconator has joined #ruby
loconator has quit [Client Quit]
loconator has joined #ruby
loconator has quit [Client Quit]
armyriad has quit [Quit: Leaving]
armyriad has joined #ruby
muelleme_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
z3uS has quit [Ping timeout: 268 seconds]
muelleme_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
dlitvak has quit [Quit: Connection closed for inactivity]
bkxd has joined #ruby
rt has joined #ruby
z3uS has joined #ruby
aufi has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
raspado has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 240 seconds]
vali has joined #ruby
Bock has joined #ruby
mazeinmaze_ has joined #ruby
vast has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
phanindra has joined #ruby
uncertainty has joined #ruby
JeanCarloMachado has joined #ruby
d^sh has joined #ruby
vast has quit [Quit: Leaving]
Pumukel has quit [Remote host closed the connection]
SuperLag has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
SuperLag has joined #ruby
last_staff has joined #ruby
maattdd has joined #ruby
whiteline has joined #ruby
maattdd_ has quit [Ping timeout: 240 seconds]
max_v has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
jameser has joined #ruby
conta has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
cfec0b8d has joined #ruby
maattdd has quit [Read error: Connection reset by peer]
Arpanet69 has joined #ruby
bronson has joined #ruby
maattdd has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
im314ous has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
esObe_ has joined #ruby
cibs_ is now known as cibs
agent_white has quit [Ping timeout: 246 seconds]
gigetoo has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
mim1k has quit [Ping timeout: 256 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
jgnagy has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
TomyWork has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
antgel has joined #ruby
jcao219 has joined #ruby
gigetoo_ has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
igniting has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
patarr has joined #ruby
mark_66 has joined #ruby
amclain has quit [Quit: Leaving]
dionysus69 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
esObe_ has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
nlhdqc has joined #ruby
JeanCarloMachado has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
nlhdqc has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
aganov has joined #ruby
flying has joined #ruby
bronson has joined #ruby
govg has quit [Ping timeout: 264 seconds]
jcao219 has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 260 seconds]
zun has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
anisha has joined #ruby
rgtk has joined #ruby
Burgestrand has joined #ruby
agent_white has joined #ruby
biberu has joined #ruby
govg has joined #ruby
mim1k has joined #ruby
phanindra has left #ruby ["Good Bye"]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
lenwood has joined #ruby
Silthias2 has joined #ruby
hurricanehrndz has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
jsrn_ has joined #ruby
jcao219 has joined #ruby
igniting has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
mark_66 has left #ruby ["PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :weber.freenode.net"]
minimalism has quit [Quit: minimalism]
mazeinmaze_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DaveTaboola has quit [Quit: Textual IRC Client: www.textualapp.com]
phanindra has joined #ruby
BSAlb has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
marr has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 260 seconds]
phanindra has left #ruby ["Good Bye"]
govg has quit [Ping timeout: 260 seconds]
govg has joined #ruby
enterprisey has quit [Remote host closed the connection]
manjaro-kde5 has joined #ruby
Beams has joined #ruby
DaveTaboola has joined #ruby
jaequery has joined #ruby
jcao219 has joined #ruby
lenwood has quit [Ping timeout: 264 seconds]
ddffg has joined #ruby
gnufied has joined #ruby
unshadow has joined #ruby
unshadow_ has joined #ruby
unshadow_ has quit [Client Quit]
unshadow_ has joined #ruby
nowhereman has quit [Ping timeout: 260 seconds]
moei has quit [Read error: Connection reset by peer]
unshadow has quit [Disconnected by services]
moei has joined #ruby
unshadow_ has quit [Client Quit]
unshadow has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
DaveTaboola has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
DaniG2k has joined #ruby
jaruga has joined #ruby
xall has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
solars has joined #ruby
<solars> quick question: wasn't there a shortcut to assign arguments of initialize to instance vars/accessors?
bronson has quit [Ping timeout: 240 seconds]
danieeeel has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
kassav_ has joined #ruby
aryaching_ has joined #ruby
aep has joined #ruby
Mortomes|Work has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
jaruga has quit [Quit: jaruga]
aryaching_ has quit [Remote host closed the connection]
aryaching has joined #ruby
max__v has joined #ruby
max_v has left #ruby ["Saliendo"]
max__v has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 246 seconds]
<Mon_Ouie> No, it has often been discussed though (e.g. to allow def initialize(@foo); end)
DaniG2k has quit [Quit: leaving]
bronson has joined #ruby
govg has quit [Ping timeout: 240 seconds]
aryaching has quit [Remote host closed the connection]
workmad3 has joined #ruby
toretore has joined #ruby
etehtsea has joined #ruby
danieeeel has quit [Quit: Page closed]
Qchmqs has joined #ruby
xall has joined #ruby
aryaching has joined #ruby
tris has quit [Ping timeout: 246 seconds]
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
jameser has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 260 seconds]
nebiros has quit [Ping timeout: 246 seconds]
synbit has joined #ruby
astrobunny has quit [Remote host closed the connection]
<Burgestrand> Mon_Ouie happy to see you're still around :)
astrobunny has joined #ruby
jaruga has joined #ruby
nowhereman has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.7]
jaruga has left #ruby [#ruby]
jgnagy has joined #ruby
jameser has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
jaruga has joined #ruby
_sfiguser has quit [Ping timeout: 260 seconds]
naftilos76 has joined #ruby
lxsameer has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
<Mon_Ouie> Hey :)
Qchmqs has quit [Quit: Konversation terminated!]
Qchmqs has joined #ruby
_sfiguser has joined #ruby
nebiros has joined #ruby
nebiros is now known as Guest31335
patarr has joined #ruby
astrobunny has quit [Remote host closed the connection]
xenops has joined #ruby
tris has joined #ruby
unshadow has quit [Quit: leaving]
<zun> Hi
yottanami has joined #ruby
<yottanami> is any method to calculate percentage in Ruby?
<zun> I am looking for some tutorials for pentesting with ruby, I only found for python, can someone help me out?
ta_ has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
anekos has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 260 seconds]
<mnemon> zun: what would "pentesting with ruby" entail?
anekos has joined #ruby
<mnemon> there's bunch of tutorials for working with metasploit(using ruby for modules etc.)
<zun> socketing, tcp scans, linux applications related to networking, advanced webscrapping
anisha has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kassav_ has quit [Quit: kassav_]
kassav__ has joined #ruby
<mnemon> never seen anything focused on those but if you understand the concepts, reading up on ruby networking/http libs should be enough.
<mnemon> *enough to get you started.
<canton7> yottanami, ruby has multiplication and division. What else do you need?
<zun> mnemon: thx
<yottanami> canton7, lazy way :D
<canton7> yottanami, I've still no idea what you're asking for, I'm afraid
<canton7> there are loads of ways to calculate percentages, depending on what you're after
anisha has joined #ruby
Qchmqs has quit [Ping timeout: 256 seconds]
jameser has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
<solars> Mon_Ouie: sorry for the late reply, thanks!
kitikonti has joined #ruby
tlaxkit has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
griff has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uncertainty has quit [Ping timeout: 260 seconds]
solars has quit [Quit: Page closed]
griff has joined #ruby
manjaro-kde5 has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
aryaching has quit [Remote host closed the connection]
aryaching has joined #ruby
pandaant has joined #ruby
username has joined #ruby
mikecmpbll has joined #ruby
username has quit [Ping timeout: 260 seconds]
aryaching_ has joined #ruby
bkxd has joined #ruby
aryaching has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
kitikonti has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jusa has joined #ruby
pandaant has quit [Remote host closed the connection]
hutch34_ has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
mim1k_ has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
binaryplease has joined #ruby
mim1k_ is now known as mim1k
boz_ has joined #ruby
agent_white has quit [Quit: agent_white]
sepp2k has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
Bish has joined #ruby
<Bish> how does one detect if a string isn't correct utf8?
* Bish sends data to postgres, postgres transactions dies becaus @user has not sent valid utf8
* Bish catches the transaction, but postgres does not want me to continue it
hutch34_ has joined #ruby
<Bish> that sucks.
<Bish> so how do i know if a string is valid utf8
s1kx has quit [Ping timeout: 240 seconds]
DARPA has joined #ruby
<Mon_Ouie> >> "\xF3".force_encoding("utf-8").valid_encoding?
<ruby[bot]> Mon_Ouie: # => false (https://eval.in/769441)
jaruga has quit [Quit: jaruga]
Arpanet69 has quit [Ping timeout: 260 seconds]
<Bish> v.detect_encoding! if v.is_a?(String) && !v.valid_encoding?
<Bish> i tried this right now
<Bish> while .detect_encoding! is form the charlock_holmes gem
<Bish> should that work?
Arpanet69 has joined #ruby
DARPA has quit [Ping timeout: 246 seconds]
<Bish> because it doesn't
millerti has joined #ruby
<Mon_Ouie> Hard to say from just that. I'm not sure what the method does, whether or not it even makes sense for v to not be a string here, and whether the rest of the code can handle strings that aren't in UTF-8.
mim1k_ has joined #ruby
leaftor has joined #ruby
leaftor has left #ruby [#ruby]
<Bish> but .valid_encoding? should always be perfect?
<Bish> because even if i ignore strings where .valid_encoding? is falce, it still breaks
erlend has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 264 seconds]
<Bish> >> "�zdemir".valid_encoding?
<ruby[bot]> Bish: # => true (https://eval.in/769443)
<Bish> this is the case that f* me over
<Bish> well i guess i copied a utf8 representation
<Mon_Ouie> What's string.bytes? I can't tell what the string is from what you pasted
Fernando-Basso has joined #ruby
<Bish> getting that right now
<Bish> [214, 122, 100, 101, 109, 105, 114]
<Bish> well, that gives me valid_encoding? => false
s1kx has joined #ruby
s1kx has quit [Max SendQ exceeded]
s1kx has joined #ruby
bronson has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
ctompkinson has joined #ruby
jamesaxl has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
uncertainty has joined #ruby
uncertainty has quit [Read error: Connection reset by peer]
Sweetlie has quit [Quit: Lost terminal]
anisha has joined #ruby
xall has quit [Ping timeout: 240 seconds]
mim1k_ is now known as mim1k
Fernando-Basso has quit [Quit: WeeChat 1.7]
gbaptista_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sheperson has joined #ruby
binaryplease has quit [Quit: binaryplease]
griff has joined #ruby
griff has quit [Client Quit]
ctompkinson has quit [Ping timeout: 246 seconds]
mim1k has left #ruby [#ruby]
mim1k has joined #ruby
ledestin has joined #ruby
JeanCarloMachado has joined #ruby
griff has joined #ruby
griff has quit [Client Quit]
HoierM has joined #ruby
Hekata has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
duckpupp1 has joined #ruby
mark_66 has joined #ruby
<Bish> how do i check for a certain encoding
<Bish> >> "".encoding == 'UTF-8'
<ruby[bot]> Bish: # => false (https://eval.in/769538)
<Bish> doesn't seem to do the trick
<ddffg> Who has been pissing off so many messages
bronson has joined #ruby
<Bish> >> "it's me ddffg"
<ruby[bot]> Bish: # => "it's me ddffg" (https://eval.in/769539)
<ddffg> You are from the region with a soapy amount of iodine?
<ddffg> *small
ski7777 has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
<matthewd> >> "".encoding == Encoding::UTF_8
<ruby[bot]> matthewd: # => true (https://eval.in/769548)
<matthewd> Bish: ^
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
nishiki has joined #ruby
<Burgestrand> Just because a string happens to have a valid encoding doesn't mean it makes sense in that encoding
<Burgestrand> Keep that in mind Bish
rwb has quit [Ping timeout: 268 seconds]
rgtk has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
yurikoles has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: *slams door*]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ctompkinson has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
<Bish> Burgestrand: well, as long as it doesn't break my database transaction im fine
<Bish> i think
<Bish> Burgestrand: how do people handle this problem?
bkxd has joined #ruby
<Burgestrand> Bish it depends a bit on context, typically you try to have the source text encoding known at all times, passing it along together with the text
<Burgestrand> Bish not always so easy, especially if you're dealing with software where the text encoding isn't known, once you're in that situation all bets are off and the text you're managing might end up making no sense at all
<Burgestrand> Bish just like in human language, if I give you the word "gift" but not which language I'm referring to, to me it might mean "poison" (swedish) but to you it might mean a present (english)
aupadhye has joined #ruby
<Burgestrand> (then again, in swedish the word "gift" could be either "poison" or "married", so even within the same language it's not so simple :))
<herwin> that problem occurs more often than you think: https://twitter.com/timmartin2/status/23365017839599616
<Burgestrand> hehe
nertzy has joined #ruby
<adaedra> »Die« has the wrong consonant/vowel ratio to be a real german word :p
aupadhye has quit [Ping timeout: 240 seconds]
Silthias2 has quit [Ping timeout: 260 seconds]
Guest96 has quit [Remote host closed the connection]
Silthias has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Guest96 has joined #ruby
jeffreylevesque has joined #ruby
polysics has quit []
manjaro-kde5 has joined #ruby
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aupadhye has joined #ruby
tvw has quit [Read error: Connection reset by peer]
oded has quit [Quit: Konversation terminated!]
Silthias1 has joined #ruby
Silthias2 has joined #ruby
tvw has joined #ruby
brooksy4503 has joined #ruby
nitrix has joined #ruby
kernelPaniq has quit [Ping timeout: 264 seconds]
Silthias has quit [Ping timeout: 240 seconds]
tvw has quit [Read error: Connection reset by peer]
electrostat has quit [Quit: uwotm8]
yurikoles has quit [Ping timeout: 246 seconds]
electrostat has joined #ruby
Silthias1 has quit [Ping timeout: 246 seconds]
brooksy4503 has quit [Client Quit]
t-recx has joined #ruby
garthscaysbrook has joined #ruby
bronson has joined #ruby
garthscaysbrook has left #ruby [#ruby]
fmcgeough has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
nitrix has quit [Ping timeout: 256 seconds]
bjfish2 has joined #ruby
yottanami has quit [Remote host closed the connection]
slima has left #ruby [#ruby]
blackwind_123 has joined #ruby
vali has quit [Quit: vali]
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
FilipeChagas has joined #ruby
jgnagy has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
FilipeChagas has quit [Client Quit]
anisha has quit [Quit: This computer has gone to sleep]
naprimer has quit [Ping timeout: 268 seconds]
erlend has joined #ruby
blackmesa has joined #ruby
rwb has joined #ruby
DLSteve has joined #ruby
naprimer has joined #ruby
Fernando-Basso has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
jxupte has joined #ruby
knight33 has joined #ruby
Guest31335 is now known as nebiros
nebiros has quit [Changing host]
nebiros has joined #ruby
nebiros has joined #ruby
shinnya has joined #ruby
__Yiota has joined #ruby
griff has joined #ruby
patarr has joined #ruby
Arpanet69 has joined #ruby
yehowyada has joined #ruby
kitikonti has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziprar has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
bronson has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
dgs_ has joined #ruby
darthvorik has quit [Ping timeout: 255 seconds]
dgs has quit [Ping timeout: 255 seconds]
darthvorik_ has joined #ruby
Morrolan has quit [Ping timeout: 255 seconds]
Morrolan_ has joined #ruby
rkeene_ has joined #ruby
nrk has joined #ruby
JoL1hAHN has quit [Ping timeout: 255 seconds]
rkeene has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Read error: No route to host]
jxupte has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
swgillespie_ has joined #ruby
rgtk has joined #ruby
clamstar has quit [Ping timeout: 255 seconds]
swgillespie has quit [Ping timeout: 255 seconds]
seggy has quit [Ping timeout: 255 seconds]
Diabolik has quit [Ping timeout: 255 seconds]
swgillespie_ is now known as swgillespie
andersh has quit [Ping timeout: 255 seconds]
sent-hil has quit [Ping timeout: 255 seconds]
Diabolik has joined #ruby
sent-hil has joined #ruby
jdelStro1her has quit [Ping timeout: 255 seconds]
bestie has quit [Ping timeout: 255 seconds]
bestie has joined #ruby
zenspider[m] has quit [Ping timeout: 255 seconds]
manjaro-kde5 has quit [Ping timeout: 260 seconds]
zenspider[m] has joined #ruby
zack6849 has quit [Ping timeout: 255 seconds]
Caius has quit [Ping timeout: 255 seconds]
CustosLimen has quit [Excess Flood]
CustosLim3n has joined #ruby
fergal has joined #ruby
radic has joined #ruby
poikon has quit [Ping timeout: 255 seconds]
radic_ has quit [Ping timeout: 255 seconds]
[diecast] has quit [Ping timeout: 255 seconds]
soahccc has quit [Ping timeout: 255 seconds]
Caius has joined #ruby
lancetw has quit [Ping timeout: 255 seconds]
ResidentBiscuit has joined #ruby
contradictioned_ has joined #ruby
HashNuke has quit [Ping timeout: 255 seconds]
contradictioned has quit [Ping timeout: 255 seconds]
andersh has joined #ruby
soahccc has joined #ruby
voker57 has quit [Ping timeout: 255 seconds]
jmhmccr has quit [Ping timeout: 255 seconds]
justizin has quit [Ping timeout: 255 seconds]
lancetw has joined #ruby
poikon has joined #ruby
voker57 has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
ohcibi has quit [Read error: Connection reset by peer]
[diecast] has joined #ruby
zun has quit [Quit: Connection closed for inactivity]
zack6849 has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
HashNuke has joined #ruby
jmhmccr has joined #ruby
Mon_Ouie has joined #ruby
rgr has joined #ruby
millerti has joined #ruby
naprimer has quit [Ping timeout: 260 seconds]
clamstar has joined #ruby
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
cschnei__ has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
axyjo has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
agent_white has joined #ruby
mark_661 has joined #ruby
mark_66 has quit [Read error: Connection reset by peer]
ohcibi has joined #ruby
naprimer has joined #ruby
igniting has quit [Ping timeout: 268 seconds]
<agent_white> Mornin' folks
govg has joined #ruby
cschnei__ has quit [Remote host closed the connection]
mephistophocles has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sheperson has quit [Quit: sheperson]
narval has joined #ruby
chouhoul_ has joined #ruby
<t-recx> morning
etehtsea has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
boz_ has joined #ruby
mikecmpb_ has joined #ruby
mim1k has joined #ruby
mikecmpbll has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Remote host closed the connection]
mikecmpb_ has quit [Ping timeout: 264 seconds]
tystr has quit [Quit: ZNC - http://tylerstroud.com]
raspado has joined #ruby
solocshaw has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
solocshaw has quit [Client Quit]
solocshaw has joined #ruby
rippa has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
Burgestrand has quit [Quit: Closing time!]
mark_661 has quit [Remote host closed the connection]
gsilva has joined #ruby
ldnunes has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
LuckyABA has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
etehtsea has joined #ruby
etehtsea has quit [Client Quit]
etehtsea has joined #ruby
skweek has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
mikecmpb_ has joined #ruby
User458764 has joined #ruby
VladGh has quit [Remote host closed the connection]
cschneid_ has joined #ruby
VladGh has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
mikecmpb_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
armando1 has joined #ruby
cdg has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
blackmesa has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
rgr has quit [Ping timeout: 260 seconds]
mikecmpb_ has joined #ruby
pupsicle has quit [Remote host closed the connection]
fergal has quit [Quit: fergal]
dionysus69 has quit [Ping timeout: 268 seconds]
mordof has joined #ruby
conta has quit [Ping timeout: 260 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
Nvm has joined #ruby
<adaedra> No.
<adaedra> !spam Nvm
Nvm was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
jlebrech has joined #ruby
igniting has joined #ruby
<jlebrech> It would be nice if a benchmarking gem could just add a comment above it call in the code with the times.
Nvm has quit [Client Quit]
<adaedra> You could print that time in your benchmarked code
jgnagy has joined #ruby
[Butch] has joined #ruby
bkxd has joined #ruby
aufi has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 240 seconds]
<jlebrech> adaedra: i'm trying out a helper for benchmarking, that yields the benchmarked method instead of declaring the output outside of the block
username_ has joined #ruby
millerti has joined #ruby
antgel has joined #ruby
shakes has joined #ruby
ovidnis has joined #ruby
Suslov has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LuckyABA has joined #ruby
amclain has joined #ruby
bkxd has joined #ruby
amclain has quit [Client Quit]
amclain has joined #ruby
gusrub has joined #ruby
kitikonti has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jusa has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
kitikonti has joined #ruby
bkxd has quit [Client Quit]
shakes has quit [Quit: Leaving]
RobertBirnie has joined #ruby
jusa has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
tlaxkit has quit [Quit: tlaxkit]
jsrn_ has quit [Quit: Leaving]
bronson has quit [Client Quit]
Butt-Plugh has joined #ruby
<Butt-Plugh> people still use Ruby??
<havenwood> Butt-Plugh: Please don't troll.
<Butt-Plugh> dang
<Butt-Plugh> how did you guys spot me so soon?
<havenwood> jlebrech: I do like the benchmark-ips gem. Good stuff.
dionysus69 has joined #ruby
<mordof> lol
<Butt-Plugh> So...
<Butt-Plugh> Ruby on Rails
<havenwood> ?rails Butt-Plugh
<ruby[bot]> Butt-Plugh: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
dviola has joined #ruby
justizin has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
<allisio> Why not insta-kick people like this? What're the chances he's going to contribute anything positive to the environment?
<Butt-Plugh> c'mon allisio
<Butt-Plugh> just a bit of humor guys
<Butt-Plugh> let's be social
blackwind_123 has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 264 seconds]
<adaedra> *yawn*
ddffg has quit [Ping timeout: 260 seconds]
<mordof> Butt-Plugh: maybe.. but here's the deal: when you enter a room and say something like that - you immediately put yourself in the negative as far as people wanting to communicate amicably with you. if you want to be social with people, you probably shouldn't intro with things like that anymore
<Butt-Plugh> my social skills aren't the best
<mordof> it's equivalent to trying to make a new friend by being slightly racist to them upon opening introductions
<mordof> it just puts a bad taste in everyones mouth
<mordof> maybe not equivalent, but similar in the resulting sense
dar123 has joined #ruby
Pumukel has quit [Remote host closed the connection]
<Butt-Plugh> can we be friends please
blackwind_123 has joined #ruby
<apeiros> mordof: you forgot "while being dressed like a sextoy"
<mordof> lol
<adaedra> So yeah
<apeiros> Butt-Plugh: got any ruby related questions? because I'm -->||<-- this close to kick you
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra> Either you're an obvious troll and we hope not having to show you the exit, either you're not and you act as such
<baweaver> who's going to blink first I wonder
<Butt-Plugh> apeiros i just want to learn and make friends with techy sorts of people
<baweaver> Then learn ruby
<Butt-Plugh> ok
* mordof endorses learning ruby
jlebrech has quit [Remote host closed the connection]
<havenwood> The #friendly-coders channel is more of a general purpose channel. Ruby here.
<Butt-Plugh> thank you
<baweaver> it's more fun than getting arbitrarily banned from every irc channel, and far more productive.
<Butt-Plugh> yes
go|dfish has quit [Ping timeout: 240 seconds]
nitric has joined #ruby
esObe_ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Butt-Plugh has quit [Quit: Page closed]
johnzorn has quit [Read error: Connection reset by peer]
Beams has quit [Quit: .]
mim1k has quit [Ping timeout: 260 seconds]
johnzorn has joined #ruby
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpb_ has quit [Quit: inabit. zz.]
gsilva has quit [Ping timeout: 246 seconds]
oliv_____ has joined #ruby
rakm has joined #ruby
shoutsid has joined #ruby
kassav__ has quit [Quit: kassav__]
synbit has quit [Ping timeout: 240 seconds]
ctompkinson has quit [Ping timeout: 264 seconds]
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
levifig has quit [Read error: Connection reset by peer]
rkeene_ is now known as rkeene
levifig has joined #ruby
pupsicle has joined #ruby
im314ous has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
outreachdan has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Ping timeout: 260 seconds]
LuckyABA has joined #ruby
chouhoulis has quit [Remote host closed the connection]
oliv_____ has quit [Quit: Leaving...]
etehtsea has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
jaequery has joined #ruby
esObe_ has joined #ruby
_sfiguser has joined #ruby
kitikonti has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
duckpupp1 has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
levifig has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 268 seconds]
jcao219 has joined #ruby
griff__ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
levifig has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
mikecmpbll has joined #ruby
pupsicle has quit [Remote host closed the connection]
griff__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has joined #ruby
TomyLobo has joined #ruby
gusrub has quit [Ping timeout: 256 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
marcdel has quit [Ping timeout: 260 seconds]
_sfiguser has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
pupsicle has joined #ruby
flying has quit []
solocshaw has joined #ruby
xcouop has joined #ruby
phoo1234567 has joined #ruby
go|dfish has joined #ruby
djbkd has quit [Client Quit]
cfec0b8d has joined #ruby
dviola has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
shoutsid has quit [Ping timeout: 260 seconds]
Suslov has quit [Remote host closed the connection]
FastJack has quit [Remote host closed the connection]
Suslov has joined #ruby
xcouop has quit [Remote host closed the connection]
User458764 has joined #ruby
outreachdan has quit [Read error: Connection reset by peer]
User458764 has quit [Client Quit]
outreachdan has joined #ruby
Suslov has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
_sfiguser has joined #ruby
kitikonti has joined #ruby
dviola has quit [Ping timeout: 264 seconds]
dviola has joined #ruby
levifig has quit [Ping timeout: 260 seconds]
dviola has quit [Changing host]
dviola has joined #ruby
fergal has joined #ruby
levifig has joined #ruby
minimalism has joined #ruby
chouhoulis has joined #ruby
Suslov has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
__Yiota has joined #ruby
Suslov has quit [Ping timeout: 260 seconds]
renchan has quit [Quit: Leaving...]
gusrub has joined #ruby
dviola has quit [Ping timeout: 264 seconds]
levifig has quit [Ping timeout: 268 seconds]
sepp2k has quit [Quit: Leaving.]
cagomez has joined #ruby
dviola has joined #ruby
<cagomez> is `%i[val1 val2 val3]` style preferred over `[:val1, :val2, :val3]` for array literals?
<mordof> what does the %i do?
<havenwood> cagomez: Ever-so-slightly nicer, yeah.
<havenwood> mordof: array of symbols
dviola has quit [Changing host]
dviola has joined #ruby
<mordof> oh
<havenwood> >> %s[hi ho hum]
<ruby[bot]> havenwood: # => :"hi ho hum" (https://eval.in/769723)
<havenwood> >> %i[hi ho hum]
<ruby[bot]> havenwood: # => [:hi, :ho, :hum] (https://eval.in/769724)
<mordof> >> %w{ foo bar bat }
<ruby[bot]> mordof: # => ["foo", "bar", "bat"] (https://eval.in/769725)
<mordof> ah
<cagomez> havenwood: what if it it's like > 10 items? whats the best style for multiline?
<mordof> %i{ foo bar bat }
<mordof> er
<mordof> >> %i{ foo bar bat }
<ruby[bot]> mordof: # => [:foo, :bar, :bat] (https://eval.in/769726)
<mordof> so the delimiters don't really matter
<havenwood> mordof: A common convention is []s when you're creating Arrays, ()s otherwise unless you want || or {} or whatever else
duckpupp1 has joined #ruby
chouhoulis has quit []
hahuang61 has joined #ruby
levifig has joined #ruby
chouhoulis has joined #ruby
tvw has joined #ruby
<mordof> cagomez: fun :) thanks
ss_much has joined #ruby
patarr_ has joined #ruby
timvisher has quit [Quit: back]
machinewar has joined #ruby
timvisher has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 268 seconds]
tildes has joined #ruby
patarr_ has quit [Ping timeout: 260 seconds]
fergal has quit [Quit: fergal]
pupsicle has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
johnzorn has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
_DanN__ has joined #ruby
<_DanN__> hello .. anybody willing to help here ?
<jhass> sure, just ask you question and somebody will try to answer
solocshaw1 has joined #ruby
<jhass> apeiros: I forgot, will that me or you?
<jhass> ?anybody
<ruby[bot]> jhass is anybody
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 is now known as solocshaw
<jhass> ah, you I guess
<_DanN__> I will try to word it properly :-)
<apeiros> I think I'm nobody
<apeiros> ?nobody
<ruby[bot]> apeiros is nobody
<apeiros> indeed! I am! :D
<_DanN__> variable resulting into string which is basically another variable name and I need to print its value
<apeiros> because nobody is perfect ^^
jcao219 has quit [Ping timeout: 260 seconds]
<apeiros> _DanN__: ew
<apeiros> _DanN__: what type of variable?
<havenwood> _DanN__: Show a code snippet example?
<_DanN__> let me post the code ... hold on
<jhass> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* jhass prepares the use a hash answer
d^sh has quit [Read error: Connection reset by peer]
<apeiros> great, means I don't have to
d^sh has joined #ruby
<apeiros> the problem with canned replies is - remember the right key for it :-S
jcao219 has joined #ruby
ddffg has joined #ruby
machinewar has left #ruby [#ruby]
millerti has joined #ruby
d^sh has quit [Client Quit]
<apeiros> _DanN__: uuuuh, you are aware that $vars are *globals*?
<apeiros> (from your code, I actually know you aren't…)
<jhass> _DanN__: first of all I strongly suggest you abandon single letter variable names for pretty much anything
<_DanN__> no I am not :( this is my second day with ruby hell :(
<apeiros> ruby hell?
<havenwood> _DanN__: meta hint, but name your gist filename with a .rb extension for syntax highlighting
<jhass> heh, its fine
<apeiros> that's an interesting attitude. I'm quite certain it's not very helpful.
<jhass> well or erb in this case ;)
<_DanN__> jhass: this is just a snippet .. this @s variable is pulled from puppet
d^sh has joined #ruby
<jhass> so, you want to do something for the last device in the list?
<_DanN__> jhass: correct
sspreitz has quit [Ping timeout: 240 seconds]
<jhass> try iface = @s.last instead of the loop
<havenwood> _DanN__: don't create any $global_variables or @@class_variables, just avoid introducing either of those entirely
<_DanN__> jhass: this would include 'lo' which I can not avoid in this case
<jhass> or current_device = interfaces.last or whatever
<jhass> so the second to last?
hahuang61 has quit [Ping timeout: 260 seconds]
<jhass> current_device = "interface_#{interfaces[-2]}"
<havenwood> _DanN__: simplify `if !@s.nil? ` to just `if @s` (if you really need this check at all)
<_DanN__> jhass: I'm not really positive that 'lo' will be the last item in the array
<havenwood> _DanN__: consider `@ifaces.each do |iface|` or `@interfaces.each do |interface|` for naming
<_DanN__> I'm getting corect value in cur_device
<jhass> well, .sort it then ;)
<_DanN__> problem is with printing its value
<_DanN__> so this: set trapSourceAddress <%= $cur_device %> is the problem
Bock has quit [Read error: Connection reset by peer]
<_DanN__> it's either empty or syntax err with whatever I tried
cagomez has quit []
patarr has quit [Ping timeout: 256 seconds]
<jhass> mh, it shouldn't be possibly empty with your current snippet even
<jhass> that is the whole line with something or no line at all
workmad3 has quit [Ping timeout: 260 seconds]
<jhass> maybe you can show us just the input you have (if possible real examples rather some made up ones) and desired output?
gigetoo_ has quit [Ping timeout: 264 seconds]
Rodya_ has joined #ruby
<_DanN__> let me create another gist .. .
antoniobeyah has joined #ruby
Pumukel has joined #ruby
ctompkinson has joined #ruby
<_DanN__> I removed globals and got rid of single char variable names
<_DanN__> 1st 3 lines is the real example what I'm getting in variable 'interfaces'
<_DanN__> this will produce: set trapSourceAddress interface_eth3 readCommunity mtflabForpmfm writeCommunity mtflabForpmfm trapCommunity mtflabForpmfm
<_DanN__> but I'd rather have: set trapSourceAddress 1.1.1.1 readCommunity mtflabForpmfm writeCommunity mtflabForpmfm trapCommunity mtflabForpmfm
<_DanN__> but that's clear I think ...
dar123 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
<apeiros> interfaces = {"eth3" => "1.1.1.1"}
<apeiros> and then interfaces[iface]
<_DanN__> apeiros: yes, that would be ideal solution .. like I said: this is puppet magic :-|
<apeiros> -1-1 is an interesting way to say -2
<apeiros> puppet ain't magic
<_DanN__> apeiros: haha correct :)))
<apeiros> any sufficiently analyzed magic is indistinguishable from science
<jhass> ^, also does this ever need to support persistent interface naming or have eth10 or above?
jcao219 has quit [Ping timeout: 240 seconds]
<_DanN__> jhass: this will go up to eth9 ..
ctompkinson has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
sspreitz has joined #ruby
<_DanN__> apeiros: puppet will become sufficiently analyzed magic once I absorb all its possibilities, for now let me call it 'magic' :)
<jhass> so "interface_eth3" isn't actually defined by you
<jhass> do you have code/docs of what defines you?
<jhass> eh, it?
user51929 has joined #ruby
govg has quit [Ping timeout: 260 seconds]
<_DanN__> logic is simple: last interface will get this line "set trapSource..." produced
<_DanN__> puppet offers 'fact' which is called: interface_ethXX
<_DanN__> and its value is what I need
<jhass> got that much, doesn't quite answer my question ;)
skweek has joined #ruby
<_DanN__> here's what defines it:
<_DanN__> [root@test-ps ~]# /usr/local/ruby/1.8.7/bin/facter -p | grep address
<_DanN__> ipaddress => 10.193.198.23
<_DanN__> macaddress => 00:50:56:AA:30:CF
<_DanN__> ipaddress_lo => 127.0.0.1
<_DanN__> ipaddress_eth0 => 10.193.198.23
<_DanN__> macaddress_eth0 => 00:50:56:AA:30:CF
<_DanN__> [root@test-ps ~]#
<j416> pastebin
<_DanN__> sorry ..
<_DanN__> did not want to spam the channel
<jhass> so it's ipaddress_ not interface_ ?
<_DanN__> yah, good point
govg has joined #ruby
mordof has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jhass> but this isn't defined from some commandline output, is it?
<jhass> it's code after all
<jhass> there gotta be some code that defines it
<_DanN__> yes, there is for sure but this is out of my control .. I'm just reading values from this variable (ipaddress_eth3)
<apeiros> unhelpful tidbit: ruby 1.8.7 has loooong been EOLed
user51929 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> _DanN__: if you are using a variable, it means something has set that variable. variables are set by code, not external executables (like facter)
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> so maybe just scope["ipaddress_#{interface}"]
patarr has joined #ruby
marxarelli has joined #ruby
<jhass> or the full thing <%= @interfaces.split(",").sort
aryaching_ has quit [Read error: Connection reset by peer]
<jhass> eh sorry
lupine_ is now known as lupine
<_DanN__> nah .. that won't work for me .. like I said: last interface needs to be set in my case
fergal has joined #ruby
<jhass> or the full thing <%= scope["ipaddress_#{@interfaces.split(",").select {|interface| interface.start_with? "eth" }.sort.last}"] %>
jgt has quit [Ping timeout: 240 seconds]
<jhass> assuming no persistent interface naming and eth9 max
<jhass> with peristent interface naming you need another strategy for picking the right one anyway I guess
<_DanN__> so there is no way to get a value of variable which is defined as a value of another variable ?
<jhass> none you should go if there's any other way
<jhass> and in 99% of the cases there is
solocshaw has quit [Ping timeout: 240 seconds]
sspreitz has quit [Ping timeout: 268 seconds]
<_DanN__> if I use 'scope' it's complaining about non-existent method
<_DanN__> test00.erb:15: undefined local variable or method `scope' for #<Object:0x7f41166712a0> (NameError)
<jhass> heh
User458764 has joined #ruby
<jhass> so what are you using here exactly in which version?
<_DanN__> erb.rb [2.1.0 2009-02-24]
<_DanN__> ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
levifig has quit [Ping timeout: 260 seconds]
<jhass> none of these would define @interfaces for you ;)
<jhass> (or interface_eth3 for that matter)
<_DanN__> correct :) that's why I put it in the code ..
<jhass> well you said in your actual code you don't
<_DanN__> thought that this: interface_eth3="1.1.1.1" defines it
<jhass> it does but you rejected apeiros suggestion of how you should define it instead
<jhass> I thought the reason was that you don't actually do it in your actual code
<jhass> if that's not true then you should go with apeiros solution
<_DanN__> to define an array for every interface ?
<jhass> a hash that has all the intterface => ip mappings you need
<jhass> instead of creating a new variable for each mapping
<_DanN__> yeah, hash .. sorry
Arpanet69 has quit [Quit: Leaving]
guacamole has quit [Quit: leaving]
armyriad has quit [Ping timeout: 260 seconds]
<_DanN__> thank you guys ...
armyriad has joined #ruby
<_DanN__> :-)
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
ozcanesen has joined #ruby
nicolai86 has quit [Remote host closed the connection]
ta_ has joined #ruby
dionysus69 has joined #ruby
nicolai86 has joined #ruby
brodul has quit [Quit: My hovercraft is full of eels!!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<flips> Is proc sort of like ` ` or $( ) in shell programming? Except they are objects that can be called ... so rather like shell functions? ... :)
<jhass> anonymous functions :)
sspreitz has joined #ruby
<flips> and lambdas are procs with a fixed set of arguments?
__Yiota has joined #ruby
<jhass> with enforcing arity, yeah
<jhass> think of a standard proc like a lambda whose arguments all have a nil default value
<flips> Thanks :)
nicolai86 has quit [Remote host closed the connection]
solocshaw has joined #ruby
SeepingN has joined #ruby
username_ has quit [Ping timeout: 264 seconds]
levifig has joined #ruby
nicolai86 has joined #ruby
Rodya_ has joined #ruby
minimalism has quit [Quit: minimalism]
chouhoul_ has joined #ruby
pupsicle has joined #ruby
levifig has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 268 seconds]
gigetoo has joined #ruby
hahuang61 has joined #ruby
tvw has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
jgt has joined #ruby
Rodya_ has joined #ruby
Bish has quit [Ping timeout: 260 seconds]
Bish has joined #ruby
solocshaw has quit [Quit: solocshaw]
solocshaw has joined #ruby
raul782 has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
Bish has quit [Ping timeout: 246 seconds]
Bish has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
username_ has joined #ruby
duderonomy has joined #ruby
minimalism has joined #ruby
Guest96_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
marcdel has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Guest96 has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
gigetoo has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
workmad3 has joined #ruby
ResidentBiscuit has joined #ruby
Bish has quit [Ping timeout: 246 seconds]
Bish has joined #ruby
pwnd_nsfw` has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
allisio has quit [Quit: WeeChat 1.7]
mrwn has joined #ruby
mrwn has left #ruby [#ruby]
kirun has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
TheSuper has joined #ruby
Hekata has quit [Quit: Leaving]
tildes has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
<zenspider[m]> I dislike how messy the proc/block/lambda landscape is in ruby... clearly the case of organic change over a long period of time.
zenspider has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<zenspider> also: rawr
<t-recx> ror
<zenspider> def not ror... just rawr
<t-recx> rawr it is
<TheMoonMaster> agreed, proc/lambdas are eh
JoshS has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ResidentBiscuit has joined #ruby
AndBobsYourUncle has joined #ruby
<TheSuper> proc/lambdas do have an important distinction
<TheSuper> with how return works
<TheSuper> but it is kind of ugly
<baweaver> oh there's more than that
<baweaver> arity
<TheSuper> What are the other rules? I thought that was---right
<TheSuper> okay yeah, that too
<baweaver> though that one is more subtle
<TheSuper> blocks should probably behave like lambdas in that regard, honestly
<TheSuper> (blocks are the ones that just drop extra args right?)
levifig has joined #ruby
<baweaver> I believe so. Lambda was stricter.
rgtk has quit [Ping timeout: 260 seconds]
rwb has quit [Ping timeout: 240 seconds]
<TheSuper> Yeah. I think that's kind of crappy.
<TheSuper> _ should mean "ignore this"
<TheSuper> so that thing.each{|x, _, _| x} would be valid syntax
<TheSuper> and then they could do away with the arity stuff
<jhass> it's valid syntax fwiw
raul782 has joined #ruby
<baweaver> you can do a lot of fun stuff with deconstruction in there
<TheSuper> is it legal to have multiple arguments of the same name?
<jhass> I think so
<TheSuper> it is
jenrzzz has quit [Ping timeout: 260 seconds]
<TheSuper> huh
<baweaver> though I kinda wish _ was more Scala like: [1,2,3].map(_ * 2)
ctompkinson has joined #ruby
<TheSuper> or swift with $1, $2, $3
<TheSuper> but Ruby uses those like perl does
<TheSuper> IIRC
zipace has joined #ruby
<baweaver> It stole a lot of Perlisms
<jhass> for the regex case anyway
allisio has joined #ruby
<jhass> doesn't perl allow $1/$2/... in map like constructs too?
<jhass> I thought to have glanced over something like that
<jhass> never a big fan of either usage though
pupsicle has quit [Quit: pupsicle]
mephistophocles has quit [Ping timeout: 260 seconds]
mephistophocles has joined #ruby
ctompkinson has quit [Ping timeout: 256 seconds]
<zenspider> baweaver: I'm glad _ isn't like scala's, personally... we need LESS syntax magic, not more. IMHFO. :)
<baweaver> but ✨magic✨
<TheSuper> I think Ruby's juuussttt magical enough right now
<TheSuper> the kind of magic I want added is speed magic
<jhass> TIL someting[] = x can be valid in crystal
<baweaver> until I can avada kadavra / in Ruby, it could use more magic
* TheSuper prays that truffle actually works eventually
jusa has joined #ruby
<TheSuper> what does something[] = x even mean?
<jhass> .fill :D
<jhass> but only for StaticArray thankfully
<TheSuper> ...That's really gross
<jhass> I guess we'll get rid of that
gix has joined #ruby
def_jam has joined #ruby
eb0t_ has joined #ruby
raul782 has quit [Remote host closed the connection]
Pumukel has quit [Remote host closed the connection]
mephisto_ has joined #ruby
eb0t has quit [Ping timeout: 240 seconds]
<matthewd> It "can" be valid in ruby too... it's just a single-argument invocation of #[]= on something
eblip has quit [Ping timeout: 260 seconds]
mephistophocles has quit [Read error: Connection reset by peer]
<TheSuper> It does!
<TheSuper> Neat.
<jhass> oh I woulnd't have thought it parses without parens
<jhass> and .
<TheSuper> I can't tell if google groups just ate my new post or if something else happened
Rodya_ has quit [Remote host closed the connection]
<TheSuper> the issue is, if I try to re-post, I just *know* that both are gonna show up right afterwards, and I'm going to look like a jerk
<jhass> well any medium sized one is a spam target so moderated
<TheSuper> Ohhh right. Duh.
<TheSuper> Thanks for reminding me of that (I almost never use groups)
<TheSuper> Going back to an actually relevant topic...
<TheSuper> I think it's a mistake to allow #[]= to be defined with one argument
<TheSuper> you can also apparently define :*, :+, and other operators with two arguments, which seems to make them impossible to call without using #send
esObe_ has quit [Ping timeout: 240 seconds]
fmcgeough has quit [Quit: fmcgeough]
<jhass> it's a dilema, either you just special case the invocation side, which is nice because general but then weird on it, or you special case the definition side too having even more special cases
esObe_ has joined #ruby
<jhass> I'm not decided yet which variant I prefer
<TheSuper> I don't think there's ever really a reason to have * or + be anything but a binary operation
<matthewd> Constraining the definitions would be very weird to me, because that misses the fact that as far as the object is concerned, they're Just Methods
<TheSuper> it might make implementing the language a bit harder, but Ruby is supposed to optimize programmer happiness, right?
<allisio> TheSuper: You don't need #send to say `1.+(2, 3)`.
<TheSuper> it is a special-case of method definition though, you're right.
<TheSuper> Oh yeah, an explicit . works as well
dviola has quit [Quit: WeeChat 1.7]
<matthewd> The language provides convenient syntax shortcuts to make certain method calls (i.e., the operators), but that's all they are
<TheSuper> ruby does already special-case the invocation of those methods by not requiring a "." though, so I think it's reasonable to restrict the definition.
<jhass> so that gives you one quite well defined special case, x.special(y) can also be written as x special y
<matthewd> Otherwise they'd no longer be methods -- they'd be defined operators, which happen to use a method-like definition syntax
<TheSuper> Then again, this is also a case where it's sort of a "don't do that really stupid thing"
<jhass> the point is one special case is generally better than two
<allisio> Just for shits and giggles, is this the "right" way to do it? https://eval.in/769796
guacamole has joined #ruby
<TheSuper> IE, there's not really a need to prevent programmers from doing it, because it's nasty
<jhass> allisio: there's an Array#fill ;)
<allisio> Oh, right...
<TheSuper> It would be kind of neat if Ruby defined certain unicode character classes as operators, actually
<TheSuper> like swift does
brodul has joined #ruby
<TheSuper> so you could use `def ≠(other); ! (self == other); end;`
<TheSuper> and invoke it like `bar ≠ foo`
<matthewd> How does it deal with associativity?
GodFather has joined #ruby
<TheSuper> in swift you define it
<allisio> Just like in Haskell.
<TheSuper> Or, wait
<TheSuper> it seems like you use named groups
mikecmpbll has quit [Quit: inabit.]
<TheSuper> infix operator +-: AdditionPrecedence
<jhass> I don't actually think allowing too many operators is a good thing
<TheSuper> it used to be a number back when I was playing with swift
[Butch] has quit [Quit: I'm out . . .]
<TheSuper> Oh no unicode operators are awful in 99% of the cae. If >>= was just named `flatMap` I bet Haskell would have 50% more adoption than it does
<jhass> they're just harder to remember and more often ambigous compared to methods with a nice name
<TheSuper> honestly
jeffreylevesque has quit [Ping timeout: 260 seconds]
<allisio> TheSuper: But not really, though.
<allisio> It's all just symbols, y'all.
<allisio> We just have ones we're more accustomed to using.
<TheSuper> 50% is an exaggeration but haskell's tendency to use one-character variables and custom operators hurts adoption
<TheSuper> It is just symbols, but I can read `flatMap` and sort-of-kind-of get what it means
jenrzzz has joined #ruby
<allisio> Why couldn't that be true for `>>=`?
<TheSuper> while >>= is like "Right shift equals..?"
<TheSuper> Well, it can be
<TheSuper> after I know it means "flatMap"
<jhass> the difference is that we're far further with having agreed what ASCII symbols stand for than the unicode ones ;)
<TheSuper> but if I'm just coming across it, how should I know?
<allisio> Romans, go home.
gix has quit [Quit: Client exiting]
gix has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pupsicle has joined #ruby
fergal has quit [Quit: fergal]
TheSuper has quit [Ping timeout: 256 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<zenspider> mmmmmmentarbation
ltem has joined #ruby
gix has quit [Quit: Client exiting]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
jusa has quit [Ping timeout: 268 seconds]
rgtk has joined #ruby
haylon has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.7]
govg has quit [Ping timeout: 256 seconds]
ldnunes has quit [Quit: Leaving]
govg has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
aupadhye has quit [Ping timeout: 260 seconds]
eb0t has joined #ruby
gk_1wm_su has joined #ruby
eblip has joined #ruby
gk_1wm_su has quit [K-Lined]
TheSuper has joined #ruby
eb0t_ has quit [Ping timeout: 240 seconds]
def_jam has quit [Ping timeout: 260 seconds]
username_ has quit [Quit: Lost terminal]
gix has joined #ruby
johnzorn has quit [Ping timeout: 246 seconds]
johnzorn has joined #ruby
rwb has joined #ruby
jeffreylevesque has joined #ruby
dionysus69 has quit [Remote host closed the connection]
GodFather has joined #ruby
dar123 has quit [Read error: Network is unreachable]
raul782 has joined #ruby
kirun has quit [Quit: Konversation terminated!]
govg has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
govg has joined #ruby
ltem has quit [Quit: Leaving]
ovidnis has left #ruby ["ERC (IRC client for Emacs 25.1.1)"]
haylon has quit [Quit: Leaving]
dar123 has joined #ruby
TomyLobo has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Pumukel has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
masta`` has joined #ruby
masta`` has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 264 seconds]
BTRE has quit [Read error: Connection reset by peer]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
pifon has quit [Quit: Connection closed for inactivity]
govg has quit [Ping timeout: 264 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Robtop__ has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
helpa has joined #ruby
gsilva has joined #ruby
cagomez has joined #ruby
govg has joined #ruby
helpa has quit [Remote host closed the connection]
patarr has joined #ruby
helpa has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
tercenya has quit [Remote host closed the connection]
superscott has joined #ruby
griff has joined #ruby
eregon has quit [Ping timeout: 256 seconds]
toretore has quit [Ping timeout: 260 seconds]
duckpupp1 has quit [Ping timeout: 246 seconds]
patarr has quit [Ping timeout: 260 seconds]
gdonald has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
tercenya has joined #ruby
gdonald has joined #ruby
skweek has joined #ruby
b3l914n has joined #ruby
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griff has joined #ruby
griff has quit [Client Quit]
hahuang61 has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
TheSuper has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.2/20170323105023]]
hahuang65 has quit [Quit: WeeChat 1.7]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit []
esObe_ has quit [Remote host closed the connection]
millerti has joined #ruby
esObe_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
ctompkinson has joined #ruby
skweek has joined #ruby
Tagami has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
gsilva has quit [Remote host closed the connection]
pupsicle has quit [Quit: pupsicle]
Tesl1_ has joined #ruby
ctompkinson has quit [Ping timeout: 264 seconds]
<Tesl1_> hi
boombox_ has joined #ruby
<superscott> 八(^□^*)
<Tesl1_> how can I convert a integer to an hex string with two bytes of length (and little endian). For instance, 200 (int) to hex = C8. I would like to get "\xC8\x00"
<superscott> 200.chr gives you "\xC8", (personally) don't know what the \x00 would be
<superscott> provided 200 is an int, not a string
<ytti> i think he wants to guarantee there are two bytes
<ytti> i.e. 16bit
JeanCarloMachado has joined #ruby
<ytti> so pack("S")
<ytti> >> [200].pack("S")
howdoi has quit [Quit: Connection closed for inactivity]
<superscott> touche.
<Tesl1_> ytti: yes, that is
<Tesl1_> thanks
<ytti> ruby kinda sucks for this
cdg has quit [Remote host closed the connection]
<ytti> as there are natively no fixed length numbres
<ytti> so dealing with wire-formats/rawdata is kinad PITA
<Tesl1_> as I can see it is
<superscott> ^ api link to ytti's example : http://ruby-doc.org/core-2.2.3/Array.html#method-i-pack
boombox_ has quit [Remote host closed the connection]
<ytti> wrote this today to drop bytes from binary formats (well two different binary formats) - https://gist.github.com/ytti/df3eaaec54fc423ae1685d336d08b452
<ytti> would be so much cleaner with actual fixed bit size integers
<ytti> i kinda expected it to be small quick hack, but it ballooned
narval has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
chouhoul_ has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
dviola has joined #ruby
<zenspider> ytti: you want to remove everything from a stream that matches the keys in BLOCK_TYPE and it wound up being 459 lines long??
skweek has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
erlend has joined #ruby
jusa has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
JoshS has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
jamesaxl has quit [Quit: WeeChat 1.7]
JeanCarloMachado has joined #ruby
<ytti> zenspider, no i'm popping N bytes of each packet inside the file
<ytti> zenspider, file is collection of captured packets
<ytti> zenspider, with bunch of metadata
<ytti> zenspider, and there are headers in the packets which i don't want there
Tesl1_ has quit [Ping timeout: 256 seconds]
cschneid_ has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 260 seconds]
Guest96_ has quit [Remote host closed the connection]
Guest96 has joined #ruby
marcdel has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
_sfiguser has quit [Quit: Leaving]
<zenspider> ugh. I can't come up with a better way to do this... I think I need to write a structural/OO matching engine... regexps for objects. anyone know of any prior art?
agent_white has quit [Quit: bbl]
<zenspider> maaaan... I do NOT want to write this thing
mephisto_ has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
esObe_ has quit [Remote host closed the connection]
nowhereman has quit [Quit: Konversation terminated!]
cagomez has quit []
nowhereman has joined #ruby
<zenspider> Papierkorb: now make it recursive and give it a grammar :P
superscott has quit []
<Papierkorb> zenspider: that is left as an excercise to the reader
cschneid_ has joined #ruby
esObe_ has joined #ruby
nadir has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
<adam12> zenspider: ohai
<adam12> have you been somewhere lately?
<zenspider> was in mexico last week for a conference... mostly just nose down for my client
<adam12> Nice :)
<adam12> wb
<zenspider> thanks! just posted my slides for the talk
Pumukel has joined #ruby
<adam12> Was it on Minitest? :P
<adam12> Speaking of which, *_test.rb or test_*.rb
<zenspider> no, it was on study groups and leveling up your ppl
nitric has quit [Ping timeout: 264 seconds]
<adam12> I definitely need to level up my ppl
<zenspider> plain ruby projects are usually test_*.rb, rails is *_test.rb
<adam12> I need ppl first.
lxsameer has quit [Quit: WeeChat 1.7]
<adam12> zenspider: I do it differently on every project - thought I'd consult the expert.
ddffg has quit [Quit: Leaving]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> I'm just saying what the tendencies are... I always do test_*.rb :)
<adam12> :)
esObe_ has quit [Ping timeout: 268 seconds]
raspado has quit [Remote host closed the connection]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 260 seconds]
marcdel has quit [Ping timeout: 260 seconds]
<zenspider> I might be able to pilfer from sexp_path for what I want
minimalism has quit [Quit: minimalism]
gusrub has quit [Remote host closed the connection]