havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
kristofferR has joined #ruby
ovaltine has joined #ruby
cyphase has joined #ruby
<leitz> devp_, can you run "gem environment"? It might help.
gusrub has quit [Remote host closed the connection]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> devp__: What is it you're doing? What are your constraints?
<leitz> I'm trying to figure out a way to call "myclass.new" with "myclass" being a variable. https://github.com/LeamHall/CT_Character_Generator/blob/master/bin/Chargen.new#L57-L71
<havenwood> devp__: If you need a portable, self-contained Ruby packaged with gems that you can copy to an offline box consider Traveling Ruby: https://phusion.github.io/traveling-ruby/
<havenwood> devp__: If you tell us more about what you're doing and why we might be able to give better suggestions.
<havenwood> leitz: Module.const_get(career).new
<havenwood> leitz: or with ActiveSupport you can: career.constantize.new
<SeepingN> can't rvm also help you set up ruby(ies) without root?
tolerablyjake has joined #ruby
<leitz> havenwood, using Ruby 2.4.0, lemme go look. Thanks!
<havenwood> SeepingN: yeah, you can install Rubies and gems without root with rvm or ruby-install
<havenwood> SeepingN: https://rvm.io/rvm/offline
<havenwood> SeepingN: Or even offline
<SeepingN> we're in the process of building a replacement for an old Mint machine. going to use RVM from teh get-go this time
<havenwood> SeepingN: A bit dated example of a non-root ruby-install/chruby: https://gist.github.com/havenwood/6233659
<SeepingN> We using it for our production site too but it's mostly just a passive thing - I don't mess with it much
<SeepingN> chruby! :)
<havenwood> chruby \o/
cyphase has quit [Ping timeout: 258 seconds]
bmurt has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
willardg has joined #ruby
<devp__> havenwood: my 16.04 on on vps comes with ruby 2.1 and guard requires version>=2.3.
<devp__> so installing ruby from source 2.4
<leitz> havenwood, your solution works, thanks! Of course, I knew it would break everything else. :D
bman013 has joined #ruby
<havenwood> devp__: Brightbox provides up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
<devp__> compiled successfully and run on a remote machine
<devp__> working fine
<devp__> when transfer this to vps ruby -v shows correct version
<devp__> gem -v show error:
<devp__> -bash /home/bs/.localpacks/bin/gem: /home/user/.localpacks/bin/ruby: bad interpreter: No such file or directory
benlieb has quit [Quit: benlieb]
<havenwood> devp__: You can allow a movable build with the flag I showed you, but it typically doesn't work very well to move a dynamically linked build onto another box.
<havenwood> devp__: For that you'll want a statically linked build.
<devp__> which shows it still pointing to previous location of installed ruby which has user name "user"
<devp__> new location has username "bs"
bman013 has quit [Remote host closed the connection]
<havenwood> devp__: Both RVM and Travis produce precompiled, statically linked Rubies for your distro version.
<devp__> --enable-shared does not workes either
<devp__> same error
bman013 has joined #ruby
<havenwood> devp__: It works for moving from one place to another on the same box.
cyphase has joined #ruby
<havenwood> devp__: Like I said, you'll want a statically linked build if you want to move it onto another box.
<havenwood> You can do you own, but there are already precompiled ones available for your os/distro/version.
<devp__> just one thing here
<devp__> manually alter location of finding ruby installation for gem
<devp__> so gem will be able to find new ruby location
<havenwood> devp__: Unless you want to do it solely for the exercise, use a precompiled, statically linked binary or a Brightbox package.
LuckyABA has joined #ruby
<havenwood> devp__: The `gem` command ships with Ruby.
<devp__> thats true
<devp__> when i compiled it from source gem hardcoded itself to that ruby location
<devp__> thats create issue
<havenwood> devp__: If you can, use the Brightbox package. If you can't, use the RVM or Travis precompiled binary (I'd be happy to point you to either). Or if you don't like those options, use Traveling Ruby.
<devp__> going for travelling ruby
<devp__> hang on
<havenwood> Traveling Ruby has a very nice statically linked build.
_sfiguser has quit [Ping timeout: 240 seconds]
<devp__> travelling ruby looks like it uses docker
cyphase has quit [Ping timeout: 268 seconds]
cyphase has joined #ruby
devp___ has joined #ruby
devp__ has quit [Ping timeout: 260 seconds]
_sfiguser has joined #ruby
cyphase has quit [Ping timeout: 256 seconds]
willardg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has quit [Remote host closed the connection]
zipace has quit [Ping timeout: 240 seconds]
<devp___> heavenwood: thanks
<devp___> still giving a final try on install from source.
<devp___> if it does not works will go for brightbox
cyphase has joined #ruby
postmodern has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
jhack has joined #ruby
Channel6 has joined #ruby
marcdel has joined #ruby
bmurt has quit [Remote host closed the connection]
marcdel_ has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
<devp___> heavenwood: it workes this time
rakm has joined #ruby
marr has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 246 seconds]
<devp___> havenwood: compiled from source works. just created a user with same name "bs" on remote machine and then compiled it
ecksit has quit [Ping timeout: 256 seconds]
<devp___> transfered that bin to other remote
<devp___> havenwood: thanks for your support
<havenwood> devp___: nice, you're welcome
cyphase has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Renich has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 258 seconds]
__Yiota has joined #ruby
t-recx has quit [Quit: t-recx]
devp___ has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
houhoulis has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
Renich has quit [Quit: Renich]
mim1k has joined #ruby
cfec0b8d has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
Snickers has quit [Quit: Snickers]
gnufied has quit [Quit: Leaving]
nowhere_man has quit [Ping timeout: 246 seconds]
Tempesta has quit [Quit: See ya!]
mikecmpbll has quit [Quit: inabit. zz.]
leitz has quit [Quit: Nappy time]
aryaching has quit [Ping timeout: 240 seconds]
johnzorn has quit [Ping timeout: 264 seconds]
gloscombe_ has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
Tempesta has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
d^sh has joined #ruby
optiz0r has quit [Ping timeout: 268 seconds]
johnzorn has joined #ruby
libastral has quit [Ping timeout: 268 seconds]
hays has joined #ruby
libastral has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Client Quit]
skweek has quit [Ping timeout: 256 seconds]
genpaku has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 246 seconds]
genpaku has joined #ruby
madsa has joined #ruby
madsa is now known as Guest30808
optiz0r has joined #ruby
mazeinmaze_ has joined #ruby
duckpupp1 has joined #ruby
singalaut has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
Guest30808 has quit [Read error: Connection reset by peer]
madsa_ has joined #ruby
madsa_ is now known as Guest32742
enterprisey has joined #ruby
jameser has joined #ruby
Rodya_ has quit [Quit: Leaving...]
aryaching has joined #ruby
duderonomy has joined #ruby
HoierM has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willardg has joined #ruby
__Yiota has joined #ruby
rakm has joined #ruby
__Yiota has quit [Client Quit]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
KnownSyntax has quit [Remote host closed the connection]
gix has quit [Ping timeout: 260 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has joined #ruby
Channel6 has quit [Quit: Leaving]
<adam12> >> $LOAD_PATH.class
<ruby[bot]> adam12: # => Array (https://eval.in/765745)
<adam12> I wonder why it's not an instance of Set.
mim1k has joined #ruby
KnownSyntax has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
<allisio> adam12: It's almost certainly because Set isn't core, but that's a mystery all its own.
<adam12> allisio: I didn't realize that but I bet you're right
<matthewd> Is Set ordered?
<adam12> That's another good question - but have Arrays always been ordered?
<matthewd> (by specification, not in practice)
<adam12> Maybe I'm thinking Hash's were unordered.
<adam12> I noticed Bundler generates a gemspec with a `$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)` and it got me thinking.
Trynemjoel has quit [Ping timeout: 245 seconds]
<matthewd> Yeah.. the fact it's an unshift speaks to the ordering
Trynemjoel has joined #ruby
preyalone has joined #ruby
DTZUZO has quit [Ping timeout: 258 seconds]
claw has quit [Ping timeout: 260 seconds]
pilne has quit [Quit: Quitting!]
DTZUZO has joined #ruby
claw has joined #ruby
Jayson_Virissimo has joined #ruby
elifoster has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
Bock has joined #ruby
Channel6 has joined #ruby
<allisio> Set has always been implemented in terms of Hash, which has been ordered since 1.9.
twistedp- has quit [Quit: ZNC - http://znc.in]
twistedpixels_ has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
Jayson_Virissimo has quit []
CloCkWeRX has joined #ruby
Arpanet69 has joined #ruby
Bock has quit [Max SendQ exceeded]
Bock has joined #ruby
houhoulis has quit [Remote host closed the connection]
mim1k has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
enterprisey has quit [Read error: Connection reset by peer]
Nilium has quit [Ping timeout: 264 seconds]
aryaching has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
duckpupp1 has joined #ruby
batmaan has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
<batmaan> hello. I'm trying to consume an api, but I haven't seen documentation like this before. I'd like to use restclient or httparty to build a client, but, I don't have much experience with this type of api. my end goal is to import a csv, then post each row to the api. anyone with api experience interested in helping out? I just need a point in the right direction or a good resource to read.
CloCkWeRX has joined #ruby
amclain has quit [Quit: Leaving]
<batmaan> bueller?
Arpanet69 has quit [Ping timeout: 258 seconds]
<adam12> batmaan: I'd go look at a library already written
<adam12> Especially if they use one of those libraries you mentioned
<adam12> The twitter one perhaps.
<adam12> batmaan: but realistically, you're looking at very little code. Ruby ships with a CSV parsing library, and you could use _anything_ to post to a single URL - even net/http which comes with Ruby.
<adam12> Anyways, late here. Night.
shinnya has joined #ruby
<batmaan> Thanks @adam12
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Arpanet69 has joined #ruby
<batmaan> adam12: I'm ok with writing the client. It's this api documentation that I'm not familiar with.
jackjackdripper has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
cfec0b8d has joined #ruby
robmuh has joined #ruby
<batmaan> it's late indeed. 'night all. zzz.
batmaan has left #ruby [#ruby]
jackjackdripper has quit [Ping timeout: 240 seconds]
hndk has joined #ruby
willardg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willardg has joined #ruby
willardg has quit [Client Quit]
robmuh has quit [Quit: BitchX: try our low-fat flavor too!]
willardg has joined #ruby
willardg has quit [Client Quit]
willardg has joined #ruby
willardg has quit [Client Quit]
willardg has joined #ruby
willardg has quit [Client Quit]
willardg has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
willardg has quit [Client Quit]
willardg has joined #ruby
willardg has quit [Client Quit]
Silthias has joined #ruby
Channel6 has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
DTZUZO has joined #ruby
sniffer has quit [Remote host closed the connection]
preyalone has quit [Quit: Connection closed for inactivity]
NightMonkey has quit [Ping timeout: 240 seconds]
NightMonkey has joined #ruby
sniffer has joined #ruby
hndk has quit [Read error: Connection reset by peer]
DTZUZO has quit [Ping timeout: 260 seconds]
sniffer has quit [Client Quit]
_whitelogger has joined #ruby
Ariadeno has quit [Read error: No route to host]
DTZUZO has joined #ruby
jamesaxl has joined #ruby
sniffer has joined #ruby
jdm has joined #ruby
meshsmith has quit [Remote host closed the connection]
renchan has joined #ruby
rippa has joined #ruby
duckpupp1 has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
bkxd has joined #ruby
minimalism has joined #ruby
nofxxxx has joined #ruby
jameser_ has joined #ruby
Xiti has quit [Quit: Xiti]
nofxxx has quit [Ping timeout: 260 seconds]
jameser has quit [Ping timeout: 260 seconds]
migge has quit [Quit: migge]
ainchk has joined #ruby
thatsnotjack has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
spectrum has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
spicerack has joined #ruby
jeanlinux has joined #ruby
jeanlinux has quit [Ping timeout: 260 seconds]
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
grh has joined #ruby
davix has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
<acalycine> Anybody use Nokogiri?
charliesome has joined #ruby
<bungoman> Yes.
hogetaro has quit [Quit: Leaving...]
ainchk has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 246 seconds]
marr has joined #ruby
jusa has joined #ruby
Gabemo has quit [Read error: Connection reset by peer]
zapata has quit [Quit: WeeChat 1.7]
kernelPaniq has quit [Remote host closed the connection]
ledestin has joined #ruby
zapata has joined #ruby
muelleme_ has joined #ruby
tau has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
davix has joined #ruby
jameser has joined #ruby
davix has quit [Client Quit]
_sfiguser has quit [Ping timeout: 258 seconds]
jameser_ has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
duckpupp1 has joined #ruby
azwieg103 has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
duckpupp1 has quit [Ping timeout: 268 seconds]
_sfiguser has joined #ruby
coffeejunk has joined #ruby
muelleme_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Read error: Connection reset by peer]
jameser has quit [Ping timeout: 258 seconds]
cfec0b8d has quit [Quit: Leaving.]
dionysus69 has joined #ruby
muelleme_ has joined #ruby
cfec0b8d has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 240 seconds]
Gabemo has joined #ruby
User4587_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jgnagy has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Max SendQ exceeded]
Jackneill has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
banisterfiend has joined #ruby
nibbo has quit [Ping timeout: 240 seconds]
willardg has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
Lord_of_Life has quit [Excess Flood]
willardg has left #ruby ["Textual IRC Client: www.textualapp.com"]
hs366 has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
ltem has joined #ruby
hs366 has joined #ruby
singalaut has quit [Read error: Connection reset by peer]
Lord_of_Life has joined #ruby
lxsameer has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
hs366 has quit [Read error: Connection reset by peer]
hs366 has joined #ruby
Silthias1 has joined #ruby
chrisco has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
hs366 has quit [Read error: Connection reset by peer]
hs366 has joined #ruby
doublemalt__ has joined #ruby
Verity has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hs366 has quit [Read error: Connection reset by peer]
vuoto_ has joined #ruby
banisterfiend has joined #ruby
chrisco has quit []
hs366 has joined #ruby
DTZUZO has joined #ruby
esObe_ has quit [Remote host closed the connection]
Lord_of_Life has quit [Excess Flood]
DTZUZO has quit [Ping timeout: 260 seconds]
MittelDank has quit [Ping timeout: 268 seconds]
doublemalt__ has quit [Ping timeout: 268 seconds]
postmodern has quit [Quit: Leaving]
patarr has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cfec0b8d has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
grh has quit [Ping timeout: 246 seconds]
cfec0b8d has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
duckpupp1 has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
duckpupp1 has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
rwb has quit [Ping timeout: 260 seconds]
mensvaga has quit [Remote host closed the connection]
leitz has joined #ruby
nOwz has joined #ruby
scottschecter has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
scottschecter has joined #ruby
jdm has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
jdm has joined #ruby
vuoto_ has quit [Quit: Lost terminal]
vuoto has quit [Remote host closed the connection]
bkxd has joined #ruby
esObe_ has joined #ruby
esObe_ has quit [Client Quit]
Yotolo has joined #ruby
jgnagy has joined #ruby
Yotolo has quit [Ping timeout: 260 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
Yotolo has joined #ruby
<leitz> In Ruby 2.4, is there a way to get hash keys in the order they were inserted?
<matthewd> .keys ?
<leitz> keys used to not be guarenteed to be in any order. Has that changed from 1.8?
<elomatreb> Changed in 1.9, yes
* leitz is still moving in the current century.
<leitz> Thanks!
dionysus69 has quit [Ping timeout: 256 seconds]
<leitz> Wow, that solved a couple long standing problems. Good thing Matz is a guy or I'd be tempted to kiss him.
kirun has joined #ruby
<Zarthus> are you implying guys can't kiss?
<leitz> Zarthus, just that my personal and cultural inclinations minimize it.
<leitz> Getting used to higging when we lived in Italy was a thing. Now I do it more even though no longer in Europe.
grh has joined #ruby
naftilos76 has joined #ruby
Lord_Squirrel has joined #ruby
Lord_Squirrel has left #ruby [#ruby]
pwnd_nsfw has joined #ruby
AndroUser123 has joined #ruby
<AndroUser123> hello
nadir has quit [Quit: Connection closed for inactivity]
<AndroUser123> can anyone recommend me a good ruby on rails book
<AndroUser123> or tutorial or something
synthroid has joined #ruby
<elomatreb> AndroUser123: https://www.railstutorial.org/ is pretty popular, maybe ask in #RubyOnRails though
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
jonjitsu has quit [Ping timeout: 268 seconds]
BackEndCoder_ has quit [Excess Flood]
sepp2k has joined #ruby
BackEndCoder has joined #ruby
phoo1234567 has joined #ruby
jonjitsu has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
Verity has joined #ruby
<Verity> how do I learn to use classes
<Verity> these tutorials really dont help
<Verity> its all syntax
<Verity> here is how you create a class, here are some things
<AndroUser123> thanks
<Verity> but not... here is how to structure classes, break your pgoram down, when to use classes
<Verity> this sort of thing
<Verity> just seeing how to write a class class Person end is really not helpful
<Verity> ok I have a person object now and it says hello... this seems quite useless out of a real context relating to my program
<Verity> do I just put everything in class? some things?
<Verity> my whole program started to break when I tried
<Verity> should I have started with the class from the beginning? it felt almost like rewriting it now without it being clear this time what to do
HoierM has joined #ruby
renchan has quit [Remote host closed the connection]
HoierM has quit [Max SendQ exceeded]
<matthewd> It sounds like you might be reading "how to create a class in ruby (syntax)" when you want some sort of "intro to classes and objects (concepts)" -- likely not based on ruby
HoierM has joined #ruby
Yotolo has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
Yotolo has joined #ruby
jameser has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
<apeiros> Verity: IMO understanding what to represent by a class and how to structure your object graph is something which takes quite a bit of experience. so don't be afraid of "doing it wrong". just try and try again.
<leitz> What's the bot's syntax for PODR?
<apeiros> feel free to ask here how people would structure a problem you have at hand (make sure you show your own approach along the question!)
<apeiros> leitz: ?factoid and !command
<leitz> ?factoid podr
<ruby[bot]> leitz: I don't see no podr, whom should I tell about factoid?
<leitz> Hmm...
<apeiros> sorry, ?<factoid> and !<command> <arg> …
<apeiros> ?podr
<ruby[bot]> apeiros: I don't know anything about podr
<apeiros> ?help
<ruby[bot]> You can find an overview of my commands at http://ruby-community.com/ruboto/commands
nowhere_man has joined #ruby
<leitz> Verity, you'll see references to PODR, "Practical Object Oreiented Design in RUby", by Metz. That's probably the best answer to your question.
<leitz> Really good book, too.
<apeiros> leitz: I can add a "podr" factoid if you give me the text
<apeiros> oh, and it's actually there. speling :-p
<apeiros> ?poodr
<ruby[bot]> Practical Object Oriented Design in Ruby http://www.poodr.com/
<leitz> And much coolness, a second edition is due out late in the year!
<leitz> Yay!
* leitz and the crowd goes wild...
Xiti has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
rwb has joined #ruby
gdonald has joined #ruby
jameser has quit [Max SendQ exceeded]
Pumukel has joined #ruby
meshsmith has joined #ruby
jameser has joined #ruby
zipace has joined #ruby
Xiti has quit [Quit: Xiti]
DTZUZO has joined #ruby
AndroUser123 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Snickers has joined #ruby
leitz has quit [Quit: Nappy time]
cfec0b8d has quit [Quit: Leaving.]
spectrum has quit [Quit: Leaving]
minimalism has quit [Quit: minimalism]
jgnagy has joined #ruby
pmunt has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: Leaving]
rahul_bajaj has joined #ruby
pytuger has quit [Ping timeout: 258 seconds]
gloscombe has joined #ruby
gloscombe is now known as gloscombe_
sepp2k has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
gloscombe_ has quit [Read error: Connection reset by peer]
gloscombe_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Yotolo has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 264 seconds]
am55 has joined #ruby
x0f has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 240 seconds]
duckpupp1 has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
duckpupp1 has quit [Ping timeout: 258 seconds]
chamby has joined #ruby
Yotolo has joined #ruby
Yotolo has quit [Remote host closed the connection]
muelleme_ has quit [Read error: Connection reset by peer]
muelleme_ has joined #ruby
chamby has quit [Remote host closed the connection]
chamby has joined #ruby
chamby has quit [Remote host closed the connection]
chamby has joined #ruby
rahul_bajaj has quit [Remote host closed the connection]
chamby has quit [Remote host closed the connection]
mooser has joined #ruby
grh has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 260 seconds]
houhoulis has joined #ruby
DTZUZO has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
yeticry_ has quit [Ping timeout: 240 seconds]
cajone has left #ruby [#ruby]
mooser has quit []
acalycine has quit [Quit: bye]
workmad3 has joined #ruby
minimalism has joined #ruby
vuoto has joined #ruby
dyyylan has joined #ruby
DLSteve has joined #ruby
cajone has joined #ruby
solocshaw has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vuoto has quit [Quit: leaving]
Arpanet69 has quit [Ping timeout: 256 seconds]
rgtk has joined #ruby
duckpupp1 has joined #ruby
tau has joined #ruby
slackR has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 260 seconds]
duckpupp1 has quit [Ping timeout: 260 seconds]
MrBusiness has joined #ruby
scottschecter has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
scottschecter has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
kristofferR has joined #ruby
jgnagy has joined #ruby
ltem has quit [Quit: Leaving]
bkxd has joined #ruby
shinnya has joined #ruby
Mon_Ouie has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
coatezy has quit [Ping timeout: 256 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
jdm has quit [Remote host closed the connection]
zipace has quit [Disconnected by services]
ziprar has joined #ruby
coatezy has joined #ruby
cow[baby] has joined #ruby
meadmoon has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
ensyde has quit [Ping timeout: 246 seconds]
meshsmith has quit [Remote host closed the connection]
slackR has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
dionysus69 has joined #ruby
solocshaw has quit [Client Quit]
meadmoon has quit [Quit: I am functioning within established parameters.]
Xiti has joined #ruby
cow[baby] has quit [Quit: cow[baby]]
duckpupp1 has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
xall has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
ensyde has joined #ruby
Emmanuel_Chanel has joined #ruby
plantfood has joined #ruby
DTZUZO has joined #ruby
Lord_of_Life has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
houhoulis has quit [Remote host closed the connection]
nowhere_man has joined #ruby
Guest9071 has quit [Quit: https://fnordserver.eu]
Satyajit has quit [Quit: https://fnordserver.eu]
Fire-Dragon-DoL has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
Lord_of_Life has quit [Excess Flood]
ryan_notabot has joined #ruby
Lord_of_Life has joined #ruby
Lord_of_Life has quit [Excess Flood]
Fire-Dragon-DoL has joined #ruby
xall has quit [Ping timeout: 240 seconds]
bman013 has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
plantfood has quit [Quit: Leaving]
Lord_of_Life has joined #ruby
pwnd_nsfw` has joined #ruby
hinbody has quit [Ping timeout: 240 seconds]
ryan_notabot has quit [Remote host closed the connection]
ryan_notabot has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
hndk has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
hinbody has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
_sfiguser has quit [Ping timeout: 240 seconds]
xall has joined #ruby
davix has joined #ruby
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lord_of_Life has quit [Excess Flood]
renchan_ has joined #ruby
_sfiguser has joined #ruby
renchan_ has quit [Remote host closed the connection]
acalycine has joined #ruby
<acalycine> Hey. Anybody use Nokogiri?
nOwz has quit [Quit: WeeChat 1.7]
ncthom91 has joined #ruby
Arpanet69 has joined #ruby
<acalycine> I want to fetch the first result (from top to bottom) on the page, atm I'm using #scan.
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
nadir has joined #ruby
batmaan has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grh has joined #ruby
am55 has joined #ruby
xall has quit [Ping timeout: 258 seconds]
nowhere_man has joined #ruby
nowhere_man has quit [Remote host closed the connection]
xall has joined #ruby
nowhere_man has joined #ruby
nowhere_man has quit [Remote host closed the connection]
Arpanet69 has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
Xiti has quit [Quit: Xiti]
duckpupp1 has joined #ruby
Arpanet69 has quit [Ping timeout: 258 seconds]
duckpupp1 has quit [Ping timeout: 264 seconds]
NotVerity has joined #ruby
<NotVerity> I cant do it, I;ve tried eveyrthing, I have no idea why im getting indibidual numbers from the chars ordinals on the wire
<NotVerity> instead of the bytes themselves
<NotVerity> I just cant take it anymore
<NotVerity> I've put 16+ hours into this specific issue now
<NotVerity> nothing is working
grh has quit [Ping timeout: 258 seconds]
marcdel_ has quit [Ping timeout: 256 seconds]
scorphus has quit [Ping timeout: 258 seconds]
PaulePanter has quit [Ping timeout: 260 seconds]
AlHafoudh has quit [Ping timeout: 260 seconds]
NotVerity has quit [Ping timeout: 260 seconds]
ablackack has quit [Ping timeout: 268 seconds]
foxxx0 has quit [Ping timeout: 260 seconds]
kmhn has quit [Ping timeout: 258 seconds]
Harzilein has quit [Ping timeout: 240 seconds]
PaulePanter has joined #ruby
kmhn has joined #ruby
sspreitz has quit [Ping timeout: 264 seconds]
boombox_ has joined #ruby
ablackack has joined #ruby
AlHafoudh has joined #ruby
sspreitz has joined #ruby
Water has joined #ruby
Water is now known as Verity-Away
moei has joined #ruby
<Verity-Away> [1, 108, 112, 132, 42, 23] if that message, I'm getting "1" "1" "0" "8" "1" "1" "2" "1" "3" "2" "4" "2" "2" "3" each bbyte a single number
<Verity-Away> I've triede 16 hours ripping clumps of hair out now smashing my head on kb
<Verity-Away> line 64 I've tried everything possible
<Verity-Away> there are no methods left to try
xall has quit [Ping timeout: 240 seconds]
<Verity-Away> I need to get each BYTE but ruby is putting each byte integer turning each number in it to a str/char then spitting thta on wire and WTF is going on
<Verity-Away> so confused
<Verity-Away> driving my insane
<Verity-Away> to pure insanity
<matthewd> Verity-Away: If I try to talk to you, will you pay attention, or disappear for an hour?
<Verity-Away> I'll be here for a bit, I lost power a moment ago
<matthewd> Why are you doing this bytes / chr thing?
<Verity-Away> ?
<Verity-Away> I'm trying to write each byte to the wire
boombox_ has quit [Remote host closed the connection]
<Verity-Away> from each packet in the array
GodFather has joined #ruby
<Verity-Away> later I will add flow control
<Verity-Away> this is supposed to be the basic write a byte get a byte
<Verity-Away> took me 5 minutes in c#
<Verity-Away> what on earth is going on here
<Verity-Away> its killing my soul
foxxx0 has joined #ruby
<Verity-Away> literally 16 hours
<Verity-Away> I just cant get it.
<matthewd> The colour isn't interesting or helpful
<matthewd> Does write not expect a string?
<Verity-Away> is my text colored?
<Verity-Away> hiuh???
<Verity-Away> ABOUT TO crash again
<Verity-Away> wine is opening 10000 windows for some reason in an infinite loop
<Verity-Away> what color????
<matthewd> I mean the commentary. To be curt, I don't care how long you've spent on it, nor what it's doing to your soul.
tau has quit [Remote host closed the connection]
<Verity-Away> but I do
<Verity-Away> ok it stopped crashing
<Verity-Away> should be good now
<matthewd> Do you have a link to the documentation for the Serial#write method you're using here?
<Verity-Away> the docs are garbage
<Verity-Away> the sourceis there though, but it wasnt helping me much
<matthewd> Okay, so as expected, write takes a string
<matthewd> packet_array is an array of strings at the start of this method
<matthewd> So again I ask, why are you doing the bytes/chr thing? You have a string, it wants a string.
<Verity-Away> I dont know how to answer your question, I dont know what I'm doing is the answer you probably want to hear
<Verity-Away> and I can't figure out whats wrong
<Verity-Away> I've tried MANY things, with no luck, so I came here
<Verity-Away> I tried using p .inspect
slackR has joined #ruby
<Verity-Away> I tried using irb carefully to see what was what
<Verity-Away> I just cant even get to a basic state of writing one byte reading one byte
<Verity-Away> (this isnt supposed to be the challenging part of the lab)
<Verity-Away> this is freebie code in the C# version
<matthewd> I'm trying to understand why it didn't just work here too
<matthewd> You have added code compared to the simplest thing that could possibly work, and I'm trying to understand why -- what problem you were trying to solve by adding it
<Verity-Away> because it wasnt working right before, so I kept going deeper into that path of trying to make it work
<Verity-Away> nesting more and more things, trying different forms of the packets
<Verity-Away> different ways of readinf them
<Verity-Away> ord vs chr vs s vs i
<Verity-Away> different things
<Verity-Away> but it was like no combination yielded a byte out a byte in
<matthewd> Stop trying to write a byte
<matthewd> Write a string
sspreitz has quit [Ping timeout: 268 seconds]
sspreitz has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
truenito has joined #ruby
Emmanuel_Chanel has joined #ruby
ddffg has joined #ruby
GodFather has quit [Remote host closed the connection]
Verity-Away has quit []
GodFather has joined #ruby
yurikoles has joined #ruby
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> Verity: adding to what matthewd said, if you want to write in hex: "\xff".b
<apeiros> that's 0xff as a string with binary encoding
Simplicity has joined #ruby
am55 has joined #ruby
jusa has quit [Ping timeout: 258 seconds]
jusa has joined #ruby
cfec0b8d has joined #ruby
SiliconDon has joined #ruby
hndk has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
djbkd has quit [Client Quit]
ahrs has joined #ruby
rgtk has joined #ruby
<allisio> matthewd: You're a curmudgeon and saint all in one.
tildes has joined #ruby
slackR has quit [Ping timeout: 240 seconds]
allisio has quit [Quit: WeeChat 1.8-dev]
allisio has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
statelesscode has joined #ruby
skweek has joined #ruby
statelesscode has quit [Client Quit]
marcdel has joined #ruby
statelesscode has joined #ruby
statelesscode has quit [Client Quit]
synthroid has quit []
SiliconDon has quit [Quit: SiliconDon]
statelesscode has joined #ruby
marcdel has quit [Ping timeout: 268 seconds]
<apeiros> TIL the word curmudgeon
<Zarthus> sounds a lot like something else
<apeiros> and IRC without join/part messages is weird.
<apeiros> it reminds me of carmaggedon
<apeiros> good game
truenito has quit [Ping timeout: 240 seconds]
SiliconDon has joined #ruby
dionysus69 has joined #ruby
<allisio> What made shevy quit IRC?
houhoulis has joined #ruby
thatsnotjack has joined #ruby
bkxd has joined #ruby
SiliconDon has quit [Quit: SiliconDon]
bkxd has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
thatsnotjack has quit [Ping timeout: 240 seconds]
<apeiros> no idea
Pierreb|home has joined #ruby
jphase has joined #ruby
<Pierreb|home> im trying to match a regexp any way to expand on \d?
<Pierreb|home> i want to match any number 1-1m
duderonomy has quit [Read error: Connection reset by peer]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
tildes_ has joined #ruby
dlitvak has joined #ruby
marcdel has joined #ruby
tildes has quit [Ping timeout: 268 seconds]
<Zarthus> \d{1,6}
<apeiros> that won't match 1m
Guest32742 has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
<apeiros> and \d{1,7} would match 1m, but it'd also match 9,999,999
madsa has joined #ruby
madsa is now known as Guest86528
<apeiros> so Pierreb|home - you sure you want 1-1m and not 1...10000000 (1 to 10m, excluding 10m)
<allisio> Pierreb|home: You sure you want regex?
<apeiros> because if you really want 1-1m, I'd ask what allisio just asked :D
meshsmith has joined #ruby
govg has quit [Ping timeout: 258 seconds]
<apeiros> ytf doesn't github have an option to only search my own gists?
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
Lord_of_Life has joined #ruby
<elomatreb> apeiros: user:something seems to work in the gist search
<apeiros> grmpf, I'm pretty sure I have code to convert Int..Int ranges to regex, but seems it's not on gist. but ads in the tv show are over. will be back later… :D
Robtop__ has joined #ruby
<Verity> ty apeiros
<Verity> ty leitz
houhoulis has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cdg has joined #ruby
<apeiros> well, found this on my computer: https://gist.github.com/apeiros/1d947d0be61001169b9b5b1edd996865
<apeiros> but I'm pretty sure I did ranges too
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
<apeiros> (and not sure whether that's a correct implementation)
marcdel has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
Xiti has quit [Quit: Xiti]
migge has joined #ruby
duderonomy has quit [Client Quit]
cdg has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
youmu has joined #ruby
jdm has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<apeiros> elomatreb: thanks (sorry, was at another computer and still haven't set up my znc properly to get the backlog for each device individually)
amine has joined #ruby
Suslov has joined #ruby
marcdel has joined #ruby
amine is now known as Guest26628
azwieg103 has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
<Verity> ty, I'll study that: apeiros
<apeiros> Verity: not sure you should :D
<apeiros> verifying a number is in a range is better done by verifying it is a number, convert it to one and then use numeric tools, like (from..to).cover?(value)
<apeiros> or actually I prefer: value.between?(from, to)
banisterfiend has joined #ruby
<Verity> ok
Guest26628 has quit [Remote host closed the connection]
<Verity> I['ll block out what I read so far
<apeiros> hm, seems github's syntax highlighter fails at that code :D
djbkd has joined #ruby
djbkd has quit [Client Quit]
tildes_ has quit [Ping timeout: 260 seconds]
Suslov has quit [Quit: Leaving...]
Fernando-Basso has joined #ruby
ddddddd has joined #ruby
Nilium has joined #ruby
Channel6 has joined #ruby
<Verity> why am I getting nil bytes?
Jackneill has quit [Remote host closed the connection]
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
Guest8500 has quit [Remote host closed the connection]
Nilium has joined #ruby
ddddddd has quit [Ping timeout: 260 seconds]
<apeiros> nil != bytes
<apeiros> usually an IO returning nil on read means end of transmission
<Mon_Ouie> I'm not sure what lines 15 through 18 (especially 15-16) are meant to do, but they look like they belong in initialize
<apeiros> but the docs of SerialPort should tell you the meaning
<apeiros> or rather, the docs of rubyserial
<Verity> those are my member variables
<Verity> of the cless
<Verity> a
<elomatreb> That's not how instance variables in Ruby work
<apeiros> Verity: note that the class is a separate object from any of its instances
<elomatreb> You A) don't need to declare them beforehand B) if you set them there, you set them on the class object instead of the instance
Cork has quit [Quit: .]
<apeiros> and instance variables belong to one object only, the one object in whose scope you are at the time of using them. and class body means class object's scope (not its instances)
<Verity> I'm only goijng to use one object
<Verity> of this class
<apeiros> that's immaterial
<apeiros> ruby's syntax rules don't change depending on your intention
<Mon_Ouie> That one instance's instance variables won't be affected by these lines
<Mon_Ouie> >> class A; @my_variable = []; end; A.new.instance_variables
<ruby[bot]> Mon_Ouie: # => [] (https://eval.in/766055)
<apeiros> >> class A; @my_variable = []; end; A.instance_variables # <-- vs. this
<ruby[bot]> apeiros: # => [:@my_variable] (https://eval.in/766056)
<apeiros> A.new -> an instance of a, A -> the object representing the class itself
<apeiros> *an instance of ***A***
BackEndCoder has quit [Excess Flood]
bkxd has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Cork has joined #ruby
BackEndCoder has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
vikaton has joined #ruby
ruurd has joined #ruby
ruurd is now known as Guest74367
ddddddd has joined #ruby
thatsnotjack has joined #ruby
doublemalt__ has joined #ruby
Tempesta has quit [Quit: See ya!]
rgtk has quit [Ping timeout: 256 seconds]
ddddddd has quit [Ping timeout: 260 seconds]
<Verity> I guess this doesnt really need a class
<Verity> maybe thats why it doesnt make a lot of sense as I try to add one
Tempesta has joined #ruby
batmaan has quit [Quit: Leaving.]
<allisio> You should generally reach for a class as soon as you have two of something.
<mustmodify> or if there's one thing with variable state.
<allisio> No?
<Verity> this is turning into a disaster
<Verity> I should just give up now, right?
<Verity> so many errors not sure where to begin or why I'm doing this
sepp2k has quit [Read error: Connection reset by peer]
<adam12> Verity: Other than your attr_accessor syntax, what's wrong?
<adam12> and your initialize stuff
<adam12> You sure picked a heck of a project to learn Ruby with. LOL
<Verity> yeah @_@
<Verity> how can I set port_name when the object is created
<adam12> Move attr_accessor out of the initialize block
<adam12> and remove the = something after each. should be attr_accessor :symbol
<adam12> then inside initialize, you want to use @somevar = someval
<adam12> ie. @port_name = port_name
<Verity> ok
<Verity> and those globals are they ok?
<Verity> I['m thinking ahead to when the TCP port class is made
<Verity> I dont want to duplicate all of those
<adam12> I'd leave them there for now, but I'd likely stick them closer to the class they are being used in
<adam12> What's #load_file for?
<Verity> its going to be to load the file into packets
<adam12> and #transmit_packets, #establish_connection
<Verity> establish connection will send ENQ to rs232 and wairt for ACK then it will send_packets which will wait for ack on each w/ n retries
<adam12> Is that a protocol that you are matching? or what is expected on a serial port?
<Verity> a protocol
ddddddd has joined #ruby
bkxd has joined #ruby
<Verity> @packet << SOH Uncaught exception: c:/classes.rb:38: syntax error, unexpected tIVAR, expecting ':'
<Verity> ?
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phoo1234567 has quit [Quit: Gotta go]
<adam12> Is this homework?
<Mon_Ouie> That's because of a mistake before that point
pwnd_nsfw has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Robtop__ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
ddddddd has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
meshsmith has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
ddddddd has joined #ruby
<Verity> Mon_Ouie, expecting ':' ???
<Verity> what does that even mean
<Mon_Ouie> It means it expected the symbol ':' in your code
<Verity> current code
<adam12> Verity: No space between eof and ?
<Verity> I have several errors, so I['m trying to work one at a time
naprimer_2 has joined #ruby
<Verity> there is a space
<Mon_Ouie> There ought not to be
<adam12> Verity: The ? is a part of the eof method. It's called a predicate.
<adam12> (eof eh)
<Verity> oh
<Verity> I thought it was part of the until syntax
<adam12> Nope.
doublemalt__ has quit [Ping timeout: 260 seconds]
ptx0 has quit [Ping timeout: 268 seconds]
grzegorzz has quit [Ping timeout: 260 seconds]
priodev has quit [Ping timeout: 246 seconds]
ltp has quit [Ping timeout: 264 seconds]
<Verity> Uncaught exception: no implicit conversion of nil into String File.open(FILE_NAME) do |file| I'm staring at this line tryingf to undersand what the rror is telling me
<Verity> it cant see FILE_NAME?
jamesaxl has quit [Quit: WeeChat 1.6]
kirun has quit [Quit: Konversation terminated!]
ddddddd has quit [Quit: Leaving]
BackEndCoder has quit [Excess Flood]
<adam12> Verity: Right.
bkxd has quit [Ping timeout: 240 seconds]
bkxd_ has joined #ruby
nofxxxx has quit [Ping timeout: 260 seconds]
ptx0 has joined #ruby
<Verity> I tried to makre it global and it said dont make globals
<adam12> Code?
postmodern has joined #ruby
BackEndCoder has joined #ruby
nofxxxx has joined #ruby
<Verity> $FILE_NAME = ARGV[2]Uncaught exception: uninitialized constant SerialPort::FILE_NAME
<Verity> I'm wondering if I should maybe move those SOH and FILE_NAME etc into the base class
Fernando-Basso has quit [Quit: WeeChat 1.7]
<adam12> Verity: FILE_NAME Is a constant, $FILE_NAME is a global
<adam12> In this case, you can use either or, but have to use them consistently.
yurikoles has quit [Remote host closed the connection]
xenops has quit [Quit: Textual IRC Client: www.textualapp.com]
thatsnotjack has quit [Ping timeout: 240 seconds]
johnny56_ has quit [Quit: johnny56_]
priodev has joined #ruby
ltp has joined #ruby
<Verity> can't get it
<Verity> I dont understand my errrors, I'm just trying to learn ruby and use of classes. this should be tbe basics. the real challenge is working with th e packets protocol
<Verity> or it should be, instead these small stumbling blocks, this one especially perplexing
<Verity> still an Uncaught exception: no implicit conversion of nil into String
Coldblackice has quit [Read error: Connection reset by peer]
bkxd_ has quit [Ping timeout: 240 seconds]
duckpupp1 has joined #ruby
<Verity> maybe matthewd has some insight on this
duckpupp1 has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
jameser has joined #ruby
mustmodify has left #ruby [#ruby]
marr has quit [Ping timeout: 258 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
<allisio> Verity: What's the error with the code you most recently posted?
cfec0b8d has quit [Ping timeout: 264 seconds]
<allisio> Anyway, if it's still "no implicit conversion...", it's because you're not passing at least three arguments on the command line.