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
olivi____ has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
jdm has quit [Ping timeout: 240 seconds]
Azure|dc has joined #ruby
jeffreylevesque has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
djbkd has quit [Quit: My people need me...]
jdm has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
jhack has joined #ruby
BabyMario has joined #ruby
ascio has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
hays_ has joined #ruby
jhack has quit [Read error: Connection reset by peer]
marxarelli is now known as marxarelli|afk
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
hays has quit [Ping timeout: 246 seconds]
ElDoggo has joined #ruby
<Verity> @name = name
<Verity> @_@
jeffreylevesque has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
cagomez has quit [Ping timeout: 260 seconds]
<Verity> is ruby wild and crazy
ElDoggo has quit [Ping timeout: 246 seconds]
<allisio> It used to be.
<Verity> SHould I really go with 2.2.6
<Verity> vs 3.3.3
<Verity> 2*
<Verity> I'm looking at the windows installer
<Verity> Am I missing out on the latest features
coatezy has quit [Ping timeout: 240 seconds]
<Disavowed> Verity: I understand that there have been some performance improvements in 2.4.0 but which version won't matter much to you when starting out. Just get the latest one for your platform and get coding!
ascio has joined #ruby
jeffreylevesque has joined #ruby
<Verity> ok
DTZUZU has quit [Quit: WeeChat 1.5]
<Verity> I have Ruby.
jeffreylevesque has quit [Client Quit]
<Disavowed> Woooo! You've come a long way this morning!
<Verity> LOL
<Verity> it really has been 7 hours and thats all I've accomplished...
<allisio> Pretty stupid.
houhoulis has joined #ruby
ascio has quit [Ping timeout: 240 seconds]
<Verity> no, allisio
<Verity> now I'm sure
<matthewd> Verity: I'd suggest your first priority now is to ensure the gem we looked at earlier actually works to talk to a serial port
<Disavowed> I don't know about that. I mean you weighed up a couple of different languages, created at least 3 IRC accounts, looked at some tutorials to work out if the language was for you, learned about blocks, etc
<Verity> leave the ad hominem to the people in #python and escially ##c++
<Verity> I learned about the history of languages
teddysmoker has quit [Quit: Konversation terminated!]
<Verity> unit testing
<Verity> the more I read ruby syntax, the more I like it
<Verity> I want to either go lower level, asm, c, c++
<Verity> or higher, but python
<Verity> it tells me what to do
<Verity> I dont like that
<Verity> I once spent an hour debugging
<allisio> You were shitting on yourself (with good reason), and I decided to join the fun.
<allisio> That's not ad hominem.
<Verity> it was a tab instead of 4 spaces
<matthewd> (the "Windows" factor makes me nervous)
<allisio> You're noise.
cht has quit [Ping timeout: 268 seconds]
coatezy has joined #ruby
<Verity> more ad homimen
<Verity> ignored
<Verity> matthewd, I don't prefer windows, I use linux just as much
<Disavowed> Verity: Everyone in this channel will recommend you do Ruby development on Ruby
<Disavowed> Linux*
<Disavowed> sorry, need my lunch!
<Verity> why is that?
<Verity> is windows less supported
<matthewd> .. or Mac, or BSD, or anything else that's not windows
<matthewd> Yes
<Disavowed> It is (was?) much easier to get up and running. Plus Windows tends to be something of a second class citizen with most of these langauges
<matthewd> Everything *should* work, but you're far more likely to run into things that just haven't been used on Windows, and no-one's noticed it's broken
<Disavowed> I normally end interviews as soon as I find out I'm expected to use windows for development ;)
jeffreylevesque has joined #ruby
<Verity> I'll consider this
<matthewd> In this case, the danger-zone for that is going to be the serial library, because that's unusual, and OS-level: thus checking it first
<Disavowed> I gather windows 10 emulates Bash, but I don't know that all things being equal, I'd bother.
brent__ has joined #ruby
<Verity> I'll try it now
<Verity> its so easy with ruby
cfec0b8d has quit [Remote host closed the connection]
<Disavowed> Verity: The other factor is that if you plan to use us as a source of counsel, then you're going to be better off using a platform that we use (and that you're likely to deploy on).
tolerablyjake has joined #ruby
<matthewd> Disavowed: It being an assignment, I suspect "deploy on" might point toward Windows
<Disavowed> matthewd: I was thinking that as I wrote it!
<Verity> gem install rubyserial; require 'rubyserial'; sp = Serial.new("COM1"); sp.write; sp.read
<Verity> thats really not bad
brent__ has quit [Remote host closed the connection]
<Verity> well previously we have been forced to use C# and windows
cfec0b8d has joined #ruby
<Verity> but this time we can choose any language
<Verity> this is rare
<Verity> and also gui or cli
brent__ has joined #ruby
<Verity> so I chose cli + ruby/python... looking like ruby
<Verity> I've always wanted to learn ruby
<Verity> and I know its used in msf
<Verity> this seemed like a great opportunity
matcouto has quit []
<Verity> what better motivation to learn than a deadline and a grade
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BabyMario> A deadline a work, which requires overtime if you're too slow I guess
<Disavowed> Verity: You'll go far!
<BabyMario> that motivates me a lot more than a uni grade ever did
<Disavowed> BabyMario: try charging by the hour ;)
<BabyMario> lol, I wish
<Verity> I hope you're not being sarcastic, Disavowed. I'm still trying to figure out how I'll transition to the work world. I have a mandatory internship as part of my final semester so I expect that will lead somewhere if I choose wisely and prepare
bmurt has joined #ruby
ozcanesen has joined #ruby
<Verity> I never liked capitalizing true and false
<Disavowed> Verity: No I was being serious. I mean you've eschewed the usual crap to try somethign new and are throwing yourself into it. You'll do great
<Disavowed> Verity: You'll be fine. I'm a dropout and I earn more than all my friends :)
<Verity> the other students are writing the application in C# so it should be interesting to see them comminicate with the common protocol over rs232
brent__ has quit [Ping timeout: 264 seconds]
<Verity> Disavowed, =D
jeffreylevesque has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ascio has joined #ruby
JeanCarloMachado has joined #ruby
hays_ has quit [Ping timeout: 240 seconds]
montanonic has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
__Yiota has joined #ruby
al2o3-cr has joined #ruby
olivi____ has joined #ruby
tvw has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 268 seconds]
olivi____ has quit [Ping timeout: 246 seconds]
cfec0b8d has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 268 seconds]
<Disavowed> Verity does hit on an interesting point - this channel is much nicer than #python. I scarcely contribute in there because they're such a miserable bunch. Mind you, I probably would be too if I was stuck coding Python all day ^ ^
duckpupp1 has joined #ruby
<matthewd> We save all the real horribleness for #rubyonrails ;)
<BabyMario> yeah, I accidentally said 'lol' once in #python
<BabyMario> the thing which python has, is AWS lambda support. I really hope they add ruby as a language
hanmac has quit [Ping timeout: 256 seconds]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
shinnya has joined #ruby
erebel55 has joined #ruby
<Verity> I'm sold on ruby, I'm still reading and trying
<cliluw> What's the difference between IO.foreach() and File.foreach()?
duckpupp1 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
<Disavowed> BabyMario: They got rid of that stupid lol bot.
<Disavowed> Verity: Wait until you writeyour first Rails app - you'll love Ruby!
<Verity> gem install digest-crc; require 'digest/crc8'; Digest::CRC8.hexdigest('hello')
<Verity> coming from C++, thats shocking
<matthewd> cliluw: Nothing, IIRC
<Verity> one line to get an 8 bit crc
<Verity> I instantiate the object and call its method in the same statement?
<Verity> or there is no object
<Verity> its a static method
<matthewd> >> File.method(:foreach)
<ruby[bot]> matthewd: # => #<Method: File(IO).foreach> (https://eval.in/759406)
<Verity> I've tried flask for python, Disavowed. I always wondered about django vs rails
<matthewd> cliluw: ^^ literally the same method
<cliluw> matthewd: How can you tell it's the same method?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Disavowed> Verity: I've been doing Django for 8 years. I won't touch it now unless I'm paid - Rails is an absolute joy to work with in comparison
<matthewd> Verity: It's a class method; you are calling the method on an object, but the object in question is the class itself. There's no instance.
<Disavowed> But Flask is very different to even Django
<matthewd> (it might actually be a module, not a class, but that's neither here nor there)
borodin has quit [Ping timeout: 260 seconds]
<Verity> google tells me ruby has sinatra
PaulCape_ has joined #ruby
cagomez has quit [Ping timeout: 258 seconds]
<Disavowed> Sinatra is closer to Flask, yes
PaulCapestany has quit [Ping timeout: 246 seconds]
<Verity> I like that I can guess about how to do something and it works
<Disavowed> There's tons of tiny Ruby microframeworks that just wrap Rack and let you roll your own everything. I quite like Cuba for that
<Verity> that didnt work out in python
ascio has quit [Read error: Connection reset by peer]
<matthewd> cliluw: "File(IO)" means it's on File, but was inherited from IO
<Disavowed> It seldom does. If you look at the Python docs, there's pages and pages with few examples. Ruby I've found it much easier to find what I want
<cliluw> matthewd: Ohhh, good catch.
* cliluw feels like an idiot now
<Disavowed> Stupid Ruby question: If my texst class inherits from ActiveSupport::TestCase, is it fair to assume I'm running minitest?
<Disavowed> cliluw: I wouldn't - I didn't get that either :)
<Verity> is everything tested in ruby
<Verity> what is all of this testing about
<Verity> as I browse these repos
esObe_ has quit [Remote host closed the connection]
<matthewd> cliluw: I started from "foreach isn't mentioned in the File docs", so was then looking for/expecting it :)
<matthewd> Disavowed: Yes; AS::TestCase inherits from Minitest::Test
l4v2 has joined #ruby
<Disavowed> matthewd: Thank you so much
<matthewd> Verity: Good libraries (and good applications) will have a test suite, yes
<Disavowed> Verity: In fact Ruby is big on Test Driven Development (TDD), which is where you literally just write unit tests and then add the functionality to make those tests pass (theoretically)
<matthewd> Verity: I'd argue that's widely true for "good", really.. but it's pretty culturally indoctrinated in ruby, so most things you'll encounter will have at least reasonable coverage
<Verity> why do they do this?
<Verity> is this done in c++? I don't recall hearing much about it
<Verity> the benefits outweigh the extra work I'm assuming
hanmac has joined #ruby
<Disavowed> Verity: I know that I can refactor my code and know immediately if I've broken anything. It's a very tight feedback loop that lends itself very well to writing good quality software
<Verity> arr = "15hello"; arr[7] = Digest::CRC8.hexdigest(arr);
<renatosilva> it's sad that sometimes tests are used to hide bad programming skills
millerti_ has joined #ruby
millerti has quit [Read error: Connection reset by peer]
<Verity> appends the 8 bit crc of the packet to the end, just as I would hope
<Verity> incredible
<Disavowed> renatosilva: How so?
<Verity> are they really?
<matthewd> Verity: arr << Digest::CRC8..etc
cpruitt has quit [Quit: cpruitt]
<Verity> is that shorthand to append?
<matthewd> Verity: Also don't call it arr: it's a string, not an array
<matthewd> Yes
<renatosilva> Disavowed: passing 100% the unit tests is no way ensuring good quality, only if the code and the tests are good, if they're crappy code then your green bar is meaningless
montanonic has joined #ruby
mitrek has quit [Read error: Connection reset by peer]
<elomatreb> Any tests are better than no tests
<matthewd> Yeah, while I'd much prefer well written code in general... average code + average tests > excellent code + no tests
<Verity> packet = Soh+msg+Digest::CRC8(Soh+msg)
<Verity> string concatenation?
<Verity> -n
jaequery has joined #ruby
<renatosilva> elomatreb: a bad test for bad code is not better than no test for good code
<Verity> +n
<Disavowed> renatosilva: That's a fair comment
<Verity> it was so close to being pure magic
<Verity> or as close as I've seen
<elomatreb> If you have no tests, how do you know it's good code?
<Disavowed> I'm a little insecure about my testing. I was never formally taught, so I've sort of made-it-up-as-I-go over the years.
<renatosilva> elomatreb: well, by reading it?
LBRapid has quit [Ping timeout: 246 seconds]
<elomatreb> Reading + understanding untested code is just as much work as rewriting it usually in my experience
__Yiota has joined #ruby
LBRapid has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
<renatosilva> I think sometimes much more work reading than write, also sometimes you can write a dozen lines in a few seconds, or take a couple hours to write one single line
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
ascio has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
roamingdog has quit [Remote host closed the connection]
bmurt has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
oliv_____ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
chopin has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Pumukel has joined #ruby
Uranio has quit [Quit: while you read this, a kitty dies]
knight33 has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
<Verity> packet = Soh+msg+Digest::CRC8.hexdigest(Soh+msg.length+msg)
<Verity> any idea how I can pull this off?
<Verity> msg.length is an int
<Verity> but string concatenation wants strings
<Verity> and if I quote it... its a static string
<Verity> (of course)
hanmac has joined #ruby
<allisio> >> str = 'foo'; "#{str.size}#{str}"
<ruby[bot]> allisio: # => "3foo" (https://eval.in/759407)
<matthewd> msg.length.to_s
__Yiota has joined #ruby
roflmyeggo has joined #ruby
<matthewd> Put spaces around + for readability
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> You could also use "#{a}#{b}" as allisio suggests.. but for pure concatenation (no surrounding static strings involved), it feels noisy to me
ecuanaso has joined #ruby
<matthewd> If msg.length should be in the left part as well, then I'd split it in two lines: `packet = Soh + msg.length.to_s + msg; packet += Digest::CRC8.hexdigest(packet)`
<matthewd> Verity: ^
<renatosilva> Verity: the kind of thing ruby allows you to do: http://vpaste.net/2n2WR
GodFather has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
jameser has joined #ruby
aryaching has joined #ruby
<Verity> that does seem to read better
<Verity> I do have a slight issue now
<Verity> I think I can solcve it though
<Verity> actually, its not an issue
<Verity> the packets are a fixed length
<Verity> if they werent, anything over 9 for length becomes two chars when it should be one
<Verity> when I transform the string into bytes
<Verity> that would be useful to solve for the future
<Verity> but for now, its fixed length in that byte and its under 10
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Verity> so no problem
antoniobeyah has quit [Quit: Connection closed for inactivity]
<Verity> ty for the link, matthewd
zacstewart has joined #ruby
<allisio> Your binary data protocol passes lengths as ASCII-encoded decimal?
zacstewart has left #ruby [#ruby]
NightMonkey has quit [Ping timeout: 240 seconds]
<Verity> yes
<Verity> it did
<Verity> now its fixed length
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
ascio has quit [Read error: Connection reset by peer]
d^sh has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
NightMonkey has joined #ruby
KnownSyntax has quit [Ping timeout: 264 seconds]
d^sh has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight33 has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
LBRapid has quit [Ping timeout: 246 seconds]
LBRapid has joined #ruby
houhoulis has quit [Remote host closed the connection]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
tolerablyjake has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
roflmyeggo has quit [Ping timeout: 260 seconds]
cibs has quit [Ping timeout: 240 seconds]
Jayson_Virissimo has joined #ruby
erebel55 has quit [Ping timeout: 260 seconds]
cibs has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 268 seconds]
claw has quit [Read error: Connection reset by peer]
<Verity> incredible
JeanCarloMachado has quit [Ping timeout: 256 seconds]
Limix has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Disavowed> Verity: Are you feeling like you made the right choice of language?
<Verity> yes
JoshS has joined #ruby
<Verity> do I need to declare an array ahead of time
<Verity> I'm having trouble adding an element to itwithout doing that
<matthewd> You need to make the array before you can add elements to it, yes
<Disavowed> >> v = []; v.append(3)
<ruby[bot]> Disavowed: # => undefined method `append' for []:Array (NoMethodError) ...check link for more (https://eval.in/759416)
<Disavowed> Oops! Too much Python today
claw has joined #ruby
<matthewd> >> array = [1, 2]; array << 3
<ruby[bot]> matthewd: # => [1, 2, 3] (https://eval.in/759417)
<Disavowed> Show off
montanonic has quit [Ping timeout: 240 seconds]
<allisio> >> (a = [1]) << 2
<ruby[bot]> allisio: # => [1, 2] (https://eval.in/759418)
roamingdog has joined #ruby
<Verity> ok
<Verity> 9 lines of code to build an array of crc'd packets from a file
<Verity> a couple more to send them out
<Verity> amazing
<matthewd> gist?
br0d1n has quit [Quit: Leaving]
HoierM has quit [Ping timeout: 260 seconds]
claw has quit [Ping timeout: 256 seconds]
tolerablyjake has joined #ruby
<Verity> ??
<Radar> Verity: put your code on gist.github.com.
<Verity> I messed up, though
<Verity> I'm debugging
<Verity> its adding each character 7 times instead of eating 7 chars from the file
claw has joined #ruby
<renatosilva> Verity: cool
<Verity> 1eeeeeee13
<Verity> like this
<Verity> =D
<renatosilva> welcome to the ruby feeling
<Verity> do I really need to create the intermediate buff
<Disavowed> Verity: It would - that's what you've written! Look into slicing
<matthewd> Cool, that doesn't look too far off from idiomatic
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has joined #ruby
<matthewd> No, you don't seem to need that variable: you're only using its value in one place
astrobunny has joined #ruby
libastral has quit [Ping timeout: 256 seconds]
<Verity> I had an error when I tried 7.times do packet << file.read(1) end
<Verity> int to string error
<Verity> I tried to cast, but no luck
duckpupp1 has joined #ruby
<matthewd> I'd need an actual error, I think; that doesn't seem obviously wrong
<matthewd> I guess I'd ask: why read 1 byte 7 times, instead of just reading 7 bytes?, though
oliv_____ has quit [Remote host closed the connection]
eclecticjohny has joined #ruby
paradisaeidae has quit [Ping timeout: 240 seconds]
paradisaeidae_ has quit [Ping timeout: 258 seconds]
libastral has joined #ruby
<Verity> I'm fixing that now :)
duckpupp1 has quit [Ping timeout: 256 seconds]
<Verity> matthewd, no implicit conversion of nil into String (TypeError)
<Verity> 7.times do packet << file.read(1) end
olivi____ has joined #ruby
<matthewd> Right; file.read(1) can return nil (on EOF)
<allisio> >> '' << nil rescue $!
<ruby[bot]> allisio: # => #<TypeError: no implicit conversion of nil into String> (https://eval.in/759419)
<allisio> And `nil` can't be shoveled.
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Derperperd has quit [Quit: WeeChat 1.5]
lucas_ has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Channel6 has quit [Ping timeout: 246 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<Verity> 7.times do buf = file.read(1) packet << buf end
nofxx has quit [Ping timeout: 260 seconds]
<allisio> That should just be `packet << file.read(7)`.
apeiros_ is now known as apeiros
<Verity> I understand now
<Verity> is there a way to do it with .times?
<Verity> like I was trying to
<Verity> even though perhaps this way makes more sense
paradisaeidae has joined #ruby
<Verity> I needed to have two statements inside that block
<matthewd> 7.times do buf = file.read(1); packet << buf if buf; end
paradisaeidae_ has joined #ruby
<matthewd> Use newlines in real code, thoughf
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
t-recx has quit [Quit: t-recx]
jaequery has joined #ruby
<matthewd> Or: 7.times do; break if file.eof?; packet << file.read(1); end
ishigoya- has quit [Remote host closed the connection]
milardovich has joined #ruby
renatosilva has quit [Quit: http://renatosilva.net]
<lucas_> ola
ishigoya has joined #ruby
renatosilva has joined #ruby
<Verity> aha, I see
<Verity> and the ; are newlines in the real code
<Verity> because ruby needs no ;
paul374 has joined #ruby
<matthewd> You can use them to join lines together. But don't. :)
renatosilva has quit [Client Quit]
LBRapid has quit [Ping timeout: 246 seconds]
<Verity> packetList.each do |packet| sp.write(packet) end
<Verity> should this be on one line?
<Verity> or an indented block
<Verity> for best practice
<matthewd> Indented
<lucas_> Hi, good eveening, i starting to learn ruby, could you help me?
<Verity> yes yes
<allisio> `packetList.each &sp.method(:write)`
<Verity> of course, lucas.
<allisio> (But probably don't actually do that.)
<lucas_> tks
aupadhye has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
<matthewd> I'd generally only use a single-line block when 1) using braces, not do/end, and 2) it's a value-returning block, rather than an action-doing one
jaequery has quit [Ping timeout: 260 seconds]
<lucas_> i user linux. And alredy install the necessary applications. i like to know where to pratice
<lucas_> cummunity, sites, e-books
<allisio> Do the Koans: http://rubykoans.com/
paul374 has quit [Remote host closed the connection]
jaequery has joined #ruby
paul374 has joined #ruby
LBRapid has joined #ruby
<lucas_> Great, allisio
<lucas_> sorry for english, i am not fluent.
<Disavowed> lucas_: You speak fine :)
hutch34 has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
rakm has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
NightMonkey has joined #ruby
KereaLaptop has joined #ruby
lacrymology has joined #ruby
arescorpio has quit [Quit: Leaving.]
tolerablyjake has joined #ruby
dasher00 has quit [Ping timeout: 268 seconds]
skweek has quit [Ping timeout: 240 seconds]
Derperperd has quit [Quit: Peace.]
Derperperd has joined #ruby
gnufied has quit [Quit: Leaving]
paul374 has quit [Quit: WeeChat 1.0.1]
Derperperd has quit [Changing host]
Derperperd has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
Derperperd has quit [Quit: Together, we will make America strong again. We will make America wealthy again. We will make America proud again. We will make America safe again. And, yes, together, we will make America great again. Thank you, God bless you, and God bless America.]
Derperperd has joined #ruby
dasher00 has joined #ruby
muelleme has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
Derperperd has quit [Quit: Together, we will make America strong again. We will make America wealthy again. We will make America proud again. We will make America safe again. And, yes, together, we will make America great again. Thank you, God bless you, and God bless America.]
Derperperd has joined #ruby
pilne has quit [Quit: Quitting!]
xenops has joined #ruby
lacrymology has quit [Ping timeout: 258 seconds]
astrobunny has quit [Remote host closed the connection]
mim1k has joined #ruby
thebaffoon has joined #ruby
amclain has quit [Quit: Leaving]
raspado has quit [Read error: Connection reset by peer]
raspado has joined #ruby
paul374 has joined #ruby
astrobunny has joined #ruby
xenops has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
nofxx has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
roflmyeggo has joined #ruby
raspado has quit [Ping timeout: 258 seconds]
gix has quit [Ping timeout: 240 seconds]
milardovich has quit [Read error: Connection reset by peer]
lucas_ has quit [Remote host closed the connection]
milardovich has joined #ruby
gix has joined #ruby
Derperperd is now known as b4rbz
b4rbz has quit [Changing host]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
b4rbz has joined #ruby
solocshaw has joined #ruby
b4rbz is now known as Derperperd
Derperperd has quit [Changing host]
Derperperd has joined #ruby
olivi____ has quit [Remote host closed the connection]
paradisaeidae__ has joined #ruby
paradisaeidae___ has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
paradisaeidae_ has quit [Ping timeout: 260 seconds]
LBRapid has quit [Ping timeout: 246 seconds]
paradisaeidae has quit [Ping timeout: 268 seconds]
paradisaeidae___ is now known as paradisaeidae
paul374 has quit [Quit: WeeChat 1.0.1]
cibs has joined #ruby
etehtsea has joined #ruby
aaooki has joined #ruby
paul374 has joined #ruby
LBRapid has joined #ruby
oliv_____ has joined #ruby
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
KereaLaptop has quit [Ping timeout: 246 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.1/20170316213829]]
paradisaeidae__ has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.1/20170316213829]]
BTRE has quit [Remote host closed the connection]
chopin_ has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
bocaneri has joined #ruby
BTRE has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
Sammichmaker has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
chopin has quit [Ping timeout: 256 seconds]
xenops has joined #ruby
Jayson_Virissimo has quit []
milardovich has quit [Remote host closed the connection]
xenops has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
leito has joined #ruby
pankaj_ has joined #ruby
<pankaj_> Is anybody there?
agent_white has quit [Quit: leaving]
<Radar> yes
<pankaj_> Rador: I want some help for my Rails installation.
kliu has joined #ruby
<pankaj_> Rador: Hello
kliu has left #ruby [#ruby]
<ineb> pankaj_: there is #rubyonrails for more specific rails questions
pwnd_nsfw has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pankaj_> ineb: So how do I join the channel?
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
aaooki has quit [Quit: leaving]
muelleme has joined #ruby
jdm has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
jdm has joined #ruby
anisha has joined #ruby
muelleme has quit [Ping timeout: 268 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
gusrub has quit []
duckpupp1 has quit [Ping timeout: 258 seconds]
<paul374> pankaj_: /join #rubyonrails
<paul374> pankaj_: the same way you joined this channel but with rubyonrails instead of ruby lol
milardovich has quit [Ping timeout: 240 seconds]
<pankaj_> paul374: I joined it. Their was some issue about Registration but I fixed it. Thanks
<paul374> oh okay good
shadowshell has quit [Quit: Connection closed for inactivity]
wkoszek has joined #ruby
<pankaj_> Is anybody there?
l4v2 has quit [Quit: l4v2]
l4v2 has joined #ruby
Pumukel has joined #ruby
pankaj_ has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
<paul374> kinda
Chagel has joined #ruby
hutch34 has joined #ruby
renchan has joined #ruby
roflmyeggo has quit [Ping timeout: 246 seconds]
paul374 has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
armyriad has joined #ruby
paul374 has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
brent__ has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 256 seconds]
Limix has quit [Quit: Limix]
Fridtjof has quit [Ping timeout: 246 seconds]
_aeris_ has quit [Ping timeout: 256 seconds]
_aeris_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Fridtjof has joined #ruby
astrobunny has quit [Remote host closed the connection]
BabyMario has quit [Quit: bye]
dubalubdub has joined #ruby
wkoszek_ has joined #ruby
astrobunny has joined #ruby
raatiniemi has joined #ruby
nibbo has joined #ruby
Sp4rKy has quit [Ping timeout: 245 seconds]
Biohazard has quit [Ping timeout: 264 seconds]
dhollinger has quit [Ping timeout: 256 seconds]
chamunks has joined #ruby
majuscul1 has joined #ruby
sunya7a__ has joined #ruby
govg_ has joined #ruby
Fridtjof has quit [Ping timeout: 240 seconds]
Sp4rKy has joined #ruby
miah__ has joined #ruby
dikaio_ has joined #ruby
funnel_ has joined #ruby
Sp4rKy is now known as Guest59351
igniting has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
cydrobolt_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vifino- has joined #ruby
bier_ has joined #ruby
fedruantine has joined #ruby
ekem has joined #ruby
nibbo_ has quit [Ping timeout: 240 seconds]
wkoszek has quit [Read error: Connection reset by peer]
raatiniemi_ has quit [Ping timeout: 240 seconds]
chamunks- has quit [Quit: Don't worry I'm not gone yet.]
cydrobolt has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Ping timeout: 240 seconds]
bier has quit [Ping timeout: 240 seconds]
tsunamie has quit [Ping timeout: 240 seconds]
xMopxShell has quit [Ping timeout: 240 seconds]
scrooloose has quit [Ping timeout: 240 seconds]
fedruantine_ has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
SuperLag has quit [Ping timeout: 240 seconds]
vifino has quit [Ping timeout: 240 seconds]
sunya7a has quit [Ping timeout: 240 seconds]
funnel has quit [Ping timeout: 240 seconds]
elem has quit [Ping timeout: 240 seconds]
majuscule has quit [Ping timeout: 240 seconds]
dikaio has quit [Ping timeout: 240 seconds]
miah has quit [Ping timeout: 240 seconds]
funnel_ is now known as funnel
xMopxShell has joined #ruby
scrooloose has joined #ruby
_aeris_ has joined #ruby
cibs has joined #ruby
Fridtjof has joined #ruby
tsunamie has joined #ruby
Biohazard has joined #ruby
montanonic has joined #ruby
dubalubdub has quit [Quit: Leaving]
SuperLag has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
mwlang has quit [Quit: mwlang]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
d^sh_ has joined #ruby
d^sh has quit [Ping timeout: 268 seconds]
l4v2 has quit [Quit: l4v2]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
dhollinger has joined #ruby
paul374 has left #ruby ["WeeChat 1.0.1"]
cfec0b8d has joined #ruby
charliesome has joined #ruby
hvn0413 has joined #ruby
certainty has joined #ruby
gaussblurinc1 has joined #ruby
igniting has joined #ruby
faces has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
milardovich has joined #ruby
Fridtjof has quit [Ping timeout: 258 seconds]
muelleme has joined #ruby
Fridtjof has joined #ruby
lightheaded has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
meshsmith has quit [Read error: Connection reset by peer]
chouhoulis has quit [Read error: Connection reset by peer]
meshsmith has joined #ruby
chouhoulis has joined #ruby
Pumukel has quit [Remote host closed the connection]
tau has joined #ruby
adaedra has quit [Ping timeout: 240 seconds]
justinmrkva has quit [Ping timeout: 240 seconds]
adaedra has joined #ruby
jasondotstar has quit [Ping timeout: 240 seconds]
moufl has quit [Ping timeout: 264 seconds]
Guest59351 has quit [Ping timeout: 246 seconds]
_aeris_ has quit [Ping timeout: 240 seconds]
perryh has quit [Ping timeout: 240 seconds]
D9 has quit [Ping timeout: 240 seconds]
Sp4rKy_ has joined #ruby
D9 has joined #ruby
perryh has joined #ruby
perryh has joined #ruby
perryh has quit [Changing host]
jasondotstar has joined #ruby
justinmrkva has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
_aeris_ has joined #ruby
jgnagy has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
jgnagy has joined #ruby
moufl has joined #ruby
duckpupp1 has joined #ruby
tvw has joined #ruby
rhyselsmore has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
meshsmith has quit [Remote host closed the connection]
pLaTo0n has joined #ruby
rippa has joined #ruby
ElDoggo has joined #ruby
etehtsea has quit [Ping timeout: 264 seconds]
cagomez has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
ElDoggo has quit [Ping timeout: 246 seconds]
muelleme has quit [Ping timeout: 240 seconds]
faces has joined #ruby
conta has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
montanonic has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tau has quit [Remote host closed the connection]
aryaching has joined #ruby
lele has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
last_staff1 has joined #ruby
oliv_____ has joined #ruby
xenops has joined #ruby
lele has joined #ruby
johnzorn has quit [Read error: Connection reset by peer]
oliv_____ has quit [Ping timeout: 246 seconds]
johnzorn has joined #ruby
miah__ is now known as miah
AnomalousBit has quit [Quit: AnomalousBit]
certainty has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
roshanavand has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
last_staff1 has quit [Quit: last_staff1]
last_staff1 has joined #ruby
ta_ has quit [Remote host closed the connection]
aufi has joined #ruby
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
electrostat has quit [Remote host closed the connection]
electrostat has joined #ruby
s2013 has joined #ruby
dasher00 has quit [Ping timeout: 260 seconds]
thebaffoon has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 256 seconds]
certainty has joined #ruby
Arpanet69 has joined #ruby
Mortomes|Work has joined #ruby
Mortomes|Work has quit [Changing host]
Mortomes|Work has joined #ruby
Mortomes|Work has joined #ruby
mim1k has joined #ruby
last_staff1 is now known as last_staff
Arpanet69 has quit [Ping timeout: 260 seconds]
last_staff has quit [Disconnected by services]
last_staff1 has joined #ruby
last_staff1 is now known as last_staff
mim1k has quit [Ping timeout: 260 seconds]
kiltzman has quit [Ping timeout: 246 seconds]
ragesoss has quit [Quit: No Ping reply in 180 seconds.]
ragesoss has joined #ruby
dasher00 has joined #ruby
Qchmqs has joined #ruby
kiltzman has joined #ruby
mark_66 has joined #ruby
TomyWork has joined #ruby
prions has quit [Ping timeout: 240 seconds]
prions has joined #ruby
etehtsea has joined #ruby
irivqu has joined #ruby
doublemalt__ has joined #ruby
nobitanobi has joined #ruby
andikr has joined #ruby
jameser has quit [Ping timeout: 256 seconds]
<Psy-Q> what are good ideas for making a script packageable for e.g. debian? i have some relative includes to './lib/foo/bar', i'm guessing when packaging those libs would go completely elsewhere and the includes break?
<adaedra> Wrap it in a gem
Chagel has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
<Psy-Q> can i wrap multiple things to include in a single gem?
<Psy-Q> ah yes, gemspec docs seem to indicate that
<Psy-Q> thanks, i'll give that a try, maybe i can package it with gem2deb
anisha has quit [Ping timeout: 256 seconds]
<adaedra> well you can probably take a look at how other gems are packaged
vali has joined #ruby
<adaedra> but you can put all you need in a gem, includes, executables
<Psy-Q> ah, awesome. if i can put the executable there too and figure out where debian likes to put it, i could put the entire thing in one gem
<adaedra> iirc rails is packaged as a .deb too, so it's definitely possible.
ta_ has joined #ruby
antgel has joined #ruby
ta_ has quit [Remote host closed the connection]
naftilos76 has joined #ruby
jenrzzz has joined #ruby
milardovich has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pulkit4tech has joined #ruby
anisha has joined #ruby
irivqu has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 256 seconds]
<naftilos76> Does anybody kno if i can create an image file containing a number out of a number string? I want to implement my own captcha service.
ta_ has joined #ruby
<adaedra> There are surely gems allowing you to draw on images
Chagel has joined #ruby
mim1k has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
pLaTo0n has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
snickers has joined #ruby
mikecmpbll has joined #ruby
<naftilos76> adaedra, thanks
teddysmoker has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
pandaant has joined #ruby
duckpupp1 has joined #ruby
maattdd has joined #ruby
duckpupp1 has quit [Ping timeout: 268 seconds]
IpyCreator has joined #ruby
jsrn_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
milardovich has joined #ruby
cibs has quit [Ping timeout: 264 seconds]
<IpyCreator> Hello , i am new to web development and developing iOS application since more than 2 years . i need to develop web site for large amount of video and audio processing . Is Ruby is good for me or i should go for other options.
cibs has joined #ruby
pLaTo0n has joined #ruby
<IpyCreator> in future i also want to use App of this Web site version .
Silthias has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
Chagel has quit [Read error: Connection reset by peer]
IpyCreator has quit [Quit: Page closed]
nofxxx has joined #ruby
Ishido has joined #ruby
flying has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
patarr has joined #ruby
aupadhye has joined #ruby
<Psy-Q> this gemspec stuff isn't nearly as complicated as i thought
<Psy-Q> took only about 10 minutes and two changes of paths, now i have it integrated with the Gemfile and i can run the same code either via bundler for development or install using gem, and it'll even do the right thing with the executable
gaussblurinc1 has quit [Quit: Leaving.]
patarr has quit [Ping timeout: 260 seconds]
gaussblurinc1 has joined #ruby
<dminuoso> so.. is there anything exciting in 2.4.1?
Burgestrand has joined #ruby
jameser has joined #ruby
<Psy-Q> fixes for interesting bugs
biberu has joined #ruby
<dminuoso> Bugs are boring.
<Psy-Q> but they're good bugs, infinite loops, segfaults...
<dminuoso> I have Fiddle in my production code, Im used to seg faults.
<Psy-Q> heh
<dminuoso> Also POSIX folks should be shot.
<dminuoso> I want SIGPFV instead of SIGSEGV
dionysus69 has joined #ruby
<dminuoso> Or SIGPF actually just.
neuraload has joined #ruby
tomphp has joined #ruby
howdoi has joined #ruby
lxsameer has joined #ruby
brent__ has joined #ruby
Ishido has quit [Remote host closed the connection]
Ishido has joined #ruby
anisha has quit [Quit: Leaving]
anisha has joined #ruby
brent__ has quit [Ping timeout: 256 seconds]
Beams has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit [Read error: Connection reset by peer]
jameser has joined #ruby
<darix> dminuoso: why not just SIG[A-Z]
pLaTo0n has quit [Remote host closed the connection]
pLaTo0n has joined #ruby
milardovich has joined #ruby
dionysus69 has joined #ruby
doublemalt_ has joined #ruby
biberu has joined #ruby
doublemalt__ has quit [Ping timeout: 246 seconds]
milardovich has quit [Ping timeout: 268 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aganov has joined #ruby
jameser has joined #ruby
leitz has joined #ruby
fivmo has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpupp1 has joined #ruby
jameser has joined #ruby
Qchmqs has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
lightheaded has quit [Remote host closed the connection]
GodFather has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
naftilos76 has quit [Quit: Αποχώρησε]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightheaded has joined #ruby
terens has joined #ruby
workmad3 has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
fivmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga has joined #ruby
fivmo has joined #ruby
rikkipitt has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
ferr1 has joined #ruby
KnownSyntax has quit [Remote host closed the connection]
rhyselsmore has joined #ruby
yqt has joined #ruby
lightheaded has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
leitz has quit [Quit: Nappy time]
toretore has joined #ruby
rikkipitt has quit [Quit: Leaving...]
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
p0p0pr37 has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
valentinul has joined #ruby
tomphp has joined #ruby
valentinul has quit [Remote host closed the connection]
lightheaded has joined #ruby
<vali> hi guys
TheHodge has joined #ruby
<toretore> gist more
<toretore> what are you trying to run, how are you trying to run it
<vali> dnssec_monitor.rb --help
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
<toretore> what is dnssec_monitor.rb
<toretore> there's no xsd/datatypes in there, so it must be coming from somewhere else
<vali> that is everything which i'm trying to run
olivi____ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
jgnagy has joined #ruby
<vali> toretore, thank you. that was the issue
patarr has joined #ruby
olivi____ has quit [Ping timeout: 246 seconds]
duckpupp1 has joined #ruby
pLaToOn has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
jgnagy has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 260 seconds]
Qchmqs has joined #ruby
fivmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pLaTo0n has quit [Ping timeout: 246 seconds]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
fivmo has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
hvn0413 has quit [Quit: Connection closed for inactivity]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenops has quit [Remote host closed the connection]
jdm has quit [Remote host closed the connection]
olivi____ has joined #ruby
Beams has quit [Quit: .]
ldnunes has joined #ruby
olivi____ has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
Beams has joined #ruby
HoierM has joined #ruby
cibs has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
vali has quit [Quit: vali]
cibs has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lightheaded has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
lightheaded has joined #ruby
byte512 has joined #ruby
gaussblurinc1 has left #ruby [#ruby]
olivi____ has joined #ruby
Qchmqs has quit [Remote host closed the connection]
synthroid has joined #ruby
lightheaded has quit [Ping timeout: 240 seconds]
Qchmqs has joined #ruby
swills has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
swills has joined #ruby
nobitanobi has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
anisha has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
erebel55 has joined #ruby
lightheaded has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fernando-Basso has joined #ruby
mzo has joined #ruby
anisha has joined #ruby
brent__ has joined #ruby
eugenmayer has joined #ruby
<eugenmayer> For anybody using Intellij / Rubymine with Ruby, could you please vote on that issue https://youtrack.jetbrains.com/issue/RUBY-19347 - guess its on the interest of all rubiests
marr has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
erebel55 has quit [Ping timeout: 240 seconds]
olivi____ has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
fivmo has quit [Quit: Textual IRC Client: www.textualapp.com]
millerti_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cfec0b8d has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
jameser has quit [Client Quit]
leito has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
avrelaun has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
avrelaun has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
oncall-pokemon has joined #ruby
<Verity> Digest::CRC8.hexdigest(packet).hex
<Verity> how does that work
<Verity> is the result an object and not a value
<Verity> it outputs the result in decimal instead of a string of two hex characters
<matthewd> Everything is an object
brent__ has quit [Ping timeout: 240 seconds]
<matthewd> >> "1f".hex
<ruby[bot]> matthewd: # => 31 (https://eval.in/759798)
milardovich has quit [Remote host closed the connection]
<Verity> fascinating
<Verity> can I get the names of the special ascii chars
<Verity> or do I need to name them
leito has joined #ruby
<matthewd> You mean BEL and friends?
<Verity> yes
<Verity> ack nack soh etc
<Verity> -c
<matthewd> I don't know of anything built in; there might be a gem that sets some constants, but at that point it might be easier to just set them yourself
<Verity> it looks like SOH = "\x06"
<Verity> will do what I need, SOH.ord seems to confirm
<matthewd> Yep
nobitanobi has joined #ruby
atmosx_aws is now known as atmosx
ramortegui has joined #ruby
Qchmqs has quit [Remote host closed the connection]
nofxxxx has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<Verity> ruby should have let me use argv
nofxxx has quit [Ping timeout: 264 seconds]
<Verity> programmer choice, and all that
JeanCarloMachado has joined #ruby
<Verity> (had to be capitalized)
<Verity> thats my only real complaint so far
certainty has quit [Ping timeout: 240 seconds]
<Verity> other than that its great. I feel like its really staying out of my way. I can think about the idea more than how to make it work int he code
<Verity> definitely a better first impression than python in that regard
jameser has joined #ruby
s2013 has quit [Ping timeout: 260 seconds]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mortomes|Work has quit [Ping timeout: 260 seconds]
certainty has joined #ruby
solocshaw has joined #ruby
jameser has joined #ruby
millerti has joined #ruby
meshsmith has joined #ruby
bmurt has joined #ruby
t-recx has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
hutch34 has joined #ruby
lightheaded has quit [Ping timeout: 240 seconds]
kobain has quit [Ping timeout: 252 seconds]
<Verity> I do have this fear deep inside that it will leave me stranded
<Verity> but fingers are crossed this serial library will work as it claims
<Verity> I know when I get to modifying for TCP it shoulndt be an issue
olivi____ has joined #ruby
<Verity> I would think thats 100% supported
<Verity> through current gems
<Verity> it looks like its working, I'm testing later today. it claims its writing bytes to serial port
cibs has quit [Ping timeout: 264 seconds]
<Verity> I can't read them though because its not looping back, not sure what controls that or why/when it happens
dionysus69 has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
cibs has joined #ruby
mzo has quit [Quit: :*]
DLSteve has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
SuperLag has quit [Quit: leaving]
ecuanaso has joined #ruby
SuperLag has joined #ruby
Parabola has joined #ruby
<Parabola> hey folks, using the RestClient, with .execute, why would ":verify_ssl => false" or ":verify_ssl => OpenSSL::SSL::VERIFY_NONE" not actually work? I'm still getting "certificate verify failed"
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has joined #ruby
lightheaded has joined #ruby
jaruga has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
byyte512 has quit [Quit: WeeChat 1.7]
cibs has quit [Ping timeout: 260 seconds]
<Parabola> .execute and .new both do it, is there a non shitty rest library?
knight33 has joined #ruby
cibs has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
agent_white has joined #ruby
jameser has joined #ruby
<Verity> http://pastebin.com/f8QzKn8W I'm having an absolute blast =D
<ruby[bot]> Verity: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/75629845e5930bce9f9ab5cd78e23462
<ruby[bot]> Verity: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<agent_white> Mornin' folks
vali has joined #ruby
<Burgestrand> Moin'!
enterprisey has quit [Remote host closed the connection]
eugenmayer has quit [Quit: Leaving.]
ruby-lang426 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<Verity> I'm not sure it makes a lot of sense to try to learn ruby by learning rails
<Verity> I have a friend who was trying to learn rails, with no coding or ruby experience... it was a disaster
roflmyeggo has joined #ruby
<Verity> perhaps its better to learn the language and then the framework
<Verity> just realized "no coding or ruby experience" is redundant
<Verity> but you get the idea
<nofxxxx> Verity, so true, actually most ppl I've introduced to ruby started with rails w/o any tutorial book
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avrelaun has quit [Ping timeout: 260 seconds]
avrelaun has joined #ruby
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
ruby-lang426 has quit [Ping timeout: 260 seconds]
<Verity> until file.eof?
jrafanie has joined #ruby
<Verity> is this the equivalent of an if test there, if(file.eof) then break
<Verity> it works, just trying to figure out specifically how
<matthewd> until x == while !x
<Verity> matthewd, if you have a moment, could you tell me if my code is structured well and if I'm following ruby best practices?
jameser has quit [Ping timeout: 240 seconds]
<Verity> confirmation would be great before I build the rest
<Verity> if ytou do have time
<Verity> or anyone
__Yiota has joined #ruby
<Verity> I used the constants insteadof ARGV directly because my professor suggested not hard coding numbers like ARGV[1]
avrelaun has quit [Ping timeout: 258 seconds]
<matthewd> I'd be more concerned about the 1.chr as a magic value that should have a constant to name it
<nofxxxx> Verity, looks good... except CamelCase cosntants, use CAPITAL_SCREAM
<matthewd> I'd make those values variables, not constants, though
<nofxxxx> yeah, might look better
<nofxxxx> Verity, CamelCase makes a rubyst brain link to a class, not constant
oliv_____ has quit [Remote host closed the connection]
<Verity> alright, any reason to make them vars and not constants?
<Verity> they shouldnt be able to change after its launched
avrelaun has joined #ruby
<matthewd> Even though they don't change, in ruby constants have different scoping implications, so any local value is a variable
<Verity> I'll fix the naming convention error regardless
<matthewd> On naming conventions, packetList -> packet_list
Chagel has joined #ruby
roflmyeggo has quit [Ping timeout: 240 seconds]
<nofxxxx> Verity, hehe... good point. Actually the 'correct' way lets say, will be use some optparse thing/gem
<nofxxxx> since it's already a (to keep simple) hack no much change in constant/var
millerti has joined #ruby
<Verity> alright
<nofxxxx> Verity, oh.. and packet_list...camel case on vars is worst than cosntants! hehe... ThisIsClass, THIS_IS_CONSTANT, this_is_var
<Verity> even lowerCamelCase isnt good?
<nofxxxx> never!!!
<matthewd> Other than that my only observation is that it's getting about time for some methods, if not classes
<matthewd> No; Ruby uses snake_case by convention
<matthewd> That's just a thing that varies between languages, for no good reason ¯\_(ツ)_/¯
<nofxxxx> Verity, inline/inside your editor rubocop is ruby started best friend
<nofxxxx> ruby won't warn or err on anything like that, but other fellows like those conventions ... A LOT
<nofxxxx> ruby starter*
olivi____ has joined #ruby
<Verity> rubocop looks interesting, thank you
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nofxxxx> Verity, it'll tell you all we just did.. but INLINE heheh =D
mzo has joined #ruby
<Verity> technically I'm supposed to create a base class for sending data and derived classes for sending over serial or tcp but I didn't want to overwhelm myself first starting out. I started to read about it and it said there are no pure virtual // abstract functions in ruby? or I wouldnt use derived classes like that?
<Verity> so I skipped even using classes for now
<Verity> matthewd,
<Verity> everyone else is using C# xD
<matthewd> def foo; raise "oi, you should override this"; end # abstract function
<Verity> this is the link that confused the hell out of me
<Verity> its also 8 years old, not sure if that matters
olivi____ has quit [Remote host closed the connection]
<Verity> the purpose of doing this would be to easy chanfge my program from sending via serial to sending via TCP
<matthewd> It's basically just not necessary in ruby
anisha has quit [Quit: Leaving]
<matthewd> An abstract function is a thing you can't call, but the compiler will let you call (on the assumption you're invoking it on a subclass)
<matthewd> Ruby will let you try to call anything on any object, without needing any declaration on the base class
last_staff has quit [Quit: last_staff]
hxegon_afk is now known as hxegon
* Verity contemplates
<Verity> I probably should have a better understanding of why I would have needed them in C++ or C# in order to understand why I don't need them now
<Verity> it had something to do with enforcing upon myself the creation of a set of functions that would be the same for each derived class, so I could just swap which class I use and it will send tcp instead of serial
<Verity> at least thats my understanding
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<matthewd> Yeah.. Ruby would more likely force you to implement it via a common test suite, or the simple fact it blows up at runtime if you try to use an incomplete implementation
cpruitt has joined #ruby
lacrymology has joined #ruby
Qchmqs has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
<matthewd> You *could* implement a stricter approach, but that assumes a more adversarial approach with the subclass-implementer than we would consider conventional (or realistic, tbh)
alphor has quit [Quit: Bye!]
cpruitt has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
phaul has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Verity> matthewd, what do you recommend?
<Verity> just make two classes?
<Verity> and enforce the identical function prototypes myself
<matthewd> Yes
jdm has joined #ruby
vali has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby
tenderlo_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
xenops has joined #ruby
iandeb has quit [Quit: Bye]
igniting has quit [Ping timeout: 240 seconds]
asdfaa has joined #ruby
benjwadams has joined #ruby
<benjwadams> How can I generate a range of dates with a start and end time separated by months?
<asdfaa> does someone find www.railstutorial.org useful?
viuo has joined #ruby
qthwyx has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justin_ has joined #ruby
<justin_> howdy, ruby noob and trying to get a gem to install that i cloned the source for. I've run bundle install and all its dependencies came in fine, but the gem itself doesn't get installed to the user gem list.
<Burgestrand> justin_ is there a reason to why you're trying to install it from source and not from the rubygems package manager?
bmurt has joined #ruby
<Verity> 5.times { puts say }
<Verity> so I should be doing this instead of 5.times do puts say end
<Verity> or this is part of my choice
<Verity> the beauty of ruby
<Burgestrand> Verity your choice!
<Verity> fantastic.
<Burgestrand> Verity different people have different rules when they decide to use {} or `do/end`
<Verity> can I mix and match?
<Verity> or is that just poor form
justin_ has quit [Ping timeout: 260 seconds]
<Burgestrand> Verity you certainly can, people have different rules for that too :)
<hxegon> You can, but I'd say it's generally accepted to use {} for inline blocks and do/end for multiline
<Burgestrand> Verity e.g. some people use {} for single-lines, do/end for multiline
<hxegon> also good morning Verity, and #ruby
ta_ has quit [Remote host closed the connection]
<Verity> same to you, hxegon
<Burgestrand> Verity personally I'm more for {} when I consider my block an expression, and do/end when I consider it an action
<Burgestrand> (e.g. primarily for return value or side effect)
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
patarr has joined #ruby
lightheaded has quit [Remote host closed the connection]
pankaj_ has joined #ruby
<hxegon> Verity: are packets supposed to be length 9 or 8 in your gist Verity?
jtreminio has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
<Verity> 10 with the crc, but I can't remember so those are placeholders until I look at the requirements doc again
lightheaded has joined #ruby
<jtreminio> Hello friends. What is the recommended way of serving Ruby applications over web? fcgi/passenger/{something_else}?
cibs has quit [Ping timeout: 260 seconds]
<matthewd> jtreminio: I'd recommend puma, unicorn, or passenger
<jtreminio> I'd rather serve it behind apache/nginx; looks like puma is a web server all its own
cdg has joined #ruby
cibs has joined #ruby
<matthewd> Yes, for puma & unicorn, one generally uses nginx or apache as a proxy in front of the local process
<toretore> 1) that doesn't matter 2) it's an "app server"
<jtreminio> oh, perfect, so puma/unicorn are similar to php's php-fpm?
lightheaded has quit [Read error: No route to host]
snickers has quit [Ping timeout: 240 seconds]
lightheaded has joined #ruby
<matthewd> HTTP just happens to be the protocol used to talk to the backend
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
amargherio has joined #ruby
igniting has joined #ruby
<Verity> 29 in braces instead of do end, and a better way to pad my packets to proper size?
<Verity> thank you, hxegon
<Verity> well, only the final packet will need padding
<Verity> so I should have said packet
<hxegon> no problem. Be wary that 24 will cut off any chars beyond length 10 though
slackR has joined #ruby
<matthewd> It won't do anything, actually
<hxegon> really? I must have misread the docs
oncall-pokemon has quit [Quit: Connection closed for inactivity]
<jtreminio> thanks matthewd, will look into puma first
chihhsin has quit [Quit: leaving]
<hxegon> >> ["foo".ljust(1), "foo".rjust(1)]
<ruby[bot]> hxegon: # => ["foo", "foo"] (https://eval.in/759949)
<matthewd> hxegon: It discards the return value
pLaToOn has quit [Read error: Connection reset by peer]
<Verity> hxegon, is that a problem with this way of doing it but not how I had it?
<Verity> or both
<hxegon> I don't think so Verity
tdy has quit [Read error: Connection reset by peer]
jgnagy has joined #ruby
ElDoggo has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
asfa has joined #ruby
ecuanaso has joined #ruby
cagomez has joined #ruby
milardovich has joined #ruby
asdfaa has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 258 seconds]
thebaffoon has joined #ruby
<hxegon> Also, ljust uses spaces by default, but I'd consider making a constant PACKET_PADDING_CHAR = ' ' and changing it to ljust(PACKET_PADDING_CHAR) Just to be explicit/intention revealing, but that's just my personal taste.
jtreminio has left #ruby ["Linkinus - http://linkinus.com"]
olivi____ has quit [Ping timeout: 240 seconds]
antoniobeyah has joined #ruby
snockerton has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
cagomez has quit []
neuraload has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
cagomez has joined #ruby
sepp2k has joined #ruby
thebaffoon has quit [Quit: Leaving]
<hxegon> hmm... Something got added to the regexp engine in 2.4.1? https://medium.com/rubyinside/the-new-absent-operator-in-ruby-s-regular-expressions-7c3ef6cd0b99#.v0h687ny1
pankaj_ has quit [Quit: Leaving]
bweston92 has joined #ruby
Chagel has quit [Ping timeout: 256 seconds]
mim1k has quit [Ping timeout: 256 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
millerti has quit [Client Quit]
Limix has joined #ruby
jgnagy has joined #ruby
brent__ has joined #ruby
chihhsin has joined #ruby
cdg_ has joined #ruby
Limix has quit [Client Quit]
snickers has joined #ruby
[Butch] has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
pankaj_ has joined #ruby
kies has quit [Ping timeout: 246 seconds]
Derperperd has quit [Quit: Together, we will make America strong again. We will make America wealthy again. We will make America proud again. We will make America safe again. And, yes, together, we will make America great again. Thank you, God bless you, and God bless America.]
Derperperd has joined #ruby
neuraload has quit [Ping timeout: 260 seconds]
neuraload has joined #ruby
lightheaded has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
benjwadams has quit [Ping timeout: 240 seconds]
AnomalousBit has joined #ruby
esObe_ has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
cloaked1 has quit [Ping timeout: 240 seconds]
kies has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
amclain has joined #ruby
<cagomez> how do I return an array of hashes after mapping over an array? I have column_names.map { |column| { column => bar.send(column) } } , is this the same as if I was using Symbols for the keys?
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfec0b8d has joined #ruby
hutch34 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
chaos95 has quit [Ping timeout: 264 seconds]
chaos95 has joined #ruby
Qchmqs has quit [Remote host closed the connection]
SeepingN has joined #ruby
Burgestrand has quit [Ping timeout: 240 seconds]
slackR has quit [Ping timeout: 260 seconds]
<havenwood> cagomez: You can use what you'd like for Hash keys in Ruby.
<havenwood> cagomez: They're often Symbols but don't have to be.
jdm has quit [Remote host closed the connection]
<cagomez> does my code above return Symbols as keys? I can't tell with Pry
mark_66 has quit [Remote host closed the connection]
<cagomez> they look like {"foo" => nil}, and I'm not sure if "foo" is a symbol or a string, or if that even makes a difference
<matthewd> cagomez: It uses whatever column_names contains
<matthewd> That's a string
Tralin has quit [Ping timeout: 240 seconds]
Madper is now known as Madper|Sleep
Tralin has joined #ruby
raspado has joined #ruby
lacrymology has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
flying has quit []
araujo has quit [Ping timeout: 240 seconds]
mzo has quit [Quit: :*]
aufi has quit [Quit: Leaving]
neuraload has quit [Ping timeout: 240 seconds]
neuraload has joined #ruby
aganov has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
<Verity> Installing arch again :D
nahra has joined #ruby
phaul has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
ElDoggo has quit []
cagomez has quit [Remote host closed the connection]
oded has joined #ruby
cagomez has joined #ruby
whtn12 has joined #ruby
<whtn12> he
<whtn12> heu
<whtn12> s/heu/hey
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
<whtn12> f it
Limix has joined #ruby
Limix has quit [Client Quit]
whtn12 has quit [Client Quit]
<baweaver> ...lol
rakm has joined #ruby
<baweaver> havenwood ^
<hxegon> <USER HAS ENTERED THE CHANNEL> <USER HAS LEFT THE CHANNEL>
araujo has joined #ruby
conta has quit [Ping timeout: 240 seconds]
thadtheman has joined #ruby
<thadtheman> Hello where can I find documentation on ruby-mustache?
lacrymology has joined #ruby
kobain has joined #ruby
jrafanie_ has joined #ruby
Parabola has left #ruby [#ruby]
jrafanie has quit [Ping timeout: 260 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
cloaked1 has joined #ruby
cagomez has quit [Remote host closed the connection]
Burgestrand has joined #ruby
<Cyrus> thadtheman: Have you tried Google per chance?
<thadtheman> Cyrus. Yes.
mcantor has joined #ruby
nobitanobi has quit []
montanonic has joined #ruby
jsrn_ has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
Burgestrand has quit [Ping timeout: 246 seconds]
centrx has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
cagomez has joined #ruby
AgentVenom has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Verity has quit [Quit: Leaving]
waltair has joined #ruby
xzhao has quit [Remote host closed the connection]
<Cyrus> thadtheman: ^
<hxegon> whoops, sorry Cyrus
<Cyrus> np. Moar coffee. :D
xzhao has joined #ruby
chopin_ has quit [Remote host closed the connection]
xzhao has quit [Read error: Connection reset by peer]
casper_ has joined #ruby
chopin has joined #ruby
_djbkd has joined #ruby
kobain has joined #ruby
synthroid has quit [Remote host closed the connection]
xzhao has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<hxegon> and more sleep o.0
zinbio has joined #ruby
skweek has joined #ruby
<zinbio> Does procs has some limitations when yield is used? I am trying to evaluate these few lines of code and LocalJumpError is raised for not good reason (at last for my brain!): https://eval.in/760033
nowhere_man has quit [Ping timeout: 240 seconds]
Bish has quit [Ping timeout: 256 seconds]
<matthewd> zinbio: That's equivalent to `yield 2` on its own, in the outer scope
<zinbio> Passing block directly to #call like this $p.call(&block) doesn't work either.
bocaneri has quit [Remote host closed the connection]
Bish has joined #ruby
<matthewd> yield is a keyword, like return; they both act on the current method scope
yehowyada has joined #ruby
<zinbio> Why, then, "no block given" is thrown when calling method with block?
<zinbio> It seems like when I wrap proc call with return statement in another method it works OK.
<toretore> your `yield` is expecting the block to be given to the proc
<toretore> $p.call{|n| n }
<zinbio> toretore: Tried it also. It doesn't work: https://eval.in/760056
mikecmpbll has quit [Quit: inabit. zz.]
TomyWork has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
pankaj_ has quit [Ping timeout: 258 seconds]
pankaj has joined #ruby
nowhere_man has joined #ruby
tercenya_ has joined #ruby
<toretore> zinbio: ¯\_(ツ)_/¯
tercenya has quit [Ping timeout: 240 seconds]
snockerton has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
blackwind_123 has joined #ruby
olivi____ has joined #ruby
<hxegon> hmmm: https://eval.in/760059
<hxegon> this returns 2 in pry, but nothing in eval.in
marcdel has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
zinbio has quit [Ping timeout: 260 seconds]
andikr has quit [Remote host closed the connection]
knight33 has joined #ruby
<wkoszek_> Would anyone be intereted in testing the latest Ruby packages I've made? https://github.com/wkoszek/ruby_packages/releases
<wkoszek_> This was done in the frustration of not being able to bootstrap my VPS with Ansible + RVM easily.
<wkoszek_> The whole build is done in a reproducible and traceable way, via Travis Ci, with a build log linked to the release itself.
marcdel has quit [Ping timeout: 256 seconds]
<havenwood> wkoszek_: nice
senayar has quit []
chouhoulis has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
cdg_ has quit [Ping timeout: 268 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
ujjain has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renchan has quit [Quit: Leaving...]
loincloth has quit []
Beams has quit [Quit: .]
Limix has joined #ruby
selfadhesivefilm has joined #ruby
TomyLobo2 has joined #ruby
<wkoszek_> havenwood: Looking for testers :-)
cibs has quit [Ping timeout: 246 seconds]
qthwyx has quit [Remote host closed the connection]
cibs has joined #ruby
Lord_of_Life has quit [Excess Flood]
Verity has joined #ruby
<Verity> arch or debian?
<Verity> I've used both but can't decide now
<hxegon> Depends
<Verity> arch seems to be a PITA and break a lot for me
<adam12> wkoszek_: Did you ever check out the Ubuntu PPA stuff?
<Verity> and I find I'm spendintg too much time fixing it and not coding
<adam12> I've been loving openSUSE Leap lately.
<Verity> but I don't want to miss the latest and greatest
<hxegon> Verity: you could try archbang
<hxegon> A lot simpler to set up, and breaks less in my experience
<Verity> I just tried arch-anywhere
gusrub has quit [Remote host closed the connection]
selfadhesivefilm has quit []
<Verity> but its some mystery location now and windows booted again instead of grub...
<Verity> so I'm considering my options
duderonomy has joined #ruby
gusrub has joined #ruby
<Verity> I thought I installed it to 2nd partition, but it didnt boot
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy is now known as Guest64581
t-recx has quit [Quit: t-recx]
Lord_of_Life has joined #ruby
dhollinger has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tomphp has joined #ruby
<Verity> this opensuse doesnt look half bad
dhollinger has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
asfa has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
<wkoszek_> adam12: I need to push the deb there. I'm waiting for my launchpad accounts to get merged.
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<Disavowed> Verity: I found I spent more time maintaining my distro than I did actually working when I had Arch, but I was a lot newer to Linux back then. I like Elementary OS or Mint when I'm on Linux these days.
<Verity> have you tried opensuse, Disavowed
MTecknology has joined #ruby
<Verity> I find arch was a pain to maintain
<Verity> I want to spend time learning the code, not getting the editor working
<Disavowed> I must confess I never have used OpenSuse.
<hxegon> We should probably move this to #ruby-offtopic to keep the channel clear
<Disavowed> Verity: Precisely. The other thing I notice about you, and don't take this the wrong way, is that you worry a lot about missing the latest and greatest features
<Disavowed> hxegon: You got it
<Disavowed> Verity: /join ruby-offtopic
neuraload has quit [Quit: This computer has gone to sleep]
<MTecknology> I'm trying to move a ruby app from it's current home to a new system and I'm having two issues with installing gems. I'm getting this error when I try to run bundle install - http://dpaste.com/2XN3GKH
JeanCarloMachado has joined #ruby
timvisher has joined #ruby
<timvisher> is there a way to check whether a filesystem exists on an unmounted blockdevice from ruby?
lightheaded has joined #ruby
renchan has joined #ruby
<adam12> timvisher: I'd probably use something from guestfs - virt-filesystems or something...
<adam12> but it's a heavy dependency just for that :\
al2o3-cr has quit [Quit: WeeChat 1.7]
<matthewd> timvisher: There's https://github.com/ManageIQ/manageiq-gems-pending/tree/master/lib/gems/pending/fs and surrounds if you want to get extreme
<MTecknology> It looks like fastthread is a legacy thing, but I don't see where it's getting pulled in
<timvisher> hmm… i'd like to change what i'm doing to not have to care about this anymore then :)
__Yiota has quit [Ping timeout: 246 seconds]
tau has joined #ruby
bmurt has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
__Yiota has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
electrostat has quit [Quit: uwotm8]
cibs has quit [Ping timeout: 258 seconds]
pulkit4tech has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
cibs has joined #ruby
_djbkd has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
_djbkd has joined #ruby
electrostat has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
gdonald has joined #ruby
_djbkd has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
milardovich has quit [Remote host closed the connection]
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
igniting has quit [Ping timeout: 246 seconds]
__Yiota has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
_djbkd has joined #ruby
__Yiota has quit [Client Quit]
__Yiota has joined #ruby
pLaTo0n has joined #ruby
derp10327 has joined #ruby
<derp10327> Ready to start teaching myself some Ruby :D
dlitvak has quit [Quit: Connection closed for inactivity]
Lord_of_Life has quit [Excess Flood]
<adam12> derp10327: Enjoy!
<derp10327> thanks adam12
Lord_of_Life has joined #ruby
houhoulis has quit [Remote host closed the connection]
solocshaw has joined #ruby
<derp10327> I'm using RubyMine for now, since I work in Jetbrains IDEs for all my other languages-- Except C#, but tbh I might not ever code in C# again until Rider is out of beta. Unless I have to take a C# class for college.
__Yiota has quit [Ping timeout: 260 seconds]
<adam12> derp10327: RubyMine is fine. Editor likely doesnt matter much in the grand scheme of things
<derp10327> adam12, exactly, I just prefer not needing to learn new hotkeys. I also have grown accustomed to seeing their Darcula theme
GodFather has joined #ruby
<derp10327> So in the new project menu, under Ruby, I have two options: New application OR New Gem
lacrymology has quit [Ping timeout: 240 seconds]
<derp10327> What is the main difference between these two in the simplest of words?
<adam12> Well, I have no idea what layout New Application will give, but the New Gem layout is likely similar to what's explained on Rubygems.org.
<adam12> SImplest of words - Gems are libraries, applications are not. If you're not building a library (likely not today), you probably want Application.
<adam12> But as I don't use Rubymine, I'm not sure what the Application option will give you.
<derp10327> adam12, thanks :)
igniting has joined #ruby
<derp10327> adam12, Correct me if I'm wrong here (just want to make sure I'm understanding this right) if I'm building a library, I'm building something I import/include/etc into an application in the future?
<adam12> derp10327: Usually, yep.
<derp10327> Alright :)
<derp10327> The only Ruby code I've ever seen before has been modules made for Metasploit.
<derp10327> Is ruby commonly used in proprietary/commercial software?
<adam12> Some applications - but there is no good source obfuscation method for Ruby, which some companies require
<adam12> But Ruby runs both Gitlab and Github, some parts of Redhat, Shopify, etc.
<canton7> you'll see a fair amount of web stuff done in ruby
<derp10327> canton7, a la ruby on rails?
<canton7> I'd guess mainly rails, but there are other frameworks in use
<derp10327> right
Silthias has quit [Ping timeout: 246 seconds]
cagomez has quit [Remote host closed the connection]
<derp10327> Pretty sure Ruby runs Groupon
<adam12> Yeah - some parts of YellowPages too, IIRC. And probably hundreds of other companies.
<derp10327> right
<derp10327> It will be nice to learn a (non-webserver) language that can also be used for web development
Silthias has joined #ruby
d5sx43 has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
olivi____ has quit [Remote host closed the connection]
<Verity> ruby is great for everything
<Verity> so far
<centrx> true!
<Verity> I'm writing an rs232 file transfer application
dionysus69 has quit [Ping timeout: 264 seconds]
brent__ has joined #ruby
enterprisey has joined #ruby
duckpupp1 has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
cagomez has joined #ruby
Yiota has joined #ruby
Emmanuel_Chanel has joined #ruby
<nofxxxx> derp10327, A WHOLE LOT... you guys are forgetting SaaS
dionysus69 has quit [Ping timeout: 240 seconds]
<nofxxxx> 90 -> exe installers , 00 -> web saas, 10 -> web saas with offline support hehe
_djbkd has quit [Quit: My people need me...]
workmad3 has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
kubunto has joined #ruby
<kubunto> is it possible to stand a ruby on rails server on the raspberry pi?
<havenwood> kubunto: yes
ecuanaso has joined #ruby
<kubunto> ill have to google around again because i had trouble with it when i tried
<nofxxxx> kubunto, prob actually is disk writing... or database. Not webserver
<kubunto> (i dont recall the exact problems i had)
<nofxxxx> use redis with a very high write timeout
JeanCarloMachado has quit [Ping timeout: 260 seconds]
<kubunto> nofxxxx: i couldnt get a default page to show up
<kubunto> like i said i dont remember what went wrong
<nofxxxx> kubunto, prob nothing to do with the pi itself... it's just linux on that regard
<kubunto> the pi3 has a good processor but the earlier versions not so much
<derp10327> So I've made a class Parity
<derp10327> defined a method in Parity, even_or_odd
pankaj has quit [Quit: Leaving]
<centrx> good work!
<derp10327> how do I call that method in the same .rb file?
<derp10327> Thanks :)
<kubunto> tyvm for the info, if i run into issues ill stop by
kubunto has left #ruby [#ruby]
davorb has joined #ruby
<allisio> >> class Parity; def self.parity n; %i[even odd][n % 2] end end; Parity.parity 42
<ruby[bot]> allisio: # => :even (https://eval.in/760117)
<derp10327> Thanks allisio :)
<derp10327> My mistake was not using def self.parity
<derp10327> "self." that is
<allisio> I thought that might be it.
lxsameer has joined #ruby
<allisio> There are all sorts of ways to "namespace" some set of convenience methods, and sticking them on a Class that won't ever actually be instantiated isn't the best.
<allisio> Using a Module and #module_function is certainly better, possibly ideal: https://eval.in/760118
ascio has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
<ascio> Hi #ruby. I'm trying to reason about a set of classes and decide on an inheritance/composition scheme and I'm looking for some guidance. I am going to have multiple kinds of Browsers - say, a GraphicalBrowser and a TextBrowser, for starters. All Browsers will implement things like #open!, #close!, #goto!, #url, and some other general methods; but only GraphicalBrowser will have #screenshot. If I make TextBrowser and GraphicalBrowser each i
srl295 has quit [Quit: Connection closed for inactivity]
oliv_____ has joined #ruby
<ascio> My idea is that for the most operations (navigation, locating elements, etc) a client should not need to know what kind of Browser is being used, so I am worried it can be confusing having some kinds of Browser implement a method, and others not
marxarelli is now known as marxarelli|afk
t-recx has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
Limix has quit [Quit: Limix]
xenops has quit [Quit: Textual IRC Client: www.textualapp.com]
Limix has joined #ruby
despai has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pankaj has joined #ruby
cagomez has joined #ruby
Rodya_ has joined #ruby
ecuanaso has joined #ruby
kitikonti has joined #ruby
<hxegon> Just throwing this out there, this could be a terrible idea
Sammichmaker has joined #ruby
<derp10327> So in (many) programming languages you can call different methods in the following ways: "foo.method()" or "method(foo)"
<derp10327> Are there names for those two types of methods
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
<derp10327> examply str.gsub(parameters)
jaruga has quit [Quit: jaruga]
<derp10327> example*
<hxegon> ascio: hold on, trying to find some old code
<allisio> derp10327: When there's a receiver, it's a method. Otherwise, it's generally called a function.
<allisio> But there's always a receiver in Ruby, so Ruby doesn't really have functions.
<ytti_> thank goodness
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
<ytti_> len(str) sorted(ary)
<ytti_> brrrr
<derp10327> allisio, is "self" the receiver of self.method()?
<allisio> derp10327: Yeah, and there's always an implicit `self`.
<derp10327> alright :)
<allisio> >> self # even at top-level
<ruby[bot]> allisio: # => main (https://eval.in/760125)
<derp10327> Thank you :)
<allisio> Happy to help. :)
<ascio> hxegon: "(04:18:10 PM) hxegon: Just throwing this out there, this could be a terrible idea"
<ascio> am i correct in assuming this is in response to my question?
<hxegon> ascio: It's the disclaimer to answer I'll give in a minute
<ascio> ahh ok, sorry don't mean to be impatient
TTilus has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pankaj has quit [Quit: Leaving]
muelleme has joined #ruby
<derp10327> allisio, How do I define a method so that it takes a receiver other than 'self', I can't seem to find this in the docs. For example 'hello'.method() or str.method()
<patarr> Why does "Excon::Errors::BadRequest".constantize give me a Class?
cibs has quit [Ping timeout: 240 seconds]
<patarr> "...".constantize.kind_of? StandardError doesn't seem to work right
<dminuoso> derp10327: You can't.
<dminuoso> derp10327: The only thing you can control is what you define it on. There's a couple global options available.
<dminuoso> Defining methods in top level space will put them into the (main) objects singleton class.
<dminuoso> errr. no
<dminuoso> Object.
cibs has joined #ruby
Verity has quit [Remote host closed the connection]
<derp10327> dminuoso, how would I write a method that is called as such: 'foo.method()'
<derp10327> It has to be possible because there are built-in methods such as foo.gsub()
<dminuoso> derp10327: define it in any of foo.class.ancestors
<dminuoso> or inject a module between any of them
<hxegon> derp10327: or use refinements
<dminuoso> refinements are not an alternative but an augmented solution.
<allisio> derp10327: You're getting a lot of good but perfectly irrelevant advice. :P
<Disavowed> Rubocop is giving me gyp: "Use nested module/class definitions instead of compact style.". What does it mean?
<allisio> You can invoke `foo.gsub` when `foo` is a String, because #gsub is one of String's instance methods.
enterprisey has quit [Remote host closed the connection]
<dminuoso> Disavowed: class Foo::Bar can be a pit
<dminuoso> Disavowed: The reason has to do with how nesting and things like constant lookup works
conta has joined #ruby
<dminuoso> Disavowed: If you are aware of it and know the implications it's perfectly fine though.
<derp10327> allisio, so I need to write an instance method of my own to accomplish my goal then right?
<dminuoso> If you don't, use nested definitions instead.
<dminuoso> (They are less likely to trip you up)
<dminuoso> Disavowed: Don't trust rubocop blindly though. Configure it explicitly to warn you about what you care about.
<hxegon> ascio: still thinking, could you give me some more detail? What is your ideal behaviour if a client asks a text browser for a gui browser feature? Is that something that should even be possible? What is the client?
<allisio> Disavowed: https://eval.in/760128
<dminuoso> Don't just use it with default settings.
<derp10327> allisio, my current code is in the following form: https://hastebin.com/ihaluwozuf.rb
<Disavowed> dminuoso: Newish to idiomatic Ruby so I guess there's an element of blindly following. You're not the first to tell me not to follow it dogmatically actually, perhaps I should look at it less.
<dminuoso> allisio, Disavowed: https://eval.in/760129
<dminuoso> allisio: meant to post this.
<hxegon> ascio: also, I'm going to lunch, but I'll read whatever you send me and get back to you.
<cagomez> if I have class Foo; def self.some_method(bar); new(bar).some_other_method; . is new(bar) calling itself
<Disavowed> allisio: That's much clearer. Thank you!
Ishido has quit [Read error: Connection reset by peer]
<Disavowed> Sorry, mistag. dminuoso, thank you!
<allisio> cagomez: Yeah.
<Disavowed> (Although thank you too, allisio)
<allisio> derp10327: As it stands, you can invoke your #foo method on instances of the String class.
<dminuoso> Disavowed: Well you should thank allisio. I just corrected his less representative eval.in :)
<dminuoso> or *their*
<derp10327> allisio alright :)
<dminuoso> Disavowed: Personally I use compact style everywhere because I cant be fucked to waste whitespace for no good reason.
<cagomez> allisio: so new(bar).some_other_method is the same as initialize(bar) ?
Fernando-Basso has quit [Quit: WeeChat 1.5]
<allisio> cagomez: No, not quite.
<Disavowed> dminuoso: I'll probably follow your lead then - I've enough of whitespace wastage coming from Python
conta has quit [Quit: conta]
<dminuoso> Disavowed: Just be careful if you use Rails.
<cagomez> *initialize(bar).some_other_method ?
<allisio> You generally don't invoke #initialize directly, since you also want the #allocate that gets implicitly called when you say `.new`.
<derp10327> Finally figured it out
<dminuoso> Disavowed: Do you use Rails?
<ascio> hxegon: thanks for taking the time to think about the problem, i appreciate your help. the long-term plan for this project is to intelligently analyze the calls made for a given Browser object in a given script, and determine from those calls which Browser type is appropriate to instantiate
<ascio> hxegon: (i.e. if methods like #screenshot are called, then a GraphicalBrowser is required to execute that properly). so building up to that, I was thinking of making an abstract Browser class with all possible browser actions raising NotImplementedError, and specific Browser subclasses defining which methods are appropriate. (sorry if this is unclear, I can try to rephrase)
<ascio> hxegon: however this doesn't feel like idiomatic ruby to me
<dminuoso> Disavowed: If you do, you should really stick to the nested syntax or stop right now and learn how autoloading works.
<Disavowed> dminuoso: On occasion. I'm a big fan
<cagomez> ah I see
<dminuoso> Disavowed: Then dont use it with Rails or learn about how the autoloader works.
<Disavowed> I'll stick, but I think learning how autoloader works is a smart play. I need to hit the books with Ruby again I think
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<dminuoso> Disavowed: The real mean pitfall in Rails is that if you specify Foo::Bar and use Quux inside it, it will *not* check Foo:: for Quux.
<ascio> hxegon: if it helps understand any, the inspiration/idea for this project is, basically, a common interface between libraries like watir/mechanize/nokogiri/etc that defaults to whichever libary is least resource intensive while fulfilling requirements
oliv_____ has quit [Remote host closed the connection]
<dminuoso> Disavowed: This can lead to really surprising bugs.
<dminuoso> Disavowed: Essentially Rails checks for missing constants in all autoloaded dirs with the nesting in the spot it was used in in mind.
<dminuoso> (A common case is when you have some Admin namespace that you use to separate user and admin stuff. Something like Admin::ActionController using User could have some unwanted side-effects. ;-)
synthroid has quit []
centrx has quit []
muelleme has quit [Ping timeout: 260 seconds]
kobain has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
<derp10327> what does '&:' mean in '&:capitalize'
AndBobsYourUncle has joined #ruby
<allisio> It's invoking the #to_proc method on the Symbol `:capitalize`, which in turn prepares it to be used like a block.
<allisio> >> a = ['foo', 'bar']; a.map(&:capitalize) == a.map { |s| s.capitalize }
<ruby[bot]> allisio: # => true (https://eval.in/760133)
cpruitt has quit [Quit: cpruitt]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Client Quit]
<derp10327> >> a= 'aren\'t'; a.gsub(/\w+/, &:capitalize)
<ruby[bot]> derp10327: # => "Aren'T" (https://eval.in/760136)
<derp10327> oh duh
<derp10327> I need to check just for '^' and '[ ]'
milardovich has joined #ruby
<allisio> derp10327: Several other default classes come with a moderately useful #to_proc already defined, but Symbol's is far and away the most commonly used and useful.
<allisio> >> h = {a: 1, b: 2}; [:a, :b, :c].map(&h) # Hash recently got one that proxies to Hash#[].
<ruby[bot]> allisio: # => [1, 2, nil] (https://eval.in/760138)
<derp10327> >> a = 'aren\'t'; a.gsub(/(?:^|(?<=[ ]))[a-z]/, &:capitalize)
<ruby[bot]> derp10327: # => "Aren't" (https://eval.in/760139)
pLaTo0n has quit [Read error: Connection reset by peer]
ecuanaso has joined #ruby
<derp10327> Well thanks for all the help and info, I gotta get going to class now :)
<derp10327> catch you all later
derp10327 has left #ruby ["Leaving"]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
ghoti has quit [Ping timeout: 260 seconds]
araujo has quit [Read error: Connection timed out]
ghoti has joined #ruby
araujo has joined #ruby
jrafanie has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.7]
AndBobsYourUncle has quit [Client Quit]
loincloth has joined #ruby
renchan has quit [Remote host closed the connection]
<ascio> additionally - another unrelated problem - I want to test that some code executes within a certain block; specifically, I want to make sure that a method's code is wrapped in a mutex#synchronize block. currently, i am testing that a method is synchronous by expecting #synchronize to be called on a dependency-injected mutex, but another user here pointed out to me yesterday that this does not test that the relevant code is actually called -
AndBobsYourUncle has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
AndBobsYourUncle has quit [Client Quit]
ldnunes has quit [Quit: Leaving]
ecuanaso has quit [Read error: Connection reset by peer]
xenops has joined #ruby
tau has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
d5sx43 has quit [Remote host closed the connection]
sunya7a__ has left #ruby [#ruby]
oliv_____ has joined #ruby
sunya7a has joined #ruby
d5sx43 has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
oliv_____ has quit [Ping timeout: 246 seconds]
cibs has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
elifoster has joined #ruby
GodFather has joined #ruby
AndBobsYourUncle has joined #ruby
nicolai86 has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
oliv_____ has joined #ruby
AndBobsYourUncle has joined #ruby
_djbkd has joined #ruby
<hxegon> ascio: back. Just read your... comments? posts? messages? messages. I have an idea, give me a minute to write it up.
nyuszika7h has quit [Read error: Connection reset by peer]
nyuszika7h has joined #ruby
cgibsonmm has joined #ruby
marxarelli|afk is now known as marxarelli
nicolai86 has joined #ruby
kobain has joined #ruby
duckpupp1 has joined #ruby
cgibsonmm has quit [Remote host closed the connection]
<hxegon> ascio: just going to put it in a gist
sagax has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
<hxegon> also going to assume you wanted the mutex thing in the browsers, but it should be easy to take out if that's not the case
duckpupp1 has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
cgibsonmm has joined #ruby
tomphp has joined #ruby
<ascio> hxegon: hey, sorry had to step away. again thanks for taking the time to help me reason about this
cgibsonmm has quit [Remote host closed the connection]
kirun has joined #ruby
tau has joined #ruby
<hxegon> no problem ascio, this is somewhat similar to another problem I had to think a long time about :)
tau has quit [Remote host closed the connection]
tau has joined #ruby
Rodya_ has joined #ruby
<hxegon> almost there ascio
Lord_of_Life has quit [Excess Flood]
Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has quit [Quit: This computer has gone to sleep]
Lord_of_Life has joined #ruby
despai has joined #ruby
Rodya__ has joined #ruby
mikecmpbll has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: brb]
JeanCarloMachado has joined #ruby
millerti has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
<hxegon> scratch that, realized I was coding metaprogramming cthulhu and currently fixing that part of the design 0.0
rikkipitt has joined #ruby
roamingdog has quit [Ping timeout: 264 seconds]
cibs has joined #ruby
tau has quit [Remote host closed the connection]
tau has joined #ruby
alphor has joined #ruby
TheHodge has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AnomalousBit has quit [Quit: AnomalousBit]
d5sx43 has quit [Quit: Leaving...]
AndroUser123 has joined #ruby
<AndroUser123> hello
d5sx43 has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
<AndroUser123> my code is too slow again another example
<AndroUser123> simple rotation
milardovich has quit [Remote host closed the connection]
d5sx43 has quit [Client Quit]
milardovich has joined #ruby
SeepingN has joined #ruby
avrelaun has quit [Ping timeout: 240 seconds]
* baweaver grumbles about learning indentation
avrelaun has joined #ruby
<AndroUser123> ok thanks but why is this code too slow
<hxegon> alright, think I fixed it. making basic implementation ascio
oliv_____ has quit [Remote host closed the connection]
amargherio has quit [Quit: amargherio]
[Butch] has quit [Quit: I'm out . . .]
olivi____ has joined #ruby
jamesaxl has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 246 seconds]
olivi____ has quit [Remote host closed the connection]
rikkipitt has quit [Quit: Leaving...]
oliv_____ has joined #ruby
postmodern has joined #ruby
catbusters has joined #ruby
<baweaver> Do you actually need to transform the array?
<baweaver> hint: no, modulo is a great thing
<baweaver> work from that
<AndroUser123> hmm
<ascio> hxegon: hey thanks, i'm currently trying to expect a method call within a stub to solve the mutex testing probem but no dice
<AndroUser123> but what would i do with modulo here
<baweaver> think about it for a bit.
tau has quit [Remote host closed the connection]
tau has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
<AndroUser123> hmm
<AndroUser123> its easier to change the array
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Limix has quit [Ping timeout: 264 seconds]
<AndroUser123> everything moves k places right
hahuang61 has quit [Ping timeout: 260 seconds]
minimalism has quit [Quit: minimalism]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
<AndroUser123> every element moves n%k to the right
tau has quit [Remote host closed the connection]
mim1k has joined #ruby
tau has joined #ruby
<baweaver> AndroUser123: easier for you or easier for the computer?
<AndroUser123> for me
<baweaver> then you have an issue
tau has quit [Remote host closed the connection]
<baweaver> Assume you cannot change the array in any way shape or form
<baweaver> build from there.
tau has joined #ruby
<AndroUser123> hmm
<AndroUser123> like a[n%k+....[
Limix has joined #ruby
<baweaver> give it a try.
Limix has quit [Client Quit]
NightMonkey has quit [Ping timeout: 256 seconds]
<baweaver> Loops get expensive. If you can do it mathematically it's a substantial reduction in time.
mim1k has quit [Ping timeout: 256 seconds]
<AndroUser123> hmm ok
<AndroUser123> any more hints
<baweaver> get back to coding and try those previous hints out
NightMonkey has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AndroUser123> ok thanks
<AndroUser123> also my code was also slow here
<AndroUser123> i removed each_with_index in real code and optimized it a little
<AndroUser123> but still its very slow for 5mb txt test case
<AndroUser123> lol
<ascio> hxegon: i am going to need to leave soon, is there a chance i can talk to you later about this problem?
Rodya__ has quit [Remote host closed the connection]
<hxegon> Yes, let me link you to my gist in progress and you can check on it later
sarbs has quit [Disconnected by services]
Rodya_ has joined #ruby
sarbs_ has joined #ruby
Jayson_Virissimo has joined #ruby
<AndroUser123> baweaver any hints on second one
renatosilva has joined #ruby
<ascio> thanks hxegon! really appreciate the work/thought you put into helping me
bmurt has joined #ruby
enterprisey has joined #ruby
<hxegon> ascio: no problem, I like design challenges. Hopefully someone will tear it apart when I post the link to the finished version
<ascio> do you have any issues with me cannibalizing this code?
<hxegon> not at all
NightMonkey has quit [Ping timeout: 260 seconds]
<ascio> awesome, thank you very much
<ascio> i'll let you know later what i end up doing with it
<ascio> if you're interested
<hxegon> consider it under the WTFPL license
<hxegon> cool, even if I'm afk you can mention me and I'll see it later
<ascio> haha first i've heard of this license, simple enough
hahuang61 has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
NightMonkey has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
ahrs has quit [Remote host closed the connection]
hays has joined #ruby
ahrs has joined #ruby
<hxegon> ascio: also, check out the comment in .def_synchr_action and comment if you think it would work. I'm heading out, but I'll work on it more in a bit and be back on.
ujjain has quit [Ping timeout: 246 seconds]
hxegon is now known as hxegon_afk
biberu has quit []
agent_white has joined #ruby
elifoster has quit [Quit: out]
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
maattdd has joined #ruby
CloCkWeRX has joined #ruby
roamingdog has joined #ruby
AndroUser123 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chopin has quit []
Jayson_Virissimo has quit []
doublemalt_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
teddysmoker has quit [Quit: Konversation terminated!]
aryaching_ has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renatosilva has quit [Quit: http://renatosilva.net]
zeddan has joined #ruby
bronson_ has joined #ruby
TomyLobo2 has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has quit [Quit: WeeChat 1.7]
cagomez has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
cagomez has joined #ruby
swills_ has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 240 seconds]
swills has quit [Ping timeout: 256 seconds]
renatosilva has joined #ruby
cagomez_ has joined #ruby
cibs has joined #ruby
kiki_lamb has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
renatosilva has quit [Quit: http://renatosilva.net]
charliesome has joined #ruby
pankaj has joined #ruby
cagomez_ has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
cibs has quit [Ping timeout: 246 seconds]
Limix has joined #ruby
cibs has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
duckpupp1 has joined #ruby
alibby has quit [Quit: Leaving.]
hutch34 has joined #ruby
alibby has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
duckpupp1 has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
eclm has joined #ruby
milardovich has joined #ruby
alibby has quit [Quit: Leaving.]
hutch34 has quit [Ping timeout: 256 seconds]
yqt has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
hutch34 has joined #ruby
swills_ has quit [Read error: Connection reset by peer]
swills_ has joined #ruby
charliesome has joined #ruby